From e35b90ea85082d0afca76b00a47b62bdbcce5235 Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Sun, 21 Jan 2024 05:09:29 +0000 Subject: [PATCH 01/62] Implement x/escrow prototype --- go.work | 5 + go.work.sum | 398 + install-proto-tools.sh | 7 + x/escrow/.golangci.yaml | 32 + .../escrow/module/v1alpha1/module.pb.go | 327 + x/escrow/andromeda/escrow/v1alpha1/codec.go | 18 + x/escrow/andromeda/escrow/v1alpha1/errors.go | 39 + .../andromeda/escrow/v1alpha1/event.pb.go | 1168 +++ .../andromeda/escrow/v1alpha1/genesis.pb.go | 1279 +++ x/escrow/andromeda/escrow/v1alpha1/keys.go | 6 + .../andromeda/escrow/v1alpha1/query.pb.go | 3612 +++++++ .../andromeda/escrow/v1alpha1/query.pb.gw.go | 521 + x/escrow/andromeda/escrow/v1alpha1/tx.pb.go | 2153 +++++ .../andromeda/escrow/v1alpha1/types.pb.go | 697 ++ .../escrow/module/v1alpha1/module.pulsar.go | 582 ++ .../andromeda/escrow/v1alpha1/event.pulsar.go | 2650 +++++ .../escrow/v1alpha1/genesis.pulsar.go | 2880 ++++++ .../andromeda/escrow/v1alpha1/query.pulsar.go | 8574 +++++++++++++++++ .../escrow/v1alpha1/query_grpc.pb.go | 267 + .../andromeda/escrow/v1alpha1/tx.pulsar.go | 4933 ++++++++++ .../andromeda/escrow/v1alpha1/tx_grpc.pb.go | 228 + .../andromeda/escrow/v1alpha1/types.pulsar.go | 1674 ++++ x/escrow/go.mod | 154 + x/escrow/go.sum | 1280 +++ x/escrow/keeper/expected/keepers.go | 20 + x/escrow/keeper/exported.go | 68 + x/escrow/keeper/internal/agent.go | 156 + x/escrow/keeper/internal/agent_test.go | 43 + x/escrow/keeper/internal/exec.go | 87 + x/escrow/keeper/internal/exec_test.go | 87 + x/escrow/keeper/internal/genesis.go | 363 + x/escrow/keeper/internal/genesis_test.go | 614 ++ x/escrow/keeper/internal/grpc_query.go | 186 + x/escrow/keeper/internal/grpc_query_test.go | 176 + x/escrow/keeper/internal/keeper.go | 98 + x/escrow/keeper/internal/keeper_test.go | 240 + x/escrow/keeper/internal/keys.go | 70 + x/escrow/keeper/internal/msg_server.go | 183 + x/escrow/keeper/internal/msg_server_test.go | 256 + x/escrow/keeper/internal/params.go | 28 + x/escrow/keeper/internal/proposal.go | 179 + x/escrow/keeper/internal/proposal_test.go | 89 + x/escrow/module/autocli.go | 124 + x/escrow/module/module.go | 209 + .../escrow/module/v1alpha1/module.proto | 12 + .../andromeda/escrow/v1alpha1/event.proto | 48 + .../andromeda/escrow/v1alpha1/genesis.proto | 53 + .../andromeda/escrow/v1alpha1/query.proto | 155 + .../proto/andromeda/escrow/v1alpha1/tx.proto | 102 + .../andromeda/escrow/v1alpha1/types.proto | 23 + x/escrow/proto/buf.gen.gogo.yaml | 16 + x/escrow/proto/buf.gen.pulsar.yaml | 16 + x/escrow/proto/buf.lock | 19 + x/escrow/proto/buf.yaml | 20 + x/escrow/testutil/iterator.go | 117 + x/escrow/testutil/keepers.mock.go | 114 + 56 files changed, 37455 insertions(+) create mode 100644 go.work create mode 100644 go.work.sum create mode 100755 install-proto-tools.sh create mode 100644 x/escrow/.golangci.yaml create mode 100644 x/escrow/andromeda/escrow/module/v1alpha1/module.pb.go create mode 100644 x/escrow/andromeda/escrow/v1alpha1/codec.go create mode 100644 x/escrow/andromeda/escrow/v1alpha1/errors.go create mode 100644 x/escrow/andromeda/escrow/v1alpha1/event.pb.go create mode 100644 x/escrow/andromeda/escrow/v1alpha1/genesis.pb.go create mode 100644 x/escrow/andromeda/escrow/v1alpha1/keys.go create mode 100644 x/escrow/andromeda/escrow/v1alpha1/query.pb.go create mode 100644 x/escrow/andromeda/escrow/v1alpha1/query.pb.gw.go create mode 100644 x/escrow/andromeda/escrow/v1alpha1/tx.pb.go create mode 100644 x/escrow/andromeda/escrow/v1alpha1/types.pb.go create mode 100644 x/escrow/api/andromeda/escrow/module/v1alpha1/module.pulsar.go create mode 100644 x/escrow/api/andromeda/escrow/v1alpha1/event.pulsar.go create mode 100644 x/escrow/api/andromeda/escrow/v1alpha1/genesis.pulsar.go create mode 100644 x/escrow/api/andromeda/escrow/v1alpha1/query.pulsar.go create mode 100644 x/escrow/api/andromeda/escrow/v1alpha1/query_grpc.pb.go create mode 100644 x/escrow/api/andromeda/escrow/v1alpha1/tx.pulsar.go create mode 100644 x/escrow/api/andromeda/escrow/v1alpha1/tx_grpc.pb.go create mode 100644 x/escrow/api/andromeda/escrow/v1alpha1/types.pulsar.go create mode 100644 x/escrow/go.mod create mode 100644 x/escrow/go.sum create mode 100644 x/escrow/keeper/expected/keepers.go create mode 100644 x/escrow/keeper/exported.go create mode 100644 x/escrow/keeper/internal/agent.go create mode 100644 x/escrow/keeper/internal/agent_test.go create mode 100644 x/escrow/keeper/internal/exec.go create mode 100644 x/escrow/keeper/internal/exec_test.go create mode 100644 x/escrow/keeper/internal/genesis.go create mode 100644 x/escrow/keeper/internal/genesis_test.go create mode 100644 x/escrow/keeper/internal/grpc_query.go create mode 100644 x/escrow/keeper/internal/grpc_query_test.go create mode 100644 x/escrow/keeper/internal/keeper.go create mode 100644 x/escrow/keeper/internal/keeper_test.go create mode 100644 x/escrow/keeper/internal/keys.go create mode 100644 x/escrow/keeper/internal/msg_server.go create mode 100644 x/escrow/keeper/internal/msg_server_test.go create mode 100644 x/escrow/keeper/internal/params.go create mode 100644 x/escrow/keeper/internal/proposal.go create mode 100644 x/escrow/keeper/internal/proposal_test.go create mode 100644 x/escrow/module/autocli.go create mode 100644 x/escrow/module/module.go create mode 100644 x/escrow/proto/andromeda/escrow/module/v1alpha1/module.proto create mode 100644 x/escrow/proto/andromeda/escrow/v1alpha1/event.proto create mode 100644 x/escrow/proto/andromeda/escrow/v1alpha1/genesis.proto create mode 100644 x/escrow/proto/andromeda/escrow/v1alpha1/query.proto create mode 100644 x/escrow/proto/andromeda/escrow/v1alpha1/tx.proto create mode 100644 x/escrow/proto/andromeda/escrow/v1alpha1/types.proto create mode 100644 x/escrow/proto/buf.gen.gogo.yaml create mode 100644 x/escrow/proto/buf.gen.pulsar.yaml create mode 100644 x/escrow/proto/buf.lock create mode 100644 x/escrow/proto/buf.yaml create mode 100644 x/escrow/testutil/iterator.go create mode 100644 x/escrow/testutil/keepers.mock.go diff --git a/go.work b/go.work new file mode 100644 index 0000000..1a4ca76 --- /dev/null +++ b/go.work @@ -0,0 +1,5 @@ +go 1.21 + +use ( + ./x/escrow +) diff --git a/go.work.sum b/go.work.sum new file mode 100644 index 0000000..180453e --- /dev/null +++ b/go.work.sum @@ -0,0 +1,398 @@ +4d63.com/gocheckcompilerdirectives v1.2.1/go.mod h1:yjDJSxmDTtIHHCqX0ufRYZDL6vQtMG7tJdKVeWwsqvs= +4d63.com/gochecknoglobals v0.2.1/go.mod h1:KRE8wtJB3CXCsb1xy421JfTHIIbmT3U5ruxw2Qu8fSU= +cloud.google.com/go v0.110.10/go.mod h1:v1OoFqYxiBkUrruItNM3eT4lLByNjxmJSV/xDKJNnic= +cloud.google.com/go/accessapproval v1.7.4/go.mod h1:/aTEh45LzplQgFYdQdwPMR9YdX0UlhBmvB84uAmQKUc= +cloud.google.com/go/accesscontextmanager v1.8.4/go.mod h1:ParU+WbMpD34s5JFEnGAnPBYAgUHozaTmDJU7aCU9+M= +cloud.google.com/go/aiplatform v1.54.0/go.mod h1:pwZMGvqe0JRkI1GWSZCtnAfrR4K1bv65IHILGA//VEU= +cloud.google.com/go/analytics v0.21.6/go.mod h1:eiROFQKosh4hMaNhF85Oc9WO97Cpa7RggD40e/RBy8w= +cloud.google.com/go/apigateway v1.6.4/go.mod h1:0EpJlVGH5HwAN4VF4Iec8TAzGN1aQgbxAWGJsnPCGGY= +cloud.google.com/go/apigeeconnect v1.6.4/go.mod h1:CapQCWZ8TCjnU0d7PobxhpOdVz/OVJ2Hr/Zcuu1xFx0= +cloud.google.com/go/apigeeregistry v0.8.2/go.mod h1:h4v11TDGdeXJDJvImtgK2AFVvMIgGWjSb0HRnBSjcX8= +cloud.google.com/go/appengine v1.8.4/go.mod h1:TZ24v+wXBujtkK77CXCpjZbnuTvsFNT41MUaZ28D6vg= +cloud.google.com/go/area120 v0.8.4/go.mod h1:jfawXjxf29wyBXr48+W+GyX/f8fflxp642D/bb9v68M= +cloud.google.com/go/artifactregistry v1.14.6/go.mod h1:np9LSFotNWHcjnOgh8UVK0RFPCTUGbO0ve3384xyHfE= +cloud.google.com/go/asset v1.15.3/go.mod h1:yYLfUD4wL4X589A9tYrv4rFrba0QlDeag0CMcM5ggXU= +cloud.google.com/go/assuredworkloads v1.11.4/go.mod h1:4pwwGNwy1RP0m+y12ef3Q/8PaiWrIDQ6nD2E8kvWI9U= +cloud.google.com/go/automl v1.13.4/go.mod h1:ULqwX/OLZ4hBVfKQaMtxMSTlPx0GqGbWN8uA/1EqCP8= +cloud.google.com/go/baremetalsolution v1.2.3/go.mod h1:/UAQ5xG3faDdy180rCUv47e0jvpp3BFxT+Cl0PFjw5g= +cloud.google.com/go/batch v1.6.3/go.mod h1:J64gD4vsNSA2O5TtDB5AAux3nJ9iV8U3ilg3JDBYejU= +cloud.google.com/go/beyondcorp v1.0.3/go.mod h1:HcBvnEd7eYr+HGDd5ZbuVmBYX019C6CEXBonXbCVwJo= +cloud.google.com/go/bigquery v1.57.1/go.mod h1:iYzC0tGVWt1jqSzBHqCr3lrRn0u13E8e+AqowBsDgug= +cloud.google.com/go/billing v1.17.4/go.mod h1:5DOYQStCxquGprqfuid/7haD7th74kyMBHkjO/OvDtk= +cloud.google.com/go/binaryauthorization v1.7.3/go.mod h1:VQ/nUGRKhrStlGr+8GMS8f6/vznYLkdK5vaKfdCIpvU= +cloud.google.com/go/certificatemanager v1.7.4/go.mod h1:FHAylPe/6IIKuaRmHbjbdLhGhVQ+CWHSD5Jq0k4+cCE= +cloud.google.com/go/channel v1.17.3/go.mod h1:QcEBuZLGGrUMm7kNj9IbU1ZfmJq2apotsV83hbxX7eE= +cloud.google.com/go/cloudbuild v1.15.0/go.mod h1:eIXYWmRt3UtggLnFGx4JvXcMj4kShhVzGndL1LwleEM= +cloud.google.com/go/clouddms v1.7.3/go.mod h1:fkN2HQQNUYInAU3NQ3vRLkV2iWs8lIdmBKOx4nrL6Hc= +cloud.google.com/go/cloudtasks v1.12.4/go.mod h1:BEPu0Gtt2dU6FxZHNqqNdGqIG86qyWKBPGnsb7udGY0= +cloud.google.com/go/compute v1.23.3/go.mod h1:VCgBUoMnIVIR0CscqQiPJLAG25E3ZRZMzcFZeQ+h8CI= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= +cloud.google.com/go/contactcenterinsights v1.12.0/go.mod h1:HHX5wrz5LHVAwfI2smIotQG9x8Qd6gYilaHcLLLmNis= +cloud.google.com/go/container v1.28.0/go.mod h1:b1A1gJeTBXVLQ6GGw9/9M4FG94BEGsqJ5+t4d/3N7O4= +cloud.google.com/go/containeranalysis v0.11.3/go.mod h1:kMeST7yWFQMGjiG9K7Eov+fPNQcGhb8mXj/UcTiWw9U= +cloud.google.com/go/datacatalog v1.19.0/go.mod h1:5FR6ZIF8RZrtml0VUao22FxhdjkoG+a0866rEnObryM= +cloud.google.com/go/dataflow v0.9.4/go.mod h1:4G8vAkHYCSzU8b/kmsoR2lWyHJD85oMJPHMtan40K8w= +cloud.google.com/go/dataform v0.9.1/go.mod h1:pWTg+zGQ7i16pyn0bS1ruqIE91SdL2FDMvEYu/8oQxs= +cloud.google.com/go/datafusion v1.7.4/go.mod h1:BBs78WTOLYkT4GVZIXQCZT3GFpkpDN4aBY4NDX/jVlM= +cloud.google.com/go/datalabeling v0.8.4/go.mod h1:Z1z3E6LHtffBGrNUkKwbwbDxTiXEApLzIgmymj8A3S8= +cloud.google.com/go/dataplex v1.11.2/go.mod h1:mHJYQQ2VEJHsyoC0OdNyy988DvEbPhqFs5OOLffLX0c= +cloud.google.com/go/dataproc/v2 v2.3.0/go.mod h1:G5R6GBc9r36SXv/RtZIVfB8SipI+xVn0bX5SxUzVYbY= +cloud.google.com/go/dataqna v0.8.4/go.mod h1:mySRKjKg5Lz784P6sCov3p1QD+RZQONRMRjzGNcFd0c= +cloud.google.com/go/datastore v1.15.0/go.mod h1:GAeStMBIt9bPS7jMJA85kgkpsMkvseWWXiaHya9Jes8= +cloud.google.com/go/datastream v1.10.3/go.mod h1:YR0USzgjhqA/Id0Ycu1VvZe8hEWwrkjuXrGbzeDOSEA= +cloud.google.com/go/deploy v1.15.0/go.mod h1:e5XOUI5D+YGldyLNZ21wbp9S8otJbBE4i88PtO9x/2g= +cloud.google.com/go/dialogflow v1.44.3/go.mod h1:mHly4vU7cPXVweuB5R0zsYKPMzy240aQdAu06SqBbAQ= +cloud.google.com/go/dlp v1.11.1/go.mod h1:/PA2EnioBeXTL/0hInwgj0rfsQb3lpE3R8XUJxqUNKI= +cloud.google.com/go/documentai v1.23.5/go.mod h1:ghzBsyVTiVdkfKaUCum/9bGBEyBjDO4GfooEcYKhN+g= +cloud.google.com/go/domains v0.9.4/go.mod h1:27jmJGShuXYdUNjyDG0SodTfT5RwLi7xmH334Gvi3fY= +cloud.google.com/go/edgecontainer v1.1.4/go.mod h1:AvFdVuZuVGdgaE5YvlL1faAoa1ndRR/5XhXZvPBHbsE= +cloud.google.com/go/errorreporting v0.3.0/go.mod h1:xsP2yaAp+OAW4OIm60An2bbLpqIhKXdWR/tawvl7QzU= +cloud.google.com/go/essentialcontacts v1.6.5/go.mod h1:jjYbPzw0x+yglXC890l6ECJWdYeZ5dlYACTFL0U/VuM= +cloud.google.com/go/eventarc v1.13.3/go.mod h1:RWH10IAZIRcj1s/vClXkBgMHwh59ts7hSWcqD3kaclg= +cloud.google.com/go/filestore v1.8.0/go.mod h1:S5JCxIbFjeBhWMTfIYH2Jx24J6BqjwpkkPl+nBA5DlI= +cloud.google.com/go/firestore v1.14.0/go.mod h1:96MVaHLsEhbvkBEdZgfN+AS/GIkco1LRpH9Xp9YZfzQ= +cloud.google.com/go/functions v1.15.4/go.mod h1:CAsTc3VlRMVvx+XqXxKqVevguqJpnVip4DdonFsX28I= +cloud.google.com/go/gkebackup v1.3.4/go.mod h1:gLVlbM8h/nHIs09ns1qx3q3eaXcGSELgNu1DWXYz1HI= +cloud.google.com/go/gkeconnect v0.8.4/go.mod h1:84hZz4UMlDCKl8ifVW8layK4WHlMAFeq8vbzjU0yJkw= +cloud.google.com/go/gkehub v0.14.4/go.mod h1:Xispfu2MqnnFt8rV/2/3o73SK1snL8s9dYJ9G2oQMfc= +cloud.google.com/go/gkemulticloud v1.0.3/go.mod h1:7NpJBN94U6DY1xHIbsDqB2+TFZUfjLUKLjUX8NGLor0= +cloud.google.com/go/gsuiteaddons v1.6.4/go.mod h1:rxtstw7Fx22uLOXBpsvb9DUbC+fiXs7rF4U29KHM/pE= +cloud.google.com/go/iam v1.1.5/go.mod h1:rB6P/Ic3mykPbFio+vo7403drjlgvoWfYpJhMXEbzv8= +cloud.google.com/go/iap v1.9.3/go.mod h1:DTdutSZBqkkOm2HEOTBzhZxh2mwwxshfD/h3yofAiCw= +cloud.google.com/go/ids v1.4.4/go.mod h1:z+WUc2eEl6S/1aZWzwtVNWoSZslgzPxAboS0lZX0HjI= +cloud.google.com/go/iot v1.7.4/go.mod h1:3TWqDVvsddYBG++nHSZmluoCAVGr1hAcabbWZNKEZLk= +cloud.google.com/go/kms v1.15.5/go.mod h1:cU2H5jnp6G2TDpUGZyqTCoy1n16fbubHZjmVXSMtwDI= +cloud.google.com/go/language v1.12.2/go.mod h1:9idWapzr/JKXBBQ4lWqVX/hcadxB194ry20m/bTrhWc= +cloud.google.com/go/lifesciences v0.9.4/go.mod h1:bhm64duKhMi7s9jR9WYJYvjAFJwRqNj+Nia7hF0Z7JA= +cloud.google.com/go/logging v1.8.1/go.mod h1:TJjR+SimHwuC8MZ9cjByQulAMgni+RkXeI3wwctHJEI= +cloud.google.com/go/longrunning v0.5.4/go.mod h1:zqNVncI0BOP8ST6XQD1+VcvuShMmq7+xFSzOL++V0dI= +cloud.google.com/go/managedidentities v1.6.4/go.mod h1:WgyaECfHmF00t/1Uk8Oun3CQ2PGUtjc3e9Alh79wyiM= +cloud.google.com/go/maps v1.6.1/go.mod h1:4+buOHhYXFBp58Zj/K+Lc1rCmJssxxF4pJ5CJnhdz18= +cloud.google.com/go/mediatranslation v0.8.4/go.mod h1:9WstgtNVAdN53m6TQa5GjIjLqKQPXe74hwSCxUP6nj4= +cloud.google.com/go/memcache v1.10.4/go.mod h1:v/d8PuC8d1gD6Yn5+I3INzLR01IDn0N4Ym56RgikSI0= +cloud.google.com/go/metastore v1.13.3/go.mod h1:K+wdjXdtkdk7AQg4+sXS8bRrQa9gcOr+foOMF2tqINE= +cloud.google.com/go/monitoring v1.16.3/go.mod h1:KwSsX5+8PnXv5NJnICZzW2R8pWTis8ypC4zmdRD63Tw= +cloud.google.com/go/networkconnectivity v1.14.3/go.mod h1:4aoeFdrJpYEXNvrnfyD5kIzs8YtHg945Og4koAjHQek= +cloud.google.com/go/networkmanagement v1.9.3/go.mod h1:y7WMO1bRLaP5h3Obm4tey+NquUvB93Co1oh4wpL+XcU= +cloud.google.com/go/networksecurity v0.9.4/go.mod h1:E9CeMZ2zDsNBkr8axKSYm8XyTqNhiCHf1JO/Vb8mD1w= +cloud.google.com/go/notebooks v1.11.2/go.mod h1:z0tlHI/lREXC8BS2mIsUeR3agM1AkgLiS+Isov3SS70= +cloud.google.com/go/optimization v1.6.2/go.mod h1:mWNZ7B9/EyMCcwNl1frUGEuY6CPijSkz88Fz2vwKPOY= +cloud.google.com/go/orchestration v1.8.4/go.mod h1:d0lywZSVYtIoSZXb0iFjv9SaL13PGyVOKDxqGxEf/qI= +cloud.google.com/go/orgpolicy v1.11.4/go.mod h1:0+aNV/nrfoTQ4Mytv+Aw+stBDBjNf4d8fYRA9herfJI= +cloud.google.com/go/osconfig v1.12.4/go.mod h1:B1qEwJ/jzqSRslvdOCI8Kdnp0gSng0xW4LOnIebQomA= +cloud.google.com/go/oslogin v1.12.2/go.mod h1:CQ3V8Jvw4Qo4WRhNPF0o+HAM4DiLuE27Ul9CX9g2QdY= +cloud.google.com/go/phishingprotection v0.8.4/go.mod h1:6b3kNPAc2AQ6jZfFHioZKg9MQNybDg4ixFd4RPZZ2nE= +cloud.google.com/go/policytroubleshooter v1.10.2/go.mod h1:m4uF3f6LseVEnMV6nknlN2vYGRb+75ylQwJdnOXfnv0= +cloud.google.com/go/privatecatalog v0.9.4/go.mod h1:SOjm93f+5hp/U3PqMZAHTtBtluqLygrDrVO8X8tYtG0= +cloud.google.com/go/pubsub v1.33.0/go.mod h1:f+w71I33OMyxf9VpMVcZbnG5KSUkCOUHYpFd5U1GdRc= +cloud.google.com/go/pubsublite v1.8.1/go.mod h1:fOLdU4f5xldK4RGJrBMm+J7zMWNj/k4PxwEZXy39QS0= +cloud.google.com/go/recaptchaenterprise/v2 v2.8.4/go.mod h1:Dak54rw6lC2gBY8FBznpOCAR58wKf+R+ZSJRoeJok4w= +cloud.google.com/go/recommendationengine v0.8.4/go.mod h1:GEteCf1PATl5v5ZsQ60sTClUE0phbWmo3rQ1Js8louU= +cloud.google.com/go/recommender v1.11.3/go.mod h1:+FJosKKJSId1MBFeJ/TTyoGQZiEelQQIZMKYYD8ruK4= +cloud.google.com/go/redis v1.14.1/go.mod h1:MbmBxN8bEnQI4doZPC1BzADU4HGocHBk2de3SbgOkqs= +cloud.google.com/go/resourcemanager v1.9.4/go.mod h1:N1dhP9RFvo3lUfwtfLWVxfUWq8+KUQ+XLlHLH3BoFJ0= +cloud.google.com/go/resourcesettings v1.6.4/go.mod h1:pYTTkWdv2lmQcjsthbZLNBP4QW140cs7wqA3DuqErVI= +cloud.google.com/go/retail v1.14.4/go.mod h1:l/N7cMtY78yRnJqp5JW8emy7MB1nz8E4t2yfOmklYfg= +cloud.google.com/go/run v1.3.3/go.mod h1:WSM5pGyJ7cfYyYbONVQBN4buz42zFqwG67Q3ch07iK4= +cloud.google.com/go/scheduler v1.10.5/go.mod h1:MTuXcrJC9tqOHhixdbHDFSIuh7xZF2IysiINDuiq6NI= +cloud.google.com/go/secretmanager v1.11.4/go.mod h1:wreJlbS9Zdq21lMzWmJ0XhWW2ZxgPeahsqeV/vZoJ3w= +cloud.google.com/go/security v1.15.4/go.mod h1:oN7C2uIZKhxCLiAAijKUCuHLZbIt/ghYEo8MqwD/Ty4= +cloud.google.com/go/securitycenter v1.24.2/go.mod h1:l1XejOngggzqwr4Fa2Cn+iWZGf+aBLTXtB/vXjy5vXM= +cloud.google.com/go/servicedirectory v1.11.3/go.mod h1:LV+cHkomRLr67YoQy3Xq2tUXBGOs5z5bPofdq7qtiAw= +cloud.google.com/go/shell v1.7.4/go.mod h1:yLeXB8eKLxw0dpEmXQ/FjriYrBijNsONpwnWsdPqlKM= +cloud.google.com/go/spanner v1.53.0/go.mod h1:liG4iCeLqm5L3fFLU5whFITqP0e0orsAW1uUSrd4rws= +cloud.google.com/go/speech v1.21.0/go.mod h1:wwolycgONvfz2EDU8rKuHRW3+wc9ILPsAWoikBEWavY= +cloud.google.com/go/storagetransfer v1.10.3/go.mod h1:Up8LY2p6X68SZ+WToswpQbQHnJpOty/ACcMafuey8gc= +cloud.google.com/go/talent v1.6.5/go.mod h1:Mf5cma696HmE+P2BWJ/ZwYqeJXEeU0UqjHFXVLadEDI= +cloud.google.com/go/texttospeech v1.7.4/go.mod h1:vgv0002WvR4liGuSd5BJbWy4nDn5Ozco0uJymY5+U74= +cloud.google.com/go/tpu v1.6.4/go.mod h1:NAm9q3Rq2wIlGnOhpYICNI7+bpBebMJbh0yyp3aNw1Y= +cloud.google.com/go/trace v1.10.4/go.mod h1:Nso99EDIK8Mj5/zmB+iGr9dosS/bzWCJ8wGmE6TXNWY= +cloud.google.com/go/translate v1.9.3/go.mod h1:Kbq9RggWsbqZ9W5YpM94Q1Xv4dshw/gr/SHfsl5yCZ0= +cloud.google.com/go/video v1.20.3/go.mod h1:TnH/mNZKVHeNtpamsSPygSR0iHtvrR/cW1/GDjN5+GU= +cloud.google.com/go/videointelligence v1.11.4/go.mod h1:kPBMAYsTPFiQxMLmmjpcZUMklJp3nC9+ipJJtprccD8= +cloud.google.com/go/vision/v2 v2.7.5/go.mod h1:GcviprJLFfK9OLf0z8Gm6lQb6ZFUulvpZws+mm6yPLM= +cloud.google.com/go/vmmigration v1.7.4/go.mod h1:yBXCmiLaB99hEl/G9ZooNx2GyzgsjKnw5fWcINRgD70= +cloud.google.com/go/vmwareengine v1.0.3/go.mod h1:QSpdZ1stlbfKtyt6Iu19M6XRxjmXO+vb5a/R6Fvy2y4= +cloud.google.com/go/vpcaccess v1.7.4/go.mod h1:lA0KTvhtEOb/VOdnH/gwPuOzGgM+CWsmGu6bb4IoMKk= +cloud.google.com/go/webrisk v1.9.4/go.mod h1:w7m4Ib4C+OseSr2GL66m0zMBywdrVNTDKsdEsfMl7X0= +cloud.google.com/go/websecurityscanner v1.6.4/go.mod h1:mUiyMQ+dGpPPRkHgknIZeCzSHJ45+fY4F52nZFDHm2o= +cloud.google.com/go/workflows v1.12.3/go.mod h1:fmOUeeqEwPzIU81foMjTRQIdwQHADi/vEr1cx9R1m5g= +github.com/Abirdcfly/dupword v0.0.11/go.mod h1:wH8mVGuf3CP5fsBTkfWwwwKTjDnVVCxtU8d8rgeVYXA= +github.com/Antonboom/errname v0.1.9/go.mod h1:nLTcJzevREuAsgTbG85UsuiWpMpAqbKD1HNZ29OzE58= +github.com/Antonboom/nilnil v0.1.3/go.mod h1:iOov/7gRcXkeEU+EMGpBu2ORih3iyVEiWjeste1SJm8= +github.com/BurntSushi/toml v1.2.1/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ= +github.com/CloudyKit/fastprinter v0.0.0-20200109182630-33d98a066a53/go.mod h1:+3IMCy2vIlbG1XG/0ggNQv0SvxCAIpPM5b1nCz56Xno= +github.com/CloudyKit/jet/v6 v6.2.0/go.mod h1:d3ypHeIRNo2+XyqnGA8s+aphtcVpjP5hPwP/Lzo7Ro4= +github.com/Djarvur/go-err113 v0.0.0-20210108212216-aea10b59be24/go.mod h1:4UJr5HIiMZrwgkSPdsjy2uOQExX/WEILpIrO9UPGuXs= +github.com/GaijinEntertainment/go-exhaustruct/v2 v2.3.0/go.mod h1:b3g59n2Y+T5xmcxJL+UEG2f8cQploZm1mR/v6BW0mU0= +github.com/HdrHistogram/hdrhistogram-go v1.1.2/go.mod h1:yDgFjdqOqDEKOvasDdhWNXYg9BVp4O+o5f6V/ehm6Oo= +github.com/Joker/jade v1.1.3/go.mod h1:T+2WLyt7VH6Lp0TRxQrUYEs64nRc83wkMQrfeIQKduM= +github.com/Masterminds/semver v1.5.0/go.mod h1:MB6lktGJrhw8PrUyiEoblNEGEQ+RzHPF078ddwwvV3Y= +github.com/Masterminds/semver/v3 v3.2.0/go.mod h1:qvl/7zhW3nngYb5+80sSMF+FG2BjYrf8m9wsX0PNOMQ= +github.com/OpenPeeDeeP/depguard v1.1.1/go.mod h1:JtAMzWkmFEzDPyAd+W0NHl1lvpQKTvT9jnRVsohBKpc= +github.com/ProtonMail/go-crypto v0.0.0-20230217124315-7d5c6f04bbb8/go.mod h1:I0gYDMZ6Z5GRU7l58bNFSkPTFN6Yl12dsUlAZ8xy98g= +github.com/Shopify/goreferrer v0.0.0-20220729165902-8cddb4f5de06/go.mod h1:7erjKLwalezA0k99cWs5L11HWOAPNjdUZ6RxH1BXbbM= +github.com/aclements/go-moremath v0.0.0-20210112150236-f10218a38794/go.mod h1:7e+I0LQFUI9AXWxOfsQROs9xPhoJtbsyWcjJqDd4KPY= +github.com/acomagu/bufpipe v1.0.4/go.mod h1:mxdxdup/WdsKVreO5GpW4+M/1CE2sMG4jeGJ2sYmHc4= +github.com/alecthomas/kingpin/v2 v2.3.2/go.mod h1:0gyi0zQnjuFk8xrkNKamJoyUo382HRL7ATRpFZCw6tE= +github.com/alecthomas/units v0.0.0-20211218093645-b94a6e3cc137/go.mod h1:OMCwj8VM1Kc9e19TLln2VL61YJF0x1XFtfdL4JdbSyE= +github.com/alexkohler/prealloc v1.0.0/go.mod h1:VetnK3dIgFBBKmg0YnD9F9x6Icjd+9cvfHR56wJVlKE= +github.com/alingse/asasalint v0.0.11/go.mod h1:nCaoMhw7a9kSJObvQyVzNTPBDbNpdocqrSP7t/cW5+I= +github.com/andybalholm/brotli v1.0.5/go.mod h1:fO7iG3H7G2nSZ7m0zPUDn85XEX2GTukHGRSepvi9Eig= +github.com/armon/go-metrics v0.4.0/go.mod h1:E6amYzXo6aW1tqzoZGT755KkbgrJsSdpwZ+3JqfkOG4= +github.com/ashanbrown/forbidigo v1.5.1/go.mod h1:Y8j9jy9ZYAEHXdu723cUlraTqbzjKF1MUyfOKL+AjcU= +github.com/ashanbrown/makezero v1.1.1/go.mod h1:i1bJLCRSCHOcOa9Y6MyF2FTfMZMFdHvxKHxgO5Z1axI= +github.com/aws/aws-sdk-go v1.40.45/go.mod h1:585smgzpB/KqRA+K3y/NL/oYRqQvpNJYvLm+LY1U59Q= +github.com/aws/aws-sdk-go-v2 v1.9.1/go.mod h1:cK/D0BBs0b/oWPIcX/Z/obahJK1TT7IPVjy53i/mX/4= +github.com/aws/aws-sdk-go-v2/service/cloudwatch v1.8.1/go.mod h1:CM+19rL1+4dFWnOQKwDc7H1KwXTz+h61oUSHyhV0b3o= +github.com/aws/smithy-go v1.8.0/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/aymerick/douceur v0.2.0/go.mod h1:wlT5vV2O3h55X9m7iVYN0TBM0NH/MmbLnd30/FjWUq4= +github.com/bkielbasa/cyclop v1.2.0/go.mod h1:qOI0yy6A7dYC4Zgsa72Ppm9kONl0RoIlPbzot9mhmeI= +github.com/blizzy78/varnamelen v0.8.0/go.mod h1:V9TzQZ4fLJ1DSrjVDfl89H7aMnTvKkApdHeyESmyR7k= +github.com/bombsimon/wsl/v3 v3.4.0/go.mod h1:KkIB+TXkqy6MvK9BDZVbZxKNYsE1/oLRJbIFtf14qqo= +github.com/breml/bidichk v0.2.4/go.mod h1:7Zk0kRFt1LIZxtQdl9W9JwGAcLTTkOs+tN7wuEYGJ3s= +github.com/breml/errchkjson v0.3.1/go.mod h1:XroxrzKjdiutFyW3nWhw34VGg7kiMsDQox73yWCGI2U= +github.com/bufbuild/buf v1.15.1/go.mod h1:TQeGKam1QMfHy/xsSnnMpxN3JK5HBb6aNvZj4m52gkE= +github.com/bufbuild/connect-go v1.5.2/go.mod h1:GmMJYR6orFqD0Y6ZgX8pwQ8j9baizDrIQMm1/a6LnHk= +github.com/butuzov/ireturn v0.1.1/go.mod h1:Wh6Zl3IMtTpaIKbmwzqi6olnM9ptYQxxVacMsOEFPoc= +github.com/casbin/casbin/v2 v2.37.0/go.mod h1:vByNa/Fchek0KZUgG5wEsl7iFsiviAYKRtgrQfcJqHg= +github.com/census-instrumentation/opencensus-proto v0.4.1/go.mod h1:4T9NM4+4Vw91VeyqjLS6ao50K5bOcLKN6Q42XnYaRYw= +github.com/charithe/durationcheck v0.0.10/go.mod h1:bCWXb7gYRysD1CU3C+u4ceO49LoGOY1C1L6uouGNreQ= +github.com/chavacava/garif v0.0.0-20230227094218-b8c73b2037b8/go.mod h1:gakxgyXaaPkxvLw1XQxNGK4I37ys9iBRzNUx/B7pUCo= +github.com/chigopher/pathlib v0.12.0/go.mod h1:EJ5UtJ/sK8Nt6q3VWN+EwZLZ3g0afJiG8NegYiQQ/gQ= +github.com/clbanning/mxj v1.8.4/go.mod h1:BVjHeAH+rl9rs6f+QIpeRl0tfu10SXn1pUSa5PVGJng= +github.com/cloudflare/circl v1.3.1/go.mod h1:+CauBF6R70Jqcyl8N2hC8pAXYbWkGIezuSbuGLtRhnw= +github.com/cncf/udpa/go v0.0.0-20220112060539-c52dc94e7fbe/go.mod h1:6pvJx4me5XPnfI9Z40ddWsdw2W/uZgQLFXToKeRcDiI= +github.com/cncf/xds/go v0.0.0-20230607035331-e9ce68804cb4/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= +github.com/cockroachdb/sentry-go v0.6.1-cockroachdb.2/go.mod h1:8BT+cPK6xvFOcRlk0R8eg+OTkcqI6baNH4xAkpiYVvQ= +github.com/codegangsta/inject v0.0.0-20150114235600-33e0aa1cb7c0/go.mod h1:4Zcjuz89kmFXt9morQgcfYZAYZ5n8WHjt81YYWIwtTM= +github.com/coreos/go-semver v0.3.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= +github.com/curioswitch/go-reassign v0.2.0/go.mod h1:x6OpXuWvgfQaMGks2BZybTngWjT84hqJfKoO8Tt/Roc= +github.com/daixiang0/gci v0.10.1/go.mod h1:xtHP9N7AHdNvtRNfcx9gwTDfw7FRJx4bZUsiEfiNNAI= +github.com/denis-tingaikin/go-header v0.4.3/go.mod h1:0wOCWuN71D5qIgE2nz9KrKmuYBAC2Mra5RassOIQ2/c= +github.com/docker/cli v23.0.1+incompatible/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8= +github.com/docker/distribution v2.8.1+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w= +github.com/docker/docker v23.0.1+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= +github.com/docker/docker-credential-helpers v0.7.0/go.mod h1:rETQfLdHNT3foU5kuNkFR1R1V12OJRRO5lzt2D1b5X0= +github.com/eknkc/amber v0.0.0-20171010120322-cdade1c07385/go.mod h1:0vRUJqYpeSZifjYj7uP3BG/gKcuzL9xWVV/Y+cK33KM= +github.com/emirpasic/gods v1.18.1/go.mod h1:8tpGGwCnJ5H4r6BWwaV6OrWmMoPhUl5jm/FMNAnJvWQ= +github.com/envoyproxy/go-control-plane v0.11.1/go.mod h1:uhMcXKCQMEJHiAb0w+YGefQLaTEw+YhGluxZkrTmD0g= +github.com/envoyproxy/protoc-gen-validate v1.0.2/go.mod h1:GpiZQP3dDbg4JouG/NNS7QWXpgx6x8QiMKdmN72jogE= +github.com/esimonov/ifshort v1.0.4/go.mod h1:Pe8zjlRrJ80+q2CxHLfEOfTwxCZ4O+MuhcHcfgNWTk0= +github.com/ettle/strcase v0.1.1/go.mod h1:hzDLsPC7/lwKyBOywSHEP89nt2pDgdy+No1NBA9o9VY= +github.com/facebookgo/ensure v0.0.0-20200202191622-63f1cf65ac4c/go.mod h1:Yg+htXGokKKdzcwhuNDwVvN+uBxDGXJ7G/VN1d8fa64= +github.com/facebookgo/stack v0.0.0-20160209184415-751773369052/go.mod h1:UbMTZqLaRiH3MsBH8va0n7s1pQYcu3uTb8G4tygF4Zg= +github.com/facebookgo/subset v0.0.0-20200203212716-c811ad88dec4/go.mod h1:5tD+neXqOorC30/tWg0LCSkrqj/AR6gu8yY8/fpw1q0= +github.com/fatih/structs v1.1.0/go.mod h1:9NiDSp5zOcgEDl+j00MP/WkGVPOlPRLejGD8Ga6PJ7M= +github.com/fatih/structtag v1.2.0/go.mod h1:mBJUNpUnHmRKrKlQQlmCrh5PuhftFbNv8Ys4/aAZl94= +github.com/felixge/fgprof v0.9.3/go.mod h1:RdbpDgzqYVh/T9fPELJyV7EYJuHB55UTEULNun8eiPw= +github.com/firefart/nonamedreturns v1.0.4/go.mod h1:TDhe/tjI1BXo48CmYbUduTV7BdIga8MAO/xbKdcVsGI= +github.com/flosch/pongo2/v4 v4.0.2/go.mod h1:B5ObFANs/36VwxxlgKpdchIJHMvHB562PW+BWPhwZD8= +github.com/fzipp/gocyclo v0.6.0/go.mod h1:rXPyn8fnlpa0R2csP/31uerbiVBugk5whMdlyaLkLoA= +github.com/ghemawat/stream v0.0.0-20171120220530-696b145b53b9/go.mod h1:106OIgooyS7OzLDOpUGgm9fA3bQENb/cFSyyBmMoJDs= +github.com/go-chi/chi/v5 v5.0.8/go.mod h1:DslCQbL2OYiznFReuXYUmQ2hGd1aDpCnlMNITLSKoi8= +github.com/go-critic/go-critic v0.7.0/go.mod h1:moYzd7GdVXE2C2hYTwd7h0CPcqlUeclsyBRwMa38v64= +github.com/go-git/gcfg v1.5.0/go.mod h1:5m20vg6GwYabIxaOonVkTdrILxQMpEShl1xiMF4ua+E= +github.com/go-git/go-billy/v5 v5.4.1/go.mod h1:vjbugF6Fz7JIflbVpl1hJsGjSHNltrSw45YK/ukIvQg= +github.com/go-git/go-git/v5 v5.6.1/go.mod h1:mvyoL6Unz0PiTQrGQfSfiLFhBH1c1e84ylC2MDs4ee8= +github.com/go-logr/logr v1.2.3/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= +github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= +github.com/go-martini/martini v0.0.0-20170121215854-22fa46961aab/go.mod h1:/P9AEU963A2AYjv4d1V5eVL1CQbEJq6aCNHDDjibzu8= +github.com/go-toolsmith/astcast v1.1.0/go.mod h1:qdcuFWeGGS2xX5bLM/c3U9lewg7+Zu4mr+xPwZIB4ZU= +github.com/go-toolsmith/astcopy v1.1.0/go.mod h1:hXM6gan18VA1T/daUEHCFcYiW8Ai1tIwIzHY6srfEAw= +github.com/go-toolsmith/astequal v1.1.0/go.mod h1:sedf7VIdCL22LD8qIvv7Nn9MuWJruQA/ysswh64lffQ= +github.com/go-toolsmith/astfmt v1.1.0/go.mod h1:OrcLlRwu0CuiIBp/8b5PYF9ktGVZUjlNMV634mhwuQ4= +github.com/go-toolsmith/astp v1.1.0/go.mod h1:0T1xFGz9hicKs8Z5MfAqSUitoUYS30pDMsRVIDHs8CA= +github.com/go-toolsmith/strparse v1.1.0/go.mod h1:7ksGy58fsaQkGQlY8WVoBFNyEPMGuJin1rfoPS4lBSQ= +github.com/go-toolsmith/typep v1.1.0/go.mod h1:fVIw+7zjdsMxDA3ITWnH1yOiw1rnTQKCsF/sk2H/qig= +github.com/go-xmlfmt/xmlfmt v1.1.2/go.mod h1:aUCEOzzezBEjDBbFBoSiya/gduyIiWYRP6CnSFIV8AM= +github.com/go-zookeeper/zk v1.0.2/go.mod h1:nOB03cncLtlp4t+UAkGSV+9beXP/akpekBwL+UX1Qcw= +github.com/gobwas/glob v0.2.3/go.mod h1:d3Ez4x06l9bZtSvzIay5+Yzi0fmZzPgnTbPcKjJAkT8= +github.com/gofrs/flock v0.8.1/go.mod h1:F1TvTiK9OcQqauNUHlbJvyl9Qa1QvF/gOUDKA14jxHU= +github.com/gofrs/uuid v4.4.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM= +github.com/gofrs/uuid/v5 v5.0.0/go.mod h1:CDOjlDMVAtN56jqyRUZh58JT31Tiw7/oQyEXZV+9bD8= +github.com/gogo/status v1.1.0/go.mod h1:BFv9nrluPLmrS0EmGVvLaPNmRosr9KapBYd5/hpY1WM= +github.com/golang-jwt/jwt/v4 v4.0.0/go.mod h1:/xlHOz8bRuivTWchD4jCa+NbatV+wEUSzwAxVc6locg= +github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golangci/check v0.0.0-20180506172741-cfe4005ccda2/go.mod h1:k9Qvh+8juN+UKMCS/3jFtGICgW8O96FVaZsaxdzDkR4= +github.com/golangci/dupl v0.0.0-20180902072040-3e9179ac440a/go.mod h1:ryS0uhF+x9jgbj/N71xsEqODy9BN81/GonCZiOzirOk= +github.com/golangci/go-misc v0.0.0-20220329215616-d24fe342adfe/go.mod h1:gjqyPShc/m8pEMpk0a3SeagVb0kaqvhscv+i9jI5ZhQ= +github.com/golangci/gofmt v0.0.0-20220901101216-f2edd75033f2/go.mod h1:9wOXstvyDRshQ9LggQuzBCGysxs3b6Uo/1MvYCR2NMs= +github.com/golangci/golangci-lint v1.52.0/go.mod h1:wlTh+d/oVlgZC2yCe6nlxrxNAnuhEQC0Zdygoh72Uak= +github.com/golangci/lint-1 v0.0.0-20191013205115-297bf364a8e0/go.mod h1:66R6K6P6VWk9I95jvqGxkqJxVWGFy9XlDwLwVz1RCFg= +github.com/golangci/maligned v0.0.0-20180506175553-b1d89398deca/go.mod h1:tvlJhZqDe4LMs4ZHD0oMUlt9G2LWuDGoisJTBzLMV9o= +github.com/golangci/misspell v0.4.0/go.mod h1:W6O/bwV6lGDxUCChm2ykw9NQdd5bYd1Xkjo88UcWyJc= +github.com/golangci/revgrep v0.0.0-20220804021717-745bb2f7c2e6/go.mod h1:0AKcRCkMoKvUvlf89F6O7H2LYdhr1zBh736mBItOdRs= +github.com/golangci/unconvert v0.0.0-20180507085042-28b1c447d1f4/go.mod h1:Izgrg8RkN3rCIMLGE9CyYmU9pY2Jer6DgANEnZ/L/cQ= +github.com/google/go-containerregistry v0.13.0/go.mod h1:J9FQ+eSS4a1aC2GNZxvNpbWhgp0487v+cgiilB4FqDo= +github.com/google/pprof v0.0.0-20230228050547-1710fef4ab10/go.mod h1:79YE0hCXdHag9sBkw2o+N/YnZtTkXi0UT9Nnixa5eYk= +github.com/google/s2a-go v0.1.3/go.mod h1:Ej+mSEMGRnqRzjc7VtF+jdBwYG5fuJfiZ8ELkjEwM0A= +github.com/google/uuid v1.3.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/googleapis/enterprise-certificate-proxy v0.2.3/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= +github.com/googleapis/gax-go/v2 v2.8.0/go.mod h1:4orTrqY6hXxxaUL4LHIPl6lGo8vAE38/qKbhSAKP6QI= +github.com/gordonklaus/ineffassign v0.0.0-20230107090616-13ace0543b28/go.mod h1:Qcp2HIAYhR7mNUVSIxZww3Guk4it82ghYcEXIAk+QT0= +github.com/gorilla/css v1.0.0/go.mod h1:Dn721qIggHpt4+EFCcTLTU/vk5ySda2ReITrtgBl60c= +github.com/gostaticanalysis/analysisutil v0.7.1/go.mod h1:v21E3hY37WKMGSnbsw2S/ojApNWb6C1//mXO48CXbVc= +github.com/gostaticanalysis/comment v1.4.2/go.mod h1:KLUTGDv6HOCotCH8h2erHKmpci2ZoR8VPu34YA2uzdM= +github.com/gostaticanalysis/forcetypeassert v0.1.0/go.mod h1:qZEedyP/sY1lTGV1uJ3VhWZ2mqag3IkWsDHVbplHXak= +github.com/gostaticanalysis/nilerr v0.1.1/go.mod h1:wZYb6YI5YAxxq0i1+VJbY0s2YONW0HU0GPE3+5PWN4A= +github.com/gotestyourself/gotestyourself v2.2.0+incompatible/go.mod h1:zZKM6oeNM8k+FRljX1mnzVYeS8wiGgQyvST1/GafPbY= +github.com/guptarohit/asciigraph v0.5.5/go.mod h1:dYl5wwK4gNsnFf9Zp+l06rFiDZ5YtXM6x7SRWZ3KGag= +github.com/hashicorp/consul/api v1.20.0/go.mod h1:nR64eD44KQ59Of/ECwt2vUmIK2DKsDzAwTmwmLl8Wpo= +github.com/hashicorp/errwrap v1.1.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= +github.com/hashicorp/go-cleanhttp v0.5.2/go.mod h1:kO/YDlP8L1346E6Sodw+PrpBSV4/SoxCXGY6BqNFT48= +github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM= +github.com/hashicorp/go-rootcerts v1.0.2/go.mod h1:pqUvnprVnM5bf7AOirdbb01K4ccR319Vf4pU3K5EGc8= +github.com/hashicorp/go-version v1.6.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= +github.com/hashicorp/serf v0.10.1/go.mod h1:yL2t6BqATOLGc5HF7qbFkTfXoPIY0WZdWHfEvMqbG+4= +github.com/hexops/gotextdiff v1.0.3/go.mod h1:pSWU5MAI3yDq+fZBTazCSJysOMbxWL1BSow5/V2vxeg= +github.com/hudl/fargo v1.4.0/go.mod h1:9Ai6uvFy5fQNq6VPKtg+Ceq1+eTY4nKUlR2JElEOcDo= +github.com/hydrogen18/memlistener v1.0.0/go.mod h1:qEIFzExnS6016fRpRfxrExeVn2gbClQA99gQhnIcdhE= +github.com/imdario/mergo v0.3.13/go.mod h1:4lJ1jqUDcsbIECGy0RUJAXNIhg+6ocWgb1ALK2O4oXg= +github.com/influxdata/influxdb1-client v0.0.0-20200827194710-b269163b24ab/go.mod h1:qj24IKcXYK6Iy9ceXlo3Tc+vtHo9lIhSX5JddghvEPo= +github.com/informalsystems/tm-load-test v1.3.0/go.mod h1:OQ5AQ9TbT5hKWBNIwsMjn6Bf4O0U4b1kRc+0qZlQJKw= +github.com/iris-contrib/schema v0.0.6/go.mod h1:iYszG0IOsuIsfzjymw1kMzTL8YQcCWlm65f3wX8J5iA= +github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99/go.mod h1:1lJo3i6rXxKeerYnT8Nvf0QmHCRC1n8sfWVwXF2Frvo= +github.com/jdxcode/netrc v0.0.0-20221124155335-4616370d1a84/go.mod h1:Zi/ZFkEqFHTm7qkjyNJjaWH4LQA9LQhGJyF0lTYGpxw= +github.com/jgautheron/goconst v1.5.1/go.mod h1:aAosetZ5zaeC/2EfMeRswtxUFBpe2Hr7HzkgX4fanO4= +github.com/jingyugao/rowserrcheck v1.1.1/go.mod h1:4yvlZSDb3IyDTUZJUmpZfm2Hwok+Dtp+nu2qOq+er9c= +github.com/jinzhu/copier v0.3.5/go.mod h1:DfbEm0FYsaqBcKcFuvmOZb218JkPGtvSHsKg8S8hyyg= +github.com/jirfag/go-printf-func-name v0.0.0-20200119135958-7558a9eaa5af/go.mod h1:HEWGJkRDzjJY2sqdDwxccsGicWEf9BQOZsq2tV+xzM0= +github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo= +github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFFd8Hwg//Y= +github.com/julz/importas v0.1.0/go.mod h1:oSFU2R4XK/P7kNBrnL/FEQlDGN1/6WoxXEjSSXO0DV0= +github.com/junk1tm/musttag v0.5.0/go.mod h1:PcR7BA+oREQYvHwgjIDmw3exJeds5JzRcvEJTfjrA0M= +github.com/kataras/blocks v0.0.7/go.mod h1:UJIU97CluDo0f+zEjbnbkeMRlvYORtmc1304EeyXf4I= +github.com/kataras/golog v0.1.8/go.mod h1:rGPAin4hYROfk1qT9wZP6VY2rsb4zzc37QpdPjdkqVw= +github.com/kataras/iris/v12 v12.2.0/go.mod h1:BLzBpEunc41GbE68OUaQlqX4jzi791mx5HU04uPb90Y= +github.com/kataras/pio v0.0.11/go.mod h1:38hH6SWH6m4DKSYmRhlrCJ5WItwWgCVrTNU62XZyUvI= +github.com/kataras/sitemap v0.0.6/go.mod h1:dW4dOCNs896OR1HmG+dMLdT7JjDk7mYBzoIRwuj5jA4= +github.com/kataras/tunnel v0.0.4/go.mod h1:9FkU4LaeifdMWqZu7o20ojmW4B7hdhv2CMLwfnHGpYw= +github.com/kevinburke/ssh_config v1.2.0/go.mod h1:CT57kijsi8u/K/BOFA39wgDQJ9CxiF4nAY/ojJ6r6mM= +github.com/kisielk/errcheck v1.6.3/go.mod h1:nXw/i/MfnvRHqXa7XXmQMUB0oNFGuBrNI8d8NLy0LPw= +github.com/kkHAIKE/contextcheck v1.1.4/go.mod h1:1+i/gWqokIa+dm31mqGLZhZJ7Uh44DJGZVmr6QRBNJg= +github.com/klauspost/pgzip v1.2.5/go.mod h1:Ch1tH69qFZu15pkjo5kYi6mth2Zzwzt50oCQKQE9RUs= +github.com/kulti/thelper v0.6.3/go.mod h1:DsqKShOvP40epevkFrvIwkCMNYxMeTNjdWL4dqWHZ6I= +github.com/kunwardeep/paralleltest v1.0.6/go.mod h1:Y0Y0XISdZM5IKm3TREQMZ6iteqn1YuwCsJO/0kL9Zes= +github.com/kyoh86/exportloopref v0.1.11/go.mod h1:qkV4UF1zGl6EkF1ox8L5t9SwyeBAZ3qLMd6up458uqA= +github.com/labstack/echo/v4 v4.10.0/go.mod h1:S/T/5fy/GigaXnHTkh0ZGe4LpkkQysvRjFMSUTkDRNQ= +github.com/labstack/gommon v0.4.0/go.mod h1:uW6kP17uPlLJsD3ijUYn3/M5bAxtlZhMI6m3MFxTMTM= +github.com/ldez/gomoddirectives v0.2.3/go.mod h1:cpgBogWITnCfRq2qGoDkKMEVSaarhdBr6g8G04uz6d0= +github.com/ldez/tagliatelle v0.4.0/go.mod h1:mNtTfrHy2haaBAw+VT7IBV6VXBThS7TCreYWbBcJ87I= +github.com/leonklingele/grouper v1.1.1/go.mod h1:uk3I3uDfi9B6PeUjsCKi6ndcf63Uy7snXgR4yDYQVDY= +github.com/lufeee/execinquery v1.2.1/go.mod h1:EC7DrEKView09ocscGHC+apXMIaorh4xqSxS/dy8SbM= +github.com/mailgun/raymond/v2 v2.0.48/go.mod h1:lsgvL50kgt1ylcFJYZiULi5fjPBkkhNfj4KA0W54Z18= +github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= +github.com/maratori/testableexamples v1.0.0/go.mod h1:4rhjL1n20TUTT4vdh3RDqSizKLyXp7K2u6HgraZCGzE= +github.com/maratori/testpackage v1.1.1/go.mod h1:s4gRK/ym6AMrqpOa/kEbQTV4Q4jb7WeLZzVhVVVOQMc= +github.com/matoous/godox v0.0.0-20230222163458-006bad1f9d26/go.mod h1:1BELzlh859Sh1c6+90blK8lbYy0kwQf1bYlBhBysy1s= +github.com/mattn/go-runewidth v0.0.9/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI= +github.com/matttproud/golang_protobuf_extensions v1.0.4 h1:mmDVorXM7PCGKw94cs5zkfA9PSy5pEvNWRP0ET0TIVo= +github.com/matttproud/golang_protobuf_extensions v1.0.4/go.mod h1:BSXmuO+STAnVfrANrmjBb36TMTDstsz7MSK+HVaYKv4= +github.com/mbilski/exhaustivestruct v1.2.0/go.mod h1:OeTBVxQWoEmB2J2JCHmXWPJ0aksxSUOUy+nvtVEfzXc= +github.com/mgechev/revive v1.3.1/go.mod h1:YlD6TTWl2B8A103R9KWJSPVI9DrEf+oqr15q21Ld+5I= +github.com/microcosm-cc/bluemonday v1.0.23/go.mod h1:mN70sk7UkkF8TUr2IGBpNN0jAgStuPzlK76QuruE/z4= +github.com/miekg/dns v1.1.43/go.mod h1:+evo5L0630/F6ca/Z9+GAqzhjGyn8/c+TBaOyfEl0V4= +github.com/moby/term v0.0.0-20221205130635-1aeaba878587/go.mod h1:8FzsFHVUBGZdbDsJw/ot+X+d5HLUbvklYLJ9uGfcI3Y= +github.com/moricho/tparallel v0.3.0/go.mod h1:leENX2cUv7Sv2qDgdi0D0fCftN8fRC67Bcn8pqzeYNI= +github.com/morikuni/aec v1.0.0/go.mod h1:BbKIizmSmc5MMPqRYbxO4ZU0S0+P200+tUnFx7PXmsc= +github.com/nakabonne/nestif v0.3.1/go.mod h1:9EtoZochLn5iUprVDmDjqGKPofoUEBL8U4Ngq6aY7OE= +github.com/nats-io/jwt/v2 v2.0.3/go.mod h1:VRP+deawSXyhNjXmxPCHskrR6Mq50BqpEI5SEcNiGlY= +github.com/nats-io/nats-server/v2 v2.5.0/go.mod h1:Kj86UtrXAL6LwYRA6H4RqzkHhK0Vcv2ZnKD5WbQ1t3g= +github.com/nats-io/nats.go v1.12.1/go.mod h1:BPko4oXsySz4aSWeFgOHLZs3G4Jq4ZAyE6/zMCxRT6w= +github.com/nats-io/nkeys v0.3.0/go.mod h1:gvUNGjVcM2IPr5rCsRsC6Wb3Hr2CQAm08dsxtV6A5y4= +github.com/nbutton23/zxcvbn-go v0.0.0-20210217022336-fa2cb2858354/go.mod h1:KSVJerMDfblTH7p5MZaTt+8zaT2iEk3AkVb9PQdZuE8= +github.com/nishanths/exhaustive v0.9.5/go.mod h1:IbwrGdVMizvDcIxPYGVdQn5BqWJaOwpCvg4RGb8r/TA= +github.com/nishanths/predeclared v0.2.2/go.mod h1:RROzoN6TnGQupbC+lqggsOlcgysk3LMK/HI84Mp280c= +github.com/nunnatsa/ginkgolinter v0.9.0/go.mod h1:FHaMLURXP7qImeH6bvxWJUpyH+2tuqe5j4rW1gxJRmI= +github.com/olekukonko/tablewriter v0.0.5/go.mod h1:hPp6KlRPjbx+hW8ykQs1w3UBbZlj6HuIJcUGPhkA7kY= +github.com/opentracing/opentracing-go v1.2.0/go.mod h1:GxEUsuufX4nBwe+T+Wl9TAgYrxe9dPLANfrWvHYVTgc= +github.com/openzipkin/zipkin-go v0.2.5/go.mod h1:KpXfKdgRDnnhsxw4pNIH9Md5lyFqKUa4YDFlwRYAMyE= +github.com/pelletier/go-toml v1.2.0 h1:T5zMGML61Wp+FlcbWjRDT7yAxhJNAiPPLOFECq181zc= +github.com/performancecopilot/speed/v4 v4.0.0/go.mod h1:qxrSyuDGrTOWfV+uKRFhfxw6h/4HXRGUiZiufxo49BM= +github.com/pjbgf/sha1cd v0.3.0/go.mod h1:nZ1rrWOcGJ5uZgEEVL1VUM9iRQiZvWdbZjkKyFzPPsI= +github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8/go.mod h1:HKlIX3XHQyzLZPlr7++PzdhaXEj94dEiJgZDTsxEqUI= +github.com/pkg/profile v1.7.0/go.mod h1:8Uer0jas47ZQMJ7VD+OHknK4YDY07LPUC6dEvqDjvNo= +github.com/pointlander/compress v1.1.1-0.20190518213731-ff44bd196cc3/go.mod h1:q5NXNGzqj5uPnVuhGkZfmgHqNUhf15VLi6L9kW0VEc0= +github.com/pointlander/jetset v1.0.1-0.20190518214125-eee7eff80bd4/go.mod h1:RdR1j20Aj5pB6+fw6Y9Ur7lMHpegTEjY1vc19hEZL40= +github.com/pointlander/peg v1.0.1/go.mod h1:5hsGDQR2oZI4QoWz0/Kdg3VSVEC31iJw/b7WjqCBGRI= +github.com/polyfloyd/go-errorlint v1.4.0/go.mod h1:qJCkPeBn+0EXkdKTrUCcuFStM2xrDKfxI3MGLXPexUs= +github.com/quasilyte/go-ruleguard v0.3.19/go.mod h1:lHSn69Scl48I7Gt9cX3VrbsZYvYiBYszZOZW4A+oTEw= +github.com/quasilyte/gogrep v0.5.0/go.mod h1:Cm9lpz9NZjEoL1tgZ2OgeUKPIxL1meE7eo60Z6Sk+Ng= +github.com/quasilyte/regex/syntax v0.0.0-20210819130434-b3f0c404a727/go.mod h1:rlzQ04UMyJXu/aOvhd8qT+hvDrFpiwqp8MRXDY9szc0= +github.com/quasilyte/stdinfo v0.0.0-20220114132959-f7386bf02567/go.mod h1:DWNGW8A4Y+GyBgPuaQJuWiy0XYftx4Xm/y5Jqk9I6VQ= +github.com/ryancurrah/gomodguard v1.3.0/go.mod h1:ggBxb3luypPEzqVtq33ee7YSN35V28XeGnid8dnni50= +github.com/ryanrolds/sqlclosecheck v0.4.0/go.mod h1:TBRRjzL31JONc9i4XMinicuo+s+E8yKZ5FN8X3G6CKQ= +github.com/sagikazarmark/crypt v0.10.0/go.mod h1:gwTNHQVoOS3xp9Xvz5LLR+1AauC5M6880z5NWzdhOyQ= +github.com/sanposhiho/wastedassign/v2 v2.0.7/go.mod h1:KyZ0MWTwxxBmfwn33zh3k1dmsbF2ud9pAAGfoLfjhtI= +github.com/sashamelentyev/interfacebloat v1.1.0/go.mod h1:+Y9yU5YdTkrNvoX0xHc84dxiN1iBi9+G8zZIhPVoNjQ= +github.com/sashamelentyev/usestdlibvars v1.23.0/go.mod h1:YPwr/Y1LATzHI93CqoPUN/2BzGQ/6N/cl/KwgR0B/aU= +github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0= +github.com/schollz/closestmatch v2.1.0+incompatible/go.mod h1:RtP1ddjLong6gTkbtmuhtR2uUrrJOpYzYRvbcPAid+g= +github.com/securego/gosec/v2 v2.15.0/go.mod h1:VOjTrZOkUtSDt2QLSJmQBMWnvwiQPEjg0l+5juIqGk8= +github.com/sergi/go-diff v1.2.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= +github.com/shazow/go-diff v0.0.0-20160112020656-b6b7b6733b8c/go.mod h1:/PevMnwAxekIXwN8qQyfc5gl2NlkB3CQlkizAbOkeBs= +github.com/sivchari/containedctx v1.0.2/go.mod h1:PwZOeqm4/DLoJOqMSIJs3aKqXRX4YO+uXww087KZ7Bw= +github.com/sivchari/nosnakecase v1.7.0/go.mod h1:CwDzrzPea40/GB6uynrNLiorAlgFRvRbFSgJx2Gs+QY= +github.com/sivchari/tenv v1.7.1/go.mod h1:64yStXKSOxDfX47NlhVwND4dHwfZDdbp2Lyl018Icvg= +github.com/skeema/knownhosts v1.1.0/go.mod h1:sKFq3RD6/TKZkSWn8boUbDC7Qkgcv+8XXijpFO6roag= +github.com/snikch/goodman v0.0.0-20171125024755-10e37e294daa/go.mod h1:oJyF+mSPHbB5mVY2iO9KV3pTt/QbIkGaO8gQ2WrDbP4= +github.com/sonatard/noctx v0.0.2/go.mod h1:kzFz+CzWSjQ2OzIm46uJZoXuBpa2+0y3T36U18dWqIo= +github.com/sourcegraph/go-diff v0.7.0/go.mod h1:iBszgVvyxdc8SFZ7gm69go2KDdt3ag071iBaWPF6cjs= +github.com/ssgreg/nlreturn/v2 v2.2.1/go.mod h1:E/iiPB78hV7Szg2YfRgyIrk1AD6JVMTRkkxBiELzh2I= +github.com/stbenjam/no-sprintf-host-port v0.1.1/go.mod h1:TLhvtIvONRzdmkFiio4O8LHsN9N74I+PhRquPsxpL0I= +github.com/streadway/amqp v1.0.0/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw= +github.com/streadway/handy v0.0.0-20200128134331-0f66f006fb2e/go.mod h1:qNTQ5P5JnDBl6z3cMAg/SywNDC5ABu5ApDIw6lUbRmI= +github.com/t-yuki/gocover-cobertura v0.0.0-20180217150009-aaee18c8195c/go.mod h1:SbErYREK7xXdsRiigaQiQkI9McGRzYMvlKYaP3Nimdk= +github.com/tdakkota/asciicheck v0.2.0/go.mod h1:Qb7Y9EgjCLJGup51gDHFzbI08/gbGhL/UVhYIPWG2rg= +github.com/tdewolff/minify/v2 v2.12.4/go.mod h1:h+SRvSIX3kwgwTFOpSckvSxgax3uy8kZTSF1Ojrr3bk= +github.com/tdewolff/parse/v2 v2.6.4/go.mod h1:woz0cgbLwFdtbjJu8PIKxhW05KplTFQkOdX78o+Jgrs= +github.com/tecbot/gorocksdb v0.0.0-20191217155057-f0fad39f321c/go.mod h1:ahpPrc7HpcfEWDQRZEmnXMzHY03mLDYMCxeDzy46i+8= +github.com/tetafro/godot v1.4.11/go.mod h1:LR3CJpxDVGlYOWn3ZZg1PgNZdTUvzsZWu8xaEohUpn8= +github.com/timakin/bodyclose v0.0.0-20221125081123-e39cf3fc478e/go.mod h1:27bSVNWSBOHm+qRp1T9qzaIpsWEP6TbUnei/43HK+PQ= +github.com/timonwong/loggercheck v0.9.4/go.mod h1:caz4zlPcgvpEkXgVnAJGowHAMW2NwHaNlpS8xDbVhTg= +github.com/tomarrell/wrapcheck/v2 v2.8.1/go.mod h1:/n2Q3NZ4XFT50ho6Hbxg+RV1uyo2Uow/Vdm9NQcl5SE= +github.com/tommy-muehle/go-mnd/v2 v2.5.1/go.mod h1:WsUAkMJMYww6l/ufffCD3m+P7LEvr8TnZn9lwVDlgzw= +github.com/ultraware/funlen v0.0.3/go.mod h1:Dp4UiAus7Wdb9KUZsYWZEWiRzGuM2kXM1lPbfaF6xhA= +github.com/ultraware/whitespace v0.0.5/go.mod h1:aVMh/gQve5Maj9hQ/hg+F75lr/X5A89uZnzAmWSineA= +github.com/urfave/negroni v1.0.0/go.mod h1:Meg73S6kFm/4PpbYdq35yYWoCZ9mS/YSx+lKnmiohz4= +github.com/uudashr/gocognit v1.0.6/go.mod h1:nAIUuVBnYU7pcninia3BHOvQkpQCeO76Uscky5BOwcY= +github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc= +github.com/valyala/fasthttp v1.40.0/go.mod h1:t/G+3rLek+CyY9bnIE+YlMRddxVAAGjhxndDB4i4C0I= +github.com/valyala/fasttemplate v1.2.2/go.mod h1:KHLXt3tVN2HBp8eijSv/kGJopbvo7S+qRAEEKiv+SiQ= +github.com/vektra/mockery/v2 v2.23.1/go.mod h1:Zh3Kv1ckKs6FokhlVLcCu6UTyzfS3M8mpROz1lBNp+w= +github.com/vmihailenco/msgpack/v5 v5.3.5/go.mod h1:7xyJ9e+0+9SaZT0Wt1RGleJXzli6Q/V5KbhBonMG9jc= +github.com/vmihailenco/tagparser/v2 v2.0.0/go.mod h1:Wri+At7QHww0WTrCBeu4J6bNtoV6mEfg5OIWRZA9qds= +github.com/xanzy/ssh-agent v0.3.3/go.mod h1:6dzNDKs0J9rVPHPhaGCukekBHKqfl+L3KghI1Bc68Uw= +github.com/xhit/go-str2duration/v2 v2.1.0/go.mod h1:ohY8p+0f07DiV6Em5LKB0s2YpLtXVyJfNt1+BlmyAsU= +github.com/yagipy/maintidx v1.0.0/go.mod h1:0qNf/I/CCZXSMhsRsrEPDZ+DkekpKLXAJfsTACwgXLk= +github.com/yeya24/promlinter v0.2.0/go.mod h1:u54lkmBOZrpEbQQ6gox2zWKKLKu2SGe+2KOiextY+IA= +github.com/yosssi/ace v0.0.5/go.mod h1:ALfIzm2vT7t5ZE7uoIZqF3TQ7SAOyupFZnkrF5id+K0= +gitlab.com/bosi/decorder v0.2.3/go.mod h1:9K1RB5+VPNQYtXtTDAzd2OEftsZb1oV0IrJrzChSdGE= +go.etcd.io/etcd/api/v3 v3.5.9/go.mod h1:uyAal843mC8uUVSLWz6eHa/d971iDGnCRpmKd2Z+X8k= +go.etcd.io/etcd/client/pkg/v3 v3.5.9/go.mod h1:y+CzeSmkMpWN2Jyu1npecjB9BBnABxGM4pN8cGuJeL4= +go.etcd.io/etcd/client/v2 v2.305.7/go.mod h1:GQGT5Z3TBuAQGvgPfhR7VPySu/SudxmEkRq9BgzFU6s= +go.etcd.io/etcd/client/v3 v3.5.9/go.mod h1:i/Eo5LrZ5IKqpbtpPDuaUnDOUv471oDg8cjQaUr2MbA= +go.etcd.io/gofail v0.1.0/go.mod h1:VZBCXYGZhHAinaBiiqYvuDynvahNsAyLFwB3kEHKz1M= +go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= +go.opentelemetry.io/otel v1.14.0/go.mod h1:o4buv+dJzx8rohcUeRmWUZhqupFvzWis188WlggnNeU= +go.opentelemetry.io/otel/sdk v1.14.0/go.mod h1:bwIC5TjrNG6QDCHNWvW4HLHtUQ4I+VQDsnjhvyZCALM= +go.opentelemetry.io/otel/trace v1.14.0/go.mod h1:8avnQLK+CG77yNLUae4ea2JDQ6iT+gozhnZjy/rw9G8= +go.uber.org/atomic v1.10.0/go.mod h1:LUxbIzbOniOlMKjJjyPfpl4v+PKK2cNJn91OQbhoJI0= +go.uber.org/multierr v1.10.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= +go.uber.org/zap v1.24.0/go.mod h1:2kMP+WWQ8aoFoedH3T2sq6iJ2yDWpHbP0f6MQbS9Gkg= +golang.org/x/exp/typeparams v0.0.0-20230224173230-c95f2b4c22f2/go.mod h1:AbB0pIl9nAr9wVwH+Z2ZpaocVmF5I4GyWCDIsVjR0bk= +golang.org/x/oauth2 v0.13.0/go.mod h1:/JMhi4ZRXAf4HG9LiNmxvk+45+96RUlVThiH8FzNBn0= +golang.org/x/perf v0.0.0-20230113213139-801c7ef9e5c5/go.mod h1:UBKtEnL8aqnd+0JHqZ+2qoMDwtuy6cYhhKNoHLBiTQc= +golang.org/x/time v0.3.0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= +gonum.org/v1/gonum v0.12.0/go.mod h1:73TDxJfAAHeA8Mk9mf8NlIppyhQNo5GLTcYeqgo2lvY= +google.golang.org/api v0.122.0/go.mod h1:gcitW0lvnyWjSp9nKxAbdHKIZ6vF4aajGueeslZOyms= +google.golang.org/appengine v1.6.8/go.mod h1:1jJ3jBArFh5pcgW8gCtRJnepW8FzD1V44FJffLiz/Ds= +gotest.tools v2.2.0+incompatible h1:VsBPFP1AI068pPrMxtb/S8Zkgf9xEmTLJjfM+P5UIEo= +gotest.tools v2.2.0+incompatible/go.mod h1:DsYFclhRJ6vuDpmuTbkuFWG+y2sxOXAzmJt81HFBacw= +honnef.co/go/tools v0.4.3/go.mod h1:36ZgoUOrqOk1GxwHhyryEkq8FQWkUO2xGuSMhUCcdvA= +mvdan.cc/gofumpt v0.4.0/go.mod h1:PljLOHDeZqgS8opHRKLzp2It2VBuSdteAgqUfzMTxlQ= +mvdan.cc/interfacer v0.0.0-20180901003855-c20040233aed/go.mod h1:Xkxe497xwlCKkIaQYRfC7CSLworTXY9RMqwhhCm+8Nc= +mvdan.cc/lint v0.0.0-20170908181259-adc824a0674b/go.mod h1:2odslEg/xrtNQqCYg2/jCoyKnw3vv5biOc3JnIcYfL4= +mvdan.cc/unparam v0.0.0-20221223090309-7455f1af531d/go.mod h1:IeHQjmn6TOD+e4Z3RFiZMMsLVL+A96Nvptar8Fj71is= diff --git a/install-proto-tools.sh b/install-proto-tools.sh new file mode 100755 index 0000000..7689b85 --- /dev/null +++ b/install-proto-tools.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +go install github.com/bufbuild/buf/cmd/buf@latest +go install github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway@latest +go install github.com/cosmos/gogoproto/protoc-gen-gocosmos@latest +go install github.com/cosmos/cosmos-proto/cmd/protoc-gen-go-pulsar@latest +go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest diff --git a/x/escrow/.golangci.yaml b/x/escrow/.golangci.yaml new file mode 100644 index 0000000..80d352c --- /dev/null +++ b/x/escrow/.golangci.yaml @@ -0,0 +1,32 @@ +run: + skip-files: + - ".*\\.pb\\.go$" + - ".*\\.pb\\.gw\\.go$" + - ".*\\.pulsar\\.go$" + - ".*\\.mock\\.go$" + +linters: + enable: + - depguard + - dogsled + - exportloopref + - goconst + - gocritic + - gofumpt + - gosec + - misspell + - nakedret + - nolintlint + - revive + - stylecheck + - unconvert + +linters-settings: + gci: + custom-order: true + sections: + - standard + - default + - prefix(cosmossdk.io) + - prefix(github.com/cosmos/cosmos-sdk) + - prefix(github.com/0tech/andromeda) diff --git a/x/escrow/andromeda/escrow/module/v1alpha1/module.pb.go b/x/escrow/andromeda/escrow/module/v1alpha1/module.pb.go new file mode 100644 index 0000000..c6c6b9d --- /dev/null +++ b/x/escrow/andromeda/escrow/module/v1alpha1/module.pb.go @@ -0,0 +1,327 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: andromeda/escrow/module/v1alpha1/module.proto + +package modulev1alpha1 + +import ( + _ "cosmossdk.io/api/cosmos/app/v1alpha1" + fmt "fmt" + proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// 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 + +// Module is the config object of the module. +type Module struct { + // authority defines the custom module authority. If not set, defaults to the governance module. + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` +} + +func (m *Module) Reset() { *m = Module{} } +func (m *Module) String() string { return proto.CompactTextString(m) } +func (*Module) ProtoMessage() {} +func (*Module) Descriptor() ([]byte, []int) { + return fileDescriptor_8c32a5ff8b008dfb, []int{0} +} +func (m *Module) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Module) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Module.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 *Module) XXX_Merge(src proto.Message) { + xxx_messageInfo_Module.Merge(m, src) +} +func (m *Module) XXX_Size() int { + return m.Size() +} +func (m *Module) XXX_DiscardUnknown() { + xxx_messageInfo_Module.DiscardUnknown(m) +} + +var xxx_messageInfo_Module proto.InternalMessageInfo + +func (m *Module) GetAuthority() string { + if m != nil { + return m.Authority + } + return "" +} + +func init() { + proto.RegisterType((*Module)(nil), "andromeda.escrow.module.v1alpha1.Module") +} + +func init() { + proto.RegisterFile("andromeda/escrow/module/v1alpha1/module.proto", fileDescriptor_8c32a5ff8b008dfb) +} + +var fileDescriptor_8c32a5ff8b008dfb = []byte{ + // 283 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0x4d, 0xcc, 0x4b, 0x29, + 0xca, 0xcf, 0x4d, 0x4d, 0x49, 0xd4, 0x4f, 0x2d, 0x4e, 0x2e, 0xca, 0x2f, 0xd7, 0xcf, 0xcd, 0x4f, + 0x29, 0xcd, 0x49, 0xd5, 0x2f, 0x33, 0x4c, 0xcc, 0x29, 0xc8, 0x48, 0x34, 0x84, 0xf2, 0xf5, 0x0a, + 0x8a, 0xf2, 0x4b, 0xf2, 0x85, 0x14, 0xe0, 0xca, 0xf5, 0x20, 0xca, 0xf5, 0xa0, 0xd2, 0x30, 0xe5, + 0x52, 0x0a, 0xc9, 0xf9, 0xc5, 0xb9, 0xf9, 0xc5, 0xfa, 0x89, 0x05, 0x05, 0xd8, 0xcd, 0x50, 0x0a, + 0xe6, 0x62, 0xf3, 0x05, 0xf3, 0x85, 0x64, 0xb8, 0x38, 0x13, 0x4b, 0x4b, 0x32, 0xf2, 0x8b, 0x32, + 0x4b, 0x2a, 0x25, 0x18, 0x15, 0x18, 0x35, 0x38, 0x83, 0x10, 0x02, 0x56, 0xda, 0xbb, 0x0e, 0x4c, + 0xbb, 0xc5, 0xa8, 0xca, 0xa5, 0x9c, 0x9e, 0x59, 0x92, 0x51, 0x9a, 0xa4, 0x97, 0x9c, 0x9f, 0xab, + 0x6f, 0x50, 0x92, 0x9a, 0x9c, 0xa1, 0x8f, 0x70, 0x73, 0x05, 0xd4, 0xd5, 0x4e, 0xf3, 0x99, 0x4e, + 0x3c, 0x92, 0x63, 0xbc, 0xf0, 0x48, 0x8e, 0xf1, 0xc1, 0x23, 0x39, 0xc6, 0x09, 0x8f, 0xe5, 0x18, + 0x2e, 0x3c, 0x96, 0x63, 0xb8, 0xf1, 0x58, 0x8e, 0x81, 0x4b, 0x25, 0x39, 0x3f, 0x57, 0x8f, 0x90, + 0xbb, 0x9d, 0xb8, 0x21, 0x6e, 0x0a, 0x00, 0x39, 0x31, 0x80, 0x31, 0x4a, 0x9f, 0x50, 0xb8, 0x58, + 0x43, 0xf8, 0x30, 0xee, 0x22, 0x26, 0x66, 0x47, 0x57, 0xdf, 0x55, 0x4c, 0x0a, 0x8e, 0x70, 0x8b, + 0x5c, 0x21, 0x16, 0x41, 0xcc, 0xd5, 0x0b, 0x83, 0x2a, 0x3c, 0x85, 0xa4, 0x24, 0x06, 0xa2, 0x24, + 0x06, 0xa2, 0x24, 0x06, 0xa6, 0xe4, 0x11, 0x93, 0x0e, 0x21, 0x25, 0x31, 0xee, 0x01, 0x4e, 0xbe, + 0xa9, 0x25, 0x89, 0x29, 0x89, 0x25, 0x89, 0xaf, 0x98, 0x94, 0xe1, 0xca, 0xad, 0xac, 0x20, 0xea, + 0xad, 0xac, 0x20, 0x1a, 0xac, 0xac, 0x60, 0x3a, 0x92, 0xd8, 0xc0, 0xa1, 0x6f, 0x0c, 0x08, 0x00, + 0x00, 0xff, 0xff, 0x02, 0xe9, 0x4c, 0xf8, 0xf2, 0x01, 0x00, 0x00, +} + +func (m *Module) 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 *Module) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Module) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Authority) > 0 { + i -= len(m.Authority) + copy(dAtA[i:], m.Authority) + i = encodeVarintModule(dAtA, i, uint64(len(m.Authority))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintModule(dAtA []byte, offset int, v uint64) int { + offset -= sovModule(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Module) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Authority) + if l > 0 { + n += 1 + l + sovModule(uint64(l)) + } + return n +} + +func sovModule(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozModule(x uint64) (n int) { + return sovModule(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Module) 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 ErrIntOverflowModule + } + 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: Module: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Module: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModule + } + 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 ErrInvalidLengthModule + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthModule + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Authority = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipModule(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthModule + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipModule(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, ErrIntOverflowModule + } + 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, ErrIntOverflowModule + } + 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, ErrIntOverflowModule + } + 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, ErrInvalidLengthModule + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupModule + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthModule + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthModule = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowModule = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupModule = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/escrow/andromeda/escrow/v1alpha1/codec.go b/x/escrow/andromeda/escrow/v1alpha1/codec.go new file mode 100644 index 0000000..634bc76 --- /dev/null +++ b/x/escrow/andromeda/escrow/v1alpha1/codec.go @@ -0,0 +1,18 @@ +package escrowv1alpha1 + +import ( + "github.com/cosmos/cosmos-sdk/codec/types" + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/types/msgservice" +) + +func RegisterInterfaces(registry types.InterfaceRegistry) { + registry.RegisterImplementations((*sdk.Msg)(nil), + &MsgUpdateParams{}, + &MsgCreateAgent{}, + &MsgSubmitProposal{}, + &MsgExec{}, + ) + + msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc) +} diff --git a/x/escrow/andromeda/escrow/v1alpha1/errors.go b/x/escrow/andromeda/escrow/v1alpha1/errors.go new file mode 100644 index 0000000..f249cfa --- /dev/null +++ b/x/escrow/andromeda/escrow/v1alpha1/errors.go @@ -0,0 +1,39 @@ +package escrowv1alpha1 + +import ( + "google.golang.org/grpc/codes" + + "cosmossdk.io/errors" +) + +const errorCodespace = ModuleName + +// stateless errors +const ( + _ uint32 = iota + 1<<1 - 1 + + errorCodeUnimplemented + errorCodeInvalidAddress +) + +var ( + ErrUnimplemented = errors.RegisterWithGRPCCode(errorCodespace, errorCodeUnimplemented, codes.Unimplemented, "unimplemented request") + ErrInvalidAddress = errors.RegisterWithGRPCCode(errorCodespace, errorCodeInvalidAddress, codes.InvalidArgument, "invalid address") +) + +// stateful errors +const ( + _ uint32 = iota + 1<<(32-1) - 1 + + errorCodeInvariantBroken + errorCodeAgentNotFound + errorCodeProposalNotFound + errorCodePermissionDenied +) + +var ( + ErrInvariantBroken = errors.RegisterWithGRPCCode(errorCodespace, errorCodeInvariantBroken, codes.Internal, "invariant broken") + ErrAgentNotFound = errors.RegisterWithGRPCCode(errorCodespace, errorCodeAgentNotFound, codes.NotFound, "agent not found") + ErrProposalNotFound = errors.RegisterWithGRPCCode(errorCodespace, errorCodeProposalNotFound, codes.NotFound, "proposal not found") + ErrPermissionDenied = errors.RegisterWithGRPCCode(errorCodespace, errorCodePermissionDenied, codes.PermissionDenied, "permission denied") +) diff --git a/x/escrow/andromeda/escrow/v1alpha1/event.pb.go b/x/escrow/andromeda/escrow/v1alpha1/event.pb.go new file mode 100644 index 0000000..a433b6e --- /dev/null +++ b/x/escrow/andromeda/escrow/v1alpha1/event.pb.go @@ -0,0 +1,1168 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: andromeda/escrow/v1alpha1/event.proto + +package escrowv1alpha1 + +import ( + fmt "fmt" + _ "github.com/cosmos/cosmos-proto" + types "github.com/cosmos/cosmos-sdk/codec/types" + proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// 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 + +// EventUpdateParams is emitted on Msg/UpdateParams. +type EventUpdateParams struct { +} + +func (m *EventUpdateParams) Reset() { *m = EventUpdateParams{} } +func (m *EventUpdateParams) String() string { return proto.CompactTextString(m) } +func (*EventUpdateParams) ProtoMessage() {} +func (*EventUpdateParams) Descriptor() ([]byte, []int) { + return fileDescriptor_499596c4087ad6c5, []int{0} +} +func (m *EventUpdateParams) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventUpdateParams.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 *EventUpdateParams) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventUpdateParams.Merge(m, src) +} +func (m *EventUpdateParams) XXX_Size() int { + return m.Size() +} +func (m *EventUpdateParams) XXX_DiscardUnknown() { + xxx_messageInfo_EventUpdateParams.DiscardUnknown(m) +} + +var xxx_messageInfo_EventUpdateParams proto.InternalMessageInfo + +// EventCreateAgent is emitted on Msg/CreateAgent. +type EventCreateAgent struct { + // the address of the created agent + Agent string `protobuf:"bytes,1,opt,name=agent,proto3" json:"agent,omitempty"` + // the address of the account created the agent + Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` +} + +func (m *EventCreateAgent) Reset() { *m = EventCreateAgent{} } +func (m *EventCreateAgent) String() string { return proto.CompactTextString(m) } +func (*EventCreateAgent) ProtoMessage() {} +func (*EventCreateAgent) Descriptor() ([]byte, []int) { + return fileDescriptor_499596c4087ad6c5, []int{1} +} +func (m *EventCreateAgent) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventCreateAgent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventCreateAgent.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 *EventCreateAgent) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventCreateAgent.Merge(m, src) +} +func (m *EventCreateAgent) XXX_Size() int { + return m.Size() +} +func (m *EventCreateAgent) XXX_DiscardUnknown() { + xxx_messageInfo_EventCreateAgent.DiscardUnknown(m) +} + +var xxx_messageInfo_EventCreateAgent proto.InternalMessageInfo + +func (m *EventCreateAgent) GetAgent() string { + if m != nil { + return m.Agent + } + return "" +} + +func (m *EventCreateAgent) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +// EventSubmitProposal is emitted on Msg/SubmitProposal. +type EventSubmitProposal struct { + // the identifier of the proposal + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + // the address of the proposer + Proposer string `protobuf:"bytes,2,opt,name=proposer,proto3" json:"proposer,omitempty"` + // the address of the agent in charge + Agent string `protobuf:"bytes,3,opt,name=agent,proto3" json:"agent,omitempty"` + // the messages which has been executed on the submission + PreActions []*types.Any `protobuf:"bytes,4,rep,name=pre_actions,json=preActions,proto3" json:"pre_actions,omitempty"` + // the messages which will be executed after the actions included in Msg/Exec + PostActions []*types.Any `protobuf:"bytes,5,rep,name=post_actions,json=postActions,proto3" json:"post_actions,omitempty"` +} + +func (m *EventSubmitProposal) Reset() { *m = EventSubmitProposal{} } +func (m *EventSubmitProposal) String() string { return proto.CompactTextString(m) } +func (*EventSubmitProposal) ProtoMessage() {} +func (*EventSubmitProposal) Descriptor() ([]byte, []int) { + return fileDescriptor_499596c4087ad6c5, []int{2} +} +func (m *EventSubmitProposal) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventSubmitProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventSubmitProposal.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 *EventSubmitProposal) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventSubmitProposal.Merge(m, src) +} +func (m *EventSubmitProposal) XXX_Size() int { + return m.Size() +} +func (m *EventSubmitProposal) XXX_DiscardUnknown() { + xxx_messageInfo_EventSubmitProposal.DiscardUnknown(m) +} + +var xxx_messageInfo_EventSubmitProposal proto.InternalMessageInfo + +func (m *EventSubmitProposal) GetId() uint64 { + if m != nil { + return m.Id + } + return 0 +} + +func (m *EventSubmitProposal) GetProposer() string { + if m != nil { + return m.Proposer + } + return "" +} + +func (m *EventSubmitProposal) GetAgent() string { + if m != nil { + return m.Agent + } + return "" +} + +func (m *EventSubmitProposal) GetPreActions() []*types.Any { + if m != nil { + return m.PreActions + } + return nil +} + +func (m *EventSubmitProposal) GetPostActions() []*types.Any { + if m != nil { + return m.PostActions + } + return nil +} + +// EventExec is emitted on Msg/Exec. +type EventExec struct { + // the identifier of the proposal + Proposal uint64 `protobuf:"varint,1,opt,name=proposal,proto3" json:"proposal,omitempty"` + // the address of the account executed the proposal + Executor string `protobuf:"bytes,2,opt,name=executor,proto3" json:"executor,omitempty"` + // the messages executed on the execution + Actions []*types.Any `protobuf:"bytes,3,rep,name=actions,proto3" json:"actions,omitempty"` +} + +func (m *EventExec) Reset() { *m = EventExec{} } +func (m *EventExec) String() string { return proto.CompactTextString(m) } +func (*EventExec) ProtoMessage() {} +func (*EventExec) Descriptor() ([]byte, []int) { + return fileDescriptor_499596c4087ad6c5, []int{3} +} +func (m *EventExec) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventExec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventExec.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 *EventExec) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventExec.Merge(m, src) +} +func (m *EventExec) XXX_Size() int { + return m.Size() +} +func (m *EventExec) XXX_DiscardUnknown() { + xxx_messageInfo_EventExec.DiscardUnknown(m) +} + +var xxx_messageInfo_EventExec proto.InternalMessageInfo + +func (m *EventExec) GetProposal() uint64 { + if m != nil { + return m.Proposal + } + return 0 +} + +func (m *EventExec) GetExecutor() string { + if m != nil { + return m.Executor + } + return "" +} + +func (m *EventExec) GetActions() []*types.Any { + if m != nil { + return m.Actions + } + return nil +} + +func init() { + proto.RegisterType((*EventUpdateParams)(nil), "andromeda.escrow.v1alpha1.EventUpdateParams") + proto.RegisterType((*EventCreateAgent)(nil), "andromeda.escrow.v1alpha1.EventCreateAgent") + proto.RegisterType((*EventSubmitProposal)(nil), "andromeda.escrow.v1alpha1.EventSubmitProposal") + proto.RegisterType((*EventExec)(nil), "andromeda.escrow.v1alpha1.EventExec") +} + +func init() { + proto.RegisterFile("andromeda/escrow/v1alpha1/event.proto", fileDescriptor_499596c4087ad6c5) +} + +var fileDescriptor_499596c4087ad6c5 = []byte{ + // 460 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xc1, 0x6b, 0x13, 0x41, + 0x14, 0xc6, 0x33, 0x9b, 0xd6, 0xda, 0x89, 0x88, 0x6e, 0x7b, 0x48, 0x22, 0x2e, 0x25, 0x50, 0xc8, + 0xc5, 0x59, 0x5a, 0x15, 0x21, 0x9e, 0x36, 0x12, 0x3c, 0x09, 0x4b, 0x8a, 0x22, 0x12, 0x28, 0x2f, + 0xbb, 0xcf, 0xb8, 0x90, 0xdd, 0x19, 0x66, 0x26, 0xb1, 0xfd, 0x23, 0x04, 0xff, 0x06, 0x8f, 0x9e, + 0xfd, 0x23, 0xc4, 0x53, 0xf1, 0xe4, 0x51, 0x92, 0x9b, 0x57, 0x8f, 0x5e, 0x64, 0x67, 0x76, 0x56, + 0x2f, 0x69, 0x7b, 0xdb, 0xb7, 0xdf, 0xef, 0xfb, 0x66, 0xbe, 0xc7, 0xd0, 0x43, 0x28, 0x52, 0xc9, + 0x73, 0x4c, 0x21, 0x44, 0x95, 0x48, 0xfe, 0x3e, 0x5c, 0x1e, 0xc1, 0x5c, 0xbc, 0x83, 0xa3, 0x10, + 0x97, 0x58, 0x68, 0x26, 0x24, 0xd7, 0xdc, 0xef, 0xd4, 0x18, 0xb3, 0x18, 0x73, 0x58, 0xb7, 0x93, + 0x70, 0x95, 0x73, 0x75, 0x6a, 0xc0, 0xd0, 0x0e, 0xd6, 0xd5, 0xed, 0xcc, 0x38, 0x9f, 0xcd, 0x31, + 0x34, 0xd3, 0x74, 0xf1, 0x36, 0x84, 0xe2, 0xdc, 0x4a, 0xbd, 0x3d, 0x7a, 0x77, 0x54, 0xe6, 0xbf, + 0x14, 0x29, 0x68, 0x8c, 0x41, 0x42, 0xae, 0x7a, 0x4b, 0x7a, 0xc7, 0xfc, 0x7c, 0x26, 0x11, 0x34, + 0x46, 0x33, 0x2c, 0xb4, 0xcf, 0xe8, 0x36, 0x94, 0x1f, 0x6d, 0x72, 0x40, 0xfa, 0xbb, 0xc3, 0xf6, + 0xf7, 0x2f, 0x0f, 0xf6, 0xab, 0x43, 0xa2, 0x34, 0x95, 0xa8, 0xd4, 0x89, 0x96, 0x59, 0x31, 0x1b, + 0x5b, 0xcc, 0x3f, 0xa6, 0x3b, 0x49, 0x69, 0xe7, 0xb2, 0xed, 0x5d, 0xe1, 0x70, 0x60, 0xef, 0x0f, + 0xa1, 0x7b, 0xe6, 0xe0, 0x93, 0xc5, 0x34, 0xcf, 0x74, 0x2c, 0xb9, 0xe0, 0x0a, 0xe6, 0xfe, 0x6d, + 0xea, 0x65, 0xa9, 0x39, 0x78, 0x6b, 0xec, 0x65, 0xa9, 0xff, 0x88, 0xde, 0x14, 0x46, 0xc3, 0xab, + 0xc3, 0x6b, 0xf2, 0x5f, 0x83, 0xe6, 0xf5, 0x1a, 0x3c, 0xa6, 0x2d, 0x21, 0xf1, 0x14, 0x12, 0x9d, + 0xf1, 0x42, 0xb5, 0xb7, 0x0e, 0x9a, 0xfd, 0xd6, 0xf1, 0x3e, 0xb3, 0xbb, 0x64, 0x6e, 0x97, 0x2c, + 0x2a, 0xce, 0xc7, 0x54, 0x48, 0x8c, 0x2c, 0xe7, 0x3f, 0xa1, 0xb7, 0x04, 0x57, 0xba, 0xf6, 0x6d, + 0x5f, 0xe2, 0x6b, 0x95, 0x64, 0x65, 0xec, 0x7d, 0x20, 0x74, 0xd7, 0xb4, 0x1f, 0x9d, 0x61, 0xe2, + 0x77, 0x5d, 0x47, 0x98, 0x57, 0xcd, 0xeb, 0xb9, 0xec, 0x8f, 0x67, 0x98, 0x2c, 0xae, 0xb3, 0xdc, + 0x9a, 0xf4, 0x19, 0xdd, 0x71, 0x77, 0x6a, 0x5e, 0x72, 0x27, 0x07, 0x0d, 0x7f, 0x93, 0xaf, 0xab, + 0x80, 0x5c, 0xac, 0x02, 0xf2, 0x73, 0x15, 0x90, 0x8f, 0xeb, 0xa0, 0x71, 0xb1, 0x0e, 0x1a, 0x3f, + 0xd6, 0x41, 0x83, 0xde, 0x4f, 0x78, 0xce, 0x36, 0x3e, 0xc5, 0x21, 0x35, 0x35, 0xe2, 0x32, 0x35, + 0x26, 0x6f, 0xfa, 0x1b, 0x9f, 0xf6, 0x53, 0x3b, 0xbb, 0xf1, 0x93, 0xd7, 0x8c, 0x46, 0xaf, 0x3f, + 0x7b, 0x9d, 0xa8, 0x4e, 0x1e, 0xd9, 0xe4, 0x57, 0x15, 0xf1, 0xed, 0x3f, 0x6d, 0x62, 0xb5, 0x89, + 0xd3, 0x56, 0xde, 0xe1, 0x46, 0x6d, 0xf2, 0x3c, 0x1e, 0xbe, 0x40, 0x0d, 0x29, 0x68, 0xf8, 0xe5, + 0xdd, 0xab, 0xb9, 0xc1, 0xc0, 0x82, 0x83, 0x81, 0x23, 0xa7, 0x37, 0xcc, 0x32, 0x1e, 0xfe, 0x0d, + 0x00, 0x00, 0xff, 0xff, 0xb0, 0x6e, 0x53, 0x54, 0x91, 0x03, 0x00, 0x00, +} + +func (m *EventUpdateParams) 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 *EventUpdateParams) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *EventCreateAgent) 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 *EventCreateAgent) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventCreateAgent) 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 = encodeVarintEvent(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0x12 + } + if len(m.Agent) > 0 { + i -= len(m.Agent) + copy(dAtA[i:], m.Agent) + i = encodeVarintEvent(dAtA, i, uint64(len(m.Agent))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *EventSubmitProposal) 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 *EventSubmitProposal) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventSubmitProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.PostActions) > 0 { + for iNdEx := len(m.PostActions) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.PostActions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEvent(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + } + if len(m.PreActions) > 0 { + for iNdEx := len(m.PreActions) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.PreActions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEvent(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.Agent) > 0 { + i -= len(m.Agent) + copy(dAtA[i:], m.Agent) + i = encodeVarintEvent(dAtA, i, uint64(len(m.Agent))) + i-- + dAtA[i] = 0x1a + } + if len(m.Proposer) > 0 { + i -= len(m.Proposer) + copy(dAtA[i:], m.Proposer) + i = encodeVarintEvent(dAtA, i, uint64(len(m.Proposer))) + i-- + dAtA[i] = 0x12 + } + if m.Id != 0 { + i = encodeVarintEvent(dAtA, i, uint64(m.Id)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *EventExec) 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 *EventExec) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventExec) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Actions) > 0 { + for iNdEx := len(m.Actions) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Actions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEvent(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.Executor) > 0 { + i -= len(m.Executor) + copy(dAtA[i:], m.Executor) + i = encodeVarintEvent(dAtA, i, uint64(len(m.Executor))) + i-- + dAtA[i] = 0x12 + } + if m.Proposal != 0 { + i = encodeVarintEvent(dAtA, i, uint64(m.Proposal)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func encodeVarintEvent(dAtA []byte, offset int, v uint64) int { + offset -= sovEvent(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *EventUpdateParams) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *EventCreateAgent) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Agent) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + return n +} + +func (m *EventSubmitProposal) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Id != 0 { + n += 1 + sovEvent(uint64(m.Id)) + } + l = len(m.Proposer) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + l = len(m.Agent) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + if len(m.PreActions) > 0 { + for _, e := range m.PreActions { + l = e.Size() + n += 1 + l + sovEvent(uint64(l)) + } + } + if len(m.PostActions) > 0 { + for _, e := range m.PostActions { + l = e.Size() + n += 1 + l + sovEvent(uint64(l)) + } + } + return n +} + +func (m *EventExec) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Proposal != 0 { + n += 1 + sovEvent(uint64(m.Proposal)) + } + l = len(m.Executor) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + if len(m.Actions) > 0 { + for _, e := range m.Actions { + l = e.Size() + n += 1 + l + sovEvent(uint64(l)) + } + } + return n +} + +func sovEvent(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozEvent(x uint64) (n int) { + return sovEvent(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *EventUpdateParams) 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 ErrIntOverflowEvent + } + 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: EventUpdateParams: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EventUpdateParams: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipEvent(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthEvent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EventCreateAgent) 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 ErrIntOverflowEvent + } + 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: EventCreateAgent: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EventCreateAgent: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Agent", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + 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 ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Agent = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + 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 ErrIntOverflowEvent + } + 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 ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvent(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthEvent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EventSubmitProposal) 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 ErrIntOverflowEvent + } + 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: EventSubmitProposal: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EventSubmitProposal: 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 ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Id |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Proposer", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + 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 ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Proposer = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Agent", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + 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 ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Agent = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PreActions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PreActions = append(m.PreActions, &types.Any{}) + if err := m.PreActions[len(m.PreActions)-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 PostActions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PostActions = append(m.PostActions, &types.Any{}) + if err := m.PostActions[len(m.PostActions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvent(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthEvent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EventExec) 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 ErrIntOverflowEvent + } + 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: EventExec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EventExec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Proposal", wireType) + } + m.Proposal = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Proposal |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Executor", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + 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 ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Executor = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Actions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Actions = append(m.Actions, &types.Any{}) + if err := m.Actions[len(m.Actions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvent(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthEvent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipEvent(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, ErrIntOverflowEvent + } + 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, ErrIntOverflowEvent + } + 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, ErrIntOverflowEvent + } + 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, ErrInvalidLengthEvent + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupEvent + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthEvent + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthEvent = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowEvent = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupEvent = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/escrow/andromeda/escrow/v1alpha1/genesis.pb.go b/x/escrow/andromeda/escrow/v1alpha1/genesis.pb.go new file mode 100644 index 0000000..f798d56 --- /dev/null +++ b/x/escrow/andromeda/escrow/v1alpha1/genesis.pb.go @@ -0,0 +1,1279 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: andromeda/escrow/v1alpha1/genesis.proto + +package escrowv1alpha1 + +import ( + fmt "fmt" + _ "github.com/cosmos/cosmos-proto" + types "github.com/cosmos/cosmos-sdk/codec/types" + proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// 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 + +// GenesisState defines the module's genesis state. +type GenesisState struct { + // all the paramaters of the module + Params *GenesisState_Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` + // the identifier of the next agent + NextAgent uint64 `protobuf:"varint,2,opt,name=next_agent,json=nextAgent,proto3" json:"next_agent,omitempty"` + // all the agents + Agents []*GenesisState_Agent `protobuf:"bytes,3,rep,name=agents,proto3" json:"agents,omitempty"` + // the identifier of the next proposal + NextProposal uint64 `protobuf:"varint,4,opt,name=next_proposal,json=nextProposal,proto3" json:"next_proposal,omitempty"` + // all the proposals + Proposals []*GenesisState_Proposal `protobuf:"bytes,5,rep,name=proposals,proto3" json:"proposals,omitempty"` +} + +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_6d8dfc87c909dc5a, []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() *GenesisState_Params { + if m != nil { + return m.Params + } + return nil +} + +func (m *GenesisState) GetNextAgent() uint64 { + if m != nil { + return m.NextAgent + } + return 0 +} + +func (m *GenesisState) GetAgents() []*GenesisState_Agent { + if m != nil { + return m.Agents + } + return nil +} + +func (m *GenesisState) GetNextProposal() uint64 { + if m != nil { + return m.NextProposal + } + return 0 +} + +func (m *GenesisState) GetProposals() []*GenesisState_Proposal { + if m != nil { + return m.Proposals + } + return nil +} + +// Params defines the parameters for the module. +type GenesisState_Params struct { +} + +func (m *GenesisState_Params) Reset() { *m = GenesisState_Params{} } +func (m *GenesisState_Params) String() string { return proto.CompactTextString(m) } +func (*GenesisState_Params) ProtoMessage() {} +func (*GenesisState_Params) Descriptor() ([]byte, []int) { + return fileDescriptor_6d8dfc87c909dc5a, []int{0, 0} +} +func (m *GenesisState_Params) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GenesisState_Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GenesisState_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 *GenesisState_Params) XXX_Merge(src proto.Message) { + xxx_messageInfo_GenesisState_Params.Merge(m, src) +} +func (m *GenesisState_Params) XXX_Size() int { + return m.Size() +} +func (m *GenesisState_Params) XXX_DiscardUnknown() { + xxx_messageInfo_GenesisState_Params.DiscardUnknown(m) +} + +var xxx_messageInfo_GenesisState_Params proto.InternalMessageInfo + +// Agent defines an account taking charge of a proposal. +type GenesisState_Agent struct { + // the address of the agent + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + // the address of the creator + Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` +} + +func (m *GenesisState_Agent) Reset() { *m = GenesisState_Agent{} } +func (m *GenesisState_Agent) String() string { return proto.CompactTextString(m) } +func (*GenesisState_Agent) ProtoMessage() {} +func (*GenesisState_Agent) Descriptor() ([]byte, []int) { + return fileDescriptor_6d8dfc87c909dc5a, []int{0, 1} +} +func (m *GenesisState_Agent) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GenesisState_Agent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GenesisState_Agent.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_Agent) XXX_Merge(src proto.Message) { + xxx_messageInfo_GenesisState_Agent.Merge(m, src) +} +func (m *GenesisState_Agent) XXX_Size() int { + return m.Size() +} +func (m *GenesisState_Agent) XXX_DiscardUnknown() { + xxx_messageInfo_GenesisState_Agent.DiscardUnknown(m) +} + +var xxx_messageInfo_GenesisState_Agent proto.InternalMessageInfo + +func (m *GenesisState_Agent) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +func (m *GenesisState_Agent) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +// Proposal defines a proposal. +type GenesisState_Proposal struct { + // the unique identifier + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + // the address of the proposer + Proposer string `protobuf:"bytes,2,opt,name=proposer,proto3" json:"proposer,omitempty"` + // the address of the agent in charge + Agent string `protobuf:"bytes,3,opt,name=agent,proto3" json:"agent,omitempty"` + // the messages which has been executed on the submission + PreActions []*types.Any `protobuf:"bytes,4,rep,name=pre_actions,json=preActions,proto3" json:"pre_actions,omitempty"` + // the messages which will be executed after the actions included in Msg/Exec + PostActions []*types.Any `protobuf:"bytes,5,rep,name=post_actions,json=postActions,proto3" json:"post_actions,omitempty"` +} + +func (m *GenesisState_Proposal) Reset() { *m = GenesisState_Proposal{} } +func (m *GenesisState_Proposal) String() string { return proto.CompactTextString(m) } +func (*GenesisState_Proposal) ProtoMessage() {} +func (*GenesisState_Proposal) Descriptor() ([]byte, []int) { + return fileDescriptor_6d8dfc87c909dc5a, []int{0, 2} +} +func (m *GenesisState_Proposal) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GenesisState_Proposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GenesisState_Proposal.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_Proposal) XXX_Merge(src proto.Message) { + xxx_messageInfo_GenesisState_Proposal.Merge(m, src) +} +func (m *GenesisState_Proposal) XXX_Size() int { + return m.Size() +} +func (m *GenesisState_Proposal) XXX_DiscardUnknown() { + xxx_messageInfo_GenesisState_Proposal.DiscardUnknown(m) +} + +var xxx_messageInfo_GenesisState_Proposal proto.InternalMessageInfo + +func (m *GenesisState_Proposal) GetId() uint64 { + if m != nil { + return m.Id + } + return 0 +} + +func (m *GenesisState_Proposal) GetProposer() string { + if m != nil { + return m.Proposer + } + return "" +} + +func (m *GenesisState_Proposal) GetAgent() string { + if m != nil { + return m.Agent + } + return "" +} + +func (m *GenesisState_Proposal) GetPreActions() []*types.Any { + if m != nil { + return m.PreActions + } + return nil +} + +func (m *GenesisState_Proposal) GetPostActions() []*types.Any { + if m != nil { + return m.PostActions + } + return nil +} + +func init() { + proto.RegisterType((*GenesisState)(nil), "andromeda.escrow.v1alpha1.GenesisState") + proto.RegisterType((*GenesisState_Params)(nil), "andromeda.escrow.v1alpha1.GenesisState.Params") + proto.RegisterType((*GenesisState_Agent)(nil), "andromeda.escrow.v1alpha1.GenesisState.Agent") + proto.RegisterType((*GenesisState_Proposal)(nil), "andromeda.escrow.v1alpha1.GenesisState.Proposal") +} + +func init() { + proto.RegisterFile("andromeda/escrow/v1alpha1/genesis.proto", fileDescriptor_6d8dfc87c909dc5a) +} + +var fileDescriptor_6d8dfc87c909dc5a = []byte{ + // 505 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0x4f, 0x8b, 0xd3, 0x40, + 0x18, 0xc6, 0x3b, 0xe9, 0x1f, 0xdb, 0xb7, 0xd5, 0xc3, 0xb0, 0x87, 0x34, 0xb2, 0xa1, 0x28, 0x62, + 0x2f, 0x3b, 0x71, 0xab, 0x22, 0xd4, 0x53, 0x0a, 0x75, 0x4f, 0x4a, 0xc8, 0x82, 0x88, 0x14, 0xca, + 0x6c, 0x32, 0xc6, 0x40, 0x9b, 0x09, 0x33, 0xe3, 0x9f, 0xfd, 0x16, 0x7e, 0x03, 0xc1, 0xa3, 0x67, + 0x3f, 0x84, 0x78, 0x5a, 0x3c, 0x79, 0x94, 0xf6, 0xe6, 0xc9, 0x8b, 0x77, 0xc9, 0x4c, 0x92, 0xdd, + 0x4b, 0x77, 0xf7, 0x38, 0xef, 0xf3, 0x7b, 0xde, 0x27, 0xef, 0x3b, 0x13, 0xb8, 0x4f, 0xb3, 0x58, + 0xf0, 0x35, 0x8b, 0xa9, 0xc7, 0x64, 0x24, 0xf8, 0x07, 0xef, 0xfd, 0x21, 0x5d, 0xe5, 0x6f, 0xe9, + 0xa1, 0x97, 0xb0, 0x8c, 0xc9, 0x54, 0x92, 0x5c, 0x70, 0xc5, 0xf1, 0xb0, 0x06, 0x89, 0x01, 0x49, + 0x05, 0x3a, 0xc3, 0x88, 0xcb, 0x35, 0x97, 0x4b, 0x0d, 0x7a, 0xe6, 0x60, 0x5c, 0xce, 0x30, 0xe1, + 0x3c, 0x59, 0x31, 0x4f, 0x9f, 0x4e, 0xde, 0xbd, 0xf1, 0x68, 0x76, 0x6a, 0xa4, 0x3b, 0x9f, 0xdb, + 0x30, 0x38, 0x32, 0x11, 0xc7, 0x8a, 0x2a, 0x86, 0x9f, 0x41, 0x27, 0xa7, 0x82, 0xae, 0xa5, 0x8d, + 0x46, 0x68, 0xdc, 0x9f, 0x10, 0xb2, 0x33, 0x92, 0x5c, 0x34, 0x92, 0x40, 0xbb, 0xc2, 0xd2, 0x8d, + 0xf7, 0x01, 0x32, 0xf6, 0x51, 0x2d, 0x69, 0xc2, 0x32, 0x65, 0x5b, 0x23, 0x34, 0x6e, 0x85, 0xbd, + 0xa2, 0xe2, 0x17, 0x05, 0x3c, 0x87, 0x8e, 0x56, 0xa4, 0xdd, 0x1c, 0x35, 0xc7, 0xfd, 0xc9, 0xc1, + 0x75, 0x63, 0xb4, 0x3d, 0x2c, 0xcd, 0xf8, 0x2e, 0xdc, 0xd4, 0x29, 0xb9, 0xe0, 0x39, 0x97, 0x74, + 0x65, 0xb7, 0x74, 0xd0, 0xa0, 0x28, 0x06, 0x65, 0x0d, 0xbf, 0x80, 0x5e, 0xa5, 0x4b, 0xbb, 0xad, + 0xe3, 0x1e, 0x5c, 0x7b, 0xaa, 0xd2, 0x18, 0x9e, 0xb7, 0x70, 0xba, 0xd0, 0x31, 0xc3, 0x3a, 0x1c, + 0xda, 0x66, 0x9c, 0x09, 0xdc, 0xa0, 0x71, 0x2c, 0x98, 0x34, 0x6b, 0xeb, 0xcd, 0xec, 0x9f, 0xdf, + 0x0e, 0xf6, 0xca, 0x4b, 0xf0, 0x8d, 0x72, 0xac, 0x44, 0x9a, 0x25, 0x61, 0x05, 0x16, 0x9e, 0x48, + 0x30, 0xaa, 0xb8, 0xd0, 0xeb, 0xb9, 0xd4, 0x53, 0x82, 0xce, 0x5f, 0x04, 0xdd, 0x7a, 0xae, 0x5b, + 0x60, 0xa5, 0xb1, 0xce, 0x6b, 0x85, 0x56, 0x1a, 0xe3, 0x47, 0xd0, 0x35, 0x1f, 0xc9, 0xae, 0xee, + 0x58, 0x93, 0x98, 0x40, 0xdb, 0xdc, 0x51, 0xf3, 0x0a, 0x8b, 0xc1, 0xf0, 0x63, 0xe8, 0xe7, 0x82, + 0x2d, 0x69, 0xa4, 0x52, 0x9e, 0x49, 0xbb, 0xa5, 0xf7, 0xb9, 0x47, 0xcc, 0x13, 0x23, 0xd5, 0x13, + 0x23, 0x7e, 0x76, 0x1a, 0x42, 0x2e, 0x98, 0x6f, 0x38, 0xfc, 0x04, 0x06, 0x39, 0x97, 0xaa, 0xf6, + 0xb5, 0x2f, 0xf1, 0xf5, 0x0b, 0xb2, 0x34, 0xce, 0xfe, 0xa1, 0xef, 0x1b, 0x17, 0x9d, 0x6d, 0x5c, + 0xf4, 0x7b, 0xe3, 0xa2, 0x4f, 0x5b, 0xb7, 0x71, 0xb6, 0x75, 0x1b, 0xbf, 0xb6, 0x6e, 0x03, 0xf6, + 0x23, 0xbe, 0xde, 0x7d, 0x91, 0xb3, 0xea, 0x61, 0x07, 0x45, 0xef, 0x00, 0xbd, 0x1e, 0xef, 0xfc, + 0xcb, 0x9e, 0x9a, 0x73, 0x75, 0xfc, 0x62, 0x35, 0xfd, 0xf9, 0xab, 0xaf, 0xd6, 0xd0, 0xaf, 0x7b, + 0xcf, 0x4d, 0xef, 0x97, 0x25, 0xf1, 0xe3, 0x82, 0xb6, 0x30, 0xda, 0xa2, 0xd2, 0x36, 0xd6, 0xbd, + 0x9d, 0xda, 0xe2, 0x28, 0x98, 0x3d, 0x67, 0x8a, 0xc6, 0x54, 0xd1, 0x3f, 0xd6, 0xed, 0x9a, 0x9b, + 0x4e, 0x0d, 0x38, 0x9d, 0x56, 0xe4, 0x49, 0x47, 0xaf, 0xe4, 0xe1, 0xff, 0x00, 0x00, 0x00, 0xff, + 0xff, 0xfb, 0xf8, 0x3a, 0x9a, 0x1c, 0x04, 0x00, 0x00, +} + +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 + if len(m.Proposals) > 0 { + for iNdEx := len(m.Proposals) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Proposals[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + } + if m.NextProposal != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.NextProposal)) + i-- + dAtA[i] = 0x20 + } + if len(m.Agents) > 0 { + for iNdEx := len(m.Agents) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Agents[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if m.NextAgent != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.NextAgent)) + i-- + dAtA[i] = 0x10 + } + if m.Params != nil { + { + 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 *GenesisState_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 *GenesisState_Params) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GenesisState_Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *GenesisState_Agent) 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_Agent) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GenesisState_Agent) 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 = encodeVarintGenesis(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0x12 + } + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *GenesisState_Proposal) 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_Proposal) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GenesisState_Proposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.PostActions) > 0 { + for iNdEx := len(m.PostActions) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.PostActions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + } + if len(m.PreActions) > 0 { + for iNdEx := len(m.PreActions) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.PreActions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.Agent) > 0 { + i -= len(m.Agent) + copy(dAtA[i:], m.Agent) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.Agent))) + i-- + dAtA[i] = 0x1a + } + if len(m.Proposer) > 0 { + i -= len(m.Proposer) + copy(dAtA[i:], m.Proposer) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.Proposer))) + i-- + dAtA[i] = 0x12 + } + if m.Id != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.Id)) + 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 + if m.Params != nil { + l = m.Params.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + if m.NextAgent != 0 { + n += 1 + sovGenesis(uint64(m.NextAgent)) + } + if len(m.Agents) > 0 { + for _, e := range m.Agents { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + if m.NextProposal != 0 { + n += 1 + sovGenesis(uint64(m.NextProposal)) + } + if len(m.Proposals) > 0 { + for _, e := range m.Proposals { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + return n +} + +func (m *GenesisState_Params) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *GenesisState_Agent) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Address) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + return n +} + +func (m *GenesisState_Proposal) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Id != 0 { + n += 1 + sovGenesis(uint64(m.Id)) + } + l = len(m.Proposer) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + l = len(m.Agent) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + if len(m.PreActions) > 0 { + for _, e := range m.PreActions { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + if len(m.PostActions) > 0 { + for _, e := range m.PostActions { + 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 m.Params == nil { + m.Params = &GenesisState_Params{} + } + if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NextAgent", wireType) + } + m.NextAgent = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NextAgent |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Agents", 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.Agents = append(m.Agents, &GenesisState_Agent{}) + if err := m.Agents[len(m.Agents)-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 NextProposal", wireType) + } + m.NextProposal = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NextProposal |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Proposals", 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.Proposals = append(m.Proposals, &GenesisState_Proposal{}) + if err := m.Proposals[len(m.Proposals)-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 (m *GenesisState_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 { + 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 *GenesisState_Agent) 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: Agent: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Agent: 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 ErrIntOverflowGenesis + } + 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 ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + 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 ErrIntOverflowGenesis + } + 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 ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + 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 *GenesisState_Proposal) 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: Proposal: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Proposal: 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 ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Id |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Proposer", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + 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 ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Proposer = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Agent", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + 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 ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Agent = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PreActions", 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.PreActions = append(m.PreActions, &types.Any{}) + if err := m.PreActions[len(m.PreActions)-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 PostActions", 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.PostActions = append(m.PostActions, &types.Any{}) + if err := m.PostActions[len(m.PostActions)-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/x/escrow/andromeda/escrow/v1alpha1/keys.go b/x/escrow/andromeda/escrow/v1alpha1/keys.go new file mode 100644 index 0000000..ed31490 --- /dev/null +++ b/x/escrow/andromeda/escrow/v1alpha1/keys.go @@ -0,0 +1,6 @@ +package escrowv1alpha1 + +const ( + // ModuleName is the module name constant used in many places + ModuleName = "escrow" +) diff --git a/x/escrow/andromeda/escrow/v1alpha1/query.pb.go b/x/escrow/andromeda/escrow/v1alpha1/query.pb.go new file mode 100644 index 0000000..af7d78d --- /dev/null +++ b/x/escrow/andromeda/escrow/v1alpha1/query.pb.go @@ -0,0 +1,3612 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: andromeda/escrow/v1alpha1/query.proto + +package escrowv1alpha1 + +import ( + context "context" + fmt "fmt" + _ "github.com/cosmos/cosmos-proto" + types "github.com/cosmos/cosmos-sdk/codec/types" + query "github.com/cosmos/cosmos-sdk/types/query" + grpc1 "github.com/cosmos/gogoproto/grpc" + proto "github.com/cosmos/gogoproto/proto" + _ "google.golang.org/genproto/googleapis/api/annotations" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + io "io" + math "math" + math_bits "math/bits" +) + +// 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 + +// 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_84a41d203399b1b7, []int{0} +} +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 { + // the parameters of the module + Params *QueryParamsResponse_Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` +} + +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_84a41d203399b1b7, []int{1} +} +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() *QueryParamsResponse_Params { + if m != nil { + return m.Params + } + return nil +} + +// Params defines the parameters for the module. +type QueryParamsResponse_Params struct { +} + +func (m *QueryParamsResponse_Params) Reset() { *m = QueryParamsResponse_Params{} } +func (m *QueryParamsResponse_Params) String() string { return proto.CompactTextString(m) } +func (*QueryParamsResponse_Params) ProtoMessage() {} +func (*QueryParamsResponse_Params) Descriptor() ([]byte, []int) { + return fileDescriptor_84a41d203399b1b7, []int{1, 0} +} +func (m *QueryParamsResponse_Params) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryParamsResponse_Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryParamsResponse_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 *QueryParamsResponse_Params) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryParamsResponse_Params.Merge(m, src) +} +func (m *QueryParamsResponse_Params) XXX_Size() int { + return m.Size() +} +func (m *QueryParamsResponse_Params) XXX_DiscardUnknown() { + xxx_messageInfo_QueryParamsResponse_Params.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryParamsResponse_Params proto.InternalMessageInfo + +// QueryAgentRequest is the request type for the Query/Agent RPC method. +type QueryAgentRequest struct { + // the address of an agent + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` +} + +func (m *QueryAgentRequest) Reset() { *m = QueryAgentRequest{} } +func (m *QueryAgentRequest) String() string { return proto.CompactTextString(m) } +func (*QueryAgentRequest) ProtoMessage() {} +func (*QueryAgentRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_84a41d203399b1b7, []int{2} +} +func (m *QueryAgentRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAgentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAgentRequest.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 *QueryAgentRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAgentRequest.Merge(m, src) +} +func (m *QueryAgentRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryAgentRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAgentRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAgentRequest proto.InternalMessageInfo + +func (m *QueryAgentRequest) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +// QueryAgentResponse is the response type for the Query/Agent RPC method. +type QueryAgentResponse struct { + // the corresponding agent + Agent *QueryAgentResponse_Agent `protobuf:"bytes,1,opt,name=agent,proto3" json:"agent,omitempty"` +} + +func (m *QueryAgentResponse) Reset() { *m = QueryAgentResponse{} } +func (m *QueryAgentResponse) String() string { return proto.CompactTextString(m) } +func (*QueryAgentResponse) ProtoMessage() {} +func (*QueryAgentResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_84a41d203399b1b7, []int{3} +} +func (m *QueryAgentResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAgentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAgentResponse.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 *QueryAgentResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAgentResponse.Merge(m, src) +} +func (m *QueryAgentResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryAgentResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAgentResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAgentResponse proto.InternalMessageInfo + +func (m *QueryAgentResponse) GetAgent() *QueryAgentResponse_Agent { + if m != nil { + return m.Agent + } + return nil +} + +// Agent defines an account taking charge of a proposal. +type QueryAgentResponse_Agent struct { + // the address of the agent + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + // the address of the creator + Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` +} + +func (m *QueryAgentResponse_Agent) Reset() { *m = QueryAgentResponse_Agent{} } +func (m *QueryAgentResponse_Agent) String() string { return proto.CompactTextString(m) } +func (*QueryAgentResponse_Agent) ProtoMessage() {} +func (*QueryAgentResponse_Agent) Descriptor() ([]byte, []int) { + return fileDescriptor_84a41d203399b1b7, []int{3, 0} +} +func (m *QueryAgentResponse_Agent) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAgentResponse_Agent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAgentResponse_Agent.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 *QueryAgentResponse_Agent) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAgentResponse_Agent.Merge(m, src) +} +func (m *QueryAgentResponse_Agent) XXX_Size() int { + return m.Size() +} +func (m *QueryAgentResponse_Agent) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAgentResponse_Agent.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAgentResponse_Agent proto.InternalMessageInfo + +func (m *QueryAgentResponse_Agent) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +func (m *QueryAgentResponse_Agent) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +// QueryAgentsRequest is the request type for the Query/Agents RPC method. +type QueryAgentsRequest struct { + // optional pagination for the request + Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryAgentsRequest) Reset() { *m = QueryAgentsRequest{} } +func (m *QueryAgentsRequest) String() string { return proto.CompactTextString(m) } +func (*QueryAgentsRequest) ProtoMessage() {} +func (*QueryAgentsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_84a41d203399b1b7, []int{4} +} +func (m *QueryAgentsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAgentsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAgentsRequest.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 *QueryAgentsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAgentsRequest.Merge(m, src) +} +func (m *QueryAgentsRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryAgentsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAgentsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAgentsRequest proto.InternalMessageInfo + +func (m *QueryAgentsRequest) GetPagination() *query.PageRequest { + if m != nil { + return m.Pagination + } + return nil +} + +// QueryAgentsResponse is the response type for the Query/Agents RPC method. +type QueryAgentsResponse struct { + // all the agents + Agents []*QueryAgentsResponse_Agent `protobuf:"bytes,1,rep,name=agents,proto3" json:"agents,omitempty"` + // pagination in the response + Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryAgentsResponse) Reset() { *m = QueryAgentsResponse{} } +func (m *QueryAgentsResponse) String() string { return proto.CompactTextString(m) } +func (*QueryAgentsResponse) ProtoMessage() {} +func (*QueryAgentsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_84a41d203399b1b7, []int{5} +} +func (m *QueryAgentsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAgentsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAgentsResponse.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 *QueryAgentsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAgentsResponse.Merge(m, src) +} +func (m *QueryAgentsResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryAgentsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAgentsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAgentsResponse proto.InternalMessageInfo + +func (m *QueryAgentsResponse) GetAgents() []*QueryAgentsResponse_Agent { + if m != nil { + return m.Agents + } + return nil +} + +func (m *QueryAgentsResponse) GetPagination() *query.PageResponse { + if m != nil { + return m.Pagination + } + return nil +} + +// Agent defines an account taking charge of a proposal. +type QueryAgentsResponse_Agent struct { + // the address of the agent + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + // the address of the creator + Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` +} + +func (m *QueryAgentsResponse_Agent) Reset() { *m = QueryAgentsResponse_Agent{} } +func (m *QueryAgentsResponse_Agent) String() string { return proto.CompactTextString(m) } +func (*QueryAgentsResponse_Agent) ProtoMessage() {} +func (*QueryAgentsResponse_Agent) Descriptor() ([]byte, []int) { + return fileDescriptor_84a41d203399b1b7, []int{5, 0} +} +func (m *QueryAgentsResponse_Agent) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAgentsResponse_Agent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAgentsResponse_Agent.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 *QueryAgentsResponse_Agent) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAgentsResponse_Agent.Merge(m, src) +} +func (m *QueryAgentsResponse_Agent) XXX_Size() int { + return m.Size() +} +func (m *QueryAgentsResponse_Agent) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAgentsResponse_Agent.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAgentsResponse_Agent proto.InternalMessageInfo + +func (m *QueryAgentsResponse_Agent) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +func (m *QueryAgentsResponse_Agent) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +// QueryProposalRequest is the request type for the Query/Proposal RPC method. +type QueryProposalRequest struct { + // the identifier of a proposal + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (m *QueryProposalRequest) Reset() { *m = QueryProposalRequest{} } +func (m *QueryProposalRequest) String() string { return proto.CompactTextString(m) } +func (*QueryProposalRequest) ProtoMessage() {} +func (*QueryProposalRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_84a41d203399b1b7, []int{6} +} +func (m *QueryProposalRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryProposalRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryProposalRequest.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 *QueryProposalRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryProposalRequest.Merge(m, src) +} +func (m *QueryProposalRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryProposalRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryProposalRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryProposalRequest proto.InternalMessageInfo + +func (m *QueryProposalRequest) GetId() uint64 { + if m != nil { + return m.Id + } + return 0 +} + +// QueryProposalResponse is the response type for the Query/Proposal RPC method. +type QueryProposalResponse struct { + // the corresponding proposal + Proposal *QueryProposalResponse_Proposal `protobuf:"bytes,1,opt,name=proposal,proto3" json:"proposal,omitempty"` +} + +func (m *QueryProposalResponse) Reset() { *m = QueryProposalResponse{} } +func (m *QueryProposalResponse) String() string { return proto.CompactTextString(m) } +func (*QueryProposalResponse) ProtoMessage() {} +func (*QueryProposalResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_84a41d203399b1b7, []int{7} +} +func (m *QueryProposalResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryProposalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryProposalResponse.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 *QueryProposalResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryProposalResponse.Merge(m, src) +} +func (m *QueryProposalResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryProposalResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryProposalResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryProposalResponse proto.InternalMessageInfo + +func (m *QueryProposalResponse) GetProposal() *QueryProposalResponse_Proposal { + if m != nil { + return m.Proposal + } + return nil +} + +// Proposal defines a proposal. +type QueryProposalResponse_Proposal struct { + // the unique identifier + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + // the address of the proposer + Proposer string `protobuf:"bytes,2,opt,name=proposer,proto3" json:"proposer,omitempty"` + // the address of the agent in charge + Agent string `protobuf:"bytes,3,opt,name=agent,proto3" json:"agent,omitempty"` + // the messages which has been executed on the submission + PreActions []*types.Any `protobuf:"bytes,4,rep,name=pre_actions,json=preActions,proto3" json:"pre_actions,omitempty"` + // the messages which will be executed after the actions included in Msg/Exec + PostActions []*types.Any `protobuf:"bytes,5,rep,name=post_actions,json=postActions,proto3" json:"post_actions,omitempty"` +} + +func (m *QueryProposalResponse_Proposal) Reset() { *m = QueryProposalResponse_Proposal{} } +func (m *QueryProposalResponse_Proposal) String() string { return proto.CompactTextString(m) } +func (*QueryProposalResponse_Proposal) ProtoMessage() {} +func (*QueryProposalResponse_Proposal) Descriptor() ([]byte, []int) { + return fileDescriptor_84a41d203399b1b7, []int{7, 0} +} +func (m *QueryProposalResponse_Proposal) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryProposalResponse_Proposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryProposalResponse_Proposal.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 *QueryProposalResponse_Proposal) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryProposalResponse_Proposal.Merge(m, src) +} +func (m *QueryProposalResponse_Proposal) XXX_Size() int { + return m.Size() +} +func (m *QueryProposalResponse_Proposal) XXX_DiscardUnknown() { + xxx_messageInfo_QueryProposalResponse_Proposal.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryProposalResponse_Proposal proto.InternalMessageInfo + +func (m *QueryProposalResponse_Proposal) GetId() uint64 { + if m != nil { + return m.Id + } + return 0 +} + +func (m *QueryProposalResponse_Proposal) GetProposer() string { + if m != nil { + return m.Proposer + } + return "" +} + +func (m *QueryProposalResponse_Proposal) GetAgent() string { + if m != nil { + return m.Agent + } + return "" +} + +func (m *QueryProposalResponse_Proposal) GetPreActions() []*types.Any { + if m != nil { + return m.PreActions + } + return nil +} + +func (m *QueryProposalResponse_Proposal) GetPostActions() []*types.Any { + if m != nil { + return m.PostActions + } + return nil +} + +// QueryProposalsRequest is the request type for the Query/Proposals RPC method. +type QueryProposalsRequest struct { + // optional pagination for the request + Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryProposalsRequest) Reset() { *m = QueryProposalsRequest{} } +func (m *QueryProposalsRequest) String() string { return proto.CompactTextString(m) } +func (*QueryProposalsRequest) ProtoMessage() {} +func (*QueryProposalsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_84a41d203399b1b7, []int{8} +} +func (m *QueryProposalsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryProposalsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryProposalsRequest.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 *QueryProposalsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryProposalsRequest.Merge(m, src) +} +func (m *QueryProposalsRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryProposalsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryProposalsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryProposalsRequest proto.InternalMessageInfo + +func (m *QueryProposalsRequest) GetPagination() *query.PageRequest { + if m != nil { + return m.Pagination + } + return nil +} + +// QueryProposalsResponse is the response type for the Query/Proposals RPC method. +type QueryProposalsResponse struct { + // all the proposals + Proposals []*QueryProposalsResponse_Proposal `protobuf:"bytes,1,rep,name=proposals,proto3" json:"proposals,omitempty"` + // pagination in the response + Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryProposalsResponse) Reset() { *m = QueryProposalsResponse{} } +func (m *QueryProposalsResponse) String() string { return proto.CompactTextString(m) } +func (*QueryProposalsResponse) ProtoMessage() {} +func (*QueryProposalsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_84a41d203399b1b7, []int{9} +} +func (m *QueryProposalsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryProposalsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryProposalsResponse.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 *QueryProposalsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryProposalsResponse.Merge(m, src) +} +func (m *QueryProposalsResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryProposalsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryProposalsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryProposalsResponse proto.InternalMessageInfo + +func (m *QueryProposalsResponse) GetProposals() []*QueryProposalsResponse_Proposal { + if m != nil { + return m.Proposals + } + return nil +} + +func (m *QueryProposalsResponse) GetPagination() *query.PageResponse { + if m != nil { + return m.Pagination + } + return nil +} + +// Proposal defines a proposal. +type QueryProposalsResponse_Proposal struct { + // the unique identifier + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + // the address of the proposer + Proposer string `protobuf:"bytes,2,opt,name=proposer,proto3" json:"proposer,omitempty"` + // the address of the agent of the proposal + Agent string `protobuf:"bytes,3,opt,name=agent,proto3" json:"agent,omitempty"` + // the messages which has been executed on the submission + PreActions []*types.Any `protobuf:"bytes,4,rep,name=pre_actions,json=preActions,proto3" json:"pre_actions,omitempty"` + // the messages which will be executed after the actions included in Msg/Exec + PostActions []*types.Any `protobuf:"bytes,5,rep,name=post_actions,json=postActions,proto3" json:"post_actions,omitempty"` +} + +func (m *QueryProposalsResponse_Proposal) Reset() { *m = QueryProposalsResponse_Proposal{} } +func (m *QueryProposalsResponse_Proposal) String() string { return proto.CompactTextString(m) } +func (*QueryProposalsResponse_Proposal) ProtoMessage() {} +func (*QueryProposalsResponse_Proposal) Descriptor() ([]byte, []int) { + return fileDescriptor_84a41d203399b1b7, []int{9, 0} +} +func (m *QueryProposalsResponse_Proposal) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryProposalsResponse_Proposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryProposalsResponse_Proposal.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 *QueryProposalsResponse_Proposal) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryProposalsResponse_Proposal.Merge(m, src) +} +func (m *QueryProposalsResponse_Proposal) XXX_Size() int { + return m.Size() +} +func (m *QueryProposalsResponse_Proposal) XXX_DiscardUnknown() { + xxx_messageInfo_QueryProposalsResponse_Proposal.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryProposalsResponse_Proposal proto.InternalMessageInfo + +func (m *QueryProposalsResponse_Proposal) GetId() uint64 { + if m != nil { + return m.Id + } + return 0 +} + +func (m *QueryProposalsResponse_Proposal) GetProposer() string { + if m != nil { + return m.Proposer + } + return "" +} + +func (m *QueryProposalsResponse_Proposal) GetAgent() string { + if m != nil { + return m.Agent + } + return "" +} + +func (m *QueryProposalsResponse_Proposal) GetPreActions() []*types.Any { + if m != nil { + return m.PreActions + } + return nil +} + +func (m *QueryProposalsResponse_Proposal) GetPostActions() []*types.Any { + if m != nil { + return m.PostActions + } + return nil +} + +func init() { + proto.RegisterType((*QueryParamsRequest)(nil), "andromeda.escrow.v1alpha1.QueryParamsRequest") + proto.RegisterType((*QueryParamsResponse)(nil), "andromeda.escrow.v1alpha1.QueryParamsResponse") + proto.RegisterType((*QueryParamsResponse_Params)(nil), "andromeda.escrow.v1alpha1.QueryParamsResponse.Params") + proto.RegisterType((*QueryAgentRequest)(nil), "andromeda.escrow.v1alpha1.QueryAgentRequest") + proto.RegisterType((*QueryAgentResponse)(nil), "andromeda.escrow.v1alpha1.QueryAgentResponse") + proto.RegisterType((*QueryAgentResponse_Agent)(nil), "andromeda.escrow.v1alpha1.QueryAgentResponse.Agent") + proto.RegisterType((*QueryAgentsRequest)(nil), "andromeda.escrow.v1alpha1.QueryAgentsRequest") + proto.RegisterType((*QueryAgentsResponse)(nil), "andromeda.escrow.v1alpha1.QueryAgentsResponse") + proto.RegisterType((*QueryAgentsResponse_Agent)(nil), "andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent") + proto.RegisterType((*QueryProposalRequest)(nil), "andromeda.escrow.v1alpha1.QueryProposalRequest") + proto.RegisterType((*QueryProposalResponse)(nil), "andromeda.escrow.v1alpha1.QueryProposalResponse") + proto.RegisterType((*QueryProposalResponse_Proposal)(nil), "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal") + proto.RegisterType((*QueryProposalsRequest)(nil), "andromeda.escrow.v1alpha1.QueryProposalsRequest") + proto.RegisterType((*QueryProposalsResponse)(nil), "andromeda.escrow.v1alpha1.QueryProposalsResponse") + proto.RegisterType((*QueryProposalsResponse_Proposal)(nil), "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal") +} + +func init() { + proto.RegisterFile("andromeda/escrow/v1alpha1/query.proto", fileDescriptor_84a41d203399b1b7) +} + +var fileDescriptor_84a41d203399b1b7 = []byte{ + // 824 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x55, 0x4d, 0x6b, 0x13, 0x5d, + 0x14, 0xee, 0x4c, 0x9a, 0xbc, 0xed, 0xcd, 0xcb, 0x0b, 0xef, 0x35, 0x4a, 0x12, 0x35, 0xe8, 0x68, + 0x6b, 0x6b, 0x9b, 0x7b, 0x9b, 0xb4, 0x45, 0x8c, 0xab, 0x04, 0x6a, 0x11, 0x2c, 0xc4, 0x88, 0x52, + 0x24, 0x50, 0x6e, 0x32, 0xd7, 0x38, 0xd0, 0xcc, 0x9d, 0xce, 0x4c, 0x2b, 0xa5, 0x74, 0xe3, 0x2f, + 0xf0, 0x63, 0xe5, 0x42, 0x11, 0x97, 0x2e, 0x5c, 0xf9, 0x23, 0xc4, 0x55, 0xd1, 0x8d, 0x4b, 0x4d, + 0x5d, 0xb9, 0x12, 0xfc, 0x03, 0x92, 0xfb, 0x31, 0x4d, 0xa2, 0x69, 0x26, 0x45, 0xdc, 0xb8, 0x3c, + 0xf7, 0x3c, 0xe7, 0x9c, 0xe7, 0x9c, 0x7b, 0x3e, 0xc0, 0x04, 0xb1, 0x4d, 0x97, 0x35, 0xa9, 0x49, + 0x30, 0xf5, 0xea, 0x2e, 0xbb, 0x8f, 0xb7, 0x72, 0x64, 0xdd, 0xb9, 0x47, 0x72, 0x78, 0x63, 0x93, + 0xba, 0xdb, 0xc8, 0x71, 0x99, 0xcf, 0x60, 0x2a, 0x80, 0x21, 0x01, 0x43, 0x0a, 0x96, 0xbe, 0x58, + 0x67, 0x5e, 0x93, 0x79, 0xb8, 0x46, 0x3c, 0x2a, 0x6c, 0xf0, 0x56, 0xae, 0x46, 0x7d, 0x92, 0xc3, + 0x0e, 0x69, 0x58, 0x36, 0xf1, 0x2d, 0x66, 0x0b, 0x37, 0xe9, 0x94, 0xc0, 0xae, 0x71, 0x09, 0x0b, + 0x41, 0xaa, 0x4e, 0x35, 0x18, 0x6b, 0xac, 0x53, 0x4c, 0x1c, 0x0b, 0x13, 0xdb, 0x66, 0x3e, 0xb7, + 0x53, 0xda, 0x94, 0xd4, 0x72, 0xa9, 0xb6, 0x79, 0x17, 0x13, 0x5b, 0x52, 0x33, 0x12, 0x00, 0xde, + 0x68, 0x47, 0x2d, 0x13, 0x97, 0x34, 0xbd, 0x0a, 0xdd, 0xd8, 0xa4, 0x9e, 0x6f, 0xd8, 0xe0, 0x58, + 0xd7, 0xab, 0xe7, 0x30, 0xdb, 0xa3, 0x70, 0x05, 0xc4, 0x1c, 0xfe, 0x92, 0xd4, 0xce, 0x68, 0x53, + 0xf1, 0xfc, 0x22, 0xea, 0x9b, 0x18, 0xfa, 0x85, 0x3d, 0x92, 0xa2, 0x74, 0x92, 0x1e, 0x03, 0x31, + 0xf1, 0x62, 0x2c, 0x83, 0xff, 0x39, 0xbe, 0xd8, 0xa0, 0xb6, 0x2f, 0x49, 0xc0, 0x3c, 0xf8, 0x87, + 0x98, 0xa6, 0x4b, 0x3d, 0x11, 0x6e, 0xbc, 0x94, 0x7c, 0xff, 0x26, 0x9b, 0x90, 0x69, 0x17, 0x85, + 0xe6, 0xa6, 0xef, 0x5a, 0x76, 0xa3, 0xa2, 0x80, 0xc6, 0x9e, 0x26, 0xf3, 0x91, 0x9e, 0x24, 0xf1, + 0x6b, 0x20, 0x4a, 0xda, 0x0f, 0x92, 0xf7, 0xfc, 0x20, 0xde, 0x5d, 0xd6, 0x48, 0x48, 0xc2, 0x43, + 0x9a, 0x81, 0x28, 0x97, 0x8f, 0x42, 0xaf, 0x6d, 0x53, 0x77, 0x29, 0xf1, 0x99, 0x9b, 0xd4, 0x07, + 0xd9, 0x48, 0xa0, 0x51, 0xed, 0xcc, 0x48, 0xfd, 0x10, 0xbc, 0x0a, 0xc0, 0x41, 0x7f, 0xc8, 0xb4, + 0x26, 0x91, 0xf4, 0xd4, 0x6e, 0x26, 0x24, 0x1a, 0x50, 0x36, 0x13, 0x2a, 0x93, 0x06, 0x95, 0xb6, + 0x95, 0x0e, 0x4b, 0xe3, 0x99, 0x2e, 0xbf, 0x5a, 0xb9, 0x97, 0x15, 0xbb, 0x0e, 0x62, 0x3c, 0xdf, + 0x76, 0x72, 0x91, 0xa9, 0x78, 0x7e, 0x21, 0x54, 0xc9, 0xbc, 0x9e, 0x9a, 0x49, 0x1f, 0x70, 0xb9, + 0x8b, 0xad, 0xce, 0xd9, 0x5e, 0x18, 0xc8, 0x56, 0xb8, 0xea, 0xa4, 0xfb, 0xe7, 0xab, 0x3f, 0x09, + 0x12, 0xa2, 0x93, 0x5d, 0xe6, 0x30, 0x8f, 0xac, 0xab, 0xfa, 0xff, 0x07, 0x74, 0xcb, 0xe4, 0xa1, + 0x47, 0x2b, 0xba, 0x65, 0x1a, 0x9f, 0x75, 0x70, 0xbc, 0x07, 0x28, 0x2b, 0x79, 0x0b, 0x8c, 0x39, + 0xf2, 0x4d, 0xfe, 0xd3, 0xe5, 0x81, 0x63, 0xd3, 0xe3, 0x03, 0x05, 0x0f, 0x81, 0xab, 0xf4, 0x37, + 0x0d, 0x8c, 0xa9, 0xe7, 0x5e, 0x36, 0x70, 0x41, 0xc5, 0xa4, 0x83, 0x53, 0x0d, 0x90, 0x10, 0xa9, + 0x29, 0x89, 0x0c, 0x30, 0x11, 0x30, 0xb8, 0x08, 0xe2, 0x8e, 0x4b, 0xd7, 0x48, 0x9d, 0xef, 0x9a, + 0xe4, 0x28, 0x6f, 0x94, 0x04, 0x12, 0xcb, 0x06, 0xa9, 0x65, 0x83, 0x8a, 0xf6, 0x76, 0x05, 0x38, + 0x2e, 0x2d, 0x0a, 0x1c, 0xbc, 0x04, 0xfe, 0x75, 0x98, 0xe7, 0x07, 0x76, 0xd1, 0x43, 0xec, 0xe2, + 0x6d, 0xa4, 0x34, 0x34, 0xd6, 0x7a, 0x4a, 0xdc, 0x67, 0x18, 0xf4, 0x23, 0x0f, 0xc3, 0xeb, 0x08, + 0x38, 0xd1, 0x1b, 0x41, 0xfe, 0xe2, 0x2a, 0x18, 0x57, 0xa5, 0x57, 0x23, 0x51, 0x08, 0xfb, 0x8d, + 0xde, 0xcf, 0xff, 0x78, 0xe0, 0xec, 0xf7, 0xcd, 0xc6, 0xdf, 0xd7, 0x11, 0xf9, 0x47, 0x31, 0x10, + 0xe5, 0xa5, 0x86, 0x8f, 0x35, 0x75, 0x4c, 0x60, 0x36, 0xec, 0x55, 0xe2, 0x0d, 0x90, 0x46, 0xc3, + 0x1d, 0x31, 0x63, 0xfa, 0xc1, 0x87, 0x2f, 0x4f, 0xf4, 0x73, 0xf0, 0x2c, 0xee, 0x7f, 0xfc, 0xc5, + 0x81, 0x83, 0x4f, 0x35, 0xb5, 0xae, 0x66, 0x43, 0x5e, 0x1c, 0x41, 0x29, 0x3b, 0xd4, 0x7d, 0x32, + 0xe6, 0x39, 0xa3, 0x2c, 0x9c, 0x39, 0x84, 0x91, 0x58, 0xc4, 0x78, 0x47, 0xee, 0xc2, 0x5d, 0x5e, + 0x30, 0xb1, 0xb3, 0x61, 0x36, 0xec, 0x6e, 0x0f, 0x59, 0xb0, 0xee, 0x53, 0x10, 0xaa, 0x60, 0xf2, + 0x4e, 0xbc, 0xe8, 0x6c, 0x61, 0x1c, 0x7e, 0x4d, 0x0a, 0x62, 0x73, 0xc3, 0xee, 0x55, 0x23, 0xc7, + 0xa9, 0xcd, 0xc0, 0xe9, 0xc3, 0xfe, 0x52, 0x4d, 0x2a, 0xde, 0xb1, 0xcc, 0x5d, 0xf8, 0x5c, 0x03, + 0xe3, 0xc1, 0x60, 0xc3, 0xb9, 0x21, 0x76, 0x80, 0x20, 0x99, 0x1b, 0x7a, 0x6b, 0x18, 0xb3, 0x9c, + 0xe5, 0x24, 0x3c, 0x1f, 0x86, 0x65, 0xe9, 0xbb, 0xf6, 0xb6, 0x95, 0xd1, 0xf6, 0x5a, 0x19, 0xed, + 0x53, 0x2b, 0xa3, 0x3d, 0xdc, 0xcf, 0x8c, 0xec, 0xed, 0x67, 0x46, 0x3e, 0xee, 0x67, 0x46, 0xc0, + 0xe9, 0x3a, 0x6b, 0xf6, 0x0f, 0x5f, 0x02, 0x2a, 0xbe, 0xcf, 0xca, 0xda, 0x9d, 0xa9, 0xbe, 0xc1, + 0xae, 0x08, 0x59, 0x89, 0x2f, 0xf5, 0x48, 0x71, 0x69, 0xf5, 0x95, 0x9e, 0x2a, 0x06, 0x9e, 0x97, + 0x84, 0xe7, 0xdb, 0x12, 0xf1, 0xae, 0x43, 0x57, 0x15, 0xba, 0xaa, 0xd2, 0xb5, 0xf4, 0x89, 0xbe, + 0xba, 0xea, 0x72, 0xb9, 0xb4, 0x42, 0x7d, 0x62, 0x12, 0x9f, 0x7c, 0xd5, 0x4f, 0x06, 0xb8, 0x42, + 0x41, 0x00, 0x0b, 0x05, 0x85, 0xac, 0xc5, 0xf8, 0x92, 0x98, 0xff, 0x11, 0x00, 0x00, 0xff, 0xff, + 0x0e, 0x74, 0xf1, 0x76, 0x92, 0x0b, 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 { + // Params queries the module parameters. + Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) + // Agent queries an agent. + Agent(ctx context.Context, in *QueryAgentRequest, opts ...grpc.CallOption) (*QueryAgentResponse, error) + // Agents queries all the agents. + Agents(ctx context.Context, in *QueryAgentsRequest, opts ...grpc.CallOption) (*QueryAgentsResponse, error) + // Proposal queries a proposal. + Proposal(ctx context.Context, in *QueryProposalRequest, opts ...grpc.CallOption) (*QueryProposalResponse, error) + // Proposals queries all the proposals. + Proposals(ctx context.Context, in *QueryProposalsRequest, opts ...grpc.CallOption) (*QueryProposalsResponse, error) +} + +type queryClient struct { + cc grpc1.ClientConn +} + +func NewQueryClient(cc grpc1.ClientConn) QueryClient { + return &queryClient{cc} +} + +func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) { + out := new(QueryParamsResponse) + err := c.cc.Invoke(ctx, "/andromeda.escrow.v1alpha1.Query/Params", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) Agent(ctx context.Context, in *QueryAgentRequest, opts ...grpc.CallOption) (*QueryAgentResponse, error) { + out := new(QueryAgentResponse) + err := c.cc.Invoke(ctx, "/andromeda.escrow.v1alpha1.Query/Agent", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) Agents(ctx context.Context, in *QueryAgentsRequest, opts ...grpc.CallOption) (*QueryAgentsResponse, error) { + out := new(QueryAgentsResponse) + err := c.cc.Invoke(ctx, "/andromeda.escrow.v1alpha1.Query/Agents", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) Proposal(ctx context.Context, in *QueryProposalRequest, opts ...grpc.CallOption) (*QueryProposalResponse, error) { + out := new(QueryProposalResponse) + err := c.cc.Invoke(ctx, "/andromeda.escrow.v1alpha1.Query/Proposal", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) Proposals(ctx context.Context, in *QueryProposalsRequest, opts ...grpc.CallOption) (*QueryProposalsResponse, error) { + out := new(QueryProposalsResponse) + err := c.cc.Invoke(ctx, "/andromeda.escrow.v1alpha1.Query/Proposals", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// QueryServer is the server API for Query service. +type QueryServer interface { + // Params queries the module parameters. + Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) + // Agent queries an agent. + Agent(context.Context, *QueryAgentRequest) (*QueryAgentResponse, error) + // Agents queries all the agents. + Agents(context.Context, *QueryAgentsRequest) (*QueryAgentsResponse, error) + // Proposal queries a proposal. + Proposal(context.Context, *QueryProposalRequest) (*QueryProposalResponse, error) + // Proposals queries all the proposals. + Proposals(context.Context, *QueryProposalsRequest) (*QueryProposalsResponse, error) +} + +// UnimplementedQueryServer can be embedded to have forward compatible implementations. +type UnimplementedQueryServer struct { +} + +func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Params not implemented") +} +func (*UnimplementedQueryServer) Agent(ctx context.Context, req *QueryAgentRequest) (*QueryAgentResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Agent not implemented") +} +func (*UnimplementedQueryServer) Agents(ctx context.Context, req *QueryAgentsRequest) (*QueryAgentsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Agents not implemented") +} +func (*UnimplementedQueryServer) Proposal(ctx context.Context, req *QueryProposalRequest) (*QueryProposalResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Proposal not implemented") +} +func (*UnimplementedQueryServer) Proposals(ctx context.Context, req *QueryProposalsRequest) (*QueryProposalsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Proposals not implemented") +} + +func RegisterQueryServer(s grpc1.Server, srv QueryServer) { + s.RegisterService(&_Query_serviceDesc, srv) +} + +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: "/andromeda.escrow.v1alpha1.Query/Params", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_Agent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryAgentRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Agent(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/andromeda.escrow.v1alpha1.Query/Agent", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Agent(ctx, req.(*QueryAgentRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_Agents_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryAgentsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Agents(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/andromeda.escrow.v1alpha1.Query/Agents", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Agents(ctx, req.(*QueryAgentsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_Proposal_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryProposalRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Proposal(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/andromeda.escrow.v1alpha1.Query/Proposal", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Proposal(ctx, req.(*QueryProposalRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_Proposals_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryProposalsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Proposals(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/andromeda.escrow.v1alpha1.Query/Proposals", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Proposals(ctx, req.(*QueryProposalsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _Query_serviceDesc = grpc.ServiceDesc{ + ServiceName: "andromeda.escrow.v1alpha1.Query", + HandlerType: (*QueryServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Params", + Handler: _Query_Params_Handler, + }, + { + MethodName: "Agent", + Handler: _Query_Agent_Handler, + }, + { + MethodName: "Agents", + Handler: _Query_Agents_Handler, + }, + { + MethodName: "Proposal", + Handler: _Query_Proposal_Handler, + }, + { + MethodName: "Proposals", + Handler: _Query_Proposals_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "andromeda/escrow/v1alpha1/query.proto", +} + +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 + if m.Params != nil { + { + 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 (m *QueryParamsResponse_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 *QueryParamsResponse_Params) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryParamsResponse_Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *QueryAgentRequest) 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 *QueryAgentRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAgentRequest) 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 *QueryAgentResponse) 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 *QueryAgentResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAgentResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Agent != nil { + { + size, err := m.Agent.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 *QueryAgentResponse_Agent) 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 *QueryAgentResponse_Agent) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAgentResponse_Agent) 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 = encodeVarintQuery(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0x12 + } + 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 *QueryAgentsRequest) 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 *QueryAgentsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAgentsRequest) 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] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryAgentsResponse) 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 *QueryAgentsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAgentsResponse) 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.Agents) > 0 { + for iNdEx := len(m.Agents) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Agents[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 *QueryAgentsResponse_Agent) 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 *QueryAgentsResponse_Agent) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAgentsResponse_Agent) 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 = encodeVarintQuery(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0x12 + } + 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 *QueryProposalRequest) 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 *QueryProposalRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryProposalRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Id != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Id)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *QueryProposalResponse) 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 *QueryProposalResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryProposalResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Proposal != nil { + { + size, err := m.Proposal.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 *QueryProposalResponse_Proposal) 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 *QueryProposalResponse_Proposal) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryProposalResponse_Proposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.PostActions) > 0 { + for iNdEx := len(m.PostActions) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.PostActions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + } + if len(m.PreActions) > 0 { + for iNdEx := len(m.PreActions) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.PreActions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.Agent) > 0 { + i -= len(m.Agent) + copy(dAtA[i:], m.Agent) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Agent))) + i-- + dAtA[i] = 0x1a + } + if len(m.Proposer) > 0 { + i -= len(m.Proposer) + copy(dAtA[i:], m.Proposer) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Proposer))) + i-- + dAtA[i] = 0x12 + } + if m.Id != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Id)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *QueryProposalsRequest) 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 *QueryProposalsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryProposalsRequest) 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 + } + return len(dAtA) - i, nil +} + +func (m *QueryProposalsResponse) 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 *QueryProposalsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryProposalsResponse) 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.Proposals) > 0 { + for iNdEx := len(m.Proposals) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Proposals[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 *QueryProposalsResponse_Proposal) 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 *QueryProposalsResponse_Proposal) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryProposalsResponse_Proposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.PostActions) > 0 { + for iNdEx := len(m.PostActions) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.PostActions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + } + if len(m.PreActions) > 0 { + for iNdEx := len(m.PreActions) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.PreActions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.Agent) > 0 { + i -= len(m.Agent) + copy(dAtA[i:], m.Agent) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Agent))) + i-- + dAtA[i] = 0x1a + } + if len(m.Proposer) > 0 { + i -= len(m.Proposer) + copy(dAtA[i:], m.Proposer) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Proposer))) + i-- + dAtA[i] = 0x12 + } + if m.Id != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Id)) + i-- + dAtA[i] = 0x8 + } + 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 *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 + if m.Params != nil { + l = m.Params.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryParamsResponse_Params) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *QueryAgentRequest) 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 *QueryAgentResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Agent != nil { + l = m.Agent.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryAgentResponse_Agent) 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)) + } + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryAgentsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryAgentsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Agents) > 0 { + for _, e := range m.Agents { + 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 *QueryAgentsResponse_Agent) 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)) + } + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryProposalRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Id != 0 { + n += 1 + sovQuery(uint64(m.Id)) + } + return n +} + +func (m *QueryProposalResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Proposal != nil { + l = m.Proposal.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryProposalResponse_Proposal) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Id != 0 { + n += 1 + sovQuery(uint64(m.Id)) + } + l = len(m.Proposer) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Agent) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if len(m.PreActions) > 0 { + for _, e := range m.PreActions { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + if len(m.PostActions) > 0 { + for _, e := range m.PostActions { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + return n +} + +func (m *QueryProposalsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryProposalsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Proposals) > 0 { + for _, e := range m.Proposals { + 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 *QueryProposalsResponse_Proposal) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Id != 0 { + n += 1 + sovQuery(uint64(m.Id)) + } + l = len(m.Proposer) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Agent) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if len(m.PreActions) > 0 { + for _, e := range m.PreActions { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + if len(m.PostActions) > 0 { + for _, e := range m.PostActions { + l = e.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 *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 m.Params == nil { + m.Params = &QueryParamsResponse_Params{} + } + 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 (m *QueryParamsResponse_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 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: 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 { + 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 *QueryAgentRequest) 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: QueryAgentRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAgentRequest: 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 *QueryAgentResponse) 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: QueryAgentResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAgentResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Agent", 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.Agent == nil { + m.Agent = &QueryAgentResponse_Agent{} + } + if err := m.Agent.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 *QueryAgentResponse_Agent) 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: Agent: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Agent: 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 + case 2: + 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 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.Creator = 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 *QueryAgentsRequest) 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: QueryAgentsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAgentsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + 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 *QueryAgentsResponse) 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: QueryAgentsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAgentsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Agents", 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.Agents = append(m.Agents, &QueryAgentsResponse_Agent{}) + if err := m.Agents[len(m.Agents)-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 *QueryAgentsResponse_Agent) 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: Agent: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Agent: 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 + case 2: + 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 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.Creator = 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 *QueryProposalRequest) 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: QueryProposalRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryProposalRequest: 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 ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Id |= 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 *QueryProposalResponse) 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: QueryProposalResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryProposalResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Proposal", 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.Proposal == nil { + m.Proposal = &QueryProposalResponse_Proposal{} + } + if err := m.Proposal.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 *QueryProposalResponse_Proposal) 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: Proposal: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Proposal: 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 ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Id |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Proposer", 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.Proposer = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Agent", 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.Agent = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PreActions", 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.PreActions = append(m.PreActions, &types.Any{}) + if err := m.PreActions[len(m.PreActions)-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 PostActions", 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.PostActions = append(m.PostActions, &types.Any{}) + if err := m.PostActions[len(m.PostActions)-1].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 *QueryProposalsRequest) 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: QueryProposalsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryProposalsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + 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 *QueryProposalsResponse) 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: QueryProposalsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryProposalsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Proposals", 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.Proposals = append(m.Proposals, &QueryProposalsResponse_Proposal{}) + if err := m.Proposals[len(m.Proposals)-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 *QueryProposalsResponse_Proposal) 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: Proposal: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Proposal: 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 ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Id |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Proposer", 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.Proposer = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Agent", 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.Agent = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PreActions", 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.PreActions = append(m.PreActions, &types.Any{}) + if err := m.PreActions[len(m.PreActions)-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 PostActions", 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.PostActions = append(m.PostActions, &types.Any{}) + if err := m.PostActions[len(m.PostActions)-1].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/x/escrow/andromeda/escrow/v1alpha1/query.pb.gw.go b/x/escrow/andromeda/escrow/v1alpha1/query.pb.gw.go new file mode 100644 index 0000000..948068b --- /dev/null +++ b/x/escrow/andromeda/escrow/v1alpha1/query.pb.gw.go @@ -0,0 +1,521 @@ +// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. +// source: andromeda/escrow/v1alpha1/query.proto + +/* +Package escrowv1alpha1 is a reverse proxy. + +It translates gRPC into RESTful JSON APIs. +*/ +package escrowv1alpha1 + +import ( + "context" + "io" + "net/http" + + "github.com/golang/protobuf/descriptor" + "github.com/golang/protobuf/proto" + "github.com/grpc-ecosystem/grpc-gateway/runtime" + "github.com/grpc-ecosystem/grpc-gateway/utilities" + "google.golang.org/grpc" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/grpclog" + "google.golang.org/grpc/metadata" + "google.golang.org/grpc/status" +) + +// Suppress "imported and not used" errors +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = descriptor.ForMessage +var _ = metadata.Join + +func request_Query_Params_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryParamsRequest + var metadata runtime.ServerMetadata + + msg, err := client.Params(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_Params_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryParamsRequest + var metadata runtime.ServerMetadata + + msg, err := server.Params(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_Agent_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAgentRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["address"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "address") + } + + protoReq.Address, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "address", err) + } + + msg, err := client.Agent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_Agent_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAgentRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["address"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "address") + } + + protoReq.Address, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "address", err) + } + + msg, err := server.Agent(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_Query_Agents_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_Query_Agents_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAgentsRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_Agents_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.Agents(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_Agents_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAgentsRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_Agents_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.Agents(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_Proposal_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryProposalRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.Uint64(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := client.Proposal(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_Proposal_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryProposalRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.Uint64(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := server.Proposal(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_Query_Proposals_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_Query_Proposals_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryProposalsRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_Proposals_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.Proposals(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_Proposals_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryProposalsRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_Proposals_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.Proposals(ctx, &protoReq) + return msg, metadata, err + +} + +// RegisterQueryHandlerServer registers the http handlers for service Query to "mux". +// UnaryRPC :call QueryServer directly. +// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. +// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead. +func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error { + + mux.Handle("GET", pattern_Query_Params_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_Params_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_Params_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_Agent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_Agent_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_Agent_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_Agents_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_Agents_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_Agents_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_Proposal_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_Proposal_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_Proposal_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_Proposals_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_Proposals_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_Proposals_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +// RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but +// automatically dials to "endpoint" and closes the connection when "ctx" gets done. +func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { + conn, err := grpc.Dial(endpoint, opts...) + if err != nil { + return err + } + defer func() { + if err != nil { + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + return + } + go func() { + <-ctx.Done() + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + }() + }() + + return RegisterQueryHandler(ctx, mux, conn) +} + +// RegisterQueryHandler registers the http handlers for service Query to "mux". +// The handlers forward requests to the grpc endpoint over "conn". +func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { + return RegisterQueryHandlerClient(ctx, mux, NewQueryClient(conn)) +} + +// RegisterQueryHandlerClient registers the http handlers for service Query +// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". +// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" +// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in +// "QueryClient" to call the correct interceptors. +func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error { + + mux.Handle("GET", pattern_Query_Params_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_Params_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_Params_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_Agent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_Agent_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_Agent_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_Agents_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_Agents_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_Agents_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_Proposal_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_Proposal_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_Proposal_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_Proposals_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_Proposals_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_Proposals_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +var ( + pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"andromeda", "escrow", "v1alpha1", "params"}, "", runtime.AssumeColonVerbOpt(true))) + + pattern_Query_Agent_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"andromeda", "escrow", "v1alpha1", "agents", "address"}, "", runtime.AssumeColonVerbOpt(true))) + + pattern_Query_Agents_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"andromeda", "escrow", "v1alpha1", "agents"}, "", runtime.AssumeColonVerbOpt(true))) + + pattern_Query_Proposal_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"andromeda", "escrow", "v1alpha1", "proposals", "id"}, "", runtime.AssumeColonVerbOpt(true))) + + pattern_Query_Proposals_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"andromeda", "escrow", "v1alpha1", "proposals"}, "", runtime.AssumeColonVerbOpt(true))) +) + +var ( + forward_Query_Params_0 = runtime.ForwardResponseMessage + + forward_Query_Agent_0 = runtime.ForwardResponseMessage + + forward_Query_Agents_0 = runtime.ForwardResponseMessage + + forward_Query_Proposal_0 = runtime.ForwardResponseMessage + + forward_Query_Proposals_0 = runtime.ForwardResponseMessage +) diff --git a/x/escrow/andromeda/escrow/v1alpha1/tx.pb.go b/x/escrow/andromeda/escrow/v1alpha1/tx.pb.go new file mode 100644 index 0000000..dd8bab0 --- /dev/null +++ b/x/escrow/andromeda/escrow/v1alpha1/tx.pb.go @@ -0,0 +1,2153 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: andromeda/escrow/v1alpha1/tx.proto + +package escrowv1alpha1 + +import ( + context "context" + fmt "fmt" + _ "github.com/cosmos/cosmos-proto" + types "github.com/cosmos/cosmos-sdk/codec/types" + _ "github.com/cosmos/cosmos-sdk/types/msgservice" + grpc1 "github.com/cosmos/gogoproto/grpc" + proto "github.com/cosmos/gogoproto/proto" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + io "io" + math "math" + math_bits "math/bits" +) + +// 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 + +// MsgUpdateParams is the Msg/UpdateParams request type. +type MsgUpdateParams struct { + // the address of the module authority + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // the parameters to update + // Note: All parameters must be supplied. + Params *MsgUpdateParams_Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"` +} + +func (m *MsgUpdateParams) Reset() { *m = MsgUpdateParams{} } +func (m *MsgUpdateParams) String() string { return proto.CompactTextString(m) } +func (*MsgUpdateParams) ProtoMessage() {} +func (*MsgUpdateParams) Descriptor() ([]byte, []int) { + return fileDescriptor_78c48d1f0ffd37da, []int{0} +} +func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgUpdateParams.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 *MsgUpdateParams) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUpdateParams.Merge(m, src) +} +func (m *MsgUpdateParams) XXX_Size() int { + return m.Size() +} +func (m *MsgUpdateParams) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUpdateParams.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgUpdateParams proto.InternalMessageInfo + +func (m *MsgUpdateParams) GetAuthority() string { + if m != nil { + return m.Authority + } + return "" +} + +func (m *MsgUpdateParams) GetParams() *MsgUpdateParams_Params { + if m != nil { + return m.Params + } + return nil +} + +// Params defines the parameters for the module. +type MsgUpdateParams_Params struct { +} + +func (m *MsgUpdateParams_Params) Reset() { *m = MsgUpdateParams_Params{} } +func (m *MsgUpdateParams_Params) String() string { return proto.CompactTextString(m) } +func (*MsgUpdateParams_Params) ProtoMessage() {} +func (*MsgUpdateParams_Params) Descriptor() ([]byte, []int) { + return fileDescriptor_78c48d1f0ffd37da, []int{0, 0} +} +func (m *MsgUpdateParams_Params) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgUpdateParams_Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgUpdateParams_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 *MsgUpdateParams_Params) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUpdateParams_Params.Merge(m, src) +} +func (m *MsgUpdateParams_Params) XXX_Size() int { + return m.Size() +} +func (m *MsgUpdateParams_Params) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUpdateParams_Params.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgUpdateParams_Params proto.InternalMessageInfo + +// MsgUpdateParamsResponse is the Msg/UpdateParams response type. +type MsgUpdateParamsResponse struct { +} + +func (m *MsgUpdateParamsResponse) Reset() { *m = MsgUpdateParamsResponse{} } +func (m *MsgUpdateParamsResponse) String() string { return proto.CompactTextString(m) } +func (*MsgUpdateParamsResponse) ProtoMessage() {} +func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_78c48d1f0ffd37da, []int{1} +} +func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgUpdateParamsResponse.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 *MsgUpdateParamsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUpdateParamsResponse.Merge(m, src) +} +func (m *MsgUpdateParamsResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUpdateParamsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgUpdateParamsResponse proto.InternalMessageInfo + +// MsgCreateAgent is the Msg/CreateAgent request type. +type MsgCreateAgent struct { + // the address of the account creating the agent + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` +} + +func (m *MsgCreateAgent) Reset() { *m = MsgCreateAgent{} } +func (m *MsgCreateAgent) String() string { return proto.CompactTextString(m) } +func (*MsgCreateAgent) ProtoMessage() {} +func (*MsgCreateAgent) Descriptor() ([]byte, []int) { + return fileDescriptor_78c48d1f0ffd37da, []int{2} +} +func (m *MsgCreateAgent) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgCreateAgent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgCreateAgent.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 *MsgCreateAgent) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgCreateAgent.Merge(m, src) +} +func (m *MsgCreateAgent) XXX_Size() int { + return m.Size() +} +func (m *MsgCreateAgent) XXX_DiscardUnknown() { + xxx_messageInfo_MsgCreateAgent.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgCreateAgent proto.InternalMessageInfo + +func (m *MsgCreateAgent) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +// MsgCreateAgentResponse is the Msg/CreateAgent response type. +type MsgCreateAgentResponse struct { + // the address of the created agent + Agent string `protobuf:"bytes,1,opt,name=agent,proto3" json:"agent,omitempty"` +} + +func (m *MsgCreateAgentResponse) Reset() { *m = MsgCreateAgentResponse{} } +func (m *MsgCreateAgentResponse) String() string { return proto.CompactTextString(m) } +func (*MsgCreateAgentResponse) ProtoMessage() {} +func (*MsgCreateAgentResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_78c48d1f0ffd37da, []int{3} +} +func (m *MsgCreateAgentResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgCreateAgentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgCreateAgentResponse.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 *MsgCreateAgentResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgCreateAgentResponse.Merge(m, src) +} +func (m *MsgCreateAgentResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgCreateAgentResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgCreateAgentResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgCreateAgentResponse proto.InternalMessageInfo + +func (m *MsgCreateAgentResponse) GetAgent() string { + if m != nil { + return m.Agent + } + return "" +} + +// MsgSubmitProposal is the Msg/SubmitProposal request type. +type MsgSubmitProposal struct { + // the address of the proposer + Proposer string `protobuf:"bytes,1,opt,name=proposer,proto3" json:"proposer,omitempty"` + // the address of the agent in charge + // Note: it must be created by the proposer. + Agent string `protobuf:"bytes,2,opt,name=agent,proto3" json:"agent,omitempty"` + // the messages which will be executed on the submission + // Note: the signer of each message must be either the proposer or the agent. + PreActions []*types.Any `protobuf:"bytes,3,rep,name=pre_actions,json=preActions,proto3" json:"pre_actions,omitempty"` + // the messages which will be executed after the actions included in Msg/Exec + // Note: the signer of each message must be either the proposer or the agent. + PostActions []*types.Any `protobuf:"bytes,4,rep,name=post_actions,json=postActions,proto3" json:"post_actions,omitempty"` +} + +func (m *MsgSubmitProposal) Reset() { *m = MsgSubmitProposal{} } +func (m *MsgSubmitProposal) String() string { return proto.CompactTextString(m) } +func (*MsgSubmitProposal) ProtoMessage() {} +func (*MsgSubmitProposal) Descriptor() ([]byte, []int) { + return fileDescriptor_78c48d1f0ffd37da, []int{4} +} +func (m *MsgSubmitProposal) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSubmitProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSubmitProposal.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 *MsgSubmitProposal) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSubmitProposal.Merge(m, src) +} +func (m *MsgSubmitProposal) XXX_Size() int { + return m.Size() +} +func (m *MsgSubmitProposal) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSubmitProposal.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgSubmitProposal proto.InternalMessageInfo + +func (m *MsgSubmitProposal) GetProposer() string { + if m != nil { + return m.Proposer + } + return "" +} + +func (m *MsgSubmitProposal) GetAgent() string { + if m != nil { + return m.Agent + } + return "" +} + +func (m *MsgSubmitProposal) GetPreActions() []*types.Any { + if m != nil { + return m.PreActions + } + return nil +} + +func (m *MsgSubmitProposal) GetPostActions() []*types.Any { + if m != nil { + return m.PostActions + } + return nil +} + +// MsgSubmitProposalResponse is the Msg/SubmitProposal response type. +type MsgSubmitProposalResponse struct { + // the identifier of the submitted proposal + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (m *MsgSubmitProposalResponse) Reset() { *m = MsgSubmitProposalResponse{} } +func (m *MsgSubmitProposalResponse) String() string { return proto.CompactTextString(m) } +func (*MsgSubmitProposalResponse) ProtoMessage() {} +func (*MsgSubmitProposalResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_78c48d1f0ffd37da, []int{5} +} +func (m *MsgSubmitProposalResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSubmitProposalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSubmitProposalResponse.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 *MsgSubmitProposalResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSubmitProposalResponse.Merge(m, src) +} +func (m *MsgSubmitProposalResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgSubmitProposalResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSubmitProposalResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgSubmitProposalResponse proto.InternalMessageInfo + +func (m *MsgSubmitProposalResponse) GetId() uint64 { + if m != nil { + return m.Id + } + return 0 +} + +// MsgExec is the Msg/Exec request type. +type MsgExec struct { + // the identifier of the proposal + Proposal uint64 `protobuf:"varint,1,opt,name=proposal,proto3" json:"proposal,omitempty"` + // the address of the account executing the proposal + Executor string `protobuf:"bytes,2,opt,name=executor,proto3" json:"executor,omitempty"` + // the address of the agent in charge + Agent string `protobuf:"bytes,3,opt,name=agent,proto3" json:"agent,omitempty"` + // the messages which will be executed on the execution + // Note: the signer of each message must be either the executor or the agent. + Actions []*types.Any `protobuf:"bytes,4,rep,name=actions,proto3" json:"actions,omitempty"` +} + +func (m *MsgExec) Reset() { *m = MsgExec{} } +func (m *MsgExec) String() string { return proto.CompactTextString(m) } +func (*MsgExec) ProtoMessage() {} +func (*MsgExec) Descriptor() ([]byte, []int) { + return fileDescriptor_78c48d1f0ffd37da, []int{6} +} +func (m *MsgExec) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgExec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgExec.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 *MsgExec) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgExec.Merge(m, src) +} +func (m *MsgExec) XXX_Size() int { + return m.Size() +} +func (m *MsgExec) XXX_DiscardUnknown() { + xxx_messageInfo_MsgExec.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgExec proto.InternalMessageInfo + +func (m *MsgExec) GetProposal() uint64 { + if m != nil { + return m.Proposal + } + return 0 +} + +func (m *MsgExec) GetExecutor() string { + if m != nil { + return m.Executor + } + return "" +} + +func (m *MsgExec) GetAgent() string { + if m != nil { + return m.Agent + } + return "" +} + +func (m *MsgExec) GetActions() []*types.Any { + if m != nil { + return m.Actions + } + return nil +} + +// MsgExecResponse is the Msg/Exec response type. +type MsgExecResponse struct { +} + +func (m *MsgExecResponse) Reset() { *m = MsgExecResponse{} } +func (m *MsgExecResponse) String() string { return proto.CompactTextString(m) } +func (*MsgExecResponse) ProtoMessage() {} +func (*MsgExecResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_78c48d1f0ffd37da, []int{7} +} +func (m *MsgExecResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgExecResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgExecResponse.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 *MsgExecResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgExecResponse.Merge(m, src) +} +func (m *MsgExecResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgExecResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgExecResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgExecResponse proto.InternalMessageInfo + +func init() { + proto.RegisterType((*MsgUpdateParams)(nil), "andromeda.escrow.v1alpha1.MsgUpdateParams") + proto.RegisterType((*MsgUpdateParams_Params)(nil), "andromeda.escrow.v1alpha1.MsgUpdateParams.Params") + proto.RegisterType((*MsgUpdateParamsResponse)(nil), "andromeda.escrow.v1alpha1.MsgUpdateParamsResponse") + proto.RegisterType((*MsgCreateAgent)(nil), "andromeda.escrow.v1alpha1.MsgCreateAgent") + proto.RegisterType((*MsgCreateAgentResponse)(nil), "andromeda.escrow.v1alpha1.MsgCreateAgentResponse") + proto.RegisterType((*MsgSubmitProposal)(nil), "andromeda.escrow.v1alpha1.MsgSubmitProposal") + proto.RegisterType((*MsgSubmitProposalResponse)(nil), "andromeda.escrow.v1alpha1.MsgSubmitProposalResponse") + proto.RegisterType((*MsgExec)(nil), "andromeda.escrow.v1alpha1.MsgExec") + proto.RegisterType((*MsgExecResponse)(nil), "andromeda.escrow.v1alpha1.MsgExecResponse") +} + +func init() { + proto.RegisterFile("andromeda/escrow/v1alpha1/tx.proto", fileDescriptor_78c48d1f0ffd37da) +} + +var fileDescriptor_78c48d1f0ffd37da = []byte{ + // 660 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x94, 0xcf, 0x6b, 0x13, 0x41, + 0x14, 0xc7, 0xbb, 0x9b, 0xb6, 0x69, 0x5f, 0x6a, 0xa4, 0x4b, 0xb1, 0xc9, 0x8a, 0xa1, 0x2c, 0x08, + 0x31, 0xea, 0x2e, 0x89, 0x55, 0x61, 0x3d, 0x25, 0x52, 0xd4, 0x43, 0x20, 0xa4, 0x5a, 0x44, 0x0a, + 0x65, 0xba, 0x3b, 0x6e, 0x83, 0xc9, 0xce, 0x32, 0x33, 0xa9, 0xe9, 0x4d, 0xfc, 0x0b, 0xfc, 0x1b, + 0x3c, 0x7a, 0x90, 0x1e, 0x04, 0xff, 0x05, 0xe9, 0xa9, 0x78, 0xf2, 0x28, 0xe9, 0xa1, 0xe0, 0xc9, + 0xa3, 0x47, 0xd9, 0x9d, 0xcc, 0xa4, 0x8d, 0xe4, 0x87, 0xa7, 0xcd, 0xdb, 0xf7, 0x79, 0xdf, 0xef, + 0xbc, 0x97, 0x37, 0x0b, 0x16, 0x0a, 0x7d, 0x4a, 0x3a, 0xd8, 0x47, 0x0e, 0x66, 0x1e, 0x25, 0x6f, + 0x9d, 0xc3, 0x32, 0x6a, 0x47, 0x07, 0xa8, 0xec, 0xf0, 0x9e, 0x1d, 0x51, 0xc2, 0x89, 0x91, 0x57, + 0x8c, 0x2d, 0x18, 0x5b, 0x32, 0xe6, 0xba, 0x47, 0x58, 0x87, 0x30, 0xa7, 0xc3, 0x02, 0xe7, 0xb0, + 0x1c, 0x3f, 0x44, 0x8d, 0x99, 0x17, 0x89, 0xbd, 0x24, 0x72, 0x44, 0x20, 0x53, 0x01, 0x21, 0x41, + 0x1b, 0x3b, 0x49, 0xb4, 0xdf, 0x7d, 0xed, 0xa0, 0xf0, 0x48, 0xa4, 0xac, 0xcf, 0x1a, 0x5c, 0xad, + 0xb3, 0xe0, 0x45, 0xe4, 0x23, 0x8e, 0x1b, 0x88, 0xa2, 0x0e, 0x33, 0x1e, 0xc0, 0x32, 0xea, 0xf2, + 0x03, 0x42, 0x5b, 0xfc, 0x28, 0xa7, 0x6d, 0x68, 0xc5, 0xe5, 0x5a, 0xee, 0xfb, 0x97, 0xbb, 0x6b, + 0x03, 0xcd, 0xaa, 0xef, 0x53, 0xcc, 0xd8, 0x36, 0xa7, 0xad, 0x30, 0x68, 0x0e, 0x51, 0xe3, 0x19, + 0x2c, 0x46, 0x89, 0x42, 0x4e, 0xdf, 0xd0, 0x8a, 0x99, 0x4a, 0xd9, 0x1e, 0xdb, 0x86, 0x3d, 0xe2, + 0x69, 0x8b, 0x47, 0x73, 0x20, 0x60, 0x2e, 0xc1, 0xa2, 0x78, 0xe3, 0x66, 0xdf, 0x9f, 0x1f, 0x97, + 0x86, 0x26, 0x56, 0x1e, 0xd6, 0x47, 0x6a, 0x9b, 0x98, 0x45, 0x24, 0x64, 0xd8, 0x6a, 0x42, 0xb6, + 0xce, 0x82, 0xc7, 0x14, 0x23, 0x8e, 0xab, 0x01, 0x0e, 0xb9, 0x51, 0x81, 0xb4, 0x17, 0x87, 0x84, + 0x4e, 0xed, 0x43, 0x82, 0xee, 0x4a, 0x6c, 0x28, 0x23, 0xeb, 0x29, 0x5c, 0xbb, 0xac, 0x29, 0xdd, + 0x0c, 0x1b, 0x16, 0x50, 0xfc, 0x62, 0xaa, 0xb2, 0xc0, 0xac, 0x3f, 0x1a, 0xac, 0xd6, 0x59, 0xb0, + 0xdd, 0xdd, 0xef, 0xb4, 0x78, 0x83, 0x92, 0x88, 0x30, 0xd4, 0x36, 0x36, 0x61, 0x29, 0x4a, 0x7e, + 0xe3, 0xe9, 0x47, 0x54, 0xe4, 0xd0, 0x5b, 0x9f, 0xc9, 0xdb, 0xb8, 0x0f, 0x99, 0x88, 0xe2, 0x3d, + 0xe4, 0xf1, 0x16, 0x09, 0x59, 0x2e, 0xb5, 0x91, 0x2a, 0x66, 0x2a, 0x6b, 0xb6, 0x58, 0x0b, 0x5b, + 0xae, 0x85, 0x5d, 0x0d, 0x8f, 0x9a, 0x10, 0x51, 0x5c, 0x15, 0x9c, 0xf1, 0x10, 0x56, 0x22, 0xc2, + 0xb8, 0xaa, 0x9b, 0x9f, 0x50, 0x97, 0x89, 0xc9, 0x41, 0xa1, 0x7b, 0x25, 0x9e, 0xa1, 0x3a, 0xae, + 0x75, 0x1b, 0xf2, 0xff, 0x74, 0xae, 0xe6, 0x98, 0x05, 0xbd, 0xe5, 0x27, 0xbd, 0xcf, 0x37, 0xf5, + 0x96, 0x6f, 0x9d, 0x68, 0x90, 0xae, 0xb3, 0x60, 0xab, 0x87, 0x3d, 0xc3, 0x94, 0xd3, 0x41, 0xed, + 0x01, 0xa1, 0xe2, 0x78, 0x72, 0xb8, 0x87, 0xbd, 0x6e, 0xfc, 0xe7, 0x4e, 0x1b, 0x83, 0x22, 0x87, + 0x93, 0x4b, 0xcd, 0x36, 0x39, 0x1b, 0xd2, 0xb3, 0x74, 0x2f, 0xa1, 0x41, 0xe7, 0xd2, 0xce, 0x5a, + 0x4d, 0x6e, 0x57, 0xdc, 0x8b, 0xec, 0xb7, 0xf2, 0x35, 0x05, 0xa9, 0x3a, 0x0b, 0x8c, 0x10, 0x56, + 0x2e, 0xdd, 0xba, 0xd2, 0xec, 0xb7, 0xc5, 0xac, 0xcc, 0xce, 0xaa, 0x39, 0xbf, 0x81, 0xcc, 0xc5, + 0xab, 0x71, 0x6b, 0xb2, 0xc4, 0x05, 0xd4, 0x2c, 0xcf, 0x8c, 0x2a, 0x33, 0x0e, 0xd9, 0x91, 0x45, + 0xbf, 0x33, 0x59, 0xe4, 0x32, 0x6d, 0x6e, 0xfe, 0x0f, 0xad, 0x5c, 0x77, 0x60, 0x3e, 0x59, 0x1b, + 0x6b, 0x72, 0x75, 0xcc, 0x98, 0xa5, 0xe9, 0x8c, 0xd4, 0x35, 0x17, 0xde, 0x9d, 0x1f, 0x97, 0xb4, + 0xda, 0x6f, 0xed, 0x5b, 0xbf, 0xa0, 0x9d, 0xf6, 0x0b, 0xda, 0xcf, 0x7e, 0x41, 0xfb, 0x70, 0x56, + 0x98, 0x3b, 0x3d, 0x2b, 0xcc, 0xfd, 0x38, 0x2b, 0xcc, 0xc1, 0x0d, 0x8f, 0x74, 0xc6, 0x0b, 0xd6, + 0xd2, 0xcf, 0x7b, 0x8d, 0x78, 0x5d, 0x1a, 0xda, 0xab, 0xe2, 0xd8, 0xcf, 0xff, 0x23, 0x11, 0xcb, + 0xf0, 0xa3, 0x9e, 0xaa, 0x6e, 0xbd, 0xfc, 0xa4, 0xe7, 0xab, 0x4a, 0x76, 0x4b, 0xc8, 0xee, 0x0c, + 0x88, 0x93, 0x0b, 0xb9, 0x5d, 0x91, 0xdb, 0x95, 0xb9, 0xbe, 0x7e, 0x73, 0x6c, 0x6e, 0xf7, 0x49, + 0xa3, 0x56, 0xc7, 0x1c, 0xf9, 0x88, 0xa3, 0x5f, 0xfa, 0x75, 0xc5, 0xb9, 0xae, 0x00, 0x5d, 0x57, + 0x92, 0xfb, 0x8b, 0xc9, 0x96, 0xdf, 0xfb, 0x1b, 0x00, 0x00, 0xff, 0xff, 0xc0, 0x1f, 0x83, 0xdc, + 0xb5, 0x06, 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 + +// MsgClient is the client API for Msg service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type MsgClient interface { + // UpdateParams updates the module parameters. + UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) + // CreateAgent creates an escrow agent for a proposal. + CreateAgent(ctx context.Context, in *MsgCreateAgent, opts ...grpc.CallOption) (*MsgCreateAgentResponse, error) + // SubmitProposal submits a proposal. + SubmitProposal(ctx context.Context, in *MsgSubmitProposal, opts ...grpc.CallOption) (*MsgSubmitProposalResponse, error) + // Exec executes a proposal. + Exec(ctx context.Context, in *MsgExec, opts ...grpc.CallOption) (*MsgExecResponse, error) +} + +type msgClient struct { + cc grpc1.ClientConn +} + +func NewMsgClient(cc grpc1.ClientConn) MsgClient { + return &msgClient{cc} +} + +func (c *msgClient) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) { + out := new(MsgUpdateParamsResponse) + err := c.cc.Invoke(ctx, "/andromeda.escrow.v1alpha1.Msg/UpdateParams", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) CreateAgent(ctx context.Context, in *MsgCreateAgent, opts ...grpc.CallOption) (*MsgCreateAgentResponse, error) { + out := new(MsgCreateAgentResponse) + err := c.cc.Invoke(ctx, "/andromeda.escrow.v1alpha1.Msg/CreateAgent", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) SubmitProposal(ctx context.Context, in *MsgSubmitProposal, opts ...grpc.CallOption) (*MsgSubmitProposalResponse, error) { + out := new(MsgSubmitProposalResponse) + err := c.cc.Invoke(ctx, "/andromeda.escrow.v1alpha1.Msg/SubmitProposal", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) Exec(ctx context.Context, in *MsgExec, opts ...grpc.CallOption) (*MsgExecResponse, error) { + out := new(MsgExecResponse) + err := c.cc.Invoke(ctx, "/andromeda.escrow.v1alpha1.Msg/Exec", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// MsgServer is the server API for Msg service. +type MsgServer interface { + // UpdateParams updates the module parameters. + UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) + // CreateAgent creates an escrow agent for a proposal. + CreateAgent(context.Context, *MsgCreateAgent) (*MsgCreateAgentResponse, error) + // SubmitProposal submits a proposal. + SubmitProposal(context.Context, *MsgSubmitProposal) (*MsgSubmitProposalResponse, error) + // Exec executes a proposal. + Exec(context.Context, *MsgExec) (*MsgExecResponse, error) +} + +// UnimplementedMsgServer can be embedded to have forward compatible implementations. +type UnimplementedMsgServer struct { +} + +func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateParams not implemented") +} +func (*UnimplementedMsgServer) CreateAgent(ctx context.Context, req *MsgCreateAgent) (*MsgCreateAgentResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateAgent not implemented") +} +func (*UnimplementedMsgServer) SubmitProposal(ctx context.Context, req *MsgSubmitProposal) (*MsgSubmitProposalResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SubmitProposal not implemented") +} +func (*UnimplementedMsgServer) Exec(ctx context.Context, req *MsgExec) (*MsgExecResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Exec not implemented") +} + +func RegisterMsgServer(s grpc1.Server, srv MsgServer) { + s.RegisterService(&_Msg_serviceDesc, srv) +} + +func _Msg_UpdateParams_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgUpdateParams) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).UpdateParams(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/andromeda.escrow.v1alpha1.Msg/UpdateParams", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).UpdateParams(ctx, req.(*MsgUpdateParams)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_CreateAgent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgCreateAgent) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).CreateAgent(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/andromeda.escrow.v1alpha1.Msg/CreateAgent", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).CreateAgent(ctx, req.(*MsgCreateAgent)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_SubmitProposal_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgSubmitProposal) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).SubmitProposal(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/andromeda.escrow.v1alpha1.Msg/SubmitProposal", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).SubmitProposal(ctx, req.(*MsgSubmitProposal)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_Exec_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgExec) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).Exec(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/andromeda.escrow.v1alpha1.Msg/Exec", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).Exec(ctx, req.(*MsgExec)) + } + return interceptor(ctx, in, info, handler) +} + +var _Msg_serviceDesc = grpc.ServiceDesc{ + ServiceName: "andromeda.escrow.v1alpha1.Msg", + HandlerType: (*MsgServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "UpdateParams", + Handler: _Msg_UpdateParams_Handler, + }, + { + MethodName: "CreateAgent", + Handler: _Msg_CreateAgent_Handler, + }, + { + MethodName: "SubmitProposal", + Handler: _Msg_SubmitProposal_Handler, + }, + { + MethodName: "Exec", + Handler: _Msg_Exec_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "andromeda/escrow/v1alpha1/tx.proto", +} + +func (m *MsgUpdateParams) 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 *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Params != nil { + { + size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.Authority) > 0 { + i -= len(m.Authority) + copy(dAtA[i:], m.Authority) + i = encodeVarintTx(dAtA, i, uint64(len(m.Authority))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgUpdateParams_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 *MsgUpdateParams_Params) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgUpdateParams_Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgUpdateParamsResponse) 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 *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgCreateAgent) 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 *MsgCreateAgent) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgCreateAgent) 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 = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgCreateAgentResponse) 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 *MsgCreateAgentResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgCreateAgentResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Agent) > 0 { + i -= len(m.Agent) + copy(dAtA[i:], m.Agent) + i = encodeVarintTx(dAtA, i, uint64(len(m.Agent))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgSubmitProposal) 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 *MsgSubmitProposal) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSubmitProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.PostActions) > 0 { + for iNdEx := len(m.PostActions) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.PostActions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.PreActions) > 0 { + for iNdEx := len(m.PreActions) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.PreActions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.Agent) > 0 { + i -= len(m.Agent) + copy(dAtA[i:], m.Agent) + i = encodeVarintTx(dAtA, i, uint64(len(m.Agent))) + i-- + dAtA[i] = 0x12 + } + if len(m.Proposer) > 0 { + i -= len(m.Proposer) + copy(dAtA[i:], m.Proposer) + i = encodeVarintTx(dAtA, i, uint64(len(m.Proposer))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgSubmitProposalResponse) 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 *MsgSubmitProposalResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSubmitProposalResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Id != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.Id)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *MsgExec) 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 *MsgExec) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgExec) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Actions) > 0 { + for iNdEx := len(m.Actions) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Actions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.Agent) > 0 { + i -= len(m.Agent) + copy(dAtA[i:], m.Agent) + i = encodeVarintTx(dAtA, i, uint64(len(m.Agent))) + i-- + dAtA[i] = 0x1a + } + if len(m.Executor) > 0 { + i -= len(m.Executor) + copy(dAtA[i:], m.Executor) + i = encodeVarintTx(dAtA, i, uint64(len(m.Executor))) + i-- + dAtA[i] = 0x12 + } + if m.Proposal != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.Proposal)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *MsgExecResponse) 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 *MsgExecResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgExecResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func encodeVarintTx(dAtA []byte, offset int, v uint64) int { + offset -= sovTx(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *MsgUpdateParams) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Authority) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.Params != nil { + l = m.Params.Size() + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgUpdateParams_Params) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgUpdateParamsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgCreateAgent) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgCreateAgentResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Agent) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgSubmitProposal) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Proposer) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Agent) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if len(m.PreActions) > 0 { + for _, e := range m.PreActions { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + if len(m.PostActions) > 0 { + for _, e := range m.PostActions { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgSubmitProposalResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Id != 0 { + n += 1 + sovTx(uint64(m.Id)) + } + return n +} + +func (m *MsgExec) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Proposal != 0 { + n += 1 + sovTx(uint64(m.Proposal)) + } + l = len(m.Executor) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Agent) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if len(m.Actions) > 0 { + for _, e := range m.Actions { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgExecResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func sovTx(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozTx(x uint64) (n int) { + return sovTx(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *MsgUpdateParams) 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 ErrIntOverflowTx + } + 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: MsgUpdateParams: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgUpdateParams: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + 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 ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Authority = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + 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 ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Params == nil { + m.Params = &MsgUpdateParams_Params{} + } + if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgUpdateParams_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 ErrIntOverflowTx + } + 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 { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgUpdateParamsResponse) 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 ErrIntOverflowTx + } + 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: MsgUpdateParamsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgUpdateParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgCreateAgent) 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 ErrIntOverflowTx + } + 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: MsgCreateAgent: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgCreateAgent: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + 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 ErrIntOverflowTx + } + 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 ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgCreateAgentResponse) 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 ErrIntOverflowTx + } + 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: MsgCreateAgentResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgCreateAgentResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Agent", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + 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 ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Agent = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgSubmitProposal) 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 ErrIntOverflowTx + } + 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: MsgSubmitProposal: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgSubmitProposal: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Proposer", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + 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 ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Proposer = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Agent", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + 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 ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Agent = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PreActions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PreActions = append(m.PreActions, &types.Any{}) + if err := m.PreActions[len(m.PreActions)-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 PostActions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PostActions = append(m.PostActions, &types.Any{}) + if err := m.PostActions[len(m.PostActions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgSubmitProposalResponse) 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 ErrIntOverflowTx + } + 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: MsgSubmitProposalResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgSubmitProposalResponse: 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 ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Id |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgExec) 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 ErrIntOverflowTx + } + 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: MsgExec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgExec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Proposal", wireType) + } + m.Proposal = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Proposal |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Executor", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + 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 ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Executor = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Agent", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + 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 ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Agent = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Actions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Actions = append(m.Actions, &types.Any{}) + if err := m.Actions[len(m.Actions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgExecResponse) 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 ErrIntOverflowTx + } + 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: MsgExecResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgExecResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipTx(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, ErrIntOverflowTx + } + 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, ErrIntOverflowTx + } + 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, ErrIntOverflowTx + } + 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, ErrInvalidLengthTx + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupTx + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthTx + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/escrow/andromeda/escrow/v1alpha1/types.pb.go b/x/escrow/andromeda/escrow/v1alpha1/types.pb.go new file mode 100644 index 0000000..7e01b61 --- /dev/null +++ b/x/escrow/andromeda/escrow/v1alpha1/types.pb.go @@ -0,0 +1,697 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: andromeda/escrow/v1alpha1/types.proto + +package escrowv1alpha1 + +import ( + fmt "fmt" + types "github.com/cosmos/cosmos-sdk/codec/types" + proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// 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 defines the parameters for the module. +type Params struct { +} + +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_20554566221d01d5, []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 + +// Agent defines an account taking charge of a proposal. +type Agent struct { +} + +func (m *Agent) Reset() { *m = Agent{} } +func (m *Agent) String() string { return proto.CompactTextString(m) } +func (*Agent) ProtoMessage() {} +func (*Agent) Descriptor() ([]byte, []int) { + return fileDescriptor_20554566221d01d5, []int{1} +} +func (m *Agent) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Agent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Agent.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 *Agent) XXX_Merge(src proto.Message) { + xxx_messageInfo_Agent.Merge(m, src) +} +func (m *Agent) XXX_Size() int { + return m.Size() +} +func (m *Agent) XXX_DiscardUnknown() { + xxx_messageInfo_Agent.DiscardUnknown(m) +} + +var xxx_messageInfo_Agent proto.InternalMessageInfo + +// Proposal defines a proposal. +type Proposal struct { + // the address of the agent in charge + Agent []byte `protobuf:"bytes,1,opt,name=agent,proto3" json:"agent,omitempty"` + // the messages which has been executed on the submission + PreActions []*types.Any `protobuf:"bytes,2,rep,name=pre_actions,json=preActions,proto3" json:"pre_actions,omitempty"` + // the messages which will be executed after the actions included in Msg/Exec + PostActions []*types.Any `protobuf:"bytes,3,rep,name=post_actions,json=postActions,proto3" json:"post_actions,omitempty"` +} + +func (m *Proposal) Reset() { *m = Proposal{} } +func (m *Proposal) String() string { return proto.CompactTextString(m) } +func (*Proposal) ProtoMessage() {} +func (*Proposal) Descriptor() ([]byte, []int) { + return fileDescriptor_20554566221d01d5, []int{2} +} +func (m *Proposal) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Proposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Proposal.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 *Proposal) XXX_Merge(src proto.Message) { + xxx_messageInfo_Proposal.Merge(m, src) +} +func (m *Proposal) XXX_Size() int { + return m.Size() +} +func (m *Proposal) XXX_DiscardUnknown() { + xxx_messageInfo_Proposal.DiscardUnknown(m) +} + +var xxx_messageInfo_Proposal proto.InternalMessageInfo + +func (m *Proposal) GetAgent() []byte { + if m != nil { + return m.Agent + } + return nil +} + +func (m *Proposal) GetPreActions() []*types.Any { + if m != nil { + return m.PreActions + } + return nil +} + +func (m *Proposal) GetPostActions() []*types.Any { + if m != nil { + return m.PostActions + } + return nil +} + +func init() { + proto.RegisterType((*Params)(nil), "andromeda.escrow.v1alpha1.Params") + proto.RegisterType((*Agent)(nil), "andromeda.escrow.v1alpha1.Agent") + proto.RegisterType((*Proposal)(nil), "andromeda.escrow.v1alpha1.Proposal") +} + +func init() { + proto.RegisterFile("andromeda/escrow/v1alpha1/types.proto", fileDescriptor_20554566221d01d5) +} + +var fileDescriptor_20554566221d01d5 = []byte{ + // 320 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x4d, 0xcc, 0x4b, 0x29, + 0xca, 0xcf, 0x4d, 0x4d, 0x49, 0xd4, 0x4f, 0x2d, 0x4e, 0x2e, 0xca, 0x2f, 0xd7, 0x2f, 0x33, 0x4c, + 0xcc, 0x29, 0xc8, 0x48, 0x34, 0xd4, 0x2f, 0xa9, 0x2c, 0x48, 0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, + 0xc9, 0x17, 0x92, 0x84, 0x2b, 0xd3, 0x83, 0x28, 0xd3, 0x83, 0x29, 0x93, 0x92, 0x4c, 0xcf, 0xcf, + 0x4f, 0xcf, 0x49, 0xd5, 0x07, 0x2b, 0x4c, 0x2a, 0x4d, 0xd3, 0x4f, 0xcc, 0xab, 0x84, 0xe8, 0x52, + 0xe2, 0xe0, 0x62, 0x0b, 0x48, 0x2c, 0x4a, 0xcc, 0x2d, 0x56, 0x62, 0xe7, 0x62, 0x75, 0x4c, 0x4f, + 0xcd, 0x2b, 0x51, 0x9a, 0xc0, 0xc8, 0xc5, 0x11, 0x50, 0x94, 0x5f, 0x90, 0x5f, 0x9c, 0x98, 0x23, + 0x24, 0xc2, 0xc5, 0x9a, 0x08, 0x12, 0x95, 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x09, 0x82, 0x70, 0x84, + 0x4c, 0xb9, 0xb8, 0x0b, 0x8a, 0x52, 0xe3, 0x13, 0x93, 0x4b, 0x32, 0xf3, 0xf3, 0x8a, 0x25, 0x98, + 0x14, 0x98, 0x35, 0xb8, 0x8d, 0x44, 0xf4, 0x20, 0xd6, 0xe8, 0xc1, 0xac, 0xd1, 0x73, 0xcc, 0xab, + 0x0c, 0xe2, 0x2a, 0x28, 0x4a, 0x75, 0x84, 0xa8, 0x13, 0x32, 0xe7, 0xe2, 0x29, 0xc8, 0x2f, 0x2e, + 0x81, 0xeb, 0x63, 0xc6, 0xa3, 0x8f, 0x1b, 0xa4, 0x12, 0xaa, 0xd1, 0xe9, 0x33, 0xe3, 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, 0x70, 0xc9, 0x26, 0xe7, 0xe7, 0xea, 0xe1, 0xf4, 0xba, + 0x13, 0x57, 0x08, 0x28, 0x88, 0x02, 0x40, 0x26, 0x07, 0x30, 0x46, 0x69, 0xe0, 0x0c, 0x4a, 0x6b, + 0x08, 0x1f, 0xc6, 0x5d, 0xc4, 0xc4, 0xec, 0xe8, 0x1a, 0xb1, 0x8a, 0x49, 0xd2, 0x11, 0x6e, 0xb2, + 0x2b, 0xc4, 0xe4, 0x30, 0xa8, 0x8a, 0x53, 0x48, 0x72, 0x31, 0x10, 0xb9, 0x18, 0x98, 0xdc, 0x23, + 0x26, 0x55, 0x9c, 0x72, 0x31, 0xee, 0x01, 0x4e, 0xbe, 0xa9, 0x25, 0x89, 0x29, 0x89, 0x25, 0x89, + 0xaf, 0x98, 0xa4, 0xe1, 0xea, 0xac, 0xac, 0x20, 0x0a, 0xad, 0xac, 0x60, 0x2a, 0x93, 0xd8, 0xc0, + 0x01, 0x62, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x85, 0xa1, 0x02, 0xc9, 0x01, 0x02, 0x00, 0x00, +} + +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 + return len(dAtA) - i, nil +} + +func (m *Agent) 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 *Agent) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Agent) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *Proposal) 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 *Proposal) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Proposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.PostActions) > 0 { + for iNdEx := len(m.PostActions) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.PostActions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTypes(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.PreActions) > 0 { + for iNdEx := len(m.PreActions) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.PreActions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTypes(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.Agent) > 0 { + i -= len(m.Agent) + copy(dAtA[i:], m.Agent) + i = encodeVarintTypes(dAtA, i, uint64(len(m.Agent))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintTypes(dAtA []byte, offset int, v uint64) int { + offset -= sovTypes(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 + return n +} + +func (m *Agent) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *Proposal) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Agent) + if l > 0 { + n += 1 + l + sovTypes(uint64(l)) + } + if len(m.PreActions) > 0 { + for _, e := range m.PreActions { + l = e.Size() + n += 1 + l + sovTypes(uint64(l)) + } + } + if len(m.PostActions) > 0 { + for _, e := range m.PostActions { + l = e.Size() + n += 1 + l + sovTypes(uint64(l)) + } + } + return n +} + +func sovTypes(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozTypes(x uint64) (n int) { + return sovTypes(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 ErrIntOverflowTypes + } + 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 { + default: + iNdEx = preIndex + skippy, err := skipTypes(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTypes + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Agent) 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 ErrIntOverflowTypes + } + 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: Agent: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Agent: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTypes(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTypes + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Proposal) 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 ErrIntOverflowTypes + } + 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: Proposal: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Proposal: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Agent", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTypes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthTypes + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthTypes + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Agent = append(m.Agent[:0], dAtA[iNdEx:postIndex]...) + if m.Agent == nil { + m.Agent = []byte{} + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PreActions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTypes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTypes + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PreActions = append(m.PreActions, &types.Any{}) + if err := m.PreActions[len(m.PreActions)-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 PostActions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTypes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTypes + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PostActions = append(m.PostActions, &types.Any{}) + if err := m.PostActions[len(m.PostActions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTypes(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTypes + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipTypes(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, ErrIntOverflowTypes + } + 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, ErrIntOverflowTypes + } + 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, ErrIntOverflowTypes + } + 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, ErrInvalidLengthTypes + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupTypes + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthTypes + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/escrow/api/andromeda/escrow/module/v1alpha1/module.pulsar.go b/x/escrow/api/andromeda/escrow/module/v1alpha1/module.pulsar.go new file mode 100644 index 0000000..1c1949d --- /dev/null +++ b/x/escrow/api/andromeda/escrow/module/v1alpha1/module.pulsar.go @@ -0,0 +1,582 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package modulev1alpha1 + +import ( + _ "cosmossdk.io/api/cosmos/app/v1alpha1" + fmt "fmt" + runtime "github.com/cosmos/cosmos-proto/runtime" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoiface "google.golang.org/protobuf/runtime/protoiface" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + io "io" + reflect "reflect" + sync "sync" +) + +var ( + md_Module protoreflect.MessageDescriptor + fd_Module_authority protoreflect.FieldDescriptor +) + +func init() { + file_andromeda_escrow_module_v1alpha1_module_proto_init() + md_Module = File_andromeda_escrow_module_v1alpha1_module_proto.Messages().ByName("Module") + fd_Module_authority = md_Module.Fields().ByName("authority") +} + +var _ protoreflect.Message = (*fastReflection_Module)(nil) + +type fastReflection_Module Module + +func (x *Module) ProtoReflect() protoreflect.Message { + return (*fastReflection_Module)(x) +} + +func (x *Module) slowProtoReflect() protoreflect.Message { + mi := &file_andromeda_escrow_module_v1alpha1_module_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_Module_messageType fastReflection_Module_messageType +var _ protoreflect.MessageType = fastReflection_Module_messageType{} + +type fastReflection_Module_messageType struct{} + +func (x fastReflection_Module_messageType) Zero() protoreflect.Message { + return (*fastReflection_Module)(nil) +} +func (x fastReflection_Module_messageType) New() protoreflect.Message { + return new(fastReflection_Module) +} +func (x fastReflection_Module_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_Module +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_Module) Descriptor() protoreflect.MessageDescriptor { + return md_Module +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_Module) Type() protoreflect.MessageType { + return _fastReflection_Module_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_Module) New() protoreflect.Message { + return new(fastReflection_Module) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_Module) Interface() protoreflect.ProtoMessage { + return (*Module)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_Module) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Authority != "" { + value := protoreflect.ValueOfString(x.Authority) + if !f(fd_Module_authority, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_Module) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "andromeda.escrow.module.v1alpha1.Module.authority": + return x.Authority != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.module.v1alpha1.Module")) + } + panic(fmt.Errorf("message andromeda.escrow.module.v1alpha1.Module does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_Module) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "andromeda.escrow.module.v1alpha1.Module.authority": + x.Authority = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.module.v1alpha1.Module")) + } + panic(fmt.Errorf("message andromeda.escrow.module.v1alpha1.Module does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_Module) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "andromeda.escrow.module.v1alpha1.Module.authority": + value := x.Authority + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.module.v1alpha1.Module")) + } + panic(fmt.Errorf("message andromeda.escrow.module.v1alpha1.Module does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_Module) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "andromeda.escrow.module.v1alpha1.Module.authority": + x.Authority = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.module.v1alpha1.Module")) + } + panic(fmt.Errorf("message andromeda.escrow.module.v1alpha1.Module does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_Module) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.escrow.module.v1alpha1.Module.authority": + panic(fmt.Errorf("field authority of message andromeda.escrow.module.v1alpha1.Module is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.module.v1alpha1.Module")) + } + panic(fmt.Errorf("message andromeda.escrow.module.v1alpha1.Module does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_Module) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.escrow.module.v1alpha1.Module.authority": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.module.v1alpha1.Module")) + } + panic(fmt.Errorf("message andromeda.escrow.module.v1alpha1.Module does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_Module) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in andromeda.escrow.module.v1alpha1.Module", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_Module) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_Module) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_Module) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_Module) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*Module) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + l = len(x.Authority) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*Module) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.Authority) > 0 { + i -= len(x.Authority) + copy(dAtA[i:], x.Authority) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*Module) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Module: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Module: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Authority = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc (unknown) +// source: andromeda/escrow/module/v1alpha1/module.proto + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// Module is the config object of the module. +type Module struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // authority defines the custom module authority. If not set, defaults to the governance module. + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` +} + +func (x *Module) Reset() { + *x = Module{} + if protoimpl.UnsafeEnabled { + mi := &file_andromeda_escrow_module_v1alpha1_module_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Module) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Module) ProtoMessage() {} + +// Deprecated: Use Module.ProtoReflect.Descriptor instead. +func (*Module) Descriptor() ([]byte, []int) { + return file_andromeda_escrow_module_v1alpha1_module_proto_rawDescGZIP(), []int{0} +} + +func (x *Module) GetAuthority() string { + if x != nil { + return x.Authority + } + return "" +} + +var File_andromeda_escrow_module_v1alpha1_module_proto protoreflect.FileDescriptor + +var file_andromeda_escrow_module_v1alpha1_module_proto_rawDesc = []byte{ + 0x0a, 0x2d, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x65, 0x73, 0x63, 0x72, + 0x6f, 0x77, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, + 0x20, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, + 0x77, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x1a, 0x20, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x22, 0x53, 0x0a, 0x06, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x1c, 0x0a, + 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x3a, 0x2b, 0xba, 0xc0, 0x96, + 0xda, 0x01, 0x25, 0x0a, 0x23, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, + 0x30, 0x74, 0x65, 0x63, 0x68, 0x2f, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, + 0x78, 0x2f, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x42, 0x8b, 0x02, 0x0a, 0x24, 0x63, 0x6f, 0x6d, + 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, + 0x77, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x42, 0x0b, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, + 0x5a, 0x33, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, + 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2f, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x3b, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x45, 0x4d, 0xaa, 0x02, 0x20, 0x41, 0x6e, + 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x4d, + 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xca, 0x02, + 0x20, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x5c, 0x45, 0x73, 0x63, 0x72, 0x6f, + 0x77, 0x5c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0xe2, 0x02, 0x2c, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x5c, 0x45, 0x73, + 0x63, 0x72, 0x6f, 0x77, 0x5c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5c, 0x56, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0xea, 0x02, 0x23, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x3a, 0x3a, 0x45, 0x73, + 0x63, 0x72, 0x6f, 0x77, 0x3a, 0x3a, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x3a, 0x3a, 0x56, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_andromeda_escrow_module_v1alpha1_module_proto_rawDescOnce sync.Once + file_andromeda_escrow_module_v1alpha1_module_proto_rawDescData = file_andromeda_escrow_module_v1alpha1_module_proto_rawDesc +) + +func file_andromeda_escrow_module_v1alpha1_module_proto_rawDescGZIP() []byte { + file_andromeda_escrow_module_v1alpha1_module_proto_rawDescOnce.Do(func() { + file_andromeda_escrow_module_v1alpha1_module_proto_rawDescData = protoimpl.X.CompressGZIP(file_andromeda_escrow_module_v1alpha1_module_proto_rawDescData) + }) + return file_andromeda_escrow_module_v1alpha1_module_proto_rawDescData +} + +var file_andromeda_escrow_module_v1alpha1_module_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_andromeda_escrow_module_v1alpha1_module_proto_goTypes = []interface{}{ + (*Module)(nil), // 0: andromeda.escrow.module.v1alpha1.Module +} +var file_andromeda_escrow_module_v1alpha1_module_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_andromeda_escrow_module_v1alpha1_module_proto_init() } +func file_andromeda_escrow_module_v1alpha1_module_proto_init() { + if File_andromeda_escrow_module_v1alpha1_module_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_andromeda_escrow_module_v1alpha1_module_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Module); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_andromeda_escrow_module_v1alpha1_module_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_andromeda_escrow_module_v1alpha1_module_proto_goTypes, + DependencyIndexes: file_andromeda_escrow_module_v1alpha1_module_proto_depIdxs, + MessageInfos: file_andromeda_escrow_module_v1alpha1_module_proto_msgTypes, + }.Build() + File_andromeda_escrow_module_v1alpha1_module_proto = out.File + file_andromeda_escrow_module_v1alpha1_module_proto_rawDesc = nil + file_andromeda_escrow_module_v1alpha1_module_proto_goTypes = nil + file_andromeda_escrow_module_v1alpha1_module_proto_depIdxs = nil +} diff --git a/x/escrow/api/andromeda/escrow/v1alpha1/event.pulsar.go b/x/escrow/api/andromeda/escrow/v1alpha1/event.pulsar.go new file mode 100644 index 0000000..318042b --- /dev/null +++ b/x/escrow/api/andromeda/escrow/v1alpha1/event.pulsar.go @@ -0,0 +1,2650 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package escrowv1alpha1 + +import ( + fmt "fmt" + _ "github.com/cosmos/cosmos-proto" + runtime "github.com/cosmos/cosmos-proto/runtime" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoiface "google.golang.org/protobuf/runtime/protoiface" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + anypb "google.golang.org/protobuf/types/known/anypb" + io "io" + reflect "reflect" + sync "sync" +) + +var ( + md_EventUpdateParams protoreflect.MessageDescriptor +) + +func init() { + file_andromeda_escrow_v1alpha1_event_proto_init() + md_EventUpdateParams = File_andromeda_escrow_v1alpha1_event_proto.Messages().ByName("EventUpdateParams") +} + +var _ protoreflect.Message = (*fastReflection_EventUpdateParams)(nil) + +type fastReflection_EventUpdateParams EventUpdateParams + +func (x *EventUpdateParams) ProtoReflect() protoreflect.Message { + return (*fastReflection_EventUpdateParams)(x) +} + +func (x *EventUpdateParams) slowProtoReflect() protoreflect.Message { + mi := &file_andromeda_escrow_v1alpha1_event_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_EventUpdateParams_messageType fastReflection_EventUpdateParams_messageType +var _ protoreflect.MessageType = fastReflection_EventUpdateParams_messageType{} + +type fastReflection_EventUpdateParams_messageType struct{} + +func (x fastReflection_EventUpdateParams_messageType) Zero() protoreflect.Message { + return (*fastReflection_EventUpdateParams)(nil) +} +func (x fastReflection_EventUpdateParams_messageType) New() protoreflect.Message { + return new(fastReflection_EventUpdateParams) +} +func (x fastReflection_EventUpdateParams_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_EventUpdateParams +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_EventUpdateParams) Descriptor() protoreflect.MessageDescriptor { + return md_EventUpdateParams +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_EventUpdateParams) Type() protoreflect.MessageType { + return _fastReflection_EventUpdateParams_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_EventUpdateParams) New() protoreflect.Message { + return new(fastReflection_EventUpdateParams) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_EventUpdateParams) Interface() protoreflect.ProtoMessage { + return (*EventUpdateParams)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_EventUpdateParams) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_EventUpdateParams) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.EventUpdateParams")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.EventUpdateParams does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_EventUpdateParams) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.EventUpdateParams")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.EventUpdateParams does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_EventUpdateParams) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.EventUpdateParams")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.EventUpdateParams does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_EventUpdateParams) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.EventUpdateParams")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.EventUpdateParams does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_EventUpdateParams) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.EventUpdateParams")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.EventUpdateParams does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_EventUpdateParams) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.EventUpdateParams")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.EventUpdateParams does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_EventUpdateParams) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in andromeda.escrow.v1alpha1.EventUpdateParams", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_EventUpdateParams) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_EventUpdateParams) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_EventUpdateParams) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_EventUpdateParams) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*EventUpdateParams) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*EventUpdateParams) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*EventUpdateParams) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventUpdateParams: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventUpdateParams: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_EventCreateAgent protoreflect.MessageDescriptor + fd_EventCreateAgent_agent protoreflect.FieldDescriptor + fd_EventCreateAgent_creator protoreflect.FieldDescriptor +) + +func init() { + file_andromeda_escrow_v1alpha1_event_proto_init() + md_EventCreateAgent = File_andromeda_escrow_v1alpha1_event_proto.Messages().ByName("EventCreateAgent") + fd_EventCreateAgent_agent = md_EventCreateAgent.Fields().ByName("agent") + fd_EventCreateAgent_creator = md_EventCreateAgent.Fields().ByName("creator") +} + +var _ protoreflect.Message = (*fastReflection_EventCreateAgent)(nil) + +type fastReflection_EventCreateAgent EventCreateAgent + +func (x *EventCreateAgent) ProtoReflect() protoreflect.Message { + return (*fastReflection_EventCreateAgent)(x) +} + +func (x *EventCreateAgent) slowProtoReflect() protoreflect.Message { + mi := &file_andromeda_escrow_v1alpha1_event_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_EventCreateAgent_messageType fastReflection_EventCreateAgent_messageType +var _ protoreflect.MessageType = fastReflection_EventCreateAgent_messageType{} + +type fastReflection_EventCreateAgent_messageType struct{} + +func (x fastReflection_EventCreateAgent_messageType) Zero() protoreflect.Message { + return (*fastReflection_EventCreateAgent)(nil) +} +func (x fastReflection_EventCreateAgent_messageType) New() protoreflect.Message { + return new(fastReflection_EventCreateAgent) +} +func (x fastReflection_EventCreateAgent_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_EventCreateAgent +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_EventCreateAgent) Descriptor() protoreflect.MessageDescriptor { + return md_EventCreateAgent +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_EventCreateAgent) Type() protoreflect.MessageType { + return _fastReflection_EventCreateAgent_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_EventCreateAgent) New() protoreflect.Message { + return new(fastReflection_EventCreateAgent) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_EventCreateAgent) Interface() protoreflect.ProtoMessage { + return (*EventCreateAgent)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_EventCreateAgent) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Agent != "" { + value := protoreflect.ValueOfString(x.Agent) + if !f(fd_EventCreateAgent_agent, value) { + return + } + } + if x.Creator != "" { + value := protoreflect.ValueOfString(x.Creator) + if !f(fd_EventCreateAgent_creator, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_EventCreateAgent) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.EventCreateAgent.agent": + return x.Agent != "" + case "andromeda.escrow.v1alpha1.EventCreateAgent.creator": + return x.Creator != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.EventCreateAgent")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.EventCreateAgent does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_EventCreateAgent) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.EventCreateAgent.agent": + x.Agent = "" + case "andromeda.escrow.v1alpha1.EventCreateAgent.creator": + x.Creator = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.EventCreateAgent")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.EventCreateAgent does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_EventCreateAgent) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "andromeda.escrow.v1alpha1.EventCreateAgent.agent": + value := x.Agent + return protoreflect.ValueOfString(value) + case "andromeda.escrow.v1alpha1.EventCreateAgent.creator": + value := x.Creator + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.EventCreateAgent")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.EventCreateAgent does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_EventCreateAgent) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.EventCreateAgent.agent": + x.Agent = value.Interface().(string) + case "andromeda.escrow.v1alpha1.EventCreateAgent.creator": + x.Creator = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.EventCreateAgent")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.EventCreateAgent does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_EventCreateAgent) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.EventCreateAgent.agent": + panic(fmt.Errorf("field agent of message andromeda.escrow.v1alpha1.EventCreateAgent is not mutable")) + case "andromeda.escrow.v1alpha1.EventCreateAgent.creator": + panic(fmt.Errorf("field creator of message andromeda.escrow.v1alpha1.EventCreateAgent is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.EventCreateAgent")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.EventCreateAgent does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_EventCreateAgent) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.EventCreateAgent.agent": + return protoreflect.ValueOfString("") + case "andromeda.escrow.v1alpha1.EventCreateAgent.creator": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.EventCreateAgent")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.EventCreateAgent does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_EventCreateAgent) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in andromeda.escrow.v1alpha1.EventCreateAgent", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_EventCreateAgent) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_EventCreateAgent) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_EventCreateAgent) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_EventCreateAgent) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*EventCreateAgent) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + l = len(x.Agent) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Creator) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*EventCreateAgent) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.Creator) > 0 { + i -= len(x.Creator) + copy(dAtA[i:], x.Creator) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) + i-- + dAtA[i] = 0x12 + } + if len(x.Agent) > 0 { + i -= len(x.Agent) + copy(dAtA[i:], x.Agent) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Agent))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*EventCreateAgent) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventCreateAgent: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventCreateAgent: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Agent", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Agent = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var _ protoreflect.List = (*_EventSubmitProposal_4_list)(nil) + +type _EventSubmitProposal_4_list struct { + list *[]*anypb.Any +} + +func (x *_EventSubmitProposal_4_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_EventSubmitProposal_4_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_EventSubmitProposal_4_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*anypb.Any) + (*x.list)[i] = concreteValue +} + +func (x *_EventSubmitProposal_4_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*anypb.Any) + *x.list = append(*x.list, concreteValue) +} + +func (x *_EventSubmitProposal_4_list) AppendMutable() protoreflect.Value { + v := new(anypb.Any) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_EventSubmitProposal_4_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_EventSubmitProposal_4_list) NewElement() protoreflect.Value { + v := new(anypb.Any) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_EventSubmitProposal_4_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_EventSubmitProposal_5_list)(nil) + +type _EventSubmitProposal_5_list struct { + list *[]*anypb.Any +} + +func (x *_EventSubmitProposal_5_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_EventSubmitProposal_5_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_EventSubmitProposal_5_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*anypb.Any) + (*x.list)[i] = concreteValue +} + +func (x *_EventSubmitProposal_5_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*anypb.Any) + *x.list = append(*x.list, concreteValue) +} + +func (x *_EventSubmitProposal_5_list) AppendMutable() protoreflect.Value { + v := new(anypb.Any) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_EventSubmitProposal_5_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_EventSubmitProposal_5_list) NewElement() protoreflect.Value { + v := new(anypb.Any) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_EventSubmitProposal_5_list) IsValid() bool { + return x.list != nil +} + +var ( + md_EventSubmitProposal protoreflect.MessageDescriptor + fd_EventSubmitProposal_id protoreflect.FieldDescriptor + fd_EventSubmitProposal_proposer protoreflect.FieldDescriptor + fd_EventSubmitProposal_agent protoreflect.FieldDescriptor + fd_EventSubmitProposal_pre_actions protoreflect.FieldDescriptor + fd_EventSubmitProposal_post_actions protoreflect.FieldDescriptor +) + +func init() { + file_andromeda_escrow_v1alpha1_event_proto_init() + md_EventSubmitProposal = File_andromeda_escrow_v1alpha1_event_proto.Messages().ByName("EventSubmitProposal") + fd_EventSubmitProposal_id = md_EventSubmitProposal.Fields().ByName("id") + fd_EventSubmitProposal_proposer = md_EventSubmitProposal.Fields().ByName("proposer") + fd_EventSubmitProposal_agent = md_EventSubmitProposal.Fields().ByName("agent") + fd_EventSubmitProposal_pre_actions = md_EventSubmitProposal.Fields().ByName("pre_actions") + fd_EventSubmitProposal_post_actions = md_EventSubmitProposal.Fields().ByName("post_actions") +} + +var _ protoreflect.Message = (*fastReflection_EventSubmitProposal)(nil) + +type fastReflection_EventSubmitProposal EventSubmitProposal + +func (x *EventSubmitProposal) ProtoReflect() protoreflect.Message { + return (*fastReflection_EventSubmitProposal)(x) +} + +func (x *EventSubmitProposal) slowProtoReflect() protoreflect.Message { + mi := &file_andromeda_escrow_v1alpha1_event_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_EventSubmitProposal_messageType fastReflection_EventSubmitProposal_messageType +var _ protoreflect.MessageType = fastReflection_EventSubmitProposal_messageType{} + +type fastReflection_EventSubmitProposal_messageType struct{} + +func (x fastReflection_EventSubmitProposal_messageType) Zero() protoreflect.Message { + return (*fastReflection_EventSubmitProposal)(nil) +} +func (x fastReflection_EventSubmitProposal_messageType) New() protoreflect.Message { + return new(fastReflection_EventSubmitProposal) +} +func (x fastReflection_EventSubmitProposal_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_EventSubmitProposal +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_EventSubmitProposal) Descriptor() protoreflect.MessageDescriptor { + return md_EventSubmitProposal +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_EventSubmitProposal) Type() protoreflect.MessageType { + return _fastReflection_EventSubmitProposal_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_EventSubmitProposal) New() protoreflect.Message { + return new(fastReflection_EventSubmitProposal) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_EventSubmitProposal) Interface() protoreflect.ProtoMessage { + return (*EventSubmitProposal)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_EventSubmitProposal) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Id != uint64(0) { + value := protoreflect.ValueOfUint64(x.Id) + if !f(fd_EventSubmitProposal_id, value) { + return + } + } + if x.Proposer != "" { + value := protoreflect.ValueOfString(x.Proposer) + if !f(fd_EventSubmitProposal_proposer, value) { + return + } + } + if x.Agent != "" { + value := protoreflect.ValueOfString(x.Agent) + if !f(fd_EventSubmitProposal_agent, value) { + return + } + } + if len(x.PreActions) != 0 { + value := protoreflect.ValueOfList(&_EventSubmitProposal_4_list{list: &x.PreActions}) + if !f(fd_EventSubmitProposal_pre_actions, value) { + return + } + } + if len(x.PostActions) != 0 { + value := protoreflect.ValueOfList(&_EventSubmitProposal_5_list{list: &x.PostActions}) + if !f(fd_EventSubmitProposal_post_actions, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_EventSubmitProposal) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.EventSubmitProposal.id": + return x.Id != uint64(0) + case "andromeda.escrow.v1alpha1.EventSubmitProposal.proposer": + return x.Proposer != "" + case "andromeda.escrow.v1alpha1.EventSubmitProposal.agent": + return x.Agent != "" + case "andromeda.escrow.v1alpha1.EventSubmitProposal.pre_actions": + return len(x.PreActions) != 0 + case "andromeda.escrow.v1alpha1.EventSubmitProposal.post_actions": + return len(x.PostActions) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.EventSubmitProposal")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.EventSubmitProposal does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_EventSubmitProposal) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.EventSubmitProposal.id": + x.Id = uint64(0) + case "andromeda.escrow.v1alpha1.EventSubmitProposal.proposer": + x.Proposer = "" + case "andromeda.escrow.v1alpha1.EventSubmitProposal.agent": + x.Agent = "" + case "andromeda.escrow.v1alpha1.EventSubmitProposal.pre_actions": + x.PreActions = nil + case "andromeda.escrow.v1alpha1.EventSubmitProposal.post_actions": + x.PostActions = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.EventSubmitProposal")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.EventSubmitProposal does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_EventSubmitProposal) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "andromeda.escrow.v1alpha1.EventSubmitProposal.id": + value := x.Id + return protoreflect.ValueOfUint64(value) + case "andromeda.escrow.v1alpha1.EventSubmitProposal.proposer": + value := x.Proposer + return protoreflect.ValueOfString(value) + case "andromeda.escrow.v1alpha1.EventSubmitProposal.agent": + value := x.Agent + return protoreflect.ValueOfString(value) + case "andromeda.escrow.v1alpha1.EventSubmitProposal.pre_actions": + if len(x.PreActions) == 0 { + return protoreflect.ValueOfList(&_EventSubmitProposal_4_list{}) + } + listValue := &_EventSubmitProposal_4_list{list: &x.PreActions} + return protoreflect.ValueOfList(listValue) + case "andromeda.escrow.v1alpha1.EventSubmitProposal.post_actions": + if len(x.PostActions) == 0 { + return protoreflect.ValueOfList(&_EventSubmitProposal_5_list{}) + } + listValue := &_EventSubmitProposal_5_list{list: &x.PostActions} + return protoreflect.ValueOfList(listValue) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.EventSubmitProposal")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.EventSubmitProposal does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_EventSubmitProposal) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.EventSubmitProposal.id": + x.Id = value.Uint() + case "andromeda.escrow.v1alpha1.EventSubmitProposal.proposer": + x.Proposer = value.Interface().(string) + case "andromeda.escrow.v1alpha1.EventSubmitProposal.agent": + x.Agent = value.Interface().(string) + case "andromeda.escrow.v1alpha1.EventSubmitProposal.pre_actions": + lv := value.List() + clv := lv.(*_EventSubmitProposal_4_list) + x.PreActions = *clv.list + case "andromeda.escrow.v1alpha1.EventSubmitProposal.post_actions": + lv := value.List() + clv := lv.(*_EventSubmitProposal_5_list) + x.PostActions = *clv.list + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.EventSubmitProposal")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.EventSubmitProposal does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_EventSubmitProposal) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.EventSubmitProposal.pre_actions": + if x.PreActions == nil { + x.PreActions = []*anypb.Any{} + } + value := &_EventSubmitProposal_4_list{list: &x.PreActions} + return protoreflect.ValueOfList(value) + case "andromeda.escrow.v1alpha1.EventSubmitProposal.post_actions": + if x.PostActions == nil { + x.PostActions = []*anypb.Any{} + } + value := &_EventSubmitProposal_5_list{list: &x.PostActions} + return protoreflect.ValueOfList(value) + case "andromeda.escrow.v1alpha1.EventSubmitProposal.id": + panic(fmt.Errorf("field id of message andromeda.escrow.v1alpha1.EventSubmitProposal is not mutable")) + case "andromeda.escrow.v1alpha1.EventSubmitProposal.proposer": + panic(fmt.Errorf("field proposer of message andromeda.escrow.v1alpha1.EventSubmitProposal is not mutable")) + case "andromeda.escrow.v1alpha1.EventSubmitProposal.agent": + panic(fmt.Errorf("field agent of message andromeda.escrow.v1alpha1.EventSubmitProposal is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.EventSubmitProposal")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.EventSubmitProposal does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_EventSubmitProposal) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.EventSubmitProposal.id": + return protoreflect.ValueOfUint64(uint64(0)) + case "andromeda.escrow.v1alpha1.EventSubmitProposal.proposer": + return protoreflect.ValueOfString("") + case "andromeda.escrow.v1alpha1.EventSubmitProposal.agent": + return protoreflect.ValueOfString("") + case "andromeda.escrow.v1alpha1.EventSubmitProposal.pre_actions": + list := []*anypb.Any{} + return protoreflect.ValueOfList(&_EventSubmitProposal_4_list{list: &list}) + case "andromeda.escrow.v1alpha1.EventSubmitProposal.post_actions": + list := []*anypb.Any{} + return protoreflect.ValueOfList(&_EventSubmitProposal_5_list{list: &list}) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.EventSubmitProposal")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.EventSubmitProposal does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_EventSubmitProposal) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in andromeda.escrow.v1alpha1.EventSubmitProposal", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_EventSubmitProposal) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_EventSubmitProposal) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_EventSubmitProposal) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_EventSubmitProposal) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*EventSubmitProposal) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.Id != 0 { + n += 1 + runtime.Sov(uint64(x.Id)) + } + l = len(x.Proposer) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Agent) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if len(x.PreActions) > 0 { + for _, e := range x.PreActions { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if len(x.PostActions) > 0 { + for _, e := range x.PostActions { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*EventSubmitProposal) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.PostActions) > 0 { + for iNdEx := len(x.PostActions) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.PostActions[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x2a + } + } + if len(x.PreActions) > 0 { + for iNdEx := len(x.PreActions) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.PreActions[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x22 + } + } + if len(x.Agent) > 0 { + i -= len(x.Agent) + copy(dAtA[i:], x.Agent) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Agent))) + i-- + dAtA[i] = 0x1a + } + if len(x.Proposer) > 0 { + i -= len(x.Proposer) + copy(dAtA[i:], x.Proposer) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Proposer))) + i-- + dAtA[i] = 0x12 + } + if x.Id != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Id)) + i-- + dAtA[i] = 0x8 + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*EventSubmitProposal) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventSubmitProposal: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventSubmitProposal: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + x.Id = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.Id |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Proposer", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Proposer = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Agent", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Agent = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PreActions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.PreActions = append(x.PreActions, &anypb.Any{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.PreActions[len(x.PreActions)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PostActions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.PostActions = append(x.PostActions, &anypb.Any{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.PostActions[len(x.PostActions)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var _ protoreflect.List = (*_EventExec_3_list)(nil) + +type _EventExec_3_list struct { + list *[]*anypb.Any +} + +func (x *_EventExec_3_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_EventExec_3_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_EventExec_3_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*anypb.Any) + (*x.list)[i] = concreteValue +} + +func (x *_EventExec_3_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*anypb.Any) + *x.list = append(*x.list, concreteValue) +} + +func (x *_EventExec_3_list) AppendMutable() protoreflect.Value { + v := new(anypb.Any) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_EventExec_3_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_EventExec_3_list) NewElement() protoreflect.Value { + v := new(anypb.Any) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_EventExec_3_list) IsValid() bool { + return x.list != nil +} + +var ( + md_EventExec protoreflect.MessageDescriptor + fd_EventExec_proposal protoreflect.FieldDescriptor + fd_EventExec_executor protoreflect.FieldDescriptor + fd_EventExec_actions protoreflect.FieldDescriptor +) + +func init() { + file_andromeda_escrow_v1alpha1_event_proto_init() + md_EventExec = File_andromeda_escrow_v1alpha1_event_proto.Messages().ByName("EventExec") + fd_EventExec_proposal = md_EventExec.Fields().ByName("proposal") + fd_EventExec_executor = md_EventExec.Fields().ByName("executor") + fd_EventExec_actions = md_EventExec.Fields().ByName("actions") +} + +var _ protoreflect.Message = (*fastReflection_EventExec)(nil) + +type fastReflection_EventExec EventExec + +func (x *EventExec) ProtoReflect() protoreflect.Message { + return (*fastReflection_EventExec)(x) +} + +func (x *EventExec) slowProtoReflect() protoreflect.Message { + mi := &file_andromeda_escrow_v1alpha1_event_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_EventExec_messageType fastReflection_EventExec_messageType +var _ protoreflect.MessageType = fastReflection_EventExec_messageType{} + +type fastReflection_EventExec_messageType struct{} + +func (x fastReflection_EventExec_messageType) Zero() protoreflect.Message { + return (*fastReflection_EventExec)(nil) +} +func (x fastReflection_EventExec_messageType) New() protoreflect.Message { + return new(fastReflection_EventExec) +} +func (x fastReflection_EventExec_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_EventExec +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_EventExec) Descriptor() protoreflect.MessageDescriptor { + return md_EventExec +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_EventExec) Type() protoreflect.MessageType { + return _fastReflection_EventExec_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_EventExec) New() protoreflect.Message { + return new(fastReflection_EventExec) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_EventExec) Interface() protoreflect.ProtoMessage { + return (*EventExec)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_EventExec) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Proposal != uint64(0) { + value := protoreflect.ValueOfUint64(x.Proposal) + if !f(fd_EventExec_proposal, value) { + return + } + } + if x.Executor != "" { + value := protoreflect.ValueOfString(x.Executor) + if !f(fd_EventExec_executor, value) { + return + } + } + if len(x.Actions) != 0 { + value := protoreflect.ValueOfList(&_EventExec_3_list{list: &x.Actions}) + if !f(fd_EventExec_actions, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_EventExec) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.EventExec.proposal": + return x.Proposal != uint64(0) + case "andromeda.escrow.v1alpha1.EventExec.executor": + return x.Executor != "" + case "andromeda.escrow.v1alpha1.EventExec.actions": + return len(x.Actions) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.EventExec")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.EventExec does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_EventExec) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.EventExec.proposal": + x.Proposal = uint64(0) + case "andromeda.escrow.v1alpha1.EventExec.executor": + x.Executor = "" + case "andromeda.escrow.v1alpha1.EventExec.actions": + x.Actions = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.EventExec")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.EventExec does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_EventExec) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "andromeda.escrow.v1alpha1.EventExec.proposal": + value := x.Proposal + return protoreflect.ValueOfUint64(value) + case "andromeda.escrow.v1alpha1.EventExec.executor": + value := x.Executor + return protoreflect.ValueOfString(value) + case "andromeda.escrow.v1alpha1.EventExec.actions": + if len(x.Actions) == 0 { + return protoreflect.ValueOfList(&_EventExec_3_list{}) + } + listValue := &_EventExec_3_list{list: &x.Actions} + return protoreflect.ValueOfList(listValue) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.EventExec")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.EventExec does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_EventExec) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.EventExec.proposal": + x.Proposal = value.Uint() + case "andromeda.escrow.v1alpha1.EventExec.executor": + x.Executor = value.Interface().(string) + case "andromeda.escrow.v1alpha1.EventExec.actions": + lv := value.List() + clv := lv.(*_EventExec_3_list) + x.Actions = *clv.list + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.EventExec")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.EventExec does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_EventExec) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.EventExec.actions": + if x.Actions == nil { + x.Actions = []*anypb.Any{} + } + value := &_EventExec_3_list{list: &x.Actions} + return protoreflect.ValueOfList(value) + case "andromeda.escrow.v1alpha1.EventExec.proposal": + panic(fmt.Errorf("field proposal of message andromeda.escrow.v1alpha1.EventExec is not mutable")) + case "andromeda.escrow.v1alpha1.EventExec.executor": + panic(fmt.Errorf("field executor of message andromeda.escrow.v1alpha1.EventExec is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.EventExec")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.EventExec does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_EventExec) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.EventExec.proposal": + return protoreflect.ValueOfUint64(uint64(0)) + case "andromeda.escrow.v1alpha1.EventExec.executor": + return protoreflect.ValueOfString("") + case "andromeda.escrow.v1alpha1.EventExec.actions": + list := []*anypb.Any{} + return protoreflect.ValueOfList(&_EventExec_3_list{list: &list}) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.EventExec")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.EventExec does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_EventExec) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in andromeda.escrow.v1alpha1.EventExec", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_EventExec) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_EventExec) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_EventExec) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_EventExec) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*EventExec) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.Proposal != 0 { + n += 1 + runtime.Sov(uint64(x.Proposal)) + } + l = len(x.Executor) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if len(x.Actions) > 0 { + for _, e := range x.Actions { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*EventExec) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.Actions) > 0 { + for iNdEx := len(x.Actions) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Actions[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x1a + } + } + if len(x.Executor) > 0 { + i -= len(x.Executor) + copy(dAtA[i:], x.Executor) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Executor))) + i-- + dAtA[i] = 0x12 + } + if x.Proposal != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Proposal)) + i-- + dAtA[i] = 0x8 + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*EventExec) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventExec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventExec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Proposal", wireType) + } + x.Proposal = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.Proposal |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Executor", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Executor = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Actions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Actions = append(x.Actions, &anypb.Any{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Actions[len(x.Actions)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc (unknown) +// source: andromeda/escrow/v1alpha1/event.proto + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// EventUpdateParams is emitted on Msg/UpdateParams. +type EventUpdateParams struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *EventUpdateParams) Reset() { + *x = EventUpdateParams{} + if protoimpl.UnsafeEnabled { + mi := &file_andromeda_escrow_v1alpha1_event_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EventUpdateParams) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EventUpdateParams) ProtoMessage() {} + +// Deprecated: Use EventUpdateParams.ProtoReflect.Descriptor instead. +func (*EventUpdateParams) Descriptor() ([]byte, []int) { + return file_andromeda_escrow_v1alpha1_event_proto_rawDescGZIP(), []int{0} +} + +// EventCreateAgent is emitted on Msg/CreateAgent. +type EventCreateAgent struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // the address of the created agent + Agent string `protobuf:"bytes,1,opt,name=agent,proto3" json:"agent,omitempty"` + // the address of the account created the agent + Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` +} + +func (x *EventCreateAgent) Reset() { + *x = EventCreateAgent{} + if protoimpl.UnsafeEnabled { + mi := &file_andromeda_escrow_v1alpha1_event_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EventCreateAgent) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EventCreateAgent) ProtoMessage() {} + +// Deprecated: Use EventCreateAgent.ProtoReflect.Descriptor instead. +func (*EventCreateAgent) Descriptor() ([]byte, []int) { + return file_andromeda_escrow_v1alpha1_event_proto_rawDescGZIP(), []int{1} +} + +func (x *EventCreateAgent) GetAgent() string { + if x != nil { + return x.Agent + } + return "" +} + +func (x *EventCreateAgent) GetCreator() string { + if x != nil { + return x.Creator + } + return "" +} + +// EventSubmitProposal is emitted on Msg/SubmitProposal. +type EventSubmitProposal struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // the identifier of the proposal + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + // the address of the proposer + Proposer string `protobuf:"bytes,2,opt,name=proposer,proto3" json:"proposer,omitempty"` + // the address of the agent in charge + Agent string `protobuf:"bytes,3,opt,name=agent,proto3" json:"agent,omitempty"` + // the messages which has been executed on the submission + PreActions []*anypb.Any `protobuf:"bytes,4,rep,name=pre_actions,json=preActions,proto3" json:"pre_actions,omitempty"` + // the messages which will be executed after the actions included in Msg/Exec + PostActions []*anypb.Any `protobuf:"bytes,5,rep,name=post_actions,json=postActions,proto3" json:"post_actions,omitempty"` +} + +func (x *EventSubmitProposal) Reset() { + *x = EventSubmitProposal{} + if protoimpl.UnsafeEnabled { + mi := &file_andromeda_escrow_v1alpha1_event_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EventSubmitProposal) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EventSubmitProposal) ProtoMessage() {} + +// Deprecated: Use EventSubmitProposal.ProtoReflect.Descriptor instead. +func (*EventSubmitProposal) Descriptor() ([]byte, []int) { + return file_andromeda_escrow_v1alpha1_event_proto_rawDescGZIP(), []int{2} +} + +func (x *EventSubmitProposal) GetId() uint64 { + if x != nil { + return x.Id + } + return 0 +} + +func (x *EventSubmitProposal) GetProposer() string { + if x != nil { + return x.Proposer + } + return "" +} + +func (x *EventSubmitProposal) GetAgent() string { + if x != nil { + return x.Agent + } + return "" +} + +func (x *EventSubmitProposal) GetPreActions() []*anypb.Any { + if x != nil { + return x.PreActions + } + return nil +} + +func (x *EventSubmitProposal) GetPostActions() []*anypb.Any { + if x != nil { + return x.PostActions + } + return nil +} + +// EventExec is emitted on Msg/Exec. +type EventExec struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // the identifier of the proposal + Proposal uint64 `protobuf:"varint,1,opt,name=proposal,proto3" json:"proposal,omitempty"` + // the address of the account executed the proposal + Executor string `protobuf:"bytes,2,opt,name=executor,proto3" json:"executor,omitempty"` + // the messages executed on the execution + Actions []*anypb.Any `protobuf:"bytes,3,rep,name=actions,proto3" json:"actions,omitempty"` +} + +func (x *EventExec) Reset() { + *x = EventExec{} + if protoimpl.UnsafeEnabled { + mi := &file_andromeda_escrow_v1alpha1_event_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EventExec) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EventExec) ProtoMessage() {} + +// Deprecated: Use EventExec.ProtoReflect.Descriptor instead. +func (*EventExec) Descriptor() ([]byte, []int) { + return file_andromeda_escrow_v1alpha1_event_proto_rawDescGZIP(), []int{3} +} + +func (x *EventExec) GetProposal() uint64 { + if x != nil { + return x.Proposal + } + return 0 +} + +func (x *EventExec) GetExecutor() string { + if x != nil { + return x.Executor + } + return "" +} + +func (x *EventExec) GetActions() []*anypb.Any { + if x != nil { + return x.Actions + } + return nil +} + +var File_andromeda_escrow_v1alpha1_event_proto protoreflect.FileDescriptor + +var file_andromeda_escrow_v1alpha1_event_proto_rawDesc = []byte{ + 0x0a, 0x25, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x65, 0x73, 0x63, 0x72, + 0x6f, 0x77, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x65, 0x76, 0x65, 0x6e, + 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, + 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, + 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x13, 0x0a, 0x11, 0x45, 0x76, 0x65, 0x6e, + 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x76, 0x0a, + 0x10, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x67, 0x65, 0x6e, + 0x74, 0x12, 0x2e, 0x0a, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x05, 0x61, 0x67, 0x65, 0x6e, + 0x74, 0x12, 0x32, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x63, 0x72, + 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0xfb, 0x01, 0x0a, 0x13, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x53, + 0x75, 0x62, 0x6d, 0x69, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x0e, 0x0a, + 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x34, 0x0a, + 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, + 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, + 0x73, 0x65, 0x72, 0x12, 0x2e, 0x0a, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x05, 0x61, 0x67, + 0x65, 0x6e, 0x74, 0x12, 0x35, 0x0a, 0x0b, 0x70, 0x72, 0x65, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0a, + 0x70, 0x72, 0x65, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x37, 0x0a, 0x0c, 0x70, 0x6f, + 0x73, 0x74, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, 0x70, 0x6f, 0x73, 0x74, 0x41, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x22, 0x8d, 0x01, 0x0a, 0x09, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x45, 0x78, 0x65, + 0x63, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x34, 0x0a, + 0x08, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, + 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x65, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x6f, 0x72, 0x12, 0x2e, 0x0a, 0x07, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x07, 0x61, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x42, 0xdf, 0x01, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x6e, 0x64, 0x72, + 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x0a, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x74, + 0x6f, 0x50, 0x01, 0x5a, 0x2c, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, + 0x64, 0x61, 0x2f, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x3b, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0xa2, 0x02, 0x03, 0x41, 0x45, 0x58, 0xaa, 0x02, 0x19, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, + 0x65, 0x64, 0x61, 0x2e, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x56, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0xca, 0x02, 0x19, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x5c, + 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xe2, + 0x02, 0x25, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x5c, 0x45, 0x73, 0x63, 0x72, + 0x6f, 0x77, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1b, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, + 0x65, 0x64, 0x61, 0x3a, 0x3a, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x3a, 0x3a, 0x56, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_andromeda_escrow_v1alpha1_event_proto_rawDescOnce sync.Once + file_andromeda_escrow_v1alpha1_event_proto_rawDescData = file_andromeda_escrow_v1alpha1_event_proto_rawDesc +) + +func file_andromeda_escrow_v1alpha1_event_proto_rawDescGZIP() []byte { + file_andromeda_escrow_v1alpha1_event_proto_rawDescOnce.Do(func() { + file_andromeda_escrow_v1alpha1_event_proto_rawDescData = protoimpl.X.CompressGZIP(file_andromeda_escrow_v1alpha1_event_proto_rawDescData) + }) + return file_andromeda_escrow_v1alpha1_event_proto_rawDescData +} + +var file_andromeda_escrow_v1alpha1_event_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_andromeda_escrow_v1alpha1_event_proto_goTypes = []interface{}{ + (*EventUpdateParams)(nil), // 0: andromeda.escrow.v1alpha1.EventUpdateParams + (*EventCreateAgent)(nil), // 1: andromeda.escrow.v1alpha1.EventCreateAgent + (*EventSubmitProposal)(nil), // 2: andromeda.escrow.v1alpha1.EventSubmitProposal + (*EventExec)(nil), // 3: andromeda.escrow.v1alpha1.EventExec + (*anypb.Any)(nil), // 4: google.protobuf.Any +} +var file_andromeda_escrow_v1alpha1_event_proto_depIdxs = []int32{ + 4, // 0: andromeda.escrow.v1alpha1.EventSubmitProposal.pre_actions:type_name -> google.protobuf.Any + 4, // 1: andromeda.escrow.v1alpha1.EventSubmitProposal.post_actions:type_name -> google.protobuf.Any + 4, // 2: andromeda.escrow.v1alpha1.EventExec.actions:type_name -> google.protobuf.Any + 3, // [3:3] is the sub-list for method output_type + 3, // [3:3] is the sub-list for method input_type + 3, // [3:3] is the sub-list for extension type_name + 3, // [3:3] is the sub-list for extension extendee + 0, // [0:3] is the sub-list for field type_name +} + +func init() { file_andromeda_escrow_v1alpha1_event_proto_init() } +func file_andromeda_escrow_v1alpha1_event_proto_init() { + if File_andromeda_escrow_v1alpha1_event_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_andromeda_escrow_v1alpha1_event_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EventUpdateParams); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_andromeda_escrow_v1alpha1_event_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EventCreateAgent); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_andromeda_escrow_v1alpha1_event_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EventSubmitProposal); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_andromeda_escrow_v1alpha1_event_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EventExec); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_andromeda_escrow_v1alpha1_event_proto_rawDesc, + NumEnums: 0, + NumMessages: 4, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_andromeda_escrow_v1alpha1_event_proto_goTypes, + DependencyIndexes: file_andromeda_escrow_v1alpha1_event_proto_depIdxs, + MessageInfos: file_andromeda_escrow_v1alpha1_event_proto_msgTypes, + }.Build() + File_andromeda_escrow_v1alpha1_event_proto = out.File + file_andromeda_escrow_v1alpha1_event_proto_rawDesc = nil + file_andromeda_escrow_v1alpha1_event_proto_goTypes = nil + file_andromeda_escrow_v1alpha1_event_proto_depIdxs = nil +} diff --git a/x/escrow/api/andromeda/escrow/v1alpha1/genesis.pulsar.go b/x/escrow/api/andromeda/escrow/v1alpha1/genesis.pulsar.go new file mode 100644 index 0000000..076ab78 --- /dev/null +++ b/x/escrow/api/andromeda/escrow/v1alpha1/genesis.pulsar.go @@ -0,0 +1,2880 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package escrowv1alpha1 + +import ( + fmt "fmt" + _ "github.com/cosmos/cosmos-proto" + runtime "github.com/cosmos/cosmos-proto/runtime" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoiface "google.golang.org/protobuf/runtime/protoiface" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + anypb "google.golang.org/protobuf/types/known/anypb" + io "io" + reflect "reflect" + sync "sync" +) + +var _ protoreflect.List = (*_GenesisState_3_list)(nil) + +type _GenesisState_3_list struct { + list *[]*GenesisState_Agent +} + +func (x *_GenesisState_3_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GenesisState_3_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_GenesisState_3_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*GenesisState_Agent) + (*x.list)[i] = concreteValue +} + +func (x *_GenesisState_3_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*GenesisState_Agent) + *x.list = append(*x.list, concreteValue) +} + +func (x *_GenesisState_3_list) AppendMutable() protoreflect.Value { + v := new(GenesisState_Agent) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_3_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_GenesisState_3_list) NewElement() protoreflect.Value { + v := new(GenesisState_Agent) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_3_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_GenesisState_5_list)(nil) + +type _GenesisState_5_list struct { + list *[]*GenesisState_Proposal +} + +func (x *_GenesisState_5_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GenesisState_5_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_GenesisState_5_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*GenesisState_Proposal) + (*x.list)[i] = concreteValue +} + +func (x *_GenesisState_5_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*GenesisState_Proposal) + *x.list = append(*x.list, concreteValue) +} + +func (x *_GenesisState_5_list) AppendMutable() protoreflect.Value { + v := new(GenesisState_Proposal) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_5_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_GenesisState_5_list) NewElement() protoreflect.Value { + v := new(GenesisState_Proposal) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_5_list) IsValid() bool { + return x.list != nil +} + +var ( + md_GenesisState protoreflect.MessageDescriptor + fd_GenesisState_params protoreflect.FieldDescriptor + fd_GenesisState_next_agent protoreflect.FieldDescriptor + fd_GenesisState_agents protoreflect.FieldDescriptor + fd_GenesisState_next_proposal protoreflect.FieldDescriptor + fd_GenesisState_proposals protoreflect.FieldDescriptor +) + +func init() { + file_andromeda_escrow_v1alpha1_genesis_proto_init() + md_GenesisState = File_andromeda_escrow_v1alpha1_genesis_proto.Messages().ByName("GenesisState") + fd_GenesisState_params = md_GenesisState.Fields().ByName("params") + fd_GenesisState_next_agent = md_GenesisState.Fields().ByName("next_agent") + fd_GenesisState_agents = md_GenesisState.Fields().ByName("agents") + fd_GenesisState_next_proposal = md_GenesisState.Fields().ByName("next_proposal") + fd_GenesisState_proposals = md_GenesisState.Fields().ByName("proposals") +} + +var _ protoreflect.Message = (*fastReflection_GenesisState)(nil) + +type fastReflection_GenesisState GenesisState + +func (x *GenesisState) ProtoReflect() protoreflect.Message { + return (*fastReflection_GenesisState)(x) +} + +func (x *GenesisState) slowProtoReflect() protoreflect.Message { + mi := &file_andromeda_escrow_v1alpha1_genesis_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_GenesisState_messageType fastReflection_GenesisState_messageType +var _ protoreflect.MessageType = fastReflection_GenesisState_messageType{} + +type fastReflection_GenesisState_messageType struct{} + +func (x fastReflection_GenesisState_messageType) Zero() protoreflect.Message { + return (*fastReflection_GenesisState)(nil) +} +func (x fastReflection_GenesisState_messageType) New() protoreflect.Message { + return new(fastReflection_GenesisState) +} +func (x fastReflection_GenesisState_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_GenesisState +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_GenesisState) Descriptor() protoreflect.MessageDescriptor { + return md_GenesisState +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_GenesisState) Type() protoreflect.MessageType { + return _fastReflection_GenesisState_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_GenesisState) New() protoreflect.Message { + return new(fastReflection_GenesisState) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_GenesisState) Interface() protoreflect.ProtoMessage { + return (*GenesisState)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_GenesisState) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Params != nil { + value := protoreflect.ValueOfMessage(x.Params.ProtoReflect()) + if !f(fd_GenesisState_params, value) { + return + } + } + if x.NextAgent != uint64(0) { + value := protoreflect.ValueOfUint64(x.NextAgent) + if !f(fd_GenesisState_next_agent, value) { + return + } + } + if len(x.Agents) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_3_list{list: &x.Agents}) + if !f(fd_GenesisState_agents, value) { + return + } + } + if x.NextProposal != uint64(0) { + value := protoreflect.ValueOfUint64(x.NextProposal) + if !f(fd_GenesisState_next_proposal, value) { + return + } + } + if len(x.Proposals) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_5_list{list: &x.Proposals}) + if !f(fd_GenesisState_proposals, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_GenesisState) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.GenesisState.params": + return x.Params != nil + case "andromeda.escrow.v1alpha1.GenesisState.next_agent": + return x.NextAgent != uint64(0) + case "andromeda.escrow.v1alpha1.GenesisState.agents": + return len(x.Agents) != 0 + case "andromeda.escrow.v1alpha1.GenesisState.next_proposal": + return x.NextProposal != uint64(0) + case "andromeda.escrow.v1alpha1.GenesisState.proposals": + return len(x.Proposals) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.GenesisState")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.GenesisState does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GenesisState) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.GenesisState.params": + x.Params = nil + case "andromeda.escrow.v1alpha1.GenesisState.next_agent": + x.NextAgent = uint64(0) + case "andromeda.escrow.v1alpha1.GenesisState.agents": + x.Agents = nil + case "andromeda.escrow.v1alpha1.GenesisState.next_proposal": + x.NextProposal = uint64(0) + case "andromeda.escrow.v1alpha1.GenesisState.proposals": + x.Proposals = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.GenesisState")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.GenesisState does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_GenesisState) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "andromeda.escrow.v1alpha1.GenesisState.params": + value := x.Params + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "andromeda.escrow.v1alpha1.GenesisState.next_agent": + value := x.NextAgent + return protoreflect.ValueOfUint64(value) + case "andromeda.escrow.v1alpha1.GenesisState.agents": + if len(x.Agents) == 0 { + return protoreflect.ValueOfList(&_GenesisState_3_list{}) + } + listValue := &_GenesisState_3_list{list: &x.Agents} + return protoreflect.ValueOfList(listValue) + case "andromeda.escrow.v1alpha1.GenesisState.next_proposal": + value := x.NextProposal + return protoreflect.ValueOfUint64(value) + case "andromeda.escrow.v1alpha1.GenesisState.proposals": + if len(x.Proposals) == 0 { + return protoreflect.ValueOfList(&_GenesisState_5_list{}) + } + listValue := &_GenesisState_5_list{list: &x.Proposals} + return protoreflect.ValueOfList(listValue) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.GenesisState")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.GenesisState does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GenesisState) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.GenesisState.params": + x.Params = value.Message().Interface().(*GenesisState_Params) + case "andromeda.escrow.v1alpha1.GenesisState.next_agent": + x.NextAgent = value.Uint() + case "andromeda.escrow.v1alpha1.GenesisState.agents": + lv := value.List() + clv := lv.(*_GenesisState_3_list) + x.Agents = *clv.list + case "andromeda.escrow.v1alpha1.GenesisState.next_proposal": + x.NextProposal = value.Uint() + case "andromeda.escrow.v1alpha1.GenesisState.proposals": + lv := value.List() + clv := lv.(*_GenesisState_5_list) + x.Proposals = *clv.list + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.GenesisState")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.GenesisState does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GenesisState) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.GenesisState.params": + if x.Params == nil { + x.Params = new(GenesisState_Params) + } + return protoreflect.ValueOfMessage(x.Params.ProtoReflect()) + case "andromeda.escrow.v1alpha1.GenesisState.agents": + if x.Agents == nil { + x.Agents = []*GenesisState_Agent{} + } + value := &_GenesisState_3_list{list: &x.Agents} + return protoreflect.ValueOfList(value) + case "andromeda.escrow.v1alpha1.GenesisState.proposals": + if x.Proposals == nil { + x.Proposals = []*GenesisState_Proposal{} + } + value := &_GenesisState_5_list{list: &x.Proposals} + return protoreflect.ValueOfList(value) + case "andromeda.escrow.v1alpha1.GenesisState.next_agent": + panic(fmt.Errorf("field next_agent of message andromeda.escrow.v1alpha1.GenesisState is not mutable")) + case "andromeda.escrow.v1alpha1.GenesisState.next_proposal": + panic(fmt.Errorf("field next_proposal of message andromeda.escrow.v1alpha1.GenesisState is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.GenesisState")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.GenesisState does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_GenesisState) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.GenesisState.params": + m := new(GenesisState_Params) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "andromeda.escrow.v1alpha1.GenesisState.next_agent": + return protoreflect.ValueOfUint64(uint64(0)) + case "andromeda.escrow.v1alpha1.GenesisState.agents": + list := []*GenesisState_Agent{} + return protoreflect.ValueOfList(&_GenesisState_3_list{list: &list}) + case "andromeda.escrow.v1alpha1.GenesisState.next_proposal": + return protoreflect.ValueOfUint64(uint64(0)) + case "andromeda.escrow.v1alpha1.GenesisState.proposals": + list := []*GenesisState_Proposal{} + return protoreflect.ValueOfList(&_GenesisState_5_list{list: &list}) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.GenesisState")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.GenesisState does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_GenesisState) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in andromeda.escrow.v1alpha1.GenesisState", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_GenesisState) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GenesisState) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_GenesisState) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*GenesisState) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.Params != nil { + l = options.Size(x.Params) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.NextAgent != 0 { + n += 1 + runtime.Sov(uint64(x.NextAgent)) + } + if len(x.Agents) > 0 { + for _, e := range x.Agents { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if x.NextProposal != 0 { + n += 1 + runtime.Sov(uint64(x.NextProposal)) + } + if len(x.Proposals) > 0 { + for _, e := range x.Proposals { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*GenesisState) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.Proposals) > 0 { + for iNdEx := len(x.Proposals) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Proposals[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x2a + } + } + if x.NextProposal != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.NextProposal)) + i-- + dAtA[i] = 0x20 + } + if len(x.Agents) > 0 { + for iNdEx := len(x.Agents) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Agents[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x1a + } + } + if x.NextAgent != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.NextAgent)) + i-- + dAtA[i] = 0x10 + } + if x.Params != nil { + encoded, err := options.Marshal(x.Params) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*GenesisState) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GenesisState: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.Params == nil { + x.Params = &GenesisState_Params{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NextAgent", wireType) + } + x.NextAgent = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.NextAgent |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Agents", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Agents = append(x.Agents, &GenesisState_Agent{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Agents[len(x.Agents)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 4: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NextProposal", wireType) + } + x.NextProposal = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.NextProposal |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Proposals", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Proposals = append(x.Proposals, &GenesisState_Proposal{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Proposals[len(x.Proposals)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_GenesisState_Params protoreflect.MessageDescriptor +) + +func init() { + file_andromeda_escrow_v1alpha1_genesis_proto_init() + md_GenesisState_Params = File_andromeda_escrow_v1alpha1_genesis_proto.Messages().ByName("GenesisState").Messages().ByName("Params") +} + +var _ protoreflect.Message = (*fastReflection_GenesisState_Params)(nil) + +type fastReflection_GenesisState_Params GenesisState_Params + +func (x *GenesisState_Params) ProtoReflect() protoreflect.Message { + return (*fastReflection_GenesisState_Params)(x) +} + +func (x *GenesisState_Params) slowProtoReflect() protoreflect.Message { + mi := &file_andromeda_escrow_v1alpha1_genesis_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_GenesisState_Params_messageType fastReflection_GenesisState_Params_messageType +var _ protoreflect.MessageType = fastReflection_GenesisState_Params_messageType{} + +type fastReflection_GenesisState_Params_messageType struct{} + +func (x fastReflection_GenesisState_Params_messageType) Zero() protoreflect.Message { + return (*fastReflection_GenesisState_Params)(nil) +} +func (x fastReflection_GenesisState_Params_messageType) New() protoreflect.Message { + return new(fastReflection_GenesisState_Params) +} +func (x fastReflection_GenesisState_Params_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_GenesisState_Params +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_GenesisState_Params) Descriptor() protoreflect.MessageDescriptor { + return md_GenesisState_Params +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_GenesisState_Params) Type() protoreflect.MessageType { + return _fastReflection_GenesisState_Params_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_GenesisState_Params) New() protoreflect.Message { + return new(fastReflection_GenesisState_Params) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_GenesisState_Params) Interface() protoreflect.ProtoMessage { + return (*GenesisState_Params)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_GenesisState_Params) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_GenesisState_Params) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.GenesisState.Params")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.GenesisState.Params does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GenesisState_Params) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.GenesisState.Params")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.GenesisState.Params does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_GenesisState_Params) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.GenesisState.Params")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.GenesisState.Params does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GenesisState_Params) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.GenesisState.Params")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.GenesisState.Params does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GenesisState_Params) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.GenesisState.Params")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.GenesisState.Params does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_GenesisState_Params) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.GenesisState.Params")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.GenesisState.Params does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_GenesisState_Params) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in andromeda.escrow.v1alpha1.GenesisState.Params", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_GenesisState_Params) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GenesisState_Params) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_GenesisState_Params) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_GenesisState_Params) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*GenesisState_Params) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*GenesisState_Params) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*GenesisState_Params) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GenesisState_Params: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GenesisState_Params: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_GenesisState_Agent protoreflect.MessageDescriptor + fd_GenesisState_Agent_address protoreflect.FieldDescriptor + fd_GenesisState_Agent_creator protoreflect.FieldDescriptor +) + +func init() { + file_andromeda_escrow_v1alpha1_genesis_proto_init() + md_GenesisState_Agent = File_andromeda_escrow_v1alpha1_genesis_proto.Messages().ByName("GenesisState").Messages().ByName("Agent") + fd_GenesisState_Agent_address = md_GenesisState_Agent.Fields().ByName("address") + fd_GenesisState_Agent_creator = md_GenesisState_Agent.Fields().ByName("creator") +} + +var _ protoreflect.Message = (*fastReflection_GenesisState_Agent)(nil) + +type fastReflection_GenesisState_Agent GenesisState_Agent + +func (x *GenesisState_Agent) ProtoReflect() protoreflect.Message { + return (*fastReflection_GenesisState_Agent)(x) +} + +func (x *GenesisState_Agent) slowProtoReflect() protoreflect.Message { + mi := &file_andromeda_escrow_v1alpha1_genesis_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_GenesisState_Agent_messageType fastReflection_GenesisState_Agent_messageType +var _ protoreflect.MessageType = fastReflection_GenesisState_Agent_messageType{} + +type fastReflection_GenesisState_Agent_messageType struct{} + +func (x fastReflection_GenesisState_Agent_messageType) Zero() protoreflect.Message { + return (*fastReflection_GenesisState_Agent)(nil) +} +func (x fastReflection_GenesisState_Agent_messageType) New() protoreflect.Message { + return new(fastReflection_GenesisState_Agent) +} +func (x fastReflection_GenesisState_Agent_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_GenesisState_Agent +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_GenesisState_Agent) Descriptor() protoreflect.MessageDescriptor { + return md_GenesisState_Agent +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_GenesisState_Agent) Type() protoreflect.MessageType { + return _fastReflection_GenesisState_Agent_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_GenesisState_Agent) New() protoreflect.Message { + return new(fastReflection_GenesisState_Agent) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_GenesisState_Agent) Interface() protoreflect.ProtoMessage { + return (*GenesisState_Agent)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_GenesisState_Agent) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Address != "" { + value := protoreflect.ValueOfString(x.Address) + if !f(fd_GenesisState_Agent_address, value) { + return + } + } + if x.Creator != "" { + value := protoreflect.ValueOfString(x.Creator) + if !f(fd_GenesisState_Agent_creator, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_GenesisState_Agent) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.GenesisState.Agent.address": + return x.Address != "" + case "andromeda.escrow.v1alpha1.GenesisState.Agent.creator": + return x.Creator != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.GenesisState.Agent")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.GenesisState.Agent does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GenesisState_Agent) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.GenesisState.Agent.address": + x.Address = "" + case "andromeda.escrow.v1alpha1.GenesisState.Agent.creator": + x.Creator = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.GenesisState.Agent")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.GenesisState.Agent does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_GenesisState_Agent) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "andromeda.escrow.v1alpha1.GenesisState.Agent.address": + value := x.Address + return protoreflect.ValueOfString(value) + case "andromeda.escrow.v1alpha1.GenesisState.Agent.creator": + value := x.Creator + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.GenesisState.Agent")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.GenesisState.Agent does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GenesisState_Agent) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.GenesisState.Agent.address": + x.Address = value.Interface().(string) + case "andromeda.escrow.v1alpha1.GenesisState.Agent.creator": + x.Creator = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.GenesisState.Agent")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.GenesisState.Agent does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GenesisState_Agent) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.GenesisState.Agent.address": + panic(fmt.Errorf("field address of message andromeda.escrow.v1alpha1.GenesisState.Agent is not mutable")) + case "andromeda.escrow.v1alpha1.GenesisState.Agent.creator": + panic(fmt.Errorf("field creator of message andromeda.escrow.v1alpha1.GenesisState.Agent is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.GenesisState.Agent")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.GenesisState.Agent does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_GenesisState_Agent) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.GenesisState.Agent.address": + return protoreflect.ValueOfString("") + case "andromeda.escrow.v1alpha1.GenesisState.Agent.creator": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.GenesisState.Agent")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.GenesisState.Agent does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_GenesisState_Agent) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in andromeda.escrow.v1alpha1.GenesisState.Agent", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_GenesisState_Agent) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GenesisState_Agent) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_GenesisState_Agent) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_GenesisState_Agent) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*GenesisState_Agent) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + l = len(x.Address) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Creator) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*GenesisState_Agent) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.Creator) > 0 { + i -= len(x.Creator) + copy(dAtA[i:], x.Creator) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) + i-- + dAtA[i] = 0x12 + } + if len(x.Address) > 0 { + i -= len(x.Address) + copy(dAtA[i:], x.Address) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*GenesisState_Agent) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GenesisState_Agent: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GenesisState_Agent: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var _ protoreflect.List = (*_GenesisState_Proposal_4_list)(nil) + +type _GenesisState_Proposal_4_list struct { + list *[]*anypb.Any +} + +func (x *_GenesisState_Proposal_4_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GenesisState_Proposal_4_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_GenesisState_Proposal_4_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*anypb.Any) + (*x.list)[i] = concreteValue +} + +func (x *_GenesisState_Proposal_4_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*anypb.Any) + *x.list = append(*x.list, concreteValue) +} + +func (x *_GenesisState_Proposal_4_list) AppendMutable() protoreflect.Value { + v := new(anypb.Any) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_Proposal_4_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_GenesisState_Proposal_4_list) NewElement() protoreflect.Value { + v := new(anypb.Any) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_Proposal_4_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_GenesisState_Proposal_5_list)(nil) + +type _GenesisState_Proposal_5_list struct { + list *[]*anypb.Any +} + +func (x *_GenesisState_Proposal_5_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GenesisState_Proposal_5_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_GenesisState_Proposal_5_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*anypb.Any) + (*x.list)[i] = concreteValue +} + +func (x *_GenesisState_Proposal_5_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*anypb.Any) + *x.list = append(*x.list, concreteValue) +} + +func (x *_GenesisState_Proposal_5_list) AppendMutable() protoreflect.Value { + v := new(anypb.Any) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_Proposal_5_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_GenesisState_Proposal_5_list) NewElement() protoreflect.Value { + v := new(anypb.Any) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_Proposal_5_list) IsValid() bool { + return x.list != nil +} + +var ( + md_GenesisState_Proposal protoreflect.MessageDescriptor + fd_GenesisState_Proposal_id protoreflect.FieldDescriptor + fd_GenesisState_Proposal_proposer protoreflect.FieldDescriptor + fd_GenesisState_Proposal_agent protoreflect.FieldDescriptor + fd_GenesisState_Proposal_pre_actions protoreflect.FieldDescriptor + fd_GenesisState_Proposal_post_actions protoreflect.FieldDescriptor +) + +func init() { + file_andromeda_escrow_v1alpha1_genesis_proto_init() + md_GenesisState_Proposal = File_andromeda_escrow_v1alpha1_genesis_proto.Messages().ByName("GenesisState").Messages().ByName("Proposal") + fd_GenesisState_Proposal_id = md_GenesisState_Proposal.Fields().ByName("id") + fd_GenesisState_Proposal_proposer = md_GenesisState_Proposal.Fields().ByName("proposer") + fd_GenesisState_Proposal_agent = md_GenesisState_Proposal.Fields().ByName("agent") + fd_GenesisState_Proposal_pre_actions = md_GenesisState_Proposal.Fields().ByName("pre_actions") + fd_GenesisState_Proposal_post_actions = md_GenesisState_Proposal.Fields().ByName("post_actions") +} + +var _ protoreflect.Message = (*fastReflection_GenesisState_Proposal)(nil) + +type fastReflection_GenesisState_Proposal GenesisState_Proposal + +func (x *GenesisState_Proposal) ProtoReflect() protoreflect.Message { + return (*fastReflection_GenesisState_Proposal)(x) +} + +func (x *GenesisState_Proposal) slowProtoReflect() protoreflect.Message { + mi := &file_andromeda_escrow_v1alpha1_genesis_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_GenesisState_Proposal_messageType fastReflection_GenesisState_Proposal_messageType +var _ protoreflect.MessageType = fastReflection_GenesisState_Proposal_messageType{} + +type fastReflection_GenesisState_Proposal_messageType struct{} + +func (x fastReflection_GenesisState_Proposal_messageType) Zero() protoreflect.Message { + return (*fastReflection_GenesisState_Proposal)(nil) +} +func (x fastReflection_GenesisState_Proposal_messageType) New() protoreflect.Message { + return new(fastReflection_GenesisState_Proposal) +} +func (x fastReflection_GenesisState_Proposal_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_GenesisState_Proposal +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_GenesisState_Proposal) Descriptor() protoreflect.MessageDescriptor { + return md_GenesisState_Proposal +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_GenesisState_Proposal) Type() protoreflect.MessageType { + return _fastReflection_GenesisState_Proposal_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_GenesisState_Proposal) New() protoreflect.Message { + return new(fastReflection_GenesisState_Proposal) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_GenesisState_Proposal) Interface() protoreflect.ProtoMessage { + return (*GenesisState_Proposal)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_GenesisState_Proposal) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Id != uint64(0) { + value := protoreflect.ValueOfUint64(x.Id) + if !f(fd_GenesisState_Proposal_id, value) { + return + } + } + if x.Proposer != "" { + value := protoreflect.ValueOfString(x.Proposer) + if !f(fd_GenesisState_Proposal_proposer, value) { + return + } + } + if x.Agent != "" { + value := protoreflect.ValueOfString(x.Agent) + if !f(fd_GenesisState_Proposal_agent, value) { + return + } + } + if len(x.PreActions) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_Proposal_4_list{list: &x.PreActions}) + if !f(fd_GenesisState_Proposal_pre_actions, value) { + return + } + } + if len(x.PostActions) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_Proposal_5_list{list: &x.PostActions}) + if !f(fd_GenesisState_Proposal_post_actions, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_GenesisState_Proposal) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.GenesisState.Proposal.id": + return x.Id != uint64(0) + case "andromeda.escrow.v1alpha1.GenesisState.Proposal.proposer": + return x.Proposer != "" + case "andromeda.escrow.v1alpha1.GenesisState.Proposal.agent": + return x.Agent != "" + case "andromeda.escrow.v1alpha1.GenesisState.Proposal.pre_actions": + return len(x.PreActions) != 0 + case "andromeda.escrow.v1alpha1.GenesisState.Proposal.post_actions": + return len(x.PostActions) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.GenesisState.Proposal")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.GenesisState.Proposal does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GenesisState_Proposal) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.GenesisState.Proposal.id": + x.Id = uint64(0) + case "andromeda.escrow.v1alpha1.GenesisState.Proposal.proposer": + x.Proposer = "" + case "andromeda.escrow.v1alpha1.GenesisState.Proposal.agent": + x.Agent = "" + case "andromeda.escrow.v1alpha1.GenesisState.Proposal.pre_actions": + x.PreActions = nil + case "andromeda.escrow.v1alpha1.GenesisState.Proposal.post_actions": + x.PostActions = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.GenesisState.Proposal")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.GenesisState.Proposal does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_GenesisState_Proposal) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "andromeda.escrow.v1alpha1.GenesisState.Proposal.id": + value := x.Id + return protoreflect.ValueOfUint64(value) + case "andromeda.escrow.v1alpha1.GenesisState.Proposal.proposer": + value := x.Proposer + return protoreflect.ValueOfString(value) + case "andromeda.escrow.v1alpha1.GenesisState.Proposal.agent": + value := x.Agent + return protoreflect.ValueOfString(value) + case "andromeda.escrow.v1alpha1.GenesisState.Proposal.pre_actions": + if len(x.PreActions) == 0 { + return protoreflect.ValueOfList(&_GenesisState_Proposal_4_list{}) + } + listValue := &_GenesisState_Proposal_4_list{list: &x.PreActions} + return protoreflect.ValueOfList(listValue) + case "andromeda.escrow.v1alpha1.GenesisState.Proposal.post_actions": + if len(x.PostActions) == 0 { + return protoreflect.ValueOfList(&_GenesisState_Proposal_5_list{}) + } + listValue := &_GenesisState_Proposal_5_list{list: &x.PostActions} + return protoreflect.ValueOfList(listValue) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.GenesisState.Proposal")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.GenesisState.Proposal does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GenesisState_Proposal) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.GenesisState.Proposal.id": + x.Id = value.Uint() + case "andromeda.escrow.v1alpha1.GenesisState.Proposal.proposer": + x.Proposer = value.Interface().(string) + case "andromeda.escrow.v1alpha1.GenesisState.Proposal.agent": + x.Agent = value.Interface().(string) + case "andromeda.escrow.v1alpha1.GenesisState.Proposal.pre_actions": + lv := value.List() + clv := lv.(*_GenesisState_Proposal_4_list) + x.PreActions = *clv.list + case "andromeda.escrow.v1alpha1.GenesisState.Proposal.post_actions": + lv := value.List() + clv := lv.(*_GenesisState_Proposal_5_list) + x.PostActions = *clv.list + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.GenesisState.Proposal")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.GenesisState.Proposal does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GenesisState_Proposal) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.GenesisState.Proposal.pre_actions": + if x.PreActions == nil { + x.PreActions = []*anypb.Any{} + } + value := &_GenesisState_Proposal_4_list{list: &x.PreActions} + return protoreflect.ValueOfList(value) + case "andromeda.escrow.v1alpha1.GenesisState.Proposal.post_actions": + if x.PostActions == nil { + x.PostActions = []*anypb.Any{} + } + value := &_GenesisState_Proposal_5_list{list: &x.PostActions} + return protoreflect.ValueOfList(value) + case "andromeda.escrow.v1alpha1.GenesisState.Proposal.id": + panic(fmt.Errorf("field id of message andromeda.escrow.v1alpha1.GenesisState.Proposal is not mutable")) + case "andromeda.escrow.v1alpha1.GenesisState.Proposal.proposer": + panic(fmt.Errorf("field proposer of message andromeda.escrow.v1alpha1.GenesisState.Proposal is not mutable")) + case "andromeda.escrow.v1alpha1.GenesisState.Proposal.agent": + panic(fmt.Errorf("field agent of message andromeda.escrow.v1alpha1.GenesisState.Proposal is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.GenesisState.Proposal")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.GenesisState.Proposal does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_GenesisState_Proposal) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.GenesisState.Proposal.id": + return protoreflect.ValueOfUint64(uint64(0)) + case "andromeda.escrow.v1alpha1.GenesisState.Proposal.proposer": + return protoreflect.ValueOfString("") + case "andromeda.escrow.v1alpha1.GenesisState.Proposal.agent": + return protoreflect.ValueOfString("") + case "andromeda.escrow.v1alpha1.GenesisState.Proposal.pre_actions": + list := []*anypb.Any{} + return protoreflect.ValueOfList(&_GenesisState_Proposal_4_list{list: &list}) + case "andromeda.escrow.v1alpha1.GenesisState.Proposal.post_actions": + list := []*anypb.Any{} + return protoreflect.ValueOfList(&_GenesisState_Proposal_5_list{list: &list}) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.GenesisState.Proposal")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.GenesisState.Proposal does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_GenesisState_Proposal) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in andromeda.escrow.v1alpha1.GenesisState.Proposal", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_GenesisState_Proposal) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GenesisState_Proposal) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_GenesisState_Proposal) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_GenesisState_Proposal) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*GenesisState_Proposal) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.Id != 0 { + n += 1 + runtime.Sov(uint64(x.Id)) + } + l = len(x.Proposer) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Agent) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if len(x.PreActions) > 0 { + for _, e := range x.PreActions { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if len(x.PostActions) > 0 { + for _, e := range x.PostActions { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*GenesisState_Proposal) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.PostActions) > 0 { + for iNdEx := len(x.PostActions) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.PostActions[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x2a + } + } + if len(x.PreActions) > 0 { + for iNdEx := len(x.PreActions) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.PreActions[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x22 + } + } + if len(x.Agent) > 0 { + i -= len(x.Agent) + copy(dAtA[i:], x.Agent) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Agent))) + i-- + dAtA[i] = 0x1a + } + if len(x.Proposer) > 0 { + i -= len(x.Proposer) + copy(dAtA[i:], x.Proposer) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Proposer))) + i-- + dAtA[i] = 0x12 + } + if x.Id != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Id)) + i-- + dAtA[i] = 0x8 + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*GenesisState_Proposal) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GenesisState_Proposal: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GenesisState_Proposal: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + x.Id = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.Id |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Proposer", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Proposer = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Agent", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Agent = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PreActions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.PreActions = append(x.PreActions, &anypb.Any{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.PreActions[len(x.PreActions)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PostActions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.PostActions = append(x.PostActions, &anypb.Any{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.PostActions[len(x.PostActions)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc (unknown) +// source: andromeda/escrow/v1alpha1/genesis.proto + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// GenesisState defines the module's genesis state. +type GenesisState struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // all the paramaters of the module + Params *GenesisState_Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` + // the identifier of the next agent + NextAgent uint64 `protobuf:"varint,2,opt,name=next_agent,json=nextAgent,proto3" json:"next_agent,omitempty"` + // all the agents + Agents []*GenesisState_Agent `protobuf:"bytes,3,rep,name=agents,proto3" json:"agents,omitempty"` + // the identifier of the next proposal + NextProposal uint64 `protobuf:"varint,4,opt,name=next_proposal,json=nextProposal,proto3" json:"next_proposal,omitempty"` + // all the proposals + Proposals []*GenesisState_Proposal `protobuf:"bytes,5,rep,name=proposals,proto3" json:"proposals,omitempty"` +} + +func (x *GenesisState) Reset() { + *x = GenesisState{} + if protoimpl.UnsafeEnabled { + mi := &file_andromeda_escrow_v1alpha1_genesis_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GenesisState) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GenesisState) ProtoMessage() {} + +// Deprecated: Use GenesisState.ProtoReflect.Descriptor instead. +func (*GenesisState) Descriptor() ([]byte, []int) { + return file_andromeda_escrow_v1alpha1_genesis_proto_rawDescGZIP(), []int{0} +} + +func (x *GenesisState) GetParams() *GenesisState_Params { + if x != nil { + return x.Params + } + return nil +} + +func (x *GenesisState) GetNextAgent() uint64 { + if x != nil { + return x.NextAgent + } + return 0 +} + +func (x *GenesisState) GetAgents() []*GenesisState_Agent { + if x != nil { + return x.Agents + } + return nil +} + +func (x *GenesisState) GetNextProposal() uint64 { + if x != nil { + return x.NextProposal + } + return 0 +} + +func (x *GenesisState) GetProposals() []*GenesisState_Proposal { + if x != nil { + return x.Proposals + } + return nil +} + +// Params defines the parameters for the module. +type GenesisState_Params struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *GenesisState_Params) Reset() { + *x = GenesisState_Params{} + if protoimpl.UnsafeEnabled { + mi := &file_andromeda_escrow_v1alpha1_genesis_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GenesisState_Params) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GenesisState_Params) ProtoMessage() {} + +// Deprecated: Use GenesisState_Params.ProtoReflect.Descriptor instead. +func (*GenesisState_Params) Descriptor() ([]byte, []int) { + return file_andromeda_escrow_v1alpha1_genesis_proto_rawDescGZIP(), []int{0, 0} +} + +// Agent defines an account taking charge of a proposal. +type GenesisState_Agent struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // the address of the agent + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + // the address of the creator + Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` +} + +func (x *GenesisState_Agent) Reset() { + *x = GenesisState_Agent{} + if protoimpl.UnsafeEnabled { + mi := &file_andromeda_escrow_v1alpha1_genesis_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GenesisState_Agent) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GenesisState_Agent) ProtoMessage() {} + +// Deprecated: Use GenesisState_Agent.ProtoReflect.Descriptor instead. +func (*GenesisState_Agent) Descriptor() ([]byte, []int) { + return file_andromeda_escrow_v1alpha1_genesis_proto_rawDescGZIP(), []int{0, 1} +} + +func (x *GenesisState_Agent) GetAddress() string { + if x != nil { + return x.Address + } + return "" +} + +func (x *GenesisState_Agent) GetCreator() string { + if x != nil { + return x.Creator + } + return "" +} + +// Proposal defines a proposal. +type GenesisState_Proposal struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // the unique identifier + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + // the address of the proposer + Proposer string `protobuf:"bytes,2,opt,name=proposer,proto3" json:"proposer,omitempty"` + // the address of the agent in charge + Agent string `protobuf:"bytes,3,opt,name=agent,proto3" json:"agent,omitempty"` + // the messages which has been executed on the submission + PreActions []*anypb.Any `protobuf:"bytes,4,rep,name=pre_actions,json=preActions,proto3" json:"pre_actions,omitempty"` + // the messages which will be executed after the actions included in Msg/Exec + PostActions []*anypb.Any `protobuf:"bytes,5,rep,name=post_actions,json=postActions,proto3" json:"post_actions,omitempty"` +} + +func (x *GenesisState_Proposal) Reset() { + *x = GenesisState_Proposal{} + if protoimpl.UnsafeEnabled { + mi := &file_andromeda_escrow_v1alpha1_genesis_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GenesisState_Proposal) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GenesisState_Proposal) ProtoMessage() {} + +// Deprecated: Use GenesisState_Proposal.ProtoReflect.Descriptor instead. +func (*GenesisState_Proposal) Descriptor() ([]byte, []int) { + return file_andromeda_escrow_v1alpha1_genesis_proto_rawDescGZIP(), []int{0, 2} +} + +func (x *GenesisState_Proposal) GetId() uint64 { + if x != nil { + return x.Id + } + return 0 +} + +func (x *GenesisState_Proposal) GetProposer() string { + if x != nil { + return x.Proposer + } + return "" +} + +func (x *GenesisState_Proposal) GetAgent() string { + if x != nil { + return x.Agent + } + return "" +} + +func (x *GenesisState_Proposal) GetPreActions() []*anypb.Any { + if x != nil { + return x.PreActions + } + return nil +} + +func (x *GenesisState_Proposal) GetPostActions() []*anypb.Any { + if x != nil { + return x.PostActions + } + return nil +} + +var File_andromeda_escrow_v1alpha1_genesis_proto protoreflect.FileDescriptor + +var file_andromeda_escrow_v1alpha1_genesis_proto_rawDesc = []byte{ + 0x0a, 0x27, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x65, 0x73, 0x63, 0x72, + 0x6f, 0x77, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x67, 0x65, 0x6e, 0x65, + 0x73, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x61, 0x6e, 0x64, 0x72, 0x6f, + 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, + 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x9f, 0x05, 0x0a, 0x0c, 0x47, + 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x46, 0x0a, 0x06, 0x70, + 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x61, 0x6e, + 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x53, + 0x74, 0x61, 0x74, 0x65, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x06, 0x70, 0x61, 0x72, + 0x61, 0x6d, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x61, 0x67, 0x65, 0x6e, + 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x6e, 0x65, 0x78, 0x74, 0x41, 0x67, 0x65, + 0x6e, 0x74, 0x12, 0x45, 0x0a, 0x06, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, + 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, + 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x41, 0x67, 0x65, 0x6e, + 0x74, 0x52, 0x06, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x6e, 0x65, 0x78, + 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x0c, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x4e, + 0x0a, 0x09, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x30, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, + 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, + 0x6e, 0x65, 0x73, 0x69, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x6f, + 0x73, 0x61, 0x6c, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x1a, 0x08, + 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x1a, 0x6f, 0x0a, 0x05, 0x41, 0x67, 0x65, 0x6e, + 0x74, 0x12, 0x32, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x61, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x32, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, + 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x1a, 0xf0, 0x01, 0x0a, 0x08, 0x50, 0x72, + 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x34, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, + 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, + 0x6e, 0x67, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x12, 0x2e, 0x0a, 0x05, + 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, + 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, + 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x35, 0x0a, 0x0b, + 0x70, 0x72, 0x65, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0a, 0x70, 0x72, 0x65, 0x41, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x12, 0x37, 0x0a, 0x0c, 0x70, 0x6f, 0x73, 0x74, 0x5f, 0x61, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, + 0x0b, 0x70, 0x6f, 0x73, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0xe1, 0x01, 0x0a, + 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, + 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x0c, + 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2c, + 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x65, 0x73, + 0x63, 0x72, 0x6f, 0x77, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x3b, 0x65, 0x73, + 0x63, 0x72, 0x6f, 0x77, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x41, + 0x45, 0x58, 0xaa, 0x02, 0x19, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x45, + 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xca, 0x02, + 0x19, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x5c, 0x45, 0x73, 0x63, 0x72, 0x6f, + 0x77, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xe2, 0x02, 0x25, 0x41, 0x6e, 0x64, + 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x5c, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x5c, 0x56, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0xea, 0x02, 0x1b, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x3a, 0x3a, + 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x3a, 0x3a, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_andromeda_escrow_v1alpha1_genesis_proto_rawDescOnce sync.Once + file_andromeda_escrow_v1alpha1_genesis_proto_rawDescData = file_andromeda_escrow_v1alpha1_genesis_proto_rawDesc +) + +func file_andromeda_escrow_v1alpha1_genesis_proto_rawDescGZIP() []byte { + file_andromeda_escrow_v1alpha1_genesis_proto_rawDescOnce.Do(func() { + file_andromeda_escrow_v1alpha1_genesis_proto_rawDescData = protoimpl.X.CompressGZIP(file_andromeda_escrow_v1alpha1_genesis_proto_rawDescData) + }) + return file_andromeda_escrow_v1alpha1_genesis_proto_rawDescData +} + +var file_andromeda_escrow_v1alpha1_genesis_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_andromeda_escrow_v1alpha1_genesis_proto_goTypes = []interface{}{ + (*GenesisState)(nil), // 0: andromeda.escrow.v1alpha1.GenesisState + (*GenesisState_Params)(nil), // 1: andromeda.escrow.v1alpha1.GenesisState.Params + (*GenesisState_Agent)(nil), // 2: andromeda.escrow.v1alpha1.GenesisState.Agent + (*GenesisState_Proposal)(nil), // 3: andromeda.escrow.v1alpha1.GenesisState.Proposal + (*anypb.Any)(nil), // 4: google.protobuf.Any +} +var file_andromeda_escrow_v1alpha1_genesis_proto_depIdxs = []int32{ + 1, // 0: andromeda.escrow.v1alpha1.GenesisState.params:type_name -> andromeda.escrow.v1alpha1.GenesisState.Params + 2, // 1: andromeda.escrow.v1alpha1.GenesisState.agents:type_name -> andromeda.escrow.v1alpha1.GenesisState.Agent + 3, // 2: andromeda.escrow.v1alpha1.GenesisState.proposals:type_name -> andromeda.escrow.v1alpha1.GenesisState.Proposal + 4, // 3: andromeda.escrow.v1alpha1.GenesisState.Proposal.pre_actions:type_name -> google.protobuf.Any + 4, // 4: andromeda.escrow.v1alpha1.GenesisState.Proposal.post_actions:type_name -> google.protobuf.Any + 5, // [5:5] is the sub-list for method output_type + 5, // [5:5] is the sub-list for method input_type + 5, // [5:5] is the sub-list for extension type_name + 5, // [5:5] is the sub-list for extension extendee + 0, // [0:5] is the sub-list for field type_name +} + +func init() { file_andromeda_escrow_v1alpha1_genesis_proto_init() } +func file_andromeda_escrow_v1alpha1_genesis_proto_init() { + if File_andromeda_escrow_v1alpha1_genesis_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_andromeda_escrow_v1alpha1_genesis_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GenesisState); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_andromeda_escrow_v1alpha1_genesis_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GenesisState_Params); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_andromeda_escrow_v1alpha1_genesis_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GenesisState_Agent); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_andromeda_escrow_v1alpha1_genesis_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GenesisState_Proposal); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_andromeda_escrow_v1alpha1_genesis_proto_rawDesc, + NumEnums: 0, + NumMessages: 4, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_andromeda_escrow_v1alpha1_genesis_proto_goTypes, + DependencyIndexes: file_andromeda_escrow_v1alpha1_genesis_proto_depIdxs, + MessageInfos: file_andromeda_escrow_v1alpha1_genesis_proto_msgTypes, + }.Build() + File_andromeda_escrow_v1alpha1_genesis_proto = out.File + file_andromeda_escrow_v1alpha1_genesis_proto_rawDesc = nil + file_andromeda_escrow_v1alpha1_genesis_proto_goTypes = nil + file_andromeda_escrow_v1alpha1_genesis_proto_depIdxs = nil +} diff --git a/x/escrow/api/andromeda/escrow/v1alpha1/query.pulsar.go b/x/escrow/api/andromeda/escrow/v1alpha1/query.pulsar.go new file mode 100644 index 0000000..deab11d --- /dev/null +++ b/x/escrow/api/andromeda/escrow/v1alpha1/query.pulsar.go @@ -0,0 +1,8574 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package escrowv1alpha1 + +import ( + v1beta1 "cosmossdk.io/api/cosmos/base/query/v1beta1" + fmt "fmt" + _ "github.com/cosmos/cosmos-proto" + runtime "github.com/cosmos/cosmos-proto/runtime" + _ "google.golang.org/genproto/googleapis/api/annotations" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoiface "google.golang.org/protobuf/runtime/protoiface" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + anypb "google.golang.org/protobuf/types/known/anypb" + io "io" + reflect "reflect" + sync "sync" +) + +var ( + md_QueryParamsRequest protoreflect.MessageDescriptor +) + +func init() { + file_andromeda_escrow_v1alpha1_query_proto_init() + md_QueryParamsRequest = File_andromeda_escrow_v1alpha1_query_proto.Messages().ByName("QueryParamsRequest") +} + +var _ protoreflect.Message = (*fastReflection_QueryParamsRequest)(nil) + +type fastReflection_QueryParamsRequest QueryParamsRequest + +func (x *QueryParamsRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryParamsRequest)(x) +} + +func (x *QueryParamsRequest) slowProtoReflect() protoreflect.Message { + mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_QueryParamsRequest_messageType fastReflection_QueryParamsRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryParamsRequest_messageType{} + +type fastReflection_QueryParamsRequest_messageType struct{} + +func (x fastReflection_QueryParamsRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryParamsRequest)(nil) +} +func (x fastReflection_QueryParamsRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryParamsRequest) +} +func (x fastReflection_QueryParamsRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryParamsRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryParamsRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryParamsRequest +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_QueryParamsRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryParamsRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryParamsRequest) New() protoreflect.Message { + return new(fastReflection_QueryParamsRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryParamsRequest) Interface() protoreflect.ProtoMessage { + return (*QueryParamsRequest)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_QueryParamsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_QueryParamsRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryParamsRequest")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryParamsRequest does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryParamsRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryParamsRequest")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryParamsRequest does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_QueryParamsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryParamsRequest")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryParamsRequest does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryParamsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryParamsRequest")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryParamsRequest does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryParamsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryParamsRequest")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryParamsRequest does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_QueryParamsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryParamsRequest")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryParamsRequest does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_QueryParamsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in andromeda.escrow.v1alpha1.QueryParamsRequest", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_QueryParamsRequest) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryParamsRequest) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_QueryParamsRequest) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_QueryParamsRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryParamsRequest) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*QueryParamsRequest) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*QueryParamsRequest) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_QueryParamsResponse protoreflect.MessageDescriptor + fd_QueryParamsResponse_params protoreflect.FieldDescriptor +) + +func init() { + file_andromeda_escrow_v1alpha1_query_proto_init() + md_QueryParamsResponse = File_andromeda_escrow_v1alpha1_query_proto.Messages().ByName("QueryParamsResponse") + fd_QueryParamsResponse_params = md_QueryParamsResponse.Fields().ByName("params") +} + +var _ protoreflect.Message = (*fastReflection_QueryParamsResponse)(nil) + +type fastReflection_QueryParamsResponse QueryParamsResponse + +func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryParamsResponse)(x) +} + +func (x *QueryParamsResponse) slowProtoReflect() protoreflect.Message { + mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_QueryParamsResponse_messageType fastReflection_QueryParamsResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryParamsResponse_messageType{} + +type fastReflection_QueryParamsResponse_messageType struct{} + +func (x fastReflection_QueryParamsResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryParamsResponse)(nil) +} +func (x fastReflection_QueryParamsResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryParamsResponse) +} +func (x fastReflection_QueryParamsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryParamsResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryParamsResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryParamsResponse +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_QueryParamsResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryParamsResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryParamsResponse) New() protoreflect.Message { + return new(fastReflection_QueryParamsResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryParamsResponse) Interface() protoreflect.ProtoMessage { + return (*QueryParamsResponse)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_QueryParamsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Params != nil { + value := protoreflect.ValueOfMessage(x.Params.ProtoReflect()) + if !f(fd_QueryParamsResponse_params, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_QueryParamsResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryParamsResponse.params": + return x.Params != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryParamsResponse")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryParamsResponse does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryParamsResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryParamsResponse.params": + x.Params = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryParamsResponse")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryParamsResponse does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_QueryParamsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "andromeda.escrow.v1alpha1.QueryParamsResponse.params": + value := x.Params + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryParamsResponse")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryParamsResponse does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryParamsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryParamsResponse.params": + x.Params = value.Message().Interface().(*QueryParamsResponse_Params) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryParamsResponse")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryParamsResponse does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryParamsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryParamsResponse.params": + if x.Params == nil { + x.Params = new(QueryParamsResponse_Params) + } + return protoreflect.ValueOfMessage(x.Params.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryParamsResponse")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryParamsResponse does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_QueryParamsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryParamsResponse.params": + m := new(QueryParamsResponse_Params) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryParamsResponse")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryParamsResponse does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_QueryParamsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in andromeda.escrow.v1alpha1.QueryParamsResponse", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_QueryParamsResponse) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryParamsResponse) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_QueryParamsResponse) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_QueryParamsResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryParamsResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.Params != nil { + l = options.Size(x.Params) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*QueryParamsResponse) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if x.Params != nil { + encoded, err := options.Marshal(x.Params) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*QueryParamsResponse) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.Params == nil { + x.Params = &QueryParamsResponse_Params{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_QueryParamsResponse_Params protoreflect.MessageDescriptor +) + +func init() { + file_andromeda_escrow_v1alpha1_query_proto_init() + md_QueryParamsResponse_Params = File_andromeda_escrow_v1alpha1_query_proto.Messages().ByName("QueryParamsResponse").Messages().ByName("Params") +} + +var _ protoreflect.Message = (*fastReflection_QueryParamsResponse_Params)(nil) + +type fastReflection_QueryParamsResponse_Params QueryParamsResponse_Params + +func (x *QueryParamsResponse_Params) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryParamsResponse_Params)(x) +} + +func (x *QueryParamsResponse_Params) slowProtoReflect() protoreflect.Message { + mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_QueryParamsResponse_Params_messageType fastReflection_QueryParamsResponse_Params_messageType +var _ protoreflect.MessageType = fastReflection_QueryParamsResponse_Params_messageType{} + +type fastReflection_QueryParamsResponse_Params_messageType struct{} + +func (x fastReflection_QueryParamsResponse_Params_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryParamsResponse_Params)(nil) +} +func (x fastReflection_QueryParamsResponse_Params_messageType) New() protoreflect.Message { + return new(fastReflection_QueryParamsResponse_Params) +} +func (x fastReflection_QueryParamsResponse_Params_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryParamsResponse_Params +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryParamsResponse_Params) Descriptor() protoreflect.MessageDescriptor { + return md_QueryParamsResponse_Params +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_QueryParamsResponse_Params) Type() protoreflect.MessageType { + return _fastReflection_QueryParamsResponse_Params_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryParamsResponse_Params) New() protoreflect.Message { + return new(fastReflection_QueryParamsResponse_Params) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryParamsResponse_Params) Interface() protoreflect.ProtoMessage { + return (*QueryParamsResponse_Params)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_QueryParamsResponse_Params) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_QueryParamsResponse_Params) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryParamsResponse.Params")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryParamsResponse.Params does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryParamsResponse_Params) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryParamsResponse.Params")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryParamsResponse.Params does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_QueryParamsResponse_Params) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryParamsResponse.Params")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryParamsResponse.Params does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryParamsResponse_Params) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryParamsResponse.Params")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryParamsResponse.Params does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryParamsResponse_Params) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryParamsResponse.Params")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryParamsResponse.Params does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_QueryParamsResponse_Params) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryParamsResponse.Params")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryParamsResponse.Params does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_QueryParamsResponse_Params) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in andromeda.escrow.v1alpha1.QueryParamsResponse.Params", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_QueryParamsResponse_Params) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryParamsResponse_Params) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_QueryParamsResponse_Params) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_QueryParamsResponse_Params) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryParamsResponse_Params) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*QueryParamsResponse_Params) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*QueryParamsResponse_Params) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsResponse_Params: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsResponse_Params: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_QueryAgentRequest protoreflect.MessageDescriptor + fd_QueryAgentRequest_address protoreflect.FieldDescriptor +) + +func init() { + file_andromeda_escrow_v1alpha1_query_proto_init() + md_QueryAgentRequest = File_andromeda_escrow_v1alpha1_query_proto.Messages().ByName("QueryAgentRequest") + fd_QueryAgentRequest_address = md_QueryAgentRequest.Fields().ByName("address") +} + +var _ protoreflect.Message = (*fastReflection_QueryAgentRequest)(nil) + +type fastReflection_QueryAgentRequest QueryAgentRequest + +func (x *QueryAgentRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryAgentRequest)(x) +} + +func (x *QueryAgentRequest) slowProtoReflect() protoreflect.Message { + mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_QueryAgentRequest_messageType fastReflection_QueryAgentRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryAgentRequest_messageType{} + +type fastReflection_QueryAgentRequest_messageType struct{} + +func (x fastReflection_QueryAgentRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryAgentRequest)(nil) +} +func (x fastReflection_QueryAgentRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryAgentRequest) +} +func (x fastReflection_QueryAgentRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAgentRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryAgentRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAgentRequest +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_QueryAgentRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryAgentRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryAgentRequest) New() protoreflect.Message { + return new(fastReflection_QueryAgentRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryAgentRequest) Interface() protoreflect.ProtoMessage { + return (*QueryAgentRequest)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_QueryAgentRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Address != "" { + value := protoreflect.ValueOfString(x.Address) + if !f(fd_QueryAgentRequest_address, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_QueryAgentRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryAgentRequest.address": + return x.Address != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentRequest")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentRequest does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryAgentRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryAgentRequest.address": + x.Address = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentRequest")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentRequest does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_QueryAgentRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "andromeda.escrow.v1alpha1.QueryAgentRequest.address": + value := x.Address + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentRequest")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentRequest does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryAgentRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryAgentRequest.address": + x.Address = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentRequest")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentRequest does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryAgentRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryAgentRequest.address": + panic(fmt.Errorf("field address of message andromeda.escrow.v1alpha1.QueryAgentRequest is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentRequest")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentRequest does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_QueryAgentRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryAgentRequest.address": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentRequest")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentRequest does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_QueryAgentRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in andromeda.escrow.v1alpha1.QueryAgentRequest", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_QueryAgentRequest) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryAgentRequest) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_QueryAgentRequest) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_QueryAgentRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryAgentRequest) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + l = len(x.Address) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*QueryAgentRequest) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.Address) > 0 { + i -= len(x.Address) + copy(dAtA[i:], x.Address) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*QueryAgentRequest) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAgentRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAgentRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_QueryAgentResponse protoreflect.MessageDescriptor + fd_QueryAgentResponse_agent protoreflect.FieldDescriptor +) + +func init() { + file_andromeda_escrow_v1alpha1_query_proto_init() + md_QueryAgentResponse = File_andromeda_escrow_v1alpha1_query_proto.Messages().ByName("QueryAgentResponse") + fd_QueryAgentResponse_agent = md_QueryAgentResponse.Fields().ByName("agent") +} + +var _ protoreflect.Message = (*fastReflection_QueryAgentResponse)(nil) + +type fastReflection_QueryAgentResponse QueryAgentResponse + +func (x *QueryAgentResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryAgentResponse)(x) +} + +func (x *QueryAgentResponse) slowProtoReflect() protoreflect.Message { + mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_QueryAgentResponse_messageType fastReflection_QueryAgentResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryAgentResponse_messageType{} + +type fastReflection_QueryAgentResponse_messageType struct{} + +func (x fastReflection_QueryAgentResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryAgentResponse)(nil) +} +func (x fastReflection_QueryAgentResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryAgentResponse) +} +func (x fastReflection_QueryAgentResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAgentResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryAgentResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAgentResponse +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_QueryAgentResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryAgentResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryAgentResponse) New() protoreflect.Message { + return new(fastReflection_QueryAgentResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryAgentResponse) Interface() protoreflect.ProtoMessage { + return (*QueryAgentResponse)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_QueryAgentResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Agent != nil { + value := protoreflect.ValueOfMessage(x.Agent.ProtoReflect()) + if !f(fd_QueryAgentResponse_agent, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_QueryAgentResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryAgentResponse.agent": + return x.Agent != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentResponse")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentResponse does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryAgentResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryAgentResponse.agent": + x.Agent = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentResponse")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentResponse does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_QueryAgentResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "andromeda.escrow.v1alpha1.QueryAgentResponse.agent": + value := x.Agent + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentResponse")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentResponse does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryAgentResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryAgentResponse.agent": + x.Agent = value.Message().Interface().(*QueryAgentResponse_Agent) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentResponse")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentResponse does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryAgentResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryAgentResponse.agent": + if x.Agent == nil { + x.Agent = new(QueryAgentResponse_Agent) + } + return protoreflect.ValueOfMessage(x.Agent.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentResponse")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentResponse does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_QueryAgentResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryAgentResponse.agent": + m := new(QueryAgentResponse_Agent) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentResponse")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentResponse does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_QueryAgentResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in andromeda.escrow.v1alpha1.QueryAgentResponse", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_QueryAgentResponse) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryAgentResponse) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_QueryAgentResponse) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_QueryAgentResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryAgentResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.Agent != nil { + l = options.Size(x.Agent) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*QueryAgentResponse) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if x.Agent != nil { + encoded, err := options.Marshal(x.Agent) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*QueryAgentResponse) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAgentResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAgentResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Agent", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.Agent == nil { + x.Agent = &QueryAgentResponse_Agent{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Agent); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_QueryAgentResponse_Agent protoreflect.MessageDescriptor + fd_QueryAgentResponse_Agent_address protoreflect.FieldDescriptor + fd_QueryAgentResponse_Agent_creator protoreflect.FieldDescriptor +) + +func init() { + file_andromeda_escrow_v1alpha1_query_proto_init() + md_QueryAgentResponse_Agent = File_andromeda_escrow_v1alpha1_query_proto.Messages().ByName("QueryAgentResponse").Messages().ByName("Agent") + fd_QueryAgentResponse_Agent_address = md_QueryAgentResponse_Agent.Fields().ByName("address") + fd_QueryAgentResponse_Agent_creator = md_QueryAgentResponse_Agent.Fields().ByName("creator") +} + +var _ protoreflect.Message = (*fastReflection_QueryAgentResponse_Agent)(nil) + +type fastReflection_QueryAgentResponse_Agent QueryAgentResponse_Agent + +func (x *QueryAgentResponse_Agent) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryAgentResponse_Agent)(x) +} + +func (x *QueryAgentResponse_Agent) slowProtoReflect() protoreflect.Message { + mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_QueryAgentResponse_Agent_messageType fastReflection_QueryAgentResponse_Agent_messageType +var _ protoreflect.MessageType = fastReflection_QueryAgentResponse_Agent_messageType{} + +type fastReflection_QueryAgentResponse_Agent_messageType struct{} + +func (x fastReflection_QueryAgentResponse_Agent_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryAgentResponse_Agent)(nil) +} +func (x fastReflection_QueryAgentResponse_Agent_messageType) New() protoreflect.Message { + return new(fastReflection_QueryAgentResponse_Agent) +} +func (x fastReflection_QueryAgentResponse_Agent_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAgentResponse_Agent +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryAgentResponse_Agent) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAgentResponse_Agent +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_QueryAgentResponse_Agent) Type() protoreflect.MessageType { + return _fastReflection_QueryAgentResponse_Agent_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryAgentResponse_Agent) New() protoreflect.Message { + return new(fastReflection_QueryAgentResponse_Agent) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryAgentResponse_Agent) Interface() protoreflect.ProtoMessage { + return (*QueryAgentResponse_Agent)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_QueryAgentResponse_Agent) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Address != "" { + value := protoreflect.ValueOfString(x.Address) + if !f(fd_QueryAgentResponse_Agent_address, value) { + return + } + } + if x.Creator != "" { + value := protoreflect.ValueOfString(x.Creator) + if !f(fd_QueryAgentResponse_Agent_creator, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_QueryAgentResponse_Agent) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryAgentResponse.Agent.address": + return x.Address != "" + case "andromeda.escrow.v1alpha1.QueryAgentResponse.Agent.creator": + return x.Creator != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentResponse.Agent")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentResponse.Agent does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryAgentResponse_Agent) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryAgentResponse.Agent.address": + x.Address = "" + case "andromeda.escrow.v1alpha1.QueryAgentResponse.Agent.creator": + x.Creator = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentResponse.Agent")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentResponse.Agent does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_QueryAgentResponse_Agent) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "andromeda.escrow.v1alpha1.QueryAgentResponse.Agent.address": + value := x.Address + return protoreflect.ValueOfString(value) + case "andromeda.escrow.v1alpha1.QueryAgentResponse.Agent.creator": + value := x.Creator + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentResponse.Agent")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentResponse.Agent does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryAgentResponse_Agent) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryAgentResponse.Agent.address": + x.Address = value.Interface().(string) + case "andromeda.escrow.v1alpha1.QueryAgentResponse.Agent.creator": + x.Creator = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentResponse.Agent")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentResponse.Agent does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryAgentResponse_Agent) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryAgentResponse.Agent.address": + panic(fmt.Errorf("field address of message andromeda.escrow.v1alpha1.QueryAgentResponse.Agent is not mutable")) + case "andromeda.escrow.v1alpha1.QueryAgentResponse.Agent.creator": + panic(fmt.Errorf("field creator of message andromeda.escrow.v1alpha1.QueryAgentResponse.Agent is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentResponse.Agent")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentResponse.Agent does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_QueryAgentResponse_Agent) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryAgentResponse.Agent.address": + return protoreflect.ValueOfString("") + case "andromeda.escrow.v1alpha1.QueryAgentResponse.Agent.creator": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentResponse.Agent")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentResponse.Agent does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_QueryAgentResponse_Agent) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in andromeda.escrow.v1alpha1.QueryAgentResponse.Agent", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_QueryAgentResponse_Agent) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryAgentResponse_Agent) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_QueryAgentResponse_Agent) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_QueryAgentResponse_Agent) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryAgentResponse_Agent) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + l = len(x.Address) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Creator) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*QueryAgentResponse_Agent) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.Creator) > 0 { + i -= len(x.Creator) + copy(dAtA[i:], x.Creator) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) + i-- + dAtA[i] = 0x12 + } + if len(x.Address) > 0 { + i -= len(x.Address) + copy(dAtA[i:], x.Address) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*QueryAgentResponse_Agent) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAgentResponse_Agent: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAgentResponse_Agent: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_QueryAgentsRequest protoreflect.MessageDescriptor + fd_QueryAgentsRequest_pagination protoreflect.FieldDescriptor +) + +func init() { + file_andromeda_escrow_v1alpha1_query_proto_init() + md_QueryAgentsRequest = File_andromeda_escrow_v1alpha1_query_proto.Messages().ByName("QueryAgentsRequest") + fd_QueryAgentsRequest_pagination = md_QueryAgentsRequest.Fields().ByName("pagination") +} + +var _ protoreflect.Message = (*fastReflection_QueryAgentsRequest)(nil) + +type fastReflection_QueryAgentsRequest QueryAgentsRequest + +func (x *QueryAgentsRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryAgentsRequest)(x) +} + +func (x *QueryAgentsRequest) slowProtoReflect() protoreflect.Message { + mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_QueryAgentsRequest_messageType fastReflection_QueryAgentsRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryAgentsRequest_messageType{} + +type fastReflection_QueryAgentsRequest_messageType struct{} + +func (x fastReflection_QueryAgentsRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryAgentsRequest)(nil) +} +func (x fastReflection_QueryAgentsRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryAgentsRequest) +} +func (x fastReflection_QueryAgentsRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAgentsRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryAgentsRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAgentsRequest +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_QueryAgentsRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryAgentsRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryAgentsRequest) New() protoreflect.Message { + return new(fastReflection_QueryAgentsRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryAgentsRequest) Interface() protoreflect.ProtoMessage { + return (*QueryAgentsRequest)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_QueryAgentsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryAgentsRequest_pagination, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_QueryAgentsRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryAgentsRequest.pagination": + return x.Pagination != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentsRequest")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentsRequest does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryAgentsRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryAgentsRequest.pagination": + x.Pagination = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentsRequest")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentsRequest does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_QueryAgentsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "andromeda.escrow.v1alpha1.QueryAgentsRequest.pagination": + value := x.Pagination + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentsRequest")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentsRequest does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryAgentsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryAgentsRequest.pagination": + x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentsRequest")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentsRequest does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryAgentsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryAgentsRequest.pagination": + if x.Pagination == nil { + x.Pagination = new(v1beta1.PageRequest) + } + return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentsRequest")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentsRequest does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_QueryAgentsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryAgentsRequest.pagination": + m := new(v1beta1.PageRequest) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentsRequest")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentsRequest does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_QueryAgentsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in andromeda.escrow.v1alpha1.QueryAgentsRequest", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_QueryAgentsRequest) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryAgentsRequest) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_QueryAgentsRequest) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_QueryAgentsRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryAgentsRequest) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.Pagination != nil { + l = options.Size(x.Pagination) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*QueryAgentsRequest) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if x.Pagination != nil { + encoded, err := options.Marshal(x.Pagination) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*QueryAgentsRequest) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAgentsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAgentsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.Pagination == nil { + x.Pagination = &v1beta1.PageRequest{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var _ protoreflect.List = (*_QueryAgentsResponse_1_list)(nil) + +type _QueryAgentsResponse_1_list struct { + list *[]*QueryAgentsResponse_Agent +} + +func (x *_QueryAgentsResponse_1_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_QueryAgentsResponse_1_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_QueryAgentsResponse_1_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*QueryAgentsResponse_Agent) + (*x.list)[i] = concreteValue +} + +func (x *_QueryAgentsResponse_1_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*QueryAgentsResponse_Agent) + *x.list = append(*x.list, concreteValue) +} + +func (x *_QueryAgentsResponse_1_list) AppendMutable() protoreflect.Value { + v := new(QueryAgentsResponse_Agent) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryAgentsResponse_1_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_QueryAgentsResponse_1_list) NewElement() protoreflect.Value { + v := new(QueryAgentsResponse_Agent) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryAgentsResponse_1_list) IsValid() bool { + return x.list != nil +} + +var ( + md_QueryAgentsResponse protoreflect.MessageDescriptor + fd_QueryAgentsResponse_agents protoreflect.FieldDescriptor + fd_QueryAgentsResponse_pagination protoreflect.FieldDescriptor +) + +func init() { + file_andromeda_escrow_v1alpha1_query_proto_init() + md_QueryAgentsResponse = File_andromeda_escrow_v1alpha1_query_proto.Messages().ByName("QueryAgentsResponse") + fd_QueryAgentsResponse_agents = md_QueryAgentsResponse.Fields().ByName("agents") + fd_QueryAgentsResponse_pagination = md_QueryAgentsResponse.Fields().ByName("pagination") +} + +var _ protoreflect.Message = (*fastReflection_QueryAgentsResponse)(nil) + +type fastReflection_QueryAgentsResponse QueryAgentsResponse + +func (x *QueryAgentsResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryAgentsResponse)(x) +} + +func (x *QueryAgentsResponse) slowProtoReflect() protoreflect.Message { + mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_QueryAgentsResponse_messageType fastReflection_QueryAgentsResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryAgentsResponse_messageType{} + +type fastReflection_QueryAgentsResponse_messageType struct{} + +func (x fastReflection_QueryAgentsResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryAgentsResponse)(nil) +} +func (x fastReflection_QueryAgentsResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryAgentsResponse) +} +func (x fastReflection_QueryAgentsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAgentsResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryAgentsResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAgentsResponse +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_QueryAgentsResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryAgentsResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryAgentsResponse) New() protoreflect.Message { + return new(fastReflection_QueryAgentsResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryAgentsResponse) Interface() protoreflect.ProtoMessage { + return (*QueryAgentsResponse)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_QueryAgentsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.Agents) != 0 { + value := protoreflect.ValueOfList(&_QueryAgentsResponse_1_list{list: &x.Agents}) + if !f(fd_QueryAgentsResponse_agents, value) { + return + } + } + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryAgentsResponse_pagination, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_QueryAgentsResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryAgentsResponse.agents": + return len(x.Agents) != 0 + case "andromeda.escrow.v1alpha1.QueryAgentsResponse.pagination": + return x.Pagination != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentsResponse")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentsResponse does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryAgentsResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryAgentsResponse.agents": + x.Agents = nil + case "andromeda.escrow.v1alpha1.QueryAgentsResponse.pagination": + x.Pagination = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentsResponse")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentsResponse does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_QueryAgentsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "andromeda.escrow.v1alpha1.QueryAgentsResponse.agents": + if len(x.Agents) == 0 { + return protoreflect.ValueOfList(&_QueryAgentsResponse_1_list{}) + } + listValue := &_QueryAgentsResponse_1_list{list: &x.Agents} + return protoreflect.ValueOfList(listValue) + case "andromeda.escrow.v1alpha1.QueryAgentsResponse.pagination": + value := x.Pagination + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentsResponse")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentsResponse does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryAgentsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryAgentsResponse.agents": + lv := value.List() + clv := lv.(*_QueryAgentsResponse_1_list) + x.Agents = *clv.list + case "andromeda.escrow.v1alpha1.QueryAgentsResponse.pagination": + x.Pagination = value.Message().Interface().(*v1beta1.PageResponse) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentsResponse")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentsResponse does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryAgentsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryAgentsResponse.agents": + if x.Agents == nil { + x.Agents = []*QueryAgentsResponse_Agent{} + } + value := &_QueryAgentsResponse_1_list{list: &x.Agents} + return protoreflect.ValueOfList(value) + case "andromeda.escrow.v1alpha1.QueryAgentsResponse.pagination": + if x.Pagination == nil { + x.Pagination = new(v1beta1.PageResponse) + } + return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentsResponse")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentsResponse does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_QueryAgentsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryAgentsResponse.agents": + list := []*QueryAgentsResponse_Agent{} + return protoreflect.ValueOfList(&_QueryAgentsResponse_1_list{list: &list}) + case "andromeda.escrow.v1alpha1.QueryAgentsResponse.pagination": + m := new(v1beta1.PageResponse) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentsResponse")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentsResponse does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_QueryAgentsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in andromeda.escrow.v1alpha1.QueryAgentsResponse", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_QueryAgentsResponse) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryAgentsResponse) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_QueryAgentsResponse) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_QueryAgentsResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryAgentsResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if len(x.Agents) > 0 { + for _, e := range x.Agents { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if x.Pagination != nil { + l = options.Size(x.Pagination) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*QueryAgentsResponse) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if x.Pagination != nil { + encoded, err := options.Marshal(x.Pagination) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x12 + } + if len(x.Agents) > 0 { + for iNdEx := len(x.Agents) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Agents[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0xa + } + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*QueryAgentsResponse) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAgentsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAgentsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Agents", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Agents = append(x.Agents, &QueryAgentsResponse_Agent{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Agents[len(x.Agents)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.Pagination == nil { + x.Pagination = &v1beta1.PageResponse{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_QueryAgentsResponse_Agent protoreflect.MessageDescriptor + fd_QueryAgentsResponse_Agent_address protoreflect.FieldDescriptor + fd_QueryAgentsResponse_Agent_creator protoreflect.FieldDescriptor +) + +func init() { + file_andromeda_escrow_v1alpha1_query_proto_init() + md_QueryAgentsResponse_Agent = File_andromeda_escrow_v1alpha1_query_proto.Messages().ByName("QueryAgentsResponse").Messages().ByName("Agent") + fd_QueryAgentsResponse_Agent_address = md_QueryAgentsResponse_Agent.Fields().ByName("address") + fd_QueryAgentsResponse_Agent_creator = md_QueryAgentsResponse_Agent.Fields().ByName("creator") +} + +var _ protoreflect.Message = (*fastReflection_QueryAgentsResponse_Agent)(nil) + +type fastReflection_QueryAgentsResponse_Agent QueryAgentsResponse_Agent + +func (x *QueryAgentsResponse_Agent) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryAgentsResponse_Agent)(x) +} + +func (x *QueryAgentsResponse_Agent) slowProtoReflect() protoreflect.Message { + mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_QueryAgentsResponse_Agent_messageType fastReflection_QueryAgentsResponse_Agent_messageType +var _ protoreflect.MessageType = fastReflection_QueryAgentsResponse_Agent_messageType{} + +type fastReflection_QueryAgentsResponse_Agent_messageType struct{} + +func (x fastReflection_QueryAgentsResponse_Agent_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryAgentsResponse_Agent)(nil) +} +func (x fastReflection_QueryAgentsResponse_Agent_messageType) New() protoreflect.Message { + return new(fastReflection_QueryAgentsResponse_Agent) +} +func (x fastReflection_QueryAgentsResponse_Agent_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAgentsResponse_Agent +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryAgentsResponse_Agent) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAgentsResponse_Agent +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_QueryAgentsResponse_Agent) Type() protoreflect.MessageType { + return _fastReflection_QueryAgentsResponse_Agent_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryAgentsResponse_Agent) New() protoreflect.Message { + return new(fastReflection_QueryAgentsResponse_Agent) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryAgentsResponse_Agent) Interface() protoreflect.ProtoMessage { + return (*QueryAgentsResponse_Agent)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_QueryAgentsResponse_Agent) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Address != "" { + value := protoreflect.ValueOfString(x.Address) + if !f(fd_QueryAgentsResponse_Agent_address, value) { + return + } + } + if x.Creator != "" { + value := protoreflect.ValueOfString(x.Creator) + if !f(fd_QueryAgentsResponse_Agent_creator, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_QueryAgentsResponse_Agent) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent.address": + return x.Address != "" + case "andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent.creator": + return x.Creator != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryAgentsResponse_Agent) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent.address": + x.Address = "" + case "andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent.creator": + x.Creator = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_QueryAgentsResponse_Agent) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent.address": + value := x.Address + return protoreflect.ValueOfString(value) + case "andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent.creator": + value := x.Creator + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryAgentsResponse_Agent) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent.address": + x.Address = value.Interface().(string) + case "andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent.creator": + x.Creator = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryAgentsResponse_Agent) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent.address": + panic(fmt.Errorf("field address of message andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent is not mutable")) + case "andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent.creator": + panic(fmt.Errorf("field creator of message andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_QueryAgentsResponse_Agent) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent.address": + return protoreflect.ValueOfString("") + case "andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent.creator": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_QueryAgentsResponse_Agent) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_QueryAgentsResponse_Agent) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryAgentsResponse_Agent) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_QueryAgentsResponse_Agent) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_QueryAgentsResponse_Agent) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryAgentsResponse_Agent) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + l = len(x.Address) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Creator) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*QueryAgentsResponse_Agent) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.Creator) > 0 { + i -= len(x.Creator) + copy(dAtA[i:], x.Creator) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) + i-- + dAtA[i] = 0x12 + } + if len(x.Address) > 0 { + i -= len(x.Address) + copy(dAtA[i:], x.Address) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*QueryAgentsResponse_Agent) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAgentsResponse_Agent: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAgentsResponse_Agent: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_QueryProposalRequest protoreflect.MessageDescriptor + fd_QueryProposalRequest_id protoreflect.FieldDescriptor +) + +func init() { + file_andromeda_escrow_v1alpha1_query_proto_init() + md_QueryProposalRequest = File_andromeda_escrow_v1alpha1_query_proto.Messages().ByName("QueryProposalRequest") + fd_QueryProposalRequest_id = md_QueryProposalRequest.Fields().ByName("id") +} + +var _ protoreflect.Message = (*fastReflection_QueryProposalRequest)(nil) + +type fastReflection_QueryProposalRequest QueryProposalRequest + +func (x *QueryProposalRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryProposalRequest)(x) +} + +func (x *QueryProposalRequest) slowProtoReflect() protoreflect.Message { + mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_QueryProposalRequest_messageType fastReflection_QueryProposalRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryProposalRequest_messageType{} + +type fastReflection_QueryProposalRequest_messageType struct{} + +func (x fastReflection_QueryProposalRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryProposalRequest)(nil) +} +func (x fastReflection_QueryProposalRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryProposalRequest) +} +func (x fastReflection_QueryProposalRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryProposalRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryProposalRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryProposalRequest +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_QueryProposalRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryProposalRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryProposalRequest) New() protoreflect.Message { + return new(fastReflection_QueryProposalRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryProposalRequest) Interface() protoreflect.ProtoMessage { + return (*QueryProposalRequest)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_QueryProposalRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Id != uint64(0) { + value := protoreflect.ValueOfUint64(x.Id) + if !f(fd_QueryProposalRequest_id, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_QueryProposalRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryProposalRequest.id": + return x.Id != uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalRequest")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalRequest does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryProposalRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryProposalRequest.id": + x.Id = uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalRequest")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalRequest does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_QueryProposalRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "andromeda.escrow.v1alpha1.QueryProposalRequest.id": + value := x.Id + return protoreflect.ValueOfUint64(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalRequest")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalRequest does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryProposalRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryProposalRequest.id": + x.Id = value.Uint() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalRequest")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalRequest does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryProposalRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryProposalRequest.id": + panic(fmt.Errorf("field id of message andromeda.escrow.v1alpha1.QueryProposalRequest is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalRequest")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalRequest does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_QueryProposalRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryProposalRequest.id": + return protoreflect.ValueOfUint64(uint64(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalRequest")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalRequest does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_QueryProposalRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in andromeda.escrow.v1alpha1.QueryProposalRequest", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_QueryProposalRequest) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryProposalRequest) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_QueryProposalRequest) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_QueryProposalRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryProposalRequest) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.Id != 0 { + n += 1 + runtime.Sov(uint64(x.Id)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*QueryProposalRequest) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if x.Id != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Id)) + i-- + dAtA[i] = 0x8 + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*QueryProposalRequest) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryProposalRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryProposalRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + x.Id = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.Id |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_QueryProposalResponse protoreflect.MessageDescriptor + fd_QueryProposalResponse_proposal protoreflect.FieldDescriptor +) + +func init() { + file_andromeda_escrow_v1alpha1_query_proto_init() + md_QueryProposalResponse = File_andromeda_escrow_v1alpha1_query_proto.Messages().ByName("QueryProposalResponse") + fd_QueryProposalResponse_proposal = md_QueryProposalResponse.Fields().ByName("proposal") +} + +var _ protoreflect.Message = (*fastReflection_QueryProposalResponse)(nil) + +type fastReflection_QueryProposalResponse QueryProposalResponse + +func (x *QueryProposalResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryProposalResponse)(x) +} + +func (x *QueryProposalResponse) slowProtoReflect() protoreflect.Message { + mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_QueryProposalResponse_messageType fastReflection_QueryProposalResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryProposalResponse_messageType{} + +type fastReflection_QueryProposalResponse_messageType struct{} + +func (x fastReflection_QueryProposalResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryProposalResponse)(nil) +} +func (x fastReflection_QueryProposalResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryProposalResponse) +} +func (x fastReflection_QueryProposalResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryProposalResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryProposalResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryProposalResponse +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_QueryProposalResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryProposalResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryProposalResponse) New() protoreflect.Message { + return new(fastReflection_QueryProposalResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryProposalResponse) Interface() protoreflect.ProtoMessage { + return (*QueryProposalResponse)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_QueryProposalResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Proposal != nil { + value := protoreflect.ValueOfMessage(x.Proposal.ProtoReflect()) + if !f(fd_QueryProposalResponse_proposal, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_QueryProposalResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryProposalResponse.proposal": + return x.Proposal != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalResponse")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalResponse does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryProposalResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryProposalResponse.proposal": + x.Proposal = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalResponse")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalResponse does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_QueryProposalResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "andromeda.escrow.v1alpha1.QueryProposalResponse.proposal": + value := x.Proposal + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalResponse")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalResponse does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryProposalResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryProposalResponse.proposal": + x.Proposal = value.Message().Interface().(*QueryProposalResponse_Proposal) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalResponse")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalResponse does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryProposalResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryProposalResponse.proposal": + if x.Proposal == nil { + x.Proposal = new(QueryProposalResponse_Proposal) + } + return protoreflect.ValueOfMessage(x.Proposal.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalResponse")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalResponse does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_QueryProposalResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryProposalResponse.proposal": + m := new(QueryProposalResponse_Proposal) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalResponse")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalResponse does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_QueryProposalResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in andromeda.escrow.v1alpha1.QueryProposalResponse", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_QueryProposalResponse) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryProposalResponse) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_QueryProposalResponse) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_QueryProposalResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryProposalResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.Proposal != nil { + l = options.Size(x.Proposal) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*QueryProposalResponse) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if x.Proposal != nil { + encoded, err := options.Marshal(x.Proposal) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*QueryProposalResponse) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryProposalResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryProposalResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Proposal", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.Proposal == nil { + x.Proposal = &QueryProposalResponse_Proposal{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Proposal); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var _ protoreflect.List = (*_QueryProposalResponse_Proposal_4_list)(nil) + +type _QueryProposalResponse_Proposal_4_list struct { + list *[]*anypb.Any +} + +func (x *_QueryProposalResponse_Proposal_4_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_QueryProposalResponse_Proposal_4_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_QueryProposalResponse_Proposal_4_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*anypb.Any) + (*x.list)[i] = concreteValue +} + +func (x *_QueryProposalResponse_Proposal_4_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*anypb.Any) + *x.list = append(*x.list, concreteValue) +} + +func (x *_QueryProposalResponse_Proposal_4_list) AppendMutable() protoreflect.Value { + v := new(anypb.Any) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryProposalResponse_Proposal_4_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_QueryProposalResponse_Proposal_4_list) NewElement() protoreflect.Value { + v := new(anypb.Any) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryProposalResponse_Proposal_4_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_QueryProposalResponse_Proposal_5_list)(nil) + +type _QueryProposalResponse_Proposal_5_list struct { + list *[]*anypb.Any +} + +func (x *_QueryProposalResponse_Proposal_5_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_QueryProposalResponse_Proposal_5_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_QueryProposalResponse_Proposal_5_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*anypb.Any) + (*x.list)[i] = concreteValue +} + +func (x *_QueryProposalResponse_Proposal_5_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*anypb.Any) + *x.list = append(*x.list, concreteValue) +} + +func (x *_QueryProposalResponse_Proposal_5_list) AppendMutable() protoreflect.Value { + v := new(anypb.Any) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryProposalResponse_Proposal_5_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_QueryProposalResponse_Proposal_5_list) NewElement() protoreflect.Value { + v := new(anypb.Any) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryProposalResponse_Proposal_5_list) IsValid() bool { + return x.list != nil +} + +var ( + md_QueryProposalResponse_Proposal protoreflect.MessageDescriptor + fd_QueryProposalResponse_Proposal_id protoreflect.FieldDescriptor + fd_QueryProposalResponse_Proposal_proposer protoreflect.FieldDescriptor + fd_QueryProposalResponse_Proposal_agent protoreflect.FieldDescriptor + fd_QueryProposalResponse_Proposal_pre_actions protoreflect.FieldDescriptor + fd_QueryProposalResponse_Proposal_post_actions protoreflect.FieldDescriptor +) + +func init() { + file_andromeda_escrow_v1alpha1_query_proto_init() + md_QueryProposalResponse_Proposal = File_andromeda_escrow_v1alpha1_query_proto.Messages().ByName("QueryProposalResponse").Messages().ByName("Proposal") + fd_QueryProposalResponse_Proposal_id = md_QueryProposalResponse_Proposal.Fields().ByName("id") + fd_QueryProposalResponse_Proposal_proposer = md_QueryProposalResponse_Proposal.Fields().ByName("proposer") + fd_QueryProposalResponse_Proposal_agent = md_QueryProposalResponse_Proposal.Fields().ByName("agent") + fd_QueryProposalResponse_Proposal_pre_actions = md_QueryProposalResponse_Proposal.Fields().ByName("pre_actions") + fd_QueryProposalResponse_Proposal_post_actions = md_QueryProposalResponse_Proposal.Fields().ByName("post_actions") +} + +var _ protoreflect.Message = (*fastReflection_QueryProposalResponse_Proposal)(nil) + +type fastReflection_QueryProposalResponse_Proposal QueryProposalResponse_Proposal + +func (x *QueryProposalResponse_Proposal) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryProposalResponse_Proposal)(x) +} + +func (x *QueryProposalResponse_Proposal) slowProtoReflect() protoreflect.Message { + mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_QueryProposalResponse_Proposal_messageType fastReflection_QueryProposalResponse_Proposal_messageType +var _ protoreflect.MessageType = fastReflection_QueryProposalResponse_Proposal_messageType{} + +type fastReflection_QueryProposalResponse_Proposal_messageType struct{} + +func (x fastReflection_QueryProposalResponse_Proposal_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryProposalResponse_Proposal)(nil) +} +func (x fastReflection_QueryProposalResponse_Proposal_messageType) New() protoreflect.Message { + return new(fastReflection_QueryProposalResponse_Proposal) +} +func (x fastReflection_QueryProposalResponse_Proposal_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryProposalResponse_Proposal +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryProposalResponse_Proposal) Descriptor() protoreflect.MessageDescriptor { + return md_QueryProposalResponse_Proposal +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_QueryProposalResponse_Proposal) Type() protoreflect.MessageType { + return _fastReflection_QueryProposalResponse_Proposal_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryProposalResponse_Proposal) New() protoreflect.Message { + return new(fastReflection_QueryProposalResponse_Proposal) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryProposalResponse_Proposal) Interface() protoreflect.ProtoMessage { + return (*QueryProposalResponse_Proposal)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_QueryProposalResponse_Proposal) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Id != uint64(0) { + value := protoreflect.ValueOfUint64(x.Id) + if !f(fd_QueryProposalResponse_Proposal_id, value) { + return + } + } + if x.Proposer != "" { + value := protoreflect.ValueOfString(x.Proposer) + if !f(fd_QueryProposalResponse_Proposal_proposer, value) { + return + } + } + if x.Agent != "" { + value := protoreflect.ValueOfString(x.Agent) + if !f(fd_QueryProposalResponse_Proposal_agent, value) { + return + } + } + if len(x.PreActions) != 0 { + value := protoreflect.ValueOfList(&_QueryProposalResponse_Proposal_4_list{list: &x.PreActions}) + if !f(fd_QueryProposalResponse_Proposal_pre_actions, value) { + return + } + } + if len(x.PostActions) != 0 { + value := protoreflect.ValueOfList(&_QueryProposalResponse_Proposal_5_list{list: &x.PostActions}) + if !f(fd_QueryProposalResponse_Proposal_post_actions, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_QueryProposalResponse_Proposal) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.id": + return x.Id != uint64(0) + case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.proposer": + return x.Proposer != "" + case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.agent": + return x.Agent != "" + case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.pre_actions": + return len(x.PreActions) != 0 + case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.post_actions": + return len(x.PostActions) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryProposalResponse_Proposal) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.id": + x.Id = uint64(0) + case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.proposer": + x.Proposer = "" + case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.agent": + x.Agent = "" + case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.pre_actions": + x.PreActions = nil + case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.post_actions": + x.PostActions = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_QueryProposalResponse_Proposal) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.id": + value := x.Id + return protoreflect.ValueOfUint64(value) + case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.proposer": + value := x.Proposer + return protoreflect.ValueOfString(value) + case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.agent": + value := x.Agent + return protoreflect.ValueOfString(value) + case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.pre_actions": + if len(x.PreActions) == 0 { + return protoreflect.ValueOfList(&_QueryProposalResponse_Proposal_4_list{}) + } + listValue := &_QueryProposalResponse_Proposal_4_list{list: &x.PreActions} + return protoreflect.ValueOfList(listValue) + case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.post_actions": + if len(x.PostActions) == 0 { + return protoreflect.ValueOfList(&_QueryProposalResponse_Proposal_5_list{}) + } + listValue := &_QueryProposalResponse_Proposal_5_list{list: &x.PostActions} + return protoreflect.ValueOfList(listValue) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryProposalResponse_Proposal) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.id": + x.Id = value.Uint() + case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.proposer": + x.Proposer = value.Interface().(string) + case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.agent": + x.Agent = value.Interface().(string) + case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.pre_actions": + lv := value.List() + clv := lv.(*_QueryProposalResponse_Proposal_4_list) + x.PreActions = *clv.list + case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.post_actions": + lv := value.List() + clv := lv.(*_QueryProposalResponse_Proposal_5_list) + x.PostActions = *clv.list + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryProposalResponse_Proposal) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.pre_actions": + if x.PreActions == nil { + x.PreActions = []*anypb.Any{} + } + value := &_QueryProposalResponse_Proposal_4_list{list: &x.PreActions} + return protoreflect.ValueOfList(value) + case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.post_actions": + if x.PostActions == nil { + x.PostActions = []*anypb.Any{} + } + value := &_QueryProposalResponse_Proposal_5_list{list: &x.PostActions} + return protoreflect.ValueOfList(value) + case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.id": + panic(fmt.Errorf("field id of message andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal is not mutable")) + case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.proposer": + panic(fmt.Errorf("field proposer of message andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal is not mutable")) + case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.agent": + panic(fmt.Errorf("field agent of message andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_QueryProposalResponse_Proposal) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.id": + return protoreflect.ValueOfUint64(uint64(0)) + case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.proposer": + return protoreflect.ValueOfString("") + case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.agent": + return protoreflect.ValueOfString("") + case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.pre_actions": + list := []*anypb.Any{} + return protoreflect.ValueOfList(&_QueryProposalResponse_Proposal_4_list{list: &list}) + case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.post_actions": + list := []*anypb.Any{} + return protoreflect.ValueOfList(&_QueryProposalResponse_Proposal_5_list{list: &list}) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_QueryProposalResponse_Proposal) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_QueryProposalResponse_Proposal) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryProposalResponse_Proposal) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_QueryProposalResponse_Proposal) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_QueryProposalResponse_Proposal) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryProposalResponse_Proposal) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.Id != 0 { + n += 1 + runtime.Sov(uint64(x.Id)) + } + l = len(x.Proposer) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Agent) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if len(x.PreActions) > 0 { + for _, e := range x.PreActions { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if len(x.PostActions) > 0 { + for _, e := range x.PostActions { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*QueryProposalResponse_Proposal) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.PostActions) > 0 { + for iNdEx := len(x.PostActions) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.PostActions[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x2a + } + } + if len(x.PreActions) > 0 { + for iNdEx := len(x.PreActions) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.PreActions[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x22 + } + } + if len(x.Agent) > 0 { + i -= len(x.Agent) + copy(dAtA[i:], x.Agent) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Agent))) + i-- + dAtA[i] = 0x1a + } + if len(x.Proposer) > 0 { + i -= len(x.Proposer) + copy(dAtA[i:], x.Proposer) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Proposer))) + i-- + dAtA[i] = 0x12 + } + if x.Id != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Id)) + i-- + dAtA[i] = 0x8 + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*QueryProposalResponse_Proposal) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryProposalResponse_Proposal: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryProposalResponse_Proposal: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + x.Id = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.Id |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Proposer", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Proposer = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Agent", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Agent = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PreActions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.PreActions = append(x.PreActions, &anypb.Any{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.PreActions[len(x.PreActions)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PostActions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.PostActions = append(x.PostActions, &anypb.Any{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.PostActions[len(x.PostActions)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_QueryProposalsRequest protoreflect.MessageDescriptor + fd_QueryProposalsRequest_pagination protoreflect.FieldDescriptor +) + +func init() { + file_andromeda_escrow_v1alpha1_query_proto_init() + md_QueryProposalsRequest = File_andromeda_escrow_v1alpha1_query_proto.Messages().ByName("QueryProposalsRequest") + fd_QueryProposalsRequest_pagination = md_QueryProposalsRequest.Fields().ByName("pagination") +} + +var _ protoreflect.Message = (*fastReflection_QueryProposalsRequest)(nil) + +type fastReflection_QueryProposalsRequest QueryProposalsRequest + +func (x *QueryProposalsRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryProposalsRequest)(x) +} + +func (x *QueryProposalsRequest) slowProtoReflect() protoreflect.Message { + mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_QueryProposalsRequest_messageType fastReflection_QueryProposalsRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryProposalsRequest_messageType{} + +type fastReflection_QueryProposalsRequest_messageType struct{} + +func (x fastReflection_QueryProposalsRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryProposalsRequest)(nil) +} +func (x fastReflection_QueryProposalsRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryProposalsRequest) +} +func (x fastReflection_QueryProposalsRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryProposalsRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryProposalsRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryProposalsRequest +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_QueryProposalsRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryProposalsRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryProposalsRequest) New() protoreflect.Message { + return new(fastReflection_QueryProposalsRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryProposalsRequest) Interface() protoreflect.ProtoMessage { + return (*QueryProposalsRequest)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_QueryProposalsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryProposalsRequest_pagination, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_QueryProposalsRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryProposalsRequest.pagination": + return x.Pagination != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalsRequest")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalsRequest does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryProposalsRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryProposalsRequest.pagination": + x.Pagination = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalsRequest")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalsRequest does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_QueryProposalsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "andromeda.escrow.v1alpha1.QueryProposalsRequest.pagination": + value := x.Pagination + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalsRequest")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalsRequest does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryProposalsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryProposalsRequest.pagination": + x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalsRequest")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalsRequest does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryProposalsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryProposalsRequest.pagination": + if x.Pagination == nil { + x.Pagination = new(v1beta1.PageRequest) + } + return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalsRequest")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalsRequest does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_QueryProposalsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryProposalsRequest.pagination": + m := new(v1beta1.PageRequest) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalsRequest")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalsRequest does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_QueryProposalsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in andromeda.escrow.v1alpha1.QueryProposalsRequest", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_QueryProposalsRequest) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryProposalsRequest) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_QueryProposalsRequest) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_QueryProposalsRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryProposalsRequest) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.Pagination != nil { + l = options.Size(x.Pagination) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*QueryProposalsRequest) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if x.Pagination != nil { + encoded, err := options.Marshal(x.Pagination) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x12 + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*QueryProposalsRequest) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryProposalsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryProposalsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.Pagination == nil { + x.Pagination = &v1beta1.PageRequest{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var _ protoreflect.List = (*_QueryProposalsResponse_1_list)(nil) + +type _QueryProposalsResponse_1_list struct { + list *[]*QueryProposalsResponse_Proposal +} + +func (x *_QueryProposalsResponse_1_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_QueryProposalsResponse_1_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_QueryProposalsResponse_1_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*QueryProposalsResponse_Proposal) + (*x.list)[i] = concreteValue +} + +func (x *_QueryProposalsResponse_1_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*QueryProposalsResponse_Proposal) + *x.list = append(*x.list, concreteValue) +} + +func (x *_QueryProposalsResponse_1_list) AppendMutable() protoreflect.Value { + v := new(QueryProposalsResponse_Proposal) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryProposalsResponse_1_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_QueryProposalsResponse_1_list) NewElement() protoreflect.Value { + v := new(QueryProposalsResponse_Proposal) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryProposalsResponse_1_list) IsValid() bool { + return x.list != nil +} + +var ( + md_QueryProposalsResponse protoreflect.MessageDescriptor + fd_QueryProposalsResponse_proposals protoreflect.FieldDescriptor + fd_QueryProposalsResponse_pagination protoreflect.FieldDescriptor +) + +func init() { + file_andromeda_escrow_v1alpha1_query_proto_init() + md_QueryProposalsResponse = File_andromeda_escrow_v1alpha1_query_proto.Messages().ByName("QueryProposalsResponse") + fd_QueryProposalsResponse_proposals = md_QueryProposalsResponse.Fields().ByName("proposals") + fd_QueryProposalsResponse_pagination = md_QueryProposalsResponse.Fields().ByName("pagination") +} + +var _ protoreflect.Message = (*fastReflection_QueryProposalsResponse)(nil) + +type fastReflection_QueryProposalsResponse QueryProposalsResponse + +func (x *QueryProposalsResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryProposalsResponse)(x) +} + +func (x *QueryProposalsResponse) slowProtoReflect() protoreflect.Message { + mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_QueryProposalsResponse_messageType fastReflection_QueryProposalsResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryProposalsResponse_messageType{} + +type fastReflection_QueryProposalsResponse_messageType struct{} + +func (x fastReflection_QueryProposalsResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryProposalsResponse)(nil) +} +func (x fastReflection_QueryProposalsResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryProposalsResponse) +} +func (x fastReflection_QueryProposalsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryProposalsResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryProposalsResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryProposalsResponse +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_QueryProposalsResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryProposalsResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryProposalsResponse) New() protoreflect.Message { + return new(fastReflection_QueryProposalsResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryProposalsResponse) Interface() protoreflect.ProtoMessage { + return (*QueryProposalsResponse)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_QueryProposalsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.Proposals) != 0 { + value := protoreflect.ValueOfList(&_QueryProposalsResponse_1_list{list: &x.Proposals}) + if !f(fd_QueryProposalsResponse_proposals, value) { + return + } + } + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryProposalsResponse_pagination, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_QueryProposalsResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryProposalsResponse.proposals": + return len(x.Proposals) != 0 + case "andromeda.escrow.v1alpha1.QueryProposalsResponse.pagination": + return x.Pagination != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalsResponse")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalsResponse does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryProposalsResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryProposalsResponse.proposals": + x.Proposals = nil + case "andromeda.escrow.v1alpha1.QueryProposalsResponse.pagination": + x.Pagination = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalsResponse")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalsResponse does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_QueryProposalsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "andromeda.escrow.v1alpha1.QueryProposalsResponse.proposals": + if len(x.Proposals) == 0 { + return protoreflect.ValueOfList(&_QueryProposalsResponse_1_list{}) + } + listValue := &_QueryProposalsResponse_1_list{list: &x.Proposals} + return protoreflect.ValueOfList(listValue) + case "andromeda.escrow.v1alpha1.QueryProposalsResponse.pagination": + value := x.Pagination + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalsResponse")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalsResponse does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryProposalsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryProposalsResponse.proposals": + lv := value.List() + clv := lv.(*_QueryProposalsResponse_1_list) + x.Proposals = *clv.list + case "andromeda.escrow.v1alpha1.QueryProposalsResponse.pagination": + x.Pagination = value.Message().Interface().(*v1beta1.PageResponse) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalsResponse")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalsResponse does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryProposalsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryProposalsResponse.proposals": + if x.Proposals == nil { + x.Proposals = []*QueryProposalsResponse_Proposal{} + } + value := &_QueryProposalsResponse_1_list{list: &x.Proposals} + return protoreflect.ValueOfList(value) + case "andromeda.escrow.v1alpha1.QueryProposalsResponse.pagination": + if x.Pagination == nil { + x.Pagination = new(v1beta1.PageResponse) + } + return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalsResponse")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalsResponse does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_QueryProposalsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryProposalsResponse.proposals": + list := []*QueryProposalsResponse_Proposal{} + return protoreflect.ValueOfList(&_QueryProposalsResponse_1_list{list: &list}) + case "andromeda.escrow.v1alpha1.QueryProposalsResponse.pagination": + m := new(v1beta1.PageResponse) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalsResponse")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalsResponse does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_QueryProposalsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in andromeda.escrow.v1alpha1.QueryProposalsResponse", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_QueryProposalsResponse) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryProposalsResponse) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_QueryProposalsResponse) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_QueryProposalsResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryProposalsResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if len(x.Proposals) > 0 { + for _, e := range x.Proposals { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if x.Pagination != nil { + l = options.Size(x.Pagination) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*QueryProposalsResponse) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if x.Pagination != nil { + encoded, err := options.Marshal(x.Pagination) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x12 + } + if len(x.Proposals) > 0 { + for iNdEx := len(x.Proposals) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Proposals[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0xa + } + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*QueryProposalsResponse) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryProposalsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryProposalsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Proposals", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Proposals = append(x.Proposals, &QueryProposalsResponse_Proposal{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Proposals[len(x.Proposals)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.Pagination == nil { + x.Pagination = &v1beta1.PageResponse{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var _ protoreflect.List = (*_QueryProposalsResponse_Proposal_4_list)(nil) + +type _QueryProposalsResponse_Proposal_4_list struct { + list *[]*anypb.Any +} + +func (x *_QueryProposalsResponse_Proposal_4_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_QueryProposalsResponse_Proposal_4_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_QueryProposalsResponse_Proposal_4_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*anypb.Any) + (*x.list)[i] = concreteValue +} + +func (x *_QueryProposalsResponse_Proposal_4_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*anypb.Any) + *x.list = append(*x.list, concreteValue) +} + +func (x *_QueryProposalsResponse_Proposal_4_list) AppendMutable() protoreflect.Value { + v := new(anypb.Any) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryProposalsResponse_Proposal_4_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_QueryProposalsResponse_Proposal_4_list) NewElement() protoreflect.Value { + v := new(anypb.Any) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryProposalsResponse_Proposal_4_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_QueryProposalsResponse_Proposal_5_list)(nil) + +type _QueryProposalsResponse_Proposal_5_list struct { + list *[]*anypb.Any +} + +func (x *_QueryProposalsResponse_Proposal_5_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_QueryProposalsResponse_Proposal_5_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_QueryProposalsResponse_Proposal_5_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*anypb.Any) + (*x.list)[i] = concreteValue +} + +func (x *_QueryProposalsResponse_Proposal_5_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*anypb.Any) + *x.list = append(*x.list, concreteValue) +} + +func (x *_QueryProposalsResponse_Proposal_5_list) AppendMutable() protoreflect.Value { + v := new(anypb.Any) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryProposalsResponse_Proposal_5_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_QueryProposalsResponse_Proposal_5_list) NewElement() protoreflect.Value { + v := new(anypb.Any) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryProposalsResponse_Proposal_5_list) IsValid() bool { + return x.list != nil +} + +var ( + md_QueryProposalsResponse_Proposal protoreflect.MessageDescriptor + fd_QueryProposalsResponse_Proposal_id protoreflect.FieldDescriptor + fd_QueryProposalsResponse_Proposal_proposer protoreflect.FieldDescriptor + fd_QueryProposalsResponse_Proposal_agent protoreflect.FieldDescriptor + fd_QueryProposalsResponse_Proposal_pre_actions protoreflect.FieldDescriptor + fd_QueryProposalsResponse_Proposal_post_actions protoreflect.FieldDescriptor +) + +func init() { + file_andromeda_escrow_v1alpha1_query_proto_init() + md_QueryProposalsResponse_Proposal = File_andromeda_escrow_v1alpha1_query_proto.Messages().ByName("QueryProposalsResponse").Messages().ByName("Proposal") + fd_QueryProposalsResponse_Proposal_id = md_QueryProposalsResponse_Proposal.Fields().ByName("id") + fd_QueryProposalsResponse_Proposal_proposer = md_QueryProposalsResponse_Proposal.Fields().ByName("proposer") + fd_QueryProposalsResponse_Proposal_agent = md_QueryProposalsResponse_Proposal.Fields().ByName("agent") + fd_QueryProposalsResponse_Proposal_pre_actions = md_QueryProposalsResponse_Proposal.Fields().ByName("pre_actions") + fd_QueryProposalsResponse_Proposal_post_actions = md_QueryProposalsResponse_Proposal.Fields().ByName("post_actions") +} + +var _ protoreflect.Message = (*fastReflection_QueryProposalsResponse_Proposal)(nil) + +type fastReflection_QueryProposalsResponse_Proposal QueryProposalsResponse_Proposal + +func (x *QueryProposalsResponse_Proposal) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryProposalsResponse_Proposal)(x) +} + +func (x *QueryProposalsResponse_Proposal) slowProtoReflect() protoreflect.Message { + mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[14] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_QueryProposalsResponse_Proposal_messageType fastReflection_QueryProposalsResponse_Proposal_messageType +var _ protoreflect.MessageType = fastReflection_QueryProposalsResponse_Proposal_messageType{} + +type fastReflection_QueryProposalsResponse_Proposal_messageType struct{} + +func (x fastReflection_QueryProposalsResponse_Proposal_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryProposalsResponse_Proposal)(nil) +} +func (x fastReflection_QueryProposalsResponse_Proposal_messageType) New() protoreflect.Message { + return new(fastReflection_QueryProposalsResponse_Proposal) +} +func (x fastReflection_QueryProposalsResponse_Proposal_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryProposalsResponse_Proposal +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryProposalsResponse_Proposal) Descriptor() protoreflect.MessageDescriptor { + return md_QueryProposalsResponse_Proposal +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_QueryProposalsResponse_Proposal) Type() protoreflect.MessageType { + return _fastReflection_QueryProposalsResponse_Proposal_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryProposalsResponse_Proposal) New() protoreflect.Message { + return new(fastReflection_QueryProposalsResponse_Proposal) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryProposalsResponse_Proposal) Interface() protoreflect.ProtoMessage { + return (*QueryProposalsResponse_Proposal)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_QueryProposalsResponse_Proposal) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Id != uint64(0) { + value := protoreflect.ValueOfUint64(x.Id) + if !f(fd_QueryProposalsResponse_Proposal_id, value) { + return + } + } + if x.Proposer != "" { + value := protoreflect.ValueOfString(x.Proposer) + if !f(fd_QueryProposalsResponse_Proposal_proposer, value) { + return + } + } + if x.Agent != "" { + value := protoreflect.ValueOfString(x.Agent) + if !f(fd_QueryProposalsResponse_Proposal_agent, value) { + return + } + } + if len(x.PreActions) != 0 { + value := protoreflect.ValueOfList(&_QueryProposalsResponse_Proposal_4_list{list: &x.PreActions}) + if !f(fd_QueryProposalsResponse_Proposal_pre_actions, value) { + return + } + } + if len(x.PostActions) != 0 { + value := protoreflect.ValueOfList(&_QueryProposalsResponse_Proposal_5_list{list: &x.PostActions}) + if !f(fd_QueryProposalsResponse_Proposal_post_actions, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_QueryProposalsResponse_Proposal) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.id": + return x.Id != uint64(0) + case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.proposer": + return x.Proposer != "" + case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.agent": + return x.Agent != "" + case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.pre_actions": + return len(x.PreActions) != 0 + case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.post_actions": + return len(x.PostActions) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryProposalsResponse_Proposal) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.id": + x.Id = uint64(0) + case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.proposer": + x.Proposer = "" + case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.agent": + x.Agent = "" + case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.pre_actions": + x.PreActions = nil + case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.post_actions": + x.PostActions = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_QueryProposalsResponse_Proposal) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.id": + value := x.Id + return protoreflect.ValueOfUint64(value) + case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.proposer": + value := x.Proposer + return protoreflect.ValueOfString(value) + case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.agent": + value := x.Agent + return protoreflect.ValueOfString(value) + case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.pre_actions": + if len(x.PreActions) == 0 { + return protoreflect.ValueOfList(&_QueryProposalsResponse_Proposal_4_list{}) + } + listValue := &_QueryProposalsResponse_Proposal_4_list{list: &x.PreActions} + return protoreflect.ValueOfList(listValue) + case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.post_actions": + if len(x.PostActions) == 0 { + return protoreflect.ValueOfList(&_QueryProposalsResponse_Proposal_5_list{}) + } + listValue := &_QueryProposalsResponse_Proposal_5_list{list: &x.PostActions} + return protoreflect.ValueOfList(listValue) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryProposalsResponse_Proposal) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.id": + x.Id = value.Uint() + case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.proposer": + x.Proposer = value.Interface().(string) + case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.agent": + x.Agent = value.Interface().(string) + case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.pre_actions": + lv := value.List() + clv := lv.(*_QueryProposalsResponse_Proposal_4_list) + x.PreActions = *clv.list + case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.post_actions": + lv := value.List() + clv := lv.(*_QueryProposalsResponse_Proposal_5_list) + x.PostActions = *clv.list + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryProposalsResponse_Proposal) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.pre_actions": + if x.PreActions == nil { + x.PreActions = []*anypb.Any{} + } + value := &_QueryProposalsResponse_Proposal_4_list{list: &x.PreActions} + return protoreflect.ValueOfList(value) + case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.post_actions": + if x.PostActions == nil { + x.PostActions = []*anypb.Any{} + } + value := &_QueryProposalsResponse_Proposal_5_list{list: &x.PostActions} + return protoreflect.ValueOfList(value) + case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.id": + panic(fmt.Errorf("field id of message andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal is not mutable")) + case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.proposer": + panic(fmt.Errorf("field proposer of message andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal is not mutable")) + case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.agent": + panic(fmt.Errorf("field agent of message andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_QueryProposalsResponse_Proposal) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.id": + return protoreflect.ValueOfUint64(uint64(0)) + case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.proposer": + return protoreflect.ValueOfString("") + case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.agent": + return protoreflect.ValueOfString("") + case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.pre_actions": + list := []*anypb.Any{} + return protoreflect.ValueOfList(&_QueryProposalsResponse_Proposal_4_list{list: &list}) + case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.post_actions": + list := []*anypb.Any{} + return protoreflect.ValueOfList(&_QueryProposalsResponse_Proposal_5_list{list: &list}) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_QueryProposalsResponse_Proposal) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_QueryProposalsResponse_Proposal) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryProposalsResponse_Proposal) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_QueryProposalsResponse_Proposal) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_QueryProposalsResponse_Proposal) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryProposalsResponse_Proposal) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.Id != 0 { + n += 1 + runtime.Sov(uint64(x.Id)) + } + l = len(x.Proposer) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Agent) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if len(x.PreActions) > 0 { + for _, e := range x.PreActions { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if len(x.PostActions) > 0 { + for _, e := range x.PostActions { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*QueryProposalsResponse_Proposal) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.PostActions) > 0 { + for iNdEx := len(x.PostActions) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.PostActions[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x2a + } + } + if len(x.PreActions) > 0 { + for iNdEx := len(x.PreActions) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.PreActions[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x22 + } + } + if len(x.Agent) > 0 { + i -= len(x.Agent) + copy(dAtA[i:], x.Agent) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Agent))) + i-- + dAtA[i] = 0x1a + } + if len(x.Proposer) > 0 { + i -= len(x.Proposer) + copy(dAtA[i:], x.Proposer) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Proposer))) + i-- + dAtA[i] = 0x12 + } + if x.Id != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Id)) + i-- + dAtA[i] = 0x8 + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*QueryProposalsResponse_Proposal) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryProposalsResponse_Proposal: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryProposalsResponse_Proposal: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + x.Id = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.Id |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Proposer", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Proposer = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Agent", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Agent = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PreActions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.PreActions = append(x.PreActions, &anypb.Any{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.PreActions[len(x.PreActions)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PostActions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.PostActions = append(x.PostActions, &anypb.Any{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.PostActions[len(x.PostActions)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc (unknown) +// source: andromeda/escrow/v1alpha1/query.proto + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// QueryParamsRequest is the request type for the Query/Params RPC method. +type QueryParamsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *QueryParamsRequest) Reset() { + *x = QueryParamsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryParamsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryParamsRequest) ProtoMessage() {} + +// Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead. +func (*QueryParamsRequest) Descriptor() ([]byte, []int) { + return file_andromeda_escrow_v1alpha1_query_proto_rawDescGZIP(), []int{0} +} + +// QueryParamsResponse is the response type for the Query/Params RPC method. +type QueryParamsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // the parameters of the module + Params *QueryParamsResponse_Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` +} + +func (x *QueryParamsResponse) Reset() { + *x = QueryParamsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryParamsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryParamsResponse) ProtoMessage() {} + +// Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead. +func (*QueryParamsResponse) Descriptor() ([]byte, []int) { + return file_andromeda_escrow_v1alpha1_query_proto_rawDescGZIP(), []int{1} +} + +func (x *QueryParamsResponse) GetParams() *QueryParamsResponse_Params { + if x != nil { + return x.Params + } + return nil +} + +// QueryAgentRequest is the request type for the Query/Agent RPC method. +type QueryAgentRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // the address of an agent + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` +} + +func (x *QueryAgentRequest) Reset() { + *x = QueryAgentRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryAgentRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryAgentRequest) ProtoMessage() {} + +// Deprecated: Use QueryAgentRequest.ProtoReflect.Descriptor instead. +func (*QueryAgentRequest) Descriptor() ([]byte, []int) { + return file_andromeda_escrow_v1alpha1_query_proto_rawDescGZIP(), []int{2} +} + +func (x *QueryAgentRequest) GetAddress() string { + if x != nil { + return x.Address + } + return "" +} + +// QueryAgentResponse is the response type for the Query/Agent RPC method. +type QueryAgentResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // the corresponding agent + Agent *QueryAgentResponse_Agent `protobuf:"bytes,1,opt,name=agent,proto3" json:"agent,omitempty"` +} + +func (x *QueryAgentResponse) Reset() { + *x = QueryAgentResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryAgentResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryAgentResponse) ProtoMessage() {} + +// Deprecated: Use QueryAgentResponse.ProtoReflect.Descriptor instead. +func (*QueryAgentResponse) Descriptor() ([]byte, []int) { + return file_andromeda_escrow_v1alpha1_query_proto_rawDescGZIP(), []int{3} +} + +func (x *QueryAgentResponse) GetAgent() *QueryAgentResponse_Agent { + if x != nil { + return x.Agent + } + return nil +} + +// QueryAgentsRequest is the request type for the Query/Agents RPC method. +type QueryAgentsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // optional pagination for the request + Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (x *QueryAgentsRequest) Reset() { + *x = QueryAgentsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryAgentsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryAgentsRequest) ProtoMessage() {} + +// Deprecated: Use QueryAgentsRequest.ProtoReflect.Descriptor instead. +func (*QueryAgentsRequest) Descriptor() ([]byte, []int) { + return file_andromeda_escrow_v1alpha1_query_proto_rawDescGZIP(), []int{4} +} + +func (x *QueryAgentsRequest) GetPagination() *v1beta1.PageRequest { + if x != nil { + return x.Pagination + } + return nil +} + +// QueryAgentsResponse is the response type for the Query/Agents RPC method. +type QueryAgentsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // all the agents + Agents []*QueryAgentsResponse_Agent `protobuf:"bytes,1,rep,name=agents,proto3" json:"agents,omitempty"` + // pagination in the response + Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (x *QueryAgentsResponse) Reset() { + *x = QueryAgentsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryAgentsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryAgentsResponse) ProtoMessage() {} + +// Deprecated: Use QueryAgentsResponse.ProtoReflect.Descriptor instead. +func (*QueryAgentsResponse) Descriptor() ([]byte, []int) { + return file_andromeda_escrow_v1alpha1_query_proto_rawDescGZIP(), []int{5} +} + +func (x *QueryAgentsResponse) GetAgents() []*QueryAgentsResponse_Agent { + if x != nil { + return x.Agents + } + return nil +} + +func (x *QueryAgentsResponse) GetPagination() *v1beta1.PageResponse { + if x != nil { + return x.Pagination + } + return nil +} + +// QueryProposalRequest is the request type for the Query/Proposal RPC method. +type QueryProposalRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // the identifier of a proposal + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (x *QueryProposalRequest) Reset() { + *x = QueryProposalRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryProposalRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryProposalRequest) ProtoMessage() {} + +// Deprecated: Use QueryProposalRequest.ProtoReflect.Descriptor instead. +func (*QueryProposalRequest) Descriptor() ([]byte, []int) { + return file_andromeda_escrow_v1alpha1_query_proto_rawDescGZIP(), []int{6} +} + +func (x *QueryProposalRequest) GetId() uint64 { + if x != nil { + return x.Id + } + return 0 +} + +// QueryProposalResponse is the response type for the Query/Proposal RPC method. +type QueryProposalResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // the corresponding proposal + Proposal *QueryProposalResponse_Proposal `protobuf:"bytes,1,opt,name=proposal,proto3" json:"proposal,omitempty"` +} + +func (x *QueryProposalResponse) Reset() { + *x = QueryProposalResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryProposalResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryProposalResponse) ProtoMessage() {} + +// Deprecated: Use QueryProposalResponse.ProtoReflect.Descriptor instead. +func (*QueryProposalResponse) Descriptor() ([]byte, []int) { + return file_andromeda_escrow_v1alpha1_query_proto_rawDescGZIP(), []int{7} +} + +func (x *QueryProposalResponse) GetProposal() *QueryProposalResponse_Proposal { + if x != nil { + return x.Proposal + } + return nil +} + +// QueryProposalsRequest is the request type for the Query/Proposals RPC method. +type QueryProposalsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // optional pagination for the request + Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (x *QueryProposalsRequest) Reset() { + *x = QueryProposalsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryProposalsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryProposalsRequest) ProtoMessage() {} + +// Deprecated: Use QueryProposalsRequest.ProtoReflect.Descriptor instead. +func (*QueryProposalsRequest) Descriptor() ([]byte, []int) { + return file_andromeda_escrow_v1alpha1_query_proto_rawDescGZIP(), []int{8} +} + +func (x *QueryProposalsRequest) GetPagination() *v1beta1.PageRequest { + if x != nil { + return x.Pagination + } + return nil +} + +// QueryProposalsResponse is the response type for the Query/Proposals RPC method. +type QueryProposalsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // all the proposals + Proposals []*QueryProposalsResponse_Proposal `protobuf:"bytes,1,rep,name=proposals,proto3" json:"proposals,omitempty"` + // pagination in the response + Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (x *QueryProposalsResponse) Reset() { + *x = QueryProposalsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryProposalsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryProposalsResponse) ProtoMessage() {} + +// Deprecated: Use QueryProposalsResponse.ProtoReflect.Descriptor instead. +func (*QueryProposalsResponse) Descriptor() ([]byte, []int) { + return file_andromeda_escrow_v1alpha1_query_proto_rawDescGZIP(), []int{9} +} + +func (x *QueryProposalsResponse) GetProposals() []*QueryProposalsResponse_Proposal { + if x != nil { + return x.Proposals + } + return nil +} + +func (x *QueryProposalsResponse) GetPagination() *v1beta1.PageResponse { + if x != nil { + return x.Pagination + } + return nil +} + +// Params defines the parameters for the module. +type QueryParamsResponse_Params struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *QueryParamsResponse_Params) Reset() { + *x = QueryParamsResponse_Params{} + if protoimpl.UnsafeEnabled { + mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryParamsResponse_Params) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryParamsResponse_Params) ProtoMessage() {} + +// Deprecated: Use QueryParamsResponse_Params.ProtoReflect.Descriptor instead. +func (*QueryParamsResponse_Params) Descriptor() ([]byte, []int) { + return file_andromeda_escrow_v1alpha1_query_proto_rawDescGZIP(), []int{1, 0} +} + +// Agent defines an account taking charge of a proposal. +type QueryAgentResponse_Agent struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // the address of the agent + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + // the address of the creator + Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` +} + +func (x *QueryAgentResponse_Agent) Reset() { + *x = QueryAgentResponse_Agent{} + if protoimpl.UnsafeEnabled { + mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryAgentResponse_Agent) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryAgentResponse_Agent) ProtoMessage() {} + +// Deprecated: Use QueryAgentResponse_Agent.ProtoReflect.Descriptor instead. +func (*QueryAgentResponse_Agent) Descriptor() ([]byte, []int) { + return file_andromeda_escrow_v1alpha1_query_proto_rawDescGZIP(), []int{3, 0} +} + +func (x *QueryAgentResponse_Agent) GetAddress() string { + if x != nil { + return x.Address + } + return "" +} + +func (x *QueryAgentResponse_Agent) GetCreator() string { + if x != nil { + return x.Creator + } + return "" +} + +// Agent defines an account taking charge of a proposal. +type QueryAgentsResponse_Agent struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // the address of the agent + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + // the address of the creator + Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` +} + +func (x *QueryAgentsResponse_Agent) Reset() { + *x = QueryAgentsResponse_Agent{} + if protoimpl.UnsafeEnabled { + mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryAgentsResponse_Agent) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryAgentsResponse_Agent) ProtoMessage() {} + +// Deprecated: Use QueryAgentsResponse_Agent.ProtoReflect.Descriptor instead. +func (*QueryAgentsResponse_Agent) Descriptor() ([]byte, []int) { + return file_andromeda_escrow_v1alpha1_query_proto_rawDescGZIP(), []int{5, 0} +} + +func (x *QueryAgentsResponse_Agent) GetAddress() string { + if x != nil { + return x.Address + } + return "" +} + +func (x *QueryAgentsResponse_Agent) GetCreator() string { + if x != nil { + return x.Creator + } + return "" +} + +// Proposal defines a proposal. +type QueryProposalResponse_Proposal struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // the unique identifier + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + // the address of the proposer + Proposer string `protobuf:"bytes,2,opt,name=proposer,proto3" json:"proposer,omitempty"` + // the address of the agent in charge + Agent string `protobuf:"bytes,3,opt,name=agent,proto3" json:"agent,omitempty"` + // the messages which has been executed on the submission + PreActions []*anypb.Any `protobuf:"bytes,4,rep,name=pre_actions,json=preActions,proto3" json:"pre_actions,omitempty"` + // the messages which will be executed after the actions included in Msg/Exec + PostActions []*anypb.Any `protobuf:"bytes,5,rep,name=post_actions,json=postActions,proto3" json:"post_actions,omitempty"` +} + +func (x *QueryProposalResponse_Proposal) Reset() { + *x = QueryProposalResponse_Proposal{} + if protoimpl.UnsafeEnabled { + mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryProposalResponse_Proposal) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryProposalResponse_Proposal) ProtoMessage() {} + +// Deprecated: Use QueryProposalResponse_Proposal.ProtoReflect.Descriptor instead. +func (*QueryProposalResponse_Proposal) Descriptor() ([]byte, []int) { + return file_andromeda_escrow_v1alpha1_query_proto_rawDescGZIP(), []int{7, 0} +} + +func (x *QueryProposalResponse_Proposal) GetId() uint64 { + if x != nil { + return x.Id + } + return 0 +} + +func (x *QueryProposalResponse_Proposal) GetProposer() string { + if x != nil { + return x.Proposer + } + return "" +} + +func (x *QueryProposalResponse_Proposal) GetAgent() string { + if x != nil { + return x.Agent + } + return "" +} + +func (x *QueryProposalResponse_Proposal) GetPreActions() []*anypb.Any { + if x != nil { + return x.PreActions + } + return nil +} + +func (x *QueryProposalResponse_Proposal) GetPostActions() []*anypb.Any { + if x != nil { + return x.PostActions + } + return nil +} + +// Proposal defines a proposal. +type QueryProposalsResponse_Proposal struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // the unique identifier + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + // the address of the proposer + Proposer string `protobuf:"bytes,2,opt,name=proposer,proto3" json:"proposer,omitempty"` + // the address of the agent of the proposal + Agent string `protobuf:"bytes,3,opt,name=agent,proto3" json:"agent,omitempty"` + // the messages which has been executed on the submission + PreActions []*anypb.Any `protobuf:"bytes,4,rep,name=pre_actions,json=preActions,proto3" json:"pre_actions,omitempty"` + // the messages which will be executed after the actions included in Msg/Exec + PostActions []*anypb.Any `protobuf:"bytes,5,rep,name=post_actions,json=postActions,proto3" json:"post_actions,omitempty"` +} + +func (x *QueryProposalsResponse_Proposal) Reset() { + *x = QueryProposalsResponse_Proposal{} + if protoimpl.UnsafeEnabled { + mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryProposalsResponse_Proposal) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryProposalsResponse_Proposal) ProtoMessage() {} + +// Deprecated: Use QueryProposalsResponse_Proposal.ProtoReflect.Descriptor instead. +func (*QueryProposalsResponse_Proposal) Descriptor() ([]byte, []int) { + return file_andromeda_escrow_v1alpha1_query_proto_rawDescGZIP(), []int{9, 0} +} + +func (x *QueryProposalsResponse_Proposal) GetId() uint64 { + if x != nil { + return x.Id + } + return 0 +} + +func (x *QueryProposalsResponse_Proposal) GetProposer() string { + if x != nil { + return x.Proposer + } + return "" +} + +func (x *QueryProposalsResponse_Proposal) GetAgent() string { + if x != nil { + return x.Agent + } + return "" +} + +func (x *QueryProposalsResponse_Proposal) GetPreActions() []*anypb.Any { + if x != nil { + return x.PreActions + } + return nil +} + +func (x *QueryProposalsResponse_Proposal) GetPostActions() []*anypb.Any { + if x != nil { + return x.PostActions + } + return nil +} + +var File_andromeda_escrow_v1alpha1_query_proto protoreflect.FileDescriptor + +var file_andromeda_escrow_v1alpha1_query_proto_rawDesc = []byte{ + 0x0a, 0x25, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x65, 0x73, 0x63, 0x72, + 0x6f, 0x77, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x71, 0x75, 0x65, 0x72, + 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, + 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x1a, 0x2a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, + 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x70, 0x61, + 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x22, 0x14, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x6e, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x4d, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x35, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, + 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, + 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x1a, 0x08, + 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x47, 0x0a, 0x11, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x32, 0x0a, + 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, + 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x22, 0xd0, 0x01, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x67, 0x65, 0x6e, 0x74, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x49, 0x0a, 0x05, 0x61, 0x67, 0x65, 0x6e, + 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, + 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x61, 0x67, + 0x65, 0x6e, 0x74, 0x1a, 0x6f, 0x0a, 0x05, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x32, 0x0a, 0x07, + 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, + 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x12, 0x32, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x63, 0x72, 0x65, + 0x61, 0x74, 0x6f, 0x72, 0x22, 0x5c, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x67, 0x65, + 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, + 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, + 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x22, 0x9d, 0x02, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x67, 0x65, 0x6e, + 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4c, 0x0a, 0x06, 0x61, 0x67, + 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x61, 0x6e, 0x64, + 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x67, 0x65, 0x6e, + 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x41, 0x67, 0x65, 0x6e, 0x74, + 0x52, 0x06, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, + 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x1a, 0x6f, 0x0a, 0x05, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x32, 0x0a, 0x07, 0x61, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, + 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, + 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x32, + 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, + 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, + 0x6f, 0x72, 0x22, 0x26, 0x0a, 0x14, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, + 0x73, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x22, 0xe1, 0x02, 0x0a, 0x15, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x55, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, + 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, + 0x6c, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x1a, 0xf0, 0x01, 0x0a, 0x08, + 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x34, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, + 0x6f, 0x73, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, + 0x72, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x12, 0x2e, + 0x0a, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, + 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x35, + 0x0a, 0x0b, 0x70, 0x72, 0x65, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0a, 0x70, 0x72, 0x65, 0x41, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x37, 0x0a, 0x0c, 0x70, 0x6f, 0x73, 0x74, 0x5f, 0x61, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, + 0x79, 0x52, 0x0b, 0x70, 0x6f, 0x73, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x5f, + 0x0a, 0x15, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, + 0xae, 0x03, 0x0a, 0x16, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, + 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x58, 0x0a, 0x09, 0x70, 0x72, + 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3a, 0x2e, + 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, + 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x70, 0x6f, + 0x73, 0x61, 0x6c, 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0xf0, 0x01, + 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x34, 0x0a, 0x08, 0x70, 0x72, + 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, + 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, + 0x12, 0x2e, 0x0a, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, + 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, + 0x12, 0x35, 0x0a, 0x0b, 0x70, 0x72, 0x65, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, + 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0a, 0x70, 0x72, 0x65, + 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x37, 0x0a, 0x0c, 0x70, 0x6f, 0x73, 0x74, 0x5f, + 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x41, 0x6e, 0x79, 0x52, 0x0b, 0x70, 0x6f, 0x73, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x32, 0x91, 0x06, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x92, 0x01, 0x0a, 0x06, 0x50, + 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x2d, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, + 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, + 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x29, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x23, 0x12, 0x21, 0x2f, 0x61, + 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2f, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, + 0x99, 0x01, 0x0a, 0x05, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x2c, 0x2e, 0x61, 0x6e, 0x64, 0x72, + 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x67, 0x65, 0x6e, 0x74, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, + 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x33, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2d, 0x12, 0x2b, + 0x2f, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x65, 0x73, 0x63, 0x72, 0x6f, + 0x77, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, + 0x73, 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x12, 0x92, 0x01, 0x0a, 0x06, + 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x2d, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, + 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, + 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x29, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x23, 0x12, 0x21, 0x2f, + 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, + 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, + 0x12, 0xa0, 0x01, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x2f, 0x2e, + 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, + 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, + 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, + 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x31, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x12, 0x29, 0x2f, 0x61, 0x6e, 0x64, 0x72, 0x6f, + 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2f, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x2f, 0x7b, + 0x69, 0x64, 0x7d, 0x12, 0x9e, 0x01, 0x0a, 0x09, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, + 0x73, 0x12, 0x30, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, + 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, + 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x26, 0x12, 0x24, + 0x2f, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x65, 0x73, 0x63, 0x72, 0x6f, + 0x77, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x6f, + 0x73, 0x61, 0x6c, 0x73, 0x42, 0xdf, 0x01, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x6e, 0x64, + 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, + 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2c, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, + 0x65, 0x64, 0x61, 0x2f, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x3b, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x45, 0x58, 0xaa, 0x02, 0x19, 0x41, 0x6e, 0x64, 0x72, 0x6f, + 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x56, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0xca, 0x02, 0x19, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, + 0x5c, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0xe2, 0x02, 0x25, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x5c, 0x45, 0x73, 0x63, + 0x72, 0x6f, 0x77, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1b, 0x41, 0x6e, 0x64, 0x72, 0x6f, + 0x6d, 0x65, 0x64, 0x61, 0x3a, 0x3a, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x3a, 0x3a, 0x56, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_andromeda_escrow_v1alpha1_query_proto_rawDescOnce sync.Once + file_andromeda_escrow_v1alpha1_query_proto_rawDescData = file_andromeda_escrow_v1alpha1_query_proto_rawDesc +) + +func file_andromeda_escrow_v1alpha1_query_proto_rawDescGZIP() []byte { + file_andromeda_escrow_v1alpha1_query_proto_rawDescOnce.Do(func() { + file_andromeda_escrow_v1alpha1_query_proto_rawDescData = protoimpl.X.CompressGZIP(file_andromeda_escrow_v1alpha1_query_proto_rawDescData) + }) + return file_andromeda_escrow_v1alpha1_query_proto_rawDescData +} + +var file_andromeda_escrow_v1alpha1_query_proto_msgTypes = make([]protoimpl.MessageInfo, 15) +var file_andromeda_escrow_v1alpha1_query_proto_goTypes = []interface{}{ + (*QueryParamsRequest)(nil), // 0: andromeda.escrow.v1alpha1.QueryParamsRequest + (*QueryParamsResponse)(nil), // 1: andromeda.escrow.v1alpha1.QueryParamsResponse + (*QueryAgentRequest)(nil), // 2: andromeda.escrow.v1alpha1.QueryAgentRequest + (*QueryAgentResponse)(nil), // 3: andromeda.escrow.v1alpha1.QueryAgentResponse + (*QueryAgentsRequest)(nil), // 4: andromeda.escrow.v1alpha1.QueryAgentsRequest + (*QueryAgentsResponse)(nil), // 5: andromeda.escrow.v1alpha1.QueryAgentsResponse + (*QueryProposalRequest)(nil), // 6: andromeda.escrow.v1alpha1.QueryProposalRequest + (*QueryProposalResponse)(nil), // 7: andromeda.escrow.v1alpha1.QueryProposalResponse + (*QueryProposalsRequest)(nil), // 8: andromeda.escrow.v1alpha1.QueryProposalsRequest + (*QueryProposalsResponse)(nil), // 9: andromeda.escrow.v1alpha1.QueryProposalsResponse + (*QueryParamsResponse_Params)(nil), // 10: andromeda.escrow.v1alpha1.QueryParamsResponse.Params + (*QueryAgentResponse_Agent)(nil), // 11: andromeda.escrow.v1alpha1.QueryAgentResponse.Agent + (*QueryAgentsResponse_Agent)(nil), // 12: andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent + (*QueryProposalResponse_Proposal)(nil), // 13: andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal + (*QueryProposalsResponse_Proposal)(nil), // 14: andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal + (*v1beta1.PageRequest)(nil), // 15: cosmos.base.query.v1beta1.PageRequest + (*v1beta1.PageResponse)(nil), // 16: cosmos.base.query.v1beta1.PageResponse + (*anypb.Any)(nil), // 17: google.protobuf.Any +} +var file_andromeda_escrow_v1alpha1_query_proto_depIdxs = []int32{ + 10, // 0: andromeda.escrow.v1alpha1.QueryParamsResponse.params:type_name -> andromeda.escrow.v1alpha1.QueryParamsResponse.Params + 11, // 1: andromeda.escrow.v1alpha1.QueryAgentResponse.agent:type_name -> andromeda.escrow.v1alpha1.QueryAgentResponse.Agent + 15, // 2: andromeda.escrow.v1alpha1.QueryAgentsRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 12, // 3: andromeda.escrow.v1alpha1.QueryAgentsResponse.agents:type_name -> andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent + 16, // 4: andromeda.escrow.v1alpha1.QueryAgentsResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 13, // 5: andromeda.escrow.v1alpha1.QueryProposalResponse.proposal:type_name -> andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal + 15, // 6: andromeda.escrow.v1alpha1.QueryProposalsRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 14, // 7: andromeda.escrow.v1alpha1.QueryProposalsResponse.proposals:type_name -> andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal + 16, // 8: andromeda.escrow.v1alpha1.QueryProposalsResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 17, // 9: andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.pre_actions:type_name -> google.protobuf.Any + 17, // 10: andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.post_actions:type_name -> google.protobuf.Any + 17, // 11: andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.pre_actions:type_name -> google.protobuf.Any + 17, // 12: andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.post_actions:type_name -> google.protobuf.Any + 0, // 13: andromeda.escrow.v1alpha1.Query.Params:input_type -> andromeda.escrow.v1alpha1.QueryParamsRequest + 2, // 14: andromeda.escrow.v1alpha1.Query.Agent:input_type -> andromeda.escrow.v1alpha1.QueryAgentRequest + 4, // 15: andromeda.escrow.v1alpha1.Query.Agents:input_type -> andromeda.escrow.v1alpha1.QueryAgentsRequest + 6, // 16: andromeda.escrow.v1alpha1.Query.Proposal:input_type -> andromeda.escrow.v1alpha1.QueryProposalRequest + 8, // 17: andromeda.escrow.v1alpha1.Query.Proposals:input_type -> andromeda.escrow.v1alpha1.QueryProposalsRequest + 1, // 18: andromeda.escrow.v1alpha1.Query.Params:output_type -> andromeda.escrow.v1alpha1.QueryParamsResponse + 3, // 19: andromeda.escrow.v1alpha1.Query.Agent:output_type -> andromeda.escrow.v1alpha1.QueryAgentResponse + 5, // 20: andromeda.escrow.v1alpha1.Query.Agents:output_type -> andromeda.escrow.v1alpha1.QueryAgentsResponse + 7, // 21: andromeda.escrow.v1alpha1.Query.Proposal:output_type -> andromeda.escrow.v1alpha1.QueryProposalResponse + 9, // 22: andromeda.escrow.v1alpha1.Query.Proposals:output_type -> andromeda.escrow.v1alpha1.QueryProposalsResponse + 18, // [18:23] is the sub-list for method output_type + 13, // [13:18] is the sub-list for method input_type + 13, // [13:13] is the sub-list for extension type_name + 13, // [13:13] is the sub-list for extension extendee + 0, // [0:13] is the sub-list for field type_name +} + +func init() { file_andromeda_escrow_v1alpha1_query_proto_init() } +func file_andromeda_escrow_v1alpha1_query_proto_init() { + if File_andromeda_escrow_v1alpha1_query_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_andromeda_escrow_v1alpha1_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryParamsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_andromeda_escrow_v1alpha1_query_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryParamsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_andromeda_escrow_v1alpha1_query_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryAgentRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_andromeda_escrow_v1alpha1_query_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryAgentResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_andromeda_escrow_v1alpha1_query_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryAgentsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_andromeda_escrow_v1alpha1_query_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryAgentsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_andromeda_escrow_v1alpha1_query_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryProposalRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_andromeda_escrow_v1alpha1_query_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryProposalResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_andromeda_escrow_v1alpha1_query_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryProposalsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_andromeda_escrow_v1alpha1_query_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryProposalsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_andromeda_escrow_v1alpha1_query_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryParamsResponse_Params); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_andromeda_escrow_v1alpha1_query_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryAgentResponse_Agent); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_andromeda_escrow_v1alpha1_query_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryAgentsResponse_Agent); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_andromeda_escrow_v1alpha1_query_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryProposalResponse_Proposal); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_andromeda_escrow_v1alpha1_query_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryProposalsResponse_Proposal); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_andromeda_escrow_v1alpha1_query_proto_rawDesc, + NumEnums: 0, + NumMessages: 15, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_andromeda_escrow_v1alpha1_query_proto_goTypes, + DependencyIndexes: file_andromeda_escrow_v1alpha1_query_proto_depIdxs, + MessageInfos: file_andromeda_escrow_v1alpha1_query_proto_msgTypes, + }.Build() + File_andromeda_escrow_v1alpha1_query_proto = out.File + file_andromeda_escrow_v1alpha1_query_proto_rawDesc = nil + file_andromeda_escrow_v1alpha1_query_proto_goTypes = nil + file_andromeda_escrow_v1alpha1_query_proto_depIdxs = nil +} diff --git a/x/escrow/api/andromeda/escrow/v1alpha1/query_grpc.pb.go b/x/escrow/api/andromeda/escrow/v1alpha1/query_grpc.pb.go new file mode 100644 index 0000000..8ae9373 --- /dev/null +++ b/x/escrow/api/andromeda/escrow/v1alpha1/query_grpc.pb.go @@ -0,0 +1,267 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.3.0 +// - protoc (unknown) +// source: andromeda/escrow/v1alpha1/query.proto + +package escrowv1alpha1 + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +const ( + Query_Params_FullMethodName = "/andromeda.escrow.v1alpha1.Query/Params" + Query_Agent_FullMethodName = "/andromeda.escrow.v1alpha1.Query/Agent" + Query_Agents_FullMethodName = "/andromeda.escrow.v1alpha1.Query/Agents" + Query_Proposal_FullMethodName = "/andromeda.escrow.v1alpha1.Query/Proposal" + Query_Proposals_FullMethodName = "/andromeda.escrow.v1alpha1.Query/Proposals" +) + +// QueryClient is the client API for Query service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type QueryClient interface { + // Params queries the module parameters. + Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) + // Agent queries an agent. + Agent(ctx context.Context, in *QueryAgentRequest, opts ...grpc.CallOption) (*QueryAgentResponse, error) + // Agents queries all the agents. + Agents(ctx context.Context, in *QueryAgentsRequest, opts ...grpc.CallOption) (*QueryAgentsResponse, error) + // Proposal queries a proposal. + Proposal(ctx context.Context, in *QueryProposalRequest, opts ...grpc.CallOption) (*QueryProposalResponse, error) + // Proposals queries all the proposals. + Proposals(ctx context.Context, in *QueryProposalsRequest, opts ...grpc.CallOption) (*QueryProposalsResponse, error) +} + +type queryClient struct { + cc grpc.ClientConnInterface +} + +func NewQueryClient(cc grpc.ClientConnInterface) QueryClient { + return &queryClient{cc} +} + +func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) { + out := new(QueryParamsResponse) + err := c.cc.Invoke(ctx, Query_Params_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) Agent(ctx context.Context, in *QueryAgentRequest, opts ...grpc.CallOption) (*QueryAgentResponse, error) { + out := new(QueryAgentResponse) + err := c.cc.Invoke(ctx, Query_Agent_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) Agents(ctx context.Context, in *QueryAgentsRequest, opts ...grpc.CallOption) (*QueryAgentsResponse, error) { + out := new(QueryAgentsResponse) + err := c.cc.Invoke(ctx, Query_Agents_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) Proposal(ctx context.Context, in *QueryProposalRequest, opts ...grpc.CallOption) (*QueryProposalResponse, error) { + out := new(QueryProposalResponse) + err := c.cc.Invoke(ctx, Query_Proposal_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) Proposals(ctx context.Context, in *QueryProposalsRequest, opts ...grpc.CallOption) (*QueryProposalsResponse, error) { + out := new(QueryProposalsResponse) + err := c.cc.Invoke(ctx, Query_Proposals_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// QueryServer is the server API for Query service. +// All implementations must embed UnimplementedQueryServer +// for forward compatibility +type QueryServer interface { + // Params queries the module parameters. + Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) + // Agent queries an agent. + Agent(context.Context, *QueryAgentRequest) (*QueryAgentResponse, error) + // Agents queries all the agents. + Agents(context.Context, *QueryAgentsRequest) (*QueryAgentsResponse, error) + // Proposal queries a proposal. + Proposal(context.Context, *QueryProposalRequest) (*QueryProposalResponse, error) + // Proposals queries all the proposals. + Proposals(context.Context, *QueryProposalsRequest) (*QueryProposalsResponse, error) + mustEmbedUnimplementedQueryServer() +} + +// UnimplementedQueryServer must be embedded to have forward compatible implementations. +type UnimplementedQueryServer struct { +} + +func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Params not implemented") +} +func (UnimplementedQueryServer) Agent(context.Context, *QueryAgentRequest) (*QueryAgentResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Agent not implemented") +} +func (UnimplementedQueryServer) Agents(context.Context, *QueryAgentsRequest) (*QueryAgentsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Agents not implemented") +} +func (UnimplementedQueryServer) Proposal(context.Context, *QueryProposalRequest) (*QueryProposalResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Proposal not implemented") +} +func (UnimplementedQueryServer) Proposals(context.Context, *QueryProposalsRequest) (*QueryProposalsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Proposals not implemented") +} +func (UnimplementedQueryServer) mustEmbedUnimplementedQueryServer() {} + +// UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to QueryServer will +// result in compilation errors. +type UnsafeQueryServer interface { + mustEmbedUnimplementedQueryServer() +} + +func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer) { + s.RegisterService(&Query_ServiceDesc, srv) +} + +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: Query_Params_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_Agent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryAgentRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Agent(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_Agent_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Agent(ctx, req.(*QueryAgentRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_Agents_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryAgentsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Agents(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_Agents_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Agents(ctx, req.(*QueryAgentsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_Proposal_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryProposalRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Proposal(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_Proposal_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Proposal(ctx, req.(*QueryProposalRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_Proposals_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryProposalsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Proposals(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_Proposals_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Proposals(ctx, req.(*QueryProposalsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// Query_ServiceDesc is the grpc.ServiceDesc for Query service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var Query_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "andromeda.escrow.v1alpha1.Query", + HandlerType: (*QueryServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Params", + Handler: _Query_Params_Handler, + }, + { + MethodName: "Agent", + Handler: _Query_Agent_Handler, + }, + { + MethodName: "Agents", + Handler: _Query_Agents_Handler, + }, + { + MethodName: "Proposal", + Handler: _Query_Proposal_Handler, + }, + { + MethodName: "Proposals", + Handler: _Query_Proposals_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "andromeda/escrow/v1alpha1/query.proto", +} diff --git a/x/escrow/api/andromeda/escrow/v1alpha1/tx.pulsar.go b/x/escrow/api/andromeda/escrow/v1alpha1/tx.pulsar.go new file mode 100644 index 0000000..db750d3 --- /dev/null +++ b/x/escrow/api/andromeda/escrow/v1alpha1/tx.pulsar.go @@ -0,0 +1,4933 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package escrowv1alpha1 + +import ( + fmt "fmt" + _ "github.com/cosmos/cosmos-proto" + runtime "github.com/cosmos/cosmos-proto/runtime" + _ "github.com/cosmos/cosmos-sdk/types/msgservice" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoiface "google.golang.org/protobuf/runtime/protoiface" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + anypb "google.golang.org/protobuf/types/known/anypb" + io "io" + reflect "reflect" + sync "sync" +) + +var ( + md_MsgUpdateParams protoreflect.MessageDescriptor + fd_MsgUpdateParams_authority protoreflect.FieldDescriptor + fd_MsgUpdateParams_params protoreflect.FieldDescriptor +) + +func init() { + file_andromeda_escrow_v1alpha1_tx_proto_init() + md_MsgUpdateParams = File_andromeda_escrow_v1alpha1_tx_proto.Messages().ByName("MsgUpdateParams") + fd_MsgUpdateParams_authority = md_MsgUpdateParams.Fields().ByName("authority") + fd_MsgUpdateParams_params = md_MsgUpdateParams.Fields().ByName("params") +} + +var _ protoreflect.Message = (*fastReflection_MsgUpdateParams)(nil) + +type fastReflection_MsgUpdateParams MsgUpdateParams + +func (x *MsgUpdateParams) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUpdateParams)(x) +} + +func (x *MsgUpdateParams) slowProtoReflect() protoreflect.Message { + mi := &file_andromeda_escrow_v1alpha1_tx_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_MsgUpdateParams_messageType fastReflection_MsgUpdateParams_messageType +var _ protoreflect.MessageType = fastReflection_MsgUpdateParams_messageType{} + +type fastReflection_MsgUpdateParams_messageType struct{} + +func (x fastReflection_MsgUpdateParams_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUpdateParams)(nil) +} +func (x fastReflection_MsgUpdateParams_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUpdateParams) +} +func (x fastReflection_MsgUpdateParams_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateParams +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgUpdateParams) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateParams +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_MsgUpdateParams) Type() protoreflect.MessageType { + return _fastReflection_MsgUpdateParams_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgUpdateParams) New() protoreflect.Message { + return new(fastReflection_MsgUpdateParams) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgUpdateParams) Interface() protoreflect.ProtoMessage { + return (*MsgUpdateParams)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_MsgUpdateParams) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Authority != "" { + value := protoreflect.ValueOfString(x.Authority) + if !f(fd_MsgUpdateParams_authority, value) { + return + } + } + if x.Params != nil { + value := protoreflect.ValueOfMessage(x.Params.ProtoReflect()) + if !f(fd_MsgUpdateParams_params, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_MsgUpdateParams) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.MsgUpdateParams.authority": + return x.Authority != "" + case "andromeda.escrow.v1alpha1.MsgUpdateParams.params": + return x.Params != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgUpdateParams")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.MsgUpdateParams does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgUpdateParams) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.MsgUpdateParams.authority": + x.Authority = "" + case "andromeda.escrow.v1alpha1.MsgUpdateParams.params": + x.Params = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgUpdateParams")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.MsgUpdateParams does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_MsgUpdateParams) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "andromeda.escrow.v1alpha1.MsgUpdateParams.authority": + value := x.Authority + return protoreflect.ValueOfString(value) + case "andromeda.escrow.v1alpha1.MsgUpdateParams.params": + value := x.Params + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgUpdateParams")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.MsgUpdateParams does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgUpdateParams) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.MsgUpdateParams.authority": + x.Authority = value.Interface().(string) + case "andromeda.escrow.v1alpha1.MsgUpdateParams.params": + x.Params = value.Message().Interface().(*MsgUpdateParams_Params) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgUpdateParams")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.MsgUpdateParams does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgUpdateParams) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.MsgUpdateParams.params": + if x.Params == nil { + x.Params = new(MsgUpdateParams_Params) + } + return protoreflect.ValueOfMessage(x.Params.ProtoReflect()) + case "andromeda.escrow.v1alpha1.MsgUpdateParams.authority": + panic(fmt.Errorf("field authority of message andromeda.escrow.v1alpha1.MsgUpdateParams is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgUpdateParams")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.MsgUpdateParams does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_MsgUpdateParams) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.MsgUpdateParams.authority": + return protoreflect.ValueOfString("") + case "andromeda.escrow.v1alpha1.MsgUpdateParams.params": + m := new(MsgUpdateParams_Params) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgUpdateParams")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.MsgUpdateParams does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_MsgUpdateParams) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in andromeda.escrow.v1alpha1.MsgUpdateParams", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_MsgUpdateParams) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgUpdateParams) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_MsgUpdateParams) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_MsgUpdateParams) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgUpdateParams) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + l = len(x.Authority) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Params != nil { + l = options.Size(x.Params) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*MsgUpdateParams) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if x.Params != nil { + encoded, err := options.Marshal(x.Params) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x12 + } + if len(x.Authority) > 0 { + i -= len(x.Authority) + copy(dAtA[i:], x.Authority) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*MsgUpdateParams) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParams: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParams: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Authority = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.Params == nil { + x.Params = &MsgUpdateParams_Params{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_MsgUpdateParams_Params protoreflect.MessageDescriptor +) + +func init() { + file_andromeda_escrow_v1alpha1_tx_proto_init() + md_MsgUpdateParams_Params = File_andromeda_escrow_v1alpha1_tx_proto.Messages().ByName("MsgUpdateParams").Messages().ByName("Params") +} + +var _ protoreflect.Message = (*fastReflection_MsgUpdateParams_Params)(nil) + +type fastReflection_MsgUpdateParams_Params MsgUpdateParams_Params + +func (x *MsgUpdateParams_Params) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUpdateParams_Params)(x) +} + +func (x *MsgUpdateParams_Params) slowProtoReflect() protoreflect.Message { + mi := &file_andromeda_escrow_v1alpha1_tx_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_MsgUpdateParams_Params_messageType fastReflection_MsgUpdateParams_Params_messageType +var _ protoreflect.MessageType = fastReflection_MsgUpdateParams_Params_messageType{} + +type fastReflection_MsgUpdateParams_Params_messageType struct{} + +func (x fastReflection_MsgUpdateParams_Params_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUpdateParams_Params)(nil) +} +func (x fastReflection_MsgUpdateParams_Params_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUpdateParams_Params) +} +func (x fastReflection_MsgUpdateParams_Params_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateParams_Params +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgUpdateParams_Params) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateParams_Params +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_MsgUpdateParams_Params) Type() protoreflect.MessageType { + return _fastReflection_MsgUpdateParams_Params_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgUpdateParams_Params) New() protoreflect.Message { + return new(fastReflection_MsgUpdateParams_Params) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgUpdateParams_Params) Interface() protoreflect.ProtoMessage { + return (*MsgUpdateParams_Params)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_MsgUpdateParams_Params) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_MsgUpdateParams_Params) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgUpdateParams.Params")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.MsgUpdateParams.Params does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgUpdateParams_Params) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgUpdateParams.Params")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.MsgUpdateParams.Params does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_MsgUpdateParams_Params) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgUpdateParams.Params")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.MsgUpdateParams.Params does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgUpdateParams_Params) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgUpdateParams.Params")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.MsgUpdateParams.Params does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgUpdateParams_Params) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgUpdateParams.Params")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.MsgUpdateParams.Params does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_MsgUpdateParams_Params) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgUpdateParams.Params")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.MsgUpdateParams.Params does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_MsgUpdateParams_Params) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in andromeda.escrow.v1alpha1.MsgUpdateParams.Params", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_MsgUpdateParams_Params) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgUpdateParams_Params) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_MsgUpdateParams_Params) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_MsgUpdateParams_Params) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgUpdateParams_Params) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*MsgUpdateParams_Params) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*MsgUpdateParams_Params) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParams_Params: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParams_Params: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_MsgUpdateParamsResponse protoreflect.MessageDescriptor +) + +func init() { + file_andromeda_escrow_v1alpha1_tx_proto_init() + md_MsgUpdateParamsResponse = File_andromeda_escrow_v1alpha1_tx_proto.Messages().ByName("MsgUpdateParamsResponse") +} + +var _ protoreflect.Message = (*fastReflection_MsgUpdateParamsResponse)(nil) + +type fastReflection_MsgUpdateParamsResponse MsgUpdateParamsResponse + +func (x *MsgUpdateParamsResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUpdateParamsResponse)(x) +} + +func (x *MsgUpdateParamsResponse) slowProtoReflect() protoreflect.Message { + mi := &file_andromeda_escrow_v1alpha1_tx_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_MsgUpdateParamsResponse_messageType fastReflection_MsgUpdateParamsResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgUpdateParamsResponse_messageType{} + +type fastReflection_MsgUpdateParamsResponse_messageType struct{} + +func (x fastReflection_MsgUpdateParamsResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUpdateParamsResponse)(nil) +} +func (x fastReflection_MsgUpdateParamsResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUpdateParamsResponse) +} +func (x fastReflection_MsgUpdateParamsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateParamsResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgUpdateParamsResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateParamsResponse +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_MsgUpdateParamsResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgUpdateParamsResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgUpdateParamsResponse) New() protoreflect.Message { + return new(fastReflection_MsgUpdateParamsResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgUpdateParamsResponse) Interface() protoreflect.ProtoMessage { + return (*MsgUpdateParamsResponse)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_MsgUpdateParamsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_MsgUpdateParamsResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgUpdateParamsResponse")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.MsgUpdateParamsResponse does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgUpdateParamsResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgUpdateParamsResponse")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.MsgUpdateParamsResponse does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_MsgUpdateParamsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgUpdateParamsResponse")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.MsgUpdateParamsResponse does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgUpdateParamsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgUpdateParamsResponse")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.MsgUpdateParamsResponse does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgUpdateParamsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgUpdateParamsResponse")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.MsgUpdateParamsResponse does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_MsgUpdateParamsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgUpdateParamsResponse")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.MsgUpdateParamsResponse does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_MsgUpdateParamsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in andromeda.escrow.v1alpha1.MsgUpdateParamsResponse", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_MsgUpdateParamsResponse) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgUpdateParamsResponse) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_MsgUpdateParamsResponse) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_MsgUpdateParamsResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgUpdateParamsResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*MsgUpdateParamsResponse) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*MsgUpdateParamsResponse) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParamsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_MsgCreateAgent protoreflect.MessageDescriptor + fd_MsgCreateAgent_creator protoreflect.FieldDescriptor +) + +func init() { + file_andromeda_escrow_v1alpha1_tx_proto_init() + md_MsgCreateAgent = File_andromeda_escrow_v1alpha1_tx_proto.Messages().ByName("MsgCreateAgent") + fd_MsgCreateAgent_creator = md_MsgCreateAgent.Fields().ByName("creator") +} + +var _ protoreflect.Message = (*fastReflection_MsgCreateAgent)(nil) + +type fastReflection_MsgCreateAgent MsgCreateAgent + +func (x *MsgCreateAgent) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgCreateAgent)(x) +} + +func (x *MsgCreateAgent) slowProtoReflect() protoreflect.Message { + mi := &file_andromeda_escrow_v1alpha1_tx_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_MsgCreateAgent_messageType fastReflection_MsgCreateAgent_messageType +var _ protoreflect.MessageType = fastReflection_MsgCreateAgent_messageType{} + +type fastReflection_MsgCreateAgent_messageType struct{} + +func (x fastReflection_MsgCreateAgent_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgCreateAgent)(nil) +} +func (x fastReflection_MsgCreateAgent_messageType) New() protoreflect.Message { + return new(fastReflection_MsgCreateAgent) +} +func (x fastReflection_MsgCreateAgent_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCreateAgent +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgCreateAgent) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCreateAgent +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_MsgCreateAgent) Type() protoreflect.MessageType { + return _fastReflection_MsgCreateAgent_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgCreateAgent) New() protoreflect.Message { + return new(fastReflection_MsgCreateAgent) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgCreateAgent) Interface() protoreflect.ProtoMessage { + return (*MsgCreateAgent)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_MsgCreateAgent) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Creator != "" { + value := protoreflect.ValueOfString(x.Creator) + if !f(fd_MsgCreateAgent_creator, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_MsgCreateAgent) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.MsgCreateAgent.creator": + return x.Creator != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgCreateAgent")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.MsgCreateAgent does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgCreateAgent) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.MsgCreateAgent.creator": + x.Creator = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgCreateAgent")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.MsgCreateAgent does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_MsgCreateAgent) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "andromeda.escrow.v1alpha1.MsgCreateAgent.creator": + value := x.Creator + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgCreateAgent")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.MsgCreateAgent does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgCreateAgent) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.MsgCreateAgent.creator": + x.Creator = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgCreateAgent")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.MsgCreateAgent does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgCreateAgent) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.MsgCreateAgent.creator": + panic(fmt.Errorf("field creator of message andromeda.escrow.v1alpha1.MsgCreateAgent is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgCreateAgent")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.MsgCreateAgent does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_MsgCreateAgent) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.MsgCreateAgent.creator": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgCreateAgent")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.MsgCreateAgent does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_MsgCreateAgent) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in andromeda.escrow.v1alpha1.MsgCreateAgent", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_MsgCreateAgent) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgCreateAgent) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_MsgCreateAgent) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_MsgCreateAgent) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgCreateAgent) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + l = len(x.Creator) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*MsgCreateAgent) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.Creator) > 0 { + i -= len(x.Creator) + copy(dAtA[i:], x.Creator) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*MsgCreateAgent) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateAgent: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateAgent: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_MsgCreateAgentResponse protoreflect.MessageDescriptor + fd_MsgCreateAgentResponse_agent protoreflect.FieldDescriptor +) + +func init() { + file_andromeda_escrow_v1alpha1_tx_proto_init() + md_MsgCreateAgentResponse = File_andromeda_escrow_v1alpha1_tx_proto.Messages().ByName("MsgCreateAgentResponse") + fd_MsgCreateAgentResponse_agent = md_MsgCreateAgentResponse.Fields().ByName("agent") +} + +var _ protoreflect.Message = (*fastReflection_MsgCreateAgentResponse)(nil) + +type fastReflection_MsgCreateAgentResponse MsgCreateAgentResponse + +func (x *MsgCreateAgentResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgCreateAgentResponse)(x) +} + +func (x *MsgCreateAgentResponse) slowProtoReflect() protoreflect.Message { + mi := &file_andromeda_escrow_v1alpha1_tx_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_MsgCreateAgentResponse_messageType fastReflection_MsgCreateAgentResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgCreateAgentResponse_messageType{} + +type fastReflection_MsgCreateAgentResponse_messageType struct{} + +func (x fastReflection_MsgCreateAgentResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgCreateAgentResponse)(nil) +} +func (x fastReflection_MsgCreateAgentResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgCreateAgentResponse) +} +func (x fastReflection_MsgCreateAgentResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCreateAgentResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgCreateAgentResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCreateAgentResponse +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_MsgCreateAgentResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgCreateAgentResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgCreateAgentResponse) New() protoreflect.Message { + return new(fastReflection_MsgCreateAgentResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgCreateAgentResponse) Interface() protoreflect.ProtoMessage { + return (*MsgCreateAgentResponse)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_MsgCreateAgentResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Agent != "" { + value := protoreflect.ValueOfString(x.Agent) + if !f(fd_MsgCreateAgentResponse_agent, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_MsgCreateAgentResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.MsgCreateAgentResponse.agent": + return x.Agent != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgCreateAgentResponse")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.MsgCreateAgentResponse does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgCreateAgentResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.MsgCreateAgentResponse.agent": + x.Agent = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgCreateAgentResponse")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.MsgCreateAgentResponse does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_MsgCreateAgentResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "andromeda.escrow.v1alpha1.MsgCreateAgentResponse.agent": + value := x.Agent + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgCreateAgentResponse")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.MsgCreateAgentResponse does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgCreateAgentResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.MsgCreateAgentResponse.agent": + x.Agent = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgCreateAgentResponse")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.MsgCreateAgentResponse does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgCreateAgentResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.MsgCreateAgentResponse.agent": + panic(fmt.Errorf("field agent of message andromeda.escrow.v1alpha1.MsgCreateAgentResponse is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgCreateAgentResponse")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.MsgCreateAgentResponse does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_MsgCreateAgentResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.MsgCreateAgentResponse.agent": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgCreateAgentResponse")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.MsgCreateAgentResponse does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_MsgCreateAgentResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in andromeda.escrow.v1alpha1.MsgCreateAgentResponse", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_MsgCreateAgentResponse) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgCreateAgentResponse) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_MsgCreateAgentResponse) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_MsgCreateAgentResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgCreateAgentResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + l = len(x.Agent) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*MsgCreateAgentResponse) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.Agent) > 0 { + i -= len(x.Agent) + copy(dAtA[i:], x.Agent) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Agent))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*MsgCreateAgentResponse) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateAgentResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateAgentResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Agent", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Agent = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var _ protoreflect.List = (*_MsgSubmitProposal_3_list)(nil) + +type _MsgSubmitProposal_3_list struct { + list *[]*anypb.Any +} + +func (x *_MsgSubmitProposal_3_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_MsgSubmitProposal_3_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_MsgSubmitProposal_3_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*anypb.Any) + (*x.list)[i] = concreteValue +} + +func (x *_MsgSubmitProposal_3_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*anypb.Any) + *x.list = append(*x.list, concreteValue) +} + +func (x *_MsgSubmitProposal_3_list) AppendMutable() protoreflect.Value { + v := new(anypb.Any) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_MsgSubmitProposal_3_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_MsgSubmitProposal_3_list) NewElement() protoreflect.Value { + v := new(anypb.Any) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_MsgSubmitProposal_3_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_MsgSubmitProposal_4_list)(nil) + +type _MsgSubmitProposal_4_list struct { + list *[]*anypb.Any +} + +func (x *_MsgSubmitProposal_4_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_MsgSubmitProposal_4_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_MsgSubmitProposal_4_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*anypb.Any) + (*x.list)[i] = concreteValue +} + +func (x *_MsgSubmitProposal_4_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*anypb.Any) + *x.list = append(*x.list, concreteValue) +} + +func (x *_MsgSubmitProposal_4_list) AppendMutable() protoreflect.Value { + v := new(anypb.Any) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_MsgSubmitProposal_4_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_MsgSubmitProposal_4_list) NewElement() protoreflect.Value { + v := new(anypb.Any) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_MsgSubmitProposal_4_list) IsValid() bool { + return x.list != nil +} + +var ( + md_MsgSubmitProposal protoreflect.MessageDescriptor + fd_MsgSubmitProposal_proposer protoreflect.FieldDescriptor + fd_MsgSubmitProposal_agent protoreflect.FieldDescriptor + fd_MsgSubmitProposal_pre_actions protoreflect.FieldDescriptor + fd_MsgSubmitProposal_post_actions protoreflect.FieldDescriptor +) + +func init() { + file_andromeda_escrow_v1alpha1_tx_proto_init() + md_MsgSubmitProposal = File_andromeda_escrow_v1alpha1_tx_proto.Messages().ByName("MsgSubmitProposal") + fd_MsgSubmitProposal_proposer = md_MsgSubmitProposal.Fields().ByName("proposer") + fd_MsgSubmitProposal_agent = md_MsgSubmitProposal.Fields().ByName("agent") + fd_MsgSubmitProposal_pre_actions = md_MsgSubmitProposal.Fields().ByName("pre_actions") + fd_MsgSubmitProposal_post_actions = md_MsgSubmitProposal.Fields().ByName("post_actions") +} + +var _ protoreflect.Message = (*fastReflection_MsgSubmitProposal)(nil) + +type fastReflection_MsgSubmitProposal MsgSubmitProposal + +func (x *MsgSubmitProposal) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgSubmitProposal)(x) +} + +func (x *MsgSubmitProposal) slowProtoReflect() protoreflect.Message { + mi := &file_andromeda_escrow_v1alpha1_tx_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_MsgSubmitProposal_messageType fastReflection_MsgSubmitProposal_messageType +var _ protoreflect.MessageType = fastReflection_MsgSubmitProposal_messageType{} + +type fastReflection_MsgSubmitProposal_messageType struct{} + +func (x fastReflection_MsgSubmitProposal_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgSubmitProposal)(nil) +} +func (x fastReflection_MsgSubmitProposal_messageType) New() protoreflect.Message { + return new(fastReflection_MsgSubmitProposal) +} +func (x fastReflection_MsgSubmitProposal_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSubmitProposal +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgSubmitProposal) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSubmitProposal +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_MsgSubmitProposal) Type() protoreflect.MessageType { + return _fastReflection_MsgSubmitProposal_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgSubmitProposal) New() protoreflect.Message { + return new(fastReflection_MsgSubmitProposal) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgSubmitProposal) Interface() protoreflect.ProtoMessage { + return (*MsgSubmitProposal)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_MsgSubmitProposal) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Proposer != "" { + value := protoreflect.ValueOfString(x.Proposer) + if !f(fd_MsgSubmitProposal_proposer, value) { + return + } + } + if x.Agent != "" { + value := protoreflect.ValueOfString(x.Agent) + if !f(fd_MsgSubmitProposal_agent, value) { + return + } + } + if len(x.PreActions) != 0 { + value := protoreflect.ValueOfList(&_MsgSubmitProposal_3_list{list: &x.PreActions}) + if !f(fd_MsgSubmitProposal_pre_actions, value) { + return + } + } + if len(x.PostActions) != 0 { + value := protoreflect.ValueOfList(&_MsgSubmitProposal_4_list{list: &x.PostActions}) + if !f(fd_MsgSubmitProposal_post_actions, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_MsgSubmitProposal) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.MsgSubmitProposal.proposer": + return x.Proposer != "" + case "andromeda.escrow.v1alpha1.MsgSubmitProposal.agent": + return x.Agent != "" + case "andromeda.escrow.v1alpha1.MsgSubmitProposal.pre_actions": + return len(x.PreActions) != 0 + case "andromeda.escrow.v1alpha1.MsgSubmitProposal.post_actions": + return len(x.PostActions) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgSubmitProposal")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.MsgSubmitProposal does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgSubmitProposal) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.MsgSubmitProposal.proposer": + x.Proposer = "" + case "andromeda.escrow.v1alpha1.MsgSubmitProposal.agent": + x.Agent = "" + case "andromeda.escrow.v1alpha1.MsgSubmitProposal.pre_actions": + x.PreActions = nil + case "andromeda.escrow.v1alpha1.MsgSubmitProposal.post_actions": + x.PostActions = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgSubmitProposal")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.MsgSubmitProposal does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_MsgSubmitProposal) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "andromeda.escrow.v1alpha1.MsgSubmitProposal.proposer": + value := x.Proposer + return protoreflect.ValueOfString(value) + case "andromeda.escrow.v1alpha1.MsgSubmitProposal.agent": + value := x.Agent + return protoreflect.ValueOfString(value) + case "andromeda.escrow.v1alpha1.MsgSubmitProposal.pre_actions": + if len(x.PreActions) == 0 { + return protoreflect.ValueOfList(&_MsgSubmitProposal_3_list{}) + } + listValue := &_MsgSubmitProposal_3_list{list: &x.PreActions} + return protoreflect.ValueOfList(listValue) + case "andromeda.escrow.v1alpha1.MsgSubmitProposal.post_actions": + if len(x.PostActions) == 0 { + return protoreflect.ValueOfList(&_MsgSubmitProposal_4_list{}) + } + listValue := &_MsgSubmitProposal_4_list{list: &x.PostActions} + return protoreflect.ValueOfList(listValue) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgSubmitProposal")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.MsgSubmitProposal does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgSubmitProposal) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.MsgSubmitProposal.proposer": + x.Proposer = value.Interface().(string) + case "andromeda.escrow.v1alpha1.MsgSubmitProposal.agent": + x.Agent = value.Interface().(string) + case "andromeda.escrow.v1alpha1.MsgSubmitProposal.pre_actions": + lv := value.List() + clv := lv.(*_MsgSubmitProposal_3_list) + x.PreActions = *clv.list + case "andromeda.escrow.v1alpha1.MsgSubmitProposal.post_actions": + lv := value.List() + clv := lv.(*_MsgSubmitProposal_4_list) + x.PostActions = *clv.list + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgSubmitProposal")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.MsgSubmitProposal does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgSubmitProposal) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.MsgSubmitProposal.pre_actions": + if x.PreActions == nil { + x.PreActions = []*anypb.Any{} + } + value := &_MsgSubmitProposal_3_list{list: &x.PreActions} + return protoreflect.ValueOfList(value) + case "andromeda.escrow.v1alpha1.MsgSubmitProposal.post_actions": + if x.PostActions == nil { + x.PostActions = []*anypb.Any{} + } + value := &_MsgSubmitProposal_4_list{list: &x.PostActions} + return protoreflect.ValueOfList(value) + case "andromeda.escrow.v1alpha1.MsgSubmitProposal.proposer": + panic(fmt.Errorf("field proposer of message andromeda.escrow.v1alpha1.MsgSubmitProposal is not mutable")) + case "andromeda.escrow.v1alpha1.MsgSubmitProposal.agent": + panic(fmt.Errorf("field agent of message andromeda.escrow.v1alpha1.MsgSubmitProposal is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgSubmitProposal")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.MsgSubmitProposal does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_MsgSubmitProposal) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.MsgSubmitProposal.proposer": + return protoreflect.ValueOfString("") + case "andromeda.escrow.v1alpha1.MsgSubmitProposal.agent": + return protoreflect.ValueOfString("") + case "andromeda.escrow.v1alpha1.MsgSubmitProposal.pre_actions": + list := []*anypb.Any{} + return protoreflect.ValueOfList(&_MsgSubmitProposal_3_list{list: &list}) + case "andromeda.escrow.v1alpha1.MsgSubmitProposal.post_actions": + list := []*anypb.Any{} + return protoreflect.ValueOfList(&_MsgSubmitProposal_4_list{list: &list}) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgSubmitProposal")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.MsgSubmitProposal does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_MsgSubmitProposal) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in andromeda.escrow.v1alpha1.MsgSubmitProposal", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_MsgSubmitProposal) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgSubmitProposal) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_MsgSubmitProposal) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_MsgSubmitProposal) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgSubmitProposal) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + l = len(x.Proposer) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Agent) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if len(x.PreActions) > 0 { + for _, e := range x.PreActions { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if len(x.PostActions) > 0 { + for _, e := range x.PostActions { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*MsgSubmitProposal) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.PostActions) > 0 { + for iNdEx := len(x.PostActions) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.PostActions[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x22 + } + } + if len(x.PreActions) > 0 { + for iNdEx := len(x.PreActions) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.PreActions[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x1a + } + } + if len(x.Agent) > 0 { + i -= len(x.Agent) + copy(dAtA[i:], x.Agent) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Agent))) + i-- + dAtA[i] = 0x12 + } + if len(x.Proposer) > 0 { + i -= len(x.Proposer) + copy(dAtA[i:], x.Proposer) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Proposer))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*MsgSubmitProposal) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSubmitProposal: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSubmitProposal: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Proposer", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Proposer = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Agent", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Agent = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PreActions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.PreActions = append(x.PreActions, &anypb.Any{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.PreActions[len(x.PreActions)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PostActions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.PostActions = append(x.PostActions, &anypb.Any{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.PostActions[len(x.PostActions)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_MsgSubmitProposalResponse protoreflect.MessageDescriptor + fd_MsgSubmitProposalResponse_id protoreflect.FieldDescriptor +) + +func init() { + file_andromeda_escrow_v1alpha1_tx_proto_init() + md_MsgSubmitProposalResponse = File_andromeda_escrow_v1alpha1_tx_proto.Messages().ByName("MsgSubmitProposalResponse") + fd_MsgSubmitProposalResponse_id = md_MsgSubmitProposalResponse.Fields().ByName("id") +} + +var _ protoreflect.Message = (*fastReflection_MsgSubmitProposalResponse)(nil) + +type fastReflection_MsgSubmitProposalResponse MsgSubmitProposalResponse + +func (x *MsgSubmitProposalResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgSubmitProposalResponse)(x) +} + +func (x *MsgSubmitProposalResponse) slowProtoReflect() protoreflect.Message { + mi := &file_andromeda_escrow_v1alpha1_tx_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_MsgSubmitProposalResponse_messageType fastReflection_MsgSubmitProposalResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgSubmitProposalResponse_messageType{} + +type fastReflection_MsgSubmitProposalResponse_messageType struct{} + +func (x fastReflection_MsgSubmitProposalResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgSubmitProposalResponse)(nil) +} +func (x fastReflection_MsgSubmitProposalResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgSubmitProposalResponse) +} +func (x fastReflection_MsgSubmitProposalResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSubmitProposalResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgSubmitProposalResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSubmitProposalResponse +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_MsgSubmitProposalResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgSubmitProposalResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgSubmitProposalResponse) New() protoreflect.Message { + return new(fastReflection_MsgSubmitProposalResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgSubmitProposalResponse) Interface() protoreflect.ProtoMessage { + return (*MsgSubmitProposalResponse)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_MsgSubmitProposalResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Id != uint64(0) { + value := protoreflect.ValueOfUint64(x.Id) + if !f(fd_MsgSubmitProposalResponse_id, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_MsgSubmitProposalResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.MsgSubmitProposalResponse.id": + return x.Id != uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgSubmitProposalResponse")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.MsgSubmitProposalResponse does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgSubmitProposalResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.MsgSubmitProposalResponse.id": + x.Id = uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgSubmitProposalResponse")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.MsgSubmitProposalResponse does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_MsgSubmitProposalResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "andromeda.escrow.v1alpha1.MsgSubmitProposalResponse.id": + value := x.Id + return protoreflect.ValueOfUint64(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgSubmitProposalResponse")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.MsgSubmitProposalResponse does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgSubmitProposalResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.MsgSubmitProposalResponse.id": + x.Id = value.Uint() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgSubmitProposalResponse")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.MsgSubmitProposalResponse does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgSubmitProposalResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.MsgSubmitProposalResponse.id": + panic(fmt.Errorf("field id of message andromeda.escrow.v1alpha1.MsgSubmitProposalResponse is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgSubmitProposalResponse")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.MsgSubmitProposalResponse does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_MsgSubmitProposalResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.MsgSubmitProposalResponse.id": + return protoreflect.ValueOfUint64(uint64(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgSubmitProposalResponse")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.MsgSubmitProposalResponse does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_MsgSubmitProposalResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in andromeda.escrow.v1alpha1.MsgSubmitProposalResponse", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_MsgSubmitProposalResponse) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgSubmitProposalResponse) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_MsgSubmitProposalResponse) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_MsgSubmitProposalResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgSubmitProposalResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.Id != 0 { + n += 1 + runtime.Sov(uint64(x.Id)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*MsgSubmitProposalResponse) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if x.Id != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Id)) + i-- + dAtA[i] = 0x8 + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*MsgSubmitProposalResponse) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSubmitProposalResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSubmitProposalResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + x.Id = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.Id |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var _ protoreflect.List = (*_MsgExec_4_list)(nil) + +type _MsgExec_4_list struct { + list *[]*anypb.Any +} + +func (x *_MsgExec_4_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_MsgExec_4_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_MsgExec_4_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*anypb.Any) + (*x.list)[i] = concreteValue +} + +func (x *_MsgExec_4_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*anypb.Any) + *x.list = append(*x.list, concreteValue) +} + +func (x *_MsgExec_4_list) AppendMutable() protoreflect.Value { + v := new(anypb.Any) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_MsgExec_4_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_MsgExec_4_list) NewElement() protoreflect.Value { + v := new(anypb.Any) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_MsgExec_4_list) IsValid() bool { + return x.list != nil +} + +var ( + md_MsgExec protoreflect.MessageDescriptor + fd_MsgExec_proposal protoreflect.FieldDescriptor + fd_MsgExec_executor protoreflect.FieldDescriptor + fd_MsgExec_agent protoreflect.FieldDescriptor + fd_MsgExec_actions protoreflect.FieldDescriptor +) + +func init() { + file_andromeda_escrow_v1alpha1_tx_proto_init() + md_MsgExec = File_andromeda_escrow_v1alpha1_tx_proto.Messages().ByName("MsgExec") + fd_MsgExec_proposal = md_MsgExec.Fields().ByName("proposal") + fd_MsgExec_executor = md_MsgExec.Fields().ByName("executor") + fd_MsgExec_agent = md_MsgExec.Fields().ByName("agent") + fd_MsgExec_actions = md_MsgExec.Fields().ByName("actions") +} + +var _ protoreflect.Message = (*fastReflection_MsgExec)(nil) + +type fastReflection_MsgExec MsgExec + +func (x *MsgExec) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgExec)(x) +} + +func (x *MsgExec) slowProtoReflect() protoreflect.Message { + mi := &file_andromeda_escrow_v1alpha1_tx_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_MsgExec_messageType fastReflection_MsgExec_messageType +var _ protoreflect.MessageType = fastReflection_MsgExec_messageType{} + +type fastReflection_MsgExec_messageType struct{} + +func (x fastReflection_MsgExec_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgExec)(nil) +} +func (x fastReflection_MsgExec_messageType) New() protoreflect.Message { + return new(fastReflection_MsgExec) +} +func (x fastReflection_MsgExec_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgExec +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgExec) Descriptor() protoreflect.MessageDescriptor { + return md_MsgExec +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_MsgExec) Type() protoreflect.MessageType { + return _fastReflection_MsgExec_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgExec) New() protoreflect.Message { + return new(fastReflection_MsgExec) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgExec) Interface() protoreflect.ProtoMessage { + return (*MsgExec)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_MsgExec) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Proposal != uint64(0) { + value := protoreflect.ValueOfUint64(x.Proposal) + if !f(fd_MsgExec_proposal, value) { + return + } + } + if x.Executor != "" { + value := protoreflect.ValueOfString(x.Executor) + if !f(fd_MsgExec_executor, value) { + return + } + } + if x.Agent != "" { + value := protoreflect.ValueOfString(x.Agent) + if !f(fd_MsgExec_agent, value) { + return + } + } + if len(x.Actions) != 0 { + value := protoreflect.ValueOfList(&_MsgExec_4_list{list: &x.Actions}) + if !f(fd_MsgExec_actions, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_MsgExec) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.MsgExec.proposal": + return x.Proposal != uint64(0) + case "andromeda.escrow.v1alpha1.MsgExec.executor": + return x.Executor != "" + case "andromeda.escrow.v1alpha1.MsgExec.agent": + return x.Agent != "" + case "andromeda.escrow.v1alpha1.MsgExec.actions": + return len(x.Actions) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgExec")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.MsgExec does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgExec) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.MsgExec.proposal": + x.Proposal = uint64(0) + case "andromeda.escrow.v1alpha1.MsgExec.executor": + x.Executor = "" + case "andromeda.escrow.v1alpha1.MsgExec.agent": + x.Agent = "" + case "andromeda.escrow.v1alpha1.MsgExec.actions": + x.Actions = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgExec")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.MsgExec does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_MsgExec) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "andromeda.escrow.v1alpha1.MsgExec.proposal": + value := x.Proposal + return protoreflect.ValueOfUint64(value) + case "andromeda.escrow.v1alpha1.MsgExec.executor": + value := x.Executor + return protoreflect.ValueOfString(value) + case "andromeda.escrow.v1alpha1.MsgExec.agent": + value := x.Agent + return protoreflect.ValueOfString(value) + case "andromeda.escrow.v1alpha1.MsgExec.actions": + if len(x.Actions) == 0 { + return protoreflect.ValueOfList(&_MsgExec_4_list{}) + } + listValue := &_MsgExec_4_list{list: &x.Actions} + return protoreflect.ValueOfList(listValue) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgExec")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.MsgExec does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgExec) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.MsgExec.proposal": + x.Proposal = value.Uint() + case "andromeda.escrow.v1alpha1.MsgExec.executor": + x.Executor = value.Interface().(string) + case "andromeda.escrow.v1alpha1.MsgExec.agent": + x.Agent = value.Interface().(string) + case "andromeda.escrow.v1alpha1.MsgExec.actions": + lv := value.List() + clv := lv.(*_MsgExec_4_list) + x.Actions = *clv.list + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgExec")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.MsgExec does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgExec) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.MsgExec.actions": + if x.Actions == nil { + x.Actions = []*anypb.Any{} + } + value := &_MsgExec_4_list{list: &x.Actions} + return protoreflect.ValueOfList(value) + case "andromeda.escrow.v1alpha1.MsgExec.proposal": + panic(fmt.Errorf("field proposal of message andromeda.escrow.v1alpha1.MsgExec is not mutable")) + case "andromeda.escrow.v1alpha1.MsgExec.executor": + panic(fmt.Errorf("field executor of message andromeda.escrow.v1alpha1.MsgExec is not mutable")) + case "andromeda.escrow.v1alpha1.MsgExec.agent": + panic(fmt.Errorf("field agent of message andromeda.escrow.v1alpha1.MsgExec is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgExec")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.MsgExec does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_MsgExec) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.MsgExec.proposal": + return protoreflect.ValueOfUint64(uint64(0)) + case "andromeda.escrow.v1alpha1.MsgExec.executor": + return protoreflect.ValueOfString("") + case "andromeda.escrow.v1alpha1.MsgExec.agent": + return protoreflect.ValueOfString("") + case "andromeda.escrow.v1alpha1.MsgExec.actions": + list := []*anypb.Any{} + return protoreflect.ValueOfList(&_MsgExec_4_list{list: &list}) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgExec")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.MsgExec does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_MsgExec) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in andromeda.escrow.v1alpha1.MsgExec", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_MsgExec) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgExec) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_MsgExec) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_MsgExec) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgExec) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.Proposal != 0 { + n += 1 + runtime.Sov(uint64(x.Proposal)) + } + l = len(x.Executor) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Agent) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if len(x.Actions) > 0 { + for _, e := range x.Actions { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*MsgExec) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.Actions) > 0 { + for iNdEx := len(x.Actions) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Actions[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x22 + } + } + if len(x.Agent) > 0 { + i -= len(x.Agent) + copy(dAtA[i:], x.Agent) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Agent))) + i-- + dAtA[i] = 0x1a + } + if len(x.Executor) > 0 { + i -= len(x.Executor) + copy(dAtA[i:], x.Executor) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Executor))) + i-- + dAtA[i] = 0x12 + } + if x.Proposal != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Proposal)) + i-- + dAtA[i] = 0x8 + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*MsgExec) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgExec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgExec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Proposal", wireType) + } + x.Proposal = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.Proposal |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Executor", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Executor = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Agent", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Agent = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Actions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Actions = append(x.Actions, &anypb.Any{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Actions[len(x.Actions)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_MsgExecResponse protoreflect.MessageDescriptor +) + +func init() { + file_andromeda_escrow_v1alpha1_tx_proto_init() + md_MsgExecResponse = File_andromeda_escrow_v1alpha1_tx_proto.Messages().ByName("MsgExecResponse") +} + +var _ protoreflect.Message = (*fastReflection_MsgExecResponse)(nil) + +type fastReflection_MsgExecResponse MsgExecResponse + +func (x *MsgExecResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgExecResponse)(x) +} + +func (x *MsgExecResponse) slowProtoReflect() protoreflect.Message { + mi := &file_andromeda_escrow_v1alpha1_tx_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_MsgExecResponse_messageType fastReflection_MsgExecResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgExecResponse_messageType{} + +type fastReflection_MsgExecResponse_messageType struct{} + +func (x fastReflection_MsgExecResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgExecResponse)(nil) +} +func (x fastReflection_MsgExecResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgExecResponse) +} +func (x fastReflection_MsgExecResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgExecResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgExecResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgExecResponse +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_MsgExecResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgExecResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgExecResponse) New() protoreflect.Message { + return new(fastReflection_MsgExecResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgExecResponse) Interface() protoreflect.ProtoMessage { + return (*MsgExecResponse)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_MsgExecResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_MsgExecResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgExecResponse")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.MsgExecResponse does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgExecResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgExecResponse")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.MsgExecResponse does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_MsgExecResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgExecResponse")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.MsgExecResponse does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgExecResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgExecResponse")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.MsgExecResponse does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgExecResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgExecResponse")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.MsgExecResponse does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_MsgExecResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgExecResponse")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.MsgExecResponse does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_MsgExecResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in andromeda.escrow.v1alpha1.MsgExecResponse", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_MsgExecResponse) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgExecResponse) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_MsgExecResponse) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_MsgExecResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgExecResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*MsgExecResponse) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*MsgExecResponse) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgExecResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgExecResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc (unknown) +// source: andromeda/escrow/v1alpha1/tx.proto + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// MsgUpdateParams is the Msg/UpdateParams request type. +type MsgUpdateParams struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // the address of the module authority + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // the parameters to update + // Note: All parameters must be supplied. + Params *MsgUpdateParams_Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"` +} + +func (x *MsgUpdateParams) Reset() { + *x = MsgUpdateParams{} + if protoimpl.UnsafeEnabled { + mi := &file_andromeda_escrow_v1alpha1_tx_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgUpdateParams) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgUpdateParams) ProtoMessage() {} + +// Deprecated: Use MsgUpdateParams.ProtoReflect.Descriptor instead. +func (*MsgUpdateParams) Descriptor() ([]byte, []int) { + return file_andromeda_escrow_v1alpha1_tx_proto_rawDescGZIP(), []int{0} +} + +func (x *MsgUpdateParams) GetAuthority() string { + if x != nil { + return x.Authority + } + return "" +} + +func (x *MsgUpdateParams) GetParams() *MsgUpdateParams_Params { + if x != nil { + return x.Params + } + return nil +} + +// MsgUpdateParamsResponse is the Msg/UpdateParams response type. +type MsgUpdateParamsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *MsgUpdateParamsResponse) Reset() { + *x = MsgUpdateParamsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_andromeda_escrow_v1alpha1_tx_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgUpdateParamsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgUpdateParamsResponse) ProtoMessage() {} + +// Deprecated: Use MsgUpdateParamsResponse.ProtoReflect.Descriptor instead. +func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int) { + return file_andromeda_escrow_v1alpha1_tx_proto_rawDescGZIP(), []int{1} +} + +// MsgCreateAgent is the Msg/CreateAgent request type. +type MsgCreateAgent struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // the address of the account creating the agent + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` +} + +func (x *MsgCreateAgent) Reset() { + *x = MsgCreateAgent{} + if protoimpl.UnsafeEnabled { + mi := &file_andromeda_escrow_v1alpha1_tx_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgCreateAgent) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgCreateAgent) ProtoMessage() {} + +// Deprecated: Use MsgCreateAgent.ProtoReflect.Descriptor instead. +func (*MsgCreateAgent) Descriptor() ([]byte, []int) { + return file_andromeda_escrow_v1alpha1_tx_proto_rawDescGZIP(), []int{2} +} + +func (x *MsgCreateAgent) GetCreator() string { + if x != nil { + return x.Creator + } + return "" +} + +// MsgCreateAgentResponse is the Msg/CreateAgent response type. +type MsgCreateAgentResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // the address of the created agent + Agent string `protobuf:"bytes,1,opt,name=agent,proto3" json:"agent,omitempty"` +} + +func (x *MsgCreateAgentResponse) Reset() { + *x = MsgCreateAgentResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_andromeda_escrow_v1alpha1_tx_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgCreateAgentResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgCreateAgentResponse) ProtoMessage() {} + +// Deprecated: Use MsgCreateAgentResponse.ProtoReflect.Descriptor instead. +func (*MsgCreateAgentResponse) Descriptor() ([]byte, []int) { + return file_andromeda_escrow_v1alpha1_tx_proto_rawDescGZIP(), []int{3} +} + +func (x *MsgCreateAgentResponse) GetAgent() string { + if x != nil { + return x.Agent + } + return "" +} + +// MsgSubmitProposal is the Msg/SubmitProposal request type. +type MsgSubmitProposal struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // the address of the proposer + Proposer string `protobuf:"bytes,1,opt,name=proposer,proto3" json:"proposer,omitempty"` + // the address of the agent in charge + // Note: it must be created by the proposer. + Agent string `protobuf:"bytes,2,opt,name=agent,proto3" json:"agent,omitempty"` + // the messages which will be executed on the submission + // Note: the signer of each message must be either the proposer or the agent. + PreActions []*anypb.Any `protobuf:"bytes,3,rep,name=pre_actions,json=preActions,proto3" json:"pre_actions,omitempty"` + // the messages which will be executed after the actions included in Msg/Exec + // Note: the signer of each message must be either the proposer or the agent. + PostActions []*anypb.Any `protobuf:"bytes,4,rep,name=post_actions,json=postActions,proto3" json:"post_actions,omitempty"` +} + +func (x *MsgSubmitProposal) Reset() { + *x = MsgSubmitProposal{} + if protoimpl.UnsafeEnabled { + mi := &file_andromeda_escrow_v1alpha1_tx_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgSubmitProposal) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgSubmitProposal) ProtoMessage() {} + +// Deprecated: Use MsgSubmitProposal.ProtoReflect.Descriptor instead. +func (*MsgSubmitProposal) Descriptor() ([]byte, []int) { + return file_andromeda_escrow_v1alpha1_tx_proto_rawDescGZIP(), []int{4} +} + +func (x *MsgSubmitProposal) GetProposer() string { + if x != nil { + return x.Proposer + } + return "" +} + +func (x *MsgSubmitProposal) GetAgent() string { + if x != nil { + return x.Agent + } + return "" +} + +func (x *MsgSubmitProposal) GetPreActions() []*anypb.Any { + if x != nil { + return x.PreActions + } + return nil +} + +func (x *MsgSubmitProposal) GetPostActions() []*anypb.Any { + if x != nil { + return x.PostActions + } + return nil +} + +// MsgSubmitProposalResponse is the Msg/SubmitProposal response type. +type MsgSubmitProposalResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // the identifier of the submitted proposal + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (x *MsgSubmitProposalResponse) Reset() { + *x = MsgSubmitProposalResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_andromeda_escrow_v1alpha1_tx_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgSubmitProposalResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgSubmitProposalResponse) ProtoMessage() {} + +// Deprecated: Use MsgSubmitProposalResponse.ProtoReflect.Descriptor instead. +func (*MsgSubmitProposalResponse) Descriptor() ([]byte, []int) { + return file_andromeda_escrow_v1alpha1_tx_proto_rawDescGZIP(), []int{5} +} + +func (x *MsgSubmitProposalResponse) GetId() uint64 { + if x != nil { + return x.Id + } + return 0 +} + +// MsgExec is the Msg/Exec request type. +type MsgExec struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // the identifier of the proposal + Proposal uint64 `protobuf:"varint,1,opt,name=proposal,proto3" json:"proposal,omitempty"` + // the address of the account executing the proposal + Executor string `protobuf:"bytes,2,opt,name=executor,proto3" json:"executor,omitempty"` + // the address of the agent in charge + Agent string `protobuf:"bytes,3,opt,name=agent,proto3" json:"agent,omitempty"` + // the messages which will be executed on the execution + // Note: the signer of each message must be either the executor or the agent. + Actions []*anypb.Any `protobuf:"bytes,4,rep,name=actions,proto3" json:"actions,omitempty"` +} + +func (x *MsgExec) Reset() { + *x = MsgExec{} + if protoimpl.UnsafeEnabled { + mi := &file_andromeda_escrow_v1alpha1_tx_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgExec) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgExec) ProtoMessage() {} + +// Deprecated: Use MsgExec.ProtoReflect.Descriptor instead. +func (*MsgExec) Descriptor() ([]byte, []int) { + return file_andromeda_escrow_v1alpha1_tx_proto_rawDescGZIP(), []int{6} +} + +func (x *MsgExec) GetProposal() uint64 { + if x != nil { + return x.Proposal + } + return 0 +} + +func (x *MsgExec) GetExecutor() string { + if x != nil { + return x.Executor + } + return "" +} + +func (x *MsgExec) GetAgent() string { + if x != nil { + return x.Agent + } + return "" +} + +func (x *MsgExec) GetActions() []*anypb.Any { + if x != nil { + return x.Actions + } + return nil +} + +// MsgExecResponse is the Msg/Exec response type. +type MsgExecResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *MsgExecResponse) Reset() { + *x = MsgExecResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_andromeda_escrow_v1alpha1_tx_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgExecResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgExecResponse) ProtoMessage() {} + +// Deprecated: Use MsgExecResponse.ProtoReflect.Descriptor instead. +func (*MsgExecResponse) Descriptor() ([]byte, []int) { + return file_andromeda_escrow_v1alpha1_tx_proto_rawDescGZIP(), []int{7} +} + +// Params defines the parameters for the module. +type MsgUpdateParams_Params struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *MsgUpdateParams_Params) Reset() { + *x = MsgUpdateParams_Params{} + if protoimpl.UnsafeEnabled { + mi := &file_andromeda_escrow_v1alpha1_tx_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgUpdateParams_Params) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgUpdateParams_Params) ProtoMessage() {} + +// Deprecated: Use MsgUpdateParams_Params.ProtoReflect.Descriptor instead. +func (*MsgUpdateParams_Params) Descriptor() ([]byte, []int) { + return file_andromeda_escrow_v1alpha1_tx_proto_rawDescGZIP(), []int{0, 0} +} + +var File_andromeda_escrow_v1alpha1_tx_proto protoreflect.FileDescriptor + +var file_andromeda_escrow_v1alpha1_tx_proto_rawDesc = []byte{ + 0x0a, 0x22, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x65, 0x73, 0x63, 0x72, + 0x6f, 0x77, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x74, 0x78, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, + 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x1a, + 0x17, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x6d, 0x73, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x6d, + 0x73, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xae, + 0x01, 0x0a, 0x0f, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, + 0x6d, 0x73, 0x12, 0x36, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, + 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x49, 0x0a, 0x06, 0x70, 0x61, + 0x72, 0x61, 0x6d, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x61, 0x6e, 0x64, + 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x06, 0x70, + 0x61, 0x72, 0x61, 0x6d, 0x73, 0x1a, 0x08, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x3a, + 0x0e, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x22, + 0x19, 0x0a, 0x17, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, + 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x52, 0x0a, 0x0e, 0x4d, 0x73, + 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x32, 0x0a, 0x07, + 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, + 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, + 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x48, + 0x0a, 0x16, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x67, 0x65, 0x6e, 0x74, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x05, 0x61, 0x67, 0x65, 0x6e, + 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, + 0x67, 0x52, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x22, 0xf8, 0x01, 0x0a, 0x11, 0x4d, 0x73, 0x67, + 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x34, + 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, + 0x6f, 0x73, 0x65, 0x72, 0x12, 0x2e, 0x0a, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, + 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x05, 0x61, + 0x67, 0x65, 0x6e, 0x74, 0x12, 0x35, 0x0a, 0x0b, 0x70, 0x72, 0x65, 0x5f, 0x61, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, + 0x0a, 0x70, 0x72, 0x65, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x37, 0x0a, 0x0c, 0x70, + 0x6f, 0x73, 0x74, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, 0x70, 0x6f, 0x73, 0x74, 0x41, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x3a, 0x0d, 0x82, 0xe7, 0xb0, 0x2a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, + 0x73, 0x65, 0x72, 0x22, 0x2b, 0x0a, 0x19, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, + 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, + 0x22, 0xca, 0x01, 0x0a, 0x07, 0x4d, 0x73, 0x67, 0x45, 0x78, 0x65, 0x63, 0x12, 0x1a, 0x0a, 0x08, + 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, + 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x34, 0x0a, 0x08, 0x65, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, + 0x72, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x12, 0x2e, + 0x0a, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, + 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x2e, + 0x0a, 0x07, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x07, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x3a, 0x0d, + 0x82, 0xe7, 0xb0, 0x2a, 0x08, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x22, 0x11, 0x0a, + 0x0f, 0x4d, 0x73, 0x67, 0x45, 0x78, 0x65, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x32, 0xb7, 0x03, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x6e, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x2a, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, + 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, + 0x72, 0x61, 0x6d, 0x73, 0x1a, 0x32, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, + 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6b, 0x0a, 0x0b, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x29, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, + 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x67, 0x65, + 0x6e, 0x74, 0x1a, 0x31, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, + 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, + 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x74, 0x0a, 0x0e, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x50, + 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x2c, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, + 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x50, 0x72, 0x6f, + 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x1a, 0x34, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, + 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x6f, + 0x73, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x56, 0x0a, 0x04, 0x45, + 0x78, 0x65, 0x63, 0x12, 0x22, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, + 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, + 0x4d, 0x73, 0x67, 0x45, 0x78, 0x65, 0x63, 0x1a, 0x2a, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, + 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x45, 0x78, 0x65, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x1a, 0x05, 0x80, 0xe7, 0xb0, 0x2a, 0x01, 0x42, 0xdc, 0x01, 0x0a, 0x1d, 0x63, + 0x6f, 0x6d, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, + 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x07, 0x54, 0x78, + 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2c, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x64, + 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2f, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x3b, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x45, 0x58, 0xaa, 0x02, 0x19, 0x41, 0x6e, + 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x56, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xca, 0x02, 0x19, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, + 0x65, 0x64, 0x61, 0x5c, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0xe2, 0x02, 0x25, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x5c, + 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x5c, + 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1b, 0x41, 0x6e, + 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x3a, 0x3a, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x3a, + 0x3a, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, +} + +var ( + file_andromeda_escrow_v1alpha1_tx_proto_rawDescOnce sync.Once + file_andromeda_escrow_v1alpha1_tx_proto_rawDescData = file_andromeda_escrow_v1alpha1_tx_proto_rawDesc +) + +func file_andromeda_escrow_v1alpha1_tx_proto_rawDescGZIP() []byte { + file_andromeda_escrow_v1alpha1_tx_proto_rawDescOnce.Do(func() { + file_andromeda_escrow_v1alpha1_tx_proto_rawDescData = protoimpl.X.CompressGZIP(file_andromeda_escrow_v1alpha1_tx_proto_rawDescData) + }) + return file_andromeda_escrow_v1alpha1_tx_proto_rawDescData +} + +var file_andromeda_escrow_v1alpha1_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 9) +var file_andromeda_escrow_v1alpha1_tx_proto_goTypes = []interface{}{ + (*MsgUpdateParams)(nil), // 0: andromeda.escrow.v1alpha1.MsgUpdateParams + (*MsgUpdateParamsResponse)(nil), // 1: andromeda.escrow.v1alpha1.MsgUpdateParamsResponse + (*MsgCreateAgent)(nil), // 2: andromeda.escrow.v1alpha1.MsgCreateAgent + (*MsgCreateAgentResponse)(nil), // 3: andromeda.escrow.v1alpha1.MsgCreateAgentResponse + (*MsgSubmitProposal)(nil), // 4: andromeda.escrow.v1alpha1.MsgSubmitProposal + (*MsgSubmitProposalResponse)(nil), // 5: andromeda.escrow.v1alpha1.MsgSubmitProposalResponse + (*MsgExec)(nil), // 6: andromeda.escrow.v1alpha1.MsgExec + (*MsgExecResponse)(nil), // 7: andromeda.escrow.v1alpha1.MsgExecResponse + (*MsgUpdateParams_Params)(nil), // 8: andromeda.escrow.v1alpha1.MsgUpdateParams.Params + (*anypb.Any)(nil), // 9: google.protobuf.Any +} +var file_andromeda_escrow_v1alpha1_tx_proto_depIdxs = []int32{ + 8, // 0: andromeda.escrow.v1alpha1.MsgUpdateParams.params:type_name -> andromeda.escrow.v1alpha1.MsgUpdateParams.Params + 9, // 1: andromeda.escrow.v1alpha1.MsgSubmitProposal.pre_actions:type_name -> google.protobuf.Any + 9, // 2: andromeda.escrow.v1alpha1.MsgSubmitProposal.post_actions:type_name -> google.protobuf.Any + 9, // 3: andromeda.escrow.v1alpha1.MsgExec.actions:type_name -> google.protobuf.Any + 0, // 4: andromeda.escrow.v1alpha1.Msg.UpdateParams:input_type -> andromeda.escrow.v1alpha1.MsgUpdateParams + 2, // 5: andromeda.escrow.v1alpha1.Msg.CreateAgent:input_type -> andromeda.escrow.v1alpha1.MsgCreateAgent + 4, // 6: andromeda.escrow.v1alpha1.Msg.SubmitProposal:input_type -> andromeda.escrow.v1alpha1.MsgSubmitProposal + 6, // 7: andromeda.escrow.v1alpha1.Msg.Exec:input_type -> andromeda.escrow.v1alpha1.MsgExec + 1, // 8: andromeda.escrow.v1alpha1.Msg.UpdateParams:output_type -> andromeda.escrow.v1alpha1.MsgUpdateParamsResponse + 3, // 9: andromeda.escrow.v1alpha1.Msg.CreateAgent:output_type -> andromeda.escrow.v1alpha1.MsgCreateAgentResponse + 5, // 10: andromeda.escrow.v1alpha1.Msg.SubmitProposal:output_type -> andromeda.escrow.v1alpha1.MsgSubmitProposalResponse + 7, // 11: andromeda.escrow.v1alpha1.Msg.Exec:output_type -> andromeda.escrow.v1alpha1.MsgExecResponse + 8, // [8:12] is the sub-list for method output_type + 4, // [4:8] is the sub-list for method input_type + 4, // [4:4] is the sub-list for extension type_name + 4, // [4:4] is the sub-list for extension extendee + 0, // [0:4] is the sub-list for field type_name +} + +func init() { file_andromeda_escrow_v1alpha1_tx_proto_init() } +func file_andromeda_escrow_v1alpha1_tx_proto_init() { + if File_andromeda_escrow_v1alpha1_tx_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_andromeda_escrow_v1alpha1_tx_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgUpdateParams); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_andromeda_escrow_v1alpha1_tx_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgUpdateParamsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_andromeda_escrow_v1alpha1_tx_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgCreateAgent); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_andromeda_escrow_v1alpha1_tx_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgCreateAgentResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_andromeda_escrow_v1alpha1_tx_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgSubmitProposal); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_andromeda_escrow_v1alpha1_tx_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgSubmitProposalResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_andromeda_escrow_v1alpha1_tx_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgExec); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_andromeda_escrow_v1alpha1_tx_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgExecResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_andromeda_escrow_v1alpha1_tx_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgUpdateParams_Params); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_andromeda_escrow_v1alpha1_tx_proto_rawDesc, + NumEnums: 0, + NumMessages: 9, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_andromeda_escrow_v1alpha1_tx_proto_goTypes, + DependencyIndexes: file_andromeda_escrow_v1alpha1_tx_proto_depIdxs, + MessageInfos: file_andromeda_escrow_v1alpha1_tx_proto_msgTypes, + }.Build() + File_andromeda_escrow_v1alpha1_tx_proto = out.File + file_andromeda_escrow_v1alpha1_tx_proto_rawDesc = nil + file_andromeda_escrow_v1alpha1_tx_proto_goTypes = nil + file_andromeda_escrow_v1alpha1_tx_proto_depIdxs = nil +} diff --git a/x/escrow/api/andromeda/escrow/v1alpha1/tx_grpc.pb.go b/x/escrow/api/andromeda/escrow/v1alpha1/tx_grpc.pb.go new file mode 100644 index 0000000..e1b99ea --- /dev/null +++ b/x/escrow/api/andromeda/escrow/v1alpha1/tx_grpc.pb.go @@ -0,0 +1,228 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.3.0 +// - protoc (unknown) +// source: andromeda/escrow/v1alpha1/tx.proto + +package escrowv1alpha1 + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +const ( + Msg_UpdateParams_FullMethodName = "/andromeda.escrow.v1alpha1.Msg/UpdateParams" + Msg_CreateAgent_FullMethodName = "/andromeda.escrow.v1alpha1.Msg/CreateAgent" + Msg_SubmitProposal_FullMethodName = "/andromeda.escrow.v1alpha1.Msg/SubmitProposal" + Msg_Exec_FullMethodName = "/andromeda.escrow.v1alpha1.Msg/Exec" +) + +// MsgClient is the client API for Msg service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type MsgClient interface { + // UpdateParams updates the module parameters. + UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) + // CreateAgent creates an escrow agent for a proposal. + CreateAgent(ctx context.Context, in *MsgCreateAgent, opts ...grpc.CallOption) (*MsgCreateAgentResponse, error) + // SubmitProposal submits a proposal. + SubmitProposal(ctx context.Context, in *MsgSubmitProposal, opts ...grpc.CallOption) (*MsgSubmitProposalResponse, error) + // Exec executes a proposal. + Exec(ctx context.Context, in *MsgExec, opts ...grpc.CallOption) (*MsgExecResponse, error) +} + +type msgClient struct { + cc grpc.ClientConnInterface +} + +func NewMsgClient(cc grpc.ClientConnInterface) MsgClient { + return &msgClient{cc} +} + +func (c *msgClient) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) { + out := new(MsgUpdateParamsResponse) + err := c.cc.Invoke(ctx, Msg_UpdateParams_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) CreateAgent(ctx context.Context, in *MsgCreateAgent, opts ...grpc.CallOption) (*MsgCreateAgentResponse, error) { + out := new(MsgCreateAgentResponse) + err := c.cc.Invoke(ctx, Msg_CreateAgent_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) SubmitProposal(ctx context.Context, in *MsgSubmitProposal, opts ...grpc.CallOption) (*MsgSubmitProposalResponse, error) { + out := new(MsgSubmitProposalResponse) + err := c.cc.Invoke(ctx, Msg_SubmitProposal_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) Exec(ctx context.Context, in *MsgExec, opts ...grpc.CallOption) (*MsgExecResponse, error) { + out := new(MsgExecResponse) + err := c.cc.Invoke(ctx, Msg_Exec_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// MsgServer is the server API for Msg service. +// All implementations must embed UnimplementedMsgServer +// for forward compatibility +type MsgServer interface { + // UpdateParams updates the module parameters. + UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) + // CreateAgent creates an escrow agent for a proposal. + CreateAgent(context.Context, *MsgCreateAgent) (*MsgCreateAgentResponse, error) + // SubmitProposal submits a proposal. + SubmitProposal(context.Context, *MsgSubmitProposal) (*MsgSubmitProposalResponse, error) + // Exec executes a proposal. + Exec(context.Context, *MsgExec) (*MsgExecResponse, error) + mustEmbedUnimplementedMsgServer() +} + +// UnimplementedMsgServer must be embedded to have forward compatible implementations. +type UnimplementedMsgServer struct { +} + +func (UnimplementedMsgServer) UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateParams not implemented") +} +func (UnimplementedMsgServer) CreateAgent(context.Context, *MsgCreateAgent) (*MsgCreateAgentResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateAgent not implemented") +} +func (UnimplementedMsgServer) SubmitProposal(context.Context, *MsgSubmitProposal) (*MsgSubmitProposalResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SubmitProposal not implemented") +} +func (UnimplementedMsgServer) Exec(context.Context, *MsgExec) (*MsgExecResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Exec not implemented") +} +func (UnimplementedMsgServer) mustEmbedUnimplementedMsgServer() {} + +// UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to MsgServer will +// result in compilation errors. +type UnsafeMsgServer interface { + mustEmbedUnimplementedMsgServer() +} + +func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer) { + s.RegisterService(&Msg_ServiceDesc, srv) +} + +func _Msg_UpdateParams_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgUpdateParams) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).UpdateParams(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_UpdateParams_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).UpdateParams(ctx, req.(*MsgUpdateParams)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_CreateAgent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgCreateAgent) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).CreateAgent(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_CreateAgent_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).CreateAgent(ctx, req.(*MsgCreateAgent)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_SubmitProposal_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgSubmitProposal) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).SubmitProposal(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_SubmitProposal_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).SubmitProposal(ctx, req.(*MsgSubmitProposal)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_Exec_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgExec) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).Exec(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_Exec_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).Exec(ctx, req.(*MsgExec)) + } + return interceptor(ctx, in, info, handler) +} + +// Msg_ServiceDesc is the grpc.ServiceDesc for Msg service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var Msg_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "andromeda.escrow.v1alpha1.Msg", + HandlerType: (*MsgServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "UpdateParams", + Handler: _Msg_UpdateParams_Handler, + }, + { + MethodName: "CreateAgent", + Handler: _Msg_CreateAgent_Handler, + }, + { + MethodName: "SubmitProposal", + Handler: _Msg_SubmitProposal_Handler, + }, + { + MethodName: "Exec", + Handler: _Msg_Exec_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "andromeda/escrow/v1alpha1/tx.proto", +} diff --git a/x/escrow/api/andromeda/escrow/v1alpha1/types.pulsar.go b/x/escrow/api/andromeda/escrow/v1alpha1/types.pulsar.go new file mode 100644 index 0000000..98d2c48 --- /dev/null +++ b/x/escrow/api/andromeda/escrow/v1alpha1/types.pulsar.go @@ -0,0 +1,1674 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package escrowv1alpha1 + +import ( + fmt "fmt" + runtime "github.com/cosmos/cosmos-proto/runtime" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoiface "google.golang.org/protobuf/runtime/protoiface" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + anypb "google.golang.org/protobuf/types/known/anypb" + io "io" + reflect "reflect" + sync "sync" +) + +var ( + md_Params protoreflect.MessageDescriptor +) + +func init() { + file_andromeda_escrow_v1alpha1_types_proto_init() + md_Params = File_andromeda_escrow_v1alpha1_types_proto.Messages().ByName("Params") +} + +var _ protoreflect.Message = (*fastReflection_Params)(nil) + +type fastReflection_Params Params + +func (x *Params) ProtoReflect() protoreflect.Message { + return (*fastReflection_Params)(x) +} + +func (x *Params) slowProtoReflect() protoreflect.Message { + mi := &file_andromeda_escrow_v1alpha1_types_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_Params_messageType fastReflection_Params_messageType +var _ protoreflect.MessageType = fastReflection_Params_messageType{} + +type fastReflection_Params_messageType struct{} + +func (x fastReflection_Params_messageType) Zero() protoreflect.Message { + return (*fastReflection_Params)(nil) +} +func (x fastReflection_Params_messageType) New() protoreflect.Message { + return new(fastReflection_Params) +} +func (x fastReflection_Params_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_Params +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_Params) Descriptor() protoreflect.MessageDescriptor { + return md_Params +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_Params) Type() protoreflect.MessageType { + return _fastReflection_Params_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_Params) New() protoreflect.Message { + return new(fastReflection_Params) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_Params) Interface() protoreflect.ProtoMessage { + return (*Params)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_Params) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_Params) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.Params")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.Params does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_Params) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.Params")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.Params does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_Params) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.Params")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.Params does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_Params) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.Params")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.Params does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_Params) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.Params")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.Params does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_Params) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.Params")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.Params does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_Params) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in andromeda.escrow.v1alpha1.Params", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_Params) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_Params) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_Params) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*Params) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*Params) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*Params) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Params: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_Agent protoreflect.MessageDescriptor +) + +func init() { + file_andromeda_escrow_v1alpha1_types_proto_init() + md_Agent = File_andromeda_escrow_v1alpha1_types_proto.Messages().ByName("Agent") +} + +var _ protoreflect.Message = (*fastReflection_Agent)(nil) + +type fastReflection_Agent Agent + +func (x *Agent) ProtoReflect() protoreflect.Message { + return (*fastReflection_Agent)(x) +} + +func (x *Agent) slowProtoReflect() protoreflect.Message { + mi := &file_andromeda_escrow_v1alpha1_types_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_Agent_messageType fastReflection_Agent_messageType +var _ protoreflect.MessageType = fastReflection_Agent_messageType{} + +type fastReflection_Agent_messageType struct{} + +func (x fastReflection_Agent_messageType) Zero() protoreflect.Message { + return (*fastReflection_Agent)(nil) +} +func (x fastReflection_Agent_messageType) New() protoreflect.Message { + return new(fastReflection_Agent) +} +func (x fastReflection_Agent_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_Agent +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_Agent) Descriptor() protoreflect.MessageDescriptor { + return md_Agent +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_Agent) Type() protoreflect.MessageType { + return _fastReflection_Agent_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_Agent) New() protoreflect.Message { + return new(fastReflection_Agent) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_Agent) Interface() protoreflect.ProtoMessage { + return (*Agent)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_Agent) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_Agent) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.Agent")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.Agent does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_Agent) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.Agent")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.Agent does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_Agent) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.Agent")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.Agent does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_Agent) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.Agent")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.Agent does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_Agent) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.Agent")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.Agent does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_Agent) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.Agent")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.Agent does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_Agent) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in andromeda.escrow.v1alpha1.Agent", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_Agent) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_Agent) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_Agent) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_Agent) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*Agent) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*Agent) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*Agent) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Agent: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Agent: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var _ protoreflect.List = (*_Proposal_2_list)(nil) + +type _Proposal_2_list struct { + list *[]*anypb.Any +} + +func (x *_Proposal_2_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_Proposal_2_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_Proposal_2_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*anypb.Any) + (*x.list)[i] = concreteValue +} + +func (x *_Proposal_2_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*anypb.Any) + *x.list = append(*x.list, concreteValue) +} + +func (x *_Proposal_2_list) AppendMutable() protoreflect.Value { + v := new(anypb.Any) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_Proposal_2_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_Proposal_2_list) NewElement() protoreflect.Value { + v := new(anypb.Any) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_Proposal_2_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_Proposal_3_list)(nil) + +type _Proposal_3_list struct { + list *[]*anypb.Any +} + +func (x *_Proposal_3_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_Proposal_3_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_Proposal_3_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*anypb.Any) + (*x.list)[i] = concreteValue +} + +func (x *_Proposal_3_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*anypb.Any) + *x.list = append(*x.list, concreteValue) +} + +func (x *_Proposal_3_list) AppendMutable() protoreflect.Value { + v := new(anypb.Any) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_Proposal_3_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_Proposal_3_list) NewElement() protoreflect.Value { + v := new(anypb.Any) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_Proposal_3_list) IsValid() bool { + return x.list != nil +} + +var ( + md_Proposal protoreflect.MessageDescriptor + fd_Proposal_agent protoreflect.FieldDescriptor + fd_Proposal_pre_actions protoreflect.FieldDescriptor + fd_Proposal_post_actions protoreflect.FieldDescriptor +) + +func init() { + file_andromeda_escrow_v1alpha1_types_proto_init() + md_Proposal = File_andromeda_escrow_v1alpha1_types_proto.Messages().ByName("Proposal") + fd_Proposal_agent = md_Proposal.Fields().ByName("agent") + fd_Proposal_pre_actions = md_Proposal.Fields().ByName("pre_actions") + fd_Proposal_post_actions = md_Proposal.Fields().ByName("post_actions") +} + +var _ protoreflect.Message = (*fastReflection_Proposal)(nil) + +type fastReflection_Proposal Proposal + +func (x *Proposal) ProtoReflect() protoreflect.Message { + return (*fastReflection_Proposal)(x) +} + +func (x *Proposal) slowProtoReflect() protoreflect.Message { + mi := &file_andromeda_escrow_v1alpha1_types_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_Proposal_messageType fastReflection_Proposal_messageType +var _ protoreflect.MessageType = fastReflection_Proposal_messageType{} + +type fastReflection_Proposal_messageType struct{} + +func (x fastReflection_Proposal_messageType) Zero() protoreflect.Message { + return (*fastReflection_Proposal)(nil) +} +func (x fastReflection_Proposal_messageType) New() protoreflect.Message { + return new(fastReflection_Proposal) +} +func (x fastReflection_Proposal_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_Proposal +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_Proposal) Descriptor() protoreflect.MessageDescriptor { + return md_Proposal +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_Proposal) Type() protoreflect.MessageType { + return _fastReflection_Proposal_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_Proposal) New() protoreflect.Message { + return new(fastReflection_Proposal) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_Proposal) Interface() protoreflect.ProtoMessage { + return (*Proposal)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_Proposal) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.Agent) != 0 { + value := protoreflect.ValueOfBytes(x.Agent) + if !f(fd_Proposal_agent, value) { + return + } + } + if len(x.PreActions) != 0 { + value := protoreflect.ValueOfList(&_Proposal_2_list{list: &x.PreActions}) + if !f(fd_Proposal_pre_actions, value) { + return + } + } + if len(x.PostActions) != 0 { + value := protoreflect.ValueOfList(&_Proposal_3_list{list: &x.PostActions}) + if !f(fd_Proposal_post_actions, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_Proposal) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.Proposal.agent": + return len(x.Agent) != 0 + case "andromeda.escrow.v1alpha1.Proposal.pre_actions": + return len(x.PreActions) != 0 + case "andromeda.escrow.v1alpha1.Proposal.post_actions": + return len(x.PostActions) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.Proposal")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.Proposal does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_Proposal) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.Proposal.agent": + x.Agent = nil + case "andromeda.escrow.v1alpha1.Proposal.pre_actions": + x.PreActions = nil + case "andromeda.escrow.v1alpha1.Proposal.post_actions": + x.PostActions = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.Proposal")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.Proposal does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_Proposal) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "andromeda.escrow.v1alpha1.Proposal.agent": + value := x.Agent + return protoreflect.ValueOfBytes(value) + case "andromeda.escrow.v1alpha1.Proposal.pre_actions": + if len(x.PreActions) == 0 { + return protoreflect.ValueOfList(&_Proposal_2_list{}) + } + listValue := &_Proposal_2_list{list: &x.PreActions} + return protoreflect.ValueOfList(listValue) + case "andromeda.escrow.v1alpha1.Proposal.post_actions": + if len(x.PostActions) == 0 { + return protoreflect.ValueOfList(&_Proposal_3_list{}) + } + listValue := &_Proposal_3_list{list: &x.PostActions} + return protoreflect.ValueOfList(listValue) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.Proposal")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.Proposal does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_Proposal) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.Proposal.agent": + x.Agent = value.Bytes() + case "andromeda.escrow.v1alpha1.Proposal.pre_actions": + lv := value.List() + clv := lv.(*_Proposal_2_list) + x.PreActions = *clv.list + case "andromeda.escrow.v1alpha1.Proposal.post_actions": + lv := value.List() + clv := lv.(*_Proposal_3_list) + x.PostActions = *clv.list + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.Proposal")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.Proposal does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_Proposal) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.Proposal.pre_actions": + if x.PreActions == nil { + x.PreActions = []*anypb.Any{} + } + value := &_Proposal_2_list{list: &x.PreActions} + return protoreflect.ValueOfList(value) + case "andromeda.escrow.v1alpha1.Proposal.post_actions": + if x.PostActions == nil { + x.PostActions = []*anypb.Any{} + } + value := &_Proposal_3_list{list: &x.PostActions} + return protoreflect.ValueOfList(value) + case "andromeda.escrow.v1alpha1.Proposal.agent": + panic(fmt.Errorf("field agent of message andromeda.escrow.v1alpha1.Proposal is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.Proposal")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.Proposal does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_Proposal) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.Proposal.agent": + return protoreflect.ValueOfBytes(nil) + case "andromeda.escrow.v1alpha1.Proposal.pre_actions": + list := []*anypb.Any{} + return protoreflect.ValueOfList(&_Proposal_2_list{list: &list}) + case "andromeda.escrow.v1alpha1.Proposal.post_actions": + list := []*anypb.Any{} + return protoreflect.ValueOfList(&_Proposal_3_list{list: &list}) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.Proposal")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.Proposal does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_Proposal) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in andromeda.escrow.v1alpha1.Proposal", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_Proposal) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_Proposal) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_Proposal) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_Proposal) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*Proposal) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + l = len(x.Agent) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if len(x.PreActions) > 0 { + for _, e := range x.PreActions { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if len(x.PostActions) > 0 { + for _, e := range x.PostActions { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*Proposal) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.PostActions) > 0 { + for iNdEx := len(x.PostActions) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.PostActions[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x1a + } + } + if len(x.PreActions) > 0 { + for iNdEx := len(x.PreActions) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.PreActions[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x12 + } + } + if len(x.Agent) > 0 { + i -= len(x.Agent) + copy(dAtA[i:], x.Agent) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Agent))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*Proposal) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Proposal: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Proposal: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Agent", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Agent = append(x.Agent[:0], dAtA[iNdEx:postIndex]...) + if x.Agent == nil { + x.Agent = []byte{} + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PreActions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.PreActions = append(x.PreActions, &anypb.Any{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.PreActions[len(x.PreActions)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PostActions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.PostActions = append(x.PostActions, &anypb.Any{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.PostActions[len(x.PostActions)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc (unknown) +// source: andromeda/escrow/v1alpha1/types.proto + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// Params defines the parameters for the module. +type Params struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *Params) Reset() { + *x = Params{} + if protoimpl.UnsafeEnabled { + mi := &file_andromeda_escrow_v1alpha1_types_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Params) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Params) ProtoMessage() {} + +// Deprecated: Use Params.ProtoReflect.Descriptor instead. +func (*Params) Descriptor() ([]byte, []int) { + return file_andromeda_escrow_v1alpha1_types_proto_rawDescGZIP(), []int{0} +} + +// Agent defines an account taking charge of a proposal. +type Agent struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *Agent) Reset() { + *x = Agent{} + if protoimpl.UnsafeEnabled { + mi := &file_andromeda_escrow_v1alpha1_types_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Agent) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Agent) ProtoMessage() {} + +// Deprecated: Use Agent.ProtoReflect.Descriptor instead. +func (*Agent) Descriptor() ([]byte, []int) { + return file_andromeda_escrow_v1alpha1_types_proto_rawDescGZIP(), []int{1} +} + +// Proposal defines a proposal. +type Proposal struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // the address of the agent in charge + Agent []byte `protobuf:"bytes,1,opt,name=agent,proto3" json:"agent,omitempty"` + // the messages which has been executed on the submission + PreActions []*anypb.Any `protobuf:"bytes,2,rep,name=pre_actions,json=preActions,proto3" json:"pre_actions,omitempty"` + // the messages which will be executed after the actions included in Msg/Exec + PostActions []*anypb.Any `protobuf:"bytes,3,rep,name=post_actions,json=postActions,proto3" json:"post_actions,omitempty"` +} + +func (x *Proposal) Reset() { + *x = Proposal{} + if protoimpl.UnsafeEnabled { + mi := &file_andromeda_escrow_v1alpha1_types_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Proposal) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Proposal) ProtoMessage() {} + +// Deprecated: Use Proposal.ProtoReflect.Descriptor instead. +func (*Proposal) Descriptor() ([]byte, []int) { + return file_andromeda_escrow_v1alpha1_types_proto_rawDescGZIP(), []int{2} +} + +func (x *Proposal) GetAgent() []byte { + if x != nil { + return x.Agent + } + return nil +} + +func (x *Proposal) GetPreActions() []*anypb.Any { + if x != nil { + return x.PreActions + } + return nil +} + +func (x *Proposal) GetPostActions() []*anypb.Any { + if x != nil { + return x.PostActions + } + return nil +} + +var File_andromeda_escrow_v1alpha1_types_proto protoreflect.FileDescriptor + +var file_andromeda_escrow_v1alpha1_types_proto_rawDesc = []byte{ + 0x0a, 0x25, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x65, 0x73, 0x63, 0x72, + 0x6f, 0x77, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, + 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, + 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x08, 0x0a, + 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x07, 0x0a, 0x05, 0x41, 0x67, 0x65, 0x6e, 0x74, + 0x22, 0x90, 0x01, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x14, 0x0a, + 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x61, 0x67, + 0x65, 0x6e, 0x74, 0x12, 0x35, 0x0a, 0x0b, 0x70, 0x72, 0x65, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0a, + 0x70, 0x72, 0x65, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x37, 0x0a, 0x0c, 0x70, 0x6f, + 0x73, 0x74, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, 0x70, 0x6f, 0x73, 0x74, 0x41, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x42, 0xdf, 0x01, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x6e, 0x64, 0x72, + 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x0a, 0x54, 0x79, 0x70, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, + 0x6f, 0x50, 0x01, 0x5a, 0x2c, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, + 0x64, 0x61, 0x2f, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x3b, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0xa2, 0x02, 0x03, 0x41, 0x45, 0x58, 0xaa, 0x02, 0x19, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, + 0x65, 0x64, 0x61, 0x2e, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x56, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0xca, 0x02, 0x19, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x5c, + 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xe2, + 0x02, 0x25, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x5c, 0x45, 0x73, 0x63, 0x72, + 0x6f, 0x77, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1b, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, + 0x65, 0x64, 0x61, 0x3a, 0x3a, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x3a, 0x3a, 0x56, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_andromeda_escrow_v1alpha1_types_proto_rawDescOnce sync.Once + file_andromeda_escrow_v1alpha1_types_proto_rawDescData = file_andromeda_escrow_v1alpha1_types_proto_rawDesc +) + +func file_andromeda_escrow_v1alpha1_types_proto_rawDescGZIP() []byte { + file_andromeda_escrow_v1alpha1_types_proto_rawDescOnce.Do(func() { + file_andromeda_escrow_v1alpha1_types_proto_rawDescData = protoimpl.X.CompressGZIP(file_andromeda_escrow_v1alpha1_types_proto_rawDescData) + }) + return file_andromeda_escrow_v1alpha1_types_proto_rawDescData +} + +var file_andromeda_escrow_v1alpha1_types_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_andromeda_escrow_v1alpha1_types_proto_goTypes = []interface{}{ + (*Params)(nil), // 0: andromeda.escrow.v1alpha1.Params + (*Agent)(nil), // 1: andromeda.escrow.v1alpha1.Agent + (*Proposal)(nil), // 2: andromeda.escrow.v1alpha1.Proposal + (*anypb.Any)(nil), // 3: google.protobuf.Any +} +var file_andromeda_escrow_v1alpha1_types_proto_depIdxs = []int32{ + 3, // 0: andromeda.escrow.v1alpha1.Proposal.pre_actions:type_name -> google.protobuf.Any + 3, // 1: andromeda.escrow.v1alpha1.Proposal.post_actions:type_name -> google.protobuf.Any + 2, // [2:2] is the sub-list for method output_type + 2, // [2:2] is the sub-list for method input_type + 2, // [2:2] is the sub-list for extension type_name + 2, // [2:2] is the sub-list for extension extendee + 0, // [0:2] is the sub-list for field type_name +} + +func init() { file_andromeda_escrow_v1alpha1_types_proto_init() } +func file_andromeda_escrow_v1alpha1_types_proto_init() { + if File_andromeda_escrow_v1alpha1_types_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_andromeda_escrow_v1alpha1_types_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Params); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_andromeda_escrow_v1alpha1_types_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Agent); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_andromeda_escrow_v1alpha1_types_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Proposal); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_andromeda_escrow_v1alpha1_types_proto_rawDesc, + NumEnums: 0, + NumMessages: 3, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_andromeda_escrow_v1alpha1_types_proto_goTypes, + DependencyIndexes: file_andromeda_escrow_v1alpha1_types_proto_depIdxs, + MessageInfos: file_andromeda_escrow_v1alpha1_types_proto_msgTypes, + }.Build() + File_andromeda_escrow_v1alpha1_types_proto = out.File + file_andromeda_escrow_v1alpha1_types_proto_rawDesc = nil + file_andromeda_escrow_v1alpha1_types_proto_goTypes = nil + file_andromeda_escrow_v1alpha1_types_proto_depIdxs = nil +} diff --git a/x/escrow/go.mod b/x/escrow/go.mod new file mode 100644 index 0000000..1f7a5c2 --- /dev/null +++ b/x/escrow/go.mod @@ -0,0 +1,154 @@ +module github.com/0tech/andromeda/x/escrow + +go 1.21 + +require ( + cosmossdk.io/api v0.7.2 + cosmossdk.io/collections v0.4.0 + cosmossdk.io/core v0.11.0 + cosmossdk.io/depinject v1.0.0-alpha.4 + cosmossdk.io/errors v1.0.1 + cosmossdk.io/log v1.3.0 + cosmossdk.io/math v1.2.0 + cosmossdk.io/store v1.0.2 + github.com/cosmos/cosmos-proto v1.0.0-beta.3 + github.com/cosmos/cosmos-sdk v0.50.3 + github.com/cosmos/gogoproto v1.4.11 + github.com/golang/mock v1.6.0 + github.com/golang/protobuf v1.5.3 + github.com/grpc-ecosystem/grpc-gateway v1.16.0 + github.com/stretchr/testify v1.8.4 + google.golang.org/genproto/googleapis/api v0.0.0-20231120223509-83a465c0220f + google.golang.org/grpc v1.60.1 + google.golang.org/protobuf v1.32.0 +) + +require ( + cosmossdk.io/x/tx v0.13.0 // indirect + filippo.io/edwards25519 v1.0.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/beorn7/perks v1.0.1 // indirect + github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816 // indirect + github.com/btcsuite/btcd/btcec/v2 v2.3.2 // indirect + github.com/cenkalti/backoff/v4 v4.1.3 // indirect + github.com/cespare/xxhash v1.1.0 // indirect + github.com/cespare/xxhash/v2 v2.2.0 // indirect + github.com/cockroachdb/errors v1.11.1 // indirect + github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b // indirect + github.com/cockroachdb/pebble v0.0.0-20231101195458-481da04154d6 // indirect + github.com/cockroachdb/redact v1.1.5 // indirect + github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06 // indirect + github.com/cometbft/cometbft v0.38.2 // indirect + github.com/cometbft/cometbft-db v0.9.1 // indirect + github.com/cosmos/btcutil v1.0.5 // indirect + github.com/cosmos/cosmos-db v1.0.0 // indirect + github.com/cosmos/go-bip39 v1.0.0 // indirect + github.com/cosmos/gogogateway v1.2.0 // indirect + github.com/cosmos/iavl v1.0.0 // indirect + github.com/cosmos/ics23/go v0.10.0 // indirect + github.com/cosmos/ledger-cosmos-go v0.13.3 // indirect + github.com/danieljoos/wincred v1.1.2 // indirect + github.com/davecgh/go-spew v1.1.1 // indirect + github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.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 + github.com/dustin/go-humanize v1.0.1 // indirect + github.com/dvsekhvalnov/jose2go v1.5.0 // indirect + github.com/emicklei/dot v1.6.0 // indirect + github.com/fatih/color v1.15.0 // indirect + github.com/felixge/httpsnoop v1.0.2 // indirect + github.com/fsnotify/fsnotify v1.6.0 // indirect + github.com/getsentry/sentry-go v0.25.0 // indirect + github.com/go-kit/kit v0.12.0 // indirect + github.com/go-kit/log v0.2.1 // indirect + github.com/go-logfmt/logfmt v0.6.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.0 // indirect + github.com/golang/snappy v0.0.4 // indirect + github.com/google/btree v1.1.2 // indirect + github.com/google/go-cmp v0.6.0 // indirect + github.com/google/orderedcode v0.0.1 // indirect + github.com/gorilla/handlers v1.5.1 // indirect + github.com/gorilla/mux v1.8.0 // indirect + github.com/gorilla/websocket v1.5.0 // indirect + github.com/grpc-ecosystem/go-grpc-middleware v1.4.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.1 // indirect + github.com/hashicorp/go-plugin v1.5.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/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.4 // indirect + github.com/kr/pretty v0.3.1 // indirect + github.com/kr/text v0.2.0 // indirect + github.com/lib/pq v1.10.7 // indirect + github.com/libp2p/go-buffer-pool v0.1.0 // indirect + github.com/linxGnu/grocksdb v1.8.6 // indirect + github.com/magiconair/properties v1.8.7 // indirect + github.com/mattn/go-colorable v0.1.13 // indirect + github.com/mattn/go-isatty v0.0.20 // indirect + github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0 // indirect + github.com/minio/highwayhash v1.0.2 // indirect + github.com/mitchellh/go-testing-interface v1.14.1 // indirect + github.com/mitchellh/mapstructure v1.5.0 // indirect + github.com/mtibben/percent v0.2.1 // indirect + github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a // indirect + github.com/oklog/run v1.1.0 // indirect + github.com/pelletier/go-toml/v2 v2.0.8 // indirect + github.com/petermattis/goid v0.0.0-20230904192822-1876fd5063bc // indirect + github.com/pkg/errors v0.9.1 // indirect + github.com/pmezard/go-difflib v1.0.0 // indirect + github.com/prometheus/client_golang v1.17.0 // indirect + github.com/prometheus/client_model v0.5.0 // indirect + github.com/prometheus/common v0.45.0 // indirect + github.com/prometheus/procfs v0.12.0 // indirect + github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect + github.com/rogpeppe/go-internal v1.11.0 // indirect + github.com/rs/cors v1.8.3 // indirect + github.com/rs/zerolog v1.31.0 // indirect + github.com/sasha-s/go-deadlock v0.3.1 // indirect + github.com/spf13/afero v1.9.5 // indirect + github.com/spf13/cast v1.5.1 // indirect + github.com/spf13/cobra v1.7.0 // indirect + github.com/spf13/jwalterweatherman v1.1.0 // indirect + github.com/spf13/pflag v1.0.5 // indirect + github.com/spf13/viper v1.16.0 // indirect + github.com/subosito/gotenv v1.4.2 // indirect + github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d // indirect + github.com/tendermint/go-amino v0.16.0 // indirect + github.com/tidwall/btree v1.7.0 // indirect + github.com/zondax/hid v0.9.2 // indirect + github.com/zondax/ledger-go v0.14.3 // indirect + go.etcd.io/bbolt v1.3.8 // indirect + golang.org/x/crypto v0.16.0 // indirect + golang.org/x/exp v0.0.0-20231006140011-7918f672742d // indirect + golang.org/x/net v0.19.0 // indirect + golang.org/x/sync v0.4.0 // indirect + golang.org/x/sys v0.15.0 // indirect + golang.org/x/term v0.15.0 // indirect + golang.org/x/text v0.14.0 // indirect + google.golang.org/genproto v0.0.0-20231211222908-989df2bf70f3 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20231212172506-995d672761c0 // indirect + gopkg.in/ini.v1 v1.67.0 // indirect + gopkg.in/yaml.v2 v2.4.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 + sigs.k8s.io/yaml v1.3.0 // indirect +) diff --git a/x/escrow/go.sum b/x/escrow/go.sum new file mode 100644 index 0000000..aa31942 --- /dev/null +++ b/x/escrow/go.sum @@ -0,0 +1,1280 @@ +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.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= +cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU= +cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= +cloud.google.com/go v0.44.3/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= +cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc= +cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0= +cloud.google.com/go v0.50.0/go.mod h1:r9sluTvynVuxRIOHXQEHMFffphuXHOMZMycpNR5e6To= +cloud.google.com/go v0.52.0/go.mod h1:pXajvRH/6o3+F9jDHZWQ5PbGhn+o8w9qiu/CffaVdO4= +cloud.google.com/go v0.53.0/go.mod h1:fp/UouUEsRkN6ryDKNW/Upv/JBKnv6WDthjR6+vze6M= +cloud.google.com/go v0.54.0/go.mod h1:1rq2OEkV3YMf6n/9ZvGWI3GWw0VoqH/1x2nd8Is/bPc= +cloud.google.com/go v0.56.0/go.mod h1:jr7tqZxxKOVYizybht9+26Z/gUq7tiRzu+ACVAMbKVk= +cloud.google.com/go v0.57.0/go.mod h1:oXiQ6Rzq3RAkkY7N6t3TcE6jE+CIBBbA36lwQ1JyzZs= +cloud.google.com/go v0.62.0/go.mod h1:jmCYTdRCQuc1PHIIJ/maLInMho30T/Y0M4hTdTShOYc= +cloud.google.com/go v0.65.0/go.mod h1:O5N8zS7uWy9vkA9vayVHs65eM1ubvY4h553ofrNHObY= +cloud.google.com/go v0.72.0/go.mod h1:M+5Vjvlc2wnp6tjzE102Dw08nGShTscUx2nZMufOKPI= +cloud.google.com/go v0.74.0/go.mod h1:VV1xSbzvo+9QJOxLDaJfTjx5e+MePCpCWwvftOeQmWk= +cloud.google.com/go v0.75.0/go.mod h1:VGuuCn7PG0dwsd5XPVm2Mm3wlh3EL55/79EKB6hlPTY= +cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= +cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE= +cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc= +cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUMb4Nv6dBIg= +cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4gLoIoXIAPc= +cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ= +cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= +cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk= +cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= +cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw= +cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA= +cloud.google.com/go/pubsub v1.3.1/go.mod h1:i+ucay31+CNRpDW4Lu78I4xXG+O1r/MAHgjpRVR+TSU= +cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= +cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos= +cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= +cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs= +cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0= +cloud.google.com/go/storage v1.14.0/go.mod h1:GrKmX003DSIwi9o29oFT7YDnHYwZoctc3fOKtUw0Xmo= +cosmossdk.io/api v0.7.2 h1:BO3i5fvKMKvfaUiMkCznxViuBEfyWA/k6w2eAF6q1C4= +cosmossdk.io/api v0.7.2/go.mod h1:IcxpYS5fMemZGqyYtErK7OqvdM0C8kdW3dq8Q/XIG38= +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.0 h1:vtIafqUi+1ZNAE/oxLOQQ7Oek2n4S48SWLG8h/+wdbo= +cosmossdk.io/core v0.11.0/go.mod h1:LaTtayWBSoacF5xNzoF8tmLhehqlA9z1SWiPuNC6X1w= +cosmossdk.io/depinject v1.0.0-alpha.4 h1:PLNp8ZYAMPTUKyG9IK2hsbciDWqna2z1Wsl98okJopc= +cosmossdk.io/depinject v1.0.0-alpha.4/go.mod h1:HeDk7IkR5ckZ3lMGs/o91AVUc7E596vMaOmslGFM3yU= +cosmossdk.io/errors v1.0.1 h1:bzu+Kcr0kS/1DuPBtUFdWjzLqyUuCiyHjyJB6srBV/0= +cosmossdk.io/errors v1.0.1/go.mod h1:MeelVSZThMi4bEakzhhhE/CKqVv3nOJDA25bIqRDu/U= +cosmossdk.io/log v1.3.0 h1:L0Z0XstClo2kOU4h3V1iDoE5Ji64sg5HLOogzGg67Oo= +cosmossdk.io/log v1.3.0/go.mod h1:HIDyvWLqZe2ovlWabsDN4aPMpY/nUEquAhgfTf2ZzB8= +cosmossdk.io/math v1.2.0 h1:8gudhTkkD3NxOP2YyyJIYYmt6dQ55ZfJkDOaxXpy7Ig= +cosmossdk.io/math v1.2.0/go.mod h1:l2Gnda87F0su8a/7FEKJfFdJrM0JZRXQaohlgJeyQh0= +cosmossdk.io/store v1.0.2 h1:lSg5BTvJBHUDwswNNyeh4K/CbqiHER73VU4nDNb8uk0= +cosmossdk.io/store v1.0.2/go.mod h1:EFtENTqVTuWwitGW1VwaBct+yDagk7oG/axBMPH+FXs= +cosmossdk.io/x/tx v0.13.0 h1:8lzyOh3zONPpZv2uTcUmsv0WTXy6T1/aCVDCqShmpzU= +cosmossdk.io/x/tx v0.13.0/go.mod h1:CpNQtmoqbXa33/DVxWQNx5Dcnbkv2xGUhL7tYQ5wUsY= +dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= +filippo.io/edwards25519 v1.0.0 h1:0wAIcmJUqRdI8IJ/3eGi5/HwXZWPujYXXlkrQogz0Ek= +filippo.io/edwards25519 v1.0.0/go.mod h1:N1IkdkCkiLB6tki+MYJoSx2JTY9NUlxZE7eHn5EwJns= +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/99designs/keyring v1.2.1 h1:tYLp1ULvO7i3fI5vE21ReQuj99QFSs7lGm0xWyJo87o= +github.com/99designs/keyring v1.2.1/go.mod h1:fc+wB5KTk9wQ9sDx0kFXB3A0MaeGHM9AwRStKOQ5vOA= +github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161 h1:L/gRVlceqvL25UVaW/CKtUDjefjrs0SPonmDGUVOYP0= +github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161/go.mod h1:xomTg63KZ2rFqZQzSB4Vz2SUXa1BpHTVz9L5PTmPC4E= +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/Microsoft/go-winio v0.6.0 h1:slsWYD/zyx7lCXoZVlvQrj0hPTM1HI4+v1sIda2yDvg= +github.com/Microsoft/go-winio v0.6.0/go.mod h1:cTAf44im0RAYeL23bpB+fzCyDH2MJiz2BO69KH/soAE= +github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5 h1:TngWCqHvy9oXAN6lEVMRuU21PR1EtLVZJmdB18Gu3Rw= +github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5/go.mod h1:lmUJ/7eu/Q8D7ML55dXQrVaamCz2vxCfdQBasLZfHKk= +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/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/adlio/schema v1.3.3 h1:oBJn8I02PyTB466pZO1UZEn1TV5XLlifBSyMrmHl/1I= +github.com/adlio/schema v1.3.3/go.mod h1:1EsRssiv9/Ce2CMzq5DoL7RiMshhuigQxrR4DMV9fHg= +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/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-v2 v0.18.0/go.mod h1:JWVYvqSMppoMJC0x5wdwiImzgXTI9FuZwxzkQq9wy+g= +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/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.8.0 h1:FD+XqgOZDUxxZ8hzoBFuV9+cGWY9CslN6d5MS5JVb4c= +github.com/bits-and-blooms/bitset v1.8.0/go.mod h1:7hO7Gc7Pp1vODcmWvKMRA9BNmbv6a/7QIWpPxHddWR8= +github.com/btcsuite/btcd/btcec/v2 v2.3.2 h1:5n0X6hX0Zk+6omWcihdYvdAlGf2DfasC0GMf7DClJ3U= +github.com/btcsuite/btcd/btcec/v2 v2.3.2/go.mod h1:zYzJ8etWJQIv1Ogk7OzpWjowwOdXY1W/17j2MW85J04= +github.com/btcsuite/btcd/btcutil v1.1.3 h1:xfbtw8lwpp0G6NwSHb+UE67ryTFHJAiNuipusjXSohQ= +github.com/btcsuite/btcd/btcutil v1.1.3/go.mod h1:UR7dsSJzJUfMmFiiLlIrMq1lS9jh9EdCV7FStZSnpi0= +github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1 h1:q0rUy8C/TYNBQS1+CGKw68tLOFYSNEs0TFnxxnS9+4U= +github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1/go.mod h1:7SFka0XMvUgj3hfZtydOrQY2mwhPclbT2snogU7SQQc= +github.com/bufbuild/protocompile v0.6.0 h1:Uu7WiSQ6Yj9DbkdnOe7U4mNKp58y9WDMKDn28/ZlunY= +github.com/bufbuild/protocompile v0.6.0/go.mod h1:YNP35qEYoYGme7QMtz5SBCoN4kL4g12jTtjuzRNdjpE= +github.com/casbin/casbin/v2 v2.1.2/go.mod h1:YcPU1XXisHhLzuxH9coDNf2FbKpjGlbCg3n9yuLkIJQ= +github.com/cenkalti/backoff v2.2.1+incompatible h1:tNowT99t7UNflLxfYYSlKYsBpXdEet03Pg2g16Swow4= +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/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= +github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko= +github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= +github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= +github.com/cespare/xxhash/v2 v2.2.0 h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44= +github.com/cespare/xxhash/v2 v2.2.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= +github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= +github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= +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/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= +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-20200629203442-efcf912fb354/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= +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.1 h1:xSEW75zKaKCWzR3OfxXUxgrk/NtT4G1MiOv5lWZazG8= +github.com/cockroachdb/errors v1.11.1/go.mod h1:8MUxA3Gi6b25tYlFEBGLf+D8aISL+M4MIpiWMSNRfxw= +github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b h1:r6VH0faHjZeQy818SGhaone5OnYfxFR/+AzdY3sf5aE= +github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b/go.mod h1:Vz9DsVWQQhf3vs21MhPMZpMGSht7O/2vFW2xusFUVOs= +github.com/cockroachdb/pebble v0.0.0-20231101195458-481da04154d6 h1:g+Y6IAf28JinY3zNdXwpw71SBGhLEb72kGQgiR5XKZM= +github.com/cockroachdb/pebble v0.0.0-20231101195458-481da04154d6/go.mod h1:acMRUGd/BK8AUmQNK3spUCCGzFLZU2bSST3NMXSq2Kc= +github.com/cockroachdb/redact v1.1.5 h1:u1PMllDkdFfPWaNGMyLD1+so+aq3uUItthCFqzwPJ30= +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.2 h1:io0JCh5EPxINKN5ZMI5hCdpW3QVZRy+o8qWe3mlJa/8= +github.com/cometbft/cometbft v0.38.2/go.mod h1:PIi48BpzwlHqtV3mzwPyQgOyOnU94BNBimLS2ebBHOg= +github.com/cometbft/cometbft-db v0.9.1 h1:MIhVX5ja5bXNHF8EYrThkG9F7r9kSfv8BX4LWaxWJ4M= +github.com/cometbft/cometbft-db v0.9.1/go.mod h1:iliyWaoV0mRwBJoizElCwwRA9Tf7jZJOURcRZF9m60U= +github.com/containerd/continuity v0.3.0 h1:nisirsYROK15TAMVukJOUyGJjz4BNQJBVsNvAXZJ/eg= +github.com/containerd/continuity v0.3.0/go.mod h1:wJEAIwKOm/pBZuBd0JmeTvnLquTB1Ag8espWhkykbPM= +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.0.0 h1:EVcQZ+qYag7W6uorBKFPvX6gRjw6Uq2hIh4hCWjuQ0E= +github.com/cosmos/cosmos-db v1.0.0/go.mod h1:iBvi1TtqaedwLdcrZVYRSSCb6eSy61NLj4UNmdIgs0U= +github.com/cosmos/cosmos-proto v1.0.0-beta.3 h1:VitvZ1lPORTVxkmF2fAp3IiA61xVwArQYKXTdEcpW6o= +github.com/cosmos/cosmos-proto v1.0.0-beta.3/go.mod h1:t8IASdLaAq+bbHbjq4p960BvcTqtwuAxid3b/2rOD6I= +github.com/cosmos/cosmos-sdk v0.50.3 h1:zP0AXm54ws2t2qVWvcQhEYVafhOAREU2QL0gnbwjvXw= +github.com/cosmos/cosmos-sdk v0.50.3/go.mod h1:tlrkY1sntOt1q0OX/rqF0zRJtmXNoffAS6VFTcky+w8= +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.4.11 h1:LZcMHrx4FjUgrqQSWeaGC1v/TeuVFqSLa43CC6aWR2g= +github.com/cosmos/gogoproto v1.4.11/go.mod h1:/g39Mh8m17X8Q/GDEs5zYTSNaNnInBSohtaxzQnYq1Y= +github.com/cosmos/iavl v1.0.0 h1:bw6t0Mv/mVCJvlMTOPHWLs5uUE3BRBfVWCRelOzl+so= +github.com/cosmos/iavl v1.0.0/go.mod h1:CmTGqMnRnucjxbjduneZXT+0vPgNElYvdefjX2q9tYc= +github.com/cosmos/ics23/go v0.10.0 h1:iXqLLgp2Lp+EdpIuwXTYIQU+AiHj9mOC2X9ab++bZDM= +github.com/cosmos/ics23/go v0.10.0/go.mod h1:ZfJSmng/TBNTBkFemHHHj5YY7VAU/MBU980F4VU1NG0= +github.com/cosmos/ledger-cosmos-go v0.13.3 h1:7ehuBGuyIytsXbd4MP43mLeoN2LTOEnk5nvue4rK+yM= +github.com/cosmos/ledger-cosmos-go v0.13.3/go.mod h1:HENcEP+VtahZFw38HZ3+LS3Iv5XV6svsnkk9vdJtLr8= +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.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= +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= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/decred/dcrd/crypto/blake256 v1.0.1 h1:7PltbUIQB7u/FfZ39+DGa/ShuMyJ5ilcvdfma9wOH6Y= +github.com/decred/dcrd/crypto/blake256 v1.0.1/go.mod h1:2OfgNZ5wDpcsFmHmCK5gZTPcCXqlm2ArzUIkw9czNJo= +github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 h1:8UrgZ3GkP4i/CLijOJx79Yu+etlyjdBU4sfcs2WYQMs= +github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0/go.mod h1:v57UDF4pDQJcEfFUCRop3lJL149eHGSe9Jvczhzjo/0= +github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f h1:U5y3Y5UE0w7amNe7Z5G/twsBW0KEalRQXZzf8ufSh9I= +github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f/go.mod h1:xH/i4TFMt8koVQZ6WFms69WAsDWr2XsYL3Hkl7jkoLE= +github.com/dgraph-io/badger/v2 v2.2007.4 h1:TRWBQg8UrlUhaFdco01nO2uXwzKS7zd+HVdwV/GHc4o= +github.com/dgraph-io/badger/v2 v2.2007.4/go.mod h1:vSw/ax2qojzbN6eXHIx6KPKtCSHJN/Uz0X0VPruTIhk= +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/docker/go-connections v0.4.0 h1:El9xVISelRB7BuFusrZozjnkIM5YnzCViNKohAFqRJQ= +github.com/docker/go-connections v0.4.0/go.mod h1:Gbd7IOopHjR8Iph03tsViu4nIes5XhDvyHbTtUxmeec= +github.com/docker/go-units v0.5.0 h1:69rxXcBk27SvSaaxTtLh/8llcHD8vYHT7WSdRZ/jvr4= +github.com/docker/go-units v0.5.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= +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.5.0 h1:3j8ya4Z4kMCwT5nXIKFSV84YS+HdqSSO0VsTQxaLAeM= +github.com/dvsekhvalnov/jose2go v1.5.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.0 h1:vUzuoVE8ipzS7QkES4UfxdpCwdU2U97m2Pb2tQCoYRY= +github.com/emicklei/dot v1.6.0/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.7/go.mod h1:cwu0lG7PUMfa9snN8LXBig5ynNVH9qI8YYLbd1fK2po= +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/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.15.0 h1:kOqh6YHBtK8aywxGerMG2Eq3H6Qgoqeo13Bk2Mv/nBs= +github.com/fatih/color v1.15.0/go.mod h1:0h5ZqXfHYED7Bhv2ZJamyIOUej9KtShiJESRwBDUSsw= +github.com/felixge/httpsnoop v1.0.1/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= +github.com/felixge/httpsnoop v1.0.2 h1:+nS9g82KMXccJ/wp0zyRW9ZBHFETmMGtkk+2CTTrW4o= +github.com/felixge/httpsnoop v1.0.2/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.4 h1:g2rn0vABPOOXmZUj+vbmUp0lPoXEMuhTpIluN0XL9UY= +github.com/frankban/quicktest v1.14.4/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0= +github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= +github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= +github.com/fsnotify/fsnotify v1.5.4/go.mod h1:OVB6XrOHzAwXMpEM7uPOzcehqUV2UqJxmVXmkdnm1bU= +github.com/fsnotify/fsnotify v1.6.0 h1:n+5WquG0fcWoWp6xPWfHdbskMCQaFnG6PfBrh1Ky4HY= +github.com/fsnotify/fsnotify v1.6.0/go.mod h1:sl3t1tCWJFWoRz9R8WJCbQihKKwmorjAbSClcnxKAGw= +github.com/getsentry/sentry-go v0.25.0 h1:q6Eo+hS+yoJlTO3uu/azhQadsD8V+jQn2D8VvX1eOyI= +github.com/getsentry/sentry-go v0.25.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 v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= +github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= +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-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/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0/go.mod h1:fyg7847qk6SyHyPtNmDHnmrv/HOrqktSC+C9fM+CJOE= +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.9.11 h1:/pAaQDLHEoCq/5FFmSKBswWmK6H0e8g4159Kc/X/nqk= +github.com/goccy/go-json v0.9.11/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= +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/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/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= +github.com/golang/glog v1.2.0 h1:uCdmnmatrKCgMBlM4rMuJZWOkPDqdbZPnrMXDY4gI68= +github.com/golang/glog v1.2.0/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-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= +github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= +github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y= +github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= +github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= +github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= +github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4= +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= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.0/go.mod h1:Qd/q+1AKNOZr9uGQzbzCmRO6sUih6GTPZv6a1/R87v0= +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.4/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.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= +github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= +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 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM= +github.com/golang/snappy v0.0.4/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.2 h1:xf4v41cLI2Z6FxbKm+8Bu+m8ifhj15JuZ9sa0jZCMUU= +github.com/google/btree v1.1.2/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.4.1/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.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.4/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.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= +github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf/go.mod h1:HP5RmnzzSNb993RKQDq4+1A4ia9nllfqcQFTQJedwGI= +github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= +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/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= +github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= +github.com/google/martian/v3 v3.1.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= +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/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= +github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= +github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200212024743-f11f1df84d12/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200229191704-1ebb73c60ed3/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200430221834-fc25d7d30c6d/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20201023163331-3e6fc7fc9c4c/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20201203190320-1bf35d6f28c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20201218002935-b9804c9f04c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20210407192527-94a9f03dee38/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= +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/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= +github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= +github.com/googleapis/google-cloud-go-testing v0.0.0-20200911160855-bcd43fbb19e8/go.mod h1:dvDLG8qkwmyD9a/MJJN3XJcT3xFxOKAvTZGvuZmac9g= +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.1 h1:9lRY6j8DEeeBT10CvO9hGW0gmky0BprnvDI5vfhUHH4= +github.com/gorilla/handlers v1.5.1/go.mod h1:t8XrUpc4KVXb7HGyJ4/cEnwQiaxrX/hz1Zv/4g96P1Q= +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.0 h1:i40aqfkR1h2SlN9hojwV5ZA91wcXFOvkdNIeFDP5koI= +github.com/gorilla/mux v1.8.0/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So= +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.0 h1:PPwGk2jz7EePpoHN/+ClbZu8SPxiqlu12wZP/3sWmnc= +github.com/gorilla/websocket v1.5.0/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-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-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= +github.com/hashicorp/go-immutable-radix v1.3.1 h1:DKHmCUm2hRBK510BaiZlwvpD40f8bJFeZnpfm2KLowc= +github.com/hashicorp/go-immutable-radix v1.3.1/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= +github.com/hashicorp/go-metrics v0.5.1 h1:rfPwUqFU6uZXNvGl4hzjY8LEBsqFVU4si1H9/Hqck/U= +github.com/hashicorp/go-metrics v0.5.1/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-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 h1:fv1ep09latC32wFoVwnqcnKJGnMSdBanPczbHAYm1BE= +github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= +github.com/hashicorp/go-version v1.2.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/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= +github.com/hdevalence/ed25519consensus v0.1.0/go.mod h1:w3BHWjwJbFU29IRHL1Iqkw3sus+7FctEyM4RqDxYNzo= +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/iancoleman/strcase v0.3.0 h1:nTXanmYxhfFAMjZL34Ov6gkzEsSJZ5DbhxWjvSASxEI= +github.com/iancoleman/strcase v0.3.0/go.mod h1:iwCmte+B7n89clKwxIoIXy/HfoL7AsD47ZCWhYzw7ho= +github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= +github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= +github.com/improbable-eng/grpc-web v0.15.0 h1:BN+7z6uNXZ1tQGcNAuaU1YjsLTApzkjt2tzCixLaUPQ= +github.com/improbable-eng/grpc-web v0.15.0/go.mod h1:1sy9HKV4Jt9aEs9JSnkWlRJPuPtwNr0l57L4f878wP8= +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/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/jmhodges/levigo v1.0.0 h1:q5EC36kV79HWeTBWsod3mG11EgStG3qArTKcvlksN1U= +github.com/jmhodges/levigo v1.0.0/go.mod h1:Q6Qx+uH3RAqyK4rFQroq9RL7mdkABMcfhEI+nNuzMJQ= +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/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/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= +github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= +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/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.4 h1:Ej5ixsIri7BrIjBkRZLTo6ghwrEtHFk7ijlczPW4fZ4= +github.com/klauspost/compress v1.17.4/go.mod h1:/dCuZOvVtNoHsyb+cuJD3itjs3NbnF6KH9zAO4BDxPM= +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/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg= +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= +github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= +github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= +github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= +github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= +github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= +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/libp2p/go-buffer-pool v0.1.0 h1:oK4mSFcQz7cTQIfqbe4MIj9gLW+mnanjyFtc6cdF0Y8= +github.com/libp2p/go-buffer-pool v0.1.0/go.mod h1:N+vh8gMqimBzdKkSMVuydVDq+UV5QTWy5HSiZacSbPg= +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.6 h1:O7I6SIGPrypf3f/gmrrLUBQDKfO8uOoYdWf4gLS06tc= +github.com/linxGnu/grocksdb v1.8.6/go.mod h1:xZCIb5Muw+nhbDK4Y5UJuOrin5MceOuiXkVUR7vp4WY= +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-runewidth v0.0.2/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= +github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= +github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0 h1:jWpvCLoY8Z/e3VKvlsiIGKtc+UG6U5vzxaoagmhXfyg= +github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0/go.mod h1:QUyp042oQthUoa9bqDv0ER0wrtXnBruoNd7aNjkbP+k= +github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= +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/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/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= +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/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/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/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= +github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= +github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk= +github.com/onsi/ginkgo v1.16.4/go.mod h1:dX+/inL/fNMqNlz0e9LfyB9TswhZpCVdJM/Z6Vvnwo0= +github.com/onsi/ginkgo v1.16.5 h1:8xi0RTUf59SOSfEtZMvwTvXYMzG4gV23XVHOZiXNtnE= +github.com/onsi/ginkgo v1.16.5/go.mod h1:+E8gABHa3K6zRBolWtd+ROzc/U5bkGt0FwiG042wbpU= +github.com/onsi/ginkgo/v2 v2.1.3/go.mod h1:vw5CSIxN1JObi/U8gcbwft7ZxR2dgaR70JSE3/PpL4c= +github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= +github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY= +github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo= +github.com/onsi/gomega v1.17.0/go.mod h1:HnhC7FXeEQY45zxNK3PPoIUhzk/80Xly9PcubAlGdZY= +github.com/onsi/gomega v1.19.0/go.mod h1:LY+I3pBVzYsTBU1AnDwOSxaYi9WoWiqgwooUqq9yPro= +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/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U= +github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM= +github.com/opencontainers/image-spec v1.1.0-rc2 h1:2zx/Stx4Wc5pIPDvIxHXvXtQFW/7XWJGmnM7r3wg034= +github.com/opencontainers/image-spec v1.1.0-rc2/go.mod h1:3OVijpioIKYWTqjiG0zfF6wvoJ4fAXGbjdZuI2NgsRQ= +github.com/opencontainers/runc v1.1.3 h1:vIXrkId+0/J2Ymu2m7VjGvbSlAId9XNRPhn2p4b+d8w= +github.com/opencontainers/runc v1.1.3/go.mod h1:1J5XiS+vdZ3wCyZybsuxXZWGrgSr8fFJHLXuG2PsnNg= +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/ory/dockertest v3.3.5+incompatible h1:iLLK6SQwIhcbrG783Dghaaa3WPzGc+4Emza6EbVUUGA= +github.com/ory/dockertest v3.3.5+incompatible/go.mod h1:1vX4m9wsvi00u5bseYwXaSnhNrne+V0E6LAcBILJdPs= +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.0.8 h1:0ctb6s9mE31h0/lhu+J6OPmVeDxJn+kYnJc2jZR9tGQ= +github.com/pelletier/go-toml/v2 v2.0.8/go.mod h1:vuYfssBdrU2XDZ9bYydBu6t+6a6PYNcZljzZR9VXg+4= +github.com/performancecopilot/speed v3.0.0+incompatible/go.mod h1:/CLtqpZ5gBg1M9iaPbIdPPGyKcA8hKdoy6hAWba7Yac= +github.com/petermattis/goid v0.0.0-20180202154549-b0b1615b78e5/go.mod h1:jvVRKCrJTQWu0XVbaOlby/2lO20uSCHEMzzplHXte1o= +github.com/petermattis/goid v0.0.0-20230904192822-1876fd5063bc h1:8bQZVK1X6BJR/6nYUPxQEP+ReTsceJTKizeuwjWOPUA= +github.com/petermattis/goid v0.0.0-20230904192822-1876fd5063bc/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= +github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +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/pkg/sftp v1.13.1/go.mod h1:3HaPG6Dq1ILlpPZRO0HVMrsydcdLt6HRDccSgb87qRg= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/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.17.0 h1:rl2sfwZMtSthVU752MqfjQozy7blglC+1SOtjMAMh+Q= +github.com/prometheus/client_golang v1.17.0/go.mod h1:VeL+gMmOAxkS2IqfCq0ZmHSL+LjWfWDUmp1mBz9JgUY= +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.5.0 h1:VQw1hfvPvk3Uv6Qf29VrPF32JB6rtbgI6cYPYQjL0Qw= +github.com/prometheus/client_model v0.5.0/go.mod h1:dTiFglRmd66nLR9Pv9f0mZi7B7fk5Pm3gvsjB5tr+kI= +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.45.0 h1:2BGz0eBc2hdMDLnO/8n0jeB3oPrt2D08CekT0lneoxM= +github.com/prometheus/common v0.45.0/go.mod h1:YJmSTw9BoKxJplESWWxlbyttQR4uaEcGyv9MZjVOJsY= +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.12.0 h1:jluTpSng7V9hY0O2R9DzzJHYb2xULk9VTR1V1R/k6Bo= +github.com/prometheus/procfs v0.12.0/go.mod h1:pcuDEFsWDnvcgNzo4EEweacyhjeA9Zk3cnaOZAZEfOo= +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/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.11.0 h1:cWPaGQEPrBb5/AsnsZesgZZ9yb1OQ+GOISoDNXVBh4M= +github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUzkipdSkR5nkCZA= +github.com/rs/cors v1.7.0/go.mod h1:gFx+x8UowdsKA9AchylcLynDq+nNFfI8FkUZdN/jGCU= +github.com/rs/cors v1.8.3 h1:O+qNyWn7Z+F9M0ILBHgMVPuB1xTOucVd5gtaYyXBpRo= +github.com/rs/cors v1.8.3/go.mod h1:XyqrcTp5zjWr1wsJ8PIRZssZ8b/WMcMf71DJnit4EMU= +github.com/rs/xid v1.5.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg= +github.com/rs/zerolog v1.31.0 h1:FcTR3NnLWW+NnTwwhFWiJSZr4ECLpqCm6QsEnyvbV4A= +github.com/rs/zerolog v1.31.0/go.mod h1:/7mN4D5sKwJLZQ2b/znpjC3/GQWY/xaDXUM0kKWRHss= +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/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= +github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= +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/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/sirupsen/logrus v1.9.0 h1:trlNQbNUG3OdDrDil03MCb1H2o9nJ1x4/5LYw7byDE0= +github.com/sirupsen/logrus v1.9.0/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= +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/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= +github.com/spaolacci/murmur3 v1.1.0 h1:7c1g84S4BPRrfL5Xrdp6fOJ206sU9y293DDHaoy0bLI= +github.com/spaolacci/murmur3 v1.1.0/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= +github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ= +github.com/spf13/afero v1.9.5 h1:stMpOSZFs//0Lv29HduCmli3GUfpFoF3Y1Q/aXj/wVM= +github.com/spf13/afero v1.9.5/go.mod h1:UBogFpq8E9Hx+xc5CNTTEpTnuHVmXDwZcZcE1eb/UhQ= +github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= +github.com/spf13/cast v1.5.1 h1:R+kOtfhWQE6TVQzY+4D7wJLBgkdVasCEFxSUBYBYIlA= +github.com/spf13/cast v1.5.1/go.mod h1:b9PdjNptOpzXr7Rq1q9gJML/2cdGQAo69NKzQ10KN48= +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.7.0 h1:hyqWnYt1ZQShIddO5kBpj3vu05/++x6tJ6dg8EC572I= +github.com/spf13/cobra v1.7.0/go.mod h1:uLxZILRyS/50WlhOIKD7W6V5bgeIt+4sICxh6uRMrb0= +github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo= +github.com/spf13/jwalterweatherman v1.1.0 h1:ue6voC5bR5F8YxI5S67j9i582FU4Qvo2bmqnqMYADFk= +github.com/spf13/jwalterweatherman v1.1.0/go.mod h1:aNWZUN0dPAAO/Ljvb5BEdw96iTZ0EXowPYD95IqWIGo= +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.16.0 h1:rGGH0XDZhdUOryiDWjmIvUSWpbNqisK8Wk0Vyefw8hc= +github.com/spf13/viper v1.16.0/go.mod h1:yg78JgCJcbrQOvV9YLXgkLaZqUidkY9K+Dd1FofRzQg= +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= +github.com/stretchr/objx v0.5.0 h1:1zr/of2m5FGMsad5YfcqgdqdWrIhu+EBEJRhR1U7z/c= +github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= +github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= +github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= +github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= +github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= +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.3/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= +github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= +github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= +github.com/subosito/gotenv v1.4.2 h1:X1TuBLAMDFbaTAChgCBLu3DU3UPyELpnF2jjJ2cz/S8= +github.com/subosito/gotenv v1.4.2/go.mod h1:ayKnFf/c6rvx/2iiLrJUk1e6plDbT3edrFNGqEflhK0= +github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d h1:vfofYNRScrDdvS342BElfbETmL1Aiz3i2t0zfRj16Hs= +github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d/go.mod h1:RRCYJbIwD5jmqPI9XoAFR0OcDxqUctll6zUj/+B4S48= +github.com/tendermint/go-amino v0.16.0 h1:GyhmgQKvqF82e2oZeuMSp9JTN0N09emoSZlb2lyGa2E= +github.com/tendermint/go-amino v0.16.0/go.mod h1:TQU0M1i/ImAo+tYpZi73AU3V/dKeCoMC9Sphe2ZwGME= +github.com/tidwall/btree v1.7.0 h1:L1fkJH/AuEh5zBnnBbmTwQ5Lt+bRJ5A8EWecslvo9iI= +github.com/tidwall/btree v1.7.0/go.mod h1:twD9XRA5jj9VUQGELzDO4HPQTNJsoWWfYEL+EUQ2cKY= +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/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.7 h1:YPXUKf7fYbp/y8xloBqZOw2qaVggbfwMlI8WM3wZUJ0= +github.com/ugorji/go/codec v1.2.7/go.mod h1:WGN1fab3R1fzQlVQTkfxVtIBhWDRqOviHU95kRgeqEY= +github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA= +github.com/urfave/cli v1.22.1/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= +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/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= +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.8 h1:xs88BrvEv273UsB79e0hcVrlUWmS0a8upikMFhSyAtA= +go.etcd.io/bbolt v1.3.8/go.mod h1:N9Mkw9X8x5fupy0IKsmuqVtoGDyxsaDlbk4Rd05IAQw= +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.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= +go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= +go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= +go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= +go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= +go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk= +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/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/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= +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-20190605123033-f99c8df09eb5/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-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20200728195943-123391ffb6de/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= +golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= +golang.org/x/crypto v0.16.0 h1:mMMrFzRSCF0GvB7Ne27XVtVAaXLrPmgPC7/v0tkwHaY= +golang.org/x/crypto v0.16.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4= +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-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= +golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek= +golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY= +golang.org/x/exp v0.0.0-20191129062945-2f5052295587/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= +golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= +golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= +golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM= +golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU= +golang.org/x/exp v0.0.0-20200331195152-e8c3332aa8e5/go.mod h1:4M0jN8W1tt0AVLNr8HDosyJCDCDuyL9N9+3m7wDWgKw= +golang.org/x/exp v0.0.0-20231006140011-7918f672742d h1:jtJma62tbqLibJ5sFQz8bKtEM8rJBtfilJ2qTU199MI= +golang.org/x/exp v0.0.0-20231006140011-7918f672742d/go.mod h1:ldy0pHrwJyGW56pPQzzkH36rKxoZW1tw7ZJpeKx+hdo= +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-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs= +golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= +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.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= +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/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.13.0 h1:I/DsJXRlw/8l/0c24sM9yb0T4z9liZTduXvdAWYiysY= +golang.org/x/mod v0.13.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= +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-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/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-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/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-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200222125558-5a598a2470a0/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-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200421231249-e086a090c8fd/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200506145744-7e3656a0809f/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200513185701-a91f0712d120/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-20200520182314-0ba52f642ac2/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-20200707034311-ab3426394381/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-20201031054903-ff519b6c9102/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/net v0.0.0-20201209123823-ac852fbbde11/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20201224014010-6772e930b67b/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= +golang.org/x/net v0.0.0-20210428140749-89ef3d95e781/go.mod h1:OJAsFXCWl8Ukc7SiCT/9KSuxbyM7479/AVlXFRxuMCk= +golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= +golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.19.0 h1:zTwKpTd2XuCqf8huc7Fo2iSy+4RHPd10s4KzeTnVr1c= +golang.org/x/net v0.19.0/go.mod h1:CfAk/cbD4CthTvqiEl8NpboMuiuOYsAr/7NOjZJtv1U= +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-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20200902213428-5d25da1a8d43/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20201109201403-9fd604954f58/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20201208152858-08078c50e5b5/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210218202405-ba52d332ba99/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.4.0 h1:zxkM55ReGkDlKSM+Fu41A+zmbZuaPVbGMzvvdUPznYQ= +golang.org/x/sync v0.4.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y= +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-20190130150945-aca44879d564/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-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/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-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-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191220142924-d4481acd189f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200106162015-b016eb3dc98e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/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-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200331124033-c3d80250170d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200420163511-1957bb5e6d1f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200501052902-10377860bb8e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200511232937-7e40ca221e25/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200523222454-059865788121/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-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200905004654-be1d3432aa8f/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-20201201145000-ef89a241ccb3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210104204734-6f8348627aad/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210112080510-489259a85091/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210225134936-a50acf3fe073/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-20210423185535-09eb48e85fd7/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-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-20220412211240-33da011f77ad/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-20220520151302-bc2c85ada10a/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-20220908164124-27713097b956/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20221010170243-090e33056c14/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.15.0 h1:h48lPFYpsTvQJZF4EKyI4aLHaev3CxivZmv7yZig9pc= +golang.org/x/sys v0.15.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.15.0 h1:y/Oo/a/q3IXu26lQgl04j/gjuBDOBlx7X6Om1j2CPW4= +golang.org/x/term v0.15.0/go.mod h1:BDl952bC7+uMoWR75FIrCDx79TPU9oHkTZ9yRbYOrX0= +golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/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.4/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.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= +golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= +golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +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-20190312151545-0bb0c0a6e846/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-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +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-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/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-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200103221440-774c71fcf114/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200117161641-43d50277825c/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200122220014-bf1340f18c4a/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200204074204-1cc6d1ef6c74/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-20200212150539-ea181f53ac56/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200224181240-023911ca70b2/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200227222343-706bc42d1f0d/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200304193943-95d2e580d8eb/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= +golang.org/x/tools v0.0.0-20200312045724-11d5b4c81c7d/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= +golang.org/x/tools v0.0.0-20200331025713-a30bf2db82d4/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= +golang.org/x/tools v0.0.0-20200501065659-ab2804fb9c9d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200904185747-39188db58858/go.mod h1:Cj7w3i3Rnn0Xh82ur9kSqwfTHTeVxaDqrfMjpcNT6bE= +golang.org/x/tools v0.0.0-20201110124207-079ba7bd75cd/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20201201161351-ac6f37ff4c2a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20201208233053-a543418bbed2/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20201224043029-2b0845dc783e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20210105154028-b0ab187a4818/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20210108195828-e2f9c7f1fc8e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0= +golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= +golang.org/x/tools v0.14.0 h1:jvNa2pY0M4r62jkRQ6RwEZZyPcymeL9XZMLBbV7U2nc= +golang.org/x/tools v0.14.0/go.mod h1:uYBEerGOWcJyEORxN+Ek8+TT266gXkNlHdJBwexUsBg= +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= +golang.org/x/xerrors v0.0.0-20220517211312-f3a8303e98df/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= +google.golang.org/api v0.3.1/go.mod h1:6wY9I6uQWHQ8EM57III9mq/AjF+i8G65rmVagqKMtkk= +google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= +google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= +google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= +google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= +google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= +google.golang.org/api v0.14.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= +google.golang.org/api v0.15.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= +google.golang.org/api v0.17.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.18.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.19.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.20.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.22.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.24.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= +google.golang.org/api v0.28.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= +google.golang.org/api v0.29.0/go.mod h1:Lcubydp8VUV7KeIHD9z2Bys/sm/vGKnG1UHuDBSrHWM= +google.golang.org/api v0.30.0/go.mod h1:QGmEvQ87FHZNiUVJkT14jQNYJ4ZJjdRF23ZXz5138Fc= +google.golang.org/api v0.35.0/go.mod h1:/XrVsuzM0rZmrsbjJutiuftIzeuTQcEeaYcSk/mQ1dg= +google.golang.org/api v0.36.0/go.mod h1:+z5ficQTmoYpPn8LCUNVpK5I7hwkpjbcgqA7I34qYtE= +google.golang.org/api v0.40.0/go.mod h1:fYKFpnQN0DsDSKRVRcQSDQNtqWPfM9i+zNPxepjRCQ8= +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/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= +google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= +google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= +google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= +google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= +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-20190418145605-e7d98fc518a7/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-20190502173448-54afdca5d873/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-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= +google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= +google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= +google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20191115194625-c23dd37a84c9/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20191216164720-4f79533eabd1/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20200115191322-ca5a22157cba/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20200122232147-0452cf42e150/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20200204135345-fa8e72b47b90/go.mod h1:GmwEX6Z4W5gMy59cAlVYjN9JhxgbQH6Gn+gFDQe2lzA= +google.golang.org/genproto v0.0.0-20200212174721-66ed5ce911ce/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200228133532-8c2c7df3a383/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200305110556-506484158171/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200312145019-da6875a35672/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200331122359-1ee6d9798940/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200423170343-7949de9c1215/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200430143042-b979b6f78d84/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200511104702-f5ebc3bea380/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200515170657-fc4c6c6a6587/go.mod h1:YsZOwe1myG/8QRHRsmBRE1LrgQY60beZKjly0O1fX9U= +google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= +google.golang.org/genproto v0.0.0-20200618031413-b414f8b61790/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA= +google.golang.org/genproto v0.0.0-20200729003335-053ba62fc06f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20200904004341-0bd0a958aa1d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201109203340-2640f1f9cdfb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201201144952-b05cb90ed32e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201210142538-e3217bee35cc/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201214200347-8c77b98c765d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210108203827-ffc7fda8c3d7/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210126160654-44e461bb6506/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210226172003-ab064af71705/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-20231211222908-989df2bf70f3 h1:1hfbdAfFbkmpg41000wDVqr7jUpK/Yo+LPnIxxGzmkg= +google.golang.org/genproto v0.0.0-20231211222908-989df2bf70f3/go.mod h1:5RBcpGRxr25RbDzY5w+dmaqpSEvl8Gwl1x2CICf60ic= +google.golang.org/genproto/googleapis/api v0.0.0-20231120223509-83a465c0220f h1:2yNACc1O40tTnrsbk9Cv6oxiW8pxI/pXj0wRtdlYmgY= +google.golang.org/genproto/googleapis/api v0.0.0-20231120223509-83a465c0220f/go.mod h1:Uy9bTZJqmfrw2rIBxgGLnamc78euZULUBrLZ9XTITKI= +google.golang.org/genproto/googleapis/rpc v0.0.0-20231212172506-995d672761c0 h1:/jFB8jK5R3Sq3i/lmeZO0cATSzFfZaJq1J2Euan3XKU= +google.golang.org/genproto/googleapis/rpc v0.0.0-20231212172506-995d672761c0/go.mod h1:FUoWkonphQm3RhTS+kOEhF8h0iDpm4tdXolVCeZ9KKA= +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.21.1/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.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60= +google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk= +google.golang.org/grpc v1.30.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/grpc v1.31.1/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +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.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc= +google.golang.org/grpc v1.34.0/go.mod h1:WotjhfgOW/POjDeRt8vscBtXq+2VjORFy659qA51WJ8= +google.golang.org/grpc v1.35.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= +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.60.1 h1:26+wFr+cNqSGFcOXcabYC0lUVJVRa2Sb2ortSK7VrEU= +google.golang.org/grpc v1.60.1/go.mod h1:OlCHIeLYqSSsLi6i49B5QGdzaMZK9+M7LXN2FKz4eGM= +google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= +google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= +google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= +google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= +google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= +google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.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.32.0 h1:pPC6BG5ex8PDFnkbrGU3EixyhKcQ2aDuBS36lqK/C7I= +google.golang.org/protobuf v1.32.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= +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/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-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/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= +honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= +honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= +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 v1.1.0 h1:CMa0sjHSru3puNx+J0MIAuiiEV4N0qj8/cMWGBBCsjw= +pgregory.net/rapid v1.1.0/go.mod h1:PY5XlDGj0+V1FCq0o192FdRhpKHGTRIWBgqjDBTrq04= +rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= +rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= +rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= +sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o= +sigs.k8s.io/yaml v1.3.0 h1:a2VclLzOGrwOHDiV8EfBGhvjHvP46CtW5j6POvhYGGo= +sigs.k8s.io/yaml v1.3.0/go.mod h1:GeOyir5tyXNByN85N/dRIT9es5UQNerPYEKK56eTBm8= +sourcegraph.com/sourcegraph/appdash v0.0.0-20190731080439-ebfcffb1b5c0/go.mod h1:hI742Nqp5OhwiqlzhgfbWU4mW4yO10fP+LoT9WOswdU= diff --git a/x/escrow/keeper/expected/keepers.go b/x/escrow/keeper/expected/keepers.go new file mode 100644 index 0000000..feb86dc --- /dev/null +++ b/x/escrow/keeper/expected/keepers.go @@ -0,0 +1,20 @@ +package expected + +import ( + "context" + + sdk "github.com/cosmos/cosmos-sdk/types" +) + +type ( + MessageRouter interface { + Handler(msg sdk.Msg) MsgServiceHandler + } + MsgServiceHandler = func(ctx sdk.Context, req sdk.Msg) (*sdk.Result, error) + + AuthKeeper interface { + HasAccount(context.Context, sdk.AccAddress) bool + NewAccount(context.Context, sdk.AccountI) sdk.AccountI + SetAccount(context.Context, sdk.AccountI) + } +) diff --git a/x/escrow/keeper/exported.go b/x/escrow/keeper/exported.go new file mode 100644 index 0000000..8c1ffd9 --- /dev/null +++ b/x/escrow/keeper/exported.go @@ -0,0 +1,68 @@ +package keeper + +import ( + "context" + + "cosmossdk.io/core/store" + + "github.com/cosmos/cosmos-sdk/codec" + sdk "github.com/cosmos/cosmos-sdk/types" + + escrowv1alpha1 "github.com/0tech/andromeda/x/escrow/andromeda/escrow/v1alpha1" + "github.com/0tech/andromeda/x/escrow/keeper/expected" + "github.com/0tech/andromeda/x/escrow/keeper/internal" +) + +type ( + MessageRouter = expected.MessageRouter + AuthKeeper = expected.AuthKeeper +) + +type Keeper struct { + impl internal.Keeper +} + +func NewKeeper( + cdc codec.Codec, + storeService store.KVStoreService, + authority sdk.AccAddress, + router expected.MessageRouter, + authKeeper expected.AuthKeeper, +) (*Keeper, error) { + impl, err := internal.NewKeeper( + cdc, + storeService, + authority, + router, + authKeeper, + ) + if err != nil { + return nil, err + } + + return &Keeper{impl: *impl}, nil +} + +func NewMsgServer(keeper Keeper) escrowv1alpha1.MsgServer { + return internal.NewMsgServer(keeper.impl) +} + +func NewQueryServer(keeper Keeper) escrowv1alpha1.QueryServer { + return internal.NewQueryServer(keeper.impl) +} + +func (k Keeper) DefaultGenesis() *escrowv1alpha1.GenesisState { + return k.impl.DefaultGenesis() +} + +func (k Keeper) ValidateGenesis(gs *escrowv1alpha1.GenesisState) error { + return k.impl.ValidateGenesis(gs) +} + +func (k Keeper) InitGenesis(ctx context.Context, gs *escrowv1alpha1.GenesisState) error { + return k.impl.InitGenesis(ctx, gs) +} + +func (k Keeper) ExportGenesis(ctx context.Context) (*escrowv1alpha1.GenesisState, error) { + return k.impl.ExportGenesis(ctx) +} diff --git a/x/escrow/keeper/internal/agent.go b/x/escrow/keeper/internal/agent.go new file mode 100644 index 0000000..1cf8434 --- /dev/null +++ b/x/escrow/keeper/internal/agent.go @@ -0,0 +1,156 @@ +package internal + +import ( + "context" + "encoding/binary" + + "cosmossdk.io/collections" + errorsmod "cosmossdk.io/errors" + + sdk "github.com/cosmos/cosmos-sdk/types" + authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" + + escrowv1alpha1 "github.com/0tech/andromeda/x/escrow/andromeda/escrow/v1alpha1" +) + +func (k Keeper) CreateAgent(ctx context.Context, creator sdk.AccAddress) (sdk.AccAddress, error) { + for { + agentNum, err := k.nextAgent.Next(ctx) + if err != nil { + return nil, escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()) + } + + derivationKey := make([]byte, 8) + binary.BigEndian.PutUint64(derivationKey, agentNum) + + ac, err := authtypes.NewModuleCredential(escrowv1alpha1.ModuleName, []byte("agent"), derivationKey) + if err != nil { + return nil, escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()) + } + address := sdk.AccAddress(ac.Address()) + if k.authKeeper.HasAccount(ctx, address) { + // collision found. retry. + continue + } + + addressStr, err := k.addressBytesToString(address) + if err != nil { + return nil, escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()) + } + bac := &authtypes.BaseAccount{ + Address: addressStr, + } + + if err := bac.SetPubKey(ac); err != nil { + return nil, errorsmod.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "failed to set a pubkey") + } + + acc := k.authKeeper.NewAccount(ctx, bac) + k.authKeeper.SetAccount(ctx, acc) + + if err := k.setAgent(ctx, address, creator, &escrowv1alpha1.Agent{}); err != nil { + // TODO: invariant broken + return nil, err + } + + return address, nil + } +} + +func (k Keeper) getAgentKey(ctx context.Context, address sdk.AccAddress) (*collections.Pair[sdk.AccAddress, sdk.AccAddress], error) { + key, err := k.agents.Indexes.address.MatchExact(ctx, address) + if err != nil { + if !errorsmod.IsOf(err, collections.ErrNotFound) { + return nil, escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()) + } + + return nil, escrowv1alpha1.ErrAgentNotFound.Wrap(err.Error()) + } + + return &key, nil +} + +func (k Keeper) GetAgent(ctx context.Context, address sdk.AccAddress) (sdk.AccAddress, *escrowv1alpha1.Agent, error) { + key, err := k.getAgentKey(ctx, address) + if err != nil { + return nil, nil, err + } + + creator := key.K1() + + agent, err := k.agents.Get(ctx, *key) + if err != nil { + return nil, nil, escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()) + } + + return creator, &agent, nil +} + +func (k Keeper) HasAgent(ctx context.Context, address, creator sdk.AccAddress) error { + has, err := k.agents.Has(ctx, collections.Join(creator, address)) + if err != nil { + return escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()) + } + + if !has { + addrStr, err := k.addressBytesToString(address) + if err != nil { + return err + } + + return escrowv1alpha1.ErrAgentNotFound.Wrap(addrStr) + } + + return nil +} + +func (k Keeper) setAgent(ctx context.Context, address, creator sdk.AccAddress, agent *escrowv1alpha1.Agent) error { + if err := k.agents.Set(ctx, collections.Join(creator, address), *agent); err != nil { + return escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()) + } + + return nil +} + +func (k Keeper) removeAgent(ctx context.Context, address sdk.AccAddress) error { + key, err := k.getAgentKey(ctx, address) + if err != nil { + return err + } + + if err := k.agents.Remove(ctx, *key); err != nil { + return escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()) + } + + return nil +} + +func (k Keeper) iterateAgents(ctx context.Context, fn func(address, creator sdk.AccAddress, agent escrowv1alpha1.Agent) error) error { + iter, err := k.agents.Indexes.address.Iterate(ctx, nil) + if err != nil { + return escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()) + } + defer iter.Close() + + for ; iter.Valid(); iter.Next() { + key, err := iter.PrimaryKey() + if err != nil { + return escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()) + } + + value, err := k.agents.Get(ctx, key) + if err != nil { + return escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()) + } + + creator := key.K1() + address := key.K2() + agent := value + + if err := fn(address, creator, agent); err != nil { + return err + } + } + + return nil +} diff --git a/x/escrow/keeper/internal/agent_test.go b/x/escrow/keeper/internal/agent_test.go new file mode 100644 index 0000000..539c0a6 --- /dev/null +++ b/x/escrow/keeper/internal/agent_test.go @@ -0,0 +1,43 @@ +package internal_test + +import ( + sdk "github.com/cosmos/cosmos-sdk/types" + + "github.com/0tech/andromeda/x/escrow/testutil" +) + +func (s *KeeperTestSuite) TestCreateAgent() { + type createAgent struct { + creator sdk.AccAddress + } + + tester := func(subject createAgent) error { + s.NotNil(subject.creator) + + ctx, _ := sdk.UnwrapSDKContext(s.ctx).CacheContext() + agent, err := s.keeper.CreateAgent(ctx, subject.creator) + if err != nil { + return err + } + s.NotNil(agent) + + err = s.keeper.HasAgent(s.ctx, agent, subject.creator) + s.Assert().Error(err) + + err = s.keeper.HasAgent(ctx, agent, subject.creator) + s.Require().NoError(err) + + return nil + } + cases := []map[string]testutil.Case[createAgent]{ + { + "valid creator": { + Malleate: func(subject *createAgent) { + subject.creator = s.stranger + }, + }, + }, + } + + testutil.DoTest(s.T(), tester, cases) +} diff --git a/x/escrow/keeper/internal/exec.go b/x/escrow/keeper/internal/exec.go new file mode 100644 index 0000000..84915b5 --- /dev/null +++ b/x/escrow/keeper/internal/exec.go @@ -0,0 +1,87 @@ +package internal + +import ( + "context" + + errorsmod "cosmossdk.io/errors" + + codectypes "github.com/cosmos/cosmos-sdk/codec/types" + sdk "github.com/cosmos/cosmos-sdk/types" + + escrowv1alpha1 "github.com/0tech/andromeda/x/escrow/andromeda/escrow/v1alpha1" +) + +func (k Keeper) Exec(ctx context.Context, id uint64, executor, agent sdk.AccAddress, actions []*codectypes.Any) error { + _, proposal, err := k.GetProposal(ctx, id) + if err != nil { + return err + } + + if !agent.Equals(sdk.AccAddress(proposal.Agent)) { + return escrowv1alpha1.ErrPermissionDenied.Wrap("agent differs") + } + + for _, phase := range []struct { + name string + actions []*codectypes.Any + }{ + { + name: "actions", + actions: actions, + }, + { + name: "post_actions", + actions: proposal.PostActions, + }, + } { + if err := k.executeActions(ctx, phase.actions); err != nil { + return errorsmod.Wrap(err, phase.name) + } + } + + if err := k.removeProposal(ctx, id); err != nil { + // TODO: invariant broken error handler + return err + } + + return nil +} + +func (k Keeper) executeActions(ctx context.Context, actions []*codectypes.Any) error { + sdkCtx := sdk.UnwrapSDKContext(ctx) + + for i, action := range actions { + addIndex := func(err error) error { + return errorsmod.Wrapf(err, "index %d", i) + } + + msg, err := k.anyToMsg(*action) + if err != nil { + return addIndex(err) + } + + handler := k.router.Handler(msg) + if handler == nil { + panic("TODO: error") + } + + result, err := handler(sdkCtx, msg) + if err != nil { + return addIndex(err) + } + + sdkCtx.EventManager().EmitEvents(result.GetEvents()) + } + + return nil +} + +func (k Keeper) anyToMsg(any codectypes.Any) (sdk.Msg, error) { + var msg sdk.Msg + if err := k.cdc.UnpackAny(&any, &msg); err != nil { + // TODO: define error + return nil, err + } + + return msg, nil +} diff --git a/x/escrow/keeper/internal/exec_test.go b/x/escrow/keeper/internal/exec_test.go new file mode 100644 index 0000000..cb65ecf --- /dev/null +++ b/x/escrow/keeper/internal/exec_test.go @@ -0,0 +1,87 @@ +package internal_test + +import ( + codectypes "github.com/cosmos/cosmos-sdk/codec/types" + sdk "github.com/cosmos/cosmos-sdk/types" + + escrowv1alpha1 "github.com/0tech/andromeda/x/escrow/andromeda/escrow/v1alpha1" + "github.com/0tech/andromeda/x/escrow/testutil" +) + +func (s *KeeperTestSuite) TestExec() { + type exec struct { + id uint64 + executor sdk.AccAddress + agent sdk.AccAddress + actions []*codectypes.Any + } + + tester := func(subject exec) error { + s.NotZero(subject.id) + s.NotNil(subject.executor) + s.NotNil(subject.agent) + s.NotNil(subject.actions) + + ctx, _ := sdk.UnwrapSDKContext(s.ctx).CacheContext() + err := s.keeper.Exec(ctx, subject.id, subject.executor, subject.agent, subject.actions) + if err != nil { + return err + } + + _, _, err = s.keeper.GetProposal(s.ctx, subject.id) + s.Assert().NoError(err) + + _, _, err = s.keeper.GetProposal(ctx, subject.id) + s.Require().Error(err) + + return nil + } + cases := []map[string]testutil.Case[exec]{ + { + "id already exists": { + Malleate: func(subject *exec) { + subject.id = s.proposalAny + }, + }, + "id not found": { + Malleate: func(subject *exec) { + subject.id = s.proposalLast + 1 + }, + Error: func() error { + return escrowv1alpha1.ErrProposalNotFound + }, + }, + }, + { + "executor already exists": { + Malleate: func(subject *exec) { + subject.executor = s.stranger + }, + }, + }, + { + "agent already exists": { + Malleate: func(subject *exec) { + subject.agent = s.agentAny + }, + }, + "agent differs from the proposal's": { + Malleate: func(subject *exec) { + subject.agent = s.agentIdle + }, + Error: func() error { + return escrowv1alpha1.ErrPermissionDenied + }, + }, + }, + { + "valid actions": { + Malleate: func(subject *exec) { + subject.actions = []*codectypes.Any{} + }, + }, + }, + } + + testutil.DoTest(s.T(), tester, cases) +} diff --git a/x/escrow/keeper/internal/genesis.go b/x/escrow/keeper/internal/genesis.go new file mode 100644 index 0000000..8dec7d2 --- /dev/null +++ b/x/escrow/keeper/internal/genesis.go @@ -0,0 +1,363 @@ +package internal + +import ( + "bytes" + "context" + + errorsmod "cosmossdk.io/errors" + + sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + + escrowv1alpha1 "github.com/0tech/andromeda/x/escrow/andromeda/escrow/v1alpha1" +) + +func (k Keeper) DefaultGenesis() *escrowv1alpha1.GenesisState { + return &escrowv1alpha1.GenesisState{ + Params: DefaultGenesisParams(), + NextAgent: 1, + Agents: []*escrowv1alpha1.GenesisState_Agent{}, + NextProposal: 1, + Proposals: []*escrowv1alpha1.GenesisState_Proposal{}, + } +} + +func DefaultGenesisParams() *escrowv1alpha1.GenesisState_Params { + return &escrowv1alpha1.GenesisState_Params{} +} + +func (k Keeper) ValidateGenesis(gs *escrowv1alpha1.GenesisState) error { + if gs.Params == nil { + return escrowv1alpha1.ErrUnimplemented.Wrap("nil params") + } + + if gs.NextAgent == 0 { + return escrowv1alpha1.ErrUnimplemented.Wrap("nil next_agent") + } + + if gs.Agents == nil { + return escrowv1alpha1.ErrUnimplemented.Wrap("nil agents") + } + + if gs.NextProposal == 0 { + return escrowv1alpha1.ErrUnimplemented.Wrap("nil next_proposal") + } + + if gs.Proposals == nil { + return escrowv1alpha1.ErrUnimplemented.Wrap("nil proposals") + } + + if err := k.validateGenesisParams(gs.Params); err != nil { + return errorsmod.Wrap(err, "params") + } + + if err := k.validateGenesisAgents(gs.Agents); err != nil { + return errorsmod.Wrap(err, "agents") + } + + if err := k.validateGenesisProposals(gs.Proposals); err != nil { + return errorsmod.Wrap(err, "proposals") + } + + return nil +} + +func (k Keeper) validateGenesisParams(params *escrowv1alpha1.GenesisState_Params) error { + return nil +} + +func (k Keeper) validateGenesisAgents(agents []*escrowv1alpha1.GenesisState_Agent) error { + seenAddress := sdk.AccAddress{} + for i, agent := range agents { + addIndex := func(err error) error { + return errorsmod.Wrapf(err, "index %d", i) + } + + if agent == nil { + return addIndex(escrowv1alpha1.ErrUnimplemented.Wrap("nil agent")) + } + + address, err := k.validateGenesisAgent(agent) + if err != nil { + return addIndex(err) + } + + if !(bytes.Compare(address, seenAddress) > 0) { + return addIndex(sdkerrors.ErrInvalidRequest.Wrap("unsorted agent")) + } + seenAddress = address + } + + return nil +} + +func (k Keeper) validateGenesisAgent(agent *escrowv1alpha1.GenesisState_Agent) (sdk.AccAddress, error) { + if agent.Address == "" { + return nil, escrowv1alpha1.ErrUnimplemented.Wrap("nil address") + } + + if agent.Creator == "" { + return nil, escrowv1alpha1.ErrUnimplemented.Wrap("nil creator") + } + + address, err := k.addressStringToBytes(agent.Address) + if err != nil { + return nil, errorsmod.Wrap(err, "address") + } + + if _, err := k.addressStringToBytes(agent.Creator); err != nil { + return nil, errorsmod.Wrap(err, "creator") + } + + return address, nil +} + +func (k Keeper) validateGenesisProposals(proposals []*escrowv1alpha1.GenesisState_Proposal) error { + seenID := uint64(0) + for i, proposal := range proposals { + addIndex := func(err error) error { + return errorsmod.Wrapf(err, "index %d", i) + } + + if proposal == nil { + return addIndex(escrowv1alpha1.ErrUnimplemented.Wrap("nil proposal")) + } + + if err := k.validateGenesisProposal(proposal); err != nil { + return addIndex(err) + } + + if !(proposal.Id > seenID) { + return addIndex(sdkerrors.ErrInvalidRequest.Wrap("unsorted proposal")) + } + seenID = proposal.Id + } + + return nil +} + +func (k Keeper) validateGenesisProposal(proposal *escrowv1alpha1.GenesisState_Proposal) error { + if proposal.Id == 0 { + return escrowv1alpha1.ErrUnimplemented.Wrap("nil id") + } + + if proposal.Proposer == "" { + return escrowv1alpha1.ErrUnimplemented.Wrap("nil proposer") + } + + if proposal.Agent == "" { + return escrowv1alpha1.ErrUnimplemented.Wrap("nil agent") + } + + if proposal.PreActions == nil { + return escrowv1alpha1.ErrUnimplemented.Wrap("nil pre_actions") + } + + if proposal.PostActions == nil { + return escrowv1alpha1.ErrUnimplemented.Wrap("nil post_actions") + } + + if _, err := k.addressStringToBytes(proposal.Proposer); err != nil { + return errorsmod.Wrap(err, "proposer") + } + + if _, err := k.addressStringToBytes(proposal.Agent); err != nil { + return errorsmod.Wrap(err, "agent") + } + + return nil +} + +func (k Keeper) InitGenesis(ctx context.Context, gs *escrowv1alpha1.GenesisState) error { + if err := k.initGenesisParams(ctx, gs.Params); err != nil { + return errorsmod.Wrap(err, "params") + } + + if err := k.nextAgent.Set(ctx, gs.NextAgent); err != nil { + return errorsmod.Wrap(err, "next_agent") + } + + if err := k.initGenesisAgents(ctx, gs.Agents); err != nil { + return errorsmod.Wrap(err, "agents") + } + + if err := k.nextProposal.Set(ctx, gs.NextProposal); err != nil { + return errorsmod.Wrap(err, "next_proposal") + } + + if err := k.initGenesisProposals(ctx, gs.Proposals); err != nil { + return errorsmod.Wrap(err, "proposals") + } + + return nil +} + +func (k Keeper) initGenesisParams(ctx context.Context, params *escrowv1alpha1.GenesisState_Params) error { + if err := k.setParams(ctx, &escrowv1alpha1.Params{}); err != nil { + return err + } + + return nil +} + +func (k Keeper) initGenesisAgents(ctx context.Context, agents []*escrowv1alpha1.GenesisState_Agent) error { + for i, agent := range agents { + addIndex := func(err error) error { + return errorsmod.Wrapf(err, "index %d", i) + } + + if err := k.initGenesisAgent(ctx, agent); err != nil { + return addIndex(err) + } + } + + return nil +} + +func (k Keeper) initGenesisAgent(ctx context.Context, agent *escrowv1alpha1.GenesisState_Agent) error { + address, err := k.addressStringToBytes(agent.Address) + if err != nil { + return errorsmod.Wrap(err, "address") + } + + creator, err := k.addressStringToBytes(agent.Creator) + if err != nil { + return errorsmod.Wrap(err, "creator") + } + + if err := k.setAgent(ctx, address, creator, &escrowv1alpha1.Agent{}); err != nil { + return err + } + + return nil +} + +func (k Keeper) initGenesisProposals(ctx context.Context, proposals []*escrowv1alpha1.GenesisState_Proposal) error { + for i, proposal := range proposals { + addIndex := func(err error) error { + return errorsmod.Wrapf(err, "index %d", i) + } + + if err := k.initGenesisProposal(ctx, proposal); err != nil { + return addIndex(err) + } + } + + return nil +} + +func (k Keeper) initGenesisProposal(ctx context.Context, proposal *escrowv1alpha1.GenesisState_Proposal) error { + proposer, err := k.addressStringToBytes(proposal.Proposer) + if err != nil { + return errorsmod.Wrap(err, "proposer") + } + + agent, err := k.addressStringToBytes(proposal.Agent) + if err != nil { + return errorsmod.Wrap(err, "agent") + } + + if err := k.setProposal(ctx, proposal.Id, proposer, &escrowv1alpha1.Proposal{ + Agent: agent, + PreActions: proposal.PreActions, + PostActions: proposal.PostActions, + }); err != nil { + return err + } + + return nil +} + +func (k Keeper) ExportGenesis(ctx context.Context) (*escrowv1alpha1.GenesisState, error) { + params, err := k.exportGenesisParams(ctx) + if err != nil { + return nil, errorsmod.Wrap(err, "params") + } + + nextAgent, err := k.nextAgent.Peek(ctx) + if err != nil { + return nil, errorsmod.Wrap(err, "next_agent") + } + + agents, err := k.exportGenesisAgents(ctx) + if err != nil { + return nil, errorsmod.Wrap(err, "agents") + } + + nextProposal, err := k.nextProposal.Peek(ctx) + if err != nil { + return nil, errorsmod.Wrap(err, "next_proposal") + } + + proposals, err := k.exportGenesisProposals(ctx) + if err != nil { + return nil, errorsmod.Wrap(err, "proposals") + } + + return &escrowv1alpha1.GenesisState{ + Params: params, + NextAgent: nextAgent, + Agents: agents, + NextProposal: nextProposal, + Proposals: proposals, + }, nil +} + +func (k Keeper) exportGenesisParams(ctx context.Context) (*escrowv1alpha1.GenesisState_Params, error) { + return &escrowv1alpha1.GenesisState_Params{}, nil +} + +func (k Keeper) exportGenesisAgents(ctx context.Context) ([]*escrowv1alpha1.GenesisState_Agent, error) { + agents := []*escrowv1alpha1.GenesisState_Agent{} + if err := k.iterateAgents(ctx, func(address, creator sdk.AccAddress, agent escrowv1alpha1.Agent) error { + addressStr, err := k.addressBytesToString(address) + if err != nil { + return errorsmod.Wrap(err, "address") + } + + creatorStr, err := k.addressBytesToString(creator) + if err != nil { + return errorsmod.Wrap(err, "creator") + } + + agents = append(agents, &escrowv1alpha1.GenesisState_Agent{ + Address: addressStr, + Creator: creatorStr, + }) + + return nil + }); err != nil { + return nil, err + } + + return agents, nil +} + +func (k Keeper) exportGenesisProposals(ctx context.Context) ([]*escrowv1alpha1.GenesisState_Proposal, error) { + proposals := []*escrowv1alpha1.GenesisState_Proposal{} + if err := k.iterateProposals(ctx, func(id uint64, proposer sdk.AccAddress, proposal escrowv1alpha1.Proposal) error { + proposerStr, err := k.addressBytesToString(proposer) + if err != nil { + return errorsmod.Wrap(err, "proposer") + } + + agentStr, err := k.addressBytesToString(proposal.Agent) + if err != nil { + return errorsmod.Wrap(err, "agent") + } + + proposals = append(proposals, &escrowv1alpha1.GenesisState_Proposal{ + Id: id, + Proposer: proposerStr, + Agent: agentStr, + PreActions: proposal.PreActions, + PostActions: proposal.PostActions, + }) + + return nil + }); err != nil { + return nil, err + } + + return proposals, nil +} diff --git a/x/escrow/keeper/internal/genesis_test.go b/x/escrow/keeper/internal/genesis_test.go new file mode 100644 index 0000000..7ce8376 --- /dev/null +++ b/x/escrow/keeper/internal/genesis_test.go @@ -0,0 +1,614 @@ +package internal_test + +import ( + "testing" + + "github.com/stretchr/testify/assert" + + codectypes "github.com/cosmos/cosmos-sdk/codec/types" + simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + + escrowv1alpha1 "github.com/0tech/andromeda/x/escrow/andromeda/escrow/v1alpha1" + "github.com/0tech/andromeda/x/escrow/testutil" +) + +func TestValidateGenesisAgents(t *testing.T) { + k, _, addressCodec, _ := setupEscrowKeeper(t) + addressBytesToString := func(address []byte) string { + addressStr, err := addressCodec.BytesToString(address) + assert.NoError(t, err) + return addressStr + } + + addresses := simtestutil.CreateIncrementalAccounts(4) + creatorStr := addressBytesToString(simtestutil.CreateRandomAccounts(1)[0]) + + gs := k.DefaultGenesis() + tester := func(subject []*escrowv1alpha1.GenesisState_Agent) error { + gs.Agents = subject + return k.ValidateGenesis(gs) + } + cases := []map[string]testutil.Case[[]*escrowv1alpha1.GenesisState_Agent]{} + for i := 0; i < len(addresses)/2; i++ { + addressStr := addressBytesToString(addresses[i*2+1]) + descendingAddressStr := addressBytesToString(addresses[i*2]) + + added := false + cases = append(cases, []map[string]testutil.Case[[]*escrowv1alpha1.GenesisState_Agent]{ + { + "[nil agent": { + Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Agent) { + added = false + *subject = append(*subject, nil) + }, + Error: func() error { + return escrowv1alpha1.ErrUnimplemented + }, + }, + "[non-nil agent": { + Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Agent) { + added = true + *subject = append(*subject, &escrowv1alpha1.GenesisState_Agent{}) + }, + }, + }, + { + "nil address": { + Error: func() error { + if !added { + return nil + } + return escrowv1alpha1.ErrUnimplemented + }, + }, + "valid address": { + Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Agent) { + if !added { + return + } + (*subject)[len(*subject)-1].Address = addressStr + }, + }, + "invalid address": { + Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Agent) { + if !added { + return + } + (*subject)[len(*subject)-1].Address = notInBech32 + }, + Error: func() error { + if !added { + return nil + } + return escrowv1alpha1.ErrInvalidAddress + }, + }, + }, + { + "nil creator]": { + Error: func() error { + if !added { + return nil + } + return escrowv1alpha1.ErrUnimplemented + }, + }, + "valid creator]": { + Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Agent) { + if !added { + return + } + (*subject)[len(*subject)-1].Creator = creatorStr + }, + }, + "invalid creator]": { + Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Agent) { + if !added { + return + } + (*subject)[len(*subject)-1].Creator = notInBech32 + }, + Error: func() error { + if !added { + return nil + } + return escrowv1alpha1.ErrInvalidAddress + }, + }, + }, + }...) + + addedDuplicate := false + cases = append(cases, []map[string]testutil.Case[[]*escrowv1alpha1.GenesisState_Agent]{ + { + "[no duplicate agent": { + Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Agent) { + addedDuplicate = false + }, + }, + "[duplicate agent": { + Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Agent) { + if !added { + return + } + addedDuplicate = true + *subject = append(*subject, &escrowv1alpha1.GenesisState_Agent{}) + }, + Error: func() error { + if addedDuplicate { + return sdkerrors.ErrInvalidRequest + } + return nil + }, + }, + }, + { + "valid address": { + Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Agent) { + if !addedDuplicate { + return + } + (*subject)[len(*subject)-1].Address = addressStr + }, + }, + }, + { + "valid creator]": { + Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Agent) { + if !addedDuplicate { + return + } + (*subject)[len(*subject)-1].Creator = creatorStr + }, + }, + }, + }...) + + addedDescending := false + cases = append(cases, []map[string]testutil.Case[[]*escrowv1alpha1.GenesisState_Agent]{ + { + "[no descending agent": { + Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Agent) { + addedDescending = false + }, + }, + "[descending agent": { + Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Agent) { + if !added { + return + } + addedDescending = true + *subject = append(*subject, &escrowv1alpha1.GenesisState_Agent{}) + }, + Error: func() error { + if addedDescending { + return sdkerrors.ErrInvalidRequest + } + return nil + }, + }, + }, + { + "valid address": { + Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Agent) { + if !addedDescending { + return + } + (*subject)[len(*subject)-1].Address = descendingAddressStr + }, + }, + }, + { + "valid creator]": { + Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Agent) { + if !addedDescending { + return + } + (*subject)[len(*subject)-1].Creator = creatorStr + }, + }, + }, + }...) + } + + testutil.DoTest(t, tester, cases) +} + +func TestValidateGenesisProposals(t *testing.T) { + k, _, addressCodec, _ := setupEscrowKeeper(t) + addressBytesToString := func(address []byte) string { + addressStr, err := addressCodec.BytesToString(address) + assert.NoError(t, err) + return addressStr + } + + ids := make([]uint64, 4) + for i := range ids { + ids[i] = uint64(i) + 1 + } + + var proposerStr, agentStr string + for _, addrStr := range []*string{ + &proposerStr, + &agentStr, + } { + *addrStr = addressBytesToString(simtestutil.CreateRandomAccounts(1)[0]) + } + + gs := k.DefaultGenesis() + tester := func(subject []*escrowv1alpha1.GenesisState_Proposal) error { + gs.Proposals = subject + return k.ValidateGenesis(gs) + } + cases := []map[string]testutil.Case[[]*escrowv1alpha1.GenesisState_Proposal]{} + for i := 0; i < len(ids)/2; i++ { + id := ids[i*2+1] + descendingID := ids[i*2] + + added := false + cases = append(cases, []map[string]testutil.Case[[]*escrowv1alpha1.GenesisState_Proposal]{ + { + "[nil proposal": { + Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Proposal) { + added = false + *subject = append(*subject, nil) + }, + Error: func() error { + return escrowv1alpha1.ErrUnimplemented + }, + }, + "[non-nil proposal": { + Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Proposal) { + added = true + *subject = append(*subject, &escrowv1alpha1.GenesisState_Proposal{}) + }, + }, + }, + { + "nil id": { + Error: func() error { + if !added { + return nil + } + return escrowv1alpha1.ErrUnimplemented + }, + }, + "valid id": { + Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Proposal) { + if !added { + return + } + (*subject)[len(*subject)-1].Id = id + }, + }, + }, + { + "nil proposer": { + Error: func() error { + if !added { + return nil + } + return escrowv1alpha1.ErrUnimplemented + }, + }, + "valid proposer": { + Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Proposal) { + if !added { + return + } + (*subject)[len(*subject)-1].Proposer = proposerStr + }, + }, + "invalid proposer": { + Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Proposal) { + if !added { + return + } + (*subject)[len(*subject)-1].Proposer = notInBech32 + }, + Error: func() error { + if !added { + return nil + } + return escrowv1alpha1.ErrInvalidAddress + }, + }, + }, + { + "nil agent": { + Error: func() error { + if !added { + return nil + } + return escrowv1alpha1.ErrUnimplemented + }, + }, + "valid agent": { + Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Proposal) { + if !added { + return + } + (*subject)[len(*subject)-1].Agent = agentStr + }, + }, + "invalid agent": { + Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Proposal) { + if !added { + return + } + (*subject)[len(*subject)-1].Agent = notInBech32 + }, + Error: func() error { + if !added { + return nil + } + return escrowv1alpha1.ErrInvalidAddress + }, + }, + }, + { + "nil pre_actions": { + Error: func() error { + if !added { + return nil + } + return escrowv1alpha1.ErrUnimplemented + }, + }, + "valid pre_actions": { + Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Proposal) { + if !added { + return + } + (*subject)[len(*subject)-1].PreActions = []*codectypes.Any{} + }, + }, + }, + { + "nil post_actions]": { + Error: func() error { + if !added { + return nil + } + return escrowv1alpha1.ErrUnimplemented + }, + }, + "valid post_actions]": { + Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Proposal) { + if !added { + return + } + (*subject)[len(*subject)-1].PostActions = []*codectypes.Any{} + }, + }, + }, + }...) + + addedDuplicate := false + cases = append(cases, []map[string]testutil.Case[[]*escrowv1alpha1.GenesisState_Proposal]{ + { + "[no duplicate proposal": { + Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Proposal) { + addedDuplicate = false + }, + }, + "[duplicate proposal": { + Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Proposal) { + if !added { + return + } + addedDuplicate = true + *subject = append(*subject, &escrowv1alpha1.GenesisState_Proposal{}) + }, + Error: func() error { + if addedDuplicate { + return sdkerrors.ErrInvalidRequest + } + return nil + }, + }, + }, + { + "valid id": { + Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Proposal) { + if !addedDuplicate { + return + } + (*subject)[len(*subject)-1].Id = id + }, + }, + }, + { + "valid proposer": { + Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Proposal) { + if !addedDuplicate { + return + } + (*subject)[len(*subject)-1].Proposer = proposerStr + }, + }, + }, + { + "valid agent": { + Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Proposal) { + if !addedDuplicate { + return + } + (*subject)[len(*subject)-1].Agent = agentStr + }, + }, + }, + { + "valid pre_actions": { + Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Proposal) { + if !addedDuplicate { + return + } + (*subject)[len(*subject)-1].PreActions = []*codectypes.Any{} + }, + }, + }, + { + "valid post_actions]": { + Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Proposal) { + if !addedDuplicate { + return + } + (*subject)[len(*subject)-1].PostActions = []*codectypes.Any{} + }, + }, + }, + }...) + + addedDescending := false + cases = append(cases, []map[string]testutil.Case[[]*escrowv1alpha1.GenesisState_Proposal]{ + { + "[no descending proposal": { + Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Proposal) { + addedDescending = false + }, + }, + "[descending proposal": { + Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Proposal) { + if !added { + return + } + addedDescending = true + *subject = append(*subject, &escrowv1alpha1.GenesisState_Proposal{}) + }, + Error: func() error { + if addedDescending { + return sdkerrors.ErrInvalidRequest + } + return nil + }, + }, + }, + { + "valid id": { + Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Proposal) { + if !addedDescending { + return + } + (*subject)[len(*subject)-1].Id = descendingID + }, + }, + }, + { + "valid proposer": { + Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Proposal) { + if !addedDescending { + return + } + (*subject)[len(*subject)-1].Proposer = proposerStr + }, + }, + }, + { + "valid agent": { + Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Proposal) { + if !addedDescending { + return + } + (*subject)[len(*subject)-1].Agent = agentStr + }, + }, + }, + { + "valid pre_actions": { + Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Proposal) { + if !addedDescending { + return + } + (*subject)[len(*subject)-1].PreActions = []*codectypes.Any{} + }, + }, + }, + { + "valid post_actions]": { + Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Proposal) { + if !addedDescending { + return + } + (*subject)[len(*subject)-1].PostActions = []*codectypes.Any{} + }, + }, + }, + }...) + } + + testutil.DoTest(t, tester, cases) +} + +func TestGenesisState(t *testing.T) { + k, _, _, _ := setupEscrowKeeper(t) //nolint:dogsled + + tester := func(subject escrowv1alpha1.GenesisState) error { + return k.ValidateGenesis(&subject) + } + cases := []map[string]testutil.Case[escrowv1alpha1.GenesisState]{ + { + "nil params": { + Error: func() error { + return escrowv1alpha1.ErrUnimplemented + }, + }, + "valid params": { + Malleate: func(subject *escrowv1alpha1.GenesisState) { + subject.Params = k.DefaultGenesis().Params + }, + }, + }, + { + "nil next_agent": { + Error: func() error { + return escrowv1alpha1.ErrUnimplemented + }, + }, + "valid next_agent": { + Malleate: func(subject *escrowv1alpha1.GenesisState) { + subject.NextAgent = k.DefaultGenesis().NextAgent + }, + }, + }, + { + "nil agents": { + Error: func() error { + return escrowv1alpha1.ErrUnimplemented + }, + }, + "valid agents": { + Malleate: func(subject *escrowv1alpha1.GenesisState) { + subject.Agents = k.DefaultGenesis().Agents + }, + }, + }, + { + "nil next_proposal": { + Error: func() error { + return escrowv1alpha1.ErrUnimplemented + }, + }, + "valid next_proposal": { + Malleate: func(subject *escrowv1alpha1.GenesisState) { + subject.NextProposal = k.DefaultGenesis().NextProposal + }, + }, + }, + { + "nil proposals": { + Error: func() error { + return escrowv1alpha1.ErrUnimplemented + }, + }, + "valid proposals": { + Malleate: func(subject *escrowv1alpha1.GenesisState) { + subject.Proposals = k.DefaultGenesis().Proposals + }, + }, + }, + } + + testutil.DoTest(t, tester, cases) +} diff --git a/x/escrow/keeper/internal/grpc_query.go b/x/escrow/keeper/internal/grpc_query.go new file mode 100644 index 0000000..09fb36c --- /dev/null +++ b/x/escrow/keeper/internal/grpc_query.go @@ -0,0 +1,186 @@ +package internal + +import ( + "context" + + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" + + "cosmossdk.io/collections" + errorsmod "cosmossdk.io/errors" + + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/types/query" + + escrowv1alpha1 "github.com/0tech/andromeda/x/escrow/andromeda/escrow/v1alpha1" +) + +type queryServer struct { + keeper Keeper +} + +var _ escrowv1alpha1.QueryServer = (*queryServer)(nil) + +// NewQueryServer returns an implementation of the QueryServer interface +// for the provided Keeper. +func NewQueryServer(keeper Keeper) escrowv1alpha1.QueryServer { + return &queryServer{ + keeper: keeper, + } +} + +func (s queryServer) Params(ctx context.Context, req *escrowv1alpha1.QueryParamsRequest) (*escrowv1alpha1.QueryParamsResponse, error) { + if req == nil { + return nil, status.Errorf(codes.InvalidArgument, "empty request") + } + + _, err := s.keeper.GetParams(ctx) + if err != nil { + return nil, err + } + + return &escrowv1alpha1.QueryParamsResponse{ + Params: &escrowv1alpha1.QueryParamsResponse_Params{}, + }, nil +} + +func (s queryServer) Agent(ctx context.Context, req *escrowv1alpha1.QueryAgentRequest) (*escrowv1alpha1.QueryAgentResponse, error) { + if req == nil { + return nil, status.Errorf(codes.InvalidArgument, "empty request") + } + + if req.Address == "" { + return nil, escrowv1alpha1.ErrUnimplemented.Wrap("nil address") + } + + address, err := s.keeper.addressStringToBytes(req.Address) + if err != nil { + return nil, errorsmod.Wrap(err, "address") + } + + creator, _, err := s.keeper.GetAgent(ctx, address) + if err != nil { + return nil, err + } + + creatorStr, err := s.keeper.addressBytesToString(creator) + if err != nil { + return nil, errorsmod.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "creator") + } + + return &escrowv1alpha1.QueryAgentResponse{ + Agent: &escrowv1alpha1.QueryAgentResponse_Agent{ + Address: req.Address, + Creator: creatorStr, + }, + }, nil +} + +func (s queryServer) Agents(ctx context.Context, req *escrowv1alpha1.QueryAgentsRequest) (*escrowv1alpha1.QueryAgentsResponse, error) { + if req == nil { + return nil, status.Errorf(codes.InvalidArgument, "empty request") + } + + agents, pageRes, err := query.CollectionPaginate(ctx, s.keeper.agents, req.Pagination, func(key collections.Pair[sdk.AccAddress, sdk.AccAddress], _ escrowv1alpha1.Agent) (*escrowv1alpha1.QueryAgentsResponse_Agent, error) { + creator := key.K1() + address := key.K2() + + addressStr, err := s.keeper.addressBytesToString(address) + if err != nil { + return nil, errorsmod.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "address") + } + + creatorStr, err := s.keeper.addressBytesToString(creator) + if err != nil { + return nil, errorsmod.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "creator") + } + + return &escrowv1alpha1.QueryAgentsResponse_Agent{ + Address: addressStr, + Creator: creatorStr, + }, nil + }) + if err != nil { + return nil, err + } + + return &escrowv1alpha1.QueryAgentsResponse{ + Agents: agents, + Pagination: pageRes, + }, nil +} + +func (s queryServer) Proposal(ctx context.Context, req *escrowv1alpha1.QueryProposalRequest) (*escrowv1alpha1.QueryProposalResponse, error) { + if req == nil { + return nil, status.Errorf(codes.InvalidArgument, "empty request") + } + + if req.Id == 0 { + return nil, escrowv1alpha1.ErrUnimplemented.Wrap("nil id") + } + + proposer, proposal, err := s.keeper.GetProposal(ctx, req.Id) + if err != nil { + return nil, err + } + + proposerStr, err := s.keeper.addressBytesToString(proposer) + if err != nil { + return nil, errorsmod.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "proposer") + } + + agentStr, err := s.keeper.addressBytesToString(proposal.Agent) + if err != nil { + return nil, errorsmod.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "agent") + } + + return &escrowv1alpha1.QueryProposalResponse{ + Proposal: &escrowv1alpha1.QueryProposalResponse_Proposal{ + Id: req.Id, + Proposer: proposerStr, + Agent: agentStr, + PreActions: proposal.PreActions, + PostActions: proposal.PostActions, + }, + }, nil +} + +func (s queryServer) Proposals(ctx context.Context, req *escrowv1alpha1.QueryProposalsRequest) (*escrowv1alpha1.QueryProposalsResponse, error) { + if req == nil { + return nil, status.Errorf(codes.InvalidArgument, "empty request") + } + + proposals, pageRes, err := query.CollectionPaginate(ctx, s.keeper.proposals, req.Pagination, func(key collections.Pair[sdk.AccAddress, uint64], value escrowv1alpha1.Proposal) (*escrowv1alpha1.QueryProposalsResponse_Proposal, error) { + proposer := key.K1() + id := key.K2() + proposal := value + + proposerStr, err := s.keeper.addressBytesToString(proposer) + if err != nil { + return nil, errorsmod.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "proposer") + } + + agentStr, err := s.keeper.addressBytesToString(value.Agent) + if err != nil { + return nil, errorsmod.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "agent") + } + + s.keeper.fixActions(&proposal) + + return &escrowv1alpha1.QueryProposalsResponse_Proposal{ + Id: id, + Proposer: proposerStr, + Agent: agentStr, + PreActions: proposal.PreActions, + PostActions: proposal.PostActions, + }, nil + }) + if err != nil { + return nil, err + } + + return &escrowv1alpha1.QueryProposalsResponse{ + Proposals: proposals, + Pagination: pageRes, + }, nil +} diff --git a/x/escrow/keeper/internal/grpc_query_test.go b/x/escrow/keeper/internal/grpc_query_test.go new file mode 100644 index 0000000..c6f7e14 --- /dev/null +++ b/x/escrow/keeper/internal/grpc_query_test.go @@ -0,0 +1,176 @@ +package internal_test + +import ( + simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims" + + escrowv1alpha1 "github.com/0tech/andromeda/x/escrow/andromeda/escrow/v1alpha1" + "github.com/0tech/andromeda/x/escrow/testutil" +) + +func (s *KeeperTestSuite) TestQueryParams() { + tester := func(subject escrowv1alpha1.QueryParamsRequest) error { + res, err := s.queryServer.Params(s.ctx, &subject) + if err != nil { + return err + } + s.Require().NotNil(res) + + s.Require().NotNil(res.Params) + + return nil + } + cases := []map[string]testutil.Case[escrowv1alpha1.QueryParamsRequest]{ + { + "valid request": {}, + }, + } + + testutil.DoTest(s.T(), tester, cases) +} + +func (s *KeeperTestSuite) TestQueryAgent() { + tester := func(subject escrowv1alpha1.QueryAgentRequest) error { + res, err := s.queryServer.Agent(s.ctx, &subject) + if err != nil { + return err + } + s.Require().NotNil(res) + + s.Require().NotNil(res.Agent) + s.Require().Equal(subject.Address, res.Agent.Address) + s.Require().NotNil(res.Agent.Creator) + + return nil + } + cases := []map[string]testutil.Case[escrowv1alpha1.QueryAgentRequest]{ + { + "nil address": { + Error: func() error { + return escrowv1alpha1.ErrUnimplemented + }, + }, + "valid address": { + Malleate: func(subject *escrowv1alpha1.QueryAgentRequest) { + subject.Address = s.addressBytesToString(s.agentIdle) + }, + }, + "invalid address": { + Malleate: func(subject *escrowv1alpha1.QueryAgentRequest) { + subject.Address = notInBech32 + }, + Error: func() error { + return escrowv1alpha1.ErrInvalidAddress + }, + }, + "address not found": { + Malleate: func(subject *escrowv1alpha1.QueryAgentRequest) { + subject.Address = s.addressBytesToString(simtestutil.CreateRandomAccounts(1)[0]) + }, + Error: func() error { + return escrowv1alpha1.ErrAgentNotFound + }, + }, + }, + } + + testutil.DoTest(s.T(), tester, cases) +} + +func (s *KeeperTestSuite) TestQueryAgents() { + tester := func(subject escrowv1alpha1.QueryAgentsRequest) error { + res, err := s.queryServer.Agents(s.ctx, &subject) + if err != nil { + return err + } + s.Require().NotNil(res) + + s.Require().Len(res.Agents, 1) + for i, agent := range res.Agents { + s.Require().NotNil(agent, i) + + s.Require().NotNil(agent.Address, i) + s.Require().NotNil(agent.Creator, i) + } + + return nil + } + cases := []map[string]testutil.Case[escrowv1alpha1.QueryAgentsRequest]{ + { + "valid request": {}, + }, + } + + testutil.DoTest(s.T(), tester, cases) +} + +func (s *KeeperTestSuite) TestQueryProposal() { + tester := func(subject escrowv1alpha1.QueryProposalRequest) error { + res, err := s.queryServer.Proposal(s.ctx, &subject) + if err != nil { + return err + } + s.Require().NotNil(res) + + s.Require().NotNil(res.Proposal) + s.Require().Equal(subject.Id, res.Proposal.Id) + s.Require().NotNil(res.Proposal.Proposer) + s.Require().NotNil(res.Proposal.Agent) + s.Require().NotNil(res.Proposal.PreActions) + s.Require().NotNil(res.Proposal.PostActions) + + return nil + } + cases := []map[string]testutil.Case[escrowv1alpha1.QueryProposalRequest]{ + { + "nil id": { + Error: func() error { + return escrowv1alpha1.ErrUnimplemented + }, + }, + "valid id": { + Malleate: func(subject *escrowv1alpha1.QueryProposalRequest) { + subject.Id = s.proposalLast + }, + }, + "id not found": { + Malleate: func(subject *escrowv1alpha1.QueryProposalRequest) { + subject.Id = s.proposalLast + 1 + }, + Error: func() error { + return escrowv1alpha1.ErrProposalNotFound + }, + }, + }, + } + + testutil.DoTest(s.T(), tester, cases) +} + +func (s *KeeperTestSuite) TestQueryProposals() { + tester := func(subject escrowv1alpha1.QueryProposalsRequest) error { + res, err := s.queryServer.Proposals(s.ctx, &subject) + if err != nil { + return err + } + s.Require().NotNil(res) + + s.Require().Len(res.Proposals, 2) + for i, proposal := range res.Proposals { + s.Require().NotNil(proposal, i) + + s.Require().NotZero(proposal.Id, i) + s.Require().NotNil(proposal.Proposer, i) + s.Require().NotNil(proposal.Agent, i) + s.Require().NotNil(proposal.PreActions, i) + s.Require().NotNil(proposal.PostActions, i) + } + return nil + } + cases := []map[string]testutil.Case[escrowv1alpha1.QueryProposalsRequest]{ + { + "valid request": {}, + }, + } + + testutil.DoTest(s.T(), tester, cases) +} diff --git a/x/escrow/keeper/internal/keeper.go b/x/escrow/keeper/internal/keeper.go new file mode 100644 index 0000000..4c6b42b --- /dev/null +++ b/x/escrow/keeper/internal/keeper.go @@ -0,0 +1,98 @@ +package internal + +import ( + "cosmossdk.io/collections" + "cosmossdk.io/core/store" + + "github.com/cosmos/cosmos-sdk/codec" + sdk "github.com/cosmos/cosmos-sdk/types" + + escrowv1alpha1 "github.com/0tech/andromeda/x/escrow/andromeda/escrow/v1alpha1" + "github.com/0tech/andromeda/x/escrow/keeper/expected" +) + +type Keeper struct { + cdc codec.Codec + + authority sdk.AccAddress + router expected.MessageRouter + + authKeeper expected.AuthKeeper + + schema collections.Schema + + params collections.Item[escrowv1alpha1.Params] + + nextAgent collections.Sequence + agents *collections.IndexedMap[collections.Pair[sdk.AccAddress, sdk.AccAddress], escrowv1alpha1.Agent, agentsIndexes] + + nextProposal collections.Sequence + proposals *collections.IndexedMap[collections.Pair[sdk.AccAddress, uint64], escrowv1alpha1.Proposal, proposalsIndexes] +} + +func NewKeeper( + cdc codec.Codec, + storeService store.KVStoreService, + authority sdk.AccAddress, + router expected.MessageRouter, + authKeeper expected.AuthKeeper, +) (*Keeper, error) { + sb := collections.NewSchemaBuilder(storeService) + k := &Keeper{ + cdc: cdc, + authority: authority, + router: router, + authKeeper: authKeeper, + params: collections.NewItem(sb, paramsKey, "params", + codec.CollValue[escrowv1alpha1.Params](cdc)), + nextAgent: collections.NewSequence(sb, agentsSeqKey, "next_agent"), + agents: collections.NewIndexedMap(sb, agentsKeyPrefix, "agents", + collections.PairKeyCodec(sdk.AccAddressKey, sdk.AccAddressKey), + codec.CollValue[escrowv1alpha1.Agent](cdc), + newAgentsIndexes(sb), + ), + nextProposal: collections.NewSequence(sb, proposalsSeqKey, "next_proposal"), + proposals: collections.NewIndexedMap(sb, proposalsKeyPrefix, "proposals", + collections.PairKeyCodec(sdk.AccAddressKey, collections.Uint64Key), + codec.CollValue[escrowv1alpha1.Proposal](cdc), + newProposalsIndexes(sb), + ), + } + + schema, err := sb.Build() + if err != nil { + return nil, err + } + k.schema = schema + + return k, nil +} + +func (k Keeper) addressBytesToString(addr []byte) (string, error) { + addressCodec := k.cdc.InterfaceRegistry().SigningContext().AddressCodec() + addrStr, err := addressCodec.BytesToString(addr) + if err != nil { + return "", escrowv1alpha1.ErrInvalidAddress.Wrap(err.Error()) + } + + return addrStr, nil +} + +func (k Keeper) addressStringToBytes(addr string) (sdk.AccAddress, error) { + addressCodec := k.cdc.InterfaceRegistry().SigningContext().AddressCodec() + addrBytes, err := addressCodec.StringToBytes(addr) + if err != nil { + return nil, escrowv1alpha1.ErrInvalidAddress.Wrap(err.Error()) + } + + return addrBytes, nil +} + +func (k Keeper) validateAuthority(candidate sdk.AccAddress) error { + if !candidate.Equals(k.authority) { + return escrowv1alpha1.ErrPermissionDenied.Wrap("not authority") + } + + return nil +} + diff --git a/x/escrow/keeper/internal/keeper_test.go b/x/escrow/keeper/internal/keeper_test.go new file mode 100644 index 0000000..451ed76 --- /dev/null +++ b/x/escrow/keeper/internal/keeper_test.go @@ -0,0 +1,240 @@ +package internal_test + +import ( + "context" + "math/rand" + "testing" + + "github.com/golang/mock/gomock" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/suite" + + "cosmossdk.io/core/address" + "cosmossdk.io/log" + "cosmossdk.io/math" + storetypes "cosmossdk.io/store/types" + + "github.com/cosmos/cosmos-sdk/baseapp" + "github.com/cosmos/cosmos-sdk/codec" + codectestutil "github.com/cosmos/cosmos-sdk/codec/testutil" + "github.com/cosmos/cosmos-sdk/runtime" + "github.com/cosmos/cosmos-sdk/testutil" + simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims" + sdk "github.com/cosmos/cosmos-sdk/types" + moduletestutil "github.com/cosmos/cosmos-sdk/types/module/testutil" + authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" + govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" + + escrowv1alpha1 "github.com/0tech/andromeda/x/escrow/andromeda/escrow/v1alpha1" + "github.com/0tech/andromeda/x/escrow/keeper/expected" + keeper "github.com/0tech/andromeda/x/escrow/keeper/internal" + "github.com/0tech/andromeda/x/escrow/module" + escrowtestutil "github.com/0tech/andromeda/x/escrow/testutil" +) + +const notInBech32 = "addresslverygoodtestingaddress" // does not include the separator + +//nolint:gosec +func randomString(size int) string { + res := make([]rune, size) + + letters := []rune("0123456789abcdef") + for i := range res { + res[i] = letters[rand.Intn(len(letters))] + } + + return string(res) +} + +type KeeperTestSuite struct { + suite.Suite + + ctx context.Context + + addressCodec address.Codec + + keeper keeper.Keeper + + queryServer escrowv1alpha1.QueryServer + msgServer escrowv1alpha1.MsgServer + + seller sdk.AccAddress + buyer sdk.AccAddress + stranger sdk.AccAddress + + agentDedicated sdk.AccAddress + agentAny sdk.AccAddress + agentIdle sdk.AccAddress + agentLast sdk.AccAddress + + proposalDedicated uint64 + proposalAny uint64 + proposalLast uint64 +} + +func (s *KeeperTestSuite) addressBytesToString(address sdk.AccAddress) string { + addressStr, err := s.addressCodec.BytesToString(address) + s.NoError(err) + + return addressStr +} + +func (s *KeeperTestSuite) SetupTest() { + var authKeeper expected.AuthKeeper + s.keeper, authKeeper, s.addressCodec, s.ctx = setupEscrowKeeper(s.T()) + + s.queryServer = keeper.NewQueryServer(s.keeper) + s.msgServer = keeper.NewMsgServer(s.keeper) + + err := s.keeper.InitGenesis(s.ctx, s.keeper.DefaultGenesis()) + s.NoError(err) + + // create accounts + addresses := []*sdk.AccAddress{ + &s.seller, + &s.buyer, + &s.stranger, + } + for i, address := range simtestutil.CreateRandomAccounts(len(addresses)) { + *addresses[i] = address + + account := &authtypes.BaseAccount{ + Address: s.addressBytesToString(address), + } + authKeeper.SetAccount(s.ctx, authKeeper.NewAccount(s.ctx, account)) + } + + // seller creates agents + for _, agent := range []*sdk.AccAddress{ + &s.agentDedicated, + &s.agentAny, + &s.agentIdle, + } { + var err error + *agent, err = s.keeper.CreateAgent(s.ctx, s.seller) + s.NoError(err) + } + s.agentLast = s.agentIdle + + // submit proposal for the buyer + s.proposalDedicated, err = s.keeper.SubmitProposal(s.ctx, s.seller, s.agentDedicated, nil, nil) + s.NoError(err) + + // submit proposal for anyone + s.proposalAny, err = s.keeper.SubmitProposal(s.ctx, s.seller, s.agentAny, nil, nil) + s.NoError(err) + + // store the last proposal id + s.proposalLast = s.proposalAny +} + +func TestKeeperTestSuite(t *testing.T) { + suite.Run(t, new(KeeperTestSuite)) +} + +func setupEscrowKeeper(t *testing.T) ( + keeper.Keeper, + expected.AuthKeeper, + address.Codec, + context.Context, +) { + key := storetypes.NewKVStoreKey(escrowv1alpha1.ModuleName) + tkey := storetypes.NewTransientStoreKey("transient_test") + testCtx := testutil.DefaultContextWithDB(t, key, tkey) + encCfg := moduletestutil.MakeTestEncodingConfig(module.AppModuleBasic{}) + + mainPrefix := randomString(8) + ir := codectestutil.CodecOptions{ + AccAddressPrefix: mainPrefix, + ValAddressPrefix: mainPrefix + "valoper", + }.NewInterfaceRegistry() + encCfg.InterfaceRegistry = ir + encCfg.Codec = codec.NewProtoCodec(ir) + + escrowv1alpha1.RegisterInterfaces(ir) + + bapp := baseapp.NewBaseApp( + "escrow", + log.NewNopLogger(), + testCtx.DB, + encCfg.TxConfig.TxDecoder(), + ) + bapp.SetInterfaceRegistry(ir) + + ctrl := gomock.NewController(t) + + // mock auth keeper + authKeeper := escrowtestutil.NewMockAuthKeeper(ctrl) + authPrefix := []byte{0xff, 0x00} + + accountNumberPrefix := append(append([]byte{}, authPrefix...), 0x00) + getAccountNumber := func(ctx context.Context) uint64 { + store := runtime.NewKVStoreService(key).OpenKVStore(ctx) + + bz, err := store.Get(accountNumberPrefix) + assert.NoError(t, err) + + prev := math.ZeroUint() + if bz != nil { + err = prev.Unmarshal(bz) + assert.NoError(t, err) + } + + curr := prev.Incr() + + bz, err = curr.Marshal() + assert.NoError(t, err) + + err = store.Set(accountNumberPrefix, bz) + assert.NoError(t, err) + + return curr.Uint64() + } + + accountPrefix := append(append([]byte{}, authPrefix...), 0x01) + hasAccount := func(ctx context.Context, address sdk.AccAddress) bool { + store := runtime.NewKVStoreService(key).OpenKVStore(ctx) + + key := append(append([]byte{}, accountPrefix...), address...) + has, err := store.Has(key) + assert.NoError(t, err) + + return has + } + setAccount := func(ctx context.Context, account sdk.AccountI) { + store := runtime.NewKVStoreService(key).OpenKVStore(ctx) + + bz, err := encCfg.Codec.Marshal(account) + assert.NoError(t, err) + + key := append(append([]byte{}, accountPrefix...), account.GetAddress()...) + err = store.Set(key, bz) + assert.NoError(t, err) + } + + authKeeper.EXPECT().HasAccount(gomock.Any(), gomock.Any()).DoAndReturn(func(ctx context.Context, address sdk.AccAddress) bool { + return hasAccount(ctx, address) + }).AnyTimes() + authKeeper.EXPECT().NewAccount(gomock.Any(), gomock.Any()).DoAndReturn(func(ctx context.Context, account sdk.AccountI) sdk.AccountI { + accNum := getAccountNumber(ctx) + err := account.SetAccountNumber(accNum) + assert.NoError(t, err) + return account + }).AnyTimes() + authKeeper.EXPECT().SetAccount(gomock.Any(), gomock.Any()).Do(func(ctx context.Context, account sdk.AccountI) { + setAccount(ctx, account) + }).AnyTimes() + + authority := authtypes.NewModuleAddress(govtypes.ModuleName) + + k, err := keeper.NewKeeper(encCfg.Codec, runtime.NewKVStoreService(key), authority, bapp.MsgServiceRouter(), authKeeper) + assert.NoError(t, err) + + msgServer := keeper.NewMsgServer(*k) + queryServer := keeper.NewQueryServer(*k) + + escrowv1alpha1.RegisterMsgServer(bapp.MsgServiceRouter(), msgServer) + escrowv1alpha1.RegisterQueryServer(bapp.GRPCQueryRouter(), queryServer) + + return *k, authKeeper, encCfg.InterfaceRegistry.SigningContext().AddressCodec(), testCtx.Ctx +} diff --git a/x/escrow/keeper/internal/keys.go b/x/escrow/keeper/internal/keys.go new file mode 100644 index 0000000..dfe2895 --- /dev/null +++ b/x/escrow/keeper/internal/keys.go @@ -0,0 +1,70 @@ +package internal + +import ( + "cosmossdk.io/collections" + "cosmossdk.io/collections/indexes" + + sdk "github.com/cosmos/cosmos-sdk/types" + + escrowv1alpha1 "github.com/0tech/andromeda/x/escrow/andromeda/escrow/v1alpha1" +) + +var ( + paramsKey = collections.NewPrefix(0x00) + + agentsSeqKey = collections.NewPrefix(0x10) + agentsKeyPrefix = collections.NewPrefix(0x11) + agentsKeyAddressPrefix = collections.NewPrefix(0x12) + + proposalsSeqKey = collections.NewPrefix(0x20) + proposalsKeyPrefix = collections.NewPrefix(0x21) + proposalsKeyIDPrefix = collections.NewPrefix(0x22) +) + +func newAgentsIndexes(sb *collections.SchemaBuilder) agentsIndexes { + return agentsIndexes{ + address: indexes.NewUnique( + sb, agentsKeyAddressPrefix, "agents_by_address", + sdk.AccAddressKey, + collections.PairKeyCodec(sdk.AccAddressKey, sdk.AccAddressKey), + func(key collections.Pair[sdk.AccAddress, sdk.AccAddress], _ escrowv1alpha1.Agent) (sdk.AccAddress, error) { + address := key.K2() + return address, nil + }, + ), + } +} + +type agentsIndexes struct { + address *indexes.Unique[sdk.AccAddress, collections.Pair[sdk.AccAddress, sdk.AccAddress], escrowv1alpha1.Agent] +} + +func (a agentsIndexes) IndexesList() []collections.Index[collections.Pair[sdk.AccAddress, sdk.AccAddress], escrowv1alpha1.Agent] { + return []collections.Index[collections.Pair[sdk.AccAddress, sdk.AccAddress], escrowv1alpha1.Agent]{ + a.address, + } +} + +func newProposalsIndexes(sb *collections.SchemaBuilder) proposalsIndexes { + return proposalsIndexes{ + id: indexes.NewUnique( + sb, proposalsKeyIDPrefix, "proposals_by_id", + collections.Uint64Key, + collections.PairKeyCodec(sdk.AccAddressKey, collections.Uint64Key), + func(key collections.Pair[sdk.AccAddress, uint64], _ escrowv1alpha1.Proposal) (uint64, error) { + id := key.K2() + return id, nil + }, + ), + } +} + +type proposalsIndexes struct { + id *indexes.Unique[uint64, collections.Pair[sdk.AccAddress, uint64], escrowv1alpha1.Proposal] +} + +func (a proposalsIndexes) IndexesList() []collections.Index[collections.Pair[sdk.AccAddress, uint64], escrowv1alpha1.Proposal] { + return []collections.Index[collections.Pair[sdk.AccAddress, uint64], escrowv1alpha1.Proposal]{ + a.id, + } +} diff --git a/x/escrow/keeper/internal/msg_server.go b/x/escrow/keeper/internal/msg_server.go new file mode 100644 index 0000000..41dc1e0 --- /dev/null +++ b/x/escrow/keeper/internal/msg_server.go @@ -0,0 +1,183 @@ +package internal + +import ( + "context" + + errorsmod "cosmossdk.io/errors" + + sdk "github.com/cosmos/cosmos-sdk/types" + + escrowv1alpha1 "github.com/0tech/andromeda/x/escrow/andromeda/escrow/v1alpha1" +) + +type msgServer struct { + keeper Keeper +} + +var _ escrowv1alpha1.MsgServer = (*msgServer)(nil) + +// NewMsgServer returns an implementation of the MsgServer interface +// for the provided Keeper. +func NewMsgServer(keeper Keeper) escrowv1alpha1.MsgServer { + return &msgServer{ + keeper: keeper, + } +} + +func (s msgServer) UpdateParams(ctx context.Context, req *escrowv1alpha1.MsgUpdateParams) (*escrowv1alpha1.MsgUpdateParamsResponse, error) { + if req.Authority == "" { + return nil, escrowv1alpha1.ErrUnimplemented.Wrap("nil authority") + } + + authority, err := s.keeper.addressStringToBytes(req.Authority) + if err != nil { + return nil, errorsmod.Wrap(err, "authority") + } + + if err := s.keeper.validateAuthority(authority); err != nil { + return nil, err + } + + if err := s.keeper.UpdateParams(ctx, &escrowv1alpha1.Params{}); err != nil { + return nil, err + } + + if err := sdk.UnwrapSDKContext(ctx).EventManager().EmitTypedEvent(&escrowv1alpha1.EventUpdateParams{}); err != nil { + return nil, escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()) + } + + return &escrowv1alpha1.MsgUpdateParamsResponse{}, nil +} + +func (s msgServer) CreateAgent(ctx context.Context, req *escrowv1alpha1.MsgCreateAgent) (*escrowv1alpha1.MsgCreateAgentResponse, error) { + if req.Creator == "" { + return nil, escrowv1alpha1.ErrUnimplemented.Wrap("nil creator") + } + + creator, err := s.keeper.addressStringToBytes(req.Creator) + if err != nil { + return nil, errorsmod.Wrap(err, "creator") + } + + agent, err := s.keeper.CreateAgent(ctx, creator) + if err != nil { + return nil, err + } + + agentStr, err := s.keeper.addressBytesToString(agent) + if err != nil { + return nil, errorsmod.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "agent") + } + + if err := sdk.UnwrapSDKContext(ctx).EventManager().EmitTypedEvent(&escrowv1alpha1.EventCreateAgent{ + Agent: agentStr, + Creator: req.Creator, + }); err != nil { + return nil, escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()) + } + + return &escrowv1alpha1.MsgCreateAgentResponse{Agent: agentStr}, nil +} + +func (s msgServer) SubmitProposal(ctx context.Context, req *escrowv1alpha1.MsgSubmitProposal) (*escrowv1alpha1.MsgSubmitProposalResponse, error) { + if req.Proposer == "" { + return nil, escrowv1alpha1.ErrUnimplemented.Wrap("nil proposer") + } + + if req.Agent == "" { + return nil, escrowv1alpha1.ErrUnimplemented.Wrap("nil agent") + } + + if req.PreActions == nil { + return nil, escrowv1alpha1.ErrUnimplemented.Wrap("nil pre_actions") + } + + if req.PostActions == nil { + return nil, escrowv1alpha1.ErrUnimplemented.Wrap("nil post_actions") + } + + proposer, err := s.keeper.addressStringToBytes(req.Proposer) + if err != nil { + return nil, errorsmod.Wrap(err, "proposer") + } + + agent, err := s.keeper.addressStringToBytes(req.Agent) + if err != nil { + return nil, errorsmod.Wrap(err, "agent") + } + + signers := []sdk.AccAddress{proposer, agent} + + if err := s.keeper.validateActions(req.PreActions, signers); err != nil { + return nil, errorsmod.Wrap(err, "pre_actions") + } + + if err := s.keeper.validateActions(req.PostActions, signers); err != nil { + return nil, errorsmod.Wrap(err, "post_actions") + } + + id, err := s.keeper.SubmitProposal(ctx, proposer, agent, req.PreActions, req.PostActions) + if err != nil { + return nil, err + } + + if err := sdk.UnwrapSDKContext(ctx).EventManager().EmitTypedEvent(&escrowv1alpha1.EventSubmitProposal{ + Id: id, + Proposer: req.Proposer, + Agent: req.Agent, + PreActions: req.PreActions, + PostActions: req.PostActions, + }); err != nil { + return nil, escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()) + } + + return &escrowv1alpha1.MsgSubmitProposalResponse{Id: id}, nil +} + +func (s msgServer) Exec(ctx context.Context, req *escrowv1alpha1.MsgExec) (*escrowv1alpha1.MsgExecResponse, error) { + if req.Proposal == 0 { + return nil, escrowv1alpha1.ErrUnimplemented.Wrap("nil id") + } + + if req.Executor == "" { + return nil, escrowv1alpha1.ErrUnimplemented.Wrap("nil executor") + } + + if req.Agent == "" { + return nil, escrowv1alpha1.ErrUnimplemented.Wrap("nil agent") + } + + if req.Actions == nil { + return nil, escrowv1alpha1.ErrUnimplemented.Wrap("nil actions") + } + + executor, err := s.keeper.addressStringToBytes(req.Executor) + if err != nil { + return nil, errorsmod.Wrap(err, "executor") + } + + agent, err := s.keeper.addressStringToBytes(req.Agent) + if err != nil { + return nil, errorsmod.Wrap(err, "agent") + } + + signers := []sdk.AccAddress{executor, agent} + + if err := s.keeper.validateActions(req.Actions, signers); err != nil { + return nil, errorsmod.Wrap(err, "actions") + } + + if err := s.keeper.Exec(ctx, req.Proposal, executor, agent, req.Actions); err != nil { + return nil, err + } + + if err := sdk.UnwrapSDKContext(ctx).EventManager().EmitTypedEvent(&escrowv1alpha1.EventExec{ + Proposal: req.Proposal, + Executor: req.Executor, + Actions: req.Actions, + }); err != nil { + return nil, escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()) + } + + return &escrowv1alpha1.MsgExecResponse{}, nil +} diff --git a/x/escrow/keeper/internal/msg_server_test.go b/x/escrow/keeper/internal/msg_server_test.go new file mode 100644 index 0000000..18bf26a --- /dev/null +++ b/x/escrow/keeper/internal/msg_server_test.go @@ -0,0 +1,256 @@ +package internal_test + +import ( + codectypes "github.com/cosmos/cosmos-sdk/codec/types" + sdk "github.com/cosmos/cosmos-sdk/types" + + escrowv1alpha1 "github.com/0tech/andromeda/x/escrow/andromeda/escrow/v1alpha1" + "github.com/0tech/andromeda/x/escrow/testutil" +) + +func (s *KeeperTestSuite) TestMsgCreateAgent() { + tester := func(subject escrowv1alpha1.MsgCreateAgent) error { + ctx, _ := sdk.UnwrapSDKContext(s.ctx).CacheContext() + res, err := s.msgServer.CreateAgent(ctx, &subject) + if err != nil { + return err + } + s.Require().NotNil(res) + + events := ctx.EventManager().Events() + s.Require().Len(events, 1) + + eventExpected, err := sdk.TypedEventToEvent(&escrowv1alpha1.EventCreateAgent{ + Agent: "", // we can predict it, but it depends on the state. + Creator: subject.Creator, + }) + s.Require().NoError(err) + + for _, compare := range []int{1} { + s.Require().Equal(eventExpected.Attributes[compare], events[0].Attributes[compare]) + } + + return nil + } + cases := []map[string]testutil.Case[escrowv1alpha1.MsgCreateAgent]{ + { + "nil creator": { + Error: func() error { + return escrowv1alpha1.ErrUnimplemented + }, + }, + "valid creator": { + Malleate: func(subject *escrowv1alpha1.MsgCreateAgent) { + subject.Creator = s.addressBytesToString(s.stranger) + }, + }, + "invalid creator": { + Malleate: func(subject *escrowv1alpha1.MsgCreateAgent) { + subject.Creator = notInBech32 + }, + Error: func() error { + return escrowv1alpha1.ErrInvalidAddress + }, + }, + }, + } + + testutil.DoTest(s.T(), tester, cases) +} + +func (s *KeeperTestSuite) TestMsgSubmitProposal() { + tester := func(subject escrowv1alpha1.MsgSubmitProposal) error { + ctx, _ := sdk.UnwrapSDKContext(s.ctx).CacheContext() + res, err := s.msgServer.SubmitProposal(ctx, &subject) + if err != nil { + return err + } + s.Require().NotNil(res) + + events := ctx.EventManager().Events() + s.Require().Len(events, 1) + + eventExpected, err := sdk.TypedEventToEvent(&escrowv1alpha1.EventSubmitProposal{ + Id: s.proposalLast + 1, + Proposer: subject.Proposer, + Agent: subject.Agent, + PreActions: subject.PreActions, + PostActions: subject.PostActions, + }) + s.Require().NoError(err) + s.Require().Equal(eventExpected, events[0]) + + return nil + } + cases := []map[string]testutil.Case[escrowv1alpha1.MsgSubmitProposal]{ + { + "nil proposer": { + Error: func() error { + return escrowv1alpha1.ErrUnimplemented + }, + }, + "valid proposer": { + Malleate: func(subject *escrowv1alpha1.MsgSubmitProposal) { + subject.Proposer = s.addressBytesToString(s.seller) + }, + }, + "invalid proposer": { + Malleate: func(subject *escrowv1alpha1.MsgSubmitProposal) { + subject.Proposer = notInBech32 + }, + Error: func() error { + return escrowv1alpha1.ErrInvalidAddress + }, + }, + }, + { + "nil agent": { + Error: func() error { + return escrowv1alpha1.ErrUnimplemented + }, + }, + "valid agent": { + Malleate: func(subject *escrowv1alpha1.MsgSubmitProposal) { + subject.Agent = s.addressBytesToString(s.agentIdle) + }, + }, + "invalid agent": { + Malleate: func(subject *escrowv1alpha1.MsgSubmitProposal) { + subject.Agent = notInBech32 + }, + Error: func() error { + return escrowv1alpha1.ErrInvalidAddress + }, + }, + }, + { + "nil pre_actions": { + Error: func() error { + return escrowv1alpha1.ErrUnimplemented + }, + }, + "valid pre_actions": { + Malleate: func(subject *escrowv1alpha1.MsgSubmitProposal) { + subject.PreActions = []*codectypes.Any{} + }, + }, + }, + { + "nil post_actions": { + Error: func() error { + return escrowv1alpha1.ErrUnimplemented + }, + }, + "valid post_actions": { + Malleate: func(subject *escrowv1alpha1.MsgSubmitProposal) { + subject.PostActions = []*codectypes.Any{} + }, + }, + }, + } + + testutil.DoTest(s.T(), tester, cases) +} + +func (s *KeeperTestSuite) TestMsgExec() { + tester := func(subject escrowv1alpha1.MsgExec) error { + ctx, _ := sdk.UnwrapSDKContext(s.ctx).CacheContext() + res, err := s.msgServer.Exec(ctx, &subject) + if err != nil { + return err + } + s.Require().NotNil(res) + + events := ctx.EventManager().Events() + s.Require().Len(events, 1) + + eventExpected, err := sdk.TypedEventToEvent(&escrowv1alpha1.EventExec{ + Proposal: subject.Proposal, + Executor: subject.Executor, + Actions: subject.Actions, + }) + s.Require().NoError(err) + + for _, compare := range []int{0, 1, 2} { + s.Require().Equal(eventExpected.Attributes[compare], events[0].Attributes[compare]) + } + + return nil + } + cases := []map[string]testutil.Case[escrowv1alpha1.MsgExec]{ + { + "nil proposal": { + Error: func() error { + return escrowv1alpha1.ErrUnimplemented + }, + }, + "valid proposal": { + Malleate: func(subject *escrowv1alpha1.MsgExec) { + subject.Proposal = s.proposalAny + }, + }, + "proposal not found": { + Malleate: func(subject *escrowv1alpha1.MsgExec) { + subject.Proposal = s.proposalLast + 1 + }, + Error: func() error { + return escrowv1alpha1.ErrProposalNotFound + }, + }, + }, + { + "nil executor": { + Error: func() error { + return escrowv1alpha1.ErrUnimplemented + }, + }, + "valid executor": { + Malleate: func(subject *escrowv1alpha1.MsgExec) { + subject.Executor = s.addressBytesToString(s.stranger) + }, + }, + "invalid executor": { + Malleate: func(subject *escrowv1alpha1.MsgExec) { + subject.Executor = notInBech32 + }, + Error: func() error { + return escrowv1alpha1.ErrInvalidAddress + }, + }, + }, + { + "nil agent": { + Error: func() error { + return escrowv1alpha1.ErrUnimplemented + }, + }, + "valid agent": { + Malleate: func(subject *escrowv1alpha1.MsgExec) { + subject.Agent = s.addressBytesToString(s.agentAny) + }, + }, + "invalid agent": { + Malleate: func(subject *escrowv1alpha1.MsgExec) { + subject.Agent = notInBech32 + }, + Error: func() error { + return escrowv1alpha1.ErrInvalidAddress + }, + }, + }, + { + "nil actions": { + Error: func() error { + return escrowv1alpha1.ErrUnimplemented + }, + }, + "valid actions": { + Malleate: func(subject *escrowv1alpha1.MsgExec) { + subject.Actions = []*codectypes.Any{} + }, + }, + }, + } + + testutil.DoTest(s.T(), tester, cases) +} diff --git a/x/escrow/keeper/internal/params.go b/x/escrow/keeper/internal/params.go new file mode 100644 index 0000000..d1f80c7 --- /dev/null +++ b/x/escrow/keeper/internal/params.go @@ -0,0 +1,28 @@ +package internal + +import ( + "context" + + escrowv1alpha1 "github.com/0tech/andromeda/x/escrow/andromeda/escrow/v1alpha1" +) + +func (k Keeper) UpdateParams(ctx context.Context, params *escrowv1alpha1.Params) error { + return k.setParams(ctx, params) +} + +func (k Keeper) GetParams(ctx context.Context) (*escrowv1alpha1.Params, error) { + params, err := k.params.Get(ctx) + if err != nil { + return nil, err + } + + return ¶ms, nil +} + +func (k Keeper) setParams(ctx context.Context, params *escrowv1alpha1.Params) error { + if err := k.params.Set(ctx, *params); err != nil { + return escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()) + } + + return nil +} diff --git a/x/escrow/keeper/internal/proposal.go b/x/escrow/keeper/internal/proposal.go new file mode 100644 index 0000000..84cfea9 --- /dev/null +++ b/x/escrow/keeper/internal/proposal.go @@ -0,0 +1,179 @@ +package internal + +import ( + "context" + + "cosmossdk.io/collections" + errorsmod "cosmossdk.io/errors" + + codectypes "github.com/cosmos/cosmos-sdk/codec/types" + sdk "github.com/cosmos/cosmos-sdk/types" + + escrowv1alpha1 "github.com/0tech/andromeda/x/escrow/andromeda/escrow/v1alpha1" +) + +func (k Keeper) SubmitProposal(ctx context.Context, proposer, agent sdk.AccAddress, preActions, postActions []*codectypes.Any) (uint64, error) { + if err := k.HasAgent(ctx, agent, proposer); err != nil { + return 0, err + } + + id, err := k.nextProposal.Next(ctx) + if err != nil { + return 0, escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()) + } + + if err := k.setProposal(ctx, id, proposer, &escrowv1alpha1.Proposal{ + Agent: agent, + PreActions: preActions, + PostActions: postActions, + }); err != nil { + return 0, err + } + + for _, phase := range []struct { + name string + actions []*codectypes.Any + }{ + { + name: "pre_actions", + actions: preActions, + }, + } { + if err := k.executeActions(ctx, phase.actions); err != nil { + return 0, errorsmod.Wrap(err, phase.name) + } + } + + if err := k.removeAgent(ctx, agent); err != nil { + return 0, err + } + + return id, nil +} + +func (k Keeper) validateActions(actions []*codectypes.Any, signers []sdk.AccAddress) error { + signerMap := map[string]bool{} + for _, signer := range signers { + signerMap[string(signer)] = true + } + + for i, action := range actions { + addIndex := func(err error) error { + return errorsmod.Wrapf(err, "index %d", i) + } + + msg, err := k.anyToMsg(*action) + if err != nil { + return addIndex(err) + } + + actionSigners, _, err := k.cdc.GetMsgV1Signers(msg) + if err != nil { + return addIndex(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error())) + } + + for _, signer := range actionSigners { + if !signerMap[string(signer)] { + signerStr, err := k.addressBytesToString(signer) + if err != nil { + return addIndex(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error())) + } + return addIndex(errorsmod.Wrap(escrowv1alpha1.ErrPermissionDenied.Wrap("wrong signer"), signerStr)) + } + } + } + + return nil +} + +func (k Keeper) getProposalKey(ctx context.Context, id uint64) (*collections.Pair[sdk.AccAddress, uint64], error) { + key, err := k.proposals.Indexes.id.MatchExact(ctx, id) + if err != nil { + if !errorsmod.IsOf(err, collections.ErrNotFound) { + return nil, escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()) + } + + return nil, escrowv1alpha1.ErrProposalNotFound.Wrap(err.Error()) + } + + return &key, nil +} + +func (k Keeper) GetProposal(ctx context.Context, id uint64) (sdk.AccAddress, *escrowv1alpha1.Proposal, error) { + key, err := k.getProposalKey(ctx, id) + if err != nil { + return nil, nil, err + } + + proposer := key.K1() + + proposal, err := k.proposals.Get(ctx, *key) + if err != nil { + return nil, nil, escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()) + } + + k.fixActions(&proposal) + + return proposer, &proposal, nil +} + +func (k Keeper) setProposal(ctx context.Context, id uint64, proposer sdk.AccAddress, proposal *escrowv1alpha1.Proposal) error { + if err := k.proposals.Set(ctx, collections.Join(proposer, id), *proposal); err != nil { + return escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()) + } + + return nil +} + +func (k Keeper) removeProposal(ctx context.Context, id uint64) error { + key, err := k.getProposalKey(ctx, id) + if err != nil { + return err + } + + if err := k.proposals.Remove(ctx, *key); err != nil { + return escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()) + } + + return nil +} + +func (k Keeper) fixActions(proposal *escrowv1alpha1.Proposal) { + // TODO: find better solution + if proposal.PreActions == nil { + proposal.PreActions = []*codectypes.Any{} + } + if proposal.PostActions == nil { + proposal.PostActions = []*codectypes.Any{} + } +} + +func (k Keeper) iterateProposals(ctx context.Context, fn func(id uint64, proposer sdk.AccAddress, proposal escrowv1alpha1.Proposal) error) error { + iter, err := k.proposals.Indexes.id.Iterate(ctx, nil) + if err != nil { + return escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()) + } + defer iter.Close() + + for ; iter.Valid(); iter.Next() { + key, err := iter.PrimaryKey() + if err != nil { + return escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()) + } + + value, err := k.proposals.Get(ctx, key) + if err != nil { + return escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()) + } + + proposer := key.K1() + id := key.K2() + proposal := value + + if err := fn(id, proposer, proposal); err != nil { + return err + } + } + + return nil +} diff --git a/x/escrow/keeper/internal/proposal_test.go b/x/escrow/keeper/internal/proposal_test.go new file mode 100644 index 0000000..60073d9 --- /dev/null +++ b/x/escrow/keeper/internal/proposal_test.go @@ -0,0 +1,89 @@ +package internal_test + +import ( + codectypes "github.com/cosmos/cosmos-sdk/codec/types" + simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims" + sdk "github.com/cosmos/cosmos-sdk/types" + + escrowv1alpha1 "github.com/0tech/andromeda/x/escrow/andromeda/escrow/v1alpha1" + "github.com/0tech/andromeda/x/escrow/testutil" +) + +func (s *KeeperTestSuite) TestSubmitProposal() { + type submitProposal struct { + proposer sdk.AccAddress + agent sdk.AccAddress + preActions []*codectypes.Any + postActions []*codectypes.Any + } + + tester := func(subject submitProposal) error { + s.NotNil(subject.proposer) + s.NotNil(subject.agent) + s.NotNil(subject.preActions) + s.NotNil(subject.postActions) + + ctx, _ := sdk.UnwrapSDKContext(s.ctx).CacheContext() + id, err := s.keeper.SubmitProposal(ctx, subject.proposer, subject.agent, subject.preActions, subject.postActions) + if err != nil { + return err + } + s.NotZero(id) + + proposerBefore, proposalBefore, err := s.keeper.GetProposal(s.ctx, id) + s.Assert().Error(err) + s.Assert().Nil(proposerBefore) + s.Assert().Nil(proposalBefore) + + proposerAfter, proposalAfter, err := s.keeper.GetProposal(ctx, id) + s.Require().NoError(err) + s.Require().NotNil(proposerAfter) + s.Require().NotNil(proposalAfter) + s.Require().Equal(subject.proposer, proposerAfter) + s.Require().Equal(subject.agent, sdk.AccAddress(proposalAfter.Agent)) + s.Require().Equal(subject.preActions, proposalAfter.PreActions) + s.Require().Equal(subject.postActions, proposalAfter.PostActions) + + return nil + } + cases := []map[string]testutil.Case[submitProposal]{ + { + "proposer already exists": { + Malleate: func(subject *submitProposal) { + subject.proposer = s.seller + }, + }, + }, + { + "agent already exists": { + Malleate: func(subject *submitProposal) { + subject.agent = s.agentIdle + }, + }, + "agent not found": { + Malleate: func(subject *submitProposal) { + subject.agent = simtestutil.CreateRandomAccounts(1)[0] + }, + Error: func() error { + return escrowv1alpha1.ErrAgentNotFound + }, + }, + }, + { + "valid pre_actions": { + Malleate: func(subject *submitProposal) { + subject.preActions = []*codectypes.Any{} + }, + }, + }, + { + "valid post_actions": { + Malleate: func(subject *submitProposal) { + subject.postActions = []*codectypes.Any{} + }, + }, + }, + } + + testutil.DoTest(s.T(), tester, cases) +} diff --git a/x/escrow/module/autocli.go b/x/escrow/module/autocli.go new file mode 100644 index 0000000..4b0d4dd --- /dev/null +++ b/x/escrow/module/autocli.go @@ -0,0 +1,124 @@ +package module + +import ( + autocliv1 "cosmossdk.io/api/cosmos/autocli/v1" + + escrowv1alpha1 "github.com/0tech/andromeda/x/escrow/api/andromeda/escrow/v1alpha1" +) + +func (AppModule) AutoCLIOptions() *autocliv1.ModuleOptions { + return &autocliv1.ModuleOptions{ + Query: &autocliv1.ServiceCommandDescriptor{ + Service: escrowv1alpha1.Query_ServiceDesc.ServiceName, + RpcCommandOptions: []*autocliv1.RpcCommandOptions{ + { + RpcMethod: "Params", + Short: "queries the module params.", + Use: "params", + }, + { + RpcMethod: "Agent", + Short: "queries an agent.", + Use: "agent --address [address]", + FlagOptions: map[string]*autocliv1.FlagOptions{ + "address": { + Usage: "the address of an agent", + }, + }, + }, + { + RpcMethod: "Agents", + Short: "queries all the agents.", + }, + { + RpcMethod: "Proposal", + Short: "queries a proposal.", + Use: "proposal --id [id]", + FlagOptions: map[string]*autocliv1.FlagOptions{ + "id": { + Usage: "the identifier of a proposal", + }, + }, + }, + { + RpcMethod: "Proposals", + Short: "queries all the proposals.", + }, + }, + }, + Tx: &autocliv1.ServiceCommandDescriptor{ + Service: escrowv1alpha1.Msg_ServiceDesc.ServiceName, + RpcCommandOptions: []*autocliv1.RpcCommandOptions{ + { + RpcMethod: "UpdateParams", + Short: "updates the module parameters.", + Long: `updates the module parameters. + +Note: + params: + All parameters must be supplied.`, + Use: "update-params --from [authority] --params [params]", + FlagOptions: map[string]*autocliv1.FlagOptions{ + "params": { + Usage: "the parameters to update", + }, + }, + }, + { + RpcMethod: "CreateAgent", + Short: "creates an escrow agent for a proposal.", + Use: "create-agent --from [creator]", + }, + { + RpcMethod: "SubmitProposal", + Short: "submits a proposal.", + Long: `submits a proposal. + +Note: + agent: + it must be created by the proposer. + pre-actions: + the signer of each message must be either the proposer or the agent. + post-actions: + the signer of each message must be either the proposer or the agent.`, + Use: "submit-proposal --from [proposer] --agent [agent] --pre-actions [pre-actions] --post-actions [post-actions]", + FlagOptions: map[string]*autocliv1.FlagOptions{ + "agent": { + Usage: "the address of the agent in charge", + }, + "pre_actions": { + Usage: "the messages which will be executed on the submission", + DefaultValue: "{}", + }, + "post_actions": { + Usage: "the messages which will be executed after the actions included in Msg/Exec", + DefaultValue: "{}", + }, + }, + }, + { + RpcMethod: "Exec", + Short: "executes a proposal.", + Long: `executes a proposal. + +Note: + actions: + the signer of each message must be either the executor or the agent.`, + Use: "exec --proposal [proposal] --from [executor] --agent [agent] --actions [actions]", + FlagOptions: map[string]*autocliv1.FlagOptions{ + "proposal": { + Usage: "the identifier of the proposal", + }, + "agent": { + Usage: "the address of the agent in charge", + }, + "actions": { + Usage: "the messages which will be executed on the execution", + DefaultValue: "{}", + }, + }, + }, + }, + }, + } +} diff --git a/x/escrow/module/module.go b/x/escrow/module/module.go new file mode 100644 index 0000000..9305dce --- /dev/null +++ b/x/escrow/module/module.go @@ -0,0 +1,209 @@ +package module + +import ( + "context" + "encoding/json" + "fmt" + + "github.com/grpc-ecosystem/grpc-gateway/runtime" + + "cosmossdk.io/core/appmodule" + "cosmossdk.io/core/store" + "cosmossdk.io/depinject" + + "github.com/cosmos/cosmos-sdk/client" + "github.com/cosmos/cosmos-sdk/codec" + codectypes "github.com/cosmos/cosmos-sdk/codec/types" + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/types/module" + authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" + govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" + + escrowv1alpha1 "github.com/0tech/andromeda/x/escrow/andromeda/escrow/v1alpha1" + modulev1alpha1 "github.com/0tech/andromeda/x/escrow/api/andromeda/escrow/module/v1alpha1" + "github.com/0tech/andromeda/x/escrow/keeper" +) + +// ---------------------------------------------------------------------------- +// AppModuleBasic +// ---------------------------------------------------------------------------- + +// AppModuleBasic defines the basic application module used by the module. +type AppModuleBasic struct{} + +// ____________________________________________________________________________ + +var _ module.AppModuleBasic = (*AppModuleBasic)(nil) + +// Name returns the name of the module. +func (AppModuleBasic) Name() string { + return escrowv1alpha1.ModuleName +} + +func (AppModuleBasic) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) { + // escrowv1alpha1.RegisterLegacyAminoCodec(cdc) +} + +func (AppModuleBasic) RegisterInterfaces(registry codectypes.InterfaceRegistry) { + escrowv1alpha1.RegisterInterfaces(registry) +} + +// RegisterGRPCGatewayRoutes registers the gRPC Gateway routes for the module. +func (AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *runtime.ServeMux) { + if err := escrowv1alpha1.RegisterQueryHandlerClient(context.Background(), mux, escrowv1alpha1.NewQueryClient(clientCtx)); err != nil { + panic(err) + } +} + +// ---------------------------------------------------------------------------- +// AppModule +// ---------------------------------------------------------------------------- + +var _ module.AppModule = (*AppModule)(nil) + +// AppModule implements an application module for the module. +type AppModule struct { + AppModuleBasic + + keeper keeper.Keeper +} + +// NewAppModule creates a new AppModule object. +func NewAppModule(cdc codec.Codec, keeper keeper.Keeper) AppModule { + return AppModule{ + keeper: keeper, + } +} + +// ____________________________________________________________________________ + +var _ module.HasGenesisBasics = (*AppModule)(nil) + +// DefaultGenesis returns default genesis state as raw bytes for the module. +func (am AppModule) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage { + return cdc.MustMarshalJSON(am.keeper.DefaultGenesis()) +} + +// ValidateGenesis performs genesis state validation for the module. +func (am AppModule) ValidateGenesis(cdc codec.JSONCodec, config client.TxEncodingConfig, bz json.RawMessage) error { + var gs escrowv1alpha1.GenesisState + if err := cdc.UnmarshalJSON(bz, &gs); err != nil { + return fmt.Errorf("failed to unmarshal %s genesis state: %w", escrowv1alpha1.ModuleName, err) + } + + return am.keeper.ValidateGenesis(&gs) +} + +// ____________________________________________________________________________ + +var _ module.HasInvariants = (*AppModule)(nil) + +func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry) { + // TODO(@0Tech): add invariants +} + +// ____________________________________________________________________________ + +var _ module.HasServices = (*AppModule)(nil) + +func (am AppModule) RegisterServices(cfg module.Configurator) { + escrowv1alpha1.RegisterMsgServer(cfg.MsgServer(), keeper.NewMsgServer(am.keeper)) + escrowv1alpha1.RegisterQueryServer(cfg.QueryServer(), keeper.NewQueryServer(am.keeper)) + + // m := keeper.NewMigrator(am.keeper) + // migrations := map[uint64]func(sdk.Context) error{} + // for ver, handler := range migrations { + // if err := cfg.RegisterMigration(escrowv1alpha1.ModuleName, ver, handler); err != nil { + // panic(fmt.Sprintf("failed to migrate x/%s from version %d to %d: %v", escrowv1alpha1.ModuleName, ver, ver+1, err)) + // } + // } +} + +// ____________________________________________________________________________ + +var _ module.HasGenesis = (*AppModule)(nil) + +// InitGenesis performs genesis initialization for the module. +func (am AppModule) InitGenesis(ctx sdk.Context, cdc codec.JSONCodec, data json.RawMessage) { + var gs escrowv1alpha1.GenesisState + cdc.MustUnmarshalJSON(data, &gs) + + if err := am.keeper.InitGenesis(sdk.UnwrapSDKContext(ctx), &gs); err != nil { + panic(err) + } +} + +// ExportGenesis returns the exported genesis state as raw bytes for the module. +func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.RawMessage { + gs, err := am.keeper.ExportGenesis(sdk.UnwrapSDKContext(ctx)) + if err != nil { + panic(err) + } + + return cdc.MustMarshalJSON(gs) +} + +// ____________________________________________________________________________ + +var _ module.HasConsensusVersion = (*AppModule)(nil) + +func (AppModule) ConsensusVersion() uint64 { return 1 } + +// ____________________________________________________________________________ + +var _ appmodule.AppModule = (*AppModule)(nil) + +func (AppModule) IsOnePerModuleType() {} +func (AppModule) IsAppModule() {} + +// ---------------------------------------------------------------------------- +// App Wiring Setup +// ---------------------------------------------------------------------------- + +func init() { + appmodule.Register(&modulev1alpha1.Module{}, + appmodule.Provide(ProvideModule), + ) +} + +type EscrowInputs struct { + depinject.In + + StoreService store.KVStoreService + Cdc codec.Codec + Config *modulev1alpha1.Module + + Router keeper.MessageRouter + AuthKeeper keeper.AuthKeeper +} + +type EscrowOutputs struct { + depinject.Out + + Keeper keeper.Keeper + Module appmodule.AppModule +} + +func ProvideModule(in EscrowInputs) EscrowOutputs { + addressCodec := in.Cdc.InterfaceRegistry().SigningContext().AddressCodec() + + // default to governance authority if not provided + authority := authtypes.NewModuleAddress(govtypes.ModuleName) + if in.Config.Authority != "" { + bz, err := addressCodec.StringToBytes(in.Config.Authority) + if err != nil { + authority = authtypes.NewModuleAddress(in.Config.Authority) + } else { + authority = bz + } + } + + k, err := keeper.NewKeeper(in.Cdc, in.StoreService, authority, in.Router, in.AuthKeeper) + if err != nil { + panic(err) + } + + m := NewAppModule(in.Cdc, *k) + + return EscrowOutputs{Keeper: *k, Module: m} +} diff --git a/x/escrow/proto/andromeda/escrow/module/v1alpha1/module.proto b/x/escrow/proto/andromeda/escrow/module/v1alpha1/module.proto new file mode 100644 index 0000000..d2e9949 --- /dev/null +++ b/x/escrow/proto/andromeda/escrow/module/v1alpha1/module.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; +package andromeda.escrow.module.v1alpha1; + +import "cosmos/app/v1alpha1/module.proto"; + +// Module is the config object of the module. +message Module { + option (cosmos.app.v1alpha1.module) = {go_import: "github.com/0tech/andromeda/x/escrow"}; + + // authority defines the custom module authority. If not set, defaults to the governance module. + string authority = 1; +} diff --git a/x/escrow/proto/andromeda/escrow/v1alpha1/event.proto b/x/escrow/proto/andromeda/escrow/v1alpha1/event.proto new file mode 100644 index 0000000..a75b343 --- /dev/null +++ b/x/escrow/proto/andromeda/escrow/v1alpha1/event.proto @@ -0,0 +1,48 @@ +syntax = "proto3"; +package andromeda.escrow.v1alpha1; + +import "cosmos_proto/cosmos.proto"; +import "google/protobuf/any.proto"; + +// EventUpdateParams is emitted on Msg/UpdateParams. +message EventUpdateParams { +} + +// EventCreateAgent is emitted on Msg/CreateAgent. +message EventCreateAgent { + // the address of the created agent + string agent = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // the address of the account created the agent + string creator = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; +} + +// EventSubmitProposal is emitted on Msg/SubmitProposal. +message EventSubmitProposal { + // the identifier of the proposal + uint64 id = 1; + + // the address of the proposer + string proposer = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // the address of the agent in charge + string agent = 3 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // the messages which has been executed on the submission + repeated google.protobuf.Any pre_actions = 4; + + // the messages which will be executed after the actions included in Msg/Exec + repeated google.protobuf.Any post_actions = 5; +} + +// EventExec is emitted on Msg/Exec. +message EventExec { + // the identifier of the proposal + uint64 proposal = 1; + + // the address of the account executed the proposal + string executor = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // the messages executed on the execution + repeated google.protobuf.Any actions = 3; +} diff --git a/x/escrow/proto/andromeda/escrow/v1alpha1/genesis.proto b/x/escrow/proto/andromeda/escrow/v1alpha1/genesis.proto new file mode 100644 index 0000000..92ed024 --- /dev/null +++ b/x/escrow/proto/andromeda/escrow/v1alpha1/genesis.proto @@ -0,0 +1,53 @@ +syntax = "proto3"; +package andromeda.escrow.v1alpha1; + +import "cosmos_proto/cosmos.proto"; +import "google/protobuf/any.proto"; + +// GenesisState defines the module's genesis state. +message GenesisState { + // Params defines the parameters for the module. + message Params {} + + // all the paramaters of the module + Params params = 1; + + // the identifier of the next agent + uint64 next_agent = 2; + + // Agent defines an account taking charge of a proposal. + message Agent { + // the address of the agent + string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // the address of the creator + string creator = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + } + + // all the agents + repeated Agent agents = 3; + + // the identifier of the next proposal + uint64 next_proposal = 4; + + // Proposal defines a proposal. + message Proposal { + // the unique identifier + uint64 id = 1; + + // the address of the proposer + string proposer = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // the address of the agent in charge + string agent = 3 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // the messages which has been executed on the submission + repeated google.protobuf.Any pre_actions = 4; + + // the messages which will be executed after the actions included in Msg/Exec + repeated google.protobuf.Any post_actions = 5; + } + + // all the proposals + repeated Proposal proposals = 5; +} diff --git a/x/escrow/proto/andromeda/escrow/v1alpha1/query.proto b/x/escrow/proto/andromeda/escrow/v1alpha1/query.proto new file mode 100644 index 0000000..6b1d8b0 --- /dev/null +++ b/x/escrow/proto/andromeda/escrow/v1alpha1/query.proto @@ -0,0 +1,155 @@ +syntax = "proto3"; +package andromeda.escrow.v1alpha1; + +import "cosmos/base/query/v1beta1/pagination.proto"; +import "cosmos_proto/cosmos.proto"; +import "google/api/annotations.proto"; +import "google/protobuf/any.proto"; + +// Query defines the module's Query service. +service Query { + // Params queries the module parameters. + rpc Params(QueryParamsRequest) returns (QueryParamsResponse) { + option (google.api.http).get = "/andromeda/escrow/v1alpha1/params"; + } + + // Agent queries an agent. + rpc Agent(QueryAgentRequest) returns (QueryAgentResponse) { + option (google.api.http).get = "/andromeda/escrow/v1alpha1/agents/{address}"; + } + + // Agents queries all the agents. + rpc Agents(QueryAgentsRequest) returns (QueryAgentsResponse) { + option (google.api.http).get = "/andromeda/escrow/v1alpha1/agents"; + } + + // Proposal queries a proposal. + rpc Proposal(QueryProposalRequest) returns (QueryProposalResponse) { + option (google.api.http).get = "/andromeda/escrow/v1alpha1/proposals/{id}"; + } + + // Proposals queries all the proposals. + rpc Proposals(QueryProposalsRequest) returns (QueryProposalsResponse) { + option (google.api.http).get = "/andromeda/escrow/v1alpha1/proposals"; + } +} + +// QueryParamsRequest is the request type for the Query/Params RPC method. +message QueryParamsRequest {} + +// QueryParamsResponse is the response type for the Query/Params RPC method. +message QueryParamsResponse { + // Params defines the parameters for the module. + message Params {} + + // the parameters of the module + Params params = 1; +} + +// QueryAgentRequest is the request type for the Query/Agent RPC method. +message QueryAgentRequest { + // the address of an agent + string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; +} + +// QueryAgentResponse is the response type for the Query/Agent RPC method. +message QueryAgentResponse { + // Agent defines an account taking charge of a proposal. + message Agent { + // the address of the agent + string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // the address of the creator + string creator = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + } + + // the corresponding agent + Agent agent = 1; +} + +// QueryAgentsRequest is the request type for the Query/Agents RPC method. +message QueryAgentsRequest { + // optional pagination for the request + cosmos.base.query.v1beta1.PageRequest pagination = 1; +} + +// QueryAgentsResponse is the response type for the Query/Agents RPC method. +message QueryAgentsResponse { + // Agent defines an account taking charge of a proposal. + message Agent { + // the address of the agent + string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // the address of the creator + string creator = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + } + + // all the agents + repeated Agent agents = 1; + + // pagination in the response + cosmos.base.query.v1beta1.PageResponse pagination = 2; +} + +// QueryProposalRequest is the request type for the Query/Proposal RPC method. +message QueryProposalRequest { + // the identifier of a proposal + uint64 id = 1; +} + +// QueryProposalResponse is the response type for the Query/Proposal RPC method. +message QueryProposalResponse { + // Proposal defines a proposal. + message Proposal { + // the unique identifier + uint64 id = 1; + + // the address of the proposer + string proposer = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // the address of the agent in charge + string agent = 3 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // the messages which has been executed on the submission + repeated google.protobuf.Any pre_actions = 4; + + // the messages which will be executed after the actions included in Msg/Exec + repeated google.protobuf.Any post_actions = 5; + } + + // the corresponding proposal + Proposal proposal = 1; +} + +// QueryProposalsRequest is the request type for the Query/Proposals RPC method. +message QueryProposalsRequest { + // optional pagination for the request + cosmos.base.query.v1beta1.PageRequest pagination = 2; +} + +// QueryProposalsResponse is the response type for the Query/Proposals RPC method. +message QueryProposalsResponse { + // Proposal defines a proposal. + message Proposal { + // the unique identifier + uint64 id = 1; + + // the address of the proposer + string proposer = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // the address of the agent of the proposal + string agent = 3 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // the messages which has been executed on the submission + repeated google.protobuf.Any pre_actions = 4; + + // the messages which will be executed after the actions included in Msg/Exec + repeated google.protobuf.Any post_actions = 5; + } + + // all the proposals + repeated Proposal proposals = 1; + + // pagination in the response + cosmos.base.query.v1beta1.PageResponse pagination = 2; +} diff --git a/x/escrow/proto/andromeda/escrow/v1alpha1/tx.proto b/x/escrow/proto/andromeda/escrow/v1alpha1/tx.proto new file mode 100644 index 0000000..faa486d --- /dev/null +++ b/x/escrow/proto/andromeda/escrow/v1alpha1/tx.proto @@ -0,0 +1,102 @@ +syntax = "proto3"; +package andromeda.escrow.v1alpha1; + +import "cosmos/msg/v1/msg.proto"; +import "cosmos_proto/cosmos.proto"; +import "google/protobuf/any.proto"; + +// Msg defines the module's Msg service. +service Msg { + option (cosmos.msg.v1.service) = true; + + // UpdateParams updates the module parameters. + rpc UpdateParams(MsgUpdateParams) returns (MsgUpdateParamsResponse); + + // CreateAgent creates an escrow agent for a proposal. + rpc CreateAgent(MsgCreateAgent) returns (MsgCreateAgentResponse); + + // SubmitProposal submits a proposal. + rpc SubmitProposal(MsgSubmitProposal) returns (MsgSubmitProposalResponse); + + // Exec executes a proposal. + rpc Exec(MsgExec) returns (MsgExecResponse); +} + +// MsgUpdateParams is the Msg/UpdateParams request type. +message MsgUpdateParams { + option (cosmos.msg.v1.signer) = "authority"; + + // the address of the module authority + string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // Params defines the parameters for the module. + message Params {} + + // the parameters to update + // Note: All parameters must be supplied. + Params params = 2; +} + +// MsgUpdateParamsResponse is the Msg/UpdateParams response type. +message MsgUpdateParamsResponse {} + +// MsgCreateAgent is the Msg/CreateAgent request type. +message MsgCreateAgent { + option (cosmos.msg.v1.signer) = "creator"; + + // the address of the account creating the agent + string creator = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; +} + +// MsgCreateAgentResponse is the Msg/CreateAgent response type. +message MsgCreateAgentResponse { + // the address of the created agent + string agent = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; +} + +// MsgSubmitProposal is the Msg/SubmitProposal request type. +message MsgSubmitProposal { + option (cosmos.msg.v1.signer) = "proposer"; + + // the address of the proposer + string proposer = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // the address of the agent in charge + // Note: it must be created by the proposer. + string agent = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // the messages which will be executed on the submission + // Note: the signer of each message must be either the proposer or the agent. + repeated google.protobuf.Any pre_actions = 3; + + // the messages which will be executed after the actions included in Msg/Exec + // Note: the signer of each message must be either the proposer or the agent. + repeated google.protobuf.Any post_actions = 4; +} + +// MsgSubmitProposalResponse is the Msg/SubmitProposal response type. +message MsgSubmitProposalResponse { + // the identifier of the submitted proposal + uint64 id = 1; +} + +// MsgExec is the Msg/Exec request type. +message MsgExec { + option (cosmos.msg.v1.signer) = "executor"; + + // the identifier of the proposal + uint64 proposal = 1; + + // the address of the account executing the proposal + string executor = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // the address of the agent in charge + string agent = 3 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // the messages which will be executed on the execution + // Note: the signer of each message must be either the executor or the agent. + repeated google.protobuf.Any actions = 4; +} + +// MsgExecResponse is the Msg/Exec response type. +message MsgExecResponse {} diff --git a/x/escrow/proto/andromeda/escrow/v1alpha1/types.proto b/x/escrow/proto/andromeda/escrow/v1alpha1/types.proto new file mode 100644 index 0000000..556cc32 --- /dev/null +++ b/x/escrow/proto/andromeda/escrow/v1alpha1/types.proto @@ -0,0 +1,23 @@ +syntax = "proto3"; +package andromeda.escrow.v1alpha1; + +import "google/protobuf/any.proto"; + +// Params defines the parameters for the module. +message Params {} + +// Agent defines an account taking charge of a proposal. +message Agent { +} + +// Proposal defines a proposal. +message Proposal { + // the address of the agent in charge + bytes agent = 1; + + // the messages which has been executed on the submission + repeated google.protobuf.Any pre_actions = 2; + + // the messages which will be executed after the actions included in Msg/Exec + repeated google.protobuf.Any post_actions = 3; +} diff --git a/x/escrow/proto/buf.gen.gogo.yaml b/x/escrow/proto/buf.gen.gogo.yaml new file mode 100644 index 0000000..71278ec --- /dev/null +++ b/x/escrow/proto/buf.gen.gogo.yaml @@ -0,0 +1,16 @@ +version: v1 +managed: + enabled: true + go_package_prefix: + default: . + except: + - buf.build/googleapis/googleapis + - buf.build/cosmos/cosmos-sdk + - buf.build/cosmos/cosmos-proto +plugins: + - name: gocosmos + out: .. + opt: plugins=grpc,Mgoogle/protobuf/any.proto=github.com/cosmos/cosmos-sdk/codec/types,Mcosmos/app/v1alpha1/module.proto=cosmossdk.io/api/cosmos/app/v1alpha1 + - name: grpc-gateway + out: .. + opt: logtostderr=true,Mcosmos/app/v1alpha1/module.proto=cosmossdk.io/api/cosmos/app/v1alpha1 diff --git a/x/escrow/proto/buf.gen.pulsar.yaml b/x/escrow/proto/buf.gen.pulsar.yaml new file mode 100644 index 0000000..93ccefc --- /dev/null +++ b/x/escrow/proto/buf.gen.pulsar.yaml @@ -0,0 +1,16 @@ +version: v1 +managed: + enabled: true + go_package_prefix: + default: api + except: + - buf.build/googleapis/googleapis + - buf.build/cosmos/cosmos-sdk + - buf.build/cosmos/cosmos-proto +plugins: + - name: go-pulsar + out: ../api + opt: paths=source_relative,Mcosmos/app/v1alpha1/module.proto=cosmossdk.io/api/cosmos/app/v1alpha1,Mcosmos/base/query/v1beta1/pagination.proto=cosmossdk.io/api/cosmos/base/query/v1beta1 + - name: go-grpc + out: ../api + opt: paths=source_relative,Mcosmos/app/v1alpha1/module.proto=cosmossdk.io/api/cosmos/app/v1alpha1 diff --git a/x/escrow/proto/buf.lock b/x/escrow/proto/buf.lock new file mode 100644 index 0000000..b2d8a6b --- /dev/null +++ b/x/escrow/proto/buf.lock @@ -0,0 +1,19 @@ +# Generated by buf. DO NOT EDIT. +version: v1 +deps: + - remote: buf.build + owner: cosmos + repository: cosmos-proto + commit: 1935555c206d4afb9e94615dfd0fad31 + - remote: buf.build + owner: cosmos + repository: cosmos-sdk + commit: e81efea61f174b54b2d5e14a90afd8ca + - remote: buf.build + owner: cosmos + repository: gogo-proto + commit: 34d970b699f84aa382f3c29773a60836 + - remote: buf.build + owner: googleapis + repository: googleapis + commit: 75b4300737fb4efca0831636be94e517 diff --git a/x/escrow/proto/buf.yaml b/x/escrow/proto/buf.yaml new file mode 100644 index 0000000..6b1d005 --- /dev/null +++ b/x/escrow/proto/buf.yaml @@ -0,0 +1,20 @@ +version: v1 +name: buf.build/andromeda/x-escrow +deps: + - buf.build/googleapis/googleapis + - buf.build/cosmos/cosmos-sdk + - buf.build/cosmos/cosmos-proto +breaking: + use: + - FILE +lint: + use: + - DEFAULT + - COMMENTS + - FILE_LOWER_SNAKE_CASE + except: + - UNARY_RPC + - COMMENT_FIELD + - SERVICE_SUFFIX + - PACKAGE_VERSION_SUFFIX + - RPC_REQUEST_STANDARD_NAME diff --git a/x/escrow/testutil/iterator.go b/x/escrow/testutil/iterator.go new file mode 100644 index 0000000..65acaaf --- /dev/null +++ b/x/escrow/testutil/iterator.go @@ -0,0 +1,117 @@ +package testutil + +import ( + "errors" + "strings" + "testing" + + "github.com/stretchr/testify/assert" +) + +type CaseIterator struct { + valid bool + cursor []int + keys [][]string +} + +func NewCaseIterator[T any](components []map[string]T) CaseIterator { + keys := make([][]string, len(components)) + valid := true + for i, component := range components { + if len(component) == 0 { + valid = false + break + } + + for key := range component { + keys[i] = append(keys[i], key) + } + } + + cursor := make([]int, len(keys)) + return CaseIterator{ + valid: valid, + cursor: cursor, + keys: keys, + } +} + +func (ci CaseIterator) Valid() bool { + return ci.valid +} + +func (ci *CaseIterator) Next() { + for i := len(ci.keys) - 1; i >= 0; i-- { + next := ci.cursor[i] + 1 + if next < len(ci.keys[i]) { + ci.cursor[i] = next + return + } + + ci.cursor[i] = 0 + } + ci.valid = false +} + +func (ci CaseIterator) Key() []string { + res := make([]string, len(ci.keys)) + for i, j := range ci.cursor { + res[i] = ci.keys[i][j] + } + return res +} + +type Case[T any] struct { + Malleate func(*T) + Error func() error +} + +func DoTest[T any]( + t *testing.T, + tester func(T) error, + cases []map[string]Case[T], +) { + for iter := NewCaseIterator(cases); iter.Valid(); iter.Next() { + names := iter.Key() + + var subject T + var errs []error + for i, name := range names { + c := cases[i][name] + + if malleate := c.Malleate; malleate != nil { + malleate(&subject) + } + if errGen := c.Error; errGen != nil { + if err := errGen(); err != nil { + errs = append(errs, err) + } + } + } + + testName := func(names []string) string { + display := make([]string, 0, len(names)) + for _, name := range names { + if len(name) != 0 { + display = append(display, name) + } + } + return strings.Join(display, ",") + } + t.Run(testName(names), func(t *testing.T) { + err := tester(subject) + if len(errs) != 0 { + assert.Error(t, err) + + for _, candidate := range errs { + if errors.Is(err, candidate) { + return + } + } + assert.FailNow(t, "unexpected error", err) + } else { + assert.NoError(t, err) + } + }) + } +} diff --git a/x/escrow/testutil/keepers.mock.go b/x/escrow/testutil/keepers.mock.go new file mode 100644 index 0000000..b46a4cc --- /dev/null +++ b/x/escrow/testutil/keepers.mock.go @@ -0,0 +1,114 @@ +// Code generated by MockGen. DO NOT EDIT. +// Source: keeper/expected/keepers.go + +// Package testutil is a generated GoMock package. +package testutil + +import ( + context "context" + reflect "reflect" + + expected "github.com/0tech/andromeda/x/escrow/keeper/expected" + types "github.com/cosmos/cosmos-sdk/types" + gomock "github.com/golang/mock/gomock" +) + +// MockMessageRouter is a mock of MessageRouter interface. +type MockMessageRouter struct { + ctrl *gomock.Controller + recorder *MockMessageRouterMockRecorder +} + +// MockMessageRouterMockRecorder is the mock recorder for MockMessageRouter. +type MockMessageRouterMockRecorder struct { + mock *MockMessageRouter +} + +// NewMockMessageRouter creates a new mock instance. +func NewMockMessageRouter(ctrl *gomock.Controller) *MockMessageRouter { + mock := &MockMessageRouter{ctrl: ctrl} + mock.recorder = &MockMessageRouterMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockMessageRouter) EXPECT() *MockMessageRouterMockRecorder { + return m.recorder +} + +// Handler mocks base method. +func (m *MockMessageRouter) Handler(msg types.Msg) expected.MsgServiceHandler { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "Handler", msg) + ret0, _ := ret[0].(expected.MsgServiceHandler) + return ret0 +} + +// Handler indicates an expected call of Handler. +func (mr *MockMessageRouterMockRecorder) Handler(msg interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Handler", reflect.TypeOf((*MockMessageRouter)(nil).Handler), msg) +} + +// MockAuthKeeper is a mock of AuthKeeper interface. +type MockAuthKeeper struct { + ctrl *gomock.Controller + recorder *MockAuthKeeperMockRecorder +} + +// MockAuthKeeperMockRecorder is the mock recorder for MockAuthKeeper. +type MockAuthKeeperMockRecorder struct { + mock *MockAuthKeeper +} + +// NewMockAuthKeeper creates a new mock instance. +func NewMockAuthKeeper(ctrl *gomock.Controller) *MockAuthKeeper { + mock := &MockAuthKeeper{ctrl: ctrl} + mock.recorder = &MockAuthKeeperMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockAuthKeeper) EXPECT() *MockAuthKeeperMockRecorder { + return m.recorder +} + +// HasAccount mocks base method. +func (m *MockAuthKeeper) HasAccount(arg0 context.Context, arg1 types.AccAddress) bool { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "HasAccount", arg0, arg1) + ret0, _ := ret[0].(bool) + return ret0 +} + +// HasAccount indicates an expected call of HasAccount. +func (mr *MockAuthKeeperMockRecorder) HasAccount(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HasAccount", reflect.TypeOf((*MockAuthKeeper)(nil).HasAccount), arg0, arg1) +} + +// NewAccount mocks base method. +func (m *MockAuthKeeper) NewAccount(arg0 context.Context, arg1 types.AccountI) types.AccountI { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "NewAccount", arg0, arg1) + ret0, _ := ret[0].(types.AccountI) + return ret0 +} + +// NewAccount indicates an expected call of NewAccount. +func (mr *MockAuthKeeperMockRecorder) NewAccount(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewAccount", reflect.TypeOf((*MockAuthKeeper)(nil).NewAccount), arg0, arg1) +} + +// SetAccount mocks base method. +func (m *MockAuthKeeper) SetAccount(arg0 context.Context, arg1 types.AccountI) { + m.ctrl.T.Helper() + m.ctrl.Call(m, "SetAccount", arg0, arg1) +} + +// SetAccount indicates an expected call of SetAccount. +func (mr *MockAuthKeeperMockRecorder) SetAccount(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetAccount", reflect.TypeOf((*MockAuthKeeper)(nil).SetAccount), arg0, arg1) +} From cd44da224e99d486938be111d54fc62c3813fe0d Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Sun, 21 Jan 2024 07:45:08 +0000 Subject: [PATCH 02/62] Implement app --- app/.golangci.yaml | 25 + app/abci.go | 84 +++ app/app.go | 372 ++++++++++ app/config.go | 285 +++++++ app/export.go | 246 ++++++ app/genesis.go | 14 + app/go.mod | 202 +++++ app/go.sum | 1727 +++++++++++++++++++++++++++++++++++++++++++ app/test_helpers.go | 249 +++++++ app/upgrades.go | 44 ++ go.work | 1 + go.work.sum | 14 +- 12 files changed, 3251 insertions(+), 12 deletions(-) create mode 100644 app/.golangci.yaml create mode 100644 app/abci.go create mode 100644 app/app.go create mode 100644 app/config.go create mode 100644 app/export.go create mode 100644 app/genesis.go create mode 100644 app/go.mod create mode 100644 app/go.sum create mode 100644 app/test_helpers.go create mode 100644 app/upgrades.go diff --git a/app/.golangci.yaml b/app/.golangci.yaml new file mode 100644 index 0000000..710936a --- /dev/null +++ b/app/.golangci.yaml @@ -0,0 +1,25 @@ +linters: + enable: + - depguard + - dogsled + - exportloopref + - goconst + - gocritic + - gofumpt + - gosec + - misspell + - nakedret + - nolintlint + - revive + - stylecheck + - unconvert + +linters-settings: + gci: + custom-order: true + sections: + - standard + - default + - prefix(cosmossdk.io) + - prefix(github.com/cosmos/cosmos-sdk) + - prefix(github.com/0tech/andromeda) diff --git a/app/abci.go b/app/abci.go new file mode 100644 index 0000000..94b34cc --- /dev/null +++ b/app/abci.go @@ -0,0 +1,84 @@ +package app + +import ( + "bytes" + "crypto/rand" + "encoding/json" + "fmt" + + abci "github.com/cometbft/cometbft/abci/types" + + "github.com/cosmos/cosmos-sdk/baseapp" + sdk "github.com/cosmos/cosmos-sdk/types" +) + +type ( + // VoteExtensionHandler defines a dummy vote extension handler for SimApp. + // + // NOTE: This implementation is solely used for testing purposes. DO NOT use + // in a production application! + VoteExtensionHandler struct{} + + // VoteExtension defines the structure used to create a dummy vote extension. + VoteExtension struct { + Hash []byte + Height int64 + Data []byte + } +) + +func NewVoteExtensionHandler() *VoteExtensionHandler { + return &VoteExtensionHandler{} +} + +func (h *VoteExtensionHandler) SetHandlers(bApp *baseapp.BaseApp) { + bApp.SetExtendVoteHandler(h.ExtendVote()) + bApp.SetVerifyVoteExtensionHandler(h.VerifyVoteExtension()) +} + +func (h *VoteExtensionHandler) ExtendVote() sdk.ExtendVoteHandler { + return func(_ sdk.Context, req *abci.RequestExtendVote) (*abci.ResponseExtendVote, error) { + buf := make([]byte, 1024) + + _, err := rand.Read(buf) + if err != nil { + return nil, fmt.Errorf("failed to generate random vote extension data: %w", err) + } + + ve := VoteExtension{ + Hash: req.Hash, + Height: req.Height, + Data: buf, + } + + bz, err := json.Marshal(ve) + if err != nil { + return nil, fmt.Errorf("failed to encode vote extension: %w", err) + } + + return &abci.ResponseExtendVote{VoteExtension: bz}, nil + } +} + +func (h *VoteExtensionHandler) VerifyVoteExtension() sdk.VerifyVoteExtensionHandler { + return func(ctx sdk.Context, req *abci.RequestVerifyVoteExtension) (*abci.ResponseVerifyVoteExtension, error) { + var ve VoteExtension + + if err := json.Unmarshal(req.VoteExtension, &ve); err != nil { + return &abci.ResponseVerifyVoteExtension{Status: abci.ResponseVerifyVoteExtension_REJECT}, nil + } + + switch { + case req.Height != ve.Height: + return &abci.ResponseVerifyVoteExtension{Status: abci.ResponseVerifyVoteExtension_REJECT}, nil + + case !bytes.Equal(req.Hash, ve.Hash): + return &abci.ResponseVerifyVoteExtension{Status: abci.ResponseVerifyVoteExtension_REJECT}, nil + + case len(ve.Data) != 1024: + return &abci.ResponseVerifyVoteExtension{Status: abci.ResponseVerifyVoteExtension_REJECT}, nil + } + + return &abci.ResponseVerifyVoteExtension{Status: abci.ResponseVerifyVoteExtension_ACCEPT}, nil + } +} diff --git a/app/app.go b/app/app.go new file mode 100644 index 0000000..cbb2cc7 --- /dev/null +++ b/app/app.go @@ -0,0 +1,372 @@ +package app + +import ( + "io" + "os" + "path/filepath" + + dbm "github.com/cosmos/cosmos-db" + + "cosmossdk.io/depinject" + "cosmossdk.io/log" + storetypes "cosmossdk.io/store/types" + circuitkeeper "cosmossdk.io/x/circuit/keeper" + evidencekeeper "cosmossdk.io/x/evidence/keeper" + feegrantkeeper "cosmossdk.io/x/feegrant/keeper" + nftkeeper "cosmossdk.io/x/nft/keeper" + upgradekeeper "cosmossdk.io/x/upgrade/keeper" + + "github.com/cosmos/cosmos-sdk/baseapp" + "github.com/cosmos/cosmos-sdk/client" + "github.com/cosmos/cosmos-sdk/codec" + codectypes "github.com/cosmos/cosmos-sdk/codec/types" + "github.com/cosmos/cosmos-sdk/runtime" + "github.com/cosmos/cosmos-sdk/server" + "github.com/cosmos/cosmos-sdk/server/api" + "github.com/cosmos/cosmos-sdk/server/config" + servertypes "github.com/cosmos/cosmos-sdk/server/types" + testdata_pulsar "github.com/cosmos/cosmos-sdk/testutil/testdata/testpb" + "github.com/cosmos/cosmos-sdk/types/module" + "github.com/cosmos/cosmos-sdk/x/auth" + authkeeper "github.com/cosmos/cosmos-sdk/x/auth/keeper" + authsims "github.com/cosmos/cosmos-sdk/x/auth/simulation" + authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" + authzkeeper "github.com/cosmos/cosmos-sdk/x/authz/keeper" + bankkeeper "github.com/cosmos/cosmos-sdk/x/bank/keeper" + consensuskeeper "github.com/cosmos/cosmos-sdk/x/consensus/keeper" + crisiskeeper "github.com/cosmos/cosmos-sdk/x/crisis/keeper" + distrkeeper "github.com/cosmos/cosmos-sdk/x/distribution/keeper" + govkeeper "github.com/cosmos/cosmos-sdk/x/gov/keeper" + groupkeeper "github.com/cosmos/cosmos-sdk/x/group/keeper" + mintkeeper "github.com/cosmos/cosmos-sdk/x/mint/keeper" + paramskeeper "github.com/cosmos/cosmos-sdk/x/params/keeper" + paramstypes "github.com/cosmos/cosmos-sdk/x/params/types" + slashingkeeper "github.com/cosmos/cosmos-sdk/x/slashing/keeper" + stakingkeeper "github.com/cosmos/cosmos-sdk/x/staking/keeper" + + escrowkeeper "github.com/0tech/andromeda/x/escrow/keeper" +) + +// DefaultNodeHome default home directories for the application daemon +var DefaultNodeHome string + +var ( + _ runtime.AppI = (*App)(nil) + _ servertypes.Application = (*App)(nil) +) + +// App extends an ABCI application, but with most of its parameters exported. +// They are exported for convenience in creating helper functions, as object +// capabilities aren't needed for testing. +type App struct { + *runtime.App + legacyAmino *codec.LegacyAmino + appCodec codec.Codec + txConfig client.TxConfig + interfaceRegistry codectypes.InterfaceRegistry + + // keepers + AccountKeeper authkeeper.AccountKeeper + BankKeeper bankkeeper.Keeper + StakingKeeper *stakingkeeper.Keeper + SlashingKeeper slashingkeeper.Keeper + MintKeeper mintkeeper.Keeper + DistrKeeper distrkeeper.Keeper + GovKeeper *govkeeper.Keeper + CrisisKeeper *crisiskeeper.Keeper + UpgradeKeeper *upgradekeeper.Keeper + ParamsKeeper paramskeeper.Keeper + AuthzKeeper authzkeeper.Keeper + EvidenceKeeper evidencekeeper.Keeper + FeeGrantKeeper feegrantkeeper.Keeper + GroupKeeper groupkeeper.Keeper + NFTKeeper nftkeeper.Keeper + ConsensusParamsKeeper consensuskeeper.Keeper + CircuitBreakerKeeper circuitkeeper.Keeper + EscrowKeeper escrowkeeper.Keeper + + // simulation manager + sm *module.SimulationManager +} + +func init() { + userHomeDir, err := os.UserHomeDir() + if err != nil { + panic(err) + } + + DefaultNodeHome = filepath.Join(userHomeDir, ".andromeda") +} + +// NewApp returns a reference to an initialized App. +func NewApp( + logger log.Logger, + db dbm.DB, + traceStore io.Writer, + loadLatest bool, + appOpts servertypes.AppOptions, + baseAppOptions ...func(*baseapp.BaseApp), +) *App { + var ( + app = &App{} + appBuilder *runtime.AppBuilder + + // merge the AppConfig and other configuration in one config + appConfig = depinject.Configs( + AppConfig, + depinject.Supply( + // supply the application options + appOpts, + // supply the logger + logger, + + // ADVANCED CONFIGURATION + + // + // AUTH + // + // For providing a custom function required in auth to generate custom account types + // add it below. By default the auth module uses simulation.RandomGenesisAccounts. + // + // authtypes.RandomGenesisAccountsFn(simulation.RandomGenesisAccounts), + // + // For providing a custom a base account type add it below. + // By default the auth module uses authtypes.ProtoBaseAccount(). + // + // func() sdk.AccountI { return authtypes.ProtoBaseAccount() }, + // + // For providing a different address codec, add it below. + // By default the auth module uses a Bech32 address codec, + // with the prefix defined in the auth module configuration. + // + // func() address.Codec { return <- custom address codec type -> } + + // + // STAKING + // + // For provinding a different validator and consensus address codec, add it below. + // By default the staking module uses the bech32 prefix provided in the auth config, + // and appends "valoper" and "valcons" for validator and consensus addresses respectively. + // When providing a custom address codec in auth, custom address codecs must be provided here as well. + // + // func() runtime.ValidatorAddressCodec { return <- custom validator address codec type -> } + // func() runtime.ConsensusAddressCodec { return <- custom consensus address codec type -> } + + // + // MINT + // + + // For providing a custom inflation function for x/mint add here your + // custom function that implements the minttypes.InflationCalculationFn + // interface. + ), + ) + ) + + if err := depinject.Inject(appConfig, + &appBuilder, + &app.appCodec, + &app.legacyAmino, + &app.txConfig, + &app.interfaceRegistry, + &app.AccountKeeper, + &app.BankKeeper, + &app.StakingKeeper, + &app.SlashingKeeper, + &app.MintKeeper, + &app.DistrKeeper, + &app.GovKeeper, + &app.CrisisKeeper, + &app.UpgradeKeeper, + &app.ParamsKeeper, + &app.AuthzKeeper, + &app.EvidenceKeeper, + &app.FeeGrantKeeper, + &app.GroupKeeper, + &app.NFTKeeper, + &app.ConsensusParamsKeeper, + &app.CircuitBreakerKeeper, + &app.EscrowKeeper, + ); err != nil { + panic(err) + } + + // Below we could construct and set an application specific mempool and + // ABCI 1.0 PrepareProposal and ProcessProposal handlers. These defaults are + // already set in the SDK's BaseApp, this shows an example of how to override + // them. + // + // Example: + // + // app.App = appBuilder.Build(...) + // nonceMempool := mempool.NewSenderNonceMempool() + // abciPropHandler := NewDefaultProposalHandler(nonceMempool, app.App.BaseApp) + // + // app.App.BaseApp.SetMempool(nonceMempool) + // app.App.BaseApp.SetPrepareProposal(abciPropHandler.PrepareProposalHandler()) + // app.App.BaseApp.SetProcessProposal(abciPropHandler.ProcessProposalHandler()) + // + // Alternatively, you can construct BaseApp options, append those to + // baseAppOptions and pass them to the appBuilder. + // + // Example: + // + // prepareOpt = func(app *baseapp.BaseApp) { + // abciPropHandler := baseapp.NewDefaultProposalHandler(nonceMempool, app) + // app.SetPrepareProposal(abciPropHandler.PrepareProposalHandler()) + // } + // baseAppOptions = append(baseAppOptions, prepareOpt) + + // create and set dummy vote extension handler + voteExtOp := func(bApp *baseapp.BaseApp) { + voteExtHandler := NewVoteExtensionHandler() + voteExtHandler.SetHandlers(bApp) + } + baseAppOptions = append(baseAppOptions, voteExtOp) + + app.App = appBuilder.Build(db, traceStore, baseAppOptions...) + + // register streaming services + if err := app.RegisterStreamingServices(appOpts, app.kvStoreKeys()); err != nil { + panic(err) + } + + /**** Module Options ****/ + + app.ModuleManager.RegisterInvariants(app.CrisisKeeper) + + // RegisterUpgradeHandlers is used for registering any on-chain upgrades. + app.RegisterUpgradeHandlers() + + // add test gRPC service for testing gRPC queries in isolation + testdata_pulsar.RegisterQueryServer(app.GRPCQueryRouter(), testdata_pulsar.QueryImpl{}) + + // create the simulation manager and define the order of the modules for deterministic simulations + // + // NOTE: this is not required apps that don't use the simulator for fuzz testing + // transactions + overrideModules := map[string]module.AppModuleSimulation{ + authtypes.ModuleName: auth.NewAppModule(app.appCodec, app.AccountKeeper, authsims.RandomGenesisAccounts, app.GetSubspace(authtypes.ModuleName)), + } + app.sm = module.NewSimulationManagerFromAppModules(app.ModuleManager.Modules, overrideModules) + + app.sm.RegisterStoreDecoders() + + // A custom InitChainer can be set if extra pre-init-genesis logic is required. + // By default, when using app wiring enabled module, this is not required. + // For instance, the upgrade module will set automatically the module version map in its init genesis thanks to app wiring. + // However, when registering a module manually (i.e. that does not support app wiring), the module version map + // must be set manually as follow. The upgrade module will de-duplicate the module version map. + // + // app.SetInitChainer(func(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain { + // app.UpgradeKeeper.SetModuleVersionMap(ctx, app.ModuleManager.GetVersionMap()) + // return app.App.InitChainer(ctx, req) + // }) + + if err := app.Load(loadLatest); err != nil { + panic(err) + } + + return app +} + +// LegacyAmino returns App's amino codec. +// +// NOTE: This is solely to be used for testing purposes as it may be desirable +// for modules to register their own custom testing types. +func (app *App) LegacyAmino() *codec.LegacyAmino { + return app.legacyAmino +} + +// AppCodec returns App's app codec. +// +// NOTE: This is solely to be used for testing purposes as it may be desirable +// for modules to register their own custom testing types. +func (app *App) AppCodec() codec.Codec { + return app.appCodec +} + +// InterfaceRegistry returns App's InterfaceRegistry. +func (app *App) InterfaceRegistry() codectypes.InterfaceRegistry { + return app.interfaceRegistry +} + +// TxConfig returns App's TxConfig +func (app *App) TxConfig() client.TxConfig { + return app.txConfig +} + +// GetKey returns the KVStoreKey for the provided store key. +// +// NOTE: This is solely to be used for testing purposes. +func (app *App) GetKey(storeKey string) *storetypes.KVStoreKey { + sk := app.UnsafeFindStoreKey(storeKey) + kvStoreKey, ok := sk.(*storetypes.KVStoreKey) + if !ok { + return nil + } + return kvStoreKey +} + +func (app *App) kvStoreKeys() map[string]*storetypes.KVStoreKey { + keys := make(map[string]*storetypes.KVStoreKey) + for _, k := range app.GetStoreKeys() { + if kv, ok := k.(*storetypes.KVStoreKey); ok { + keys[kv.Name()] = kv + } + } + + return keys +} + +// GetSubspace returns a param subspace for a given module name. +// +// NOTE: This is solely to be used for testing purposes. +func (app *App) GetSubspace(moduleName string) paramstypes.Subspace { + subspace, _ := app.ParamsKeeper.GetSubspace(moduleName) + return subspace +} + +// SimulationManager implements the SimulationApp interface +func (app *App) SimulationManager() *module.SimulationManager { + return app.sm +} + +// RegisterAPIRoutes registers all application module routes with the provided +// API server. +func (app *App) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APIConfig) { + app.App.RegisterAPIRoutes(apiSvr, apiConfig) + // register swagger API in app.go so that other applications can override easily + if err := server.RegisterSwaggerAPI(apiSvr.ClientCtx, apiSvr.Router, apiConfig.Swagger); err != nil { + panic(err) + } +} + +// GetMaccPerms returns a copy of the module account permissions +// +// NOTE: This is solely to be used for testing purposes. +func GetMaccPerms() map[string][]string { + dup := make(map[string][]string) + for _, perms := range moduleAccPerms { + dup[perms.Account] = perms.Permissions + } + + return dup +} + +// BlockedAddresses returns all the app's blocked account addresses. +func BlockedAddresses() map[string]bool { + result := make(map[string]bool) + + if len(blockAccAddrs) > 0 { + for _, addr := range blockAccAddrs { + result[addr] = true + } + } else { + for addr := range GetMaccPerms() { + result[addr] = true + } + } + + return result +} diff --git a/app/config.go b/app/config.go new file mode 100644 index 0000000..77a9c93 --- /dev/null +++ b/app/config.go @@ -0,0 +1,285 @@ +package app + +import ( + "time" + + "google.golang.org/protobuf/types/known/durationpb" + + runtimev1alpha1 "cosmossdk.io/api/cosmos/app/runtime/v1alpha1" + appv1alpha1 "cosmossdk.io/api/cosmos/app/v1alpha1" + authmodulev1 "cosmossdk.io/api/cosmos/auth/module/v1" + authzmodulev1 "cosmossdk.io/api/cosmos/authz/module/v1" + bankmodulev1 "cosmossdk.io/api/cosmos/bank/module/v1" + circuitmodulev1 "cosmossdk.io/api/cosmos/circuit/module/v1" + consensusmodulev1 "cosmossdk.io/api/cosmos/consensus/module/v1" + crisismodulev1 "cosmossdk.io/api/cosmos/crisis/module/v1" + distrmodulev1 "cosmossdk.io/api/cosmos/distribution/module/v1" + evidencemodulev1 "cosmossdk.io/api/cosmos/evidence/module/v1" + feegrantmodulev1 "cosmossdk.io/api/cosmos/feegrant/module/v1" + genutilmodulev1 "cosmossdk.io/api/cosmos/genutil/module/v1" + govmodulev1 "cosmossdk.io/api/cosmos/gov/module/v1" + groupmodulev1 "cosmossdk.io/api/cosmos/group/module/v1" + mintmodulev1 "cosmossdk.io/api/cosmos/mint/module/v1" + nftmodulev1 "cosmossdk.io/api/cosmos/nft/module/v1" + paramsmodulev1 "cosmossdk.io/api/cosmos/params/module/v1" + slashingmodulev1 "cosmossdk.io/api/cosmos/slashing/module/v1" + stakingmodulev1 "cosmossdk.io/api/cosmos/staking/module/v1" + txconfigv1 "cosmossdk.io/api/cosmos/tx/config/v1" + upgrademodulev1 "cosmossdk.io/api/cosmos/upgrade/module/v1" + vestingmodulev1 "cosmossdk.io/api/cosmos/vesting/module/v1" + "cosmossdk.io/core/appconfig" + "cosmossdk.io/depinject" + _ "cosmossdk.io/x/circuit" // import for side-effects + circuittypes "cosmossdk.io/x/circuit/types" + _ "cosmossdk.io/x/evidence" // import for side-effects + evidencetypes "cosmossdk.io/x/evidence/types" + "cosmossdk.io/x/feegrant" + _ "cosmossdk.io/x/feegrant/module" // import for side-effects + "cosmossdk.io/x/nft" + _ "cosmossdk.io/x/nft/module" // import for side-effects + _ "cosmossdk.io/x/upgrade" // import for side-effects + upgradetypes "cosmossdk.io/x/upgrade/types" + + "github.com/cosmos/cosmos-sdk/runtime" + "github.com/cosmos/cosmos-sdk/types/module" + _ "github.com/cosmos/cosmos-sdk/x/auth/tx/config" // import for side-effects + authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" + _ "github.com/cosmos/cosmos-sdk/x/auth/vesting" // import for side-effects + vestingtypes "github.com/cosmos/cosmos-sdk/x/auth/vesting/types" + "github.com/cosmos/cosmos-sdk/x/authz" + _ "github.com/cosmos/cosmos-sdk/x/authz/module" // import for side-effects + _ "github.com/cosmos/cosmos-sdk/x/bank" // import for side-effects + banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" + _ "github.com/cosmos/cosmos-sdk/x/consensus" // import for side-effects + consensustypes "github.com/cosmos/cosmos-sdk/x/consensus/types" + _ "github.com/cosmos/cosmos-sdk/x/crisis" // import for side-effects + crisistypes "github.com/cosmos/cosmos-sdk/x/crisis/types" + _ "github.com/cosmos/cosmos-sdk/x/distribution" // import for side-effects + distrtypes "github.com/cosmos/cosmos-sdk/x/distribution/types" + "github.com/cosmos/cosmos-sdk/x/genutil" + genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types" + "github.com/cosmos/cosmos-sdk/x/gov" + govclient "github.com/cosmos/cosmos-sdk/x/gov/client" + govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" + "github.com/cosmos/cosmos-sdk/x/group" + _ "github.com/cosmos/cosmos-sdk/x/group/module" // import for side-effects + _ "github.com/cosmos/cosmos-sdk/x/mint" // import for side-effects + minttypes "github.com/cosmos/cosmos-sdk/x/mint/types" + _ "github.com/cosmos/cosmos-sdk/x/params" // import for side-effects + paramsclient "github.com/cosmos/cosmos-sdk/x/params/client" + paramstypes "github.com/cosmos/cosmos-sdk/x/params/types" + _ "github.com/cosmos/cosmos-sdk/x/slashing" // import for side-effects + slashingtypes "github.com/cosmos/cosmos-sdk/x/slashing/types" + _ "github.com/cosmos/cosmos-sdk/x/staking" // import for side-effects + stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" + + escrowv1alpha1 "github.com/0tech/andromeda/x/escrow/andromeda/escrow/v1alpha1" + escrowmodulev1alpha1 "github.com/0tech/andromeda/x/escrow/api/andromeda/escrow/module/v1alpha1" + _ "github.com/0tech/andromeda/x/escrow/module" // import for side-effects +) + +var ( + // module account permissions + moduleAccPerms = []*authmodulev1.ModuleAccountPermission{ + {Account: authtypes.FeeCollectorName}, + {Account: distrtypes.ModuleName}, + {Account: minttypes.ModuleName, Permissions: []string{authtypes.Minter}}, + {Account: stakingtypes.BondedPoolName, Permissions: []string{authtypes.Burner, stakingtypes.ModuleName}}, + {Account: stakingtypes.NotBondedPoolName, Permissions: []string{authtypes.Burner, stakingtypes.ModuleName}}, + {Account: govtypes.ModuleName, Permissions: []string{authtypes.Burner}}, + {Account: nft.ModuleName}, + } + + // blocked account addresses + blockAccAddrs = []string{ + authtypes.FeeCollectorName, + distrtypes.ModuleName, + minttypes.ModuleName, + stakingtypes.BondedPoolName, + stakingtypes.NotBondedPoolName, + nft.ModuleName, + // We allow the following module accounts to receive funds: + // govtypes.ModuleName + } + + // application configuration (used by depinject) + AppConfig = depinject.Configs(appconfig.Compose(&appv1alpha1.Config{ + Modules: []*appv1alpha1.ModuleConfig{ + { + Name: runtime.ModuleName, + Config: appconfig.WrapAny(&runtimev1alpha1.Module{ + AppName: "App", + // NOTE: upgrade module is required to be prioritized + PreBlockers: []string{ + upgradetypes.ModuleName, + }, + // During begin block slashing happens after distr.BeginBlocker so that + // there is nothing left over in the validator fee pool, so as to keep the + // CanWithdrawInvariant invariant. + // NOTE: staking module is required if HistoricalEntries param > 0 + BeginBlockers: []string{ + minttypes.ModuleName, + distrtypes.ModuleName, + slashingtypes.ModuleName, + evidencetypes.ModuleName, + stakingtypes.ModuleName, + authz.ModuleName, + }, + EndBlockers: []string{ + crisistypes.ModuleName, + govtypes.ModuleName, + stakingtypes.ModuleName, + feegrant.ModuleName, + group.ModuleName, + }, + OverrideStoreKeys: []*runtimev1alpha1.StoreKeyConfig{ + { + ModuleName: authtypes.ModuleName, + KvStoreKey: "acc", + }, + }, + // NOTE: The genutils module must occur after staking so that pools are + // properly initialized with tokens from genesis accounts. + // NOTE: The genutils module must also occur after auth so that it can access the params from auth. + InitGenesis: []string{ + authtypes.ModuleName, + banktypes.ModuleName, + distrtypes.ModuleName, + stakingtypes.ModuleName, + slashingtypes.ModuleName, + govtypes.ModuleName, + minttypes.ModuleName, + crisistypes.ModuleName, + genutiltypes.ModuleName, + evidencetypes.ModuleName, + authz.ModuleName, + feegrant.ModuleName, + nft.ModuleName, + group.ModuleName, + paramstypes.ModuleName, + upgradetypes.ModuleName, + vestingtypes.ModuleName, + circuittypes.ModuleName, + escrowv1alpha1.ModuleName, + }, + // When ExportGenesis is not specified, the export genesis module order + // is equal to the init genesis order + // ExportGenesis: []string{}, + // Uncomment if you want to set a custom migration order here. + // OrderMigrations: []string{}, + }), + }, + { + Name: authtypes.ModuleName, + Config: appconfig.WrapAny(&authmodulev1.Module{ + Bech32Prefix: "cosmos", + ModuleAccountPermissions: moduleAccPerms, + // By default modules authority is the governance module. This is configurable with the following: + // Authority: "group", // A custom module authority can be set using a module name + // Authority: "cosmos1cwwv22j5ca08ggdv9c2uky355k908694z577tv", // or a specific address + }), + }, + { + Name: vestingtypes.ModuleName, + Config: appconfig.WrapAny(&vestingmodulev1.Module{}), + }, + { + Name: banktypes.ModuleName, + Config: appconfig.WrapAny(&bankmodulev1.Module{ + BlockedModuleAccountsOverride: blockAccAddrs, + }), + }, + { + Name: stakingtypes.ModuleName, + Config: appconfig.WrapAny(&stakingmodulev1.Module{ + // NOTE: specifying a prefix is only necessary when using bech32 addresses + // If not specfied, the auth Bech32Prefix appended with "valoper" and "valcons" is used by default + Bech32PrefixValidator: "cosmosvaloper", + Bech32PrefixConsensus: "cosmosvalcons", + }), + }, + { + Name: slashingtypes.ModuleName, + Config: appconfig.WrapAny(&slashingmodulev1.Module{}), + }, + { + Name: paramstypes.ModuleName, + Config: appconfig.WrapAny(¶msmodulev1.Module{}), + }, + { + Name: "tx", + Config: appconfig.WrapAny(&txconfigv1.Config{}), + }, + { + Name: genutiltypes.ModuleName, + Config: appconfig.WrapAny(&genutilmodulev1.Module{}), + }, + { + Name: authz.ModuleName, + Config: appconfig.WrapAny(&authzmodulev1.Module{}), + }, + { + Name: upgradetypes.ModuleName, + Config: appconfig.WrapAny(&upgrademodulev1.Module{}), + }, + { + Name: distrtypes.ModuleName, + Config: appconfig.WrapAny(&distrmodulev1.Module{}), + }, + { + Name: evidencetypes.ModuleName, + Config: appconfig.WrapAny(&evidencemodulev1.Module{}), + }, + { + Name: minttypes.ModuleName, + Config: appconfig.WrapAny(&mintmodulev1.Module{}), + }, + { + Name: group.ModuleName, + Config: appconfig.WrapAny(&groupmodulev1.Module{ + MaxExecutionPeriod: durationpb.New(time.Second * 1209600), + MaxMetadataLen: 255, + }), + }, + { + Name: nft.ModuleName, + Config: appconfig.WrapAny(&nftmodulev1.Module{}), + }, + { + Name: feegrant.ModuleName, + Config: appconfig.WrapAny(&feegrantmodulev1.Module{}), + }, + { + Name: govtypes.ModuleName, + Config: appconfig.WrapAny(&govmodulev1.Module{}), + }, + { + Name: crisistypes.ModuleName, + Config: appconfig.WrapAny(&crisismodulev1.Module{}), + }, + { + Name: consensustypes.ModuleName, + Config: appconfig.WrapAny(&consensusmodulev1.Module{}), + }, + { + Name: circuittypes.ModuleName, + Config: appconfig.WrapAny(&circuitmodulev1.Module{}), + }, + { + Name: escrowv1alpha1.ModuleName, + Config: appconfig.WrapAny(&escrowmodulev1alpha1.Module{}), + }, + }, + }), + depinject.Supply( + // supply custom module basics + map[string]module.AppModuleBasic{ + genutiltypes.ModuleName: genutil.NewAppModuleBasic(genutiltypes.DefaultMessageValidator), + govtypes.ModuleName: gov.NewAppModuleBasic( + []govclient.ProposalHandler{ + paramsclient.ProposalHandler, + }, + ), + }, + )) +) diff --git a/app/export.go b/app/export.go new file mode 100644 index 0000000..84e58cb --- /dev/null +++ b/app/export.go @@ -0,0 +1,246 @@ +package app + +import ( + "encoding/json" + "fmt" + "log" + + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" + + storetypes "cosmossdk.io/store/types" + + servertypes "github.com/cosmos/cosmos-sdk/server/types" + sdk "github.com/cosmos/cosmos-sdk/types" + slashingtypes "github.com/cosmos/cosmos-sdk/x/slashing/types" + "github.com/cosmos/cosmos-sdk/x/staking" + stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" +) + +// ExportAppStateAndValidators exports the state of the application for a genesis +// file. +func (app *App) ExportAppStateAndValidators(forZeroHeight bool, jailAllowedAddrs, modulesToExport []string) (servertypes.ExportedApp, error) { + // as if they could withdraw from the start of the next block + ctx := app.NewContextLegacy(true, cmtproto.Header{Height: app.LastBlockHeight()}) + + // We export at last height + 1, because that's the height at which + // CometBFT will start InitChain. + height := app.LastBlockHeight() + 1 + if forZeroHeight { + height = 0 + app.prepForZeroHeightGenesis(ctx, jailAllowedAddrs) + } + + genState, err := app.ModuleManager.ExportGenesisForModules(ctx, app.appCodec, modulesToExport) + if err != nil { + return servertypes.ExportedApp{}, err + } + + appState, err := json.MarshalIndent(genState, "", " ") + if err != nil { + return servertypes.ExportedApp{}, err + } + + validators, err := staking.WriteValidators(ctx, app.StakingKeeper) + return servertypes.ExportedApp{ + AppState: appState, + Validators: validators, + Height: height, + ConsensusParams: app.BaseApp.GetConsensusParams(ctx), + }, err +} + +// prepare for fresh start at zero height +// NOTE zero height genesis is a temporary feature which will be deprecated +// +// in favor of export at a block height +func (app *App) prepForZeroHeightGenesis(ctx sdk.Context, jailAllowedAddrs []string) { + applyAllowedAddrs := false + + // check if there is a allowed address list + if len(jailAllowedAddrs) > 0 { + applyAllowedAddrs = true + } + + allowedAddrsMap := make(map[string]bool) + + for _, addr := range jailAllowedAddrs { + _, err := sdk.ValAddressFromBech32(addr) + if err != nil { + log.Fatal(err) + } + allowedAddrsMap[addr] = true + } + + /* Just to be safe, assert the invariants on current state. */ + app.CrisisKeeper.AssertInvariants(ctx) + + /* Handle fee distribution state. */ + + // withdraw all validator commission + err := app.StakingKeeper.IterateValidators(ctx, func(_ int64, val stakingtypes.ValidatorI) (stop bool) { + valBz, err := app.StakingKeeper.ValidatorAddressCodec().StringToBytes(val.GetOperator()) + if err != nil { + panic(err) + } + _, _ = app.DistrKeeper.WithdrawValidatorCommission(ctx, valBz) + return false + }) + if err != nil { + panic(err) + } + + // withdraw all delegator rewards + dels, err := app.StakingKeeper.GetAllDelegations(ctx) + if err != nil { + panic(err) + } + + for _, delegation := range dels { + valAddr, err := sdk.ValAddressFromBech32(delegation.ValidatorAddress) + if err != nil { + panic(err) + } + + delAddr := sdk.MustAccAddressFromBech32(delegation.DelegatorAddress) + + _, _ = app.DistrKeeper.WithdrawDelegationRewards(ctx, delAddr, valAddr) + } + + // clear validator slash events + app.DistrKeeper.DeleteAllValidatorSlashEvents(ctx) + + // clear validator historical rewards + app.DistrKeeper.DeleteAllValidatorHistoricalRewards(ctx) + + // set context height to zero + height := ctx.BlockHeight() + ctx = ctx.WithBlockHeight(0) + + // reinitialize all validators + err = app.StakingKeeper.IterateValidators(ctx, func(_ int64, val stakingtypes.ValidatorI) (stop bool) { + valBz, err := app.StakingKeeper.ValidatorAddressCodec().StringToBytes(val.GetOperator()) + if err != nil { + panic(err) + } + // donate any unwithdrawn outstanding reward fraction tokens to the community pool + scraps, err := app.DistrKeeper.GetValidatorOutstandingRewardsCoins(ctx, valBz) + if err != nil { + panic(err) + } + feePool, err := app.DistrKeeper.FeePool.Get(ctx) + if err != nil { + panic(err) + } + feePool.CommunityPool = feePool.CommunityPool.Add(scraps...) + if err := app.DistrKeeper.FeePool.Set(ctx, feePool); err != nil { + panic(err) + } + + if err := app.DistrKeeper.Hooks().AfterValidatorCreated(ctx, valBz); err != nil { + panic(err) + } + return false + }) + + // reinitialize all delegations + for _, del := range dels { + valAddr, err := sdk.ValAddressFromBech32(del.ValidatorAddress) + if err != nil { + panic(err) + } + delAddr := sdk.MustAccAddressFromBech32(del.DelegatorAddress) + + if err := app.DistrKeeper.Hooks().BeforeDelegationCreated(ctx, delAddr, valAddr); err != nil { + // never called as BeforeDelegationCreated always returns nil + panic(fmt.Errorf("error while incrementing period: %w", err)) + } + + if err := app.DistrKeeper.Hooks().AfterDelegationModified(ctx, delAddr, valAddr); err != nil { + // never called as AfterDelegationModified always returns nil + panic(fmt.Errorf("error while creating a new delegation period record: %w", err)) + } + } + + // reset context height + ctx = ctx.WithBlockHeight(height) + + /* Handle staking state. */ + + // iterate through redelegations, reset creation height + if err := app.StakingKeeper.IterateRedelegations(ctx, func(_ int64, red stakingtypes.Redelegation) (stop bool) { + for i := range red.Entries { + red.Entries[i].CreationHeight = 0 + } + err = app.StakingKeeper.SetRedelegation(ctx, red) + if err != nil { + panic(err) + } + return false + }); err != nil { + panic(err) + } + + // iterate through unbonding delegations, reset creation height + if err := app.StakingKeeper.IterateUnbondingDelegations(ctx, func(_ int64, ubd stakingtypes.UnbondingDelegation) (stop bool) { + for i := range ubd.Entries { + ubd.Entries[i].CreationHeight = 0 + } + err = app.StakingKeeper.SetUnbondingDelegation(ctx, ubd) + if err != nil { + panic(err) + } + return false + }); err != nil { + panic(err) + } + + // Iterate through validators by power descending, reset bond heights, and + // update bond intra-tx counters. + store := ctx.KVStore(app.GetKey(stakingtypes.StoreKey)) + iter := storetypes.KVStoreReversePrefixIterator(store, stakingtypes.ValidatorsKey) + counter := int16(0) + + for ; iter.Valid(); iter.Next() { + addr := sdk.ValAddress(stakingtypes.AddressFromValidatorsKey(iter.Key())) + validator, err := app.StakingKeeper.GetValidator(ctx, addr) + if err != nil { + panic("expected validator, not found") + } + + validator.UnbondingHeight = 0 + if applyAllowedAddrs && !allowedAddrsMap[addr.String()] { + validator.Jailed = true + } + + if err := app.StakingKeeper.SetValidator(ctx, validator); err != nil { + panic(err) + } + counter++ + } + + if err := iter.Close(); err != nil { + app.Logger().Error("error while closing the key-value store reverse prefix iterator: ", err) + return + } + + _, err = app.StakingKeeper.ApplyAndReturnValidatorSetUpdates(ctx) + if err != nil { + log.Fatal(err) + } + + /* Handle slashing state. */ + + // reset start height on signing infos + if err := app.SlashingKeeper.IterateValidatorSigningInfos( + ctx, + func(addr sdk.ConsAddress, info slashingtypes.ValidatorSigningInfo) (stop bool) { + info.StartHeight = 0 + if err := app.SlashingKeeper.SetValidatorSigningInfo(ctx, addr, info); err != nil { + panic(err) + } + return false + }, + ); err != nil { + panic(err) + } +} diff --git a/app/genesis.go b/app/genesis.go new file mode 100644 index 0000000..e4e849f --- /dev/null +++ b/app/genesis.go @@ -0,0 +1,14 @@ +package app + +import ( + "encoding/json" +) + +// GenesisState of the blockchain is represented here as a map of raw json +// messages key'd by a identifier string. +// The identifier is used to determine which module genesis information belongs +// to so it may be appropriately routed during init chain. +// Within this application default genesis information is retrieved from +// the ModuleBasicManager which populates json from each BasicModule +// object provided to it during init. +type GenesisState map[string]json.RawMessage diff --git a/app/go.mod b/app/go.mod new file mode 100644 index 0000000..fd51d62 --- /dev/null +++ b/app/go.mod @@ -0,0 +1,202 @@ +module github.com/0tech/andromeda/app + +go 1.21 + +require ( + cosmossdk.io/api v0.7.2 + cosmossdk.io/core v0.11.0 + cosmossdk.io/depinject v1.0.0-alpha.4 + cosmossdk.io/log v1.3.0 + cosmossdk.io/math v1.2.0 + cosmossdk.io/store v1.0.2 + cosmossdk.io/x/circuit v0.0.0-20230925151519-64e0e8980834 + cosmossdk.io/x/evidence v0.0.0-20230925151519-64e0e8980834 + cosmossdk.io/x/feegrant v0.0.0-20230925151519-64e0e8980834 + cosmossdk.io/x/nft v0.0.0-20230925151519-64e0e8980834 + cosmossdk.io/x/upgrade v0.0.0-20230925151519-64e0e8980834 + github.com/0tech/andromeda/x/escrow v0.0.0-00010101000000-000000000000 + github.com/cometbft/cometbft v0.38.2 + github.com/cosmos/cosmos-db v1.0.0 + github.com/cosmos/cosmos-sdk v0.50.3 + github.com/stretchr/testify v1.8.4 + google.golang.org/protobuf v1.32.0 +) + +require ( + cloud.google.com/go v0.110.10 // indirect + cloud.google.com/go/compute v1.23.3 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect + cloud.google.com/go/iam v1.1.5 // indirect + cloud.google.com/go/storage v1.30.1 // indirect + cosmossdk.io/collections v0.4.0 // indirect + cosmossdk.io/errors v1.0.1 // indirect + cosmossdk.io/x/tx v0.13.0 // indirect + filippo.io/edwards25519 v1.0.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/aws/aws-sdk-go v1.44.224 // indirect + github.com/beorn7/perks v1.0.1 // indirect + github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect + github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816 // indirect + github.com/bits-and-blooms/bitset v1.8.0 // indirect + github.com/btcsuite/btcd/btcec/v2 v2.3.2 // indirect + github.com/cenkalti/backoff/v4 v4.1.3 // indirect + github.com/cespare/xxhash v1.1.0 // indirect + github.com/cespare/xxhash/v2 v2.2.0 // indirect + github.com/chzyer/readline v1.5.1 // indirect + github.com/cockroachdb/apd/v2 v2.0.2 // indirect + github.com/cockroachdb/errors v1.11.1 // indirect + github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b // indirect + github.com/cockroachdb/pebble v0.0.0-20231101195458-481da04154d6 // indirect + github.com/cockroachdb/redact v1.1.5 // indirect + github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06 // indirect + github.com/cometbft/cometbft-db v0.9.1 // indirect + github.com/cosmos/btcutil v1.0.5 // indirect + github.com/cosmos/cosmos-proto v1.0.0-beta.3 // indirect + github.com/cosmos/go-bip39 v1.0.0 // indirect + github.com/cosmos/gogogateway v1.2.0 // indirect + github.com/cosmos/gogoproto v1.4.11 // indirect + github.com/cosmos/iavl v1.0.0 // indirect + github.com/cosmos/ics23/go v0.10.0 // indirect + github.com/cosmos/ledger-cosmos-go v0.13.3 // indirect + github.com/danieljoos/wincred v1.1.2 // indirect + github.com/davecgh/go-spew v1.1.1 // indirect + github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.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 + github.com/dustin/go-humanize v1.0.1 // indirect + github.com/dvsekhvalnov/jose2go v1.5.0 // indirect + github.com/emicklei/dot v1.6.0 // indirect + github.com/fatih/color v1.15.0 // indirect + github.com/felixge/httpsnoop v1.0.2 // indirect + github.com/fsnotify/fsnotify v1.6.0 // indirect + github.com/getsentry/sentry-go v0.25.0 // indirect + github.com/go-kit/kit v0.12.0 // indirect + github.com/go-kit/log v0.2.1 // indirect + github.com/go-logfmt/logfmt v0.6.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.0 // indirect + github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect + github.com/golang/mock v1.6.0 // indirect + github.com/golang/protobuf v1.5.3 // indirect + github.com/golang/snappy v0.0.4 // indirect + github.com/google/btree v1.1.2 // indirect + github.com/google/go-cmp v0.6.0 // indirect + github.com/google/orderedcode v0.0.1 // indirect + github.com/google/s2a-go v0.1.7 // indirect + github.com/google/uuid v1.4.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.3.2 // indirect + github.com/googleapis/gax-go/v2 v2.12.0 // indirect + github.com/gorilla/handlers v1.5.1 // indirect + github.com/gorilla/mux v1.8.0 // indirect + github.com/gorilla/websocket v1.5.0 // 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-cleanhttp v0.5.2 // indirect + github.com/hashicorp/go-getter v1.7.1 // 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.1 // indirect + github.com/hashicorp/go-plugin v1.5.2 // indirect + github.com/hashicorp/go-safetemp v1.0.0 // indirect + github.com/hashicorp/go-version v1.6.0 // 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/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/jmespath/go-jmespath v0.4.0 // indirect + github.com/jmhodges/levigo v1.0.0 // indirect + github.com/klauspost/compress v1.17.4 // indirect + github.com/kr/pretty v0.3.1 // indirect + github.com/kr/text v0.2.0 // indirect + github.com/lib/pq v1.10.7 // indirect + github.com/libp2p/go-buffer-pool v0.1.0 // indirect + github.com/linxGnu/grocksdb v1.8.6 // indirect + github.com/magiconair/properties v1.8.7 // indirect + github.com/manifoldco/promptui v0.9.0 // indirect + github.com/mattn/go-colorable v0.1.13 // indirect + github.com/mattn/go-isatty v0.0.20 // indirect + github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0 // indirect + github.com/minio/highwayhash v1.0.2 // indirect + github.com/mitchellh/go-homedir v1.1.0 // indirect + github.com/mitchellh/go-testing-interface v1.14.1 // indirect + github.com/mitchellh/mapstructure v1.5.0 // indirect + github.com/mtibben/percent v0.2.1 // indirect + github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a // indirect + github.com/oklog/run v1.1.0 // indirect + github.com/pelletier/go-toml/v2 v2.0.8 // indirect + github.com/petermattis/goid v0.0.0-20230904192822-1876fd5063bc // indirect + github.com/pkg/errors v0.9.1 // indirect + github.com/pmezard/go-difflib v1.0.0 // indirect + github.com/prometheus/client_golang v1.17.0 // indirect + github.com/prometheus/client_model v0.5.0 // indirect + github.com/prometheus/common v0.45.0 // indirect + github.com/prometheus/procfs v0.12.0 // indirect + github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect + github.com/rogpeppe/go-internal v1.11.0 // indirect + github.com/rs/cors v1.8.3 // indirect + github.com/rs/zerolog v1.31.0 // indirect + github.com/sasha-s/go-deadlock v0.3.1 // indirect + github.com/spf13/afero v1.9.5 // indirect + github.com/spf13/cast v1.5.1 // indirect + github.com/spf13/cobra v1.7.0 // indirect + github.com/spf13/jwalterweatherman v1.1.0 // indirect + github.com/spf13/pflag v1.0.5 // indirect + github.com/spf13/viper v1.16.0 // indirect + github.com/subosito/gotenv v1.4.2 // indirect + github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d // indirect + github.com/tendermint/go-amino v0.16.0 // indirect + github.com/tidwall/btree v1.7.0 // indirect + github.com/ulikunitz/xz v0.5.11 // indirect + github.com/zondax/hid v0.9.2 // indirect + github.com/zondax/ledger-go v0.14.3 // indirect + go.etcd.io/bbolt v1.3.8 // indirect + go.opencensus.io v0.24.0 // indirect + golang.org/x/crypto v0.16.0 // indirect + golang.org/x/exp v0.0.0-20231006140011-7918f672742d // indirect + golang.org/x/net v0.19.0 // indirect + golang.org/x/oauth2 v0.13.0 // indirect + golang.org/x/sync v0.4.0 // indirect + golang.org/x/sys v0.15.0 // indirect + golang.org/x/term v0.15.0 // indirect + golang.org/x/text v0.14.0 // indirect + golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect + google.golang.org/api v0.149.0 // indirect + google.golang.org/appengine v1.6.8 // indirect + google.golang.org/genproto v0.0.0-20231211222908-989df2bf70f3 // indirect + google.golang.org/genproto/googleapis/api v0.0.0-20231120223509-83a465c0220f // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20231212172506-995d672761c0 // indirect + google.golang.org/grpc v1.60.1 // indirect + gopkg.in/ini.v1 v1.67.0 // indirect + gopkg.in/yaml.v2 v2.4.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 + sigs.k8s.io/yaml v1.3.0 // indirect +) + +replace ( + // Use cosmos keyring + github.com/99designs/keyring => github.com/cosmos/keyring v1.2.0 + + // Fix upstream GHSA-h395-qcrw-5vmq and GHSA-3vp4-m3rf-835h vulnerabilities. + // TODO Remove it: https://github.com/cosmos/cosmos-sdk/issues/10409 + github.com/gin-gonic/gin => github.com/gin-gonic/gin v1.9.1 + + // replace broken goleveldb + github.com/syndtr/goleveldb => github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 +) + +replace github.com/0tech/andromeda/x/escrow => ../x/escrow diff --git a/app/go.sum b/app/go.sum new file mode 100644 index 0000000..6aae9cb --- /dev/null +++ b/app/go.sum @@ -0,0 +1,1727 @@ +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.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= +cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU= +cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= +cloud.google.com/go v0.44.3/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= +cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc= +cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0= +cloud.google.com/go v0.50.0/go.mod h1:r9sluTvynVuxRIOHXQEHMFffphuXHOMZMycpNR5e6To= +cloud.google.com/go v0.52.0/go.mod h1:pXajvRH/6o3+F9jDHZWQ5PbGhn+o8w9qiu/CffaVdO4= +cloud.google.com/go v0.53.0/go.mod h1:fp/UouUEsRkN6ryDKNW/Upv/JBKnv6WDthjR6+vze6M= +cloud.google.com/go v0.54.0/go.mod h1:1rq2OEkV3YMf6n/9ZvGWI3GWw0VoqH/1x2nd8Is/bPc= +cloud.google.com/go v0.56.0/go.mod h1:jr7tqZxxKOVYizybht9+26Z/gUq7tiRzu+ACVAMbKVk= +cloud.google.com/go v0.57.0/go.mod h1:oXiQ6Rzq3RAkkY7N6t3TcE6jE+CIBBbA36lwQ1JyzZs= +cloud.google.com/go v0.62.0/go.mod h1:jmCYTdRCQuc1PHIIJ/maLInMho30T/Y0M4hTdTShOYc= +cloud.google.com/go v0.65.0/go.mod h1:O5N8zS7uWy9vkA9vayVHs65eM1ubvY4h553ofrNHObY= +cloud.google.com/go v0.72.0/go.mod h1:M+5Vjvlc2wnp6tjzE102Dw08nGShTscUx2nZMufOKPI= +cloud.google.com/go v0.74.0/go.mod h1:VV1xSbzvo+9QJOxLDaJfTjx5e+MePCpCWwvftOeQmWk= +cloud.google.com/go v0.75.0/go.mod h1:VGuuCn7PG0dwsd5XPVm2Mm3wlh3EL55/79EKB6hlPTY= +cloud.google.com/go v0.78.0/go.mod h1:QjdrLG0uq+YwhjoVOLsS1t7TW8fs36kLs4XO5R5ECHg= +cloud.google.com/go v0.79.0/go.mod h1:3bzgcEeQlzbuEAYu4mrWhKqWjmpprinYgKJLgKHnbb8= +cloud.google.com/go v0.81.0/go.mod h1:mk/AM35KwGk/Nm2YSeZbxXdrNK3KZOYHmLkOqC2V6E0= +cloud.google.com/go v0.83.0/go.mod h1:Z7MJUsANfY0pYPdw0lbnivPx4/vhy/e2FEkSkF7vAVY= +cloud.google.com/go v0.84.0/go.mod h1:RazrYuxIK6Kb7YrzzhPoLmCVzl7Sup4NrbKPg8KHSUM= +cloud.google.com/go v0.87.0/go.mod h1:TpDYlFy7vuLzZMMZ+B6iRiELaY7z/gJPaqbMx6mlWcY= +cloud.google.com/go v0.90.0/go.mod h1:kRX0mNRHe0e2rC6oNakvwQqzyDmg57xJ+SZU1eT2aDQ= +cloud.google.com/go v0.93.3/go.mod h1:8utlLll2EF5XMAV15woO4lSbWQlk8rer9aLOfLh7+YI= +cloud.google.com/go v0.94.1/go.mod h1:qAlAugsXlC+JWO+Bke5vCtc9ONxjQT3drlTTnAplMW4= +cloud.google.com/go v0.97.0/go.mod h1:GF7l59pYBVlXQIBLx3a761cZ41F9bBH3JUlihCt2Udc= +cloud.google.com/go v0.99.0/go.mod h1:w0Xx2nLzqWJPuozYQX+hFfCSI8WioryfRDzkoI/Y2ZA= +cloud.google.com/go v0.100.2/go.mod h1:4Xra9TjzAeYHrl5+oeLlzbM2k3mjVhZh4UqTZ//w99A= +cloud.google.com/go v0.102.0/go.mod h1:oWcCzKlqJ5zgHQt9YsaeTY9KzIvjyy0ArmiBUgpQ+nc= +cloud.google.com/go v0.102.1/go.mod h1:XZ77E9qnTEnrgEOvr4xzfdX5TRo7fB4T2F4O6+34hIU= +cloud.google.com/go v0.104.0/go.mod h1:OO6xxXdJyvuJPcEPBLN9BJPD+jep5G1+2U5B5gkRYtA= +cloud.google.com/go v0.110.10 h1:LXy9GEO+timppncPIAZoOj3l58LIU9k+kn48AN7IO3Y= +cloud.google.com/go v0.110.10/go.mod h1:v1OoFqYxiBkUrruItNM3eT4lLByNjxmJSV/xDKJNnic= +cloud.google.com/go/aiplatform v1.22.0/go.mod h1:ig5Nct50bZlzV6NvKaTwmplLLddFx0YReh9WfTO5jKw= +cloud.google.com/go/aiplatform v1.24.0/go.mod h1:67UUvRBKG6GTayHKV8DBv2RtR1t93YRu5B1P3x99mYY= +cloud.google.com/go/analytics v0.11.0/go.mod h1:DjEWCu41bVbYcKyvlws9Er60YE4a//bK6mnhWvQeFNI= +cloud.google.com/go/analytics v0.12.0/go.mod h1:gkfj9h6XRf9+TS4bmuhPEShsh3hH8PAZzm/41OOhQd4= +cloud.google.com/go/area120 v0.5.0/go.mod h1:DE/n4mp+iqVyvxHN41Vf1CR602GiHQjFPusMFW6bGR4= +cloud.google.com/go/area120 v0.6.0/go.mod h1:39yFJqWVgm0UZqWTOdqkLhjoC7uFfgXRC8g/ZegeAh0= +cloud.google.com/go/artifactregistry v1.6.0/go.mod h1:IYt0oBPSAGYj/kprzsBjZ/4LnG/zOcHyFHjWPCi6SAQ= +cloud.google.com/go/artifactregistry v1.7.0/go.mod h1:mqTOFOnGZx8EtSqK/ZWcsm/4U8B77rbcLP6ruDU2Ixk= +cloud.google.com/go/asset v1.5.0/go.mod h1:5mfs8UvcM5wHhqtSv8J1CtxxaQq3AdBxxQi2jGW/K4o= +cloud.google.com/go/asset v1.7.0/go.mod h1:YbENsRK4+xTiL+Ofoj5Ckf+O17kJtgp3Y3nn4uzZz5s= +cloud.google.com/go/asset v1.8.0/go.mod h1:mUNGKhiqIdbr8X7KNayoYvyc4HbbFO9URsjbytpUaW0= +cloud.google.com/go/assuredworkloads v1.5.0/go.mod h1:n8HOZ6pff6re5KYfBXcFvSViQjDwxFkAkmUFffJRbbY= +cloud.google.com/go/assuredworkloads v1.6.0/go.mod h1:yo2YOk37Yc89Rsd5QMVECvjaMKymF9OP+QXWlKXUkXw= +cloud.google.com/go/assuredworkloads v1.7.0/go.mod h1:z/736/oNmtGAyU47reJgGN+KVoYoxeLBoj4XkKYscNI= +cloud.google.com/go/automl v1.5.0/go.mod h1:34EjfoFGMZ5sgJ9EoLsRtdPSNZLcfflJR39VbVNS2M0= +cloud.google.com/go/automl v1.6.0/go.mod h1:ugf8a6Fx+zP0D59WLhqgTDsQI9w07o64uf/Is3Nh5p8= +cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= +cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE= +cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc= +cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUMb4Nv6dBIg= +cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4gLoIoXIAPc= +cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ= +cloud.google.com/go/bigquery v1.42.0/go.mod h1:8dRTJxhtG+vwBKzE5OseQn/hiydoQN3EedCaOdYmxRA= +cloud.google.com/go/billing v1.4.0/go.mod h1:g9IdKBEFlItS8bTtlrZdVLWSSdSyFUZKXNS02zKMOZY= +cloud.google.com/go/billing v1.5.0/go.mod h1:mztb1tBc3QekhjSgmpf/CV4LzWXLzCArwpLmP2Gm88s= +cloud.google.com/go/binaryauthorization v1.1.0/go.mod h1:xwnoWu3Y84jbuHa0zd526MJYmtnVXn0syOjaJgy4+dM= +cloud.google.com/go/binaryauthorization v1.2.0/go.mod h1:86WKkJHtRcv5ViNABtYMhhNWRrD1Vpi//uKEy7aYEfI= +cloud.google.com/go/cloudtasks v1.5.0/go.mod h1:fD92REy1x5woxkKEkLdvavGnPJGEn8Uic9nWuLzqCpY= +cloud.google.com/go/cloudtasks v1.6.0/go.mod h1:C6Io+sxuke9/KNRkbQpihnW93SWDU3uXt92nu85HkYI= +cloud.google.com/go/compute v0.1.0/go.mod h1:GAesmwr110a34z04OlxYkATPBEfVhkymfTBXtfbBFow= +cloud.google.com/go/compute v1.3.0/go.mod h1:cCZiE1NHEtai4wiufUhW8I8S1JKkAnhnQJWM7YD99wM= +cloud.google.com/go/compute v1.5.0/go.mod h1:9SMHyhJlzhlkJqrPAc839t2BZFTSk6Jdj6mkzQJeu0M= +cloud.google.com/go/compute v1.6.0/go.mod h1:T29tfhtVbq1wvAPo0E3+7vhgmkOYeXjhFvz/FMzPu0s= +cloud.google.com/go/compute v1.6.1/go.mod h1:g85FgpzFvNULZ+S8AYq87axRKuf2Kh7deLqV/jJ3thU= +cloud.google.com/go/compute v1.7.0/go.mod h1:435lt8av5oL9P3fv1OEzSbSUe+ybHXGMPQHHZWZxy9U= +cloud.google.com/go/compute v1.10.0/go.mod h1:ER5CLbMxl90o2jtNbGSbtfOpQKR0t15FOtRsugnLrlU= +cloud.google.com/go/compute v1.23.3 h1:6sVlXXBmbd7jNX0Ipq0trII3e4n1/MsADLK6a+aiVlk= +cloud.google.com/go/compute v1.23.3/go.mod h1:VCgBUoMnIVIR0CscqQiPJLAG25E3ZRZMzcFZeQ+h8CI= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= +cloud.google.com/go/containeranalysis v0.5.1/go.mod h1:1D92jd8gRR/c0fGMlymRgxWD3Qw9C1ff6/T7mLgVL8I= +cloud.google.com/go/containeranalysis v0.6.0/go.mod h1:HEJoiEIu+lEXM+k7+qLCci0h33lX3ZqoYFdmPcoO7s4= +cloud.google.com/go/datacatalog v1.3.0/go.mod h1:g9svFY6tuR+j+hrTw3J2dNcmI0dzmSiyOzm8kpLq0a0= +cloud.google.com/go/datacatalog v1.5.0/go.mod h1:M7GPLNQeLfWqeIm3iuiruhPzkt65+Bx8dAKvScX8jvs= +cloud.google.com/go/datacatalog v1.6.0/go.mod h1:+aEyF8JKg+uXcIdAmmaMUmZ3q1b/lKLtXCmXdnc0lbc= +cloud.google.com/go/dataflow v0.6.0/go.mod h1:9QwV89cGoxjjSR9/r7eFDqqjtvbKxAK2BaYU6PVk9UM= +cloud.google.com/go/dataflow v0.7.0/go.mod h1:PX526vb4ijFMesO1o202EaUmouZKBpjHsTlCtB4parQ= +cloud.google.com/go/dataform v0.3.0/go.mod h1:cj8uNliRlHpa6L3yVhDOBrUXH+BPAO1+KFMQQNSThKo= +cloud.google.com/go/dataform v0.4.0/go.mod h1:fwV6Y4Ty2yIFL89huYlEkwUPtS7YZinZbzzj5S9FzCE= +cloud.google.com/go/datalabeling v0.5.0/go.mod h1:TGcJ0G2NzcsXSE/97yWjIZO0bXj0KbVlINXMG9ud42I= +cloud.google.com/go/datalabeling v0.6.0/go.mod h1:WqdISuk/+WIGeMkpw/1q7bK/tFEZxsrFJOJdY2bXvTQ= +cloud.google.com/go/dataqna v0.5.0/go.mod h1:90Hyk596ft3zUQ8NkFfvICSIfHFh1Bc7C4cK3vbhkeo= +cloud.google.com/go/dataqna v0.6.0/go.mod h1:1lqNpM7rqNLVgWBJyk5NF6Uen2PHym0jtVJonplVsDA= +cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= +cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk= +cloud.google.com/go/datastream v1.2.0/go.mod h1:i/uTP8/fZwgATHS/XFu0TcNUhuA0twZxxQ3EyCUQMwo= +cloud.google.com/go/datastream v1.3.0/go.mod h1:cqlOX8xlyYF/uxhiKn6Hbv6WjwPPuI9W2M9SAXwaLLQ= +cloud.google.com/go/dialogflow v1.15.0/go.mod h1:HbHDWs33WOGJgn6rfzBW1Kv807BE3O1+xGbn59zZWI4= +cloud.google.com/go/dialogflow v1.16.1/go.mod h1:po6LlzGfK+smoSmTBnbkIZY2w8ffjz/RcGSS+sh1el0= +cloud.google.com/go/dialogflow v1.17.0/go.mod h1:YNP09C/kXA1aZdBgC/VtXX74G/TKn7XVCcVumTflA+8= +cloud.google.com/go/documentai v1.7.0/go.mod h1:lJvftZB5NRiFSX4moiye1SMxHx0Bc3x1+p9e/RfXYiU= +cloud.google.com/go/documentai v1.8.0/go.mod h1:xGHNEB7CtsnySCNrCFdCyyMz44RhFEEX2Q7UD0c5IhU= +cloud.google.com/go/domains v0.6.0/go.mod h1:T9Rz3GasrpYk6mEGHh4rymIhjlnIuB4ofT1wTxDeT4Y= +cloud.google.com/go/domains v0.7.0/go.mod h1:PtZeqS1xjnXuRPKE/88Iru/LdfoRyEHYA9nFQf4UKpg= +cloud.google.com/go/edgecontainer v0.1.0/go.mod h1:WgkZ9tp10bFxqO8BLPqv2LlfmQF1X8lZqwW4r1BTajk= +cloud.google.com/go/edgecontainer v0.2.0/go.mod h1:RTmLijy+lGpQ7BXuTDa4C4ssxyXT34NIuHIgKuP4s5w= +cloud.google.com/go/functions v1.6.0/go.mod h1:3H1UA3qiIPRWD7PeZKLvHZ9SaQhR26XIJcC0A5GbvAk= +cloud.google.com/go/functions v1.7.0/go.mod h1:+d+QBcWM+RsrgZfV9xo6KfA1GlzJfxcfZcRPEhDDfzg= +cloud.google.com/go/gaming v1.5.0/go.mod h1:ol7rGcxP/qHTRQE/RO4bxkXq+Fix0j6D4LFPzYTIrDM= +cloud.google.com/go/gaming v1.6.0/go.mod h1:YMU1GEvA39Qt3zWGyAVA9bpYz/yAhTvaQ1t2sK4KPUA= +cloud.google.com/go/gkeconnect v0.5.0/go.mod h1:c5lsNAg5EwAy7fkqX/+goqFsU1Da/jQFqArp+wGNr/o= +cloud.google.com/go/gkeconnect v0.6.0/go.mod h1:Mln67KyU/sHJEBY8kFZ0xTeyPtzbq9StAVvEULYK16A= +cloud.google.com/go/gkehub v0.9.0/go.mod h1:WYHN6WG8w9bXU0hqNxt8rm5uxnk8IH+lPY9J2TV7BK0= +cloud.google.com/go/gkehub v0.10.0/go.mod h1:UIPwxI0DsrpsVoWpLB0stwKCP+WFVG9+y977wO+hBH0= +cloud.google.com/go/grafeas v0.2.0/go.mod h1:KhxgtF2hb0P191HlY5besjYm6MqTSTj3LSI+M+ByZHc= +cloud.google.com/go/iam v0.3.0/go.mod h1:XzJPvDayI+9zsASAFO68Hk07u3z+f+JrT2xXNdp4bnY= +cloud.google.com/go/iam v0.5.0/go.mod h1:wPU9Vt0P4UmCux7mqtRu6jcpPAb74cP1fh50J3QpkUc= +cloud.google.com/go/iam v1.1.5 h1:1jTsCu4bcsNsE4iiqNT5SHwrDRCfRmIaaaVFhRveTJI= +cloud.google.com/go/iam v1.1.5/go.mod h1:rB6P/Ic3mykPbFio+vo7403drjlgvoWfYpJhMXEbzv8= +cloud.google.com/go/language v1.4.0/go.mod h1:F9dRpNFQmJbkaop6g0JhSBXCNlO90e1KWx5iDdxbWic= +cloud.google.com/go/language v1.6.0/go.mod h1:6dJ8t3B+lUYfStgls25GusK04NLh3eDLQnWM3mdEbhI= +cloud.google.com/go/lifesciences v0.5.0/go.mod h1:3oIKy8ycWGPUyZDR/8RNnTOYevhaMLqh5vLUXs9zvT8= +cloud.google.com/go/lifesciences v0.6.0/go.mod h1:ddj6tSX/7BOnhxCSd3ZcETvtNr8NZ6t/iPhY2Tyfu08= +cloud.google.com/go/mediatranslation v0.5.0/go.mod h1:jGPUhGTybqsPQn91pNXw0xVHfuJ3leR1wj37oU3y1f4= +cloud.google.com/go/mediatranslation v0.6.0/go.mod h1:hHdBCTYNigsBxshbznuIMFNe5QXEowAuNmmC7h8pu5w= +cloud.google.com/go/memcache v1.4.0/go.mod h1:rTOfiGZtJX1AaFUrOgsMHX5kAzaTQ8azHiuDoTPzNsE= +cloud.google.com/go/memcache v1.5.0/go.mod h1:dk3fCK7dVo0cUU2c36jKb4VqKPS22BTkf81Xq617aWM= +cloud.google.com/go/metastore v1.5.0/go.mod h1:2ZNrDcQwghfdtCwJ33nM0+GrBGlVuh8rakL3vdPY3XY= +cloud.google.com/go/metastore v1.6.0/go.mod h1:6cyQTls8CWXzk45G55x57DVQ9gWg7RiH65+YgPsNh9s= +cloud.google.com/go/networkconnectivity v1.4.0/go.mod h1:nOl7YL8odKyAOtzNX73/M5/mGZgqqMeryi6UPZTk/rA= +cloud.google.com/go/networkconnectivity v1.5.0/go.mod h1:3GzqJx7uhtlM3kln0+x5wyFvuVH1pIBJjhCpjzSt75o= +cloud.google.com/go/networksecurity v0.5.0/go.mod h1:xS6fOCoqpVC5zx15Z/MqkfDwH4+m/61A3ODiDV1xmiQ= +cloud.google.com/go/networksecurity v0.6.0/go.mod h1:Q5fjhTr9WMI5mbpRYEbiexTzROf7ZbDzvzCrNl14nyU= +cloud.google.com/go/notebooks v1.2.0/go.mod h1:9+wtppMfVPUeJ8fIWPOq1UnATHISkGXGqTkxeieQ6UY= +cloud.google.com/go/notebooks v1.3.0/go.mod h1:bFR5lj07DtCPC7YAAJ//vHskFBxA5JzYlH68kXVdk34= +cloud.google.com/go/osconfig v1.7.0/go.mod h1:oVHeCeZELfJP7XLxcBGTMBvRO+1nQ5tFG9VQTmYS2Fs= +cloud.google.com/go/osconfig v1.8.0/go.mod h1:EQqZLu5w5XA7eKizepumcvWx+m8mJUhEwiPqWiZeEdg= +cloud.google.com/go/oslogin v1.4.0/go.mod h1:YdgMXWRaElXz/lDk1Na6Fh5orF7gvmJ0FGLIs9LId4E= +cloud.google.com/go/oslogin v1.5.0/go.mod h1:D260Qj11W2qx/HVF29zBg+0fd6YCSjSqLUkY/qEenQU= +cloud.google.com/go/phishingprotection v0.5.0/go.mod h1:Y3HZknsK9bc9dMi+oE8Bim0lczMU6hrX0UpADuMefr0= +cloud.google.com/go/phishingprotection v0.6.0/go.mod h1:9Y3LBLgy0kDTcYET8ZH3bq/7qni15yVUoAxiFxnlSUA= +cloud.google.com/go/privatecatalog v0.5.0/go.mod h1:XgosMUvvPyxDjAVNDYxJ7wBW8//hLDDYmnsNcMGq1K0= +cloud.google.com/go/privatecatalog v0.6.0/go.mod h1:i/fbkZR0hLN29eEWiiwue8Pb+GforiEIBnV9yrRUOKI= +cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= +cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw= +cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA= +cloud.google.com/go/pubsub v1.3.1/go.mod h1:i+ucay31+CNRpDW4Lu78I4xXG+O1r/MAHgjpRVR+TSU= +cloud.google.com/go/recaptchaenterprise v1.3.1/go.mod h1:OdD+q+y4XGeAlxRaMn1Y7/GveP6zmq76byL6tjPE7d4= +cloud.google.com/go/recaptchaenterprise/v2 v2.1.0/go.mod h1:w9yVqajwroDNTfGuhmOjPDN//rZGySaf6PtFVcSCa7o= +cloud.google.com/go/recaptchaenterprise/v2 v2.2.0/go.mod h1:/Zu5jisWGeERrd5HnlS3EUGb/D335f9k51B/FVil0jk= +cloud.google.com/go/recaptchaenterprise/v2 v2.3.0/go.mod h1:O9LwGCjrhGHBQET5CA7dd5NwwNQUErSgEDit1DLNTdo= +cloud.google.com/go/recommendationengine v0.5.0/go.mod h1:E5756pJcVFeVgaQv3WNpImkFP8a+RptV6dDLGPILjvg= +cloud.google.com/go/recommendationengine v0.6.0/go.mod h1:08mq2umu9oIqc7tDy8sx+MNJdLG0fUi3vaSVbztHgJ4= +cloud.google.com/go/recommender v1.5.0/go.mod h1:jdoeiBIVrJe9gQjwd759ecLJbxCDED4A6p+mqoqDvTg= +cloud.google.com/go/recommender v1.6.0/go.mod h1:+yETpm25mcoiECKh9DEScGzIRyDKpZ0cEhWGo+8bo+c= +cloud.google.com/go/redis v1.7.0/go.mod h1:V3x5Jq1jzUcg+UNsRvdmsfuFnit1cfe3Z/PGyq/lm4Y= +cloud.google.com/go/redis v1.8.0/go.mod h1:Fm2szCDavWzBk2cDKxrkmWBqoCiL1+Ctwq7EyqBCA/A= +cloud.google.com/go/retail v1.8.0/go.mod h1:QblKS8waDmNUhghY2TI9O3JLlFk8jybHeV4BF19FrE4= +cloud.google.com/go/retail v1.9.0/go.mod h1:g6jb6mKuCS1QKnH/dpu7isX253absFl6iE92nHwlBUY= +cloud.google.com/go/scheduler v1.4.0/go.mod h1:drcJBmxF3aqZJRhmkHQ9b3uSSpQoltBPGPxGAWROx6s= +cloud.google.com/go/scheduler v1.5.0/go.mod h1:ri073ym49NW3AfT6DZi21vLZrG07GXr5p3H1KxN5QlI= +cloud.google.com/go/secretmanager v1.6.0/go.mod h1:awVa/OXF6IiyaU1wQ34inzQNc4ISIDIrId8qE5QGgKA= +cloud.google.com/go/security v1.5.0/go.mod h1:lgxGdyOKKjHL4YG3/YwIL2zLqMFCKs0UbQwgyZmfJl4= +cloud.google.com/go/security v1.7.0/go.mod h1:mZklORHl6Bg7CNnnjLH//0UlAlaXqiG7Lb9PsPXLfD0= +cloud.google.com/go/security v1.8.0/go.mod h1:hAQOwgmaHhztFhiQ41CjDODdWP0+AE1B3sX4OFlq+GU= +cloud.google.com/go/securitycenter v1.13.0/go.mod h1:cv5qNAqjY84FCN6Y9z28WlkKXyWsgLO832YiWwkCWcU= +cloud.google.com/go/securitycenter v1.14.0/go.mod h1:gZLAhtyKv85n52XYWt6RmeBdydyxfPeTrpToDPw4Auc= +cloud.google.com/go/servicedirectory v1.4.0/go.mod h1:gH1MUaZCgtP7qQiI+F+A+OpeKF/HQWgtAddhTbhL2bs= +cloud.google.com/go/servicedirectory v1.5.0/go.mod h1:QMKFL0NUySbpZJ1UZs3oFAmdvVxhhxB6eJ/Vlp73dfg= +cloud.google.com/go/speech v1.6.0/go.mod h1:79tcr4FHCimOp56lwC01xnt/WPJZc4v3gzyT7FoBkCM= +cloud.google.com/go/speech v1.7.0/go.mod h1:KptqL+BAQIhMsj1kOP2la5DSEEerPDuOP/2mmkhHhZQ= +cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= +cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos= +cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= +cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs= +cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0= +cloud.google.com/go/storage v1.14.0/go.mod h1:GrKmX003DSIwi9o29oFT7YDnHYwZoctc3fOKtUw0Xmo= +cloud.google.com/go/storage v1.22.1/go.mod h1:S8N1cAStu7BOeFfE8KAQzmyyLkK8p/vmRq6kuBTW58Y= +cloud.google.com/go/storage v1.23.0/go.mod h1:vOEEDNFnciUMhBeT6hsJIn3ieU5cFRmzeLgDvXzfIXc= +cloud.google.com/go/storage v1.27.0/go.mod h1:x9DOL8TK/ygDUMieqwfhdpQryTeEkhGKMi80i/iqR2s= +cloud.google.com/go/storage v1.30.1 h1:uOdMxAs8HExqBlnLtnQyP0YkvbiDpdGShGKtx6U/oNM= +cloud.google.com/go/storage v1.30.1/go.mod h1:NfxhC0UJE1aXSx7CIIbCf7y9HKT7BiccwkR7+P7gN8E= +cloud.google.com/go/talent v1.1.0/go.mod h1:Vl4pt9jiHKvOgF9KoZo6Kob9oV4lwd/ZD5Cto54zDRw= +cloud.google.com/go/talent v1.2.0/go.mod h1:MoNF9bhFQbiJ6eFD3uSsg0uBALw4n4gaCaEjBw9zo8g= +cloud.google.com/go/videointelligence v1.6.0/go.mod h1:w0DIDlVRKtwPCn/C4iwZIJdvC69yInhW0cfi+p546uU= +cloud.google.com/go/videointelligence v1.7.0/go.mod h1:k8pI/1wAhjznARtVT9U1llUaFNPh7muw8QyOUpavru4= +cloud.google.com/go/vision v1.2.0/go.mod h1:SmNwgObm5DpFBme2xpyOyasvBc1aPdjvMk2bBk0tKD0= +cloud.google.com/go/vision/v2 v2.2.0/go.mod h1:uCdV4PpN1S0jyCyq8sIM42v2Y6zOLkZs+4R9LrGYwFo= +cloud.google.com/go/vision/v2 v2.3.0/go.mod h1:UO61abBx9QRMFkNBbf1D8B1LXdS2cGiiCRx0vSpZoUo= +cloud.google.com/go/webrisk v1.4.0/go.mod h1:Hn8X6Zr+ziE2aNd8SliSDWpEnSS1u4R9+xXZmFiHmGE= +cloud.google.com/go/webrisk v1.5.0/go.mod h1:iPG6fr52Tv7sGk0H6qUFzmL3HHZev1htXuWDEEsqMTg= +cloud.google.com/go/workflows v1.6.0/go.mod h1:6t9F5h/unJz41YqfBmqSASJSXccBLtD1Vwf+KmJENM0= +cloud.google.com/go/workflows v1.7.0/go.mod h1:JhSrZuVZWuiDfKEFxU0/F1PQjmpnpcoISEXH2bcHC3M= +cosmossdk.io/api v0.7.2 h1:BO3i5fvKMKvfaUiMkCznxViuBEfyWA/k6w2eAF6q1C4= +cosmossdk.io/api v0.7.2/go.mod h1:IcxpYS5fMemZGqyYtErK7OqvdM0C8kdW3dq8Q/XIG38= +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.0 h1:vtIafqUi+1ZNAE/oxLOQQ7Oek2n4S48SWLG8h/+wdbo= +cosmossdk.io/core v0.11.0/go.mod h1:LaTtayWBSoacF5xNzoF8tmLhehqlA9z1SWiPuNC6X1w= +cosmossdk.io/depinject v1.0.0-alpha.4 h1:PLNp8ZYAMPTUKyG9IK2hsbciDWqna2z1Wsl98okJopc= +cosmossdk.io/depinject v1.0.0-alpha.4/go.mod h1:HeDk7IkR5ckZ3lMGs/o91AVUc7E596vMaOmslGFM3yU= +cosmossdk.io/errors v1.0.1 h1:bzu+Kcr0kS/1DuPBtUFdWjzLqyUuCiyHjyJB6srBV/0= +cosmossdk.io/errors v1.0.1/go.mod h1:MeelVSZThMi4bEakzhhhE/CKqVv3nOJDA25bIqRDu/U= +cosmossdk.io/log v1.3.0 h1:L0Z0XstClo2kOU4h3V1iDoE5Ji64sg5HLOogzGg67Oo= +cosmossdk.io/log v1.3.0/go.mod h1:HIDyvWLqZe2ovlWabsDN4aPMpY/nUEquAhgfTf2ZzB8= +cosmossdk.io/math v1.2.0 h1:8gudhTkkD3NxOP2YyyJIYYmt6dQ55ZfJkDOaxXpy7Ig= +cosmossdk.io/math v1.2.0/go.mod h1:l2Gnda87F0su8a/7FEKJfFdJrM0JZRXQaohlgJeyQh0= +cosmossdk.io/store v1.0.2 h1:lSg5BTvJBHUDwswNNyeh4K/CbqiHER73VU4nDNb8uk0= +cosmossdk.io/store v1.0.2/go.mod h1:EFtENTqVTuWwitGW1VwaBct+yDagk7oG/axBMPH+FXs= +cosmossdk.io/x/circuit v0.0.0-20230925151519-64e0e8980834 h1:4HYvdHKJA4CUf86lql7a70/pVUtDRmN3f44P1hJ4ZSE= +cosmossdk.io/x/circuit v0.0.0-20230925151519-64e0e8980834/go.mod h1:atLqPO4esHD8/5VSQYm3tem3u6Ul2Nhv+neBBDsE+zI= +cosmossdk.io/x/evidence v0.0.0-20230925151519-64e0e8980834 h1:h4ooSV3X5BxEfl3EUbOlXNFMnEc/mXTXF5mdl17CQLg= +cosmossdk.io/x/evidence v0.0.0-20230925151519-64e0e8980834/go.mod h1:yUgv71a56ZEJu7c8BXWCliDrQ7Ag+FCZ//rYKw9S93U= +cosmossdk.io/x/feegrant v0.0.0-20230925151519-64e0e8980834 h1:hILr/Ve3CKlWwMC3oHFb1er9xWzxbx1UEZytTuGeI8o= +cosmossdk.io/x/feegrant v0.0.0-20230925151519-64e0e8980834/go.mod h1:C5DALk9amuP9nd/xCgaQxbn43q695zQ/tXH8b9ugzAs= +cosmossdk.io/x/nft v0.0.0-20230925151519-64e0e8980834 h1:i+qcapUPVo5a9Q09/mUm1jMouyuWf67+fORAaNMPeTQ= +cosmossdk.io/x/nft v0.0.0-20230925151519-64e0e8980834/go.mod h1:Q60Uu6/UsZlACzmGzSkGLSc/U8I6tbEusbqjTE40pvk= +cosmossdk.io/x/tx v0.13.0 h1:8lzyOh3zONPpZv2uTcUmsv0WTXy6T1/aCVDCqShmpzU= +cosmossdk.io/x/tx v0.13.0/go.mod h1:CpNQtmoqbXa33/DVxWQNx5Dcnbkv2xGUhL7tYQ5wUsY= +cosmossdk.io/x/upgrade v0.0.0-20230925151519-64e0e8980834 h1:M/yPP4g31SSgYEku5d5Xk+UGkjp47RKXFk1bYGnWJdY= +cosmossdk.io/x/upgrade v0.0.0-20230925151519-64e0e8980834/go.mod h1:+5jCm6Lk/CrQhQvtJFy/tmuLfhQKNMn/U0vwrRz/dxQ= +dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= +filippo.io/edwards25519 v1.0.0 h1:0wAIcmJUqRdI8IJ/3eGi5/HwXZWPujYXXlkrQogz0Ek= +filippo.io/edwards25519 v1.0.0/go.mod h1:N1IkdkCkiLB6tki+MYJoSx2JTY9NUlxZE7eHn5EwJns= +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/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161 h1:L/gRVlceqvL25UVaW/CKtUDjefjrs0SPonmDGUVOYP0= +github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161/go.mod h1:xomTg63KZ2rFqZQzSB4Vz2SUXa1BpHTVz9L5PTmPC4E= +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/Microsoft/go-winio v0.6.0 h1:slsWYD/zyx7lCXoZVlvQrj0hPTM1HI4+v1sIda2yDvg= +github.com/Microsoft/go-winio v0.6.0/go.mod h1:cTAf44im0RAYeL23bpB+fzCyDH2MJiz2BO69KH/soAE= +github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5 h1:TngWCqHvy9oXAN6lEVMRuU21PR1EtLVZJmdB18Gu3Rw= +github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5/go.mod h1:lmUJ/7eu/Q8D7ML55dXQrVaamCz2vxCfdQBasLZfHKk= +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/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/adlio/schema v1.3.3 h1:oBJn8I02PyTB466pZO1UZEn1TV5XLlifBSyMrmHl/1I= +github.com/adlio/schema v1.3.3/go.mod h1:1EsRssiv9/Ce2CMzq5DoL7RiMshhuigQxrR4DMV9fHg= +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/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.122/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4oIKwKHZo= +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/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.8.0 h1:FD+XqgOZDUxxZ8hzoBFuV9+cGWY9CslN6d5MS5JVb4c= +github.com/bits-and-blooms/bitset v1.8.0/go.mod h1:7hO7Gc7Pp1vODcmWvKMRA9BNmbv6a/7QIWpPxHddWR8= +github.com/btcsuite/btcd/btcec/v2 v2.3.2 h1:5n0X6hX0Zk+6omWcihdYvdAlGf2DfasC0GMf7DClJ3U= +github.com/btcsuite/btcd/btcec/v2 v2.3.2/go.mod h1:zYzJ8etWJQIv1Ogk7OzpWjowwOdXY1W/17j2MW85J04= +github.com/btcsuite/btcd/btcutil v1.1.3 h1:xfbtw8lwpp0G6NwSHb+UE67ryTFHJAiNuipusjXSohQ= +github.com/btcsuite/btcd/btcutil v1.1.3/go.mod h1:UR7dsSJzJUfMmFiiLlIrMq1lS9jh9EdCV7FStZSnpi0= +github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1 h1:q0rUy8C/TYNBQS1+CGKw68tLOFYSNEs0TFnxxnS9+4U= +github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1/go.mod h1:7SFka0XMvUgj3hfZtydOrQY2mwhPclbT2snogU7SQQc= +github.com/bufbuild/protocompile v0.6.0 h1:Uu7WiSQ6Yj9DbkdnOe7U4mNKp58y9WDMKDn28/ZlunY= +github.com/bufbuild/protocompile v0.6.0/go.mod h1:YNP35qEYoYGme7QMtz5SBCoN4kL4g12jTtjuzRNdjpE= +github.com/bytedance/sonic v1.5.0/go.mod h1:ED5hyg4y6t3/9Ku1R6dU/4KyJ48DZ4jPhfY1O2AihPM= +github.com/bytedance/sonic v1.9.1 h1:6iJ6NqdoxCDr6mbY8h18oSO+cShGSMRGCEo7F2h0x8s= +github.com/bytedance/sonic v1.9.1/go.mod h1:i736AoUSYt75HyZLoJW9ERYxcy6eaN6h4BZXU064P/U= +github.com/casbin/casbin/v2 v2.1.2/go.mod h1:YcPU1XXisHhLzuxH9coDNf2FbKpjGlbCg3n9yuLkIJQ= +github.com/cenkalti/backoff v2.2.1+incompatible h1:tNowT99t7UNflLxfYYSlKYsBpXdEet03Pg2g16Swow4= +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/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= +github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko= +github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= +github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= +github.com/cespare/xxhash/v2 v2.2.0 h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44= +github.com/cespare/xxhash/v2 v2.2.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= +github.com/cheggaaa/pb v1.0.27/go.mod h1:pQciLPpbU0oxA0h+VJYYLxO+XeDQb5pZijXscXHm81s= +github.com/chenzhuoyu/base64x v0.0.0-20211019084208-fb5309c8db06/go.mod h1:DH46F32mSOjUmXrMHnKwZdA8wcEefY7UVqBKYGjpdQY= +github.com/chenzhuoyu/base64x v0.0.0-20221115062448-fe3a3abad311 h1:qSGYFH7+jGhDF8vLC+iwCD4WpbV1EBDSzWkJODFLams= +github.com/chenzhuoyu/base64x v0.0.0-20221115062448-fe3a3abad311/go.mod h1:b583jCggY9gE99b6G5LEC39OIiVsWj+R97kbl5odCEk= +github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= +github.com/chzyer/logex v1.2.1 h1:XHDu3E6q+gdHgsdTPH6ImJMIp436vR6MPtH8gP05QzM= +github.com/chzyer/logex v1.2.1/go.mod h1:JLbx6lG2kDbNRFnfkgvh4eRJRPX1QCoOIWomwysCBrQ= +github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= +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/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= +github.com/chzyer/test v1.0.0 h1:p3BQDXSxOhOG0P9z6/hGnII4LGiEPOYBhs8asl/fC04= +github.com/chzyer/test v1.0.0/go.mod h1:2JlltgoNkt4TW/z9V/IzDdFaMTM2JPIi26O1pF38GC8= +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-20200629203442-efcf912fb354/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= +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-20210312221358-fbca930ec8ed/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= +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.1 h1:xSEW75zKaKCWzR3OfxXUxgrk/NtT4G1MiOv5lWZazG8= +github.com/cockroachdb/errors v1.11.1/go.mod h1:8MUxA3Gi6b25tYlFEBGLf+D8aISL+M4MIpiWMSNRfxw= +github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b h1:r6VH0faHjZeQy818SGhaone5OnYfxFR/+AzdY3sf5aE= +github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b/go.mod h1:Vz9DsVWQQhf3vs21MhPMZpMGSht7O/2vFW2xusFUVOs= +github.com/cockroachdb/pebble v0.0.0-20231101195458-481da04154d6 h1:g+Y6IAf28JinY3zNdXwpw71SBGhLEb72kGQgiR5XKZM= +github.com/cockroachdb/pebble v0.0.0-20231101195458-481da04154d6/go.mod h1:acMRUGd/BK8AUmQNK3spUCCGzFLZU2bSST3NMXSq2Kc= +github.com/cockroachdb/redact v1.1.5 h1:u1PMllDkdFfPWaNGMyLD1+so+aq3uUItthCFqzwPJ30= +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.2 h1:io0JCh5EPxINKN5ZMI5hCdpW3QVZRy+o8qWe3mlJa/8= +github.com/cometbft/cometbft v0.38.2/go.mod h1:PIi48BpzwlHqtV3mzwPyQgOyOnU94BNBimLS2ebBHOg= +github.com/cometbft/cometbft-db v0.9.1 h1:MIhVX5ja5bXNHF8EYrThkG9F7r9kSfv8BX4LWaxWJ4M= +github.com/cometbft/cometbft-db v0.9.1/go.mod h1:iliyWaoV0mRwBJoizElCwwRA9Tf7jZJOURcRZF9m60U= +github.com/containerd/continuity v0.3.0 h1:nisirsYROK15TAMVukJOUyGJjz4BNQJBVsNvAXZJ/eg= +github.com/containerd/continuity v0.3.0/go.mod h1:wJEAIwKOm/pBZuBd0JmeTvnLquTB1Ag8espWhkykbPM= +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.0.0 h1:EVcQZ+qYag7W6uorBKFPvX6gRjw6Uq2hIh4hCWjuQ0E= +github.com/cosmos/cosmos-db v1.0.0/go.mod h1:iBvi1TtqaedwLdcrZVYRSSCb6eSy61NLj4UNmdIgs0U= +github.com/cosmos/cosmos-proto v1.0.0-beta.3 h1:VitvZ1lPORTVxkmF2fAp3IiA61xVwArQYKXTdEcpW6o= +github.com/cosmos/cosmos-proto v1.0.0-beta.3/go.mod h1:t8IASdLaAq+bbHbjq4p960BvcTqtwuAxid3b/2rOD6I= +github.com/cosmos/cosmos-sdk v0.50.3 h1:zP0AXm54ws2t2qVWvcQhEYVafhOAREU2QL0gnbwjvXw= +github.com/cosmos/cosmos-sdk v0.50.3/go.mod h1:tlrkY1sntOt1q0OX/rqF0zRJtmXNoffAS6VFTcky+w8= +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.4.11 h1:LZcMHrx4FjUgrqQSWeaGC1v/TeuVFqSLa43CC6aWR2g= +github.com/cosmos/gogoproto v1.4.11/go.mod h1:/g39Mh8m17X8Q/GDEs5zYTSNaNnInBSohtaxzQnYq1Y= +github.com/cosmos/iavl v1.0.0 h1:bw6t0Mv/mVCJvlMTOPHWLs5uUE3BRBfVWCRelOzl+so= +github.com/cosmos/iavl v1.0.0/go.mod h1:CmTGqMnRnucjxbjduneZXT+0vPgNElYvdefjX2q9tYc= +github.com/cosmos/ics23/go v0.10.0 h1:iXqLLgp2Lp+EdpIuwXTYIQU+AiHj9mOC2X9ab++bZDM= +github.com/cosmos/ics23/go v0.10.0/go.mod h1:ZfJSmng/TBNTBkFemHHHj5YY7VAU/MBU980F4VU1NG0= +github.com/cosmos/keyring v1.2.0 h1:8C1lBP9xhImmIabyXW4c3vFjjLiBdGCmfLUfeZlV1Yo= +github.com/cosmos/keyring v1.2.0/go.mod h1:fc+wB5KTk9wQ9sDx0kFXB3A0MaeGHM9AwRStKOQ5vOA= +github.com/cosmos/ledger-cosmos-go v0.13.3 h1:7ehuBGuyIytsXbd4MP43mLeoN2LTOEnk5nvue4rK+yM= +github.com/cosmos/ledger-cosmos-go v0.13.3/go.mod h1:HENcEP+VtahZFw38HZ3+LS3Iv5XV6svsnkk9vdJtLr8= +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.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= +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= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/decred/dcrd/crypto/blake256 v1.0.1 h1:7PltbUIQB7u/FfZ39+DGa/ShuMyJ5ilcvdfma9wOH6Y= +github.com/decred/dcrd/crypto/blake256 v1.0.1/go.mod h1:2OfgNZ5wDpcsFmHmCK5gZTPcCXqlm2ArzUIkw9czNJo= +github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 h1:8UrgZ3GkP4i/CLijOJx79Yu+etlyjdBU4sfcs2WYQMs= +github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0/go.mod h1:v57UDF4pDQJcEfFUCRop3lJL149eHGSe9Jvczhzjo/0= +github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f h1:U5y3Y5UE0w7amNe7Z5G/twsBW0KEalRQXZzf8ufSh9I= +github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f/go.mod h1:xH/i4TFMt8koVQZ6WFms69WAsDWr2XsYL3Hkl7jkoLE= +github.com/dgraph-io/badger/v2 v2.2007.4 h1:TRWBQg8UrlUhaFdco01nO2uXwzKS7zd+HVdwV/GHc4o= +github.com/dgraph-io/badger/v2 v2.2007.4/go.mod h1:vSw/ax2qojzbN6eXHIx6KPKtCSHJN/Uz0X0VPruTIhk= +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/docker/go-connections v0.4.0 h1:El9xVISelRB7BuFusrZozjnkIM5YnzCViNKohAFqRJQ= +github.com/docker/go-connections v0.4.0/go.mod h1:Gbd7IOopHjR8Iph03tsViu4nIes5XhDvyHbTtUxmeec= +github.com/docker/go-units v0.5.0 h1:69rxXcBk27SvSaaxTtLh/8llcHD8vYHT7WSdRZ/jvr4= +github.com/docker/go-units v0.5.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= +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.5.0 h1:3j8ya4Z4kMCwT5nXIKFSV84YS+HdqSSO0VsTQxaLAeM= +github.com/dvsekhvalnov/jose2go v1.5.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.0 h1:vUzuoVE8ipzS7QkES4UfxdpCwdU2U97m2Pb2tQCoYRY= +github.com/emicklei/dot v1.6.0/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.7/go.mod h1:cwu0lG7PUMfa9snN8LXBig5ynNVH9qI8YYLbd1fK2po= +github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= +github.com/envoyproxy/go-control-plane v0.9.9-0.20210217033140-668b12f5399d/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= +github.com/envoyproxy/go-control-plane v0.9.9-0.20210512163311-63b5d3c536b0/go.mod h1:hliV/p42l8fGbc6Y9bQ70uLwIvmJyVE5k4iMKlh8wCQ= +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/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.15.0 h1:kOqh6YHBtK8aywxGerMG2Eq3H6Qgoqeo13Bk2Mv/nBs= +github.com/fatih/color v1.15.0/go.mod h1:0h5ZqXfHYED7Bhv2ZJamyIOUej9KtShiJESRwBDUSsw= +github.com/felixge/httpsnoop v1.0.1/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= +github.com/felixge/httpsnoop v1.0.2 h1:+nS9g82KMXccJ/wp0zyRW9ZBHFETmMGtkk+2CTTrW4o= +github.com/felixge/httpsnoop v1.0.2/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.4 h1:g2rn0vABPOOXmZUj+vbmUp0lPoXEMuhTpIluN0XL9UY= +github.com/frankban/quicktest v1.14.4/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0= +github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= +github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= +github.com/fsnotify/fsnotify v1.6.0 h1:n+5WquG0fcWoWp6xPWfHdbskMCQaFnG6PfBrh1Ky4HY= +github.com/fsnotify/fsnotify v1.6.0/go.mod h1:sl3t1tCWJFWoRz9R8WJCbQihKKwmorjAbSClcnxKAGw= +github.com/gabriel-vasile/mimetype v1.4.2 h1:w5qFW6JKBz9Y393Y4q372O9A7cUSequkh1Q7OhCmWKU= +github.com/gabriel-vasile/mimetype v1.4.2/go.mod h1:zApsH/mKG4w07erKIaJPFiX0Tsq9BFQgN3qGY5GnNgA= +github.com/getsentry/sentry-go v0.25.0 h1:q6Eo+hS+yoJlTO3uu/azhQadsD8V+jQn2D8VvX1eOyI= +github.com/getsentry/sentry-go v0.25.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.9.1 h1:4idEAncQnU5cB7BeOkPtxjfCSye0AAm1R0RVIqJ+Jmg= +github.com/gin-gonic/gin v1.9.1/go.mod h1:hPrL7YrpYKXt5YId3A/Tnip5kqbEAP+KLuI3SUcPTeU= +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 v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= +github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= +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-playground/assert/v2 v2.2.0/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4= +github.com/go-playground/locales v0.14.1 h1:EWaQ/wswjilfKLTECiXz7Rh+3BjFhfDFKv/oXslEjJA= +github.com/go-playground/locales v0.14.1/go.mod h1:hxrqLVvrK65+Rwrd5Fc6F2O76J/NuW9t0sjnWqG1slY= +github.com/go-playground/universal-translator v0.18.1 h1:Bcnm0ZwsGyWbCzImXv+pAJnYK9S473LQFuzCbDbfSFY= +github.com/go-playground/universal-translator v0.18.1/go.mod h1:xekY+UJKNuX9WP91TpwSH2VMlDf28Uj24BCp08ZFTUY= +github.com/go-playground/validator/v10 v10.14.0 h1:vgvQWe3XCz3gIeFDm/HnTIbj6UGmg/+t63MyGU2n5js= +github.com/go-playground/validator/v10 v10.14.0/go.mod h1:9iXMNT7sEkjXb0I+enO7QXmzG6QCsPWY4zveKFVRSyU= +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/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/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/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= +github.com/golang/glog v1.2.0 h1:uCdmnmatrKCgMBlM4rMuJZWOkPDqdbZPnrMXDY4gI68= +github.com/golang/glog v1.2.0/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-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/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.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= +github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y= +github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= +github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= +github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= +github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4= +github.com/golang/mock v1.5.0/go.mod h1:CWnOUgYIOo4TcNZ0wHX3YZCqsaM1I1Jvs6v3mP3KVu8= +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= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.0/go.mod h1:Qd/q+1AKNOZr9uGQzbzCmRO6sUih6GTPZv6a1/R87v0= +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.4/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.1/go.mod h1:DopwsBzvsk0Fs44TXzsVbJyPhcCPeIwnvohx4u74HPM= +github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= +github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= +github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= +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 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM= +github.com/golang/snappy v0.0.4/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.2 h1:xf4v41cLI2Z6FxbKm+8Bu+m8ifhj15JuZ9sa0jZCMUU= +github.com/google/btree v1.1.2/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.4.1/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.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.3/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.4/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.7/go.mod h1:n+brtR0CgQNWTVd5ZUFpTBC8YFBDLK/h/bpaJ8/DtOE= +github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +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= +github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf/go.mod h1:HP5RmnzzSNb993RKQDq4+1A4ia9nllfqcQFTQJedwGI= +github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= +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/martian v2.1.0+incompatible h1:/CP5g8u/VJHijgedC/Legn3BAbAaWPgecwXBIDzw5no= +github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= +github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= +github.com/google/martian/v3 v3.1.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= +github.com/google/martian/v3 v3.2.1/go.mod h1:oBOf6HBosgwRXnUGWUB05QECsc6uvmMiJ3+6W4l/CUk= +github.com/google/martian/v3 v3.3.2 h1:IqNFLAmvJOgVlpdEBiQbDc2EwKW77amAycfTuWKdfvw= +github.com/google/martian/v3 v3.3.2/go.mod h1:oBOf6HBosgwRXnUGWUB05QECsc6uvmMiJ3+6W4l/CUk= +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/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= +github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= +github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200212024743-f11f1df84d12/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200229191704-1ebb73c60ed3/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200430221834-fc25d7d30c6d/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20201023163331-3e6fc7fc9c4c/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20201203190320-1bf35d6f28c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20201218002935-b9804c9f04c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20210122040257-d980be63207e/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20210226084205-cbba55b83ad5/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20210601050228-01bbb1931b22/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +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/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.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.4.0 h1:MtMxsa51/r9yyhkyLsVeVt0B+BGQZzpQiTQ4eHZ8bc4= +github.com/google/uuid v1.4.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/googleapis/enterprise-certificate-proxy v0.0.0-20220520183353-fd19c99a87aa/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= +github.com/googleapis/enterprise-certificate-proxy v0.1.0/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= +github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +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.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= +github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= +github.com/googleapis/gax-go/v2 v2.1.0/go.mod h1:Q3nei7sK6ybPYH7twZdmQpAd1MKb7pfu6SK+H1/DsU0= +github.com/googleapis/gax-go/v2 v2.1.1/go.mod h1:hddJymUZASv3XPyGkUpKj8pPO47Rmb0eJc8R6ouapiM= +github.com/googleapis/gax-go/v2 v2.2.0/go.mod h1:as02EH8zWkzwUoLbBaFeQ+arQaj/OthfcblKl4IGNaM= +github.com/googleapis/gax-go/v2 v2.3.0/go.mod h1:b8LNqSzNabLiUpXKkY7HAR5jr6bIT99EXz9pXxye9YM= +github.com/googleapis/gax-go/v2 v2.4.0/go.mod h1:XOTVJ59hdnfJLIP/dh8n5CGryZR2LxK9wbMD5+iXC6c= +github.com/googleapis/gax-go/v2 v2.5.1/go.mod h1:h6B0KMMFNtI2ddbGJn3T3ZbwkeT6yqEF02fYlzkUCyo= +github.com/googleapis/gax-go/v2 v2.6.0/go.mod h1:1mjbznJAPHFpesgE5ucqfYEscaz5kMdcIDwU/6+DDoY= +github.com/googleapis/gax-go/v2 v2.12.0 h1:A+gCJKdRfqXkr+BIRGtZLibNXf0m1f9E4HG56etFpas= +github.com/googleapis/gax-go/v2 v2.12.0/go.mod h1:y+aIqrI5eb1YGMVJfuV3185Ts/D7qKpsEkdD5+I6QGU= +github.com/googleapis/go-type-adapters v1.0.0/go.mod h1:zHW75FOG2aur7gAO2B+MLby+cLsWGBF62rFAi7WjWO4= +github.com/googleapis/google-cloud-go-testing v0.0.0-20200911160855-bcd43fbb19e8/go.mod h1:dvDLG8qkwmyD9a/MJJN3XJcT3xFxOKAvTZGvuZmac9g= +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.1 h1:9lRY6j8DEeeBT10CvO9hGW0gmky0BprnvDI5vfhUHH4= +github.com/gorilla/handlers v1.5.1/go.mod h1:t8XrUpc4KVXb7HGyJ4/cEnwQiaxrX/hz1Zv/4g96P1Q= +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.0 h1:i40aqfkR1h2SlN9hojwV5ZA91wcXFOvkdNIeFDP5koI= +github.com/gorilla/mux v1.8.0/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So= +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.0 h1:PPwGk2jz7EePpoHN/+ClbZu8SPxiqlu12wZP/3sWmnc= +github.com/gorilla/websocket v1.5.0/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-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.1 h1:SWiSWN/42qdpR0MdhaOc/bLR48PLuP1ZQtYLRlM69uY= +github.com/hashicorp/go-getter v1.7.1/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= +github.com/hashicorp/go-immutable-radix v1.3.1 h1:DKHmCUm2hRBK510BaiZlwvpD40f8bJFeZnpfm2KLowc= +github.com/hashicorp/go-immutable-radix v1.3.1/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= +github.com/hashicorp/go-metrics v0.5.1 h1:rfPwUqFU6uZXNvGl4hzjY8LEBsqFVU4si1H9/Hqck/U= +github.com/hashicorp/go-metrics v0.5.1/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 h1:fv1ep09latC32wFoVwnqcnKJGnMSdBanPczbHAYm1BE= +github.com/hashicorp/go-uuid v1.0.1/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/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= +github.com/hdevalence/ed25519consensus v0.1.0/go.mod h1:w3BHWjwJbFU29IRHL1Iqkw3sus+7FctEyM4RqDxYNzo= +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/iancoleman/strcase v0.3.0 h1:nTXanmYxhfFAMjZL34Ov6gkzEsSJZ5DbhxWjvSASxEI= +github.com/iancoleman/strcase v0.3.0/go.mod h1:iwCmte+B7n89clKwxIoIXy/HfoL7AsD47ZCWhYzw7ho= +github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= +github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= +github.com/improbable-eng/grpc-web v0.15.0 h1:BN+7z6uNXZ1tQGcNAuaU1YjsLTApzkjt2tzCixLaUPQ= +github.com/improbable-eng/grpc-web v0.15.0/go.mod h1:1sy9HKV4Jt9aEs9JSnkWlRJPuPtwNr0l57L4f878wP8= +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/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/jmespath/go-jmespath/internal/testify v1.5.1 h1:shLQSRRSCCPj3f2gpwzGwWFoC7ycTf1rcQZHOlsJ6N8= +github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfCI6z80xFu9LTZmf1ZRjMHUOPmWr69U= +github.com/jmhodges/levigo v1.0.0 h1:q5EC36kV79HWeTBWsod3mG11EgStG3qArTKcvlksN1U= +github.com/jmhodges/levigo v1.0.0/go.mod h1:Q6Qx+uH3RAqyK4rFQroq9RL7mdkABMcfhEI+nNuzMJQ= +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/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/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= +github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= +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/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.15.11/go.mod h1:QPwzmACJjUTFsnSHH934V6woptycfrDDJnH7hvFVbGM= +github.com/klauspost/compress v1.17.4 h1:Ej5ixsIri7BrIjBkRZLTo6ghwrEtHFk7ijlczPW4fZ4= +github.com/klauspost/compress v1.17.4/go.mod h1:/dCuZOvVtNoHsyb+cuJD3itjs3NbnF6KH9zAO4BDxPM= +github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= +github.com/klauspost/cpuid/v2 v2.2.4 h1:acbojRNwl3o09bUq+yDCtZFc1aiwaAAxtcn8YkZXnvk= +github.com/klauspost/cpuid/v2 v2.2.4/go.mod h1:RVVoqg1df56z8g3pUjL/3lE5UfnlrJX8tyFgg4nqhuY= +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/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg= +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= +github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= +github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= +github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= +github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= +github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= +github.com/leodido/go-urn v1.2.4 h1:XlAE/cm/ms7TE/VMVoduSpNBoyc2dOxHs5MZSwAN63Q= +github.com/leodido/go-urn v1.2.4/go.mod h1:7ZrI8mTSeBSHl/UaRyKQW1qZeMgak41ANeCNaVckg+4= +github.com/lib/pq v1.10.7 h1:p7ZhMD+KsSRozJr34udlUrhboJwWAgCg34+/ZZNvZZw= +github.com/lib/pq v1.10.7/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= +github.com/libp2p/go-buffer-pool v0.1.0 h1:oK4mSFcQz7cTQIfqbe4MIj9gLW+mnanjyFtc6cdF0Y8= +github.com/libp2p/go-buffer-pool v0.1.0/go.mod h1:N+vh8gMqimBzdKkSMVuydVDq+UV5QTWy5HSiZacSbPg= +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.6 h1:O7I6SIGPrypf3f/gmrrLUBQDKfO8uOoYdWf4gLS06tc= +github.com/linxGnu/grocksdb v1.8.6/go.mod h1:xZCIb5Muw+nhbDK4Y5UJuOrin5MceOuiXkVUR7vp4WY= +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-runewidth v0.0.2/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= +github.com/mattn/go-runewidth v0.0.4/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= +github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= +github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0 h1:jWpvCLoY8Z/e3VKvlsiIGKtc+UG6U5vzxaoagmhXfyg= +github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0/go.mod h1:QUyp042oQthUoa9bqDv0ER0wrtXnBruoNd7aNjkbP+k= +github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= +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/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= +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/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/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/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= +github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= +github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk= +github.com/onsi/ginkgo v1.14.0 h1:2mOpI4JVVPBN+WQRa0WKH2eXR+Ey+uK4n7Zj0aYpIQA= +github.com/onsi/ginkgo v1.14.0/go.mod h1:iSB4RoI2tjJc9BBv4NKIKWKya62Rps+oPG/Lv9klQyY= +github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= +github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY= +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/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U= +github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM= +github.com/opencontainers/image-spec v1.1.0-rc2 h1:2zx/Stx4Wc5pIPDvIxHXvXtQFW/7XWJGmnM7r3wg034= +github.com/opencontainers/image-spec v1.1.0-rc2/go.mod h1:3OVijpioIKYWTqjiG0zfF6wvoJ4fAXGbjdZuI2NgsRQ= +github.com/opencontainers/runc v1.1.3 h1:vIXrkId+0/J2Ymu2m7VjGvbSlAId9XNRPhn2p4b+d8w= +github.com/opencontainers/runc v1.1.3/go.mod h1:1J5XiS+vdZ3wCyZybsuxXZWGrgSr8fFJHLXuG2PsnNg= +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/ory/dockertest v3.3.5+incompatible h1:iLLK6SQwIhcbrG783Dghaaa3WPzGc+4Emza6EbVUUGA= +github.com/ory/dockertest v3.3.5+incompatible/go.mod h1:1vX4m9wsvi00u5bseYwXaSnhNrne+V0E6LAcBILJdPs= +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.0.8 h1:0ctb6s9mE31h0/lhu+J6OPmVeDxJn+kYnJc2jZR9tGQ= +github.com/pelletier/go-toml/v2 v2.0.8/go.mod h1:vuYfssBdrU2XDZ9bYydBu6t+6a6PYNcZljzZR9VXg+4= +github.com/performancecopilot/speed v3.0.0+incompatible/go.mod h1:/CLtqpZ5gBg1M9iaPbIdPPGyKcA8hKdoy6hAWba7Yac= +github.com/petermattis/goid v0.0.0-20180202154549-b0b1615b78e5/go.mod h1:jvVRKCrJTQWu0XVbaOlby/2lO20uSCHEMzzplHXte1o= +github.com/petermattis/goid v0.0.0-20230904192822-1876fd5063bc h1:8bQZVK1X6BJR/6nYUPxQEP+ReTsceJTKizeuwjWOPUA= +github.com/petermattis/goid v0.0.0-20230904192822-1876fd5063bc/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= +github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +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/pkg/sftp v1.13.1/go.mod h1:3HaPG6Dq1ILlpPZRO0HVMrsydcdLt6HRDccSgb87qRg= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/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.17.0 h1:rl2sfwZMtSthVU752MqfjQozy7blglC+1SOtjMAMh+Q= +github.com/prometheus/client_golang v1.17.0/go.mod h1:VeL+gMmOAxkS2IqfCq0ZmHSL+LjWfWDUmp1mBz9JgUY= +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.5.0 h1:VQw1hfvPvk3Uv6Qf29VrPF32JB6rtbgI6cYPYQjL0Qw= +github.com/prometheus/client_model v0.5.0/go.mod h1:dTiFglRmd66nLR9Pv9f0mZi7B7fk5Pm3gvsjB5tr+kI= +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.45.0 h1:2BGz0eBc2hdMDLnO/8n0jeB3oPrt2D08CekT0lneoxM= +github.com/prometheus/common v0.45.0/go.mod h1:YJmSTw9BoKxJplESWWxlbyttQR4uaEcGyv9MZjVOJsY= +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.12.0 h1:jluTpSng7V9hY0O2R9DzzJHYb2xULk9VTR1V1R/k6Bo= +github.com/prometheus/procfs v0.12.0/go.mod h1:pcuDEFsWDnvcgNzo4EEweacyhjeA9Zk3cnaOZAZEfOo= +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/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.11.0 h1:cWPaGQEPrBb5/AsnsZesgZZ9yb1OQ+GOISoDNXVBh4M= +github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUzkipdSkR5nkCZA= +github.com/rs/cors v1.7.0/go.mod h1:gFx+x8UowdsKA9AchylcLynDq+nNFfI8FkUZdN/jGCU= +github.com/rs/cors v1.8.3 h1:O+qNyWn7Z+F9M0ILBHgMVPuB1xTOucVd5gtaYyXBpRo= +github.com/rs/cors v1.8.3/go.mod h1:XyqrcTp5zjWr1wsJ8PIRZssZ8b/WMcMf71DJnit4EMU= +github.com/rs/xid v1.5.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg= +github.com/rs/zerolog v1.31.0 h1:FcTR3NnLWW+NnTwwhFWiJSZr4ECLpqCm6QsEnyvbV4A= +github.com/rs/zerolog v1.31.0/go.mod h1:/7mN4D5sKwJLZQ2b/znpjC3/GQWY/xaDXUM0kKWRHss= +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/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= +github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= +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/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/sirupsen/logrus v1.9.0 h1:trlNQbNUG3OdDrDil03MCb1H2o9nJ1x4/5LYw7byDE0= +github.com/sirupsen/logrus v1.9.0/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= +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/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= +github.com/spaolacci/murmur3 v1.1.0 h1:7c1g84S4BPRrfL5Xrdp6fOJ206sU9y293DDHaoy0bLI= +github.com/spaolacci/murmur3 v1.1.0/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= +github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ= +github.com/spf13/afero v1.9.5 h1:stMpOSZFs//0Lv29HduCmli3GUfpFoF3Y1Q/aXj/wVM= +github.com/spf13/afero v1.9.5/go.mod h1:UBogFpq8E9Hx+xc5CNTTEpTnuHVmXDwZcZcE1eb/UhQ= +github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= +github.com/spf13/cast v1.5.1 h1:R+kOtfhWQE6TVQzY+4D7wJLBgkdVasCEFxSUBYBYIlA= +github.com/spf13/cast v1.5.1/go.mod h1:b9PdjNptOpzXr7Rq1q9gJML/2cdGQAo69NKzQ10KN48= +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.7.0 h1:hyqWnYt1ZQShIddO5kBpj3vu05/++x6tJ6dg8EC572I= +github.com/spf13/cobra v1.7.0/go.mod h1:uLxZILRyS/50WlhOIKD7W6V5bgeIt+4sICxh6uRMrb0= +github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo= +github.com/spf13/jwalterweatherman v1.1.0 h1:ue6voC5bR5F8YxI5S67j9i582FU4Qvo2bmqnqMYADFk= +github.com/spf13/jwalterweatherman v1.1.0/go.mod h1:aNWZUN0dPAAO/Ljvb5BEdw96iTZ0EXowPYD95IqWIGo= +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.16.0 h1:rGGH0XDZhdUOryiDWjmIvUSWpbNqisK8Wk0Vyefw8hc= +github.com/spf13/viper v1.16.0/go.mod h1:yg78JgCJcbrQOvV9YLXgkLaZqUidkY9K+Dd1FofRzQg= +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= +github.com/stretchr/objx v0.5.0 h1:1zr/of2m5FGMsad5YfcqgdqdWrIhu+EBEJRhR1U7z/c= +github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= +github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= +github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= +github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= +github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= +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.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= +github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= +github.com/stretchr/testify v1.8.3/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= +github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= +github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= +github.com/subosito/gotenv v1.4.2 h1:X1TuBLAMDFbaTAChgCBLu3DU3UPyELpnF2jjJ2cz/S8= +github.com/subosito/gotenv v1.4.2/go.mod h1:ayKnFf/c6rvx/2iiLrJUk1e6plDbT3edrFNGqEflhK0= +github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 h1:epCh84lMvA70Z7CTTCmYQn2CKbY8j86K7/FAIr141uY= +github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7/go.mod h1:q4W45IWZaF22tdD+VEXcAWRA037jwmWEB5VWYORlTpc= +github.com/tendermint/go-amino v0.16.0 h1:GyhmgQKvqF82e2oZeuMSp9JTN0N09emoSZlb2lyGa2E= +github.com/tendermint/go-amino v0.16.0/go.mod h1:TQU0M1i/ImAo+tYpZi73AU3V/dKeCoMC9Sphe2ZwGME= +github.com/tidwall/btree v1.7.0 h1:L1fkJH/AuEh5zBnnBbmTwQ5Lt+bRJ5A8EWecslvo9iI= +github.com/tidwall/btree v1.7.0/go.mod h1:twD9XRA5jj9VUQGELzDO4HPQTNJsoWWfYEL+EUQ2cKY= +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/twitchyliquid64/golang-asm v0.15.1 h1:SU5vSMR7hnwNxj24w34ZyCi/FmDZTkS4MhqMhdFk5YI= +github.com/twitchyliquid64/golang-asm v0.15.1/go.mod h1:a1lVb/DtPvCB8fslRZhAngC2+aY1QWCk3Cedj/Gdt08= +github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8/go.mod h1:VFNgLljTbGfSG7qAOspJ7OScBnGdDN/yBr0sguwnwf0= +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.10/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14= +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/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= +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/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= +github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= +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.8 h1:xs88BrvEv273UsB79e0hcVrlUWmS0a8upikMFhSyAtA= +go.etcd.io/bbolt v1.3.8/go.mod h1:N9Mkw9X8x5fupy0IKsmuqVtoGDyxsaDlbk4Rd05IAQw= +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.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= +go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= +go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= +go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= +go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= +go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk= +go.opencensus.io v0.23.0/go.mod h1:XItmlyltB5F7CS4xOC1DcqMoFqwtC6OG2xF7mCv7P7E= +go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= +go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= +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/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/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= +golang.org/x/arch v0.0.0-20210923205945-b76863e36670/go.mod h1:5om86z9Hs0C8fWVUuoMHwpExlXzs5Tkyp9hOrfG7pp8= +golang.org/x/arch v0.3.0 h1:02VY4/ZcO/gBOH6PUaoiptASxtXU10jazRCP865E97k= +golang.org/x/arch v0.3.0/go.mod h1:5om86z9Hs0C8fWVUuoMHwpExlXzs5Tkyp9hOrfG7pp8= +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-20190605123033-f99c8df09eb5/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-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20200728195943-123391ffb6de/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= +golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= +golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= +golang.org/x/crypto v0.7.0/go.mod h1:pYwdfH91IfpZVANVyUOhSIPZaFoJGxTFbZhFTx+dXZU= +golang.org/x/crypto v0.9.0/go.mod h1:yrmDGqONDYtNj3tH8X9dzUun2m2lzPa9ngI6/RUPGR0= +golang.org/x/crypto v0.16.0 h1:mMMrFzRSCF0GvB7Ne27XVtVAaXLrPmgPC7/v0tkwHaY= +golang.org/x/crypto v0.16.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4= +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-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= +golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek= +golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY= +golang.org/x/exp v0.0.0-20191129062945-2f5052295587/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= +golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= +golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= +golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM= +golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU= +golang.org/x/exp v0.0.0-20200331195152-e8c3332aa8e5/go.mod h1:4M0jN8W1tt0AVLNr8HDosyJCDCDuyL9N9+3m7wDWgKw= +golang.org/x/exp v0.0.0-20231006140011-7918f672742d h1:jtJma62tbqLibJ5sFQz8bKtEM8rJBtfilJ2qTU199MI= +golang.org/x/exp v0.0.0-20231006140011-7918f672742d/go.mod h1:ldy0pHrwJyGW56pPQzzkH36rKxoZW1tw7ZJpeKx+hdo= +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-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs= +golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/lint v0.0.0-20210508222113-6edffad5e616/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= +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.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= +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/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= +golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= +golang.org/x/mod v0.13.0 h1:I/DsJXRlw/8l/0c24sM9yb0T4z9liZTduXvdAWYiysY= +golang.org/x/mod v0.13.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= +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-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/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-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/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-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200222125558-5a598a2470a0/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-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200421231249-e086a090c8fd/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200506145744-7e3656a0809f/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200513185701-a91f0712d120/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-20200520182314-0ba52f642ac2/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-20200707034311-ab3426394381/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-20201031054903-ff519b6c9102/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/net v0.0.0-20201209123823-ac852fbbde11/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20201224014010-6772e930b67b/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20210119194325-5f4716e94777/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20210316092652-d523dce5a7f4/go.mod h1:RBQZq4jEuRlivfhVLdyRGr576XBO4/greRjx4P4O3yc= +golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= +golang.org/x/net v0.0.0-20210503060351-7fd8e65b6420/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= +golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= +golang.org/x/net v0.0.0-20220325170049-de3da57026de/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= +golang.org/x/net v0.0.0-20220412020605-290c469a71a5/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= +golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= +golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.0.0-20220617184016-355a448f1bc9/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.0.0-20220909164309-bea034e7d591/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= +golang.org/x/net v0.0.0-20221014081412-f15817d10f9b/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= +golang.org/x/net v0.1.0/go.mod h1:Cx3nUiGt4eDBEyega/BKRp+/AlGL8hYe7U9odMt2Cco= +golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= +golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc= +golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg= +golang.org/x/net v0.19.0 h1:zTwKpTd2XuCqf8huc7Fo2iSy+4RHPd10s4KzeTnVr1c= +golang.org/x/net v0.19.0/go.mod h1:CfAk/cbD4CthTvqiEl8NpboMuiuOYsAr/7NOjZJtv1U= +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-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20200902213428-5d25da1a8d43/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20201109201403-9fd604954f58/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20201208152858-08078c50e5b5/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210218202405-ba52d332ba99/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210220000619-9bb904979d93/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210313182246-cd4f82c27b84/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210514164344-f6687ab2804c/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210628180205-a41e5a781914/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210805134026-6f1e6394065a/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210819190943-2bc19b11175f/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= +golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= +golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= +golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.1.0/go.mod h1:G9FE4dLTsbXUu90h/Pf85g4w1D+SSAgR+q46nJZ8M4A= +golang.org/x/oauth2 v0.13.0 h1:jDDenyj+WgFtmV3zYVoi8aE2BwtXFLWOA67ZfNWftiY= +golang.org/x/oauth2 v0.13.0/go.mod h1:/JMhi4ZRXAf4HG9LiNmxvk+45+96RUlVThiH8FzNBn0= +golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20220601150217-0de741cfad7f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20220929204114-8fcdb60fdcc0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.4.0 h1:zxkM55ReGkDlKSM+Fu41A+zmbZuaPVbGMzvvdUPznYQ= +golang.org/x/sync v0.4.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y= +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-20190130150945-aca44879d564/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-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/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-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-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191220142924-d4481acd189f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200106162015-b016eb3dc98e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/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-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200331124033-c3d80250170d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200420163511-1957bb5e6d1f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200501052902-10377860bb8e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200511232937-7e40ca221e25/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200519105757-fe76b779f299/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200523222454-059865788121/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-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200814200057-3d37ad5750ed/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200905004654-be1d3432aa8f/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-20201201145000-ef89a241ccb3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210104204734-6f8348627aad/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210220050731-9a76102bfb43/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210225134936-a50acf3fe073/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210305230114-8fe3ee5dd75b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210315160823-c6e025ad8005/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4/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-20210423185535-09eb48e85fd7/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-20210514084401-e8d321eab015/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210603125802-9665404d3644/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-20210616094352-59db8d763f22/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-20210806184541-e5e7981a1069/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +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-20210823070655-63515b42dcdf/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210908233432-aa78b53d3365/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-20211124211545-fe61309f8881/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20211210111614-af8b64212486/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-20220128215802-99c3d69c2c27/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220209214540-3681064d5158/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220227234510-4e6760a101f9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220310020820-b874c991c1a5/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-20220328115105-d36c6a25d886/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220412211240-33da011f77ad/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220502124256-b6088ccd6cba/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-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220610221304-9f5ed59c137d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220704084225-05e143d24a9e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/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-20220908164124-27713097b956/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= +golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.15.0 h1:h48lPFYpsTvQJZF4EKyI4aLHaev3CxivZmv7yZig9pc= +golang.org/x/sys v0.15.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.1.0/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= +golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= +golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U= +golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo= +golang.org/x/term v0.15.0 h1:y/Oo/a/q3IXu26lQgl04j/gjuBDOBlx7X6Om1j2CPW4= +golang.org/x/term v0.15.0/go.mod h1:BDl952bC7+uMoWR75FIrCDx79TPU9oHkTZ9yRbYOrX0= +golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/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.4/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.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ= +golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= +golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= +golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= +golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= +golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +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-20190312151545-0bb0c0a6e846/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-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +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-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/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-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200103221440-774c71fcf114/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200117161641-43d50277825c/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200122220014-bf1340f18c4a/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200204074204-1cc6d1ef6c74/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-20200212150539-ea181f53ac56/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200224181240-023911ca70b2/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200227222343-706bc42d1f0d/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200304193943-95d2e580d8eb/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= +golang.org/x/tools v0.0.0-20200312045724-11d5b4c81c7d/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= +golang.org/x/tools v0.0.0-20200331025713-a30bf2db82d4/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= +golang.org/x/tools v0.0.0-20200501065659-ab2804fb9c9d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200904185747-39188db58858/go.mod h1:Cj7w3i3Rnn0Xh82ur9kSqwfTHTeVxaDqrfMjpcNT6bE= +golang.org/x/tools v0.0.0-20201110124207-079ba7bd75cd/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20201201161351-ac6f37ff4c2a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20201208233053-a543418bbed2/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20210105154028-b0ab187a4818/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20210108195828-e2f9c7f1fc8e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0= +golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= +golang.org/x/tools v0.1.2/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= +golang.org/x/tools v0.1.3/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= +golang.org/x/tools v0.1.4/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= +golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= +golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= +golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= +golang.org/x/tools v0.14.0 h1:jvNa2pY0M4r62jkRQ6RwEZZyPcymeL9XZMLBbV7U2nc= +golang.org/x/tools v0.14.0/go.mod h1:uYBEerGOWcJyEORxN+Ek8+TT266gXkNlHdJBwexUsBg= +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= +golang.org/x/xerrors v0.0.0-20220411194840-2f41105eb62f/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20220517211312-f3a8303e98df/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= +golang.org/x/xerrors v0.0.0-20220609144429-65e65417b02f/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= +golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 h1:H2TDz8ibqkAF6YGhCdN3jS9O0/s90v0rJh3X/OLHEUk= +golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= +google.golang.org/api v0.3.1/go.mod h1:6wY9I6uQWHQ8EM57III9mq/AjF+i8G65rmVagqKMtkk= +google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= +google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= +google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= +google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= +google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= +google.golang.org/api v0.14.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= +google.golang.org/api v0.15.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= +google.golang.org/api v0.17.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.18.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.19.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.20.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.22.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.24.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= +google.golang.org/api v0.28.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= +google.golang.org/api v0.29.0/go.mod h1:Lcubydp8VUV7KeIHD9z2Bys/sm/vGKnG1UHuDBSrHWM= +google.golang.org/api v0.30.0/go.mod h1:QGmEvQ87FHZNiUVJkT14jQNYJ4ZJjdRF23ZXz5138Fc= +google.golang.org/api v0.35.0/go.mod h1:/XrVsuzM0rZmrsbjJutiuftIzeuTQcEeaYcSk/mQ1dg= +google.golang.org/api v0.36.0/go.mod h1:+z5ficQTmoYpPn8LCUNVpK5I7hwkpjbcgqA7I34qYtE= +google.golang.org/api v0.40.0/go.mod h1:fYKFpnQN0DsDSKRVRcQSDQNtqWPfM9i+zNPxepjRCQ8= +google.golang.org/api v0.41.0/go.mod h1:RkxM5lITDfTzmyKFPt+wGrCJbVfniCr2ool8kTBzRTU= +google.golang.org/api v0.43.0/go.mod h1:nQsDGjRXMo4lvh5hP0TKqF244gqhGcr/YSIykhUk/94= +google.golang.org/api v0.47.0/go.mod h1:Wbvgpq1HddcWVtzsVLyfLp8lDg6AA241LmgIL59tHXo= +google.golang.org/api v0.48.0/go.mod h1:71Pr1vy+TAZRPkPs/xlCf5SsU8WjuAWv1Pfjbtukyy4= +google.golang.org/api v0.50.0/go.mod h1:4bNT5pAuq5ji4SRZm+5QIkjny9JAyVD/3gaSihNefaw= +google.golang.org/api v0.51.0/go.mod h1:t4HdrdoNgyN5cbEfm7Lum0lcLDLiise1F8qDKX00sOU= +google.golang.org/api v0.54.0/go.mod h1:7C4bFFOvVDGXjfDTAsgGwDgAxRDeQ4X8NvUedIt6z3k= +google.golang.org/api v0.55.0/go.mod h1:38yMfeP1kfjsl8isn0tliTjIb1rJXcQi4UXlbqivdVE= +google.golang.org/api v0.56.0/go.mod h1:38yMfeP1kfjsl8isn0tliTjIb1rJXcQi4UXlbqivdVE= +google.golang.org/api v0.57.0/go.mod h1:dVPlbZyBo2/OjBpmvNdpn2GRm6rPy75jyU7bmhdrMgI= +google.golang.org/api v0.61.0/go.mod h1:xQRti5UdCmoCEqFxcz93fTl338AVqDgyaDRuOZ3hg9I= +google.golang.org/api v0.63.0/go.mod h1:gs4ij2ffTRXwuzzgJl/56BdwJaA194ijkfn++9tDuPo= +google.golang.org/api v0.67.0/go.mod h1:ShHKP8E60yPsKNw/w8w+VYaj9H6buA5UqDp8dhbQZ6g= +google.golang.org/api v0.70.0/go.mod h1:Bs4ZM2HGifEvXwd50TtW70ovgJffJYw2oRCOFU/SkfA= +google.golang.org/api v0.71.0/go.mod h1:4PyU6e6JogV1f9eA4voyrTY2batOLdgZ5qZ5HOCc4j8= +google.golang.org/api v0.74.0/go.mod h1:ZpfMZOVRMywNyvJFeqL9HRWBgAuRfSjJFpe9QtRRyDs= +google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69ljA= +google.golang.org/api v0.77.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69ljA= +google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= +google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= +google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= +google.golang.org/api v0.85.0/go.mod h1:AqZf8Ep9uZ2pyTvgL+x0D3Zt0eoT9b5E8fmzfu6FO2g= +google.golang.org/api v0.90.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= +google.golang.org/api v0.96.0/go.mod h1:w7wJQLTM+wvQpNf5JyEcBoxK0RH7EDrh/L4qfsuJ13s= +google.golang.org/api v0.97.0/go.mod h1:w7wJQLTM+wvQpNf5JyEcBoxK0RH7EDrh/L4qfsuJ13s= +google.golang.org/api v0.98.0/go.mod h1:w7wJQLTM+wvQpNf5JyEcBoxK0RH7EDrh/L4qfsuJ13s= +google.golang.org/api v0.100.0/go.mod h1:ZE3Z2+ZOr87Rx7dqFsdRQkRBk36kDtp/h+QpHbB7a70= +google.golang.org/api v0.149.0 h1:b2CqT6kG+zqJIVKRQ3ELJVLN1PwHZ6DJ3dW8yl82rgY= +google.golang.org/api v0.149.0/go.mod h1:Mwn1B7JTXrzXtnvmzQE2BD6bYZQ8DShKZDZbeN9I7qI= +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/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= +google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= +google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= +google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= +google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= +google.golang.org/appengine v1.6.8 h1:IhEN5q69dyKagZPYMSdIjS2HqprW324FRQZJcGqPAsM= +google.golang.org/appengine v1.6.8/go.mod h1:1jJ3jBArFh5pcgW8gCtRJnepW8FzD1V44FJffLiz/Ds= +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-20190418145605-e7d98fc518a7/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-20190502173448-54afdca5d873/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-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= +google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= +google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= +google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20191115194625-c23dd37a84c9/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20191216164720-4f79533eabd1/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20200115191322-ca5a22157cba/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20200122232147-0452cf42e150/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20200204135345-fa8e72b47b90/go.mod h1:GmwEX6Z4W5gMy59cAlVYjN9JhxgbQH6Gn+gFDQe2lzA= +google.golang.org/genproto v0.0.0-20200212174721-66ed5ce911ce/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200228133532-8c2c7df3a383/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200305110556-506484158171/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200312145019-da6875a35672/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200331122359-1ee6d9798940/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200423170343-7949de9c1215/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200430143042-b979b6f78d84/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200511104702-f5ebc3bea380/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200515170657-fc4c6c6a6587/go.mod h1:YsZOwe1myG/8QRHRsmBRE1LrgQY60beZKjly0O1fX9U= +google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= +google.golang.org/genproto v0.0.0-20200618031413-b414f8b61790/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA= +google.golang.org/genproto v0.0.0-20200729003335-053ba62fc06f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20200904004341-0bd0a958aa1d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201109203340-2640f1f9cdfb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201201144952-b05cb90ed32e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201210142538-e3217bee35cc/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201214200347-8c77b98c765d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210108203827-ffc7fda8c3d7/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210126160654-44e461bb6506/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210222152913-aa3ee6e6a81c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210226172003-ab064af71705/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210303154014-9728d6b83eeb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210310155132-4ce2db91004e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210319143718-93e7006c17a6/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210329143202-679c6ae281ee/go.mod h1:9lPAdzaEmUacj36I+k7YKbEc5CXzPIeORRgDAUOu28A= +google.golang.org/genproto v0.0.0-20210402141018-6c239bbf2bb1/go.mod h1:9lPAdzaEmUacj36I+k7YKbEc5CXzPIeORRgDAUOu28A= +google.golang.org/genproto v0.0.0-20210513213006-bf773b8c8384/go.mod h1:P3QM42oQyzQSnHPnZ/vqoCdDmzH28fzWByN9asMeM8A= +google.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= +google.golang.org/genproto v0.0.0-20210604141403-392c879c8b08/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= +google.golang.org/genproto v0.0.0-20210608205507-b6d2f5bf0d7d/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= +google.golang.org/genproto v0.0.0-20210624195500-8bfb893ecb84/go.mod h1:SzzZ/N+nwJDaO1kznhnlzqS8ocJICar6hYhVyhi++24= +google.golang.org/genproto v0.0.0-20210713002101-d411969a0d9a/go.mod h1:AxrInvYm1dci+enl5hChSFPOmmUF1+uAa/UsgNRWd7k= +google.golang.org/genproto v0.0.0-20210716133855-ce7ef5c701ea/go.mod h1:AxrInvYm1dci+enl5hChSFPOmmUF1+uAa/UsgNRWd7k= +google.golang.org/genproto v0.0.0-20210728212813-7823e685a01f/go.mod h1:ob2IJxKrgPT52GcgX759i1sleT07tiKowYBGbczaW48= +google.golang.org/genproto v0.0.0-20210805201207-89edb61ffb67/go.mod h1:ob2IJxKrgPT52GcgX759i1sleT07tiKowYBGbczaW48= +google.golang.org/genproto v0.0.0-20210813162853-db860fec028c/go.mod h1:cFeNkxwySK631ADgubI+/XFU/xp8FD5KIVV4rj8UC5w= +google.golang.org/genproto v0.0.0-20210821163610-241b8fcbd6c8/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= +google.golang.org/genproto v0.0.0-20210828152312-66f60bf46e71/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= +google.golang.org/genproto v0.0.0-20210831024726-fe130286e0e2/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= +google.golang.org/genproto v0.0.0-20210903162649-d08c68adba83/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= +google.golang.org/genproto v0.0.0-20210909211513-a8c4777a87af/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= +google.golang.org/genproto v0.0.0-20210924002016-3dee208752a0/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211118181313-81c1377c94b1/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211206160659-862468c7d6e0/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211208223120-3a66f561d7aa/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211221195035-429b39de9b1c/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20220126215142-9970aeb2e350/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20220207164111-0872dc986b00/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20220218161850-94dd64e39d7c/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI= +google.golang.org/genproto v0.0.0-20220222213610-43724f9ea8cf/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI= +google.golang.org/genproto v0.0.0-20220304144024-325a89244dc8/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI= +google.golang.org/genproto v0.0.0-20220310185008-1973136f34c6/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI= +google.golang.org/genproto v0.0.0-20220314164441-57ef72a4c106/go.mod h1:hAL49I2IFola2sVEjAn7MEwsja0xp51I0tlGAf9hz4E= +google.golang.org/genproto v0.0.0-20220324131243-acbaeb5b85eb/go.mod h1:hAL49I2IFola2sVEjAn7MEwsja0xp51I0tlGAf9hz4E= +google.golang.org/genproto v0.0.0-20220407144326-9054f6ed7bac/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= +google.golang.org/genproto v0.0.0-20220413183235-5e96e2839df9/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= +google.golang.org/genproto v0.0.0-20220414192740-2d67ff6cf2b4/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= +google.golang.org/genproto v0.0.0-20220421151946-72621c1f0bd3/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= +google.golang.org/genproto v0.0.0-20220429170224-98d788798c3e/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= +google.golang.org/genproto v0.0.0-20220502173005-c8bf987b8c21/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= +google.golang.org/genproto v0.0.0-20220505152158-f39f71e6c8f3/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= +google.golang.org/genproto v0.0.0-20220518221133-4f43b3371335/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= +google.golang.org/genproto v0.0.0-20220523171625-347a074981d8/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= +google.golang.org/genproto v0.0.0-20220608133413-ed9918b62aac/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220616135557-88e70c0c3a90/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220628213854-d9e0b6570c03/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220722212130-b98a9ff5e252/go.mod h1:GkXuJDJ6aQ7lnJcRF+SJVgFdQhypqgl3LB1C9vabdRE= +google.golang.org/genproto v0.0.0-20220801145646-83ce21fca29f/go.mod h1:iHe1svFLAZg9VWz891+QbRMwUv9O/1Ww+/mngYeThbc= +google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk= +google.golang.org/genproto v0.0.0-20220817144833-d7fd3f11b9b1/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk= +google.golang.org/genproto v0.0.0-20220822174746-9e6da59bd2fc/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk= +google.golang.org/genproto v0.0.0-20220829144015-23454907ede3/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk= +google.golang.org/genproto v0.0.0-20220829175752-36a9c930ecbf/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk= +google.golang.org/genproto v0.0.0-20220913154956-18f8339a66a5/go.mod h1:0Nb8Qy+Sk5eDzHnzlStwW3itdNaWoZA5XeSG+R3JHSo= +google.golang.org/genproto v0.0.0-20220914142337-ca0e39ece12f/go.mod h1:0Nb8Qy+Sk5eDzHnzlStwW3itdNaWoZA5XeSG+R3JHSo= +google.golang.org/genproto v0.0.0-20220915135415-7fd63a7952de/go.mod h1:0Nb8Qy+Sk5eDzHnzlStwW3itdNaWoZA5XeSG+R3JHSo= +google.golang.org/genproto v0.0.0-20220916172020-2692e8806bfa/go.mod h1:0Nb8Qy+Sk5eDzHnzlStwW3itdNaWoZA5XeSG+R3JHSo= +google.golang.org/genproto v0.0.0-20220919141832-68c03719ef51/go.mod h1:0Nb8Qy+Sk5eDzHnzlStwW3itdNaWoZA5XeSG+R3JHSo= +google.golang.org/genproto v0.0.0-20220920201722-2b89144ce006/go.mod h1:ht8XFiar2npT/g4vkk7O0WYS1sHOHbdujxbEp7CJWbw= +google.golang.org/genproto v0.0.0-20220926165614-551eb538f295/go.mod h1:woMGP53BroOrRY3xTxlbr8Y3eB/nzAvvFM83q7kG2OI= +google.golang.org/genproto v0.0.0-20220926220553-6981cbe3cfce/go.mod h1:woMGP53BroOrRY3xTxlbr8Y3eB/nzAvvFM83q7kG2OI= +google.golang.org/genproto v0.0.0-20221010155953-15ba04fc1c0e/go.mod h1:3526vdqwhZAwq4wsRUaVG555sVgsNmIjRtO7t/JH29U= +google.golang.org/genproto v0.0.0-20221014173430-6e2ab493f96b/go.mod h1:1vXfmgAz9N9Jx0QA82PqRVauvCz1SGSz739p0f183jM= +google.golang.org/genproto v0.0.0-20221014213838-99cd37c6964a/go.mod h1:1vXfmgAz9N9Jx0QA82PqRVauvCz1SGSz739p0f183jM= +google.golang.org/genproto v0.0.0-20221025140454-527a21cfbd71/go.mod h1:9qHF0xnpdSfF6knlcsnpzUu5y+rpwgbvsyGAZPBMg4s= +google.golang.org/genproto v0.0.0-20231211222908-989df2bf70f3 h1:1hfbdAfFbkmpg41000wDVqr7jUpK/Yo+LPnIxxGzmkg= +google.golang.org/genproto v0.0.0-20231211222908-989df2bf70f3/go.mod h1:5RBcpGRxr25RbDzY5w+dmaqpSEvl8Gwl1x2CICf60ic= +google.golang.org/genproto/googleapis/api v0.0.0-20231120223509-83a465c0220f h1:2yNACc1O40tTnrsbk9Cv6oxiW8pxI/pXj0wRtdlYmgY= +google.golang.org/genproto/googleapis/api v0.0.0-20231120223509-83a465c0220f/go.mod h1:Uy9bTZJqmfrw2rIBxgGLnamc78euZULUBrLZ9XTITKI= +google.golang.org/genproto/googleapis/rpc v0.0.0-20231212172506-995d672761c0 h1:/jFB8jK5R3Sq3i/lmeZO0cATSzFfZaJq1J2Euan3XKU= +google.golang.org/genproto/googleapis/rpc v0.0.0-20231212172506-995d672761c0/go.mod h1:FUoWkonphQm3RhTS+kOEhF8h0iDpm4tdXolVCeZ9KKA= +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.21.1/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.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60= +google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk= +google.golang.org/grpc v1.30.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/grpc v1.31.1/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +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.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc= +google.golang.org/grpc v1.34.0/go.mod h1:WotjhfgOW/POjDeRt8vscBtXq+2VjORFy659qA51WJ8= +google.golang.org/grpc v1.35.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= +google.golang.org/grpc v1.36.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= +google.golang.org/grpc v1.36.1/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= +google.golang.org/grpc v1.37.0/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM= +google.golang.org/grpc v1.37.1/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM= +google.golang.org/grpc v1.38.0/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM= +google.golang.org/grpc v1.39.0/go.mod h1:PImNr+rS9TWYb2O4/emRugxiyHZ5JyHW5F+RPnDzfrE= +google.golang.org/grpc v1.39.1/go.mod h1:PImNr+rS9TWYb2O4/emRugxiyHZ5JyHW5F+RPnDzfrE= +google.golang.org/grpc v1.40.0/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34= +google.golang.org/grpc v1.40.1/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34= +google.golang.org/grpc v1.44.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU= +google.golang.org/grpc v1.45.0/go.mod h1:lN7owxKUQEqMfSyQikvvk5tf/6zMPsrK+ONuO11+0rQ= +google.golang.org/grpc v1.46.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= +google.golang.org/grpc v1.46.2/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= +google.golang.org/grpc v1.47.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= +google.golang.org/grpc v1.48.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= +google.golang.org/grpc v1.49.0/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= +google.golang.org/grpc v1.50.0/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= +google.golang.org/grpc v1.50.1/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= +google.golang.org/grpc v1.60.1 h1:26+wFr+cNqSGFcOXcabYC0lUVJVRa2Sb2ortSK7VrEU= +google.golang.org/grpc v1.60.1/go.mod h1:OlCHIeLYqSSsLi6i49B5QGdzaMZK9+M7LXN2FKz4eGM= +google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0/go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw= +google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= +google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= +google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= +google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= +google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= +google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.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.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= +google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= +google.golang.org/protobuf v1.30.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= +google.golang.org/protobuf v1.32.0 h1:pPC6BG5ex8PDFnkbrGU3EixyhKcQ2aDuBS36lqK/C7I= +google.golang.org/protobuf v1.32.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= +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/cheggaaa/pb.v1 v1.0.27/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/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-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/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= +honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= +honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= +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 v1.1.0 h1:CMa0sjHSru3puNx+J0MIAuiiEV4N0qj8/cMWGBBCsjw= +pgregory.net/rapid v1.1.0/go.mod h1:PY5XlDGj0+V1FCq0o192FdRhpKHGTRIWBgqjDBTrq04= +rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= +rsc.io/pdf v0.1.1/go.mod h1:n8OzWcQ6Sp37PL01nO98y4iUCRdTGarVfzxY20ICaU4= +rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= +rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= +sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o= +sigs.k8s.io/yaml v1.3.0 h1:a2VclLzOGrwOHDiV8EfBGhvjHvP46CtW5j6POvhYGGo= +sigs.k8s.io/yaml v1.3.0/go.mod h1:GeOyir5tyXNByN85N/dRIT9es5UQNerPYEKK56eTBm8= +sourcegraph.com/sourcegraph/appdash v0.0.0-20190731080439-ebfcffb1b5c0/go.mod h1:hI742Nqp5OhwiqlzhgfbWU4mW4yO10fP+LoT9WOswdU= diff --git a/app/test_helpers.go b/app/test_helpers.go new file mode 100644 index 0000000..477445b --- /dev/null +++ b/app/test_helpers.go @@ -0,0 +1,249 @@ +package app + +import ( + "encoding/json" + "fmt" + "os" + "testing" + + abci "github.com/cometbft/cometbft/abci/types" + cmtjson "github.com/cometbft/cometbft/libs/json" + cmttypes "github.com/cometbft/cometbft/types" + dbm "github.com/cosmos/cosmos-db" + "github.com/stretchr/testify/require" + + "cosmossdk.io/log" + sdkmath "cosmossdk.io/math" + pruningtypes "cosmossdk.io/store/pruning/types" + + bam "github.com/cosmos/cosmos-sdk/baseapp" + "github.com/cosmos/cosmos-sdk/client/flags" + "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" + "github.com/cosmos/cosmos-sdk/server" + servertypes "github.com/cosmos/cosmos-sdk/server/types" + "github.com/cosmos/cosmos-sdk/testutil/mock" + "github.com/cosmos/cosmos-sdk/testutil/network" + simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims" + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/types/module/testutil" + authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" + banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" + minttypes "github.com/cosmos/cosmos-sdk/x/mint/types" +) + +// SetupOptions defines arguments that are passed into `App` constructor. +type SetupOptions struct { + Logger log.Logger + DB *dbm.MemDB + AppOpts servertypes.AppOptions +} + +func setup(withGenesis bool, invCheckPeriod uint) (*App, GenesisState) { + db := dbm.NewMemDB() + + appOptions := make(simtestutil.AppOptionsMap, 0) + appOptions[flags.FlagHome] = DefaultNodeHome + appOptions[server.FlagInvCheckPeriod] = invCheckPeriod + + app := NewApp(log.NewNopLogger(), db, nil, true, appOptions) + if withGenesis { + return app, app.DefaultGenesis() + } + return app, GenesisState{} +} + +// NewAppWithCustomOptions initializes a new App with custom options. +func NewAppWithCustomOptions(t *testing.T, isCheckTx bool, options SetupOptions) *App { + t.Helper() + + privVal := mock.NewPV() + pubKey, err := privVal.GetPubKey() + require.NoError(t, err) + // create validator set with single validator + validator := cmttypes.NewValidator(pubKey, 1) + valSet := cmttypes.NewValidatorSet([]*cmttypes.Validator{validator}) + + // generate genesis account + senderPrivKey := secp256k1.GenPrivKey() + acc := authtypes.NewBaseAccount(senderPrivKey.PubKey().Address().Bytes(), senderPrivKey.PubKey(), 0, 0) + balance := banktypes.Balance{ + Address: acc.GetAddress().String(), + Coins: sdk.NewCoins(sdk.NewCoin(sdk.DefaultBondDenom, sdkmath.NewInt(100000000000000))), + } + + app := NewApp(options.Logger, options.DB, nil, true, options.AppOpts) + genesisState := app.DefaultGenesis() + genesisState, err = simtestutil.GenesisStateWithValSet(app.AppCodec(), genesisState, valSet, []authtypes.GenesisAccount{acc}, balance) + require.NoError(t, err) + + if !isCheckTx { + // init chain must be called to stop deliverState from being nil + stateBytes, err := cmtjson.MarshalIndent(genesisState, "", " ") + require.NoError(t, err) + + // Initialize the chain + _, err = app.InitChain(&abci.RequestInitChain{ + Validators: []abci.ValidatorUpdate{}, + ConsensusParams: simtestutil.DefaultConsensusParams, + AppStateBytes: stateBytes, + }) + require.NoError(t, err) + } + + return app +} + +// Setup initializes a new App. A Nop logger is set in App. +func Setup(t *testing.T, isCheckTx bool) *App { + t.Helper() + + privVal := mock.NewPV() + pubKey, err := privVal.GetPubKey() + require.NoError(t, err) + + // create validator set with single validator + validator := cmttypes.NewValidator(pubKey, 1) + valSet := cmttypes.NewValidatorSet([]*cmttypes.Validator{validator}) + + // generate genesis account + senderPrivKey := secp256k1.GenPrivKey() + acc := authtypes.NewBaseAccount(senderPrivKey.PubKey().Address().Bytes(), senderPrivKey.PubKey(), 0, 0) + balance := banktypes.Balance{ + Address: acc.GetAddress().String(), + Coins: sdk.NewCoins(sdk.NewCoin(sdk.DefaultBondDenom, sdkmath.NewInt(100000000000000))), + } + + app := SetupWithGenesisValSet(t, valSet, []authtypes.GenesisAccount{acc}, balance) + + return app +} + +// SetupWithGenesisValSet initializes a new App with a validator set and genesis accounts +// that also act as delegators. For simplicity, each validator is bonded with a delegation +// of one consensus engine unit in the default token of the app from first genesis +// account. A Nop logger is set in App. +func SetupWithGenesisValSet(t *testing.T, valSet *cmttypes.ValidatorSet, genAccs []authtypes.GenesisAccount, balances ...banktypes.Balance) *App { + t.Helper() + + app, genesisState := setup(true, 5) + genesisState, err := simtestutil.GenesisStateWithValSet(app.AppCodec(), genesisState, valSet, genAccs, balances...) + require.NoError(t, err) + + stateBytes, err := json.MarshalIndent(genesisState, "", " ") + require.NoError(t, err) + + // init chain will set the validator set and initialize the genesis accounts + _, err = app.InitChain(&abci.RequestInitChain{ + Validators: []abci.ValidatorUpdate{}, + ConsensusParams: simtestutil.DefaultConsensusParams, + AppStateBytes: stateBytes, + }, + ) + require.NoError(t, err) + + require.NoError(t, err) + _, err = app.FinalizeBlock(&abci.RequestFinalizeBlock{ + Height: app.LastBlockHeight() + 1, + Hash: app.LastCommitID().Hash, + NextValidatorsHash: valSet.Hash(), + }) + require.NoError(t, err) + + return app +} + +// GenesisStateWithSingleValidator initializes GenesisState with a single validator and genesis accounts +// that also act as delegators. +func GenesisStateWithSingleValidator(t *testing.T, app *App) GenesisState { + t.Helper() + + privVal := mock.NewPV() + pubKey, err := privVal.GetPubKey() + require.NoError(t, err) + + // create validator set with single validator + validator := cmttypes.NewValidator(pubKey, 1) + valSet := cmttypes.NewValidatorSet([]*cmttypes.Validator{validator}) + + // generate genesis account + senderPrivKey := secp256k1.GenPrivKey() + acc := authtypes.NewBaseAccount(senderPrivKey.PubKey().Address().Bytes(), senderPrivKey.PubKey(), 0, 0) + balances := []banktypes.Balance{ + { + Address: acc.GetAddress().String(), + Coins: sdk.NewCoins(sdk.NewCoin(sdk.DefaultBondDenom, sdkmath.NewInt(100000000000000))), + }, + } + + genesisState := app.DefaultGenesis() + genesisState, err = simtestutil.GenesisStateWithValSet(app.AppCodec(), genesisState, valSet, []authtypes.GenesisAccount{acc}, balances...) + require.NoError(t, err) + + return genesisState +} + +// AddTestAddrsIncremental constructs and returns accNum amount of accounts with an +// initial balance of accAmt in random order +func AddTestAddrsIncremental(app *App, ctx sdk.Context, accNum int, accAmt sdkmath.Int) []sdk.AccAddress { + return addTestAddrs(app, ctx, accNum, accAmt, simtestutil.CreateIncrementalAccounts) +} + +func addTestAddrs(app *App, ctx sdk.Context, accNum int, accAmt sdkmath.Int, strategy simtestutil.GenerateAccountStrategy) []sdk.AccAddress { + testAddrs := strategy(accNum) + bondDenom, err := app.StakingKeeper.BondDenom(ctx) + if err != nil { + panic(err) + } + + initCoins := sdk.NewCoins(sdk.NewCoin(bondDenom, accAmt)) + + for _, addr := range testAddrs { + initAccountWithCoins(app, ctx, addr, initCoins) + } + + return testAddrs +} + +func initAccountWithCoins(app *App, ctx sdk.Context, addr sdk.AccAddress, coins sdk.Coins) { + err := app.BankKeeper.MintCoins(ctx, minttypes.ModuleName, coins) + if err != nil { + panic(err) + } + + err = app.BankKeeper.SendCoinsFromModuleToAccount(ctx, minttypes.ModuleName, addr, coins) + if err != nil { + panic(err) + } +} + +// NewTestNetworkFixture returns a new app AppConstructor for network simulation tests +func NewTestNetworkFixture() network.TestFixture { + dir, err := os.MkdirTemp("", "andromeda") + if err != nil { + panic(fmt.Sprintf("failed creating temporary directory: %v", err)) + } + defer os.RemoveAll(dir) + + app := NewApp(log.NewNopLogger(), dbm.NewMemDB(), nil, true, simtestutil.NewAppOptionsWithFlagHome(dir)) + + appCtr := func(val network.ValidatorI) servertypes.Application { + return NewApp( + val.GetCtx().Logger, dbm.NewMemDB(), nil, true, + simtestutil.NewAppOptionsWithFlagHome(val.GetCtx().Config.RootDir), + bam.SetPruning(pruningtypes.NewPruningOptionsFromString(val.GetAppConfig().Pruning)), + bam.SetMinGasPrices(val.GetAppConfig().MinGasPrices), + bam.SetChainID(val.GetCtx().Viper.GetString(flags.FlagChainID)), + ) + } + + return network.TestFixture{ + AppConstructor: appCtr, + GenesisState: app.DefaultGenesis(), + EncodingConfig: testutil.TestEncodingConfig{ + InterfaceRegistry: app.InterfaceRegistry(), + Codec: app.AppCodec(), + TxConfig: app.TxConfig(), + Amino: app.LegacyAmino(), + }, + } +} diff --git a/app/upgrades.go b/app/upgrades.go new file mode 100644 index 0000000..5045c67 --- /dev/null +++ b/app/upgrades.go @@ -0,0 +1,44 @@ +package app + +import ( + "context" + + storetypes "cosmossdk.io/store/types" + circuittypes "cosmossdk.io/x/circuit/types" + upgradetypes "cosmossdk.io/x/upgrade/types" + + "github.com/cosmos/cosmos-sdk/types/module" +) + +// UpgradeName defines the on-chain upgrade name for the sample App upgrade +// from v047 to v050. +// +// NOTE: This upgrade defines a reference implementation of what an upgrade +// could look like when an application is migrating from Cosmos SDK version +// v0.47.x to v0.50.x. +const UpgradeName = "v047-to-v050" + +func (app App) RegisterUpgradeHandlers() { + app.UpgradeKeeper.SetUpgradeHandler( + UpgradeName, + func(ctx context.Context, _ upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) { + return app.ModuleManager.RunMigrations(ctx, app.Configurator(), fromVM) + }, + ) + + upgradeInfo, err := app.UpgradeKeeper.ReadUpgradeInfoFromDisk() + if err != nil { + panic(err) + } + + if upgradeInfo.Name == UpgradeName && !app.UpgradeKeeper.IsSkipHeight(upgradeInfo.Height) { + storeUpgrades := storetypes.StoreUpgrades{ + Added: []string{ + circuittypes.ModuleName, + }, + } + + // configure store loader that checks if version == upgradeHeight and applies store upgrades + app.SetStoreLoader(upgradetypes.UpgradeStoreLoader(upgradeInfo.Height, &storeUpgrades)) + } +} diff --git a/go.work b/go.work index 1a4ca76..46d2c52 100644 --- a/go.work +++ b/go.work @@ -1,5 +1,6 @@ go 1.21 use ( + ./app ./x/escrow ) diff --git a/go.work.sum b/go.work.sum index 180453e..b6f893c 100644 --- a/go.work.sum +++ b/go.work.sum @@ -1,6 +1,5 @@ 4d63.com/gocheckcompilerdirectives v1.2.1/go.mod h1:yjDJSxmDTtIHHCqX0ufRYZDL6vQtMG7tJdKVeWwsqvs= 4d63.com/gochecknoglobals v0.2.1/go.mod h1:KRE8wtJB3CXCsb1xy421JfTHIIbmT3U5ruxw2Qu8fSU= -cloud.google.com/go v0.110.10/go.mod h1:v1OoFqYxiBkUrruItNM3eT4lLByNjxmJSV/xDKJNnic= cloud.google.com/go/accessapproval v1.7.4/go.mod h1:/aTEh45LzplQgFYdQdwPMR9YdX0UlhBmvB84uAmQKUc= cloud.google.com/go/accesscontextmanager v1.8.4/go.mod h1:ParU+WbMpD34s5JFEnGAnPBYAgUHozaTmDJU7aCU9+M= cloud.google.com/go/aiplatform v1.54.0/go.mod h1:pwZMGvqe0JRkI1GWSZCtnAfrR4K1bv65IHILGA//VEU= @@ -25,8 +24,6 @@ cloud.google.com/go/channel v1.17.3/go.mod h1:QcEBuZLGGrUMm7kNj9IbU1ZfmJq2apotsV cloud.google.com/go/cloudbuild v1.15.0/go.mod h1:eIXYWmRt3UtggLnFGx4JvXcMj4kShhVzGndL1LwleEM= cloud.google.com/go/clouddms v1.7.3/go.mod h1:fkN2HQQNUYInAU3NQ3vRLkV2iWs8lIdmBKOx4nrL6Hc= cloud.google.com/go/cloudtasks v1.12.4/go.mod h1:BEPu0Gtt2dU6FxZHNqqNdGqIG86qyWKBPGnsb7udGY0= -cloud.google.com/go/compute v1.23.3/go.mod h1:VCgBUoMnIVIR0CscqQiPJLAG25E3ZRZMzcFZeQ+h8CI= -cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/contactcenterinsights v1.12.0/go.mod h1:HHX5wrz5LHVAwfI2smIotQG9x8Qd6gYilaHcLLLmNis= cloud.google.com/go/container v1.28.0/go.mod h1:b1A1gJeTBXVLQ6GGw9/9M4FG94BEGsqJ5+t4d/3N7O4= cloud.google.com/go/containeranalysis v0.11.3/go.mod h1:kMeST7yWFQMGjiG9K7Eov+fPNQcGhb8mXj/UcTiWw9U= @@ -57,7 +54,6 @@ cloud.google.com/go/gkeconnect v0.8.4/go.mod h1:84hZz4UMlDCKl8ifVW8layK4WHlMAFeq cloud.google.com/go/gkehub v0.14.4/go.mod h1:Xispfu2MqnnFt8rV/2/3o73SK1snL8s9dYJ9G2oQMfc= cloud.google.com/go/gkemulticloud v1.0.3/go.mod h1:7NpJBN94U6DY1xHIbsDqB2+TFZUfjLUKLjUX8NGLor0= cloud.google.com/go/gsuiteaddons v1.6.4/go.mod h1:rxtstw7Fx22uLOXBpsvb9DUbC+fiXs7rF4U29KHM/pE= -cloud.google.com/go/iam v1.1.5/go.mod h1:rB6P/Ic3mykPbFio+vo7403drjlgvoWfYpJhMXEbzv8= cloud.google.com/go/iap v1.9.3/go.mod h1:DTdutSZBqkkOm2HEOTBzhZxh2mwwxshfD/h3yofAiCw= cloud.google.com/go/ids v1.4.4/go.mod h1:z+WUc2eEl6S/1aZWzwtVNWoSZslgzPxAboS0lZX0HjI= cloud.google.com/go/iot v1.7.4/go.mod h1:3TWqDVvsddYBG++nHSZmluoCAVGr1hAcabbWZNKEZLk= @@ -213,7 +209,6 @@ github.com/gofrs/uuid v4.4.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRx github.com/gofrs/uuid/v5 v5.0.0/go.mod h1:CDOjlDMVAtN56jqyRUZh58JT31Tiw7/oQyEXZV+9bD8= github.com/gogo/status v1.1.0/go.mod h1:BFv9nrluPLmrS0EmGVvLaPNmRosr9KapBYd5/hpY1WM= github.com/golang-jwt/jwt/v4 v4.0.0/go.mod h1:/xlHOz8bRuivTWchD4jCa+NbatV+wEUSzwAxVc6locg= -github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golangci/check v0.0.0-20180506172741-cfe4005ccda2/go.mod h1:k9Qvh+8juN+UKMCS/3jFtGICgW8O96FVaZsaxdzDkR4= github.com/golangci/dupl v0.0.0-20180902072040-3e9179ac440a/go.mod h1:ryS0uhF+x9jgbj/N71xsEqODy9BN81/GonCZiOzirOk= github.com/golangci/go-misc v0.0.0-20220329215616-d24fe342adfe/go.mod h1:gjqyPShc/m8pEMpk0a3SeagVb0kaqvhscv+i9jI5ZhQ= @@ -225,6 +220,7 @@ github.com/golangci/misspell v0.4.0/go.mod h1:W6O/bwV6lGDxUCChm2ykw9NQdd5bYd1Xkj github.com/golangci/revgrep v0.0.0-20220804021717-745bb2f7c2e6/go.mod h1:0AKcRCkMoKvUvlf89F6O7H2LYdhr1zBh736mBItOdRs= github.com/golangci/unconvert v0.0.0-20180507085042-28b1c447d1f4/go.mod h1:Izgrg8RkN3rCIMLGE9CyYmU9pY2Jer6DgANEnZ/L/cQ= github.com/google/go-containerregistry v0.13.0/go.mod h1:J9FQ+eSS4a1aC2GNZxvNpbWhgp0487v+cgiilB4FqDo= +github.com/google/go-pkcs11 v0.2.1-0.20230907215043-c6f79328ddf9/go.mod h1:6eQoGcuNJpa7jnd5pMGdkSaQpNDYvPlXWMcjXXThLlY= github.com/google/pprof v0.0.0-20230228050547-1710fef4ab10/go.mod h1:79YE0hCXdHag9sBkw2o+N/YnZtTkXi0UT9Nnixa5eYk= github.com/google/s2a-go v0.1.3/go.mod h1:Ej+mSEMGRnqRzjc7VtF+jdBwYG5fuJfiZ8ELkjEwM0A= github.com/google/uuid v1.3.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= @@ -240,10 +236,8 @@ github.com/gotestyourself/gotestyourself v2.2.0+incompatible/go.mod h1:zZKM6oeNM github.com/guptarohit/asciigraph v0.5.5/go.mod h1:dYl5wwK4gNsnFf9Zp+l06rFiDZ5YtXM6x7SRWZ3KGag= github.com/hashicorp/consul/api v1.20.0/go.mod h1:nR64eD44KQ59Of/ECwt2vUmIK2DKsDzAwTmwmLl8Wpo= github.com/hashicorp/errwrap v1.1.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= -github.com/hashicorp/go-cleanhttp v0.5.2/go.mod h1:kO/YDlP8L1346E6Sodw+PrpBSV4/SoxCXGY6BqNFT48= github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM= github.com/hashicorp/go-rootcerts v1.0.2/go.mod h1:pqUvnprVnM5bf7AOirdbb01K4ccR319Vf4pU3K5EGc8= -github.com/hashicorp/go-version v1.6.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/hashicorp/serf v0.10.1/go.mod h1:yL2t6BqATOLGc5HF7qbFkTfXoPIY0WZdWHfEvMqbG+4= github.com/hexops/gotextdiff v1.0.3/go.mod h1:pSWU5MAI3yDq+fZBTazCSJysOMbxWL1BSow5/V2vxeg= github.com/hudl/fargo v1.4.0/go.mod h1:9Ai6uvFy5fQNq6VPKtg+Ceq1+eTY4nKUlR2JElEOcDo= @@ -258,7 +252,6 @@ github.com/jgautheron/goconst v1.5.1/go.mod h1:aAosetZ5zaeC/2EfMeRswtxUFBpe2Hr7H github.com/jingyugao/rowserrcheck v1.1.1/go.mod h1:4yvlZSDb3IyDTUZJUmpZfm2Hwok+Dtp+nu2qOq+er9c= github.com/jinzhu/copier v0.3.5/go.mod h1:DfbEm0FYsaqBcKcFuvmOZb218JkPGtvSHsKg8S8hyyg= github.com/jirfag/go-printf-func-name v0.0.0-20200119135958-7558a9eaa5af/go.mod h1:HEWGJkRDzjJY2sqdDwxccsGicWEf9BQOZsq2tV+xzM0= -github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo= github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFFd8Hwg//Y= github.com/julz/importas v0.1.0/go.mod h1:oSFU2R4XK/P7kNBrnL/FEQlDGN1/6WoxXEjSSXO0DV0= github.com/junk1tm/musttag v0.5.0/go.mod h1:PcR7BA+oREQYvHwgjIDmw3exJeds5JzRcvEJTfjrA0M= @@ -374,7 +367,6 @@ go.etcd.io/etcd/client/pkg/v3 v3.5.9/go.mod h1:y+CzeSmkMpWN2Jyu1npecjB9BBnABxGM4 go.etcd.io/etcd/client/v2 v2.305.7/go.mod h1:GQGT5Z3TBuAQGvgPfhR7VPySu/SudxmEkRq9BgzFU6s= go.etcd.io/etcd/client/v3 v3.5.9/go.mod h1:i/Eo5LrZ5IKqpbtpPDuaUnDOUv471oDg8cjQaUr2MbA= go.etcd.io/gofail v0.1.0/go.mod h1:VZBCXYGZhHAinaBiiqYvuDynvahNsAyLFwB3kEHKz1M= -go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= go.opentelemetry.io/otel v1.14.0/go.mod h1:o4buv+dJzx8rohcUeRmWUZhqupFvzWis188WlggnNeU= go.opentelemetry.io/otel/sdk v1.14.0/go.mod h1:bwIC5TjrNG6QDCHNWvW4HLHtUQ4I+VQDsnjhvyZCALM= go.opentelemetry.io/otel/trace v1.14.0/go.mod h1:8avnQLK+CG77yNLUae4ea2JDQ6iT+gozhnZjy/rw9G8= @@ -382,13 +374,11 @@ go.uber.org/atomic v1.10.0/go.mod h1:LUxbIzbOniOlMKjJjyPfpl4v+PKK2cNJn91OQbhoJI0 go.uber.org/multierr v1.10.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= go.uber.org/zap v1.24.0/go.mod h1:2kMP+WWQ8aoFoedH3T2sq6iJ2yDWpHbP0f6MQbS9Gkg= golang.org/x/exp/typeparams v0.0.0-20230224173230-c95f2b4c22f2/go.mod h1:AbB0pIl9nAr9wVwH+Z2ZpaocVmF5I4GyWCDIsVjR0bk= -golang.org/x/oauth2 v0.13.0/go.mod h1:/JMhi4ZRXAf4HG9LiNmxvk+45+96RUlVThiH8FzNBn0= golang.org/x/perf v0.0.0-20230113213139-801c7ef9e5c5/go.mod h1:UBKtEnL8aqnd+0JHqZ+2qoMDwtuy6cYhhKNoHLBiTQc= golang.org/x/time v0.3.0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= gonum.org/v1/gonum v0.12.0/go.mod h1:73TDxJfAAHeA8Mk9mf8NlIppyhQNo5GLTcYeqgo2lvY= google.golang.org/api v0.122.0/go.mod h1:gcitW0lvnyWjSp9nKxAbdHKIZ6vF4aajGueeslZOyms= -google.golang.org/appengine v1.6.8/go.mod h1:1jJ3jBArFh5pcgW8gCtRJnepW8FzD1V44FJffLiz/Ds= +google.golang.org/genproto/googleapis/bytestream v0.0.0-20231030173426-d783a09b4405/go.mod h1:GRUCuLdzVqZte8+Dl/D4N25yLzcGqqWaYkeVOwulFqw= gotest.tools v2.2.0+incompatible h1:VsBPFP1AI068pPrMxtb/S8Zkgf9xEmTLJjfM+P5UIEo= gotest.tools v2.2.0+incompatible/go.mod h1:DsYFclhRJ6vuDpmuTbkuFWG+y2sxOXAzmJt81HFBacw= honnef.co/go/tools v0.4.3/go.mod h1:36ZgoUOrqOk1GxwHhyryEkq8FQWkUO2xGuSMhUCcdvA= From 990ce3ad6bad12daeb1d456306db9a51c33644cc Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Sun, 21 Jan 2024 08:33:02 +0000 Subject: [PATCH 03/62] Implement cmd --- cmd/and/.golangci.yaml | 25 + cmd/and/cmd/commands.go | 263 ++++++ cmd/and/cmd/root.go | 131 +++ cmd/and/cmd/testnet.go | 535 ++++++++++++ cmd/and/go.mod | 198 +++++ cmd/and/go.sum | 1713 +++++++++++++++++++++++++++++++++++++++ cmd/and/main.go | 19 + go.work | 1 + 8 files changed, 2885 insertions(+) create mode 100644 cmd/and/.golangci.yaml create mode 100644 cmd/and/cmd/commands.go create mode 100644 cmd/and/cmd/root.go create mode 100644 cmd/and/cmd/testnet.go create mode 100644 cmd/and/go.mod create mode 100644 cmd/and/go.sum create mode 100644 cmd/and/main.go diff --git a/cmd/and/.golangci.yaml b/cmd/and/.golangci.yaml new file mode 100644 index 0000000..710936a --- /dev/null +++ b/cmd/and/.golangci.yaml @@ -0,0 +1,25 @@ +linters: + enable: + - depguard + - dogsled + - exportloopref + - goconst + - gocritic + - gofumpt + - gosec + - misspell + - nakedret + - nolintlint + - revive + - stylecheck + - unconvert + +linters-settings: + gci: + custom-order: true + sections: + - standard + - default + - prefix(cosmossdk.io) + - prefix(github.com/cosmos/cosmos-sdk) + - prefix(github.com/0tech/andromeda) diff --git a/cmd/and/cmd/commands.go b/cmd/and/cmd/commands.go new file mode 100644 index 0000000..5145c4e --- /dev/null +++ b/cmd/and/cmd/commands.go @@ -0,0 +1,263 @@ +package cmd + +import ( + "errors" + "io" + "os" + + cmtcfg "github.com/cometbft/cometbft/config" + dbm "github.com/cosmos/cosmos-db" + "github.com/spf13/cobra" + "github.com/spf13/viper" + + "cosmossdk.io/log" + confixcmd "cosmossdk.io/tools/confix/cmd" + + "github.com/cosmos/cosmos-sdk/client" + "github.com/cosmos/cosmos-sdk/client/debug" + "github.com/cosmos/cosmos-sdk/client/flags" + "github.com/cosmos/cosmos-sdk/client/keys" + "github.com/cosmos/cosmos-sdk/client/pruning" + "github.com/cosmos/cosmos-sdk/client/rpc" + "github.com/cosmos/cosmos-sdk/client/snapshot" + "github.com/cosmos/cosmos-sdk/codec" + codectypes "github.com/cosmos/cosmos-sdk/codec/types" + "github.com/cosmos/cosmos-sdk/server" + serverconfig "github.com/cosmos/cosmos-sdk/server/config" + servertypes "github.com/cosmos/cosmos-sdk/server/types" + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/types/module" + authcmd "github.com/cosmos/cosmos-sdk/x/auth/client/cli" + banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" + "github.com/cosmos/cosmos-sdk/x/crisis" + genutilcli "github.com/cosmos/cosmos-sdk/x/genutil/client/cli" + + "github.com/0tech/andromeda/app" +) + +// initCometBFTConfig helps to override default CometBFT Config values. +// return cmtcfg.DefaultConfig if no custom configuration is required for the application. +func initCometBFTConfig() *cmtcfg.Config { + cfg := cmtcfg.DefaultConfig() + + // these values put a higher strain on node memory + // cfg.P2P.MaxNumInboundPeers = 100 + // cfg.P2P.MaxNumOutboundPeers = 40 + + return cfg +} + +// initAppConfig helps to override default appConfig template and configs. +// return "", nil if no custom configuration is required for the application. +func initAppConfig() (string, interface{}) { + // The following code snippet is just for reference. + + // WASMConfig defines configuration for the wasm module. + type WASMConfig struct { + // This is the maximum sdk gas (wasm and storage) that we allow for any x/wasm "smart" queries + QueryGasLimit uint64 `mapstructure:"query_gas_limit"` + + // Address defines the gRPC-web server to listen on + LruSize uint64 `mapstructure:"lru_size"` + } + + type CustomAppConfig struct { + serverconfig.Config `mapstructure:",squash"` + + WASM WASMConfig `mapstructure:"wasm"` + } + + // Optionally allow the chain developer to overwrite the SDK's default + // server config. + srvCfg := serverconfig.DefaultConfig() + // The SDK's default minimum gas price is set to "" (empty value) inside + // app.toml. If left empty by validators, the node will halt on startup. + // However, the chain developer can set a default app.toml value for their + // validators here. + // + // In summary: + // - if you leave srvCfg.MinGasPrices = "", all validators MUST tweak their + // own app.toml config, + // - if you set srvCfg.MinGasPrices non-empty, validators CAN tweak their + // own app.toml to override, or use this default value. + // + // In simapp, we set the min gas prices to 0. + srvCfg.MinGasPrices = "" + // srvCfg.BaseConfig.IAVLDisableFastNode = true // disable fastnode by default + + customAppConfig := CustomAppConfig{ + Config: *srvCfg, + WASM: WASMConfig{ + LruSize: 1, + QueryGasLimit: 300000, + }, + } + + customAppTemplate := serverconfig.DefaultConfigTemplate + ` +[wasm] +# This is the maximum sdk gas (wasm and storage) that we allow for any x/wasm "smart" queries +query_gas_limit = {{ .WASM.QueryGasLimit }} +# This is the number of wasm vm instances we keep cached in memory for speed-up +# Warning: this is currently unstable and may lead to crashes, best to keep for 0 unless testing locally +lru_size = {{ .WASM.LruSize }}` + + return customAppTemplate, customAppConfig +} + +func initRootCmd( + rootCmd *cobra.Command, + txConfig client.TxConfig, + interfaceRegistry codectypes.InterfaceRegistry, + appCodec codec.Codec, + basicManager module.BasicManager, +) { + cfg := sdk.GetConfig() + cfg.Seal() + + rootCmd.AddCommand( + genutilcli.InitCmd(basicManager, app.DefaultNodeHome), + NewTestnetCmd(basicManager, banktypes.GenesisBalancesIterator{}), + debug.Cmd(), + confixcmd.ConfigCommand(), + pruning.Cmd(newApp, app.DefaultNodeHome), + snapshot.Cmd(newApp), + ) + + server.AddCommands(rootCmd, app.DefaultNodeHome, newApp, appExport, addModuleInitFlags) + + // add keybase, auxiliary RPC, query, genesis, and tx child commands + rootCmd.AddCommand( + server.StatusCommand(), + genesisCommand(txConfig, basicManager), + queryCommand(), + txCommand(), + keys.Commands(), + ) +} + +func addModuleInitFlags(startCmd *cobra.Command) { + crisis.AddModuleInitFlags(startCmd) +} + +// genesisCommand builds genesis-related `simd genesis` command. Users may provide application specific commands as a parameter +func genesisCommand(txConfig client.TxConfig, basicManager module.BasicManager, cmds ...*cobra.Command) *cobra.Command { + cmd := genutilcli.Commands(txConfig, basicManager, app.DefaultNodeHome) + + for _, subCmd := range cmds { + cmd.AddCommand(subCmd) + } + return cmd +} + +func queryCommand() *cobra.Command { + cmd := &cobra.Command{ + Use: "query", + Aliases: []string{"q"}, + Short: "Querying subcommands", + DisableFlagParsing: false, + SuggestionsMinimumDistance: 2, + RunE: client.ValidateCmd, + } + + cmd.AddCommand( + rpc.QueryEventForTxCmd(), + server.QueryBlockCmd(), + authcmd.QueryTxsByEventsCmd(), + server.QueryBlocksCmd(), + authcmd.QueryTxCmd(), + server.QueryBlockResultsCmd(), + ) + + return cmd +} + +func txCommand() *cobra.Command { + cmd := &cobra.Command{ + Use: "tx", + Short: "Transactions subcommands", + DisableFlagParsing: false, + SuggestionsMinimumDistance: 2, + RunE: client.ValidateCmd, + } + + cmd.AddCommand( + authcmd.GetSignCommand(), + authcmd.GetSignBatchCommand(), + authcmd.GetMultiSignCommand(), + authcmd.GetMultiSignBatchCmd(), + authcmd.GetValidateSignaturesCommand(), + authcmd.GetBroadcastCommand(), + authcmd.GetEncodeCommand(), + authcmd.GetDecodeCommand(), + authcmd.GetSimulateCmd(), + ) + + return cmd +} + +// newApp creates the application +func newApp( + logger log.Logger, + db dbm.DB, + traceStore io.Writer, + appOpts servertypes.AppOptions, +) servertypes.Application { + baseappOptions := server.DefaultBaseappOptions(appOpts) + + return app.NewApp( + logger, db, traceStore, true, + appOpts, + baseappOptions..., + ) +} + +// appExport creates a new app (optionally at a given height) and exports state. +func appExport( + logger log.Logger, + db dbm.DB, + traceStore io.Writer, + height int64, + forZeroHeight bool, + jailAllowedAddrs []string, + appOpts servertypes.AppOptions, + modulesToExport []string, +) (servertypes.ExportedApp, error) { + // this check is necessary as we use the flag in x/upgrade. + // we can exit more gracefully by checking the flag here. + homePath, ok := appOpts.Get(flags.FlagHome).(string) + if !ok || homePath == "" { + return servertypes.ExportedApp{}, errors.New("application home not set") + } + + viperAppOpts, ok := appOpts.(*viper.Viper) + if !ok { + return servertypes.ExportedApp{}, errors.New("appOpts is not viper.Viper") + } + + // overwrite the FlagInvCheckPeriod + viperAppOpts.Set(server.FlagInvCheckPeriod, 1) + appOpts = viperAppOpts + + var application *app.App + if height != -1 { + application = app.NewApp(logger, db, traceStore, false, appOpts) + + if err := application.LoadHeight(height); err != nil { + return servertypes.ExportedApp{}, err + } + } else { + application = app.NewApp(logger, db, traceStore, true, appOpts) + } + + return application.ExportAppStateAndValidators(forZeroHeight, jailAllowedAddrs, modulesToExport) +} + +var tempDir = func() string { + dir, err := os.MkdirTemp("", "andromeda") + if err != nil { + dir = app.DefaultNodeHome + } + defer os.RemoveAll(dir) + + return dir +} diff --git a/cmd/and/cmd/root.go b/cmd/and/cmd/root.go new file mode 100644 index 0000000..85039cd --- /dev/null +++ b/cmd/and/cmd/root.go @@ -0,0 +1,131 @@ +package cmd + +import ( + "os" + + "github.com/spf13/cobra" + + "cosmossdk.io/client/v2/autocli" + clientv2keyring "cosmossdk.io/client/v2/autocli/keyring" + "cosmossdk.io/core/address" + "cosmossdk.io/depinject" + "cosmossdk.io/log" + + "github.com/cosmos/cosmos-sdk/client" + "github.com/cosmos/cosmos-sdk/client/config" + "github.com/cosmos/cosmos-sdk/codec" + codectypes "github.com/cosmos/cosmos-sdk/codec/types" + "github.com/cosmos/cosmos-sdk/crypto/keyring" + "github.com/cosmos/cosmos-sdk/server" + simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims" + "github.com/cosmos/cosmos-sdk/types/module" + "github.com/cosmos/cosmos-sdk/x/auth/tx" + authtxconfig "github.com/cosmos/cosmos-sdk/x/auth/tx/config" + "github.com/cosmos/cosmos-sdk/x/auth/types" + + "github.com/0tech/andromeda/app" +) + +// NewRootCmd creates a new root command for and. It is called once in the main function. +func NewRootCmd() *cobra.Command { + var ( + autoCliOpts autocli.AppOptions + moduleBasicManager module.BasicManager + clientCtx client.Context + ) + + if err := depinject.Inject( + depinject.Configs(app.AppConfig, + depinject.Supply( + log.NewNopLogger(), + simtestutil.NewAppOptionsWithFlagHome(tempDir()), + ), + depinject.Provide( + ProvideClientContext, + ProvideKeyring, + ), + ), + &autoCliOpts, + &moduleBasicManager, + &clientCtx, + ); err != nil { + panic(err) + } + + rootCmd := &cobra.Command{ + Use: "and", + Short: "andromeda app", + SilenceErrors: true, + PersistentPreRunE: func(cmd *cobra.Command, _ []string) error { + // set the default command outputs + cmd.SetOut(cmd.OutOrStdout()) + cmd.SetErr(cmd.ErrOrStderr()) + + clientCtx = clientCtx.WithCmdContext(cmd.Context()) + clientCtx, err := client.ReadPersistentCommandFlags(clientCtx, cmd.Flags()) + if err != nil { + return err + } + + clientCtx, err = config.ReadFromClientConfig(clientCtx) + if err != nil { + return err + } + + if err := client.SetCmdClientContextHandler(clientCtx, cmd); err != nil { + return err + } + + customAppTemplate, customAppConfig := initAppConfig() + customCMTConfig := initCometBFTConfig() + + return server.InterceptConfigsPreRunHandler(cmd, customAppTemplate, customAppConfig, customCMTConfig) + }, + } + + initRootCmd(rootCmd, clientCtx.TxConfig, clientCtx.InterfaceRegistry, clientCtx.Codec, moduleBasicManager) + + if err := autoCliOpts.EnhanceRootCommand(rootCmd); err != nil { + panic(err) + } + + return rootCmd +} + +func ProvideClientContext( + appCodec codec.Codec, + interfaceRegistry codectypes.InterfaceRegistry, + txConfigOpts tx.ConfigOptions, + legacyAmino *codec.LegacyAmino, +) client.Context { + clientCtx := client.Context{}. + WithCodec(appCodec). + WithInterfaceRegistry(interfaceRegistry). + WithLegacyAmino(legacyAmino). + WithInput(os.Stdin). + WithAccountRetriever(types.AccountRetriever{}). + WithHomeDir(app.DefaultNodeHome). + WithViper("") // In simapp, we don't use any prefix for env variables. + + // Read the config again to overwrite the default values with the values from the config file + clientCtx, _ = config.ReadFromClientConfig(clientCtx) + + // re-create the tx config grpc instead of bank keeper + txConfigOpts.TextualCoinMetadataQueryFn = authtxconfig.NewGRPCCoinMetadataQueryFn(clientCtx) + txConfig, err := tx.NewTxConfigWithOptions(clientCtx.Codec, txConfigOpts) + if err != nil { + panic(err) + } + clientCtx = clientCtx.WithTxConfig(txConfig) + + return clientCtx +} + +func ProvideKeyring(clientCtx client.Context, addressCodec address.Codec) (clientv2keyring.Keyring, error) { + kb, err := client.NewKeyringFromBackend(clientCtx, clientCtx.Keyring.Backend()) + if err != nil { + return nil, err + } + + return keyring.NewAutoCLIKeyring(kb) +} diff --git a/cmd/and/cmd/testnet.go b/cmd/and/cmd/testnet.go new file mode 100644 index 0000000..cffd2f9 --- /dev/null +++ b/cmd/and/cmd/testnet.go @@ -0,0 +1,535 @@ +package cmd + +import ( + "bufio" + "encoding/json" + "fmt" + "net" + "os" + "path/filepath" + + cmtconfig "github.com/cometbft/cometbft/config" + cmttime "github.com/cometbft/cometbft/types/time" + "github.com/spf13/cobra" + "github.com/spf13/pflag" + + "cosmossdk.io/math" + "cosmossdk.io/math/unsafe" + + "github.com/cosmos/cosmos-sdk/client" + "github.com/cosmos/cosmos-sdk/client/flags" + "github.com/cosmos/cosmos-sdk/client/tx" + "github.com/cosmos/cosmos-sdk/crypto/hd" + "github.com/cosmos/cosmos-sdk/crypto/keyring" + cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" + "github.com/cosmos/cosmos-sdk/runtime" + "github.com/cosmos/cosmos-sdk/server" + srvconfig "github.com/cosmos/cosmos-sdk/server/config" + "github.com/cosmos/cosmos-sdk/testutil" + "github.com/cosmos/cosmos-sdk/testutil/network" + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/types/module" + authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" + banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" + "github.com/cosmos/cosmos-sdk/x/genutil" + genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types" + stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" + + "github.com/0tech/andromeda/app" +) + +var ( + flagNodeDirPrefix = "node-dir-prefix" + flagNumValidators = "v" + flagOutputDir = "output-dir" + flagNodeDaemonHome = "node-daemon-home" + flagStartingIPAddress = "starting-ip-address" + flagEnableLogging = "enable-logging" + flagGRPCAddress = "grpc.address" + flagRPCAddress = "rpc.address" + flagAPIAddress = "api.address" + flagPrintMnemonic = "print-mnemonic" +) + +type initArgs struct { + algo string + chainID string + keyringBackend string + minGasPrices string + nodeDaemonHome string + nodeDirPrefix string + numValidators int + outputDir string + startingIPAddress string +} + +type startArgs struct { + algo string + apiAddress string + chainID string + enableLogging bool + grpcAddress string + minGasPrices string + numValidators int + outputDir string + printMnemonic bool + rpcAddress string +} + +func addTestnetFlagsToCmd(cmd *cobra.Command) { + cmd.Flags().Int(flagNumValidators, 4, "Number of validators to initialize the testnet with") + cmd.Flags().StringP(flagOutputDir, "o", "./.testnets", "Directory to store initialization data for the testnet") + cmd.Flags().String(flags.FlagChainID, "", "genesis file chain-id, if left blank will be randomly created") + cmd.Flags().String(server.FlagMinGasPrices, fmt.Sprintf("0.000006%s", sdk.DefaultBondDenom), "Minimum gas prices to accept for transactions; All fees in a tx must meet this minimum (e.g. 0.01photino,0.001stake)") + cmd.Flags().String(flags.FlagKeyType, string(hd.Secp256k1Type), "Key signing algorithm to generate keys for") + + // support old flags name for backwards compatibility + cmd.Flags().SetNormalizeFunc(func(f *pflag.FlagSet, name string) pflag.NormalizedName { + if name == flags.FlagKeyAlgorithm { + name = flags.FlagKeyType + } + + return pflag.NormalizedName(name) + }) +} + +// NewTestnetCmd creates a root testnet command with subcommands to run an in-process testnet or initialize +// validator configuration files for running a multi-validator testnet in a separate process +func NewTestnetCmd(mbm module.BasicManager, genBalIterator banktypes.GenesisBalancesIterator) *cobra.Command { + testnetCmd := &cobra.Command{ + Use: "testnet", + Short: "subcommands for starting or configuring local testnets", + DisableFlagParsing: true, + SuggestionsMinimumDistance: 2, + RunE: client.ValidateCmd, + } + + testnetCmd.AddCommand(testnetStartCmd()) + testnetCmd.AddCommand(testnetInitFilesCmd(mbm, genBalIterator)) + + return testnetCmd +} + +// testnetInitFilesCmd returns a cmd to initialize all files for CometBFT testnet and application +func testnetInitFilesCmd(mbm module.BasicManager, genBalIterator banktypes.GenesisBalancesIterator) *cobra.Command { + cmd := &cobra.Command{ + Use: "init-files", + Short: "Initialize config directories & files for a multi-validator testnet running locally via separate processes (e.g. Docker Compose or similar)", + Long: `init-files will setup "v" number of directories and populate each with +necessary files (private validator, genesis, config, etc.) for running "v" validator nodes. + +Booting up a network with these validator folders is intended to be used with Docker Compose, +or a similar setup where each node has a manually configurable IP address. + +Note, strict routability for addresses is turned off in the config file. + +Example: + simd testnet init-files --v 4 --output-dir ./.testnets --starting-ip-address 192.168.10.2 + `, + RunE: func(cmd *cobra.Command, _ []string) error { + clientCtx, err := client.GetClientQueryContext(cmd) + if err != nil { + return err + } + + serverCtx := server.GetServerContextFromCmd(cmd) + config := serverCtx.Config + + args := initArgs{} + args.outputDir, _ = cmd.Flags().GetString(flagOutputDir) + args.keyringBackend, _ = cmd.Flags().GetString(flags.FlagKeyringBackend) + args.chainID, _ = cmd.Flags().GetString(flags.FlagChainID) + args.minGasPrices, _ = cmd.Flags().GetString(server.FlagMinGasPrices) + args.nodeDirPrefix, _ = cmd.Flags().GetString(flagNodeDirPrefix) + args.nodeDaemonHome, _ = cmd.Flags().GetString(flagNodeDaemonHome) + args.startingIPAddress, _ = cmd.Flags().GetString(flagStartingIPAddress) + args.numValidators, _ = cmd.Flags().GetInt(flagNumValidators) + args.algo, _ = cmd.Flags().GetString(flags.FlagKeyType) + + return initTestnetFiles(clientCtx, cmd, config, mbm, genBalIterator, clientCtx.TxConfig.SigningContext().ValidatorAddressCodec(), args) + }, + } + + addTestnetFlagsToCmd(cmd) + cmd.Flags().String(flagNodeDirPrefix, "node", "Prefix the directory name for each node with (node results in node0, node1, ...)") + cmd.Flags().String(flagNodeDaemonHome, "simd", "Home directory of the node's daemon configuration") + cmd.Flags().String(flagStartingIPAddress, "192.168.0.1", "Starting IP address (192.168.0.1 results in persistent peers list ID0@192.168.0.1:46656, ID1@192.168.0.2:46656, ...)") + cmd.Flags().String(flags.FlagKeyringBackend, flags.DefaultKeyringBackend, "Select keyring's backend (os|file|test)") + + return cmd +} + +// testnetStartCmd returns a cmd to start multi validator in-process testnet +func testnetStartCmd() *cobra.Command { + cmd := &cobra.Command{ + Use: "start", + Short: "Launch an in-process multi-validator testnet", + Long: `testnet will launch an in-process multi-validator testnet, +and generate "v" directories, populated with necessary validator configuration files +(private validator, genesis, config, etc.). + +Example: + simd testnet --v 4 --output-dir ./.testnets + `, + RunE: func(cmd *cobra.Command, _ []string) error { + args := startArgs{} + args.outputDir, _ = cmd.Flags().GetString(flagOutputDir) + args.chainID, _ = cmd.Flags().GetString(flags.FlagChainID) + args.minGasPrices, _ = cmd.Flags().GetString(server.FlagMinGasPrices) + args.numValidators, _ = cmd.Flags().GetInt(flagNumValidators) + args.algo, _ = cmd.Flags().GetString(flags.FlagKeyType) + args.enableLogging, _ = cmd.Flags().GetBool(flagEnableLogging) + args.rpcAddress, _ = cmd.Flags().GetString(flagRPCAddress) + args.apiAddress, _ = cmd.Flags().GetString(flagAPIAddress) + args.grpcAddress, _ = cmd.Flags().GetString(flagGRPCAddress) + args.printMnemonic, _ = cmd.Flags().GetBool(flagPrintMnemonic) + + return startTestnet(cmd, args) + }, + } + + addTestnetFlagsToCmd(cmd) + cmd.Flags().Bool(flagEnableLogging, false, "Enable INFO logging of CometBFT validator nodes") + cmd.Flags().String(flagRPCAddress, "tcp://0.0.0.0:26657", "the RPC address to listen on") + cmd.Flags().String(flagAPIAddress, "tcp://0.0.0.0:1317", "the address to listen on for REST API") + cmd.Flags().String(flagGRPCAddress, "0.0.0.0:9090", "the gRPC server address to listen on") + cmd.Flags().Bool(flagPrintMnemonic, true, "print mnemonic of first validator to stdout for manual testing") + return cmd +} + +const nodeDirPerm = 0o755 + +// initTestnetFiles initializes testnet files for a testnet to be run in a separate process +func initTestnetFiles( + clientCtx client.Context, + cmd *cobra.Command, + nodeConfig *cmtconfig.Config, + mbm module.BasicManager, + genBalIterator banktypes.GenesisBalancesIterator, + valAddrCodec runtime.ValidatorAddressCodec, + args initArgs, +) error { + if args.chainID == "" { + args.chainID = "chain-" + unsafe.Str(6) + } + nodeIDs := make([]string, args.numValidators) + valPubKeys := make([]cryptotypes.PubKey, args.numValidators) + + appConfig := srvconfig.DefaultConfig() + appConfig.MinGasPrices = args.minGasPrices + appConfig.API.Enable = true + appConfig.Telemetry.Enabled = true + appConfig.Telemetry.PrometheusRetentionTime = 60 + appConfig.Telemetry.EnableHostnameLabel = false + appConfig.Telemetry.GlobalLabels = [][]string{{"chain_id", args.chainID}} + + var ( + genAccounts []authtypes.GenesisAccount + genBalances []banktypes.Balance + genFiles []string + ) + + inBuf := bufio.NewReader(cmd.InOrStdin()) + // generate private keys, node IDs, and initial transactions + for i := 0; i < args.numValidators; i++ { + nodeDirName := fmt.Sprintf("%s%d", args.nodeDirPrefix, i) + nodeDir := filepath.Join(args.outputDir, nodeDirName, args.nodeDaemonHome) + gentxsDir := filepath.Join(args.outputDir, "gentxs") + + nodeConfig.SetRoot(nodeDir) + nodeConfig.Moniker = nodeDirName + nodeConfig.RPC.ListenAddress = "tcp://0.0.0.0:26657" + + if err := os.MkdirAll(filepath.Join(nodeDir, "config"), nodeDirPerm); err != nil { + _ = os.RemoveAll(args.outputDir) + return err + } + + ip, err := getIP(i, args.startingIPAddress) + if err != nil { + _ = os.RemoveAll(args.outputDir) + return err + } + + nodeIDs[i], valPubKeys[i], err = genutil.InitializeNodeValidatorFiles(nodeConfig) + if err != nil { + _ = os.RemoveAll(args.outputDir) + return err + } + + memo := fmt.Sprintf("%s@%s:26656", nodeIDs[i], ip) + genFiles = append(genFiles, nodeConfig.GenesisFile()) + + kb, err := keyring.New(sdk.KeyringServiceName(), args.keyringBackend, nodeDir, inBuf, clientCtx.Codec) + if err != nil { + return err + } + + keyringAlgos, _ := kb.SupportedAlgorithms() + algo, err := keyring.NewSigningAlgoFromString(args.algo, keyringAlgos) + if err != nil { + return err + } + + addr, secret, err := testutil.GenerateSaveCoinKey(kb, nodeDirName, "", true, algo) + if err != nil { + _ = os.RemoveAll(args.outputDir) + return err + } + + info := map[string]string{"secret": secret} + + cliPrint, err := json.Marshal(info) + if err != nil { + return err + } + + // save private key seed words + if err := writeFile(fmt.Sprintf("%v.json", "key_seed"), nodeDir, cliPrint); err != nil { + return err + } + + accTokens := sdk.TokensFromConsensusPower(1000, sdk.DefaultPowerReduction) + accStakingTokens := sdk.TokensFromConsensusPower(500, sdk.DefaultPowerReduction) + coins := sdk.Coins{ + sdk.NewCoin("testtoken", accTokens), + sdk.NewCoin(sdk.DefaultBondDenom, accStakingTokens), + } + + genBalances = append(genBalances, banktypes.Balance{Address: addr.String(), Coins: coins.Sort()}) + genAccounts = append(genAccounts, authtypes.NewBaseAccount(addr, nil, 0, 0)) + + valStr, err := valAddrCodec.BytesToString(sdk.ValAddress(addr)) + if err != nil { + return err + } + valTokens := sdk.TokensFromConsensusPower(100, sdk.DefaultPowerReduction) + createValMsg, err := stakingtypes.NewMsgCreateValidator( + valStr, + valPubKeys[i], + sdk.NewCoin(sdk.DefaultBondDenom, valTokens), + stakingtypes.NewDescription(nodeDirName, "", "", "", ""), + stakingtypes.NewCommissionRates(math.LegacyOneDec(), math.LegacyOneDec(), math.LegacyOneDec()), + math.OneInt(), + ) + if err != nil { + return err + } + + txBuilder := clientCtx.TxConfig.NewTxBuilder() + if err := txBuilder.SetMsgs(createValMsg); err != nil { + return err + } + + txBuilder.SetMemo(memo) + + txFactory := tx.Factory{} + txFactory = txFactory. + WithChainID(args.chainID). + WithMemo(memo). + WithKeybase(kb). + WithTxConfig(clientCtx.TxConfig) + + if err := tx.Sign(cmd.Context(), txFactory, nodeDirName, txBuilder, true); err != nil { + return err + } + + txBz, err := clientCtx.TxConfig.TxJSONEncoder()(txBuilder.GetTx()) + if err != nil { + return err + } + + if err := writeFile(fmt.Sprintf("%v.json", nodeDirName), gentxsDir, txBz); err != nil { + return err + } + + srvconfig.SetConfigTemplate(srvconfig.DefaultConfigTemplate) + srvconfig.WriteConfigFile(filepath.Join(nodeDir, "config", "app.toml"), appConfig) + } + + if err := initGenFiles(clientCtx, mbm, args.chainID, genAccounts, genBalances, genFiles, args.numValidators); err != nil { + return err + } + + err := collectGenFiles( + clientCtx, nodeConfig, args.chainID, nodeIDs, valPubKeys, args.numValidators, + args.outputDir, args.nodeDirPrefix, args.nodeDaemonHome, genBalIterator, valAddrCodec, + ) + if err != nil { + return err + } + + cmd.PrintErrf("Successfully initialized %d node directories\n", args.numValidators) + return nil +} + +func initGenFiles( + clientCtx client.Context, mbm module.BasicManager, chainID string, + genAccounts []authtypes.GenesisAccount, genBalances []banktypes.Balance, + genFiles []string, numValidators int, +) error { + appGenState := mbm.DefaultGenesis(clientCtx.Codec) + + // set the accounts in the genesis state + var authGenState authtypes.GenesisState + clientCtx.Codec.MustUnmarshalJSON(appGenState[authtypes.ModuleName], &authGenState) + + accounts, err := authtypes.PackAccounts(genAccounts) + if err != nil { + return err + } + + authGenState.Accounts = accounts + appGenState[authtypes.ModuleName] = clientCtx.Codec.MustMarshalJSON(&authGenState) + + // set the balances in the genesis state + var bankGenState banktypes.GenesisState + clientCtx.Codec.MustUnmarshalJSON(appGenState[banktypes.ModuleName], &bankGenState) + + bankGenState.Balances = banktypes.SanitizeGenesisBalances(genBalances) + for _, bal := range bankGenState.Balances { + bankGenState.Supply = bankGenState.Supply.Add(bal.Coins...) + } + appGenState[banktypes.ModuleName] = clientCtx.Codec.MustMarshalJSON(&bankGenState) + + appGenStateJSON, err := json.MarshalIndent(appGenState, "", " ") + if err != nil { + return err + } + + appGenesis := genutiltypes.NewAppGenesisWithVersion(chainID, appGenStateJSON) + // generate empty genesis files for each validator and save + for i := 0; i < numValidators; i++ { + if err := appGenesis.SaveAs(genFiles[i]); err != nil { + return err + } + } + return nil +} + +func collectGenFiles( + clientCtx client.Context, nodeConfig *cmtconfig.Config, chainID string, + nodeIDs []string, valPubKeys []cryptotypes.PubKey, numValidators int, + outputDir, nodeDirPrefix, nodeDaemonHome string, genBalIterator banktypes.GenesisBalancesIterator, valAddrCodec runtime.ValidatorAddressCodec, +) error { + var appState json.RawMessage + genTime := cmttime.Now() + + for i := 0; i < numValidators; i++ { + nodeDirName := fmt.Sprintf("%s%d", nodeDirPrefix, i) + nodeDir := filepath.Join(outputDir, nodeDirName, nodeDaemonHome) + gentxsDir := filepath.Join(outputDir, "gentxs") + nodeConfig.Moniker = nodeDirName + + nodeConfig.SetRoot(nodeDir) + + nodeID, valPubKey := nodeIDs[i], valPubKeys[i] + initCfg := genutiltypes.NewInitConfig(chainID, gentxsDir, nodeID, valPubKey) + + appGenesis, err := genutiltypes.AppGenesisFromFile(nodeConfig.GenesisFile()) + if err != nil { + return err + } + + nodeAppState, err := genutil.GenAppStateFromConfig(clientCtx.Codec, clientCtx.TxConfig, nodeConfig, initCfg, appGenesis, genBalIterator, genutiltypes.DefaultMessageValidator, + valAddrCodec) + if err != nil { + return err + } + + if appState == nil { + // set the canonical application state (they should not differ) + appState = nodeAppState + } + + genFile := nodeConfig.GenesisFile() + + // overwrite each validator's genesis file to have a canonical genesis time + if err := genutil.ExportGenesisFileWithTime(genFile, chainID, nil, appState, genTime); err != nil { + return err + } + } + + return nil +} + +func getIP(i int, startingIPAddr string) (ip string, err error) { + if len(startingIPAddr) == 0 { + ip, err = server.ExternalIP() + if err != nil { + return "", err + } + return ip, nil + } + return calculateIP(startingIPAddr, i) +} + +func calculateIP(ip string, i int) (string, error) { + ipv4 := net.ParseIP(ip).To4() + if ipv4 == nil { + return "", fmt.Errorf("%v: non ipv4 address", ip) + } + + for j := 0; j < i; j++ { + ipv4[3]++ + } + + return ipv4.String(), nil +} + +func writeFile(name, dir string, contents []byte) error { + file := filepath.Join(dir, name) + + if err := os.MkdirAll(dir, 0o755); err != nil { + return fmt.Errorf("could not create directory %q: %w", dir, err) + } + + if err := os.WriteFile(file, contents, 0o600); err != nil { + return err + } + + return nil +} + +// startTestnet starts an in-process testnet +func startTestnet(cmd *cobra.Command, args startArgs) error { + networkConfig := network.DefaultConfig(app.NewTestNetworkFixture) + + // Default networkConfig.ChainID is random, and we should only override it if chainID provided + // is non-empty + if args.chainID != "" { + networkConfig.ChainID = args.chainID + } + networkConfig.SigningAlgo = args.algo + networkConfig.MinGasPrices = args.minGasPrices + networkConfig.NumValidators = args.numValidators + networkConfig.EnableLogging = args.enableLogging + networkConfig.RPCAddress = args.rpcAddress + networkConfig.APIAddress = args.apiAddress + networkConfig.GRPCAddress = args.grpcAddress + networkConfig.PrintMnemonic = args.printMnemonic + networkLogger := network.NewCLILogger(cmd) + + baseDir := fmt.Sprintf("%s/%s", args.outputDir, networkConfig.ChainID) + if _, err := os.Stat(baseDir); !os.IsNotExist(err) { + return fmt.Errorf( + "testnests directory already exists for chain-id '%s': %s, please remove or select a new --chain-id", + networkConfig.ChainID, baseDir) + } + + testnet, err := network.New(networkLogger, baseDir, networkConfig) + if err != nil { + return err + } + + if _, err := testnet.WaitForHeight(1); err != nil { + return err + } + cmd.Println("press the Enter Key to terminate") + if _, err := fmt.Scanln(); err != nil { // wait for Enter Key + return err + } + testnet.Cleanup() + + return nil +} diff --git a/cmd/and/go.mod b/cmd/and/go.mod new file mode 100644 index 0000000..1b50bd3 --- /dev/null +++ b/cmd/and/go.mod @@ -0,0 +1,198 @@ +module github.com/0tech/andromeda/cmd/and + +go 1.21 + +require ( + cosmossdk.io/client/v2 v2.0.0-20231103103049-f73a17f75727 + cosmossdk.io/core v0.11.0 + cosmossdk.io/depinject v1.0.0-alpha.4 + cosmossdk.io/log v1.3.0 + cosmossdk.io/math v1.2.0 + cosmossdk.io/tools/confix v0.0.0-20230925151519-64e0e8980834 + github.com/0tech/andromeda/app v0.0.0-00010101000000-000000000000 + github.com/cometbft/cometbft v0.38.2 + github.com/cosmos/cosmos-db v1.0.0 + github.com/cosmos/cosmos-sdk v0.50.3 + github.com/spf13/cobra v1.7.0 + github.com/spf13/pflag v1.0.5 + github.com/spf13/viper v1.16.0 +) + +require ( + cloud.google.com/go v0.110.10 // indirect + cloud.google.com/go/compute v1.23.3 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect + cloud.google.com/go/iam v1.1.5 // indirect + cloud.google.com/go/storage v1.30.1 // indirect + cosmossdk.io/api v0.7.2 // indirect + cosmossdk.io/collections v0.4.0 // indirect + cosmossdk.io/errors v1.0.1 // indirect + cosmossdk.io/store v1.0.2 // indirect + cosmossdk.io/x/circuit v0.0.0-20230925151519-64e0e8980834 // indirect + cosmossdk.io/x/evidence v0.0.0-20230925151519-64e0e8980834 // indirect + cosmossdk.io/x/feegrant v0.0.0-20230925151519-64e0e8980834 // indirect + cosmossdk.io/x/nft v0.0.0-20230925151519-64e0e8980834 // indirect + cosmossdk.io/x/tx v0.13.0 // indirect + cosmossdk.io/x/upgrade v0.0.0-20230925151519-64e0e8980834 // indirect + filippo.io/edwards25519 v1.0.0 // indirect + github.com/0tech/andromeda/x/escrow v0.0.0-00010101000000-000000000000 // 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/aws/aws-sdk-go v1.44.224 // indirect + github.com/beorn7/perks v1.0.1 // indirect + github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect + github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816 // indirect + github.com/bits-and-blooms/bitset v1.8.0 // indirect + github.com/btcsuite/btcd/btcec/v2 v2.3.2 // indirect + github.com/cenkalti/backoff/v4 v4.1.3 // indirect + github.com/cespare/xxhash v1.1.0 // indirect + github.com/cespare/xxhash/v2 v2.2.0 // indirect + github.com/chzyer/readline v1.5.1 // indirect + github.com/cockroachdb/apd/v2 v2.0.2 // indirect + github.com/cockroachdb/errors v1.11.1 // indirect + github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b // indirect + github.com/cockroachdb/pebble v0.0.0-20231101195458-481da04154d6 // indirect + github.com/cockroachdb/redact v1.1.5 // indirect + github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06 // indirect + github.com/cometbft/cometbft-db v0.9.1 // indirect + github.com/cosmos/btcutil v1.0.5 // indirect + github.com/cosmos/cosmos-proto v1.0.0-beta.3 // indirect + github.com/cosmos/go-bip39 v1.0.0 // indirect + github.com/cosmos/gogogateway v1.2.0 // indirect + github.com/cosmos/gogoproto v1.4.11 // indirect + github.com/cosmos/iavl v1.0.0 // indirect + github.com/cosmos/ics23/go v0.10.0 // indirect + github.com/cosmos/ledger-cosmos-go v0.13.3 // indirect + github.com/creachadair/atomicfile v0.3.1 // indirect + github.com/creachadair/tomledit v0.0.24 // indirect + github.com/danieljoos/wincred v1.1.2 // indirect + github.com/davecgh/go-spew v1.1.1 // indirect + github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.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 + github.com/dustin/go-humanize v1.0.1 // indirect + github.com/dvsekhvalnov/jose2go v1.5.0 // indirect + github.com/emicklei/dot v1.6.0 // indirect + github.com/fatih/color v1.15.0 // indirect + github.com/felixge/httpsnoop v1.0.2 // indirect + github.com/fsnotify/fsnotify v1.6.0 // indirect + github.com/getsentry/sentry-go v0.25.0 // indirect + github.com/go-kit/kit v0.12.0 // indirect + github.com/go-kit/log v0.2.1 // indirect + github.com/go-logfmt/logfmt v0.6.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.0 // indirect + github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect + github.com/golang/mock v1.6.0 // indirect + github.com/golang/protobuf v1.5.3 // indirect + github.com/golang/snappy v0.0.4 // indirect + github.com/google/btree v1.1.2 // indirect + github.com/google/go-cmp v0.6.0 // indirect + github.com/google/orderedcode v0.0.1 // indirect + github.com/google/s2a-go v0.1.7 // indirect + github.com/google/uuid v1.4.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.3.2 // indirect + github.com/googleapis/gax-go/v2 v2.12.0 // indirect + github.com/gorilla/handlers v1.5.1 // indirect + github.com/gorilla/mux v1.8.0 // indirect + github.com/gorilla/websocket v1.5.0 // 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-cleanhttp v0.5.2 // indirect + github.com/hashicorp/go-getter v1.7.1 // 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.1 // indirect + github.com/hashicorp/go-plugin v1.5.2 // indirect + github.com/hashicorp/go-safetemp v1.0.0 // indirect + github.com/hashicorp/go-version v1.6.0 // 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/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/jmespath/go-jmespath v0.4.0 // indirect + github.com/jmhodges/levigo v1.0.0 // indirect + github.com/klauspost/compress v1.17.4 // indirect + github.com/kr/pretty v0.3.1 // indirect + github.com/kr/text v0.2.0 // indirect + github.com/lib/pq v1.10.7 // indirect + github.com/libp2p/go-buffer-pool v0.1.0 // indirect + github.com/linxGnu/grocksdb v1.8.6 // indirect + github.com/magiconair/properties v1.8.7 // indirect + github.com/manifoldco/promptui v0.9.0 // indirect + github.com/mattn/go-colorable v0.1.13 // indirect + github.com/mattn/go-isatty v0.0.20 // indirect + github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0 // indirect + github.com/minio/highwayhash v1.0.2 // indirect + github.com/mitchellh/go-homedir v1.1.0 // indirect + github.com/mitchellh/go-testing-interface v1.14.1 // indirect + github.com/mitchellh/mapstructure v1.5.0 // indirect + github.com/mtibben/percent v0.2.1 // indirect + github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a // indirect + github.com/oklog/run v1.1.0 // indirect + github.com/pelletier/go-toml/v2 v2.1.0 // indirect + github.com/petermattis/goid v0.0.0-20230904192822-1876fd5063bc // indirect + github.com/pkg/errors v0.9.1 // indirect + github.com/pmezard/go-difflib v1.0.0 // indirect + github.com/prometheus/client_golang v1.17.0 // indirect + github.com/prometheus/client_model v0.5.0 // indirect + github.com/prometheus/common v0.45.0 // indirect + github.com/prometheus/procfs v0.12.0 // indirect + github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect + github.com/rogpeppe/go-internal v1.11.0 // indirect + github.com/rs/cors v1.8.3 // indirect + github.com/rs/zerolog v1.31.0 // indirect + github.com/sasha-s/go-deadlock v0.3.1 // indirect + github.com/spf13/afero v1.9.5 // indirect + github.com/spf13/cast v1.5.1 // indirect + github.com/spf13/jwalterweatherman v1.1.0 // indirect + github.com/stretchr/testify v1.8.4 // indirect + github.com/subosito/gotenv v1.4.2 // indirect + github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d // indirect + github.com/tendermint/go-amino v0.16.0 // indirect + github.com/tidwall/btree v1.7.0 // indirect + github.com/ulikunitz/xz v0.5.11 // indirect + github.com/zondax/hid v0.9.2 // indirect + github.com/zondax/ledger-go v0.14.3 // indirect + go.etcd.io/bbolt v1.3.8 // indirect + go.opencensus.io v0.24.0 // indirect + golang.org/x/crypto v0.16.0 // indirect + golang.org/x/exp v0.0.0-20231006140011-7918f672742d // indirect + golang.org/x/net v0.19.0 // indirect + golang.org/x/oauth2 v0.13.0 // indirect + golang.org/x/sync v0.4.0 // indirect + golang.org/x/sys v0.15.0 // indirect + golang.org/x/term v0.15.0 // indirect + golang.org/x/text v0.14.0 // indirect + golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect + google.golang.org/api v0.149.0 // indirect + google.golang.org/appengine v1.6.8 // indirect + google.golang.org/genproto v0.0.0-20231211222908-989df2bf70f3 // indirect + google.golang.org/genproto/googleapis/api v0.0.0-20231120223509-83a465c0220f // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20231212172506-995d672761c0 // indirect + google.golang.org/grpc v1.60.1 // indirect + google.golang.org/protobuf v1.32.0 // indirect + gopkg.in/ini.v1 v1.67.0 // indirect + gopkg.in/yaml.v2 v2.4.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 + sigs.k8s.io/yaml v1.3.0 // indirect +) + +replace ( + github.com/0tech/andromeda/app => ../../app + github.com/0tech/andromeda/x/escrow => ../../x/escrow +) diff --git a/cmd/and/go.sum b/cmd/and/go.sum new file mode 100644 index 0000000..5839a7a --- /dev/null +++ b/cmd/and/go.sum @@ -0,0 +1,1713 @@ +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.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= +cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU= +cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= +cloud.google.com/go v0.44.3/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= +cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc= +cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0= +cloud.google.com/go v0.50.0/go.mod h1:r9sluTvynVuxRIOHXQEHMFffphuXHOMZMycpNR5e6To= +cloud.google.com/go v0.52.0/go.mod h1:pXajvRH/6o3+F9jDHZWQ5PbGhn+o8w9qiu/CffaVdO4= +cloud.google.com/go v0.53.0/go.mod h1:fp/UouUEsRkN6ryDKNW/Upv/JBKnv6WDthjR6+vze6M= +cloud.google.com/go v0.54.0/go.mod h1:1rq2OEkV3YMf6n/9ZvGWI3GWw0VoqH/1x2nd8Is/bPc= +cloud.google.com/go v0.56.0/go.mod h1:jr7tqZxxKOVYizybht9+26Z/gUq7tiRzu+ACVAMbKVk= +cloud.google.com/go v0.57.0/go.mod h1:oXiQ6Rzq3RAkkY7N6t3TcE6jE+CIBBbA36lwQ1JyzZs= +cloud.google.com/go v0.62.0/go.mod h1:jmCYTdRCQuc1PHIIJ/maLInMho30T/Y0M4hTdTShOYc= +cloud.google.com/go v0.65.0/go.mod h1:O5N8zS7uWy9vkA9vayVHs65eM1ubvY4h553ofrNHObY= +cloud.google.com/go v0.72.0/go.mod h1:M+5Vjvlc2wnp6tjzE102Dw08nGShTscUx2nZMufOKPI= +cloud.google.com/go v0.74.0/go.mod h1:VV1xSbzvo+9QJOxLDaJfTjx5e+MePCpCWwvftOeQmWk= +cloud.google.com/go v0.75.0/go.mod h1:VGuuCn7PG0dwsd5XPVm2Mm3wlh3EL55/79EKB6hlPTY= +cloud.google.com/go v0.78.0/go.mod h1:QjdrLG0uq+YwhjoVOLsS1t7TW8fs36kLs4XO5R5ECHg= +cloud.google.com/go v0.79.0/go.mod h1:3bzgcEeQlzbuEAYu4mrWhKqWjmpprinYgKJLgKHnbb8= +cloud.google.com/go v0.81.0/go.mod h1:mk/AM35KwGk/Nm2YSeZbxXdrNK3KZOYHmLkOqC2V6E0= +cloud.google.com/go v0.83.0/go.mod h1:Z7MJUsANfY0pYPdw0lbnivPx4/vhy/e2FEkSkF7vAVY= +cloud.google.com/go v0.84.0/go.mod h1:RazrYuxIK6Kb7YrzzhPoLmCVzl7Sup4NrbKPg8KHSUM= +cloud.google.com/go v0.87.0/go.mod h1:TpDYlFy7vuLzZMMZ+B6iRiELaY7z/gJPaqbMx6mlWcY= +cloud.google.com/go v0.90.0/go.mod h1:kRX0mNRHe0e2rC6oNakvwQqzyDmg57xJ+SZU1eT2aDQ= +cloud.google.com/go v0.93.3/go.mod h1:8utlLll2EF5XMAV15woO4lSbWQlk8rer9aLOfLh7+YI= +cloud.google.com/go v0.94.1/go.mod h1:qAlAugsXlC+JWO+Bke5vCtc9ONxjQT3drlTTnAplMW4= +cloud.google.com/go v0.97.0/go.mod h1:GF7l59pYBVlXQIBLx3a761cZ41F9bBH3JUlihCt2Udc= +cloud.google.com/go v0.99.0/go.mod h1:w0Xx2nLzqWJPuozYQX+hFfCSI8WioryfRDzkoI/Y2ZA= +cloud.google.com/go v0.100.2/go.mod h1:4Xra9TjzAeYHrl5+oeLlzbM2k3mjVhZh4UqTZ//w99A= +cloud.google.com/go v0.102.0/go.mod h1:oWcCzKlqJ5zgHQt9YsaeTY9KzIvjyy0ArmiBUgpQ+nc= +cloud.google.com/go v0.102.1/go.mod h1:XZ77E9qnTEnrgEOvr4xzfdX5TRo7fB4T2F4O6+34hIU= +cloud.google.com/go v0.104.0/go.mod h1:OO6xxXdJyvuJPcEPBLN9BJPD+jep5G1+2U5B5gkRYtA= +cloud.google.com/go v0.110.10 h1:LXy9GEO+timppncPIAZoOj3l58LIU9k+kn48AN7IO3Y= +cloud.google.com/go v0.110.10/go.mod h1:v1OoFqYxiBkUrruItNM3eT4lLByNjxmJSV/xDKJNnic= +cloud.google.com/go/aiplatform v1.22.0/go.mod h1:ig5Nct50bZlzV6NvKaTwmplLLddFx0YReh9WfTO5jKw= +cloud.google.com/go/aiplatform v1.24.0/go.mod h1:67UUvRBKG6GTayHKV8DBv2RtR1t93YRu5B1P3x99mYY= +cloud.google.com/go/analytics v0.11.0/go.mod h1:DjEWCu41bVbYcKyvlws9Er60YE4a//bK6mnhWvQeFNI= +cloud.google.com/go/analytics v0.12.0/go.mod h1:gkfj9h6XRf9+TS4bmuhPEShsh3hH8PAZzm/41OOhQd4= +cloud.google.com/go/area120 v0.5.0/go.mod h1:DE/n4mp+iqVyvxHN41Vf1CR602GiHQjFPusMFW6bGR4= +cloud.google.com/go/area120 v0.6.0/go.mod h1:39yFJqWVgm0UZqWTOdqkLhjoC7uFfgXRC8g/ZegeAh0= +cloud.google.com/go/artifactregistry v1.6.0/go.mod h1:IYt0oBPSAGYj/kprzsBjZ/4LnG/zOcHyFHjWPCi6SAQ= +cloud.google.com/go/artifactregistry v1.7.0/go.mod h1:mqTOFOnGZx8EtSqK/ZWcsm/4U8B77rbcLP6ruDU2Ixk= +cloud.google.com/go/asset v1.5.0/go.mod h1:5mfs8UvcM5wHhqtSv8J1CtxxaQq3AdBxxQi2jGW/K4o= +cloud.google.com/go/asset v1.7.0/go.mod h1:YbENsRK4+xTiL+Ofoj5Ckf+O17kJtgp3Y3nn4uzZz5s= +cloud.google.com/go/asset v1.8.0/go.mod h1:mUNGKhiqIdbr8X7KNayoYvyc4HbbFO9URsjbytpUaW0= +cloud.google.com/go/assuredworkloads v1.5.0/go.mod h1:n8HOZ6pff6re5KYfBXcFvSViQjDwxFkAkmUFffJRbbY= +cloud.google.com/go/assuredworkloads v1.6.0/go.mod h1:yo2YOk37Yc89Rsd5QMVECvjaMKymF9OP+QXWlKXUkXw= +cloud.google.com/go/assuredworkloads v1.7.0/go.mod h1:z/736/oNmtGAyU47reJgGN+KVoYoxeLBoj4XkKYscNI= +cloud.google.com/go/automl v1.5.0/go.mod h1:34EjfoFGMZ5sgJ9EoLsRtdPSNZLcfflJR39VbVNS2M0= +cloud.google.com/go/automl v1.6.0/go.mod h1:ugf8a6Fx+zP0D59WLhqgTDsQI9w07o64uf/Is3Nh5p8= +cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= +cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE= +cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc= +cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUMb4Nv6dBIg= +cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4gLoIoXIAPc= +cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ= +cloud.google.com/go/bigquery v1.42.0/go.mod h1:8dRTJxhtG+vwBKzE5OseQn/hiydoQN3EedCaOdYmxRA= +cloud.google.com/go/billing v1.4.0/go.mod h1:g9IdKBEFlItS8bTtlrZdVLWSSdSyFUZKXNS02zKMOZY= +cloud.google.com/go/billing v1.5.0/go.mod h1:mztb1tBc3QekhjSgmpf/CV4LzWXLzCArwpLmP2Gm88s= +cloud.google.com/go/binaryauthorization v1.1.0/go.mod h1:xwnoWu3Y84jbuHa0zd526MJYmtnVXn0syOjaJgy4+dM= +cloud.google.com/go/binaryauthorization v1.2.0/go.mod h1:86WKkJHtRcv5ViNABtYMhhNWRrD1Vpi//uKEy7aYEfI= +cloud.google.com/go/cloudtasks v1.5.0/go.mod h1:fD92REy1x5woxkKEkLdvavGnPJGEn8Uic9nWuLzqCpY= +cloud.google.com/go/cloudtasks v1.6.0/go.mod h1:C6Io+sxuke9/KNRkbQpihnW93SWDU3uXt92nu85HkYI= +cloud.google.com/go/compute v0.1.0/go.mod h1:GAesmwr110a34z04OlxYkATPBEfVhkymfTBXtfbBFow= +cloud.google.com/go/compute v1.3.0/go.mod h1:cCZiE1NHEtai4wiufUhW8I8S1JKkAnhnQJWM7YD99wM= +cloud.google.com/go/compute v1.5.0/go.mod h1:9SMHyhJlzhlkJqrPAc839t2BZFTSk6Jdj6mkzQJeu0M= +cloud.google.com/go/compute v1.6.0/go.mod h1:T29tfhtVbq1wvAPo0E3+7vhgmkOYeXjhFvz/FMzPu0s= +cloud.google.com/go/compute v1.6.1/go.mod h1:g85FgpzFvNULZ+S8AYq87axRKuf2Kh7deLqV/jJ3thU= +cloud.google.com/go/compute v1.7.0/go.mod h1:435lt8av5oL9P3fv1OEzSbSUe+ybHXGMPQHHZWZxy9U= +cloud.google.com/go/compute v1.10.0/go.mod h1:ER5CLbMxl90o2jtNbGSbtfOpQKR0t15FOtRsugnLrlU= +cloud.google.com/go/compute v1.23.3 h1:6sVlXXBmbd7jNX0Ipq0trII3e4n1/MsADLK6a+aiVlk= +cloud.google.com/go/compute v1.23.3/go.mod h1:VCgBUoMnIVIR0CscqQiPJLAG25E3ZRZMzcFZeQ+h8CI= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= +cloud.google.com/go/containeranalysis v0.5.1/go.mod h1:1D92jd8gRR/c0fGMlymRgxWD3Qw9C1ff6/T7mLgVL8I= +cloud.google.com/go/containeranalysis v0.6.0/go.mod h1:HEJoiEIu+lEXM+k7+qLCci0h33lX3ZqoYFdmPcoO7s4= +cloud.google.com/go/datacatalog v1.3.0/go.mod h1:g9svFY6tuR+j+hrTw3J2dNcmI0dzmSiyOzm8kpLq0a0= +cloud.google.com/go/datacatalog v1.5.0/go.mod h1:M7GPLNQeLfWqeIm3iuiruhPzkt65+Bx8dAKvScX8jvs= +cloud.google.com/go/datacatalog v1.6.0/go.mod h1:+aEyF8JKg+uXcIdAmmaMUmZ3q1b/lKLtXCmXdnc0lbc= +cloud.google.com/go/dataflow v0.6.0/go.mod h1:9QwV89cGoxjjSR9/r7eFDqqjtvbKxAK2BaYU6PVk9UM= +cloud.google.com/go/dataflow v0.7.0/go.mod h1:PX526vb4ijFMesO1o202EaUmouZKBpjHsTlCtB4parQ= +cloud.google.com/go/dataform v0.3.0/go.mod h1:cj8uNliRlHpa6L3yVhDOBrUXH+BPAO1+KFMQQNSThKo= +cloud.google.com/go/dataform v0.4.0/go.mod h1:fwV6Y4Ty2yIFL89huYlEkwUPtS7YZinZbzzj5S9FzCE= +cloud.google.com/go/datalabeling v0.5.0/go.mod h1:TGcJ0G2NzcsXSE/97yWjIZO0bXj0KbVlINXMG9ud42I= +cloud.google.com/go/datalabeling v0.6.0/go.mod h1:WqdISuk/+WIGeMkpw/1q7bK/tFEZxsrFJOJdY2bXvTQ= +cloud.google.com/go/dataqna v0.5.0/go.mod h1:90Hyk596ft3zUQ8NkFfvICSIfHFh1Bc7C4cK3vbhkeo= +cloud.google.com/go/dataqna v0.6.0/go.mod h1:1lqNpM7rqNLVgWBJyk5NF6Uen2PHym0jtVJonplVsDA= +cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= +cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk= +cloud.google.com/go/datastream v1.2.0/go.mod h1:i/uTP8/fZwgATHS/XFu0TcNUhuA0twZxxQ3EyCUQMwo= +cloud.google.com/go/datastream v1.3.0/go.mod h1:cqlOX8xlyYF/uxhiKn6Hbv6WjwPPuI9W2M9SAXwaLLQ= +cloud.google.com/go/dialogflow v1.15.0/go.mod h1:HbHDWs33WOGJgn6rfzBW1Kv807BE3O1+xGbn59zZWI4= +cloud.google.com/go/dialogflow v1.16.1/go.mod h1:po6LlzGfK+smoSmTBnbkIZY2w8ffjz/RcGSS+sh1el0= +cloud.google.com/go/dialogflow v1.17.0/go.mod h1:YNP09C/kXA1aZdBgC/VtXX74G/TKn7XVCcVumTflA+8= +cloud.google.com/go/documentai v1.7.0/go.mod h1:lJvftZB5NRiFSX4moiye1SMxHx0Bc3x1+p9e/RfXYiU= +cloud.google.com/go/documentai v1.8.0/go.mod h1:xGHNEB7CtsnySCNrCFdCyyMz44RhFEEX2Q7UD0c5IhU= +cloud.google.com/go/domains v0.6.0/go.mod h1:T9Rz3GasrpYk6mEGHh4rymIhjlnIuB4ofT1wTxDeT4Y= +cloud.google.com/go/domains v0.7.0/go.mod h1:PtZeqS1xjnXuRPKE/88Iru/LdfoRyEHYA9nFQf4UKpg= +cloud.google.com/go/edgecontainer v0.1.0/go.mod h1:WgkZ9tp10bFxqO8BLPqv2LlfmQF1X8lZqwW4r1BTajk= +cloud.google.com/go/edgecontainer v0.2.0/go.mod h1:RTmLijy+lGpQ7BXuTDa4C4ssxyXT34NIuHIgKuP4s5w= +cloud.google.com/go/functions v1.6.0/go.mod h1:3H1UA3qiIPRWD7PeZKLvHZ9SaQhR26XIJcC0A5GbvAk= +cloud.google.com/go/functions v1.7.0/go.mod h1:+d+QBcWM+RsrgZfV9xo6KfA1GlzJfxcfZcRPEhDDfzg= +cloud.google.com/go/gaming v1.5.0/go.mod h1:ol7rGcxP/qHTRQE/RO4bxkXq+Fix0j6D4LFPzYTIrDM= +cloud.google.com/go/gaming v1.6.0/go.mod h1:YMU1GEvA39Qt3zWGyAVA9bpYz/yAhTvaQ1t2sK4KPUA= +cloud.google.com/go/gkeconnect v0.5.0/go.mod h1:c5lsNAg5EwAy7fkqX/+goqFsU1Da/jQFqArp+wGNr/o= +cloud.google.com/go/gkeconnect v0.6.0/go.mod h1:Mln67KyU/sHJEBY8kFZ0xTeyPtzbq9StAVvEULYK16A= +cloud.google.com/go/gkehub v0.9.0/go.mod h1:WYHN6WG8w9bXU0hqNxt8rm5uxnk8IH+lPY9J2TV7BK0= +cloud.google.com/go/gkehub v0.10.0/go.mod h1:UIPwxI0DsrpsVoWpLB0stwKCP+WFVG9+y977wO+hBH0= +cloud.google.com/go/grafeas v0.2.0/go.mod h1:KhxgtF2hb0P191HlY5besjYm6MqTSTj3LSI+M+ByZHc= +cloud.google.com/go/iam v0.3.0/go.mod h1:XzJPvDayI+9zsASAFO68Hk07u3z+f+JrT2xXNdp4bnY= +cloud.google.com/go/iam v0.5.0/go.mod h1:wPU9Vt0P4UmCux7mqtRu6jcpPAb74cP1fh50J3QpkUc= +cloud.google.com/go/iam v1.1.5 h1:1jTsCu4bcsNsE4iiqNT5SHwrDRCfRmIaaaVFhRveTJI= +cloud.google.com/go/iam v1.1.5/go.mod h1:rB6P/Ic3mykPbFio+vo7403drjlgvoWfYpJhMXEbzv8= +cloud.google.com/go/language v1.4.0/go.mod h1:F9dRpNFQmJbkaop6g0JhSBXCNlO90e1KWx5iDdxbWic= +cloud.google.com/go/language v1.6.0/go.mod h1:6dJ8t3B+lUYfStgls25GusK04NLh3eDLQnWM3mdEbhI= +cloud.google.com/go/lifesciences v0.5.0/go.mod h1:3oIKy8ycWGPUyZDR/8RNnTOYevhaMLqh5vLUXs9zvT8= +cloud.google.com/go/lifesciences v0.6.0/go.mod h1:ddj6tSX/7BOnhxCSd3ZcETvtNr8NZ6t/iPhY2Tyfu08= +cloud.google.com/go/mediatranslation v0.5.0/go.mod h1:jGPUhGTybqsPQn91pNXw0xVHfuJ3leR1wj37oU3y1f4= +cloud.google.com/go/mediatranslation v0.6.0/go.mod h1:hHdBCTYNigsBxshbznuIMFNe5QXEowAuNmmC7h8pu5w= +cloud.google.com/go/memcache v1.4.0/go.mod h1:rTOfiGZtJX1AaFUrOgsMHX5kAzaTQ8azHiuDoTPzNsE= +cloud.google.com/go/memcache v1.5.0/go.mod h1:dk3fCK7dVo0cUU2c36jKb4VqKPS22BTkf81Xq617aWM= +cloud.google.com/go/metastore v1.5.0/go.mod h1:2ZNrDcQwghfdtCwJ33nM0+GrBGlVuh8rakL3vdPY3XY= +cloud.google.com/go/metastore v1.6.0/go.mod h1:6cyQTls8CWXzk45G55x57DVQ9gWg7RiH65+YgPsNh9s= +cloud.google.com/go/networkconnectivity v1.4.0/go.mod h1:nOl7YL8odKyAOtzNX73/M5/mGZgqqMeryi6UPZTk/rA= +cloud.google.com/go/networkconnectivity v1.5.0/go.mod h1:3GzqJx7uhtlM3kln0+x5wyFvuVH1pIBJjhCpjzSt75o= +cloud.google.com/go/networksecurity v0.5.0/go.mod h1:xS6fOCoqpVC5zx15Z/MqkfDwH4+m/61A3ODiDV1xmiQ= +cloud.google.com/go/networksecurity v0.6.0/go.mod h1:Q5fjhTr9WMI5mbpRYEbiexTzROf7ZbDzvzCrNl14nyU= +cloud.google.com/go/notebooks v1.2.0/go.mod h1:9+wtppMfVPUeJ8fIWPOq1UnATHISkGXGqTkxeieQ6UY= +cloud.google.com/go/notebooks v1.3.0/go.mod h1:bFR5lj07DtCPC7YAAJ//vHskFBxA5JzYlH68kXVdk34= +cloud.google.com/go/osconfig v1.7.0/go.mod h1:oVHeCeZELfJP7XLxcBGTMBvRO+1nQ5tFG9VQTmYS2Fs= +cloud.google.com/go/osconfig v1.8.0/go.mod h1:EQqZLu5w5XA7eKizepumcvWx+m8mJUhEwiPqWiZeEdg= +cloud.google.com/go/oslogin v1.4.0/go.mod h1:YdgMXWRaElXz/lDk1Na6Fh5orF7gvmJ0FGLIs9LId4E= +cloud.google.com/go/oslogin v1.5.0/go.mod h1:D260Qj11W2qx/HVF29zBg+0fd6YCSjSqLUkY/qEenQU= +cloud.google.com/go/phishingprotection v0.5.0/go.mod h1:Y3HZknsK9bc9dMi+oE8Bim0lczMU6hrX0UpADuMefr0= +cloud.google.com/go/phishingprotection v0.6.0/go.mod h1:9Y3LBLgy0kDTcYET8ZH3bq/7qni15yVUoAxiFxnlSUA= +cloud.google.com/go/privatecatalog v0.5.0/go.mod h1:XgosMUvvPyxDjAVNDYxJ7wBW8//hLDDYmnsNcMGq1K0= +cloud.google.com/go/privatecatalog v0.6.0/go.mod h1:i/fbkZR0hLN29eEWiiwue8Pb+GforiEIBnV9yrRUOKI= +cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= +cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw= +cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA= +cloud.google.com/go/pubsub v1.3.1/go.mod h1:i+ucay31+CNRpDW4Lu78I4xXG+O1r/MAHgjpRVR+TSU= +cloud.google.com/go/recaptchaenterprise v1.3.1/go.mod h1:OdD+q+y4XGeAlxRaMn1Y7/GveP6zmq76byL6tjPE7d4= +cloud.google.com/go/recaptchaenterprise/v2 v2.1.0/go.mod h1:w9yVqajwroDNTfGuhmOjPDN//rZGySaf6PtFVcSCa7o= +cloud.google.com/go/recaptchaenterprise/v2 v2.2.0/go.mod h1:/Zu5jisWGeERrd5HnlS3EUGb/D335f9k51B/FVil0jk= +cloud.google.com/go/recaptchaenterprise/v2 v2.3.0/go.mod h1:O9LwGCjrhGHBQET5CA7dd5NwwNQUErSgEDit1DLNTdo= +cloud.google.com/go/recommendationengine v0.5.0/go.mod h1:E5756pJcVFeVgaQv3WNpImkFP8a+RptV6dDLGPILjvg= +cloud.google.com/go/recommendationengine v0.6.0/go.mod h1:08mq2umu9oIqc7tDy8sx+MNJdLG0fUi3vaSVbztHgJ4= +cloud.google.com/go/recommender v1.5.0/go.mod h1:jdoeiBIVrJe9gQjwd759ecLJbxCDED4A6p+mqoqDvTg= +cloud.google.com/go/recommender v1.6.0/go.mod h1:+yETpm25mcoiECKh9DEScGzIRyDKpZ0cEhWGo+8bo+c= +cloud.google.com/go/redis v1.7.0/go.mod h1:V3x5Jq1jzUcg+UNsRvdmsfuFnit1cfe3Z/PGyq/lm4Y= +cloud.google.com/go/redis v1.8.0/go.mod h1:Fm2szCDavWzBk2cDKxrkmWBqoCiL1+Ctwq7EyqBCA/A= +cloud.google.com/go/retail v1.8.0/go.mod h1:QblKS8waDmNUhghY2TI9O3JLlFk8jybHeV4BF19FrE4= +cloud.google.com/go/retail v1.9.0/go.mod h1:g6jb6mKuCS1QKnH/dpu7isX253absFl6iE92nHwlBUY= +cloud.google.com/go/scheduler v1.4.0/go.mod h1:drcJBmxF3aqZJRhmkHQ9b3uSSpQoltBPGPxGAWROx6s= +cloud.google.com/go/scheduler v1.5.0/go.mod h1:ri073ym49NW3AfT6DZi21vLZrG07GXr5p3H1KxN5QlI= +cloud.google.com/go/secretmanager v1.6.0/go.mod h1:awVa/OXF6IiyaU1wQ34inzQNc4ISIDIrId8qE5QGgKA= +cloud.google.com/go/security v1.5.0/go.mod h1:lgxGdyOKKjHL4YG3/YwIL2zLqMFCKs0UbQwgyZmfJl4= +cloud.google.com/go/security v1.7.0/go.mod h1:mZklORHl6Bg7CNnnjLH//0UlAlaXqiG7Lb9PsPXLfD0= +cloud.google.com/go/security v1.8.0/go.mod h1:hAQOwgmaHhztFhiQ41CjDODdWP0+AE1B3sX4OFlq+GU= +cloud.google.com/go/securitycenter v1.13.0/go.mod h1:cv5qNAqjY84FCN6Y9z28WlkKXyWsgLO832YiWwkCWcU= +cloud.google.com/go/securitycenter v1.14.0/go.mod h1:gZLAhtyKv85n52XYWt6RmeBdydyxfPeTrpToDPw4Auc= +cloud.google.com/go/servicedirectory v1.4.0/go.mod h1:gH1MUaZCgtP7qQiI+F+A+OpeKF/HQWgtAddhTbhL2bs= +cloud.google.com/go/servicedirectory v1.5.0/go.mod h1:QMKFL0NUySbpZJ1UZs3oFAmdvVxhhxB6eJ/Vlp73dfg= +cloud.google.com/go/speech v1.6.0/go.mod h1:79tcr4FHCimOp56lwC01xnt/WPJZc4v3gzyT7FoBkCM= +cloud.google.com/go/speech v1.7.0/go.mod h1:KptqL+BAQIhMsj1kOP2la5DSEEerPDuOP/2mmkhHhZQ= +cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= +cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos= +cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= +cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs= +cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0= +cloud.google.com/go/storage v1.14.0/go.mod h1:GrKmX003DSIwi9o29oFT7YDnHYwZoctc3fOKtUw0Xmo= +cloud.google.com/go/storage v1.22.1/go.mod h1:S8N1cAStu7BOeFfE8KAQzmyyLkK8p/vmRq6kuBTW58Y= +cloud.google.com/go/storage v1.23.0/go.mod h1:vOEEDNFnciUMhBeT6hsJIn3ieU5cFRmzeLgDvXzfIXc= +cloud.google.com/go/storage v1.27.0/go.mod h1:x9DOL8TK/ygDUMieqwfhdpQryTeEkhGKMi80i/iqR2s= +cloud.google.com/go/storage v1.30.1 h1:uOdMxAs8HExqBlnLtnQyP0YkvbiDpdGShGKtx6U/oNM= +cloud.google.com/go/storage v1.30.1/go.mod h1:NfxhC0UJE1aXSx7CIIbCf7y9HKT7BiccwkR7+P7gN8E= +cloud.google.com/go/talent v1.1.0/go.mod h1:Vl4pt9jiHKvOgF9KoZo6Kob9oV4lwd/ZD5Cto54zDRw= +cloud.google.com/go/talent v1.2.0/go.mod h1:MoNF9bhFQbiJ6eFD3uSsg0uBALw4n4gaCaEjBw9zo8g= +cloud.google.com/go/videointelligence v1.6.0/go.mod h1:w0DIDlVRKtwPCn/C4iwZIJdvC69yInhW0cfi+p546uU= +cloud.google.com/go/videointelligence v1.7.0/go.mod h1:k8pI/1wAhjznARtVT9U1llUaFNPh7muw8QyOUpavru4= +cloud.google.com/go/vision v1.2.0/go.mod h1:SmNwgObm5DpFBme2xpyOyasvBc1aPdjvMk2bBk0tKD0= +cloud.google.com/go/vision/v2 v2.2.0/go.mod h1:uCdV4PpN1S0jyCyq8sIM42v2Y6zOLkZs+4R9LrGYwFo= +cloud.google.com/go/vision/v2 v2.3.0/go.mod h1:UO61abBx9QRMFkNBbf1D8B1LXdS2cGiiCRx0vSpZoUo= +cloud.google.com/go/webrisk v1.4.0/go.mod h1:Hn8X6Zr+ziE2aNd8SliSDWpEnSS1u4R9+xXZmFiHmGE= +cloud.google.com/go/webrisk v1.5.0/go.mod h1:iPG6fr52Tv7sGk0H6qUFzmL3HHZev1htXuWDEEsqMTg= +cloud.google.com/go/workflows v1.6.0/go.mod h1:6t9F5h/unJz41YqfBmqSASJSXccBLtD1Vwf+KmJENM0= +cloud.google.com/go/workflows v1.7.0/go.mod h1:JhSrZuVZWuiDfKEFxU0/F1PQjmpnpcoISEXH2bcHC3M= +cosmossdk.io/api v0.7.2 h1:BO3i5fvKMKvfaUiMkCznxViuBEfyWA/k6w2eAF6q1C4= +cosmossdk.io/api v0.7.2/go.mod h1:IcxpYS5fMemZGqyYtErK7OqvdM0C8kdW3dq8Q/XIG38= +cosmossdk.io/client/v2 v2.0.0-20231103103049-f73a17f75727 h1:w4xUROlGYwypZwh7i8fEmkzeuCRmJXonHEbkpyve5yo= +cosmossdk.io/client/v2 v2.0.0-20231103103049-f73a17f75727/go.mod h1:HZbG3KK4esEs31qR9AjCG/OWDfqMGOA6iV8m3qzCnUc= +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.0 h1:vtIafqUi+1ZNAE/oxLOQQ7Oek2n4S48SWLG8h/+wdbo= +cosmossdk.io/core v0.11.0/go.mod h1:LaTtayWBSoacF5xNzoF8tmLhehqlA9z1SWiPuNC6X1w= +cosmossdk.io/depinject v1.0.0-alpha.4 h1:PLNp8ZYAMPTUKyG9IK2hsbciDWqna2z1Wsl98okJopc= +cosmossdk.io/depinject v1.0.0-alpha.4/go.mod h1:HeDk7IkR5ckZ3lMGs/o91AVUc7E596vMaOmslGFM3yU= +cosmossdk.io/errors v1.0.1 h1:bzu+Kcr0kS/1DuPBtUFdWjzLqyUuCiyHjyJB6srBV/0= +cosmossdk.io/errors v1.0.1/go.mod h1:MeelVSZThMi4bEakzhhhE/CKqVv3nOJDA25bIqRDu/U= +cosmossdk.io/log v1.3.0 h1:L0Z0XstClo2kOU4h3V1iDoE5Ji64sg5HLOogzGg67Oo= +cosmossdk.io/log v1.3.0/go.mod h1:HIDyvWLqZe2ovlWabsDN4aPMpY/nUEquAhgfTf2ZzB8= +cosmossdk.io/math v1.2.0 h1:8gudhTkkD3NxOP2YyyJIYYmt6dQ55ZfJkDOaxXpy7Ig= +cosmossdk.io/math v1.2.0/go.mod h1:l2Gnda87F0su8a/7FEKJfFdJrM0JZRXQaohlgJeyQh0= +cosmossdk.io/store v1.0.2 h1:lSg5BTvJBHUDwswNNyeh4K/CbqiHER73VU4nDNb8uk0= +cosmossdk.io/store v1.0.2/go.mod h1:EFtENTqVTuWwitGW1VwaBct+yDagk7oG/axBMPH+FXs= +cosmossdk.io/tools/confix v0.0.0-20230925151519-64e0e8980834 h1:lOHFhmSC6phBBVeE/TbtV2MV7nDwclPnXdBEZsOEf3k= +cosmossdk.io/tools/confix v0.0.0-20230925151519-64e0e8980834/go.mod h1:sJU9iqlZxilbg1Ik63S03QTZIYZZ9V+Uok/lu4px3XY= +cosmossdk.io/x/circuit v0.0.0-20230925151519-64e0e8980834 h1:4HYvdHKJA4CUf86lql7a70/pVUtDRmN3f44P1hJ4ZSE= +cosmossdk.io/x/circuit v0.0.0-20230925151519-64e0e8980834/go.mod h1:atLqPO4esHD8/5VSQYm3tem3u6Ul2Nhv+neBBDsE+zI= +cosmossdk.io/x/evidence v0.0.0-20230925151519-64e0e8980834 h1:h4ooSV3X5BxEfl3EUbOlXNFMnEc/mXTXF5mdl17CQLg= +cosmossdk.io/x/evidence v0.0.0-20230925151519-64e0e8980834/go.mod h1:yUgv71a56ZEJu7c8BXWCliDrQ7Ag+FCZ//rYKw9S93U= +cosmossdk.io/x/feegrant v0.0.0-20230925151519-64e0e8980834 h1:hILr/Ve3CKlWwMC3oHFb1er9xWzxbx1UEZytTuGeI8o= +cosmossdk.io/x/feegrant v0.0.0-20230925151519-64e0e8980834/go.mod h1:C5DALk9amuP9nd/xCgaQxbn43q695zQ/tXH8b9ugzAs= +cosmossdk.io/x/nft v0.0.0-20230925151519-64e0e8980834 h1:i+qcapUPVo5a9Q09/mUm1jMouyuWf67+fORAaNMPeTQ= +cosmossdk.io/x/nft v0.0.0-20230925151519-64e0e8980834/go.mod h1:Q60Uu6/UsZlACzmGzSkGLSc/U8I6tbEusbqjTE40pvk= +cosmossdk.io/x/tx v0.13.0 h1:8lzyOh3zONPpZv2uTcUmsv0WTXy6T1/aCVDCqShmpzU= +cosmossdk.io/x/tx v0.13.0/go.mod h1:CpNQtmoqbXa33/DVxWQNx5Dcnbkv2xGUhL7tYQ5wUsY= +cosmossdk.io/x/upgrade v0.0.0-20230925151519-64e0e8980834 h1:M/yPP4g31SSgYEku5d5Xk+UGkjp47RKXFk1bYGnWJdY= +cosmossdk.io/x/upgrade v0.0.0-20230925151519-64e0e8980834/go.mod h1:+5jCm6Lk/CrQhQvtJFy/tmuLfhQKNMn/U0vwrRz/dxQ= +dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= +filippo.io/edwards25519 v1.0.0 h1:0wAIcmJUqRdI8IJ/3eGi5/HwXZWPujYXXlkrQogz0Ek= +filippo.io/edwards25519 v1.0.0/go.mod h1:N1IkdkCkiLB6tki+MYJoSx2JTY9NUlxZE7eHn5EwJns= +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/99designs/keyring v1.2.1 h1:tYLp1ULvO7i3fI5vE21ReQuj99QFSs7lGm0xWyJo87o= +github.com/99designs/keyring v1.2.1/go.mod h1:fc+wB5KTk9wQ9sDx0kFXB3A0MaeGHM9AwRStKOQ5vOA= +github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161 h1:L/gRVlceqvL25UVaW/CKtUDjefjrs0SPonmDGUVOYP0= +github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161/go.mod h1:xomTg63KZ2rFqZQzSB4Vz2SUXa1BpHTVz9L5PTmPC4E= +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/Microsoft/go-winio v0.6.0 h1:slsWYD/zyx7lCXoZVlvQrj0hPTM1HI4+v1sIda2yDvg= +github.com/Microsoft/go-winio v0.6.0/go.mod h1:cTAf44im0RAYeL23bpB+fzCyDH2MJiz2BO69KH/soAE= +github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5 h1:TngWCqHvy9oXAN6lEVMRuU21PR1EtLVZJmdB18Gu3Rw= +github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5/go.mod h1:lmUJ/7eu/Q8D7ML55dXQrVaamCz2vxCfdQBasLZfHKk= +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/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/adlio/schema v1.3.3 h1:oBJn8I02PyTB466pZO1UZEn1TV5XLlifBSyMrmHl/1I= +github.com/adlio/schema v1.3.3/go.mod h1:1EsRssiv9/Ce2CMzq5DoL7RiMshhuigQxrR4DMV9fHg= +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/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.122/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4oIKwKHZo= +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/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.8.0 h1:FD+XqgOZDUxxZ8hzoBFuV9+cGWY9CslN6d5MS5JVb4c= +github.com/bits-and-blooms/bitset v1.8.0/go.mod h1:7hO7Gc7Pp1vODcmWvKMRA9BNmbv6a/7QIWpPxHddWR8= +github.com/btcsuite/btcd/btcec/v2 v2.3.2 h1:5n0X6hX0Zk+6omWcihdYvdAlGf2DfasC0GMf7DClJ3U= +github.com/btcsuite/btcd/btcec/v2 v2.3.2/go.mod h1:zYzJ8etWJQIv1Ogk7OzpWjowwOdXY1W/17j2MW85J04= +github.com/btcsuite/btcd/btcutil v1.1.3 h1:xfbtw8lwpp0G6NwSHb+UE67ryTFHJAiNuipusjXSohQ= +github.com/btcsuite/btcd/btcutil v1.1.3/go.mod h1:UR7dsSJzJUfMmFiiLlIrMq1lS9jh9EdCV7FStZSnpi0= +github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1 h1:q0rUy8C/TYNBQS1+CGKw68tLOFYSNEs0TFnxxnS9+4U= +github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1/go.mod h1:7SFka0XMvUgj3hfZtydOrQY2mwhPclbT2snogU7SQQc= +github.com/bufbuild/protocompile v0.6.0 h1:Uu7WiSQ6Yj9DbkdnOe7U4mNKp58y9WDMKDn28/ZlunY= +github.com/bufbuild/protocompile v0.6.0/go.mod h1:YNP35qEYoYGme7QMtz5SBCoN4kL4g12jTtjuzRNdjpE= +github.com/casbin/casbin/v2 v2.1.2/go.mod h1:YcPU1XXisHhLzuxH9coDNf2FbKpjGlbCg3n9yuLkIJQ= +github.com/cenkalti/backoff v2.2.1+incompatible h1:tNowT99t7UNflLxfYYSlKYsBpXdEet03Pg2g16Swow4= +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/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= +github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko= +github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= +github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= +github.com/cespare/xxhash/v2 v2.2.0 h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44= +github.com/cespare/xxhash/v2 v2.2.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= +github.com/cheggaaa/pb v1.0.27/go.mod h1:pQciLPpbU0oxA0h+VJYYLxO+XeDQb5pZijXscXHm81s= +github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= +github.com/chzyer/logex v1.2.1 h1:XHDu3E6q+gdHgsdTPH6ImJMIp436vR6MPtH8gP05QzM= +github.com/chzyer/logex v1.2.1/go.mod h1:JLbx6lG2kDbNRFnfkgvh4eRJRPX1QCoOIWomwysCBrQ= +github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= +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/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= +github.com/chzyer/test v1.0.0 h1:p3BQDXSxOhOG0P9z6/hGnII4LGiEPOYBhs8asl/fC04= +github.com/chzyer/test v1.0.0/go.mod h1:2JlltgoNkt4TW/z9V/IzDdFaMTM2JPIi26O1pF38GC8= +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-20200629203442-efcf912fb354/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= +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-20210312221358-fbca930ec8ed/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= +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.1 h1:xSEW75zKaKCWzR3OfxXUxgrk/NtT4G1MiOv5lWZazG8= +github.com/cockroachdb/errors v1.11.1/go.mod h1:8MUxA3Gi6b25tYlFEBGLf+D8aISL+M4MIpiWMSNRfxw= +github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b h1:r6VH0faHjZeQy818SGhaone5OnYfxFR/+AzdY3sf5aE= +github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b/go.mod h1:Vz9DsVWQQhf3vs21MhPMZpMGSht7O/2vFW2xusFUVOs= +github.com/cockroachdb/pebble v0.0.0-20231101195458-481da04154d6 h1:g+Y6IAf28JinY3zNdXwpw71SBGhLEb72kGQgiR5XKZM= +github.com/cockroachdb/pebble v0.0.0-20231101195458-481da04154d6/go.mod h1:acMRUGd/BK8AUmQNK3spUCCGzFLZU2bSST3NMXSq2Kc= +github.com/cockroachdb/redact v1.1.5 h1:u1PMllDkdFfPWaNGMyLD1+so+aq3uUItthCFqzwPJ30= +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.2 h1:io0JCh5EPxINKN5ZMI5hCdpW3QVZRy+o8qWe3mlJa/8= +github.com/cometbft/cometbft v0.38.2/go.mod h1:PIi48BpzwlHqtV3mzwPyQgOyOnU94BNBimLS2ebBHOg= +github.com/cometbft/cometbft-db v0.9.1 h1:MIhVX5ja5bXNHF8EYrThkG9F7r9kSfv8BX4LWaxWJ4M= +github.com/cometbft/cometbft-db v0.9.1/go.mod h1:iliyWaoV0mRwBJoizElCwwRA9Tf7jZJOURcRZF9m60U= +github.com/containerd/continuity v0.3.0 h1:nisirsYROK15TAMVukJOUyGJjz4BNQJBVsNvAXZJ/eg= +github.com/containerd/continuity v0.3.0/go.mod h1:wJEAIwKOm/pBZuBd0JmeTvnLquTB1Ag8espWhkykbPM= +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.0.0 h1:EVcQZ+qYag7W6uorBKFPvX6gRjw6Uq2hIh4hCWjuQ0E= +github.com/cosmos/cosmos-db v1.0.0/go.mod h1:iBvi1TtqaedwLdcrZVYRSSCb6eSy61NLj4UNmdIgs0U= +github.com/cosmos/cosmos-proto v1.0.0-beta.3 h1:VitvZ1lPORTVxkmF2fAp3IiA61xVwArQYKXTdEcpW6o= +github.com/cosmos/cosmos-proto v1.0.0-beta.3/go.mod h1:t8IASdLaAq+bbHbjq4p960BvcTqtwuAxid3b/2rOD6I= +github.com/cosmos/cosmos-sdk v0.50.3 h1:zP0AXm54ws2t2qVWvcQhEYVafhOAREU2QL0gnbwjvXw= +github.com/cosmos/cosmos-sdk v0.50.3/go.mod h1:tlrkY1sntOt1q0OX/rqF0zRJtmXNoffAS6VFTcky+w8= +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.4.11 h1:LZcMHrx4FjUgrqQSWeaGC1v/TeuVFqSLa43CC6aWR2g= +github.com/cosmos/gogoproto v1.4.11/go.mod h1:/g39Mh8m17X8Q/GDEs5zYTSNaNnInBSohtaxzQnYq1Y= +github.com/cosmos/iavl v1.0.0 h1:bw6t0Mv/mVCJvlMTOPHWLs5uUE3BRBfVWCRelOzl+so= +github.com/cosmos/iavl v1.0.0/go.mod h1:CmTGqMnRnucjxbjduneZXT+0vPgNElYvdefjX2q9tYc= +github.com/cosmos/ics23/go v0.10.0 h1:iXqLLgp2Lp+EdpIuwXTYIQU+AiHj9mOC2X9ab++bZDM= +github.com/cosmos/ics23/go v0.10.0/go.mod h1:ZfJSmng/TBNTBkFemHHHj5YY7VAU/MBU980F4VU1NG0= +github.com/cosmos/ledger-cosmos-go v0.13.3 h1:7ehuBGuyIytsXbd4MP43mLeoN2LTOEnk5nvue4rK+yM= +github.com/cosmos/ledger-cosmos-go v0.13.3/go.mod h1:HENcEP+VtahZFw38HZ3+LS3Iv5XV6svsnkk9vdJtLr8= +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.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= +github.com/creachadair/atomicfile v0.3.1 h1:yQORkHjSYySh/tv5th1dkKcn02NEW5JleB84sjt+W4Q= +github.com/creachadair/atomicfile v0.3.1/go.mod h1:mwfrkRxFKwpNAflYZzytbSwxvbK6fdGRRlp0KEQc0qU= +github.com/creachadair/tomledit v0.0.24 h1:5Xjr25R2esu1rKCbQEmjZYlrhFkDspoAbAKb6QKQDhQ= +github.com/creachadair/tomledit v0.0.24/go.mod h1:9qHbShRWQzSCcn617cMzg4eab1vbLCOjOshAWSzWr8U= +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= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/decred/dcrd/crypto/blake256 v1.0.1 h1:7PltbUIQB7u/FfZ39+DGa/ShuMyJ5ilcvdfma9wOH6Y= +github.com/decred/dcrd/crypto/blake256 v1.0.1/go.mod h1:2OfgNZ5wDpcsFmHmCK5gZTPcCXqlm2ArzUIkw9czNJo= +github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 h1:8UrgZ3GkP4i/CLijOJx79Yu+etlyjdBU4sfcs2WYQMs= +github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0/go.mod h1:v57UDF4pDQJcEfFUCRop3lJL149eHGSe9Jvczhzjo/0= +github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f h1:U5y3Y5UE0w7amNe7Z5G/twsBW0KEalRQXZzf8ufSh9I= +github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f/go.mod h1:xH/i4TFMt8koVQZ6WFms69WAsDWr2XsYL3Hkl7jkoLE= +github.com/dgraph-io/badger/v2 v2.2007.4 h1:TRWBQg8UrlUhaFdco01nO2uXwzKS7zd+HVdwV/GHc4o= +github.com/dgraph-io/badger/v2 v2.2007.4/go.mod h1:vSw/ax2qojzbN6eXHIx6KPKtCSHJN/Uz0X0VPruTIhk= +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/docker/go-connections v0.4.0 h1:El9xVISelRB7BuFusrZozjnkIM5YnzCViNKohAFqRJQ= +github.com/docker/go-connections v0.4.0/go.mod h1:Gbd7IOopHjR8Iph03tsViu4nIes5XhDvyHbTtUxmeec= +github.com/docker/go-units v0.5.0 h1:69rxXcBk27SvSaaxTtLh/8llcHD8vYHT7WSdRZ/jvr4= +github.com/docker/go-units v0.5.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= +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.5.0 h1:3j8ya4Z4kMCwT5nXIKFSV84YS+HdqSSO0VsTQxaLAeM= +github.com/dvsekhvalnov/jose2go v1.5.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.0 h1:vUzuoVE8ipzS7QkES4UfxdpCwdU2U97m2Pb2tQCoYRY= +github.com/emicklei/dot v1.6.0/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.7/go.mod h1:cwu0lG7PUMfa9snN8LXBig5ynNVH9qI8YYLbd1fK2po= +github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= +github.com/envoyproxy/go-control-plane v0.9.9-0.20210217033140-668b12f5399d/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= +github.com/envoyproxy/go-control-plane v0.9.9-0.20210512163311-63b5d3c536b0/go.mod h1:hliV/p42l8fGbc6Y9bQ70uLwIvmJyVE5k4iMKlh8wCQ= +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/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.15.0 h1:kOqh6YHBtK8aywxGerMG2Eq3H6Qgoqeo13Bk2Mv/nBs= +github.com/fatih/color v1.15.0/go.mod h1:0h5ZqXfHYED7Bhv2ZJamyIOUej9KtShiJESRwBDUSsw= +github.com/felixge/httpsnoop v1.0.1/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= +github.com/felixge/httpsnoop v1.0.2 h1:+nS9g82KMXccJ/wp0zyRW9ZBHFETmMGtkk+2CTTrW4o= +github.com/felixge/httpsnoop v1.0.2/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.4 h1:g2rn0vABPOOXmZUj+vbmUp0lPoXEMuhTpIluN0XL9UY= +github.com/frankban/quicktest v1.14.4/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0= +github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= +github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= +github.com/fsnotify/fsnotify v1.5.4/go.mod h1:OVB6XrOHzAwXMpEM7uPOzcehqUV2UqJxmVXmkdnm1bU= +github.com/fsnotify/fsnotify v1.6.0 h1:n+5WquG0fcWoWp6xPWfHdbskMCQaFnG6PfBrh1Ky4HY= +github.com/fsnotify/fsnotify v1.6.0/go.mod h1:sl3t1tCWJFWoRz9R8WJCbQihKKwmorjAbSClcnxKAGw= +github.com/getsentry/sentry-go v0.25.0 h1:q6Eo+hS+yoJlTO3uu/azhQadsD8V+jQn2D8VvX1eOyI= +github.com/getsentry/sentry-go v0.25.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 v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= +github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= +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-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/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0/go.mod h1:fyg7847qk6SyHyPtNmDHnmrv/HOrqktSC+C9fM+CJOE= +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.9.11 h1:/pAaQDLHEoCq/5FFmSKBswWmK6H0e8g4159Kc/X/nqk= +github.com/goccy/go-json v0.9.11/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= +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/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/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= +github.com/golang/glog v1.2.0 h1:uCdmnmatrKCgMBlM4rMuJZWOkPDqdbZPnrMXDY4gI68= +github.com/golang/glog v1.2.0/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-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/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.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= +github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y= +github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= +github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= +github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= +github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4= +github.com/golang/mock v1.5.0/go.mod h1:CWnOUgYIOo4TcNZ0wHX3YZCqsaM1I1Jvs6v3mP3KVu8= +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= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.0/go.mod h1:Qd/q+1AKNOZr9uGQzbzCmRO6sUih6GTPZv6a1/R87v0= +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.4/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.1/go.mod h1:DopwsBzvsk0Fs44TXzsVbJyPhcCPeIwnvohx4u74HPM= +github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= +github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= +github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= +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 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM= +github.com/golang/snappy v0.0.4/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.2 h1:xf4v41cLI2Z6FxbKm+8Bu+m8ifhj15JuZ9sa0jZCMUU= +github.com/google/btree v1.1.2/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.4.1/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.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.3/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.4/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.7/go.mod h1:n+brtR0CgQNWTVd5ZUFpTBC8YFBDLK/h/bpaJ8/DtOE= +github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +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= +github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf/go.mod h1:HP5RmnzzSNb993RKQDq4+1A4ia9nllfqcQFTQJedwGI= +github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= +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/martian v2.1.0+incompatible h1:/CP5g8u/VJHijgedC/Legn3BAbAaWPgecwXBIDzw5no= +github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= +github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= +github.com/google/martian/v3 v3.1.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= +github.com/google/martian/v3 v3.2.1/go.mod h1:oBOf6HBosgwRXnUGWUB05QECsc6uvmMiJ3+6W4l/CUk= +github.com/google/martian/v3 v3.3.2 h1:IqNFLAmvJOgVlpdEBiQbDc2EwKW77amAycfTuWKdfvw= +github.com/google/martian/v3 v3.3.2/go.mod h1:oBOf6HBosgwRXnUGWUB05QECsc6uvmMiJ3+6W4l/CUk= +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/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= +github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= +github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200212024743-f11f1df84d12/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200229191704-1ebb73c60ed3/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200430221834-fc25d7d30c6d/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20201023163331-3e6fc7fc9c4c/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20201203190320-1bf35d6f28c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20201218002935-b9804c9f04c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20210122040257-d980be63207e/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20210226084205-cbba55b83ad5/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20210407192527-94a9f03dee38/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20210601050228-01bbb1931b22/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +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/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.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.4.0 h1:MtMxsa51/r9yyhkyLsVeVt0B+BGQZzpQiTQ4eHZ8bc4= +github.com/google/uuid v1.4.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/googleapis/enterprise-certificate-proxy v0.0.0-20220520183353-fd19c99a87aa/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= +github.com/googleapis/enterprise-certificate-proxy v0.1.0/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= +github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +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.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= +github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= +github.com/googleapis/gax-go/v2 v2.1.0/go.mod h1:Q3nei7sK6ybPYH7twZdmQpAd1MKb7pfu6SK+H1/DsU0= +github.com/googleapis/gax-go/v2 v2.1.1/go.mod h1:hddJymUZASv3XPyGkUpKj8pPO47Rmb0eJc8R6ouapiM= +github.com/googleapis/gax-go/v2 v2.2.0/go.mod h1:as02EH8zWkzwUoLbBaFeQ+arQaj/OthfcblKl4IGNaM= +github.com/googleapis/gax-go/v2 v2.3.0/go.mod h1:b8LNqSzNabLiUpXKkY7HAR5jr6bIT99EXz9pXxye9YM= +github.com/googleapis/gax-go/v2 v2.4.0/go.mod h1:XOTVJ59hdnfJLIP/dh8n5CGryZR2LxK9wbMD5+iXC6c= +github.com/googleapis/gax-go/v2 v2.5.1/go.mod h1:h6B0KMMFNtI2ddbGJn3T3ZbwkeT6yqEF02fYlzkUCyo= +github.com/googleapis/gax-go/v2 v2.6.0/go.mod h1:1mjbznJAPHFpesgE5ucqfYEscaz5kMdcIDwU/6+DDoY= +github.com/googleapis/gax-go/v2 v2.12.0 h1:A+gCJKdRfqXkr+BIRGtZLibNXf0m1f9E4HG56etFpas= +github.com/googleapis/gax-go/v2 v2.12.0/go.mod h1:y+aIqrI5eb1YGMVJfuV3185Ts/D7qKpsEkdD5+I6QGU= +github.com/googleapis/go-type-adapters v1.0.0/go.mod h1:zHW75FOG2aur7gAO2B+MLby+cLsWGBF62rFAi7WjWO4= +github.com/googleapis/google-cloud-go-testing v0.0.0-20200911160855-bcd43fbb19e8/go.mod h1:dvDLG8qkwmyD9a/MJJN3XJcT3xFxOKAvTZGvuZmac9g= +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.1 h1:9lRY6j8DEeeBT10CvO9hGW0gmky0BprnvDI5vfhUHH4= +github.com/gorilla/handlers v1.5.1/go.mod h1:t8XrUpc4KVXb7HGyJ4/cEnwQiaxrX/hz1Zv/4g96P1Q= +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.0 h1:i40aqfkR1h2SlN9hojwV5ZA91wcXFOvkdNIeFDP5koI= +github.com/gorilla/mux v1.8.0/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So= +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.0 h1:PPwGk2jz7EePpoHN/+ClbZu8SPxiqlu12wZP/3sWmnc= +github.com/gorilla/websocket v1.5.0/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-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.1 h1:SWiSWN/42qdpR0MdhaOc/bLR48PLuP1ZQtYLRlM69uY= +github.com/hashicorp/go-getter v1.7.1/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= +github.com/hashicorp/go-immutable-radix v1.3.1 h1:DKHmCUm2hRBK510BaiZlwvpD40f8bJFeZnpfm2KLowc= +github.com/hashicorp/go-immutable-radix v1.3.1/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= +github.com/hashicorp/go-metrics v0.5.1 h1:rfPwUqFU6uZXNvGl4hzjY8LEBsqFVU4si1H9/Hqck/U= +github.com/hashicorp/go-metrics v0.5.1/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 h1:fv1ep09latC32wFoVwnqcnKJGnMSdBanPczbHAYm1BE= +github.com/hashicorp/go-uuid v1.0.1/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/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= +github.com/hdevalence/ed25519consensus v0.1.0/go.mod h1:w3BHWjwJbFU29IRHL1Iqkw3sus+7FctEyM4RqDxYNzo= +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/iancoleman/strcase v0.3.0 h1:nTXanmYxhfFAMjZL34Ov6gkzEsSJZ5DbhxWjvSASxEI= +github.com/iancoleman/strcase v0.3.0/go.mod h1:iwCmte+B7n89clKwxIoIXy/HfoL7AsD47ZCWhYzw7ho= +github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= +github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= +github.com/improbable-eng/grpc-web v0.15.0 h1:BN+7z6uNXZ1tQGcNAuaU1YjsLTApzkjt2tzCixLaUPQ= +github.com/improbable-eng/grpc-web v0.15.0/go.mod h1:1sy9HKV4Jt9aEs9JSnkWlRJPuPtwNr0l57L4f878wP8= +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/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/jmespath/go-jmespath/internal/testify v1.5.1 h1:shLQSRRSCCPj3f2gpwzGwWFoC7ycTf1rcQZHOlsJ6N8= +github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfCI6z80xFu9LTZmf1ZRjMHUOPmWr69U= +github.com/jmhodges/levigo v1.0.0 h1:q5EC36kV79HWeTBWsod3mG11EgStG3qArTKcvlksN1U= +github.com/jmhodges/levigo v1.0.0/go.mod h1:Q6Qx+uH3RAqyK4rFQroq9RL7mdkABMcfhEI+nNuzMJQ= +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/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/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= +github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= +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/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.15.11/go.mod h1:QPwzmACJjUTFsnSHH934V6woptycfrDDJnH7hvFVbGM= +github.com/klauspost/compress v1.17.4 h1:Ej5ixsIri7BrIjBkRZLTo6ghwrEtHFk7ijlczPW4fZ4= +github.com/klauspost/compress v1.17.4/go.mod h1:/dCuZOvVtNoHsyb+cuJD3itjs3NbnF6KH9zAO4BDxPM= +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/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg= +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= +github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= +github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= +github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= +github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= +github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= +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/libp2p/go-buffer-pool v0.1.0 h1:oK4mSFcQz7cTQIfqbe4MIj9gLW+mnanjyFtc6cdF0Y8= +github.com/libp2p/go-buffer-pool v0.1.0/go.mod h1:N+vh8gMqimBzdKkSMVuydVDq+UV5QTWy5HSiZacSbPg= +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.6 h1:O7I6SIGPrypf3f/gmrrLUBQDKfO8uOoYdWf4gLS06tc= +github.com/linxGnu/grocksdb v1.8.6/go.mod h1:xZCIb5Muw+nhbDK4Y5UJuOrin5MceOuiXkVUR7vp4WY= +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-runewidth v0.0.2/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= +github.com/mattn/go-runewidth v0.0.4/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= +github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= +github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0 h1:jWpvCLoY8Z/e3VKvlsiIGKtc+UG6U5vzxaoagmhXfyg= +github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0/go.mod h1:QUyp042oQthUoa9bqDv0ER0wrtXnBruoNd7aNjkbP+k= +github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= +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/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= +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/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/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/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= +github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= +github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk= +github.com/onsi/ginkgo v1.16.4/go.mod h1:dX+/inL/fNMqNlz0e9LfyB9TswhZpCVdJM/Z6Vvnwo0= +github.com/onsi/ginkgo v1.16.5 h1:8xi0RTUf59SOSfEtZMvwTvXYMzG4gV23XVHOZiXNtnE= +github.com/onsi/ginkgo v1.16.5/go.mod h1:+E8gABHa3K6zRBolWtd+ROzc/U5bkGt0FwiG042wbpU= +github.com/onsi/ginkgo/v2 v2.1.3/go.mod h1:vw5CSIxN1JObi/U8gcbwft7ZxR2dgaR70JSE3/PpL4c= +github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= +github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY= +github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo= +github.com/onsi/gomega v1.17.0/go.mod h1:HnhC7FXeEQY45zxNK3PPoIUhzk/80Xly9PcubAlGdZY= +github.com/onsi/gomega v1.19.0/go.mod h1:LY+I3pBVzYsTBU1AnDwOSxaYi9WoWiqgwooUqq9yPro= +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/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U= +github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM= +github.com/opencontainers/image-spec v1.1.0-rc2 h1:2zx/Stx4Wc5pIPDvIxHXvXtQFW/7XWJGmnM7r3wg034= +github.com/opencontainers/image-spec v1.1.0-rc2/go.mod h1:3OVijpioIKYWTqjiG0zfF6wvoJ4fAXGbjdZuI2NgsRQ= +github.com/opencontainers/runc v1.1.3 h1:vIXrkId+0/J2Ymu2m7VjGvbSlAId9XNRPhn2p4b+d8w= +github.com/opencontainers/runc v1.1.3/go.mod h1:1J5XiS+vdZ3wCyZybsuxXZWGrgSr8fFJHLXuG2PsnNg= +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/ory/dockertest v3.3.5+incompatible h1:iLLK6SQwIhcbrG783Dghaaa3WPzGc+4Emza6EbVUUGA= +github.com/ory/dockertest v3.3.5+incompatible/go.mod h1:1vX4m9wsvi00u5bseYwXaSnhNrne+V0E6LAcBILJdPs= +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.1.0 h1:FnwAJ4oYMvbT/34k9zzHuZNrhlz48GB3/s6at6/MHO4= +github.com/pelletier/go-toml/v2 v2.1.0/go.mod h1:tJU2Z3ZkXwnxa4DPO899bsyIoywizdUvyaeZurnPPDc= +github.com/performancecopilot/speed v3.0.0+incompatible/go.mod h1:/CLtqpZ5gBg1M9iaPbIdPPGyKcA8hKdoy6hAWba7Yac= +github.com/petermattis/goid v0.0.0-20180202154549-b0b1615b78e5/go.mod h1:jvVRKCrJTQWu0XVbaOlby/2lO20uSCHEMzzplHXte1o= +github.com/petermattis/goid v0.0.0-20230904192822-1876fd5063bc h1:8bQZVK1X6BJR/6nYUPxQEP+ReTsceJTKizeuwjWOPUA= +github.com/petermattis/goid v0.0.0-20230904192822-1876fd5063bc/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= +github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +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/pkg/sftp v1.13.1/go.mod h1:3HaPG6Dq1ILlpPZRO0HVMrsydcdLt6HRDccSgb87qRg= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/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.17.0 h1:rl2sfwZMtSthVU752MqfjQozy7blglC+1SOtjMAMh+Q= +github.com/prometheus/client_golang v1.17.0/go.mod h1:VeL+gMmOAxkS2IqfCq0ZmHSL+LjWfWDUmp1mBz9JgUY= +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.5.0 h1:VQw1hfvPvk3Uv6Qf29VrPF32JB6rtbgI6cYPYQjL0Qw= +github.com/prometheus/client_model v0.5.0/go.mod h1:dTiFglRmd66nLR9Pv9f0mZi7B7fk5Pm3gvsjB5tr+kI= +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.45.0 h1:2BGz0eBc2hdMDLnO/8n0jeB3oPrt2D08CekT0lneoxM= +github.com/prometheus/common v0.45.0/go.mod h1:YJmSTw9BoKxJplESWWxlbyttQR4uaEcGyv9MZjVOJsY= +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.12.0 h1:jluTpSng7V9hY0O2R9DzzJHYb2xULk9VTR1V1R/k6Bo= +github.com/prometheus/procfs v0.12.0/go.mod h1:pcuDEFsWDnvcgNzo4EEweacyhjeA9Zk3cnaOZAZEfOo= +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/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.11.0 h1:cWPaGQEPrBb5/AsnsZesgZZ9yb1OQ+GOISoDNXVBh4M= +github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUzkipdSkR5nkCZA= +github.com/rs/cors v1.7.0/go.mod h1:gFx+x8UowdsKA9AchylcLynDq+nNFfI8FkUZdN/jGCU= +github.com/rs/cors v1.8.3 h1:O+qNyWn7Z+F9M0ILBHgMVPuB1xTOucVd5gtaYyXBpRo= +github.com/rs/cors v1.8.3/go.mod h1:XyqrcTp5zjWr1wsJ8PIRZssZ8b/WMcMf71DJnit4EMU= +github.com/rs/xid v1.5.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg= +github.com/rs/zerolog v1.31.0 h1:FcTR3NnLWW+NnTwwhFWiJSZr4ECLpqCm6QsEnyvbV4A= +github.com/rs/zerolog v1.31.0/go.mod h1:/7mN4D5sKwJLZQ2b/znpjC3/GQWY/xaDXUM0kKWRHss= +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/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= +github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= +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/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/sirupsen/logrus v1.9.0 h1:trlNQbNUG3OdDrDil03MCb1H2o9nJ1x4/5LYw7byDE0= +github.com/sirupsen/logrus v1.9.0/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= +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/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= +github.com/spaolacci/murmur3 v1.1.0 h1:7c1g84S4BPRrfL5Xrdp6fOJ206sU9y293DDHaoy0bLI= +github.com/spaolacci/murmur3 v1.1.0/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= +github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ= +github.com/spf13/afero v1.9.5 h1:stMpOSZFs//0Lv29HduCmli3GUfpFoF3Y1Q/aXj/wVM= +github.com/spf13/afero v1.9.5/go.mod h1:UBogFpq8E9Hx+xc5CNTTEpTnuHVmXDwZcZcE1eb/UhQ= +github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= +github.com/spf13/cast v1.5.1 h1:R+kOtfhWQE6TVQzY+4D7wJLBgkdVasCEFxSUBYBYIlA= +github.com/spf13/cast v1.5.1/go.mod h1:b9PdjNptOpzXr7Rq1q9gJML/2cdGQAo69NKzQ10KN48= +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.7.0 h1:hyqWnYt1ZQShIddO5kBpj3vu05/++x6tJ6dg8EC572I= +github.com/spf13/cobra v1.7.0/go.mod h1:uLxZILRyS/50WlhOIKD7W6V5bgeIt+4sICxh6uRMrb0= +github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo= +github.com/spf13/jwalterweatherman v1.1.0 h1:ue6voC5bR5F8YxI5S67j9i582FU4Qvo2bmqnqMYADFk= +github.com/spf13/jwalterweatherman v1.1.0/go.mod h1:aNWZUN0dPAAO/Ljvb5BEdw96iTZ0EXowPYD95IqWIGo= +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.16.0 h1:rGGH0XDZhdUOryiDWjmIvUSWpbNqisK8Wk0Vyefw8hc= +github.com/spf13/viper v1.16.0/go.mod h1:yg78JgCJcbrQOvV9YLXgkLaZqUidkY9K+Dd1FofRzQg= +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= +github.com/stretchr/objx v0.5.0 h1:1zr/of2m5FGMsad5YfcqgdqdWrIhu+EBEJRhR1U7z/c= +github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= +github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= +github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= +github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= +github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= +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.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= +github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= +github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= +github.com/subosito/gotenv v1.4.2 h1:X1TuBLAMDFbaTAChgCBLu3DU3UPyELpnF2jjJ2cz/S8= +github.com/subosito/gotenv v1.4.2/go.mod h1:ayKnFf/c6rvx/2iiLrJUk1e6plDbT3edrFNGqEflhK0= +github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d h1:vfofYNRScrDdvS342BElfbETmL1Aiz3i2t0zfRj16Hs= +github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d/go.mod h1:RRCYJbIwD5jmqPI9XoAFR0OcDxqUctll6zUj/+B4S48= +github.com/tendermint/go-amino v0.16.0 h1:GyhmgQKvqF82e2oZeuMSp9JTN0N09emoSZlb2lyGa2E= +github.com/tendermint/go-amino v0.16.0/go.mod h1:TQU0M1i/ImAo+tYpZi73AU3V/dKeCoMC9Sphe2ZwGME= +github.com/tidwall/btree v1.7.0 h1:L1fkJH/AuEh5zBnnBbmTwQ5Lt+bRJ5A8EWecslvo9iI= +github.com/tidwall/btree v1.7.0/go.mod h1:twD9XRA5jj9VUQGELzDO4HPQTNJsoWWfYEL+EUQ2cKY= +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/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.7 h1:YPXUKf7fYbp/y8xloBqZOw2qaVggbfwMlI8WM3wZUJ0= +github.com/ugorji/go/codec v1.2.7/go.mod h1:WGN1fab3R1fzQlVQTkfxVtIBhWDRqOviHU95kRgeqEY= +github.com/ulikunitz/xz v0.5.10/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14= +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/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= +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/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= +github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= +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.8 h1:xs88BrvEv273UsB79e0hcVrlUWmS0a8upikMFhSyAtA= +go.etcd.io/bbolt v1.3.8/go.mod h1:N9Mkw9X8x5fupy0IKsmuqVtoGDyxsaDlbk4Rd05IAQw= +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.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= +go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= +go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= +go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= +go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= +go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk= +go.opencensus.io v0.23.0/go.mod h1:XItmlyltB5F7CS4xOC1DcqMoFqwtC6OG2xF7mCv7P7E= +go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= +go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= +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/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/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= +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-20190605123033-f99c8df09eb5/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-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20200728195943-123391ffb6de/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= +golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= +golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= +golang.org/x/crypto v0.16.0 h1:mMMrFzRSCF0GvB7Ne27XVtVAaXLrPmgPC7/v0tkwHaY= +golang.org/x/crypto v0.16.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4= +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-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= +golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek= +golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY= +golang.org/x/exp v0.0.0-20191129062945-2f5052295587/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= +golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= +golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= +golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM= +golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU= +golang.org/x/exp v0.0.0-20200331195152-e8c3332aa8e5/go.mod h1:4M0jN8W1tt0AVLNr8HDosyJCDCDuyL9N9+3m7wDWgKw= +golang.org/x/exp v0.0.0-20231006140011-7918f672742d h1:jtJma62tbqLibJ5sFQz8bKtEM8rJBtfilJ2qTU199MI= +golang.org/x/exp v0.0.0-20231006140011-7918f672742d/go.mod h1:ldy0pHrwJyGW56pPQzzkH36rKxoZW1tw7ZJpeKx+hdo= +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-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs= +golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/lint v0.0.0-20210508222113-6edffad5e616/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= +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.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= +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/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= +golang.org/x/mod v0.13.0 h1:I/DsJXRlw/8l/0c24sM9yb0T4z9liZTduXvdAWYiysY= +golang.org/x/mod v0.13.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= +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-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/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-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/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-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200222125558-5a598a2470a0/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-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200421231249-e086a090c8fd/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200506145744-7e3656a0809f/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200513185701-a91f0712d120/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-20200520182314-0ba52f642ac2/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-20200707034311-ab3426394381/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-20201031054903-ff519b6c9102/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/net v0.0.0-20201209123823-ac852fbbde11/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20201224014010-6772e930b67b/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20210119194325-5f4716e94777/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20210316092652-d523dce5a7f4/go.mod h1:RBQZq4jEuRlivfhVLdyRGr576XBO4/greRjx4P4O3yc= +golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= +golang.org/x/net v0.0.0-20210428140749-89ef3d95e781/go.mod h1:OJAsFXCWl8Ukc7SiCT/9KSuxbyM7479/AVlXFRxuMCk= +golang.org/x/net v0.0.0-20210503060351-7fd8e65b6420/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= +golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= +golang.org/x/net v0.0.0-20220325170049-de3da57026de/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= +golang.org/x/net v0.0.0-20220412020605-290c469a71a5/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= +golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= +golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.0.0-20220617184016-355a448f1bc9/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.0.0-20220909164309-bea034e7d591/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= +golang.org/x/net v0.0.0-20221014081412-f15817d10f9b/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= +golang.org/x/net v0.1.0/go.mod h1:Cx3nUiGt4eDBEyega/BKRp+/AlGL8hYe7U9odMt2Cco= +golang.org/x/net v0.19.0 h1:zTwKpTd2XuCqf8huc7Fo2iSy+4RHPd10s4KzeTnVr1c= +golang.org/x/net v0.19.0/go.mod h1:CfAk/cbD4CthTvqiEl8NpboMuiuOYsAr/7NOjZJtv1U= +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-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20200902213428-5d25da1a8d43/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20201109201403-9fd604954f58/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20201208152858-08078c50e5b5/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210218202405-ba52d332ba99/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210220000619-9bb904979d93/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210313182246-cd4f82c27b84/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210514164344-f6687ab2804c/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210628180205-a41e5a781914/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210805134026-6f1e6394065a/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210819190943-2bc19b11175f/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= +golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= +golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= +golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.1.0/go.mod h1:G9FE4dLTsbXUu90h/Pf85g4w1D+SSAgR+q46nJZ8M4A= +golang.org/x/oauth2 v0.13.0 h1:jDDenyj+WgFtmV3zYVoi8aE2BwtXFLWOA67ZfNWftiY= +golang.org/x/oauth2 v0.13.0/go.mod h1:/JMhi4ZRXAf4HG9LiNmxvk+45+96RUlVThiH8FzNBn0= +golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20220601150217-0de741cfad7f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20220929204114-8fcdb60fdcc0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.4.0 h1:zxkM55ReGkDlKSM+Fu41A+zmbZuaPVbGMzvvdUPznYQ= +golang.org/x/sync v0.4.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y= +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-20190130150945-aca44879d564/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-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/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-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-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191220142924-d4481acd189f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200106162015-b016eb3dc98e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/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-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200331124033-c3d80250170d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200420163511-1957bb5e6d1f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200501052902-10377860bb8e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200511232937-7e40ca221e25/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200523222454-059865788121/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-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200905004654-be1d3432aa8f/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-20201201145000-ef89a241ccb3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210104204734-6f8348627aad/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210112080510-489259a85091/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210220050731-9a76102bfb43/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210225134936-a50acf3fe073/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210305230114-8fe3ee5dd75b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210315160823-c6e025ad8005/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4/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-20210423185535-09eb48e85fd7/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-20210514084401-e8d321eab015/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210603125802-9665404d3644/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-20210616094352-59db8d763f22/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-20210806184541-e5e7981a1069/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +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-20210823070655-63515b42dcdf/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210908233432-aa78b53d3365/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-20211124211545-fe61309f8881/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20211210111614-af8b64212486/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-20220128215802-99c3d69c2c27/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220209214540-3681064d5158/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220227234510-4e6760a101f9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220310020820-b874c991c1a5/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-20220328115105-d36c6a25d886/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220412211240-33da011f77ad/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220502124256-b6088ccd6cba/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-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220610221304-9f5ed59c137d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/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-20220908164124-27713097b956/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= +golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.15.0 h1:h48lPFYpsTvQJZF4EKyI4aLHaev3CxivZmv7yZig9pc= +golang.org/x/sys v0.15.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.1.0/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= +golang.org/x/term v0.15.0 h1:y/Oo/a/q3IXu26lQgl04j/gjuBDOBlx7X6Om1j2CPW4= +golang.org/x/term v0.15.0/go.mod h1:BDl952bC7+uMoWR75FIrCDx79TPU9oHkTZ9yRbYOrX0= +golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/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.4/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.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ= +golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= +golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= +golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +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-20190312151545-0bb0c0a6e846/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-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +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-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/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-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200103221440-774c71fcf114/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200117161641-43d50277825c/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200122220014-bf1340f18c4a/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200204074204-1cc6d1ef6c74/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-20200212150539-ea181f53ac56/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200224181240-023911ca70b2/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200227222343-706bc42d1f0d/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200304193943-95d2e580d8eb/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= +golang.org/x/tools v0.0.0-20200312045724-11d5b4c81c7d/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= +golang.org/x/tools v0.0.0-20200331025713-a30bf2db82d4/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= +golang.org/x/tools v0.0.0-20200501065659-ab2804fb9c9d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200904185747-39188db58858/go.mod h1:Cj7w3i3Rnn0Xh82ur9kSqwfTHTeVxaDqrfMjpcNT6bE= +golang.org/x/tools v0.0.0-20201110124207-079ba7bd75cd/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20201201161351-ac6f37ff4c2a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20201208233053-a543418bbed2/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20201224043029-2b0845dc783e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20210105154028-b0ab187a4818/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20210108195828-e2f9c7f1fc8e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0= +golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= +golang.org/x/tools v0.1.2/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= +golang.org/x/tools v0.1.3/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= +golang.org/x/tools v0.1.4/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= +golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= +golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= +golang.org/x/tools v0.14.0 h1:jvNa2pY0M4r62jkRQ6RwEZZyPcymeL9XZMLBbV7U2nc= +golang.org/x/tools v0.14.0/go.mod h1:uYBEerGOWcJyEORxN+Ek8+TT266gXkNlHdJBwexUsBg= +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= +golang.org/x/xerrors v0.0.0-20220411194840-2f41105eb62f/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20220517211312-f3a8303e98df/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= +golang.org/x/xerrors v0.0.0-20220609144429-65e65417b02f/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= +golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 h1:H2TDz8ibqkAF6YGhCdN3jS9O0/s90v0rJh3X/OLHEUk= +golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= +google.golang.org/api v0.3.1/go.mod h1:6wY9I6uQWHQ8EM57III9mq/AjF+i8G65rmVagqKMtkk= +google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= +google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= +google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= +google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= +google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= +google.golang.org/api v0.14.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= +google.golang.org/api v0.15.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= +google.golang.org/api v0.17.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.18.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.19.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.20.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.22.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.24.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= +google.golang.org/api v0.28.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= +google.golang.org/api v0.29.0/go.mod h1:Lcubydp8VUV7KeIHD9z2Bys/sm/vGKnG1UHuDBSrHWM= +google.golang.org/api v0.30.0/go.mod h1:QGmEvQ87FHZNiUVJkT14jQNYJ4ZJjdRF23ZXz5138Fc= +google.golang.org/api v0.35.0/go.mod h1:/XrVsuzM0rZmrsbjJutiuftIzeuTQcEeaYcSk/mQ1dg= +google.golang.org/api v0.36.0/go.mod h1:+z5ficQTmoYpPn8LCUNVpK5I7hwkpjbcgqA7I34qYtE= +google.golang.org/api v0.40.0/go.mod h1:fYKFpnQN0DsDSKRVRcQSDQNtqWPfM9i+zNPxepjRCQ8= +google.golang.org/api v0.41.0/go.mod h1:RkxM5lITDfTzmyKFPt+wGrCJbVfniCr2ool8kTBzRTU= +google.golang.org/api v0.43.0/go.mod h1:nQsDGjRXMo4lvh5hP0TKqF244gqhGcr/YSIykhUk/94= +google.golang.org/api v0.47.0/go.mod h1:Wbvgpq1HddcWVtzsVLyfLp8lDg6AA241LmgIL59tHXo= +google.golang.org/api v0.48.0/go.mod h1:71Pr1vy+TAZRPkPs/xlCf5SsU8WjuAWv1Pfjbtukyy4= +google.golang.org/api v0.50.0/go.mod h1:4bNT5pAuq5ji4SRZm+5QIkjny9JAyVD/3gaSihNefaw= +google.golang.org/api v0.51.0/go.mod h1:t4HdrdoNgyN5cbEfm7Lum0lcLDLiise1F8qDKX00sOU= +google.golang.org/api v0.54.0/go.mod h1:7C4bFFOvVDGXjfDTAsgGwDgAxRDeQ4X8NvUedIt6z3k= +google.golang.org/api v0.55.0/go.mod h1:38yMfeP1kfjsl8isn0tliTjIb1rJXcQi4UXlbqivdVE= +google.golang.org/api v0.56.0/go.mod h1:38yMfeP1kfjsl8isn0tliTjIb1rJXcQi4UXlbqivdVE= +google.golang.org/api v0.57.0/go.mod h1:dVPlbZyBo2/OjBpmvNdpn2GRm6rPy75jyU7bmhdrMgI= +google.golang.org/api v0.61.0/go.mod h1:xQRti5UdCmoCEqFxcz93fTl338AVqDgyaDRuOZ3hg9I= +google.golang.org/api v0.63.0/go.mod h1:gs4ij2ffTRXwuzzgJl/56BdwJaA194ijkfn++9tDuPo= +google.golang.org/api v0.67.0/go.mod h1:ShHKP8E60yPsKNw/w8w+VYaj9H6buA5UqDp8dhbQZ6g= +google.golang.org/api v0.70.0/go.mod h1:Bs4ZM2HGifEvXwd50TtW70ovgJffJYw2oRCOFU/SkfA= +google.golang.org/api v0.71.0/go.mod h1:4PyU6e6JogV1f9eA4voyrTY2batOLdgZ5qZ5HOCc4j8= +google.golang.org/api v0.74.0/go.mod h1:ZpfMZOVRMywNyvJFeqL9HRWBgAuRfSjJFpe9QtRRyDs= +google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69ljA= +google.golang.org/api v0.77.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69ljA= +google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= +google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= +google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= +google.golang.org/api v0.85.0/go.mod h1:AqZf8Ep9uZ2pyTvgL+x0D3Zt0eoT9b5E8fmzfu6FO2g= +google.golang.org/api v0.90.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= +google.golang.org/api v0.96.0/go.mod h1:w7wJQLTM+wvQpNf5JyEcBoxK0RH7EDrh/L4qfsuJ13s= +google.golang.org/api v0.97.0/go.mod h1:w7wJQLTM+wvQpNf5JyEcBoxK0RH7EDrh/L4qfsuJ13s= +google.golang.org/api v0.98.0/go.mod h1:w7wJQLTM+wvQpNf5JyEcBoxK0RH7EDrh/L4qfsuJ13s= +google.golang.org/api v0.100.0/go.mod h1:ZE3Z2+ZOr87Rx7dqFsdRQkRBk36kDtp/h+QpHbB7a70= +google.golang.org/api v0.149.0 h1:b2CqT6kG+zqJIVKRQ3ELJVLN1PwHZ6DJ3dW8yl82rgY= +google.golang.org/api v0.149.0/go.mod h1:Mwn1B7JTXrzXtnvmzQE2BD6bYZQ8DShKZDZbeN9I7qI= +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/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= +google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= +google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= +google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= +google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= +google.golang.org/appengine v1.6.8 h1:IhEN5q69dyKagZPYMSdIjS2HqprW324FRQZJcGqPAsM= +google.golang.org/appengine v1.6.8/go.mod h1:1jJ3jBArFh5pcgW8gCtRJnepW8FzD1V44FJffLiz/Ds= +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-20190418145605-e7d98fc518a7/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-20190502173448-54afdca5d873/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-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= +google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= +google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= +google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20191115194625-c23dd37a84c9/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20191216164720-4f79533eabd1/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20200115191322-ca5a22157cba/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20200122232147-0452cf42e150/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20200204135345-fa8e72b47b90/go.mod h1:GmwEX6Z4W5gMy59cAlVYjN9JhxgbQH6Gn+gFDQe2lzA= +google.golang.org/genproto v0.0.0-20200212174721-66ed5ce911ce/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200228133532-8c2c7df3a383/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200305110556-506484158171/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200312145019-da6875a35672/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200331122359-1ee6d9798940/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200423170343-7949de9c1215/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200430143042-b979b6f78d84/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200511104702-f5ebc3bea380/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200515170657-fc4c6c6a6587/go.mod h1:YsZOwe1myG/8QRHRsmBRE1LrgQY60beZKjly0O1fX9U= +google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= +google.golang.org/genproto v0.0.0-20200618031413-b414f8b61790/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA= +google.golang.org/genproto v0.0.0-20200729003335-053ba62fc06f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20200904004341-0bd0a958aa1d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201109203340-2640f1f9cdfb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201201144952-b05cb90ed32e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201210142538-e3217bee35cc/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201214200347-8c77b98c765d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210108203827-ffc7fda8c3d7/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210126160654-44e461bb6506/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210222152913-aa3ee6e6a81c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210226172003-ab064af71705/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210303154014-9728d6b83eeb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210310155132-4ce2db91004e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210319143718-93e7006c17a6/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210329143202-679c6ae281ee/go.mod h1:9lPAdzaEmUacj36I+k7YKbEc5CXzPIeORRgDAUOu28A= +google.golang.org/genproto v0.0.0-20210402141018-6c239bbf2bb1/go.mod h1:9lPAdzaEmUacj36I+k7YKbEc5CXzPIeORRgDAUOu28A= +google.golang.org/genproto v0.0.0-20210513213006-bf773b8c8384/go.mod h1:P3QM42oQyzQSnHPnZ/vqoCdDmzH28fzWByN9asMeM8A= +google.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= +google.golang.org/genproto v0.0.0-20210604141403-392c879c8b08/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= +google.golang.org/genproto v0.0.0-20210608205507-b6d2f5bf0d7d/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= +google.golang.org/genproto v0.0.0-20210624195500-8bfb893ecb84/go.mod h1:SzzZ/N+nwJDaO1kznhnlzqS8ocJICar6hYhVyhi++24= +google.golang.org/genproto v0.0.0-20210713002101-d411969a0d9a/go.mod h1:AxrInvYm1dci+enl5hChSFPOmmUF1+uAa/UsgNRWd7k= +google.golang.org/genproto v0.0.0-20210716133855-ce7ef5c701ea/go.mod h1:AxrInvYm1dci+enl5hChSFPOmmUF1+uAa/UsgNRWd7k= +google.golang.org/genproto v0.0.0-20210728212813-7823e685a01f/go.mod h1:ob2IJxKrgPT52GcgX759i1sleT07tiKowYBGbczaW48= +google.golang.org/genproto v0.0.0-20210805201207-89edb61ffb67/go.mod h1:ob2IJxKrgPT52GcgX759i1sleT07tiKowYBGbczaW48= +google.golang.org/genproto v0.0.0-20210813162853-db860fec028c/go.mod h1:cFeNkxwySK631ADgubI+/XFU/xp8FD5KIVV4rj8UC5w= +google.golang.org/genproto v0.0.0-20210821163610-241b8fcbd6c8/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= +google.golang.org/genproto v0.0.0-20210828152312-66f60bf46e71/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= +google.golang.org/genproto v0.0.0-20210831024726-fe130286e0e2/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= +google.golang.org/genproto v0.0.0-20210903162649-d08c68adba83/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= +google.golang.org/genproto v0.0.0-20210909211513-a8c4777a87af/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= +google.golang.org/genproto v0.0.0-20210924002016-3dee208752a0/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211118181313-81c1377c94b1/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211206160659-862468c7d6e0/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211208223120-3a66f561d7aa/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211221195035-429b39de9b1c/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20220126215142-9970aeb2e350/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20220207164111-0872dc986b00/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20220218161850-94dd64e39d7c/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI= +google.golang.org/genproto v0.0.0-20220222213610-43724f9ea8cf/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI= +google.golang.org/genproto v0.0.0-20220304144024-325a89244dc8/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI= +google.golang.org/genproto v0.0.0-20220310185008-1973136f34c6/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI= +google.golang.org/genproto v0.0.0-20220314164441-57ef72a4c106/go.mod h1:hAL49I2IFola2sVEjAn7MEwsja0xp51I0tlGAf9hz4E= +google.golang.org/genproto v0.0.0-20220324131243-acbaeb5b85eb/go.mod h1:hAL49I2IFola2sVEjAn7MEwsja0xp51I0tlGAf9hz4E= +google.golang.org/genproto v0.0.0-20220407144326-9054f6ed7bac/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= +google.golang.org/genproto v0.0.0-20220413183235-5e96e2839df9/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= +google.golang.org/genproto v0.0.0-20220414192740-2d67ff6cf2b4/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= +google.golang.org/genproto v0.0.0-20220421151946-72621c1f0bd3/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= +google.golang.org/genproto v0.0.0-20220429170224-98d788798c3e/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= +google.golang.org/genproto v0.0.0-20220502173005-c8bf987b8c21/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= +google.golang.org/genproto v0.0.0-20220505152158-f39f71e6c8f3/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= +google.golang.org/genproto v0.0.0-20220518221133-4f43b3371335/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= +google.golang.org/genproto v0.0.0-20220523171625-347a074981d8/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= +google.golang.org/genproto v0.0.0-20220608133413-ed9918b62aac/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220616135557-88e70c0c3a90/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220628213854-d9e0b6570c03/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220722212130-b98a9ff5e252/go.mod h1:GkXuJDJ6aQ7lnJcRF+SJVgFdQhypqgl3LB1C9vabdRE= +google.golang.org/genproto v0.0.0-20220801145646-83ce21fca29f/go.mod h1:iHe1svFLAZg9VWz891+QbRMwUv9O/1Ww+/mngYeThbc= +google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk= +google.golang.org/genproto v0.0.0-20220817144833-d7fd3f11b9b1/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk= +google.golang.org/genproto v0.0.0-20220822174746-9e6da59bd2fc/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk= +google.golang.org/genproto v0.0.0-20220829144015-23454907ede3/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk= +google.golang.org/genproto v0.0.0-20220829175752-36a9c930ecbf/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk= +google.golang.org/genproto v0.0.0-20220913154956-18f8339a66a5/go.mod h1:0Nb8Qy+Sk5eDzHnzlStwW3itdNaWoZA5XeSG+R3JHSo= +google.golang.org/genproto v0.0.0-20220914142337-ca0e39ece12f/go.mod h1:0Nb8Qy+Sk5eDzHnzlStwW3itdNaWoZA5XeSG+R3JHSo= +google.golang.org/genproto v0.0.0-20220915135415-7fd63a7952de/go.mod h1:0Nb8Qy+Sk5eDzHnzlStwW3itdNaWoZA5XeSG+R3JHSo= +google.golang.org/genproto v0.0.0-20220916172020-2692e8806bfa/go.mod h1:0Nb8Qy+Sk5eDzHnzlStwW3itdNaWoZA5XeSG+R3JHSo= +google.golang.org/genproto v0.0.0-20220919141832-68c03719ef51/go.mod h1:0Nb8Qy+Sk5eDzHnzlStwW3itdNaWoZA5XeSG+R3JHSo= +google.golang.org/genproto v0.0.0-20220920201722-2b89144ce006/go.mod h1:ht8XFiar2npT/g4vkk7O0WYS1sHOHbdujxbEp7CJWbw= +google.golang.org/genproto v0.0.0-20220926165614-551eb538f295/go.mod h1:woMGP53BroOrRY3xTxlbr8Y3eB/nzAvvFM83q7kG2OI= +google.golang.org/genproto v0.0.0-20220926220553-6981cbe3cfce/go.mod h1:woMGP53BroOrRY3xTxlbr8Y3eB/nzAvvFM83q7kG2OI= +google.golang.org/genproto v0.0.0-20221010155953-15ba04fc1c0e/go.mod h1:3526vdqwhZAwq4wsRUaVG555sVgsNmIjRtO7t/JH29U= +google.golang.org/genproto v0.0.0-20221014173430-6e2ab493f96b/go.mod h1:1vXfmgAz9N9Jx0QA82PqRVauvCz1SGSz739p0f183jM= +google.golang.org/genproto v0.0.0-20221014213838-99cd37c6964a/go.mod h1:1vXfmgAz9N9Jx0QA82PqRVauvCz1SGSz739p0f183jM= +google.golang.org/genproto v0.0.0-20221025140454-527a21cfbd71/go.mod h1:9qHF0xnpdSfF6knlcsnpzUu5y+rpwgbvsyGAZPBMg4s= +google.golang.org/genproto v0.0.0-20231211222908-989df2bf70f3 h1:1hfbdAfFbkmpg41000wDVqr7jUpK/Yo+LPnIxxGzmkg= +google.golang.org/genproto v0.0.0-20231211222908-989df2bf70f3/go.mod h1:5RBcpGRxr25RbDzY5w+dmaqpSEvl8Gwl1x2CICf60ic= +google.golang.org/genproto/googleapis/api v0.0.0-20231120223509-83a465c0220f h1:2yNACc1O40tTnrsbk9Cv6oxiW8pxI/pXj0wRtdlYmgY= +google.golang.org/genproto/googleapis/api v0.0.0-20231120223509-83a465c0220f/go.mod h1:Uy9bTZJqmfrw2rIBxgGLnamc78euZULUBrLZ9XTITKI= +google.golang.org/genproto/googleapis/rpc v0.0.0-20231212172506-995d672761c0 h1:/jFB8jK5R3Sq3i/lmeZO0cATSzFfZaJq1J2Euan3XKU= +google.golang.org/genproto/googleapis/rpc v0.0.0-20231212172506-995d672761c0/go.mod h1:FUoWkonphQm3RhTS+kOEhF8h0iDpm4tdXolVCeZ9KKA= +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.21.1/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.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60= +google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk= +google.golang.org/grpc v1.30.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/grpc v1.31.1/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +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.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc= +google.golang.org/grpc v1.34.0/go.mod h1:WotjhfgOW/POjDeRt8vscBtXq+2VjORFy659qA51WJ8= +google.golang.org/grpc v1.35.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= +google.golang.org/grpc v1.36.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= +google.golang.org/grpc v1.36.1/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= +google.golang.org/grpc v1.37.0/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM= +google.golang.org/grpc v1.37.1/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM= +google.golang.org/grpc v1.38.0/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM= +google.golang.org/grpc v1.39.0/go.mod h1:PImNr+rS9TWYb2O4/emRugxiyHZ5JyHW5F+RPnDzfrE= +google.golang.org/grpc v1.39.1/go.mod h1:PImNr+rS9TWYb2O4/emRugxiyHZ5JyHW5F+RPnDzfrE= +google.golang.org/grpc v1.40.0/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34= +google.golang.org/grpc v1.40.1/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34= +google.golang.org/grpc v1.44.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU= +google.golang.org/grpc v1.45.0/go.mod h1:lN7owxKUQEqMfSyQikvvk5tf/6zMPsrK+ONuO11+0rQ= +google.golang.org/grpc v1.46.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= +google.golang.org/grpc v1.46.2/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= +google.golang.org/grpc v1.47.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= +google.golang.org/grpc v1.48.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= +google.golang.org/grpc v1.49.0/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= +google.golang.org/grpc v1.50.0/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= +google.golang.org/grpc v1.50.1/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= +google.golang.org/grpc v1.60.1 h1:26+wFr+cNqSGFcOXcabYC0lUVJVRa2Sb2ortSK7VrEU= +google.golang.org/grpc v1.60.1/go.mod h1:OlCHIeLYqSSsLi6i49B5QGdzaMZK9+M7LXN2FKz4eGM= +google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0/go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw= +google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= +google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= +google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= +google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= +google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= +google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.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.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= +google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= +google.golang.org/protobuf v1.32.0 h1:pPC6BG5ex8PDFnkbrGU3EixyhKcQ2aDuBS36lqK/C7I= +google.golang.org/protobuf v1.32.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= +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/cheggaaa/pb.v1 v1.0.27/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/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-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/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= +honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= +honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= +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 v1.1.0 h1:CMa0sjHSru3puNx+J0MIAuiiEV4N0qj8/cMWGBBCsjw= +pgregory.net/rapid v1.1.0/go.mod h1:PY5XlDGj0+V1FCq0o192FdRhpKHGTRIWBgqjDBTrq04= +rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= +rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= +rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= +sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o= +sigs.k8s.io/yaml v1.3.0 h1:a2VclLzOGrwOHDiV8EfBGhvjHvP46CtW5j6POvhYGGo= +sigs.k8s.io/yaml v1.3.0/go.mod h1:GeOyir5tyXNByN85N/dRIT9es5UQNerPYEKK56eTBm8= +sourcegraph.com/sourcegraph/appdash v0.0.0-20190731080439-ebfcffb1b5c0/go.mod h1:hI742Nqp5OhwiqlzhgfbWU4mW4yO10fP+LoT9WOswdU= diff --git a/cmd/and/main.go b/cmd/and/main.go new file mode 100644 index 0000000..3a0e339 --- /dev/null +++ b/cmd/and/main.go @@ -0,0 +1,19 @@ +package main + +import ( + "fmt" + "os" + + svrcmd "github.com/cosmos/cosmos-sdk/server/cmd" + + "github.com/0tech/andromeda/app" + "github.com/0tech/andromeda/cmd/and/cmd" +) + +func main() { + rootCmd := cmd.NewRootCmd() + if err := svrcmd.Execute(rootCmd, "", app.DefaultNodeHome); err != nil { + fmt.Fprintln(rootCmd.OutOrStderr(), err) + os.Exit(1) + } +} diff --git a/go.work b/go.work index 46d2c52..3156088 100644 --- a/go.work +++ b/go.work @@ -1,6 +1,7 @@ go 1.21 use ( + ./cmd/and ./app ./x/escrow ) From bff7ddf65f5348bdfee00a3dad867f85e3eeeceb Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Sun, 21 Jan 2024 09:20:27 +0000 Subject: [PATCH 04/62] Implement x/test --- go.work | 1 + go.work.sum | 1 + x/test/.golangci.yaml | 32 + .../test/module/v1alpha1/module.pb.go | 274 ++ x/test/andromeda/test/v1alpha1/codec.go | 16 + x/test/andromeda/test/v1alpha1/errors.go | 37 + x/test/andromeda/test/v1alpha1/event.pb.go | 658 ++++ x/test/andromeda/test/v1alpha1/keys.go | 6 + x/test/andromeda/test/v1alpha1/query.pb.go | 1524 ++++++++ x/test/andromeda/test/v1alpha1/query.pb.gw.go | 330 ++ x/test/andromeda/test/v1alpha1/tx.pb.go | 1028 +++++ x/test/andromeda/test/v1alpha1/types.pb.go | 269 ++ .../test/module/v1alpha1/module.pulsar.go | 505 +++ .../andromeda/test/v1alpha1/event.pulsar.go | 1275 +++++++ .../andromeda/test/v1alpha1/query.pulsar.go | 3333 +++++++++++++++++ .../andromeda/test/v1alpha1/query_grpc.pb.go | 150 + .../api/andromeda/test/v1alpha1/tx.pulsar.go | 2089 +++++++++++ .../api/andromeda/test/v1alpha1/tx_grpc.pb.go | 150 + .../andromeda/test/v1alpha1/types.pulsar.go | 496 +++ x/test/go.mod | 154 + x/test/go.sum | 1280 +++++++ x/test/keeper/exported.go | 37 + x/test/keeper/internal/asset.go | 95 + x/test/keeper/internal/asset_test.go | 123 + x/test/keeper/internal/grpc_query.go | 90 + x/test/keeper/internal/grpc_query_test.go | 108 + x/test/keeper/internal/keeper.go | 61 + x/test/keeper/internal/keeper_test.go | 158 + x/test/keeper/internal/keys.go | 7 + x/test/keeper/internal/msg_server.go | 91 + x/test/keeper/internal/msg_server_test.go | 147 + x/test/module/module.go | 137 + .../test/module/v1alpha1/module.proto | 9 + .../proto/andromeda/test/v1alpha1/event.proto | 25 + .../proto/andromeda/test/v1alpha1/query.proto | 64 + x/test/proto/andromeda/test/v1alpha1/tx.proto | 48 + .../proto/andromeda/test/v1alpha1/types.proto | 6 + x/test/proto/buf.gen.gogo.yaml | 16 + x/test/proto/buf.gen.pulsar.yaml | 16 + x/test/proto/buf.lock | 28 + x/test/proto/buf.yaml | 20 + x/test/testutil/iterator.go | 117 + 42 files changed, 15011 insertions(+) create mode 100644 x/test/.golangci.yaml create mode 100644 x/test/andromeda/test/module/v1alpha1/module.pb.go create mode 100644 x/test/andromeda/test/v1alpha1/codec.go create mode 100644 x/test/andromeda/test/v1alpha1/errors.go create mode 100644 x/test/andromeda/test/v1alpha1/event.pb.go create mode 100644 x/test/andromeda/test/v1alpha1/keys.go create mode 100644 x/test/andromeda/test/v1alpha1/query.pb.go create mode 100644 x/test/andromeda/test/v1alpha1/query.pb.gw.go create mode 100644 x/test/andromeda/test/v1alpha1/tx.pb.go create mode 100644 x/test/andromeda/test/v1alpha1/types.pb.go create mode 100644 x/test/api/andromeda/test/module/v1alpha1/module.pulsar.go create mode 100644 x/test/api/andromeda/test/v1alpha1/event.pulsar.go create mode 100644 x/test/api/andromeda/test/v1alpha1/query.pulsar.go create mode 100644 x/test/api/andromeda/test/v1alpha1/query_grpc.pb.go create mode 100644 x/test/api/andromeda/test/v1alpha1/tx.pulsar.go create mode 100644 x/test/api/andromeda/test/v1alpha1/tx_grpc.pb.go create mode 100644 x/test/api/andromeda/test/v1alpha1/types.pulsar.go create mode 100644 x/test/go.mod create mode 100644 x/test/go.sum create mode 100644 x/test/keeper/exported.go create mode 100644 x/test/keeper/internal/asset.go create mode 100644 x/test/keeper/internal/asset_test.go create mode 100644 x/test/keeper/internal/grpc_query.go create mode 100644 x/test/keeper/internal/grpc_query_test.go create mode 100644 x/test/keeper/internal/keeper.go create mode 100644 x/test/keeper/internal/keeper_test.go create mode 100644 x/test/keeper/internal/keys.go create mode 100644 x/test/keeper/internal/msg_server.go create mode 100644 x/test/keeper/internal/msg_server_test.go create mode 100644 x/test/module/module.go create mode 100644 x/test/proto/andromeda/test/module/v1alpha1/module.proto create mode 100644 x/test/proto/andromeda/test/v1alpha1/event.proto create mode 100644 x/test/proto/andromeda/test/v1alpha1/query.proto create mode 100644 x/test/proto/andromeda/test/v1alpha1/tx.proto create mode 100644 x/test/proto/andromeda/test/v1alpha1/types.proto create mode 100644 x/test/proto/buf.gen.gogo.yaml create mode 100644 x/test/proto/buf.gen.pulsar.yaml create mode 100644 x/test/proto/buf.lock create mode 100644 x/test/proto/buf.yaml create mode 100644 x/test/testutil/iterator.go diff --git a/go.work b/go.work index 3156088..5cc1456 100644 --- a/go.work +++ b/go.work @@ -3,5 +3,6 @@ go 1.21 use ( ./cmd/and ./app + ./x/test ./x/escrow ) diff --git a/go.work.sum b/go.work.sum index b6f893c..0bf8838 100644 --- a/go.work.sum +++ b/go.work.sum @@ -163,6 +163,7 @@ github.com/cncf/xds/go v0.0.0-20230607035331-e9ce68804cb4/go.mod h1:eXthEFrGJvWH github.com/cockroachdb/sentry-go v0.6.1-cockroachdb.2/go.mod h1:8BT+cPK6xvFOcRlk0R8eg+OTkcqI6baNH4xAkpiYVvQ= github.com/codegangsta/inject v0.0.0-20150114235600-33e0aa1cb7c0/go.mod h1:4Zcjuz89kmFXt9morQgcfYZAYZ5n8WHjt81YYWIwtTM= github.com/coreos/go-semver v0.3.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= +github.com/creachadair/command v0.0.0-20220916173946-56a74cdd66b6/go.mod h1:jN7ZJM5YSVtD3SHmkAdN/cOC1dXiqg2Y9K5Sr5a8Nxw= github.com/curioswitch/go-reassign v0.2.0/go.mod h1:x6OpXuWvgfQaMGks2BZybTngWjT84hqJfKoO8Tt/Roc= github.com/daixiang0/gci v0.10.1/go.mod h1:xtHP9N7AHdNvtRNfcx9gwTDfw7FRJx4bZUsiEfiNNAI= github.com/denis-tingaikin/go-header v0.4.3/go.mod h1:0wOCWuN71D5qIgE2nz9KrKmuYBAC2Mra5RassOIQ2/c= diff --git a/x/test/.golangci.yaml b/x/test/.golangci.yaml new file mode 100644 index 0000000..80d352c --- /dev/null +++ b/x/test/.golangci.yaml @@ -0,0 +1,32 @@ +run: + skip-files: + - ".*\\.pb\\.go$" + - ".*\\.pb\\.gw\\.go$" + - ".*\\.pulsar\\.go$" + - ".*\\.mock\\.go$" + +linters: + enable: + - depguard + - dogsled + - exportloopref + - goconst + - gocritic + - gofumpt + - gosec + - misspell + - nakedret + - nolintlint + - revive + - stylecheck + - unconvert + +linters-settings: + gci: + custom-order: true + sections: + - standard + - default + - prefix(cosmossdk.io) + - prefix(github.com/cosmos/cosmos-sdk) + - prefix(github.com/0tech/andromeda) diff --git a/x/test/andromeda/test/module/v1alpha1/module.pb.go b/x/test/andromeda/test/module/v1alpha1/module.pb.go new file mode 100644 index 0000000..462c800 --- /dev/null +++ b/x/test/andromeda/test/module/v1alpha1/module.pb.go @@ -0,0 +1,274 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: andromeda/test/module/v1alpha1/module.proto + +package modulev1alpha1 + +import ( + _ "cosmossdk.io/api/cosmos/app/v1alpha1" + fmt "fmt" + proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// 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 + +// Module is the config object of the module. +type Module struct { +} + +func (m *Module) Reset() { *m = Module{} } +func (m *Module) String() string { return proto.CompactTextString(m) } +func (*Module) ProtoMessage() {} +func (*Module) Descriptor() ([]byte, []int) { + return fileDescriptor_65827bb380805c7b, []int{0} +} +func (m *Module) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Module) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Module.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 *Module) XXX_Merge(src proto.Message) { + xxx_messageInfo_Module.Merge(m, src) +} +func (m *Module) XXX_Size() int { + return m.Size() +} +func (m *Module) XXX_DiscardUnknown() { + xxx_messageInfo_Module.DiscardUnknown(m) +} + +var xxx_messageInfo_Module proto.InternalMessageInfo + +func init() { + proto.RegisterType((*Module)(nil), "andromeda.test.module.v1alpha1.Module") +} + +func init() { + proto.RegisterFile("andromeda/test/module/v1alpha1/module.proto", fileDescriptor_65827bb380805c7b) +} + +var fileDescriptor_65827bb380805c7b = []byte{ + // 258 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0x4e, 0xcc, 0x4b, 0x29, + 0xca, 0xcf, 0x4d, 0x4d, 0x49, 0xd4, 0x2f, 0x49, 0x2d, 0x2e, 0xd1, 0xcf, 0xcd, 0x4f, 0x29, 0xcd, + 0x49, 0xd5, 0x2f, 0x33, 0x4c, 0xcc, 0x29, 0xc8, 0x48, 0x34, 0x84, 0xf2, 0xf5, 0x0a, 0x8a, 0xf2, + 0x4b, 0xf2, 0x85, 0xe4, 0xe0, 0x8a, 0xf5, 0x40, 0x8a, 0xf5, 0xa0, 0x92, 0x30, 0xc5, 0x52, 0x0a, + 0xc9, 0xf9, 0xc5, 0xb9, 0xf9, 0xc5, 0xfa, 0x89, 0x05, 0x05, 0xd8, 0x4d, 0x50, 0x32, 0xe6, 0x62, + 0xf3, 0x05, 0xf3, 0xad, 0x34, 0x77, 0x1d, 0x98, 0x76, 0x8b, 0x51, 0x99, 0x4b, 0x31, 0x3d, 0xb3, + 0x24, 0xa3, 0x34, 0x49, 0x2f, 0x39, 0x3f, 0x57, 0xdf, 0xa0, 0x24, 0x35, 0x39, 0x43, 0x1f, 0xe1, + 0xa2, 0x0a, 0xb0, 0x9b, 0x9c, 0x26, 0x33, 0x9d, 0x78, 0x24, 0xc7, 0x78, 0xe1, 0x91, 0x1c, 0xe3, + 0x83, 0x47, 0x72, 0x8c, 0x13, 0x1e, 0xcb, 0x31, 0x5c, 0x78, 0x2c, 0xc7, 0x70, 0xe3, 0xb1, 0x1c, + 0x03, 0x97, 0x52, 0x72, 0x7e, 0xae, 0x1e, 0x7e, 0x57, 0x39, 0x71, 0x43, 0x6c, 0x0c, 0x00, 0x39, + 0x20, 0x80, 0x31, 0x4a, 0x17, 0xbf, 0x8f, 0xad, 0x21, 0x7c, 0x18, 0x77, 0x11, 0x13, 0xb3, 0x63, + 0x88, 0xef, 0x2a, 0x26, 0x39, 0x47, 0xb8, 0x25, 0x21, 0x20, 0x4b, 0x20, 0x66, 0xea, 0x85, 0x41, + 0x95, 0x9d, 0x42, 0x52, 0x10, 0x03, 0x52, 0x10, 0x03, 0x51, 0x10, 0x03, 0x53, 0xf0, 0x88, 0x49, + 0x0b, 0xbf, 0x82, 0x18, 0xf7, 0x00, 0x27, 0xdf, 0xd4, 0x92, 0xc4, 0x94, 0xc4, 0x92, 0xc4, 0x57, + 0x4c, 0x8a, 0x70, 0xc5, 0x56, 0x56, 0x20, 0xd5, 0x56, 0x56, 0xd0, 0x60, 0xb3, 0x82, 0xa9, 0x4f, + 0x62, 0x03, 0x87, 0xa8, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0xfd, 0x28, 0xd1, 0xa8, 0xc2, 0x01, + 0x00, 0x00, +} + +func (m *Module) 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 *Module) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Module) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func encodeVarintModule(dAtA []byte, offset int, v uint64) int { + offset -= sovModule(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Module) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func sovModule(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozModule(x uint64) (n int) { + return sovModule(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Module) 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 ErrIntOverflowModule + } + 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: Module: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Module: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipModule(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthModule + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipModule(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, ErrIntOverflowModule + } + 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, ErrIntOverflowModule + } + 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, ErrIntOverflowModule + } + 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, ErrInvalidLengthModule + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupModule + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthModule + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthModule = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowModule = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupModule = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/test/andromeda/test/v1alpha1/codec.go b/x/test/andromeda/test/v1alpha1/codec.go new file mode 100644 index 0000000..848657f --- /dev/null +++ b/x/test/andromeda/test/v1alpha1/codec.go @@ -0,0 +1,16 @@ +package testv1alpha1 + +import ( + "github.com/cosmos/cosmos-sdk/codec/types" + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/types/msgservice" +) + +func RegisterInterfaces(registry types.InterfaceRegistry) { + registry.RegisterImplementations((*sdk.Msg)(nil), + &MsgCreate{}, + &MsgSend{}, + ) + + msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc) +} diff --git a/x/test/andromeda/test/v1alpha1/errors.go b/x/test/andromeda/test/v1alpha1/errors.go new file mode 100644 index 0000000..9802192 --- /dev/null +++ b/x/test/andromeda/test/v1alpha1/errors.go @@ -0,0 +1,37 @@ +package testv1alpha1 + +import ( + "google.golang.org/grpc/codes" + + "cosmossdk.io/errors" +) + +const errorCodespace = ModuleName + +// stateless errors +const ( + _ uint32 = iota + 1<<1 - 1 + + errorCodeUnimplemented + errorCodeInvalidAddress +) + +var ( + ErrUnimplemented = errors.RegisterWithGRPCCode(errorCodespace, errorCodeUnimplemented, codes.Unimplemented, "unimplemented request") + ErrInvalidAddress = errors.RegisterWithGRPCCode(errorCodespace, errorCodeInvalidAddress, codes.InvalidArgument, "invalid address") +) + +// stateful errors +const ( + _ uint32 = iota + 1<<(32-1) - 1 + + errorCodeInvariantBroken + errorCodeAssetNotFound + errorCodeAssetAlreadyExists +) + +var ( + ErrInvariantBroken = errors.RegisterWithGRPCCode(errorCodespace, errorCodeInvariantBroken, codes.Internal, "invariant broken") + ErrAssetNotFound = errors.RegisterWithGRPCCode(errorCodespace, errorCodeAssetNotFound, codes.NotFound, "asset not found") + ErrAssetAlreadyExists = errors.RegisterWithGRPCCode(errorCodespace, errorCodeAssetAlreadyExists, codes.AlreadyExists, "asset already exists") +) diff --git a/x/test/andromeda/test/v1alpha1/event.pb.go b/x/test/andromeda/test/v1alpha1/event.pb.go new file mode 100644 index 0000000..8f19c50 --- /dev/null +++ b/x/test/andromeda/test/v1alpha1/event.pb.go @@ -0,0 +1,658 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: andromeda/test/v1alpha1/event.proto + +package testv1alpha1 + +import ( + fmt "fmt" + _ "github.com/cosmos/cosmos-proto" + proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// 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 + +// EventCreate is emitted on Msg/Create. +type EventCreate struct { + // the address of the creator + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + // the name of the asset created + Asset string `protobuf:"bytes,2,opt,name=asset,proto3" json:"asset,omitempty"` +} + +func (m *EventCreate) Reset() { *m = EventCreate{} } +func (m *EventCreate) String() string { return proto.CompactTextString(m) } +func (*EventCreate) ProtoMessage() {} +func (*EventCreate) Descriptor() ([]byte, []int) { + return fileDescriptor_88bec1dbe3c49e3d, []int{0} +} +func (m *EventCreate) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventCreate.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 *EventCreate) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventCreate.Merge(m, src) +} +func (m *EventCreate) XXX_Size() int { + return m.Size() +} +func (m *EventCreate) XXX_DiscardUnknown() { + xxx_messageInfo_EventCreate.DiscardUnknown(m) +} + +var xxx_messageInfo_EventCreate proto.InternalMessageInfo + +func (m *EventCreate) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *EventCreate) GetAsset() string { + if m != nil { + return m.Asset + } + return "" +} + +// EventSend is emitted on Msg/Send. +type EventSend struct { + // the address of the sender + Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` + // the address of the recipient + Recipient string `protobuf:"bytes,2,opt,name=recipient,proto3" json:"recipient,omitempty"` + // the name of the asset sent + Asset string `protobuf:"bytes,3,opt,name=asset,proto3" json:"asset,omitempty"` +} + +func (m *EventSend) Reset() { *m = EventSend{} } +func (m *EventSend) String() string { return proto.CompactTextString(m) } +func (*EventSend) ProtoMessage() {} +func (*EventSend) Descriptor() ([]byte, []int) { + return fileDescriptor_88bec1dbe3c49e3d, []int{1} +} +func (m *EventSend) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventSend) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventSend.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 *EventSend) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventSend.Merge(m, src) +} +func (m *EventSend) XXX_Size() int { + return m.Size() +} +func (m *EventSend) XXX_DiscardUnknown() { + xxx_messageInfo_EventSend.DiscardUnknown(m) +} + +var xxx_messageInfo_EventSend proto.InternalMessageInfo + +func (m *EventSend) GetSender() string { + if m != nil { + return m.Sender + } + return "" +} + +func (m *EventSend) GetRecipient() string { + if m != nil { + return m.Recipient + } + return "" +} + +func (m *EventSend) GetAsset() string { + if m != nil { + return m.Asset + } + return "" +} + +func init() { + proto.RegisterType((*EventCreate)(nil), "andromeda.test.v1alpha1.EventCreate") + proto.RegisterType((*EventSend)(nil), "andromeda.test.v1alpha1.EventSend") +} + +func init() { + proto.RegisterFile("andromeda/test/v1alpha1/event.proto", fileDescriptor_88bec1dbe3c49e3d) +} + +var fileDescriptor_88bec1dbe3c49e3d = []byte{ + // 322 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x4e, 0xcc, 0x4b, 0x29, + 0xca, 0xcf, 0x4d, 0x4d, 0x49, 0xd4, 0x2f, 0x49, 0x2d, 0x2e, 0xd1, 0x2f, 0x33, 0x4c, 0xcc, 0x29, + 0xc8, 0x48, 0x34, 0xd4, 0x4f, 0x2d, 0x4b, 0xcd, 0x2b, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, + 0x12, 0x87, 0x2b, 0xd2, 0x03, 0x29, 0xd2, 0x83, 0x29, 0x92, 0x92, 0x4c, 0xce, 0x2f, 0xce, 0xcd, + 0x2f, 0x8e, 0x07, 0x2b, 0xd3, 0x87, 0x70, 0x20, 0x7a, 0x94, 0xc2, 0xb9, 0xb8, 0x5d, 0x41, 0x46, + 0x38, 0x17, 0xa5, 0x26, 0x96, 0xa4, 0x0a, 0x19, 0x71, 0xb1, 0x27, 0x83, 0x58, 0xf9, 0x45, 0x12, + 0x8c, 0x0a, 0x8c, 0x1a, 0x9c, 0x4e, 0x12, 0x97, 0xb6, 0xe8, 0x8a, 0x40, 0x75, 0x38, 0xa6, 0xa4, + 0x14, 0xa5, 0x16, 0x17, 0x07, 0x97, 0x14, 0x65, 0xe6, 0xa5, 0x07, 0xc1, 0x14, 0x0a, 0x89, 0x70, + 0xb1, 0x26, 0x16, 0x17, 0xa7, 0x96, 0x48, 0x30, 0x81, 0x74, 0x04, 0x41, 0x38, 0x4a, 0xdd, 0x8c, + 0x5c, 0x9c, 0x60, 0x93, 0x83, 0x53, 0xf3, 0x52, 0x84, 0x0c, 0xb8, 0xd8, 0x8a, 0x53, 0xf3, 0x52, + 0x52, 0x09, 0x1b, 0x0b, 0x55, 0x27, 0x64, 0xc6, 0xc5, 0x59, 0x94, 0x9a, 0x9c, 0x59, 0x90, 0x99, + 0x9a, 0x07, 0x35, 0x19, 0x8f, 0x26, 0x84, 0x52, 0x84, 0x6b, 0x98, 0x91, 0x5c, 0xe3, 0xf4, 0x94, + 0xf1, 0xc4, 0x23, 0x39, 0xc6, 0x0b, 0x8f, 0xe4, 0x18, 0x1f, 0x3c, 0x92, 0x63, 0x9c, 0xf0, 0x58, + 0x8e, 0xe1, 0xc2, 0x63, 0x39, 0x86, 0x1b, 0x8f, 0xe5, 0x18, 0xb8, 0xa4, 0x93, 0xf3, 0x73, 0xf5, + 0x70, 0x84, 0x9c, 0x13, 0x17, 0xd8, 0x0b, 0x01, 0xa0, 0xa0, 0x0a, 0x60, 0x8c, 0x52, 0xc1, 0x11, + 0x0b, 0xd6, 0x20, 0x1e, 0x8c, 0xb3, 0x88, 0x89, 0xd9, 0x31, 0x24, 0x62, 0x15, 0x93, 0xb8, 0x23, + 0xdc, 0xcc, 0x10, 0x90, 0x99, 0x61, 0x50, 0xf9, 0x53, 0x48, 0x32, 0x31, 0x20, 0x99, 0x18, 0x98, + 0xcc, 0x23, 0x26, 0x65, 0x1c, 0x32, 0x31, 0xee, 0x01, 0x4e, 0xbe, 0xa9, 0x25, 0x89, 0x29, 0x89, + 0x25, 0x89, 0xaf, 0x98, 0x24, 0xe1, 0xaa, 0xac, 0xac, 0x40, 0xca, 0xac, 0xac, 0x60, 0xea, 0x92, + 0xd8, 0xc0, 0xb1, 0x6a, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x6b, 0x9c, 0x21, 0xb9, 0x30, 0x02, + 0x00, 0x00, +} + +func (m *EventCreate) 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 *EventCreate) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventCreate) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Asset) > 0 { + i -= len(m.Asset) + copy(dAtA[i:], m.Asset) + i = encodeVarintEvent(dAtA, i, uint64(len(m.Asset))) + i-- + dAtA[i] = 0x12 + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintEvent(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *EventSend) 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 *EventSend) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventSend) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Asset) > 0 { + i -= len(m.Asset) + copy(dAtA[i:], m.Asset) + i = encodeVarintEvent(dAtA, i, uint64(len(m.Asset))) + i-- + dAtA[i] = 0x1a + } + if len(m.Recipient) > 0 { + i -= len(m.Recipient) + copy(dAtA[i:], m.Recipient) + i = encodeVarintEvent(dAtA, i, uint64(len(m.Recipient))) + i-- + dAtA[i] = 0x12 + } + if len(m.Sender) > 0 { + i -= len(m.Sender) + copy(dAtA[i:], m.Sender) + i = encodeVarintEvent(dAtA, i, uint64(len(m.Sender))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintEvent(dAtA []byte, offset int, v uint64) int { + offset -= sovEvent(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *EventCreate) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + l = len(m.Asset) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + return n +} + +func (m *EventSend) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Sender) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + l = len(m.Recipient) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + l = len(m.Asset) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + return n +} + +func sovEvent(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozEvent(x uint64) (n int) { + return sovEvent(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *EventCreate) 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 ErrIntOverflowEvent + } + 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: EventCreate: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EventCreate: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + 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 ErrIntOverflowEvent + } + 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 ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Asset", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + 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 ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Asset = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvent(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthEvent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EventSend) 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 ErrIntOverflowEvent + } + 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: EventSend: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EventSend: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Sender", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + 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 ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Sender = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Recipient", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + 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 ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Recipient = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Asset", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + 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 ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Asset = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvent(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthEvent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipEvent(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, ErrIntOverflowEvent + } + 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, ErrIntOverflowEvent + } + 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, ErrIntOverflowEvent + } + 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, ErrInvalidLengthEvent + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupEvent + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthEvent + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthEvent = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowEvent = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupEvent = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/test/andromeda/test/v1alpha1/keys.go b/x/test/andromeda/test/v1alpha1/keys.go new file mode 100644 index 0000000..2cbe264 --- /dev/null +++ b/x/test/andromeda/test/v1alpha1/keys.go @@ -0,0 +1,6 @@ +package testv1alpha1 + +const ( + // ModuleName is the module name constant used in many places + ModuleName = "test" +) diff --git a/x/test/andromeda/test/v1alpha1/query.pb.go b/x/test/andromeda/test/v1alpha1/query.pb.go new file mode 100644 index 0000000..c45051e --- /dev/null +++ b/x/test/andromeda/test/v1alpha1/query.pb.go @@ -0,0 +1,1524 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: andromeda/test/v1alpha1/query.proto + +package testv1alpha1 + +import ( + context "context" + fmt "fmt" + _ "github.com/cosmos/cosmos-proto" + query "github.com/cosmos/cosmos-sdk/types/query" + grpc1 "github.com/cosmos/gogoproto/grpc" + proto "github.com/cosmos/gogoproto/proto" + _ "google.golang.org/genproto/googleapis/api/annotations" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + io "io" + math "math" + math_bits "math/bits" +) + +// 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 + +// QueryAssetRequest is the request type for the Query/Asset RPC method. +type QueryAssetRequest struct { + // the address of an account + Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` + // the name of an asset + Asset string `protobuf:"bytes,2,opt,name=asset,proto3" json:"asset,omitempty"` +} + +func (m *QueryAssetRequest) Reset() { *m = QueryAssetRequest{} } +func (m *QueryAssetRequest) String() string { return proto.CompactTextString(m) } +func (*QueryAssetRequest) ProtoMessage() {} +func (*QueryAssetRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_aa2715852164214c, []int{0} +} +func (m *QueryAssetRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAssetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAssetRequest.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 *QueryAssetRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAssetRequest.Merge(m, src) +} +func (m *QueryAssetRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryAssetRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAssetRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAssetRequest proto.InternalMessageInfo + +func (m *QueryAssetRequest) GetAccount() string { + if m != nil { + return m.Account + } + return "" +} + +func (m *QueryAssetRequest) GetAsset() string { + if m != nil { + return m.Asset + } + return "" +} + +// QueryAssetResponse is the response type for the Query/Asset RPC method. +type QueryAssetResponse struct { + // the corresponding asset + Asset *QueryAssetResponse_Asset `protobuf:"bytes,1,opt,name=asset,proto3" json:"asset,omitempty"` +} + +func (m *QueryAssetResponse) Reset() { *m = QueryAssetResponse{} } +func (m *QueryAssetResponse) String() string { return proto.CompactTextString(m) } +func (*QueryAssetResponse) ProtoMessage() {} +func (*QueryAssetResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_aa2715852164214c, []int{1} +} +func (m *QueryAssetResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAssetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAssetResponse.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 *QueryAssetResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAssetResponse.Merge(m, src) +} +func (m *QueryAssetResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryAssetResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAssetResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAssetResponse proto.InternalMessageInfo + +func (m *QueryAssetResponse) GetAsset() *QueryAssetResponse_Asset { + if m != nil { + return m.Asset + } + return nil +} + +// Asset defines an asset identified by its name. +type QueryAssetResponse_Asset struct { + // the name of the asset + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` +} + +func (m *QueryAssetResponse_Asset) Reset() { *m = QueryAssetResponse_Asset{} } +func (m *QueryAssetResponse_Asset) String() string { return proto.CompactTextString(m) } +func (*QueryAssetResponse_Asset) ProtoMessage() {} +func (*QueryAssetResponse_Asset) Descriptor() ([]byte, []int) { + return fileDescriptor_aa2715852164214c, []int{1, 0} +} +func (m *QueryAssetResponse_Asset) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAssetResponse_Asset) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAssetResponse_Asset.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 *QueryAssetResponse_Asset) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAssetResponse_Asset.Merge(m, src) +} +func (m *QueryAssetResponse_Asset) XXX_Size() int { + return m.Size() +} +func (m *QueryAssetResponse_Asset) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAssetResponse_Asset.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAssetResponse_Asset proto.InternalMessageInfo + +func (m *QueryAssetResponse_Asset) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +// QueryAssetsRequest is the request type for the Query/Assets RPC method. +type QueryAssetsRequest struct { + // the address of an account + Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` + // optional pagination for the request + Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryAssetsRequest) Reset() { *m = QueryAssetsRequest{} } +func (m *QueryAssetsRequest) String() string { return proto.CompactTextString(m) } +func (*QueryAssetsRequest) ProtoMessage() {} +func (*QueryAssetsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_aa2715852164214c, []int{2} +} +func (m *QueryAssetsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAssetsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAssetsRequest.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 *QueryAssetsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAssetsRequest.Merge(m, src) +} +func (m *QueryAssetsRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryAssetsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAssetsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAssetsRequest proto.InternalMessageInfo + +func (m *QueryAssetsRequest) GetAccount() string { + if m != nil { + return m.Account + } + return "" +} + +func (m *QueryAssetsRequest) GetPagination() *query.PageRequest { + if m != nil { + return m.Pagination + } + return nil +} + +// QueryAssetsResponse is the response type for the Query/Assets RPC method. +type QueryAssetsResponse struct { + // all the assets owned by the account + Assets []*QueryAssetsResponse_Asset `protobuf:"bytes,1,rep,name=assets,proto3" json:"assets,omitempty"` + // pagination in the response + Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryAssetsResponse) Reset() { *m = QueryAssetsResponse{} } +func (m *QueryAssetsResponse) String() string { return proto.CompactTextString(m) } +func (*QueryAssetsResponse) ProtoMessage() {} +func (*QueryAssetsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_aa2715852164214c, []int{3} +} +func (m *QueryAssetsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAssetsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAssetsResponse.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 *QueryAssetsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAssetsResponse.Merge(m, src) +} +func (m *QueryAssetsResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryAssetsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAssetsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAssetsResponse proto.InternalMessageInfo + +func (m *QueryAssetsResponse) GetAssets() []*QueryAssetsResponse_Asset { + if m != nil { + return m.Assets + } + return nil +} + +func (m *QueryAssetsResponse) GetPagination() *query.PageResponse { + if m != nil { + return m.Pagination + } + return nil +} + +// Asset defines an asset identified by its name. +type QueryAssetsResponse_Asset struct { + // the name of the asset + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` +} + +func (m *QueryAssetsResponse_Asset) Reset() { *m = QueryAssetsResponse_Asset{} } +func (m *QueryAssetsResponse_Asset) String() string { return proto.CompactTextString(m) } +func (*QueryAssetsResponse_Asset) ProtoMessage() {} +func (*QueryAssetsResponse_Asset) Descriptor() ([]byte, []int) { + return fileDescriptor_aa2715852164214c, []int{3, 0} +} +func (m *QueryAssetsResponse_Asset) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAssetsResponse_Asset) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAssetsResponse_Asset.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 *QueryAssetsResponse_Asset) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAssetsResponse_Asset.Merge(m, src) +} +func (m *QueryAssetsResponse_Asset) XXX_Size() int { + return m.Size() +} +func (m *QueryAssetsResponse_Asset) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAssetsResponse_Asset.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAssetsResponse_Asset proto.InternalMessageInfo + +func (m *QueryAssetsResponse_Asset) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func init() { + proto.RegisterType((*QueryAssetRequest)(nil), "andromeda.test.v1alpha1.QueryAssetRequest") + proto.RegisterType((*QueryAssetResponse)(nil), "andromeda.test.v1alpha1.QueryAssetResponse") + proto.RegisterType((*QueryAssetResponse_Asset)(nil), "andromeda.test.v1alpha1.QueryAssetResponse.Asset") + proto.RegisterType((*QueryAssetsRequest)(nil), "andromeda.test.v1alpha1.QueryAssetsRequest") + proto.RegisterType((*QueryAssetsResponse)(nil), "andromeda.test.v1alpha1.QueryAssetsResponse") + proto.RegisterType((*QueryAssetsResponse_Asset)(nil), "andromeda.test.v1alpha1.QueryAssetsResponse.Asset") +} + +func init() { + proto.RegisterFile("andromeda/test/v1alpha1/query.proto", fileDescriptor_aa2715852164214c) +} + +var fileDescriptor_aa2715852164214c = []byte{ + // 540 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x54, 0x4f, 0x6b, 0x13, 0x41, + 0x1c, 0xcd, 0x6c, 0x4d, 0xc4, 0xc9, 0xc9, 0xb1, 0xd0, 0x34, 0x95, 0xa5, 0x6c, 0x45, 0x4b, 0xab, + 0x3b, 0x64, 0xf5, 0xb4, 0x7a, 0xc9, 0x1e, 0x0c, 0x08, 0x42, 0x5c, 0x8b, 0x88, 0x44, 0x64, 0x92, + 0x1d, 0xd6, 0x40, 0xb3, 0xb3, 0xdd, 0x99, 0x14, 0xb4, 0xf4, 0xe2, 0x27, 0x28, 0xf8, 0x01, 0x04, + 0xf1, 0xe4, 0xd9, 0xef, 0xa0, 0x78, 0x0a, 0x7a, 0xf1, 0x28, 0x89, 0x5e, 0xfc, 0x14, 0x32, 0x7f, + 0x36, 0xae, 0x7f, 0x56, 0x13, 0x3c, 0x65, 0x7f, 0xfc, 0xde, 0x7b, 0xf3, 0xe6, 0x3d, 0x26, 0x70, + 0x8b, 0x24, 0x51, 0xc6, 0x46, 0x34, 0x22, 0x58, 0x50, 0x2e, 0xf0, 0x61, 0x8b, 0xec, 0xa7, 0x8f, + 0x49, 0x0b, 0x1f, 0x8c, 0x69, 0xf6, 0xc4, 0x4d, 0x33, 0x26, 0x18, 0x5a, 0x9b, 0x83, 0x5c, 0x09, + 0x72, 0x73, 0x50, 0x73, 0x67, 0xc0, 0xf8, 0x88, 0x71, 0xdc, 0x27, 0x9c, 0x6a, 0x06, 0x3e, 0x6c, + 0xf5, 0xa9, 0x20, 0x2d, 0x9c, 0x92, 0x78, 0x98, 0x10, 0x31, 0x64, 0x89, 0x16, 0x69, 0xae, 0x6b, + 0xec, 0x23, 0x35, 0x61, 0x3d, 0x98, 0xd5, 0xf9, 0x98, 0xb1, 0x78, 0x9f, 0x62, 0x92, 0x0e, 0x31, + 0x49, 0x12, 0x26, 0x14, 0xcf, 0x6c, 0x9d, 0x87, 0xf0, 0xec, 0x1d, 0x29, 0xdd, 0xe6, 0x9c, 0x8a, + 0x90, 0x1e, 0x8c, 0x29, 0x17, 0xc8, 0x83, 0xa7, 0xc9, 0x60, 0xc0, 0xc6, 0x89, 0x68, 0x80, 0x4d, + 0xb0, 0x7d, 0x26, 0x68, 0x7c, 0x78, 0x73, 0x65, 0xd5, 0xa8, 0xb6, 0xa3, 0x28, 0xa3, 0x9c, 0xdf, + 0x15, 0xd9, 0x30, 0x89, 0xc3, 0x1c, 0x88, 0x56, 0x61, 0x95, 0x48, 0x8d, 0x86, 0x25, 0x19, 0xa1, + 0x1e, 0x9c, 0xa7, 0x10, 0x15, 0xe5, 0x79, 0xca, 0x12, 0x4e, 0x51, 0x27, 0xc7, 0x4a, 0xf5, 0xba, + 0xd7, 0x72, 0x4b, 0x22, 0x70, 0x7f, 0xe7, 0xba, 0x7a, 0xd2, 0xfc, 0xe6, 0x06, 0xac, 0xaa, 0x19, + 0x21, 0x78, 0x2a, 0x21, 0x23, 0xaa, 0xed, 0x86, 0xea, 0xdb, 0x39, 0x01, 0xc5, 0xc3, 0xf9, 0xff, + 0x5c, 0xee, 0x26, 0x84, 0x3f, 0x22, 0x57, 0x37, 0xac, 0x7b, 0x17, 0x5d, 0xc3, 0x91, 0xfd, 0xb8, + 0xba, 0x51, 0xd3, 0x8f, 0xdb, 0x25, 0x31, 0x35, 0xe7, 0x85, 0x05, 0xa6, 0xf3, 0x16, 0xc0, 0x73, + 0x3f, 0x59, 0x32, 0x81, 0xdc, 0x82, 0x35, 0x75, 0x21, 0xde, 0x00, 0x9b, 0x2b, 0xdb, 0x75, 0xcf, + 0x5b, 0x20, 0x11, 0xfe, 0x4b, 0x24, 0x46, 0x01, 0x75, 0xfe, 0xe0, 0xf5, 0xd2, 0x3f, 0xbd, 0x6a, + 0xa9, 0xa2, 0xd9, 0xbf, 0x86, 0xeb, 0x4d, 0x2c, 0x58, 0x55, 0x5e, 0xd0, 0x2b, 0x90, 0xe3, 0x76, + 0x16, 0xea, 0x51, 0xa5, 0xd2, 0xdc, 0x5d, 0xa2, 0x73, 0x27, 0x78, 0xf6, 0xf1, 0xcb, 0x73, 0xeb, + 0x06, 0xf2, 0x71, 0xd9, 0x83, 0x32, 0x45, 0x71, 0x7c, 0x64, 0xbe, 0x8e, 0xb1, 0x8e, 0x03, 0x1f, + 0xa9, 0xdf, 0x63, 0xf4, 0x02, 0xc0, 0x9a, 0xce, 0x0d, 0xed, 0x2e, 0x96, 0xae, 0x36, 0x7a, 0x79, + 0x99, 0x2a, 0x1c, 0x5f, 0x39, 0xbd, 0x86, 0xbc, 0xe5, 0x9d, 0x06, 0x5f, 0xc1, 0xbb, 0xa9, 0x0d, + 0x26, 0x53, 0x1b, 0x7c, 0x9e, 0xda, 0xe0, 0x64, 0x66, 0x57, 0x26, 0x33, 0xbb, 0xf2, 0x69, 0x66, + 0x57, 0xe0, 0xc6, 0x80, 0x8d, 0xca, 0x7c, 0x04, 0x50, 0x19, 0xe9, 0xca, 0xe7, 0xdc, 0x05, 0x0f, + 0x2e, 0x94, 0x1c, 0x7c, 0x5d, 0x4e, 0xf9, 0xf0, 0xd2, 0x5a, 0x69, 0xef, 0xdd, 0x7f, 0x6d, 0xad, + 0xb5, 0xe7, 0x9a, 0x7b, 0x52, 0xf3, 0x9e, 0xd9, 0xbf, 0x2f, 0x6c, 0x7a, 0x72, 0xd3, 0xcb, 0x37, + 0x53, 0x6b, 0xab, 0x64, 0xd3, 0xeb, 0x74, 0x83, 0xdb, 0x54, 0x90, 0x88, 0x08, 0xf2, 0xcd, 0x5a, + 0x9f, 0xa3, 0x7c, 0x5f, 0xc2, 0x7c, 0x3f, 0xc7, 0xf5, 0x6b, 0xea, 0x9f, 0xe7, 0xea, 0xf7, 0x00, + 0x00, 0x00, 0xff, 0xff, 0xc8, 0x3b, 0x87, 0x9e, 0x1e, 0x05, 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 { + // Asset queries an asset. + Asset(ctx context.Context, in *QueryAssetRequest, opts ...grpc.CallOption) (*QueryAssetResponse, error) + // Assets queries all the assets. + Assets(ctx context.Context, in *QueryAssetsRequest, opts ...grpc.CallOption) (*QueryAssetsResponse, error) +} + +type queryClient struct { + cc grpc1.ClientConn +} + +func NewQueryClient(cc grpc1.ClientConn) QueryClient { + return &queryClient{cc} +} + +func (c *queryClient) Asset(ctx context.Context, in *QueryAssetRequest, opts ...grpc.CallOption) (*QueryAssetResponse, error) { + out := new(QueryAssetResponse) + err := c.cc.Invoke(ctx, "/andromeda.test.v1alpha1.Query/Asset", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) Assets(ctx context.Context, in *QueryAssetsRequest, opts ...grpc.CallOption) (*QueryAssetsResponse, error) { + out := new(QueryAssetsResponse) + err := c.cc.Invoke(ctx, "/andromeda.test.v1alpha1.Query/Assets", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// QueryServer is the server API for Query service. +type QueryServer interface { + // Asset queries an asset. + Asset(context.Context, *QueryAssetRequest) (*QueryAssetResponse, error) + // Assets queries all the assets. + Assets(context.Context, *QueryAssetsRequest) (*QueryAssetsResponse, error) +} + +// UnimplementedQueryServer can be embedded to have forward compatible implementations. +type UnimplementedQueryServer struct { +} + +func (*UnimplementedQueryServer) Asset(ctx context.Context, req *QueryAssetRequest) (*QueryAssetResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Asset not implemented") +} +func (*UnimplementedQueryServer) Assets(ctx context.Context, req *QueryAssetsRequest) (*QueryAssetsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Assets not implemented") +} + +func RegisterQueryServer(s grpc1.Server, srv QueryServer) { + s.RegisterService(&_Query_serviceDesc, srv) +} + +func _Query_Asset_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryAssetRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Asset(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/andromeda.test.v1alpha1.Query/Asset", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Asset(ctx, req.(*QueryAssetRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_Assets_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryAssetsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Assets(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/andromeda.test.v1alpha1.Query/Assets", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Assets(ctx, req.(*QueryAssetsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _Query_serviceDesc = grpc.ServiceDesc{ + ServiceName: "andromeda.test.v1alpha1.Query", + HandlerType: (*QueryServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Asset", + Handler: _Query_Asset_Handler, + }, + { + MethodName: "Assets", + Handler: _Query_Assets_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "andromeda/test/v1alpha1/query.proto", +} + +func (m *QueryAssetRequest) 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 *QueryAssetRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAssetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Asset) > 0 { + i -= len(m.Asset) + copy(dAtA[i:], m.Asset) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Asset))) + i-- + dAtA[i] = 0x12 + } + if len(m.Account) > 0 { + i -= len(m.Account) + copy(dAtA[i:], m.Account) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Account))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryAssetResponse) 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 *QueryAssetResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAssetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Asset != nil { + { + size, err := m.Asset.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 *QueryAssetResponse_Asset) 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 *QueryAssetResponse_Asset) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAssetResponse_Asset) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryAssetsRequest) 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 *QueryAssetsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAssetsRequest) 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.Account) > 0 { + i -= len(m.Account) + copy(dAtA[i:], m.Account) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Account))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryAssetsResponse) 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 *QueryAssetsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAssetsResponse) 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.Assets) > 0 { + for iNdEx := len(m.Assets) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Assets[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 *QueryAssetsResponse_Asset) 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 *QueryAssetsResponse_Asset) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAssetsResponse_Asset) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Name))) + 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 *QueryAssetRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Account) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Asset) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryAssetResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Asset != nil { + l = m.Asset.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryAssetResponse_Asset) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryAssetsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Account) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryAssetsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Assets) > 0 { + for _, e := range m.Assets { + 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 *QueryAssetsResponse_Asset) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + 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 *QueryAssetRequest) 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: QueryAssetRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAssetRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Account", 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.Account = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Asset", 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.Asset = 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 *QueryAssetResponse) 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: QueryAssetResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAssetResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Asset", 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.Asset == nil { + m.Asset = &QueryAssetResponse_Asset{} + } + if err := m.Asset.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 *QueryAssetResponse_Asset) 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: Asset: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Asset: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", 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.Name = 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 *QueryAssetsRequest) 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: QueryAssetsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAssetsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Account", 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.Account = string(dAtA[iNdEx:postIndex]) + 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.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 *QueryAssetsResponse) 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: QueryAssetsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAssetsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Assets", 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.Assets = append(m.Assets, &QueryAssetsResponse_Asset{}) + if err := m.Assets[len(m.Assets)-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 *QueryAssetsResponse_Asset) 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: Asset: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Asset: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", 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.Name = 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 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/x/test/andromeda/test/v1alpha1/query.pb.gw.go b/x/test/andromeda/test/v1alpha1/query.pb.gw.go new file mode 100644 index 0000000..11c0d7c --- /dev/null +++ b/x/test/andromeda/test/v1alpha1/query.pb.gw.go @@ -0,0 +1,330 @@ +// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. +// source: andromeda/test/v1alpha1/query.proto + +/* +Package testv1alpha1 is a reverse proxy. + +It translates gRPC into RESTful JSON APIs. +*/ +package testv1alpha1 + +import ( + "context" + "io" + "net/http" + + "github.com/golang/protobuf/descriptor" + "github.com/golang/protobuf/proto" + "github.com/grpc-ecosystem/grpc-gateway/runtime" + "github.com/grpc-ecosystem/grpc-gateway/utilities" + "google.golang.org/grpc" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/grpclog" + "google.golang.org/grpc/metadata" + "google.golang.org/grpc/status" +) + +// Suppress "imported and not used" errors +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = descriptor.ForMessage +var _ = metadata.Join + +func request_Query_Asset_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAssetRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["account"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "account") + } + + protoReq.Account, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "account", err) + } + + val, ok = pathParams["asset"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "asset") + } + + protoReq.Asset, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "asset", err) + } + + msg, err := client.Asset(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_Asset_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAssetRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["account"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "account") + } + + protoReq.Account, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "account", err) + } + + val, ok = pathParams["asset"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "asset") + } + + protoReq.Asset, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "asset", err) + } + + msg, err := server.Asset(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_Query_Assets_0 = &utilities.DoubleArray{Encoding: map[string]int{"account": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} +) + +func request_Query_Assets_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAssetsRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["account"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "account") + } + + protoReq.Account, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "account", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_Assets_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.Assets(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_Assets_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAssetsRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["account"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "account") + } + + protoReq.Account, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "account", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_Assets_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.Assets(ctx, &protoReq) + return msg, metadata, err + +} + +// RegisterQueryHandlerServer registers the http handlers for service Query to "mux". +// UnaryRPC :call QueryServer directly. +// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. +// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead. +func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error { + + mux.Handle("GET", pattern_Query_Asset_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_Asset_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_Asset_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_Assets_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_Assets_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_Assets_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +// RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but +// automatically dials to "endpoint" and closes the connection when "ctx" gets done. +func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { + conn, err := grpc.Dial(endpoint, opts...) + if err != nil { + return err + } + defer func() { + if err != nil { + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + return + } + go func() { + <-ctx.Done() + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + }() + }() + + return RegisterQueryHandler(ctx, mux, conn) +} + +// RegisterQueryHandler registers the http handlers for service Query to "mux". +// The handlers forward requests to the grpc endpoint over "conn". +func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { + return RegisterQueryHandlerClient(ctx, mux, NewQueryClient(conn)) +} + +// RegisterQueryHandlerClient registers the http handlers for service Query +// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". +// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" +// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in +// "QueryClient" to call the correct interceptors. +func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error { + + mux.Handle("GET", pattern_Query_Asset_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_Asset_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_Asset_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_Assets_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_Assets_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_Assets_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +var ( + pattern_Query_Asset_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5, 1, 0, 4, 1, 5, 6}, []string{"andromeda", "test", "v1alpha1", "accounts", "account", "assets", "asset"}, "", runtime.AssumeColonVerbOpt(true))) + + pattern_Query_Assets_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"andromeda", "test", "v1alpha1", "accounts", "account", "assets"}, "", runtime.AssumeColonVerbOpt(true))) +) + +var ( + forward_Query_Asset_0 = runtime.ForwardResponseMessage + + forward_Query_Assets_0 = runtime.ForwardResponseMessage +) diff --git a/x/test/andromeda/test/v1alpha1/tx.pb.go b/x/test/andromeda/test/v1alpha1/tx.pb.go new file mode 100644 index 0000000..114748b --- /dev/null +++ b/x/test/andromeda/test/v1alpha1/tx.pb.go @@ -0,0 +1,1028 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: andromeda/test/v1alpha1/tx.proto + +package testv1alpha1 + +import ( + context "context" + fmt "fmt" + _ "github.com/cosmos/cosmos-proto" + _ "github.com/cosmos/cosmos-sdk/types/msgservice" + grpc1 "github.com/cosmos/gogoproto/grpc" + proto "github.com/cosmos/gogoproto/proto" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + io "io" + math "math" + math_bits "math/bits" +) + +// 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 + +// MsgCreate is the Msg/Create request type. +type MsgCreate struct { + // the address of the creator + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + // the name of the asset to create + Asset string `protobuf:"bytes,2,opt,name=asset,proto3" json:"asset,omitempty"` +} + +func (m *MsgCreate) Reset() { *m = MsgCreate{} } +func (m *MsgCreate) String() string { return proto.CompactTextString(m) } +func (*MsgCreate) ProtoMessage() {} +func (*MsgCreate) Descriptor() ([]byte, []int) { + return fileDescriptor_3e79e011666f827a, []int{0} +} +func (m *MsgCreate) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgCreate.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 *MsgCreate) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgCreate.Merge(m, src) +} +func (m *MsgCreate) XXX_Size() int { + return m.Size() +} +func (m *MsgCreate) XXX_DiscardUnknown() { + xxx_messageInfo_MsgCreate.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgCreate proto.InternalMessageInfo + +func (m *MsgCreate) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *MsgCreate) GetAsset() string { + if m != nil { + return m.Asset + } + return "" +} + +// MsgCreateResponse is the Msg/Create response type. +type MsgCreateResponse struct { +} + +func (m *MsgCreateResponse) Reset() { *m = MsgCreateResponse{} } +func (m *MsgCreateResponse) String() string { return proto.CompactTextString(m) } +func (*MsgCreateResponse) ProtoMessage() {} +func (*MsgCreateResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_3e79e011666f827a, []int{1} +} +func (m *MsgCreateResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgCreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgCreateResponse.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 *MsgCreateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgCreateResponse.Merge(m, src) +} +func (m *MsgCreateResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgCreateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgCreateResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgCreateResponse proto.InternalMessageInfo + +// MsgSend is the Msg/Send request type. +type MsgSend struct { + // the address of the sender + Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` + // the address of the recipient + Recipient string `protobuf:"bytes,2,opt,name=recipient,proto3" json:"recipient,omitempty"` + // the asset to send + Asset string `protobuf:"bytes,3,opt,name=asset,proto3" json:"asset,omitempty"` +} + +func (m *MsgSend) Reset() { *m = MsgSend{} } +func (m *MsgSend) String() string { return proto.CompactTextString(m) } +func (*MsgSend) ProtoMessage() {} +func (*MsgSend) Descriptor() ([]byte, []int) { + return fileDescriptor_3e79e011666f827a, []int{2} +} +func (m *MsgSend) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSend) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSend.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 *MsgSend) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSend.Merge(m, src) +} +func (m *MsgSend) XXX_Size() int { + return m.Size() +} +func (m *MsgSend) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSend.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgSend proto.InternalMessageInfo + +func (m *MsgSend) GetSender() string { + if m != nil { + return m.Sender + } + return "" +} + +func (m *MsgSend) GetRecipient() string { + if m != nil { + return m.Recipient + } + return "" +} + +func (m *MsgSend) GetAsset() string { + if m != nil { + return m.Asset + } + return "" +} + +// MsgSendResponse is the Msg/Send response type. +type MsgSendResponse struct { +} + +func (m *MsgSendResponse) Reset() { *m = MsgSendResponse{} } +func (m *MsgSendResponse) String() string { return proto.CompactTextString(m) } +func (*MsgSendResponse) ProtoMessage() {} +func (*MsgSendResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_3e79e011666f827a, []int{3} +} +func (m *MsgSendResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSendResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSendResponse.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 *MsgSendResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSendResponse.Merge(m, src) +} +func (m *MsgSendResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgSendResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSendResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgSendResponse proto.InternalMessageInfo + +func init() { + proto.RegisterType((*MsgCreate)(nil), "andromeda.test.v1alpha1.MsgCreate") + proto.RegisterType((*MsgCreateResponse)(nil), "andromeda.test.v1alpha1.MsgCreateResponse") + proto.RegisterType((*MsgSend)(nil), "andromeda.test.v1alpha1.MsgSend") + proto.RegisterType((*MsgSendResponse)(nil), "andromeda.test.v1alpha1.MsgSendResponse") +} + +func init() { proto.RegisterFile("andromeda/test/v1alpha1/tx.proto", fileDescriptor_3e79e011666f827a) } + +var fileDescriptor_3e79e011666f827a = []byte{ + // 423 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x48, 0xcc, 0x4b, 0x29, + 0xca, 0xcf, 0x4d, 0x4d, 0x49, 0xd4, 0x2f, 0x49, 0x2d, 0x2e, 0xd1, 0x2f, 0x33, 0x4c, 0xcc, 0x29, + 0xc8, 0x48, 0x34, 0xd4, 0x2f, 0xa9, 0xd0, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x87, 0xab, + 0xd0, 0x03, 0xa9, 0xd0, 0x83, 0xa9, 0x90, 0x12, 0x4f, 0xce, 0x2f, 0xce, 0xcd, 0x2f, 0xd6, 0xcf, + 0x2d, 0x4e, 0xd7, 0x2f, 0x33, 0x04, 0x51, 0x10, 0x1d, 0x52, 0x92, 0x10, 0x89, 0x78, 0x30, 0x4f, + 0x1f, 0xc2, 0x81, 0x48, 0x29, 0x25, 0x73, 0x71, 0xfa, 0x16, 0xa7, 0x3b, 0x17, 0xa5, 0x26, 0x96, + 0xa4, 0x0a, 0x19, 0x71, 0xb1, 0x27, 0x83, 0x58, 0xf9, 0x45, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0x9c, + 0x4e, 0x12, 0x97, 0xb6, 0xe8, 0x8a, 0x40, 0xd5, 0x3b, 0xa6, 0xa4, 0x14, 0xa5, 0x16, 0x17, 0x07, + 0x97, 0x14, 0x65, 0xe6, 0xa5, 0x07, 0xc1, 0x14, 0x0a, 0x89, 0x70, 0xb1, 0x26, 0x16, 0x17, 0xa7, + 0x96, 0x48, 0x30, 0x81, 0x74, 0x04, 0x41, 0x38, 0x56, 0x3c, 0x4d, 0xcf, 0x37, 0x68, 0xc1, 0xd4, + 0x28, 0x09, 0x73, 0x09, 0xc2, 0x2d, 0x09, 0x4a, 0x2d, 0x2e, 0xc8, 0xcf, 0x2b, 0x4e, 0x55, 0x9a, + 0xc6, 0xc8, 0xc5, 0xee, 0x5b, 0x9c, 0x1e, 0x9c, 0x9a, 0x97, 0x22, 0x64, 0xc0, 0xc5, 0x56, 0x9c, + 0x9a, 0x97, 0x92, 0x4a, 0xd8, 0x5e, 0xa8, 0x3a, 0x21, 0x33, 0x2e, 0xce, 0xa2, 0xd4, 0xe4, 0xcc, + 0x82, 0xcc, 0xd4, 0x3c, 0xa8, 0xd5, 0x78, 0x34, 0x21, 0x94, 0x22, 0x9c, 0xcb, 0x8c, 0xec, 0x5c, + 0x6e, 0x90, 0x73, 0xa1, 0x46, 0x2b, 0x09, 0x72, 0xf1, 0x43, 0xdd, 0x05, 0x73, 0xab, 0xd1, 0x2e, + 0x46, 0x2e, 0x66, 0xdf, 0xe2, 0x74, 0xa1, 0x08, 0x2e, 0x36, 0x68, 0x50, 0x29, 0xe9, 0xe1, 0x88, + 0x05, 0x3d, 0xb8, 0x4f, 0xa5, 0xb4, 0x08, 0xab, 0x81, 0xd9, 0x20, 0x14, 0xc4, 0xc5, 0x02, 0x0e, + 0x09, 0x05, 0x7c, 0x7a, 0x40, 0x2a, 0xa4, 0x34, 0x08, 0xa9, 0x80, 0x99, 0x29, 0xc5, 0xda, 0xf0, + 0x7c, 0x83, 0x16, 0xa3, 0xd3, 0x23, 0xc6, 0x13, 0x8f, 0xe4, 0x18, 0x2f, 0x3c, 0x92, 0x63, 0x7c, + 0xf0, 0x48, 0x8e, 0x71, 0xc2, 0x63, 0x39, 0x86, 0x0b, 0x8f, 0xe5, 0x18, 0x6e, 0x3c, 0x96, 0x63, + 0xe0, 0x92, 0x4e, 0xce, 0xcf, 0xc5, 0x65, 0x9c, 0x13, 0x7b, 0x48, 0x45, 0x00, 0x28, 0x8d, 0x04, + 0x30, 0x46, 0xa9, 0xe0, 0x48, 0x94, 0xd6, 0x20, 0x1e, 0x8c, 0xb3, 0x88, 0x89, 0xd9, 0x31, 0x24, + 0x62, 0x15, 0x93, 0xb8, 0x23, 0xdc, 0xc0, 0x10, 0x90, 0x81, 0x61, 0x50, 0xf9, 0x53, 0x48, 0x32, + 0x31, 0x20, 0x99, 0x18, 0x98, 0xcc, 0x23, 0x26, 0x65, 0x1c, 0x32, 0x31, 0xee, 0x01, 0x4e, 0xbe, + 0xa9, 0x25, 0x89, 0x29, 0x89, 0x25, 0x89, 0xaf, 0x98, 0x24, 0xe1, 0xaa, 0xac, 0xac, 0x40, 0xca, + 0xac, 0xac, 0x60, 0xea, 0x92, 0xd8, 0xc0, 0xc9, 0xd9, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0x03, + 0xd8, 0xdb, 0x3c, 0x3f, 0x03, 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 + +// MsgClient is the client API for Msg service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type MsgClient interface { + // Create creates an asset. + Create(ctx context.Context, in *MsgCreate, opts ...grpc.CallOption) (*MsgCreateResponse, error) + // Send sends an asset from an account to another. + Send(ctx context.Context, in *MsgSend, opts ...grpc.CallOption) (*MsgSendResponse, error) +} + +type msgClient struct { + cc grpc1.ClientConn +} + +func NewMsgClient(cc grpc1.ClientConn) MsgClient { + return &msgClient{cc} +} + +func (c *msgClient) Create(ctx context.Context, in *MsgCreate, opts ...grpc.CallOption) (*MsgCreateResponse, error) { + out := new(MsgCreateResponse) + err := c.cc.Invoke(ctx, "/andromeda.test.v1alpha1.Msg/Create", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) Send(ctx context.Context, in *MsgSend, opts ...grpc.CallOption) (*MsgSendResponse, error) { + out := new(MsgSendResponse) + err := c.cc.Invoke(ctx, "/andromeda.test.v1alpha1.Msg/Send", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// MsgServer is the server API for Msg service. +type MsgServer interface { + // Create creates an asset. + Create(context.Context, *MsgCreate) (*MsgCreateResponse, error) + // Send sends an asset from an account to another. + Send(context.Context, *MsgSend) (*MsgSendResponse, error) +} + +// UnimplementedMsgServer can be embedded to have forward compatible implementations. +type UnimplementedMsgServer struct { +} + +func (*UnimplementedMsgServer) Create(ctx context.Context, req *MsgCreate) (*MsgCreateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Create not implemented") +} +func (*UnimplementedMsgServer) Send(ctx context.Context, req *MsgSend) (*MsgSendResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Send not implemented") +} + +func RegisterMsgServer(s grpc1.Server, srv MsgServer) { + s.RegisterService(&_Msg_serviceDesc, srv) +} + +func _Msg_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgCreate) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).Create(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/andromeda.test.v1alpha1.Msg/Create", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).Create(ctx, req.(*MsgCreate)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_Send_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgSend) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).Send(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/andromeda.test.v1alpha1.Msg/Send", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).Send(ctx, req.(*MsgSend)) + } + return interceptor(ctx, in, info, handler) +} + +var _Msg_serviceDesc = grpc.ServiceDesc{ + ServiceName: "andromeda.test.v1alpha1.Msg", + HandlerType: (*MsgServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Create", + Handler: _Msg_Create_Handler, + }, + { + MethodName: "Send", + Handler: _Msg_Send_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "andromeda/test/v1alpha1/tx.proto", +} + +func (m *MsgCreate) 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 *MsgCreate) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgCreate) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Asset) > 0 { + i -= len(m.Asset) + copy(dAtA[i:], m.Asset) + i = encodeVarintTx(dAtA, i, uint64(len(m.Asset))) + i-- + dAtA[i] = 0x12 + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgCreateResponse) 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 *MsgCreateResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgCreateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgSend) 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 *MsgSend) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSend) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Asset) > 0 { + i -= len(m.Asset) + copy(dAtA[i:], m.Asset) + i = encodeVarintTx(dAtA, i, uint64(len(m.Asset))) + i-- + dAtA[i] = 0x1a + } + if len(m.Recipient) > 0 { + i -= len(m.Recipient) + copy(dAtA[i:], m.Recipient) + i = encodeVarintTx(dAtA, i, uint64(len(m.Recipient))) + i-- + dAtA[i] = 0x12 + } + if len(m.Sender) > 0 { + i -= len(m.Sender) + copy(dAtA[i:], m.Sender) + i = encodeVarintTx(dAtA, i, uint64(len(m.Sender))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgSendResponse) 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 *MsgSendResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSendResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func encodeVarintTx(dAtA []byte, offset int, v uint64) int { + offset -= sovTx(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *MsgCreate) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Asset) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgCreateResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgSend) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Sender) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Recipient) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Asset) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgSendResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func sovTx(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozTx(x uint64) (n int) { + return sovTx(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *MsgCreate) 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 ErrIntOverflowTx + } + 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: MsgCreate: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgCreate: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + 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 ErrIntOverflowTx + } + 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 ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Asset", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + 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 ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Asset = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgCreateResponse) 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 ErrIntOverflowTx + } + 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: MsgCreateResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgCreateResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgSend) 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 ErrIntOverflowTx + } + 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: MsgSend: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgSend: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Sender", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + 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 ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Sender = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Recipient", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + 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 ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Recipient = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Asset", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + 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 ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Asset = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgSendResponse) 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 ErrIntOverflowTx + } + 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: MsgSendResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgSendResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipTx(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, ErrIntOverflowTx + } + 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, ErrIntOverflowTx + } + 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, ErrIntOverflowTx + } + 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, ErrInvalidLengthTx + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupTx + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthTx + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/test/andromeda/test/v1alpha1/types.pb.go b/x/test/andromeda/test/v1alpha1/types.pb.go new file mode 100644 index 0000000..11d7a1a --- /dev/null +++ b/x/test/andromeda/test/v1alpha1/types.pb.go @@ -0,0 +1,269 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: andromeda/test/v1alpha1/types.proto + +package testv1alpha1 + +import ( + fmt "fmt" + proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// 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 + +// Asset defines an asset identified by its name. +type Asset struct { +} + +func (m *Asset) Reset() { *m = Asset{} } +func (m *Asset) String() string { return proto.CompactTextString(m) } +func (*Asset) ProtoMessage() {} +func (*Asset) Descriptor() ([]byte, []int) { + return fileDescriptor_54217944628592f9, []int{0} +} +func (m *Asset) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Asset) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Asset.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 *Asset) XXX_Merge(src proto.Message) { + xxx_messageInfo_Asset.Merge(m, src) +} +func (m *Asset) XXX_Size() int { + return m.Size() +} +func (m *Asset) XXX_DiscardUnknown() { + xxx_messageInfo_Asset.DiscardUnknown(m) +} + +var xxx_messageInfo_Asset proto.InternalMessageInfo + +func init() { + proto.RegisterType((*Asset)(nil), "andromeda.test.v1alpha1.Asset") +} + +func init() { + proto.RegisterFile("andromeda/test/v1alpha1/types.proto", fileDescriptor_54217944628592f9) +} + +var fileDescriptor_54217944628592f9 = []byte{ + // 199 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x4e, 0xcc, 0x4b, 0x29, + 0xca, 0xcf, 0x4d, 0x4d, 0x49, 0xd4, 0x2f, 0x49, 0x2d, 0x2e, 0xd1, 0x2f, 0x33, 0x4c, 0xcc, 0x29, + 0xc8, 0x48, 0x34, 0xd4, 0x2f, 0xa9, 0x2c, 0x48, 0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, + 0x12, 0x87, 0x2b, 0xd2, 0x03, 0x29, 0xd2, 0x83, 0x29, 0x52, 0x62, 0xe7, 0x62, 0x75, 0x2c, 0x2e, + 0x4e, 0x2d, 0x71, 0x7a, 0xca, 0x78, 0xe2, 0x91, 0x1c, 0xe3, 0x85, 0x47, 0x72, 0x8c, 0x0f, 0x1e, + 0xc9, 0x31, 0x4e, 0x78, 0x2c, 0xc7, 0x70, 0xe1, 0xb1, 0x1c, 0xc3, 0x8d, 0xc7, 0x72, 0x0c, 0x5c, + 0xd2, 0xc9, 0xf9, 0xb9, 0x7a, 0x38, 0x0c, 0x70, 0xe2, 0x0a, 0x01, 0x59, 0x13, 0x00, 0xb2, 0x25, + 0x80, 0x31, 0x4a, 0x05, 0x87, 0x63, 0xac, 0x41, 0x3c, 0x18, 0x67, 0x11, 0x13, 0xb3, 0x63, 0x48, + 0xc4, 0x2a, 0x26, 0x71, 0x47, 0xb8, 0x99, 0x21, 0x20, 0x33, 0xc3, 0xa0, 0xf2, 0xa7, 0x90, 0x64, + 0x62, 0x40, 0x32, 0x31, 0x30, 0x99, 0x47, 0x4c, 0xca, 0x38, 0x64, 0x62, 0xdc, 0x03, 0x9c, 0x7c, + 0x53, 0x4b, 0x12, 0x53, 0x12, 0x4b, 0x12, 0x5f, 0x31, 0x49, 0xc2, 0x55, 0x59, 0x59, 0x81, 0x94, + 0x59, 0x59, 0xc1, 0xd4, 0x25, 0xb1, 0x81, 0x03, 0xc4, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0x14, + 0xd3, 0xf2, 0x3d, 0x37, 0x01, 0x00, 0x00, +} + +func (m *Asset) 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 *Asset) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Asset) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func encodeVarintTypes(dAtA []byte, offset int, v uint64) int { + offset -= sovTypes(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Asset) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func sovTypes(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozTypes(x uint64) (n int) { + return sovTypes(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Asset) 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 ErrIntOverflowTypes + } + 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: Asset: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Asset: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTypes(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTypes + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipTypes(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, ErrIntOverflowTypes + } + 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, ErrIntOverflowTypes + } + 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, ErrIntOverflowTypes + } + 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, ErrInvalidLengthTypes + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupTypes + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthTypes + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/test/api/andromeda/test/module/v1alpha1/module.pulsar.go b/x/test/api/andromeda/test/module/v1alpha1/module.pulsar.go new file mode 100644 index 0000000..25fcb01 --- /dev/null +++ b/x/test/api/andromeda/test/module/v1alpha1/module.pulsar.go @@ -0,0 +1,505 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package modulev1alpha1 + +import ( + _ "cosmossdk.io/api/cosmos/app/v1alpha1" + fmt "fmt" + runtime "github.com/cosmos/cosmos-proto/runtime" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoiface "google.golang.org/protobuf/runtime/protoiface" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + io "io" + reflect "reflect" + sync "sync" +) + +var ( + md_Module protoreflect.MessageDescriptor +) + +func init() { + file_andromeda_test_module_v1alpha1_module_proto_init() + md_Module = File_andromeda_test_module_v1alpha1_module_proto.Messages().ByName("Module") +} + +var _ protoreflect.Message = (*fastReflection_Module)(nil) + +type fastReflection_Module Module + +func (x *Module) ProtoReflect() protoreflect.Message { + return (*fastReflection_Module)(x) +} + +func (x *Module) slowProtoReflect() protoreflect.Message { + mi := &file_andromeda_test_module_v1alpha1_module_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_Module_messageType fastReflection_Module_messageType +var _ protoreflect.MessageType = fastReflection_Module_messageType{} + +type fastReflection_Module_messageType struct{} + +func (x fastReflection_Module_messageType) Zero() protoreflect.Message { + return (*fastReflection_Module)(nil) +} +func (x fastReflection_Module_messageType) New() protoreflect.Message { + return new(fastReflection_Module) +} +func (x fastReflection_Module_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_Module +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_Module) Descriptor() protoreflect.MessageDescriptor { + return md_Module +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_Module) Type() protoreflect.MessageType { + return _fastReflection_Module_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_Module) New() protoreflect.Message { + return new(fastReflection_Module) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_Module) Interface() protoreflect.ProtoMessage { + return (*Module)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_Module) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_Module) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.module.v1alpha1.Module")) + } + panic(fmt.Errorf("message andromeda.test.module.v1alpha1.Module does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_Module) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.module.v1alpha1.Module")) + } + panic(fmt.Errorf("message andromeda.test.module.v1alpha1.Module does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_Module) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.module.v1alpha1.Module")) + } + panic(fmt.Errorf("message andromeda.test.module.v1alpha1.Module does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_Module) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.module.v1alpha1.Module")) + } + panic(fmt.Errorf("message andromeda.test.module.v1alpha1.Module does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_Module) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.module.v1alpha1.Module")) + } + panic(fmt.Errorf("message andromeda.test.module.v1alpha1.Module does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_Module) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.module.v1alpha1.Module")) + } + panic(fmt.Errorf("message andromeda.test.module.v1alpha1.Module does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_Module) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in andromeda.test.module.v1alpha1.Module", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_Module) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_Module) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_Module) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_Module) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*Module) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*Module) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*Module) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Module: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Module: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc (unknown) +// source: andromeda/test/module/v1alpha1/module.proto + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// Module is the config object of the module. +type Module struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *Module) Reset() { + *x = Module{} + if protoimpl.UnsafeEnabled { + mi := &file_andromeda_test_module_v1alpha1_module_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Module) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Module) ProtoMessage() {} + +// Deprecated: Use Module.ProtoReflect.Descriptor instead. +func (*Module) Descriptor() ([]byte, []int) { + return file_andromeda_test_module_v1alpha1_module_proto_rawDescGZIP(), []int{0} +} + +var File_andromeda_test_module_v1alpha1_module_proto protoreflect.FileDescriptor + +var file_andromeda_test_module_v1alpha1_module_proto_rawDesc = []byte{ + 0x0a, 0x2b, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x74, 0x65, 0x73, 0x74, + 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1e, 0x61, + 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x6d, 0x6f, + 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x1a, 0x20, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, + 0x33, 0x0a, 0x06, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x3a, 0x29, 0xba, 0xc0, 0x96, 0xda, 0x01, + 0x23, 0x0a, 0x21, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x30, 0x74, + 0x65, 0x63, 0x68, 0x2f, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x78, 0x2f, + 0x74, 0x65, 0x73, 0x74, 0x42, 0xff, 0x01, 0x0a, 0x22, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x6e, 0x64, + 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x6d, 0x6f, 0x64, 0x75, + 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x0b, 0x4d, 0x6f, 0x64, + 0x75, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x31, 0x61, 0x70, 0x69, 0x2f, + 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x2f, 0x6d, + 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x3b, 0x6d, + 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xa2, 0x02, 0x03, + 0x41, 0x54, 0x4d, 0xaa, 0x02, 0x1e, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, + 0x54, 0x65, 0x73, 0x74, 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x56, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0xca, 0x02, 0x1e, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, + 0x5c, 0x54, 0x65, 0x73, 0x74, 0x5c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5c, 0x56, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0xe2, 0x02, 0x2a, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, + 0x61, 0x5c, 0x54, 0x65, 0x73, 0x74, 0x5c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5c, 0x56, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0xea, 0x02, 0x21, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x3a, 0x3a, + 0x54, 0x65, 0x73, 0x74, 0x3a, 0x3a, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x3a, 0x3a, 0x56, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_andromeda_test_module_v1alpha1_module_proto_rawDescOnce sync.Once + file_andromeda_test_module_v1alpha1_module_proto_rawDescData = file_andromeda_test_module_v1alpha1_module_proto_rawDesc +) + +func file_andromeda_test_module_v1alpha1_module_proto_rawDescGZIP() []byte { + file_andromeda_test_module_v1alpha1_module_proto_rawDescOnce.Do(func() { + file_andromeda_test_module_v1alpha1_module_proto_rawDescData = protoimpl.X.CompressGZIP(file_andromeda_test_module_v1alpha1_module_proto_rawDescData) + }) + return file_andromeda_test_module_v1alpha1_module_proto_rawDescData +} + +var file_andromeda_test_module_v1alpha1_module_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_andromeda_test_module_v1alpha1_module_proto_goTypes = []interface{}{ + (*Module)(nil), // 0: andromeda.test.module.v1alpha1.Module +} +var file_andromeda_test_module_v1alpha1_module_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_andromeda_test_module_v1alpha1_module_proto_init() } +func file_andromeda_test_module_v1alpha1_module_proto_init() { + if File_andromeda_test_module_v1alpha1_module_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_andromeda_test_module_v1alpha1_module_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Module); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_andromeda_test_module_v1alpha1_module_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_andromeda_test_module_v1alpha1_module_proto_goTypes, + DependencyIndexes: file_andromeda_test_module_v1alpha1_module_proto_depIdxs, + MessageInfos: file_andromeda_test_module_v1alpha1_module_proto_msgTypes, + }.Build() + File_andromeda_test_module_v1alpha1_module_proto = out.File + file_andromeda_test_module_v1alpha1_module_proto_rawDesc = nil + file_andromeda_test_module_v1alpha1_module_proto_goTypes = nil + file_andromeda_test_module_v1alpha1_module_proto_depIdxs = nil +} diff --git a/x/test/api/andromeda/test/v1alpha1/event.pulsar.go b/x/test/api/andromeda/test/v1alpha1/event.pulsar.go new file mode 100644 index 0000000..ec8c799 --- /dev/null +++ b/x/test/api/andromeda/test/v1alpha1/event.pulsar.go @@ -0,0 +1,1275 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package testv1alpha1 + +import ( + fmt "fmt" + _ "github.com/cosmos/cosmos-proto" + runtime "github.com/cosmos/cosmos-proto/runtime" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoiface "google.golang.org/protobuf/runtime/protoiface" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + io "io" + reflect "reflect" + sync "sync" +) + +var ( + md_EventCreate protoreflect.MessageDescriptor + fd_EventCreate_creator protoreflect.FieldDescriptor + fd_EventCreate_asset protoreflect.FieldDescriptor +) + +func init() { + file_andromeda_test_v1alpha1_event_proto_init() + md_EventCreate = File_andromeda_test_v1alpha1_event_proto.Messages().ByName("EventCreate") + fd_EventCreate_creator = md_EventCreate.Fields().ByName("creator") + fd_EventCreate_asset = md_EventCreate.Fields().ByName("asset") +} + +var _ protoreflect.Message = (*fastReflection_EventCreate)(nil) + +type fastReflection_EventCreate EventCreate + +func (x *EventCreate) ProtoReflect() protoreflect.Message { + return (*fastReflection_EventCreate)(x) +} + +func (x *EventCreate) slowProtoReflect() protoreflect.Message { + mi := &file_andromeda_test_v1alpha1_event_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_EventCreate_messageType fastReflection_EventCreate_messageType +var _ protoreflect.MessageType = fastReflection_EventCreate_messageType{} + +type fastReflection_EventCreate_messageType struct{} + +func (x fastReflection_EventCreate_messageType) Zero() protoreflect.Message { + return (*fastReflection_EventCreate)(nil) +} +func (x fastReflection_EventCreate_messageType) New() protoreflect.Message { + return new(fastReflection_EventCreate) +} +func (x fastReflection_EventCreate_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_EventCreate +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_EventCreate) Descriptor() protoreflect.MessageDescriptor { + return md_EventCreate +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_EventCreate) Type() protoreflect.MessageType { + return _fastReflection_EventCreate_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_EventCreate) New() protoreflect.Message { + return new(fastReflection_EventCreate) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_EventCreate) Interface() protoreflect.ProtoMessage { + return (*EventCreate)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_EventCreate) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Creator != "" { + value := protoreflect.ValueOfString(x.Creator) + if !f(fd_EventCreate_creator, value) { + return + } + } + if x.Asset != "" { + value := protoreflect.ValueOfString(x.Asset) + if !f(fd_EventCreate_asset, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_EventCreate) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "andromeda.test.v1alpha1.EventCreate.creator": + return x.Creator != "" + case "andromeda.test.v1alpha1.EventCreate.asset": + return x.Asset != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.EventCreate")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.EventCreate does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_EventCreate) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "andromeda.test.v1alpha1.EventCreate.creator": + x.Creator = "" + case "andromeda.test.v1alpha1.EventCreate.asset": + x.Asset = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.EventCreate")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.EventCreate does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_EventCreate) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "andromeda.test.v1alpha1.EventCreate.creator": + value := x.Creator + return protoreflect.ValueOfString(value) + case "andromeda.test.v1alpha1.EventCreate.asset": + value := x.Asset + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.EventCreate")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.EventCreate does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_EventCreate) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "andromeda.test.v1alpha1.EventCreate.creator": + x.Creator = value.Interface().(string) + case "andromeda.test.v1alpha1.EventCreate.asset": + x.Asset = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.EventCreate")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.EventCreate does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_EventCreate) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.test.v1alpha1.EventCreate.creator": + panic(fmt.Errorf("field creator of message andromeda.test.v1alpha1.EventCreate is not mutable")) + case "andromeda.test.v1alpha1.EventCreate.asset": + panic(fmt.Errorf("field asset of message andromeda.test.v1alpha1.EventCreate is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.EventCreate")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.EventCreate does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_EventCreate) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.test.v1alpha1.EventCreate.creator": + return protoreflect.ValueOfString("") + case "andromeda.test.v1alpha1.EventCreate.asset": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.EventCreate")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.EventCreate does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_EventCreate) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in andromeda.test.v1alpha1.EventCreate", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_EventCreate) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_EventCreate) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_EventCreate) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_EventCreate) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*EventCreate) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + l = len(x.Creator) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Asset) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*EventCreate) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.Asset) > 0 { + i -= len(x.Asset) + copy(dAtA[i:], x.Asset) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Asset))) + i-- + dAtA[i] = 0x12 + } + if len(x.Creator) > 0 { + i -= len(x.Creator) + copy(dAtA[i:], x.Creator) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*EventCreate) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventCreate: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventCreate: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Asset", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Asset = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_EventSend protoreflect.MessageDescriptor + fd_EventSend_sender protoreflect.FieldDescriptor + fd_EventSend_recipient protoreflect.FieldDescriptor + fd_EventSend_asset protoreflect.FieldDescriptor +) + +func init() { + file_andromeda_test_v1alpha1_event_proto_init() + md_EventSend = File_andromeda_test_v1alpha1_event_proto.Messages().ByName("EventSend") + fd_EventSend_sender = md_EventSend.Fields().ByName("sender") + fd_EventSend_recipient = md_EventSend.Fields().ByName("recipient") + fd_EventSend_asset = md_EventSend.Fields().ByName("asset") +} + +var _ protoreflect.Message = (*fastReflection_EventSend)(nil) + +type fastReflection_EventSend EventSend + +func (x *EventSend) ProtoReflect() protoreflect.Message { + return (*fastReflection_EventSend)(x) +} + +func (x *EventSend) slowProtoReflect() protoreflect.Message { + mi := &file_andromeda_test_v1alpha1_event_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_EventSend_messageType fastReflection_EventSend_messageType +var _ protoreflect.MessageType = fastReflection_EventSend_messageType{} + +type fastReflection_EventSend_messageType struct{} + +func (x fastReflection_EventSend_messageType) Zero() protoreflect.Message { + return (*fastReflection_EventSend)(nil) +} +func (x fastReflection_EventSend_messageType) New() protoreflect.Message { + return new(fastReflection_EventSend) +} +func (x fastReflection_EventSend_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_EventSend +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_EventSend) Descriptor() protoreflect.MessageDescriptor { + return md_EventSend +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_EventSend) Type() protoreflect.MessageType { + return _fastReflection_EventSend_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_EventSend) New() protoreflect.Message { + return new(fastReflection_EventSend) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_EventSend) Interface() protoreflect.ProtoMessage { + return (*EventSend)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_EventSend) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Sender != "" { + value := protoreflect.ValueOfString(x.Sender) + if !f(fd_EventSend_sender, value) { + return + } + } + if x.Recipient != "" { + value := protoreflect.ValueOfString(x.Recipient) + if !f(fd_EventSend_recipient, value) { + return + } + } + if x.Asset != "" { + value := protoreflect.ValueOfString(x.Asset) + if !f(fd_EventSend_asset, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_EventSend) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "andromeda.test.v1alpha1.EventSend.sender": + return x.Sender != "" + case "andromeda.test.v1alpha1.EventSend.recipient": + return x.Recipient != "" + case "andromeda.test.v1alpha1.EventSend.asset": + return x.Asset != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.EventSend")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.EventSend does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_EventSend) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "andromeda.test.v1alpha1.EventSend.sender": + x.Sender = "" + case "andromeda.test.v1alpha1.EventSend.recipient": + x.Recipient = "" + case "andromeda.test.v1alpha1.EventSend.asset": + x.Asset = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.EventSend")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.EventSend does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_EventSend) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "andromeda.test.v1alpha1.EventSend.sender": + value := x.Sender + return protoreflect.ValueOfString(value) + case "andromeda.test.v1alpha1.EventSend.recipient": + value := x.Recipient + return protoreflect.ValueOfString(value) + case "andromeda.test.v1alpha1.EventSend.asset": + value := x.Asset + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.EventSend")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.EventSend does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_EventSend) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "andromeda.test.v1alpha1.EventSend.sender": + x.Sender = value.Interface().(string) + case "andromeda.test.v1alpha1.EventSend.recipient": + x.Recipient = value.Interface().(string) + case "andromeda.test.v1alpha1.EventSend.asset": + x.Asset = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.EventSend")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.EventSend does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_EventSend) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.test.v1alpha1.EventSend.sender": + panic(fmt.Errorf("field sender of message andromeda.test.v1alpha1.EventSend is not mutable")) + case "andromeda.test.v1alpha1.EventSend.recipient": + panic(fmt.Errorf("field recipient of message andromeda.test.v1alpha1.EventSend is not mutable")) + case "andromeda.test.v1alpha1.EventSend.asset": + panic(fmt.Errorf("field asset of message andromeda.test.v1alpha1.EventSend is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.EventSend")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.EventSend does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_EventSend) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.test.v1alpha1.EventSend.sender": + return protoreflect.ValueOfString("") + case "andromeda.test.v1alpha1.EventSend.recipient": + return protoreflect.ValueOfString("") + case "andromeda.test.v1alpha1.EventSend.asset": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.EventSend")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.EventSend does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_EventSend) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in andromeda.test.v1alpha1.EventSend", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_EventSend) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_EventSend) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_EventSend) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_EventSend) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*EventSend) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + l = len(x.Sender) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Recipient) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Asset) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*EventSend) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.Asset) > 0 { + i -= len(x.Asset) + copy(dAtA[i:], x.Asset) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Asset))) + i-- + dAtA[i] = 0x1a + } + if len(x.Recipient) > 0 { + i -= len(x.Recipient) + copy(dAtA[i:], x.Recipient) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Recipient))) + i-- + dAtA[i] = 0x12 + } + if len(x.Sender) > 0 { + i -= len(x.Sender) + copy(dAtA[i:], x.Sender) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Sender))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*EventSend) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventSend: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventSend: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Sender", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Sender = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Recipient", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Recipient = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Asset", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Asset = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc (unknown) +// source: andromeda/test/v1alpha1/event.proto + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// EventCreate is emitted on Msg/Create. +type EventCreate struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // the address of the creator + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + // the name of the asset created + Asset string `protobuf:"bytes,2,opt,name=asset,proto3" json:"asset,omitempty"` +} + +func (x *EventCreate) Reset() { + *x = EventCreate{} + if protoimpl.UnsafeEnabled { + mi := &file_andromeda_test_v1alpha1_event_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EventCreate) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EventCreate) ProtoMessage() {} + +// Deprecated: Use EventCreate.ProtoReflect.Descriptor instead. +func (*EventCreate) Descriptor() ([]byte, []int) { + return file_andromeda_test_v1alpha1_event_proto_rawDescGZIP(), []int{0} +} + +func (x *EventCreate) GetCreator() string { + if x != nil { + return x.Creator + } + return "" +} + +func (x *EventCreate) GetAsset() string { + if x != nil { + return x.Asset + } + return "" +} + +// EventSend is emitted on Msg/Send. +type EventSend struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // the address of the sender + Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` + // the address of the recipient + Recipient string `protobuf:"bytes,2,opt,name=recipient,proto3" json:"recipient,omitempty"` + // the name of the asset sent + Asset string `protobuf:"bytes,3,opt,name=asset,proto3" json:"asset,omitempty"` +} + +func (x *EventSend) Reset() { + *x = EventSend{} + if protoimpl.UnsafeEnabled { + mi := &file_andromeda_test_v1alpha1_event_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EventSend) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EventSend) ProtoMessage() {} + +// Deprecated: Use EventSend.ProtoReflect.Descriptor instead. +func (*EventSend) Descriptor() ([]byte, []int) { + return file_andromeda_test_v1alpha1_event_proto_rawDescGZIP(), []int{1} +} + +func (x *EventSend) GetSender() string { + if x != nil { + return x.Sender + } + return "" +} + +func (x *EventSend) GetRecipient() string { + if x != nil { + return x.Recipient + } + return "" +} + +func (x *EventSend) GetAsset() string { + if x != nil { + return x.Asset + } + return "" +} + +var File_andromeda_test_v1alpha1_event_proto protoreflect.FileDescriptor + +var file_andromeda_test_v1alpha1_event_proto_rawDesc = []byte{ + 0x0a, 0x23, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x74, 0x65, 0x73, 0x74, + 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, + 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x1a, 0x19, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x57, 0x0a, 0x0b, 0x45, 0x76, 0x65, + 0x6e, 0x74, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x32, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, + 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, + 0x69, 0x6e, 0x67, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x14, 0x0a, 0x05, + 0x61, 0x73, 0x73, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x73, 0x73, + 0x65, 0x74, 0x22, 0x8b, 0x01, 0x0a, 0x09, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x6e, 0x64, + 0x12, 0x30, 0x0a, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x06, 0x73, 0x65, 0x6e, 0x64, + 0x65, 0x72, 0x12, 0x36, 0x0a, 0x09, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, + 0x09, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x73, + 0x73, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, + 0x42, 0xd1, 0x01, 0x0a, 0x1b, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, + 0x64, 0x61, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x42, 0x0a, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x28, + 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x74, 0x65, + 0x73, 0x74, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x3b, 0x74, 0x65, 0x73, 0x74, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x54, 0x58, 0xaa, 0x02, + 0x17, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x2e, + 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xca, 0x02, 0x17, 0x41, 0x6e, 0x64, 0x72, 0x6f, + 0x6d, 0x65, 0x64, 0x61, 0x5c, 0x54, 0x65, 0x73, 0x74, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0xe2, 0x02, 0x23, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x5c, 0x54, + 0x65, 0x73, 0x74, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x19, 0x41, 0x6e, 0x64, 0x72, 0x6f, + 0x6d, 0x65, 0x64, 0x61, 0x3a, 0x3a, 0x54, 0x65, 0x73, 0x74, 0x3a, 0x3a, 0x56, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_andromeda_test_v1alpha1_event_proto_rawDescOnce sync.Once + file_andromeda_test_v1alpha1_event_proto_rawDescData = file_andromeda_test_v1alpha1_event_proto_rawDesc +) + +func file_andromeda_test_v1alpha1_event_proto_rawDescGZIP() []byte { + file_andromeda_test_v1alpha1_event_proto_rawDescOnce.Do(func() { + file_andromeda_test_v1alpha1_event_proto_rawDescData = protoimpl.X.CompressGZIP(file_andromeda_test_v1alpha1_event_proto_rawDescData) + }) + return file_andromeda_test_v1alpha1_event_proto_rawDescData +} + +var file_andromeda_test_v1alpha1_event_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_andromeda_test_v1alpha1_event_proto_goTypes = []interface{}{ + (*EventCreate)(nil), // 0: andromeda.test.v1alpha1.EventCreate + (*EventSend)(nil), // 1: andromeda.test.v1alpha1.EventSend +} +var file_andromeda_test_v1alpha1_event_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_andromeda_test_v1alpha1_event_proto_init() } +func file_andromeda_test_v1alpha1_event_proto_init() { + if File_andromeda_test_v1alpha1_event_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_andromeda_test_v1alpha1_event_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EventCreate); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_andromeda_test_v1alpha1_event_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EventSend); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_andromeda_test_v1alpha1_event_proto_rawDesc, + NumEnums: 0, + NumMessages: 2, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_andromeda_test_v1alpha1_event_proto_goTypes, + DependencyIndexes: file_andromeda_test_v1alpha1_event_proto_depIdxs, + MessageInfos: file_andromeda_test_v1alpha1_event_proto_msgTypes, + }.Build() + File_andromeda_test_v1alpha1_event_proto = out.File + file_andromeda_test_v1alpha1_event_proto_rawDesc = nil + file_andromeda_test_v1alpha1_event_proto_goTypes = nil + file_andromeda_test_v1alpha1_event_proto_depIdxs = nil +} diff --git a/x/test/api/andromeda/test/v1alpha1/query.pulsar.go b/x/test/api/andromeda/test/v1alpha1/query.pulsar.go new file mode 100644 index 0000000..3b4afe3 --- /dev/null +++ b/x/test/api/andromeda/test/v1alpha1/query.pulsar.go @@ -0,0 +1,3333 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package testv1alpha1 + +import ( + v1beta1 "cosmossdk.io/api/cosmos/base/query/v1beta1" + fmt "fmt" + _ "github.com/cosmos/cosmos-proto" + runtime "github.com/cosmos/cosmos-proto/runtime" + _ "google.golang.org/genproto/googleapis/api/annotations" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoiface "google.golang.org/protobuf/runtime/protoiface" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + io "io" + reflect "reflect" + sync "sync" +) + +var ( + md_QueryAssetRequest protoreflect.MessageDescriptor + fd_QueryAssetRequest_account protoreflect.FieldDescriptor + fd_QueryAssetRequest_asset protoreflect.FieldDescriptor +) + +func init() { + file_andromeda_test_v1alpha1_query_proto_init() + md_QueryAssetRequest = File_andromeda_test_v1alpha1_query_proto.Messages().ByName("QueryAssetRequest") + fd_QueryAssetRequest_account = md_QueryAssetRequest.Fields().ByName("account") + fd_QueryAssetRequest_asset = md_QueryAssetRequest.Fields().ByName("asset") +} + +var _ protoreflect.Message = (*fastReflection_QueryAssetRequest)(nil) + +type fastReflection_QueryAssetRequest QueryAssetRequest + +func (x *QueryAssetRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryAssetRequest)(x) +} + +func (x *QueryAssetRequest) slowProtoReflect() protoreflect.Message { + mi := &file_andromeda_test_v1alpha1_query_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_QueryAssetRequest_messageType fastReflection_QueryAssetRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryAssetRequest_messageType{} + +type fastReflection_QueryAssetRequest_messageType struct{} + +func (x fastReflection_QueryAssetRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryAssetRequest)(nil) +} +func (x fastReflection_QueryAssetRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryAssetRequest) +} +func (x fastReflection_QueryAssetRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAssetRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryAssetRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAssetRequest +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_QueryAssetRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryAssetRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryAssetRequest) New() protoreflect.Message { + return new(fastReflection_QueryAssetRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryAssetRequest) Interface() protoreflect.ProtoMessage { + return (*QueryAssetRequest)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_QueryAssetRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Account != "" { + value := protoreflect.ValueOfString(x.Account) + if !f(fd_QueryAssetRequest_account, value) { + return + } + } + if x.Asset != "" { + value := protoreflect.ValueOfString(x.Asset) + if !f(fd_QueryAssetRequest_asset, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_QueryAssetRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "andromeda.test.v1alpha1.QueryAssetRequest.account": + return x.Account != "" + case "andromeda.test.v1alpha1.QueryAssetRequest.asset": + return x.Asset != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.QueryAssetRequest")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.QueryAssetRequest does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryAssetRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "andromeda.test.v1alpha1.QueryAssetRequest.account": + x.Account = "" + case "andromeda.test.v1alpha1.QueryAssetRequest.asset": + x.Asset = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.QueryAssetRequest")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.QueryAssetRequest does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_QueryAssetRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "andromeda.test.v1alpha1.QueryAssetRequest.account": + value := x.Account + return protoreflect.ValueOfString(value) + case "andromeda.test.v1alpha1.QueryAssetRequest.asset": + value := x.Asset + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.QueryAssetRequest")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.QueryAssetRequest does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryAssetRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "andromeda.test.v1alpha1.QueryAssetRequest.account": + x.Account = value.Interface().(string) + case "andromeda.test.v1alpha1.QueryAssetRequest.asset": + x.Asset = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.QueryAssetRequest")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.QueryAssetRequest does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryAssetRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.test.v1alpha1.QueryAssetRequest.account": + panic(fmt.Errorf("field account of message andromeda.test.v1alpha1.QueryAssetRequest is not mutable")) + case "andromeda.test.v1alpha1.QueryAssetRequest.asset": + panic(fmt.Errorf("field asset of message andromeda.test.v1alpha1.QueryAssetRequest is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.QueryAssetRequest")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.QueryAssetRequest does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_QueryAssetRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.test.v1alpha1.QueryAssetRequest.account": + return protoreflect.ValueOfString("") + case "andromeda.test.v1alpha1.QueryAssetRequest.asset": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.QueryAssetRequest")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.QueryAssetRequest does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_QueryAssetRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in andromeda.test.v1alpha1.QueryAssetRequest", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_QueryAssetRequest) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryAssetRequest) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_QueryAssetRequest) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_QueryAssetRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryAssetRequest) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + l = len(x.Account) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Asset) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*QueryAssetRequest) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.Asset) > 0 { + i -= len(x.Asset) + copy(dAtA[i:], x.Asset) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Asset))) + i-- + dAtA[i] = 0x12 + } + if len(x.Account) > 0 { + i -= len(x.Account) + copy(dAtA[i:], x.Account) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Account))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*QueryAssetRequest) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAssetRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAssetRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Account", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Account = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Asset", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Asset = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_QueryAssetResponse protoreflect.MessageDescriptor + fd_QueryAssetResponse_asset protoreflect.FieldDescriptor +) + +func init() { + file_andromeda_test_v1alpha1_query_proto_init() + md_QueryAssetResponse = File_andromeda_test_v1alpha1_query_proto.Messages().ByName("QueryAssetResponse") + fd_QueryAssetResponse_asset = md_QueryAssetResponse.Fields().ByName("asset") +} + +var _ protoreflect.Message = (*fastReflection_QueryAssetResponse)(nil) + +type fastReflection_QueryAssetResponse QueryAssetResponse + +func (x *QueryAssetResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryAssetResponse)(x) +} + +func (x *QueryAssetResponse) slowProtoReflect() protoreflect.Message { + mi := &file_andromeda_test_v1alpha1_query_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_QueryAssetResponse_messageType fastReflection_QueryAssetResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryAssetResponse_messageType{} + +type fastReflection_QueryAssetResponse_messageType struct{} + +func (x fastReflection_QueryAssetResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryAssetResponse)(nil) +} +func (x fastReflection_QueryAssetResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryAssetResponse) +} +func (x fastReflection_QueryAssetResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAssetResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryAssetResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAssetResponse +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_QueryAssetResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryAssetResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryAssetResponse) New() protoreflect.Message { + return new(fastReflection_QueryAssetResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryAssetResponse) Interface() protoreflect.ProtoMessage { + return (*QueryAssetResponse)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_QueryAssetResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Asset != nil { + value := protoreflect.ValueOfMessage(x.Asset.ProtoReflect()) + if !f(fd_QueryAssetResponse_asset, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_QueryAssetResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "andromeda.test.v1alpha1.QueryAssetResponse.asset": + return x.Asset != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.QueryAssetResponse")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.QueryAssetResponse does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryAssetResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "andromeda.test.v1alpha1.QueryAssetResponse.asset": + x.Asset = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.QueryAssetResponse")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.QueryAssetResponse does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_QueryAssetResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "andromeda.test.v1alpha1.QueryAssetResponse.asset": + value := x.Asset + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.QueryAssetResponse")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.QueryAssetResponse does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryAssetResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "andromeda.test.v1alpha1.QueryAssetResponse.asset": + x.Asset = value.Message().Interface().(*QueryAssetResponse_Asset) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.QueryAssetResponse")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.QueryAssetResponse does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryAssetResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.test.v1alpha1.QueryAssetResponse.asset": + if x.Asset == nil { + x.Asset = new(QueryAssetResponse_Asset) + } + return protoreflect.ValueOfMessage(x.Asset.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.QueryAssetResponse")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.QueryAssetResponse does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_QueryAssetResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.test.v1alpha1.QueryAssetResponse.asset": + m := new(QueryAssetResponse_Asset) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.QueryAssetResponse")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.QueryAssetResponse does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_QueryAssetResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in andromeda.test.v1alpha1.QueryAssetResponse", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_QueryAssetResponse) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryAssetResponse) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_QueryAssetResponse) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_QueryAssetResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryAssetResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.Asset != nil { + l = options.Size(x.Asset) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*QueryAssetResponse) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if x.Asset != nil { + encoded, err := options.Marshal(x.Asset) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*QueryAssetResponse) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAssetResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAssetResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Asset", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.Asset == nil { + x.Asset = &QueryAssetResponse_Asset{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Asset); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_QueryAssetResponse_Asset protoreflect.MessageDescriptor + fd_QueryAssetResponse_Asset_name protoreflect.FieldDescriptor +) + +func init() { + file_andromeda_test_v1alpha1_query_proto_init() + md_QueryAssetResponse_Asset = File_andromeda_test_v1alpha1_query_proto.Messages().ByName("QueryAssetResponse").Messages().ByName("Asset") + fd_QueryAssetResponse_Asset_name = md_QueryAssetResponse_Asset.Fields().ByName("name") +} + +var _ protoreflect.Message = (*fastReflection_QueryAssetResponse_Asset)(nil) + +type fastReflection_QueryAssetResponse_Asset QueryAssetResponse_Asset + +func (x *QueryAssetResponse_Asset) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryAssetResponse_Asset)(x) +} + +func (x *QueryAssetResponse_Asset) slowProtoReflect() protoreflect.Message { + mi := &file_andromeda_test_v1alpha1_query_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_QueryAssetResponse_Asset_messageType fastReflection_QueryAssetResponse_Asset_messageType +var _ protoreflect.MessageType = fastReflection_QueryAssetResponse_Asset_messageType{} + +type fastReflection_QueryAssetResponse_Asset_messageType struct{} + +func (x fastReflection_QueryAssetResponse_Asset_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryAssetResponse_Asset)(nil) +} +func (x fastReflection_QueryAssetResponse_Asset_messageType) New() protoreflect.Message { + return new(fastReflection_QueryAssetResponse_Asset) +} +func (x fastReflection_QueryAssetResponse_Asset_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAssetResponse_Asset +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryAssetResponse_Asset) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAssetResponse_Asset +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_QueryAssetResponse_Asset) Type() protoreflect.MessageType { + return _fastReflection_QueryAssetResponse_Asset_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryAssetResponse_Asset) New() protoreflect.Message { + return new(fastReflection_QueryAssetResponse_Asset) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryAssetResponse_Asset) Interface() protoreflect.ProtoMessage { + return (*QueryAssetResponse_Asset)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_QueryAssetResponse_Asset) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Name != "" { + value := protoreflect.ValueOfString(x.Name) + if !f(fd_QueryAssetResponse_Asset_name, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_QueryAssetResponse_Asset) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "andromeda.test.v1alpha1.QueryAssetResponse.Asset.name": + return x.Name != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.QueryAssetResponse.Asset")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.QueryAssetResponse.Asset does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryAssetResponse_Asset) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "andromeda.test.v1alpha1.QueryAssetResponse.Asset.name": + x.Name = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.QueryAssetResponse.Asset")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.QueryAssetResponse.Asset does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_QueryAssetResponse_Asset) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "andromeda.test.v1alpha1.QueryAssetResponse.Asset.name": + value := x.Name + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.QueryAssetResponse.Asset")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.QueryAssetResponse.Asset does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryAssetResponse_Asset) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "andromeda.test.v1alpha1.QueryAssetResponse.Asset.name": + x.Name = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.QueryAssetResponse.Asset")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.QueryAssetResponse.Asset does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryAssetResponse_Asset) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.test.v1alpha1.QueryAssetResponse.Asset.name": + panic(fmt.Errorf("field name of message andromeda.test.v1alpha1.QueryAssetResponse.Asset is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.QueryAssetResponse.Asset")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.QueryAssetResponse.Asset does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_QueryAssetResponse_Asset) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.test.v1alpha1.QueryAssetResponse.Asset.name": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.QueryAssetResponse.Asset")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.QueryAssetResponse.Asset does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_QueryAssetResponse_Asset) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in andromeda.test.v1alpha1.QueryAssetResponse.Asset", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_QueryAssetResponse_Asset) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryAssetResponse_Asset) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_QueryAssetResponse_Asset) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_QueryAssetResponse_Asset) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryAssetResponse_Asset) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + l = len(x.Name) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*QueryAssetResponse_Asset) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.Name) > 0 { + i -= len(x.Name) + copy(dAtA[i:], x.Name) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Name))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*QueryAssetResponse_Asset) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAssetResponse_Asset: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAssetResponse_Asset: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_QueryAssetsRequest protoreflect.MessageDescriptor + fd_QueryAssetsRequest_account protoreflect.FieldDescriptor + fd_QueryAssetsRequest_pagination protoreflect.FieldDescriptor +) + +func init() { + file_andromeda_test_v1alpha1_query_proto_init() + md_QueryAssetsRequest = File_andromeda_test_v1alpha1_query_proto.Messages().ByName("QueryAssetsRequest") + fd_QueryAssetsRequest_account = md_QueryAssetsRequest.Fields().ByName("account") + fd_QueryAssetsRequest_pagination = md_QueryAssetsRequest.Fields().ByName("pagination") +} + +var _ protoreflect.Message = (*fastReflection_QueryAssetsRequest)(nil) + +type fastReflection_QueryAssetsRequest QueryAssetsRequest + +func (x *QueryAssetsRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryAssetsRequest)(x) +} + +func (x *QueryAssetsRequest) slowProtoReflect() protoreflect.Message { + mi := &file_andromeda_test_v1alpha1_query_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_QueryAssetsRequest_messageType fastReflection_QueryAssetsRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryAssetsRequest_messageType{} + +type fastReflection_QueryAssetsRequest_messageType struct{} + +func (x fastReflection_QueryAssetsRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryAssetsRequest)(nil) +} +func (x fastReflection_QueryAssetsRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryAssetsRequest) +} +func (x fastReflection_QueryAssetsRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAssetsRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryAssetsRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAssetsRequest +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_QueryAssetsRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryAssetsRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryAssetsRequest) New() protoreflect.Message { + return new(fastReflection_QueryAssetsRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryAssetsRequest) Interface() protoreflect.ProtoMessage { + return (*QueryAssetsRequest)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_QueryAssetsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Account != "" { + value := protoreflect.ValueOfString(x.Account) + if !f(fd_QueryAssetsRequest_account, value) { + return + } + } + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryAssetsRequest_pagination, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_QueryAssetsRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "andromeda.test.v1alpha1.QueryAssetsRequest.account": + return x.Account != "" + case "andromeda.test.v1alpha1.QueryAssetsRequest.pagination": + return x.Pagination != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.QueryAssetsRequest")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.QueryAssetsRequest does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryAssetsRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "andromeda.test.v1alpha1.QueryAssetsRequest.account": + x.Account = "" + case "andromeda.test.v1alpha1.QueryAssetsRequest.pagination": + x.Pagination = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.QueryAssetsRequest")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.QueryAssetsRequest does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_QueryAssetsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "andromeda.test.v1alpha1.QueryAssetsRequest.account": + value := x.Account + return protoreflect.ValueOfString(value) + case "andromeda.test.v1alpha1.QueryAssetsRequest.pagination": + value := x.Pagination + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.QueryAssetsRequest")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.QueryAssetsRequest does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryAssetsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "andromeda.test.v1alpha1.QueryAssetsRequest.account": + x.Account = value.Interface().(string) + case "andromeda.test.v1alpha1.QueryAssetsRequest.pagination": + x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.QueryAssetsRequest")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.QueryAssetsRequest does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryAssetsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.test.v1alpha1.QueryAssetsRequest.pagination": + if x.Pagination == nil { + x.Pagination = new(v1beta1.PageRequest) + } + return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + case "andromeda.test.v1alpha1.QueryAssetsRequest.account": + panic(fmt.Errorf("field account of message andromeda.test.v1alpha1.QueryAssetsRequest is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.QueryAssetsRequest")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.QueryAssetsRequest does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_QueryAssetsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.test.v1alpha1.QueryAssetsRequest.account": + return protoreflect.ValueOfString("") + case "andromeda.test.v1alpha1.QueryAssetsRequest.pagination": + m := new(v1beta1.PageRequest) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.QueryAssetsRequest")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.QueryAssetsRequest does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_QueryAssetsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in andromeda.test.v1alpha1.QueryAssetsRequest", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_QueryAssetsRequest) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryAssetsRequest) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_QueryAssetsRequest) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_QueryAssetsRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryAssetsRequest) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + l = len(x.Account) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Pagination != nil { + l = options.Size(x.Pagination) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*QueryAssetsRequest) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if x.Pagination != nil { + encoded, err := options.Marshal(x.Pagination) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x12 + } + if len(x.Account) > 0 { + i -= len(x.Account) + copy(dAtA[i:], x.Account) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Account))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*QueryAssetsRequest) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAssetsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAssetsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Account", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Account = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.Pagination == nil { + x.Pagination = &v1beta1.PageRequest{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var _ protoreflect.List = (*_QueryAssetsResponse_1_list)(nil) + +type _QueryAssetsResponse_1_list struct { + list *[]*QueryAssetsResponse_Asset +} + +func (x *_QueryAssetsResponse_1_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_QueryAssetsResponse_1_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_QueryAssetsResponse_1_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*QueryAssetsResponse_Asset) + (*x.list)[i] = concreteValue +} + +func (x *_QueryAssetsResponse_1_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*QueryAssetsResponse_Asset) + *x.list = append(*x.list, concreteValue) +} + +func (x *_QueryAssetsResponse_1_list) AppendMutable() protoreflect.Value { + v := new(QueryAssetsResponse_Asset) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryAssetsResponse_1_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_QueryAssetsResponse_1_list) NewElement() protoreflect.Value { + v := new(QueryAssetsResponse_Asset) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryAssetsResponse_1_list) IsValid() bool { + return x.list != nil +} + +var ( + md_QueryAssetsResponse protoreflect.MessageDescriptor + fd_QueryAssetsResponse_assets protoreflect.FieldDescriptor + fd_QueryAssetsResponse_pagination protoreflect.FieldDescriptor +) + +func init() { + file_andromeda_test_v1alpha1_query_proto_init() + md_QueryAssetsResponse = File_andromeda_test_v1alpha1_query_proto.Messages().ByName("QueryAssetsResponse") + fd_QueryAssetsResponse_assets = md_QueryAssetsResponse.Fields().ByName("assets") + fd_QueryAssetsResponse_pagination = md_QueryAssetsResponse.Fields().ByName("pagination") +} + +var _ protoreflect.Message = (*fastReflection_QueryAssetsResponse)(nil) + +type fastReflection_QueryAssetsResponse QueryAssetsResponse + +func (x *QueryAssetsResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryAssetsResponse)(x) +} + +func (x *QueryAssetsResponse) slowProtoReflect() protoreflect.Message { + mi := &file_andromeda_test_v1alpha1_query_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_QueryAssetsResponse_messageType fastReflection_QueryAssetsResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryAssetsResponse_messageType{} + +type fastReflection_QueryAssetsResponse_messageType struct{} + +func (x fastReflection_QueryAssetsResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryAssetsResponse)(nil) +} +func (x fastReflection_QueryAssetsResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryAssetsResponse) +} +func (x fastReflection_QueryAssetsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAssetsResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryAssetsResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAssetsResponse +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_QueryAssetsResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryAssetsResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryAssetsResponse) New() protoreflect.Message { + return new(fastReflection_QueryAssetsResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryAssetsResponse) Interface() protoreflect.ProtoMessage { + return (*QueryAssetsResponse)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_QueryAssetsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.Assets) != 0 { + value := protoreflect.ValueOfList(&_QueryAssetsResponse_1_list{list: &x.Assets}) + if !f(fd_QueryAssetsResponse_assets, value) { + return + } + } + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryAssetsResponse_pagination, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_QueryAssetsResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "andromeda.test.v1alpha1.QueryAssetsResponse.assets": + return len(x.Assets) != 0 + case "andromeda.test.v1alpha1.QueryAssetsResponse.pagination": + return x.Pagination != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.QueryAssetsResponse")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.QueryAssetsResponse does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryAssetsResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "andromeda.test.v1alpha1.QueryAssetsResponse.assets": + x.Assets = nil + case "andromeda.test.v1alpha1.QueryAssetsResponse.pagination": + x.Pagination = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.QueryAssetsResponse")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.QueryAssetsResponse does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_QueryAssetsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "andromeda.test.v1alpha1.QueryAssetsResponse.assets": + if len(x.Assets) == 0 { + return protoreflect.ValueOfList(&_QueryAssetsResponse_1_list{}) + } + listValue := &_QueryAssetsResponse_1_list{list: &x.Assets} + return protoreflect.ValueOfList(listValue) + case "andromeda.test.v1alpha1.QueryAssetsResponse.pagination": + value := x.Pagination + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.QueryAssetsResponse")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.QueryAssetsResponse does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryAssetsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "andromeda.test.v1alpha1.QueryAssetsResponse.assets": + lv := value.List() + clv := lv.(*_QueryAssetsResponse_1_list) + x.Assets = *clv.list + case "andromeda.test.v1alpha1.QueryAssetsResponse.pagination": + x.Pagination = value.Message().Interface().(*v1beta1.PageResponse) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.QueryAssetsResponse")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.QueryAssetsResponse does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryAssetsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.test.v1alpha1.QueryAssetsResponse.assets": + if x.Assets == nil { + x.Assets = []*QueryAssetsResponse_Asset{} + } + value := &_QueryAssetsResponse_1_list{list: &x.Assets} + return protoreflect.ValueOfList(value) + case "andromeda.test.v1alpha1.QueryAssetsResponse.pagination": + if x.Pagination == nil { + x.Pagination = new(v1beta1.PageResponse) + } + return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.QueryAssetsResponse")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.QueryAssetsResponse does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_QueryAssetsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.test.v1alpha1.QueryAssetsResponse.assets": + list := []*QueryAssetsResponse_Asset{} + return protoreflect.ValueOfList(&_QueryAssetsResponse_1_list{list: &list}) + case "andromeda.test.v1alpha1.QueryAssetsResponse.pagination": + m := new(v1beta1.PageResponse) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.QueryAssetsResponse")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.QueryAssetsResponse does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_QueryAssetsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in andromeda.test.v1alpha1.QueryAssetsResponse", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_QueryAssetsResponse) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryAssetsResponse) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_QueryAssetsResponse) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_QueryAssetsResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryAssetsResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if len(x.Assets) > 0 { + for _, e := range x.Assets { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if x.Pagination != nil { + l = options.Size(x.Pagination) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*QueryAssetsResponse) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if x.Pagination != nil { + encoded, err := options.Marshal(x.Pagination) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x12 + } + if len(x.Assets) > 0 { + for iNdEx := len(x.Assets) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Assets[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0xa + } + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*QueryAssetsResponse) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAssetsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAssetsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Assets", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Assets = append(x.Assets, &QueryAssetsResponse_Asset{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Assets[len(x.Assets)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.Pagination == nil { + x.Pagination = &v1beta1.PageResponse{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_QueryAssetsResponse_Asset protoreflect.MessageDescriptor + fd_QueryAssetsResponse_Asset_name protoreflect.FieldDescriptor +) + +func init() { + file_andromeda_test_v1alpha1_query_proto_init() + md_QueryAssetsResponse_Asset = File_andromeda_test_v1alpha1_query_proto.Messages().ByName("QueryAssetsResponse").Messages().ByName("Asset") + fd_QueryAssetsResponse_Asset_name = md_QueryAssetsResponse_Asset.Fields().ByName("name") +} + +var _ protoreflect.Message = (*fastReflection_QueryAssetsResponse_Asset)(nil) + +type fastReflection_QueryAssetsResponse_Asset QueryAssetsResponse_Asset + +func (x *QueryAssetsResponse_Asset) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryAssetsResponse_Asset)(x) +} + +func (x *QueryAssetsResponse_Asset) slowProtoReflect() protoreflect.Message { + mi := &file_andromeda_test_v1alpha1_query_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_QueryAssetsResponse_Asset_messageType fastReflection_QueryAssetsResponse_Asset_messageType +var _ protoreflect.MessageType = fastReflection_QueryAssetsResponse_Asset_messageType{} + +type fastReflection_QueryAssetsResponse_Asset_messageType struct{} + +func (x fastReflection_QueryAssetsResponse_Asset_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryAssetsResponse_Asset)(nil) +} +func (x fastReflection_QueryAssetsResponse_Asset_messageType) New() protoreflect.Message { + return new(fastReflection_QueryAssetsResponse_Asset) +} +func (x fastReflection_QueryAssetsResponse_Asset_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAssetsResponse_Asset +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryAssetsResponse_Asset) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAssetsResponse_Asset +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_QueryAssetsResponse_Asset) Type() protoreflect.MessageType { + return _fastReflection_QueryAssetsResponse_Asset_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryAssetsResponse_Asset) New() protoreflect.Message { + return new(fastReflection_QueryAssetsResponse_Asset) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryAssetsResponse_Asset) Interface() protoreflect.ProtoMessage { + return (*QueryAssetsResponse_Asset)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_QueryAssetsResponse_Asset) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Name != "" { + value := protoreflect.ValueOfString(x.Name) + if !f(fd_QueryAssetsResponse_Asset_name, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_QueryAssetsResponse_Asset) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "andromeda.test.v1alpha1.QueryAssetsResponse.Asset.name": + return x.Name != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.QueryAssetsResponse.Asset")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.QueryAssetsResponse.Asset does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryAssetsResponse_Asset) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "andromeda.test.v1alpha1.QueryAssetsResponse.Asset.name": + x.Name = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.QueryAssetsResponse.Asset")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.QueryAssetsResponse.Asset does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_QueryAssetsResponse_Asset) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "andromeda.test.v1alpha1.QueryAssetsResponse.Asset.name": + value := x.Name + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.QueryAssetsResponse.Asset")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.QueryAssetsResponse.Asset does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryAssetsResponse_Asset) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "andromeda.test.v1alpha1.QueryAssetsResponse.Asset.name": + x.Name = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.QueryAssetsResponse.Asset")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.QueryAssetsResponse.Asset does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryAssetsResponse_Asset) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.test.v1alpha1.QueryAssetsResponse.Asset.name": + panic(fmt.Errorf("field name of message andromeda.test.v1alpha1.QueryAssetsResponse.Asset is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.QueryAssetsResponse.Asset")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.QueryAssetsResponse.Asset does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_QueryAssetsResponse_Asset) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.test.v1alpha1.QueryAssetsResponse.Asset.name": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.QueryAssetsResponse.Asset")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.QueryAssetsResponse.Asset does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_QueryAssetsResponse_Asset) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in andromeda.test.v1alpha1.QueryAssetsResponse.Asset", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_QueryAssetsResponse_Asset) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryAssetsResponse_Asset) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_QueryAssetsResponse_Asset) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_QueryAssetsResponse_Asset) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryAssetsResponse_Asset) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + l = len(x.Name) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*QueryAssetsResponse_Asset) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.Name) > 0 { + i -= len(x.Name) + copy(dAtA[i:], x.Name) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Name))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*QueryAssetsResponse_Asset) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAssetsResponse_Asset: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAssetsResponse_Asset: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc (unknown) +// source: andromeda/test/v1alpha1/query.proto + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// QueryAssetRequest is the request type for the Query/Asset RPC method. +type QueryAssetRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // the address of an account + Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` + // the name of an asset + Asset string `protobuf:"bytes,2,opt,name=asset,proto3" json:"asset,omitempty"` +} + +func (x *QueryAssetRequest) Reset() { + *x = QueryAssetRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_andromeda_test_v1alpha1_query_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryAssetRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryAssetRequest) ProtoMessage() {} + +// Deprecated: Use QueryAssetRequest.ProtoReflect.Descriptor instead. +func (*QueryAssetRequest) Descriptor() ([]byte, []int) { + return file_andromeda_test_v1alpha1_query_proto_rawDescGZIP(), []int{0} +} + +func (x *QueryAssetRequest) GetAccount() string { + if x != nil { + return x.Account + } + return "" +} + +func (x *QueryAssetRequest) GetAsset() string { + if x != nil { + return x.Asset + } + return "" +} + +// QueryAssetResponse is the response type for the Query/Asset RPC method. +type QueryAssetResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // the corresponding asset + Asset *QueryAssetResponse_Asset `protobuf:"bytes,1,opt,name=asset,proto3" json:"asset,omitempty"` +} + +func (x *QueryAssetResponse) Reset() { + *x = QueryAssetResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_andromeda_test_v1alpha1_query_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryAssetResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryAssetResponse) ProtoMessage() {} + +// Deprecated: Use QueryAssetResponse.ProtoReflect.Descriptor instead. +func (*QueryAssetResponse) Descriptor() ([]byte, []int) { + return file_andromeda_test_v1alpha1_query_proto_rawDescGZIP(), []int{1} +} + +func (x *QueryAssetResponse) GetAsset() *QueryAssetResponse_Asset { + if x != nil { + return x.Asset + } + return nil +} + +// QueryAssetsRequest is the request type for the Query/Assets RPC method. +type QueryAssetsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // the address of an account + Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` + // optional pagination for the request + Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (x *QueryAssetsRequest) Reset() { + *x = QueryAssetsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_andromeda_test_v1alpha1_query_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryAssetsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryAssetsRequest) ProtoMessage() {} + +// Deprecated: Use QueryAssetsRequest.ProtoReflect.Descriptor instead. +func (*QueryAssetsRequest) Descriptor() ([]byte, []int) { + return file_andromeda_test_v1alpha1_query_proto_rawDescGZIP(), []int{2} +} + +func (x *QueryAssetsRequest) GetAccount() string { + if x != nil { + return x.Account + } + return "" +} + +func (x *QueryAssetsRequest) GetPagination() *v1beta1.PageRequest { + if x != nil { + return x.Pagination + } + return nil +} + +// QueryAssetsResponse is the response type for the Query/Assets RPC method. +type QueryAssetsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // all the assets owned by the account + Assets []*QueryAssetsResponse_Asset `protobuf:"bytes,1,rep,name=assets,proto3" json:"assets,omitempty"` + // pagination in the response + Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (x *QueryAssetsResponse) Reset() { + *x = QueryAssetsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_andromeda_test_v1alpha1_query_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryAssetsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryAssetsResponse) ProtoMessage() {} + +// Deprecated: Use QueryAssetsResponse.ProtoReflect.Descriptor instead. +func (*QueryAssetsResponse) Descriptor() ([]byte, []int) { + return file_andromeda_test_v1alpha1_query_proto_rawDescGZIP(), []int{3} +} + +func (x *QueryAssetsResponse) GetAssets() []*QueryAssetsResponse_Asset { + if x != nil { + return x.Assets + } + return nil +} + +func (x *QueryAssetsResponse) GetPagination() *v1beta1.PageResponse { + if x != nil { + return x.Pagination + } + return nil +} + +// Asset defines an asset identified by its name. +type QueryAssetResponse_Asset struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // the name of the asset + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` +} + +func (x *QueryAssetResponse_Asset) Reset() { + *x = QueryAssetResponse_Asset{} + if protoimpl.UnsafeEnabled { + mi := &file_andromeda_test_v1alpha1_query_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryAssetResponse_Asset) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryAssetResponse_Asset) ProtoMessage() {} + +// Deprecated: Use QueryAssetResponse_Asset.ProtoReflect.Descriptor instead. +func (*QueryAssetResponse_Asset) Descriptor() ([]byte, []int) { + return file_andromeda_test_v1alpha1_query_proto_rawDescGZIP(), []int{1, 0} +} + +func (x *QueryAssetResponse_Asset) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +// Asset defines an asset identified by its name. +type QueryAssetsResponse_Asset struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // the name of the asset + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` +} + +func (x *QueryAssetsResponse_Asset) Reset() { + *x = QueryAssetsResponse_Asset{} + if protoimpl.UnsafeEnabled { + mi := &file_andromeda_test_v1alpha1_query_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryAssetsResponse_Asset) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryAssetsResponse_Asset) ProtoMessage() {} + +// Deprecated: Use QueryAssetsResponse_Asset.ProtoReflect.Descriptor instead. +func (*QueryAssetsResponse_Asset) Descriptor() ([]byte, []int) { + return file_andromeda_test_v1alpha1_query_proto_rawDescGZIP(), []int{3, 0} +} + +func (x *QueryAssetsResponse_Asset) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +var File_andromeda_test_v1alpha1_query_proto protoreflect.FileDescriptor + +var file_andromeda_test_v1alpha1_query_proto_rawDesc = []byte{ + 0x0a, 0x23, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x74, 0x65, 0x73, 0x74, + 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, + 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x1a, 0x2a, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x71, 0x75, 0x65, 0x72, + 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, + 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x22, 0x5d, 0x0a, 0x11, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x73, 0x73, 0x65, + 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x32, 0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f, + 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, + 0x69, 0x6e, 0x67, 0x52, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, + 0x61, 0x73, 0x73, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x73, 0x73, + 0x65, 0x74, 0x22, 0x7a, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x73, 0x73, 0x65, 0x74, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x47, 0x0a, 0x05, 0x61, 0x73, 0x73, 0x65, + 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, + 0x65, 0x64, 0x61, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x05, 0x61, 0x73, 0x73, 0x65, + 0x74, 0x1a, 0x1b, 0x0a, 0x05, 0x41, 0x73, 0x73, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x90, + 0x01, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x32, 0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, + 0x52, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, + 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x22, 0xc7, 0x01, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x73, 0x73, 0x65, 0x74, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4a, 0x0a, 0x06, 0x61, 0x73, 0x73, + 0x65, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x61, 0x6e, 0x64, 0x72, + 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x06, 0x61, + 0x73, 0x73, 0x65, 0x74, 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x1b, + 0x0a, 0x05, 0x41, 0x73, 0x73, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x32, 0xd0, 0x02, 0x0a, 0x05, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0xa4, 0x01, 0x0a, 0x05, 0x41, 0x73, 0x73, 0x65, 0x74, 0x12, + 0x2a, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x74, 0x65, 0x73, 0x74, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, + 0x73, 0x73, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x61, 0x6e, + 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x73, 0x73, 0x65, 0x74, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x42, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3c, + 0x12, 0x3a, 0x2f, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x74, 0x65, 0x73, + 0x74, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, + 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x7d, 0x2f, 0x61, 0x73, + 0x73, 0x65, 0x74, 0x73, 0x2f, 0x7b, 0x61, 0x73, 0x73, 0x65, 0x74, 0x7d, 0x12, 0x9f, 0x01, 0x0a, + 0x06, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x12, 0x2b, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, + 0x65, 0x64, 0x61, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, + 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x3a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x34, 0x12, 0x32, 0x2f, 0x61, 0x6e, 0x64, + 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x2f, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x61, + 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x7d, 0x2f, 0x61, 0x73, 0x73, 0x65, 0x74, 0x73, 0x42, 0xd1, + 0x01, 0x0a, 0x1b, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, + 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x0a, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x28, 0x61, 0x70, + 0x69, 0x2f, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x74, 0x65, 0x73, 0x74, + 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x3b, 0x74, 0x65, 0x73, 0x74, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x54, 0x58, 0xaa, 0x02, 0x17, 0x41, + 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x2e, 0x56, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xca, 0x02, 0x17, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, + 0x64, 0x61, 0x5c, 0x54, 0x65, 0x73, 0x74, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0xe2, 0x02, 0x23, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x5c, 0x54, 0x65, 0x73, + 0x74, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x19, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, + 0x64, 0x61, 0x3a, 0x3a, 0x54, 0x65, 0x73, 0x74, 0x3a, 0x3a, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_andromeda_test_v1alpha1_query_proto_rawDescOnce sync.Once + file_andromeda_test_v1alpha1_query_proto_rawDescData = file_andromeda_test_v1alpha1_query_proto_rawDesc +) + +func file_andromeda_test_v1alpha1_query_proto_rawDescGZIP() []byte { + file_andromeda_test_v1alpha1_query_proto_rawDescOnce.Do(func() { + file_andromeda_test_v1alpha1_query_proto_rawDescData = protoimpl.X.CompressGZIP(file_andromeda_test_v1alpha1_query_proto_rawDescData) + }) + return file_andromeda_test_v1alpha1_query_proto_rawDescData +} + +var file_andromeda_test_v1alpha1_query_proto_msgTypes = make([]protoimpl.MessageInfo, 6) +var file_andromeda_test_v1alpha1_query_proto_goTypes = []interface{}{ + (*QueryAssetRequest)(nil), // 0: andromeda.test.v1alpha1.QueryAssetRequest + (*QueryAssetResponse)(nil), // 1: andromeda.test.v1alpha1.QueryAssetResponse + (*QueryAssetsRequest)(nil), // 2: andromeda.test.v1alpha1.QueryAssetsRequest + (*QueryAssetsResponse)(nil), // 3: andromeda.test.v1alpha1.QueryAssetsResponse + (*QueryAssetResponse_Asset)(nil), // 4: andromeda.test.v1alpha1.QueryAssetResponse.Asset + (*QueryAssetsResponse_Asset)(nil), // 5: andromeda.test.v1alpha1.QueryAssetsResponse.Asset + (*v1beta1.PageRequest)(nil), // 6: cosmos.base.query.v1beta1.PageRequest + (*v1beta1.PageResponse)(nil), // 7: cosmos.base.query.v1beta1.PageResponse +} +var file_andromeda_test_v1alpha1_query_proto_depIdxs = []int32{ + 4, // 0: andromeda.test.v1alpha1.QueryAssetResponse.asset:type_name -> andromeda.test.v1alpha1.QueryAssetResponse.Asset + 6, // 1: andromeda.test.v1alpha1.QueryAssetsRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 5, // 2: andromeda.test.v1alpha1.QueryAssetsResponse.assets:type_name -> andromeda.test.v1alpha1.QueryAssetsResponse.Asset + 7, // 3: andromeda.test.v1alpha1.QueryAssetsResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 0, // 4: andromeda.test.v1alpha1.Query.Asset:input_type -> andromeda.test.v1alpha1.QueryAssetRequest + 2, // 5: andromeda.test.v1alpha1.Query.Assets:input_type -> andromeda.test.v1alpha1.QueryAssetsRequest + 1, // 6: andromeda.test.v1alpha1.Query.Asset:output_type -> andromeda.test.v1alpha1.QueryAssetResponse + 3, // 7: andromeda.test.v1alpha1.Query.Assets:output_type -> andromeda.test.v1alpha1.QueryAssetsResponse + 6, // [6:8] is the sub-list for method output_type + 4, // [4:6] is the sub-list for method input_type + 4, // [4:4] is the sub-list for extension type_name + 4, // [4:4] is the sub-list for extension extendee + 0, // [0:4] is the sub-list for field type_name +} + +func init() { file_andromeda_test_v1alpha1_query_proto_init() } +func file_andromeda_test_v1alpha1_query_proto_init() { + if File_andromeda_test_v1alpha1_query_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_andromeda_test_v1alpha1_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryAssetRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_andromeda_test_v1alpha1_query_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryAssetResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_andromeda_test_v1alpha1_query_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryAssetsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_andromeda_test_v1alpha1_query_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryAssetsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_andromeda_test_v1alpha1_query_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryAssetResponse_Asset); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_andromeda_test_v1alpha1_query_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryAssetsResponse_Asset); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_andromeda_test_v1alpha1_query_proto_rawDesc, + NumEnums: 0, + NumMessages: 6, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_andromeda_test_v1alpha1_query_proto_goTypes, + DependencyIndexes: file_andromeda_test_v1alpha1_query_proto_depIdxs, + MessageInfos: file_andromeda_test_v1alpha1_query_proto_msgTypes, + }.Build() + File_andromeda_test_v1alpha1_query_proto = out.File + file_andromeda_test_v1alpha1_query_proto_rawDesc = nil + file_andromeda_test_v1alpha1_query_proto_goTypes = nil + file_andromeda_test_v1alpha1_query_proto_depIdxs = nil +} diff --git a/x/test/api/andromeda/test/v1alpha1/query_grpc.pb.go b/x/test/api/andromeda/test/v1alpha1/query_grpc.pb.go new file mode 100644 index 0000000..ab8244b --- /dev/null +++ b/x/test/api/andromeda/test/v1alpha1/query_grpc.pb.go @@ -0,0 +1,150 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.3.0 +// - protoc (unknown) +// source: andromeda/test/v1alpha1/query.proto + +package testv1alpha1 + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +const ( + Query_Asset_FullMethodName = "/andromeda.test.v1alpha1.Query/Asset" + Query_Assets_FullMethodName = "/andromeda.test.v1alpha1.Query/Assets" +) + +// QueryClient is the client API for Query service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type QueryClient interface { + // Asset queries an asset. + Asset(ctx context.Context, in *QueryAssetRequest, opts ...grpc.CallOption) (*QueryAssetResponse, error) + // Assets queries all the assets. + Assets(ctx context.Context, in *QueryAssetsRequest, opts ...grpc.CallOption) (*QueryAssetsResponse, error) +} + +type queryClient struct { + cc grpc.ClientConnInterface +} + +func NewQueryClient(cc grpc.ClientConnInterface) QueryClient { + return &queryClient{cc} +} + +func (c *queryClient) Asset(ctx context.Context, in *QueryAssetRequest, opts ...grpc.CallOption) (*QueryAssetResponse, error) { + out := new(QueryAssetResponse) + err := c.cc.Invoke(ctx, Query_Asset_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) Assets(ctx context.Context, in *QueryAssetsRequest, opts ...grpc.CallOption) (*QueryAssetsResponse, error) { + out := new(QueryAssetsResponse) + err := c.cc.Invoke(ctx, Query_Assets_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// QueryServer is the server API for Query service. +// All implementations must embed UnimplementedQueryServer +// for forward compatibility +type QueryServer interface { + // Asset queries an asset. + Asset(context.Context, *QueryAssetRequest) (*QueryAssetResponse, error) + // Assets queries all the assets. + Assets(context.Context, *QueryAssetsRequest) (*QueryAssetsResponse, error) + mustEmbedUnimplementedQueryServer() +} + +// UnimplementedQueryServer must be embedded to have forward compatible implementations. +type UnimplementedQueryServer struct { +} + +func (UnimplementedQueryServer) Asset(context.Context, *QueryAssetRequest) (*QueryAssetResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Asset not implemented") +} +func (UnimplementedQueryServer) Assets(context.Context, *QueryAssetsRequest) (*QueryAssetsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Assets not implemented") +} +func (UnimplementedQueryServer) mustEmbedUnimplementedQueryServer() {} + +// UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to QueryServer will +// result in compilation errors. +type UnsafeQueryServer interface { + mustEmbedUnimplementedQueryServer() +} + +func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer) { + s.RegisterService(&Query_ServiceDesc, srv) +} + +func _Query_Asset_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryAssetRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Asset(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_Asset_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Asset(ctx, req.(*QueryAssetRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_Assets_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryAssetsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Assets(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_Assets_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Assets(ctx, req.(*QueryAssetsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// Query_ServiceDesc is the grpc.ServiceDesc for Query service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var Query_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "andromeda.test.v1alpha1.Query", + HandlerType: (*QueryServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Asset", + Handler: _Query_Asset_Handler, + }, + { + MethodName: "Assets", + Handler: _Query_Assets_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "andromeda/test/v1alpha1/query.proto", +} diff --git a/x/test/api/andromeda/test/v1alpha1/tx.pulsar.go b/x/test/api/andromeda/test/v1alpha1/tx.pulsar.go new file mode 100644 index 0000000..7b1cc90 --- /dev/null +++ b/x/test/api/andromeda/test/v1alpha1/tx.pulsar.go @@ -0,0 +1,2089 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package testv1alpha1 + +import ( + fmt "fmt" + _ "github.com/cosmos/cosmos-proto" + runtime "github.com/cosmos/cosmos-proto/runtime" + _ "github.com/cosmos/cosmos-sdk/types/msgservice" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoiface "google.golang.org/protobuf/runtime/protoiface" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + io "io" + reflect "reflect" + sync "sync" +) + +var ( + md_MsgCreate protoreflect.MessageDescriptor + fd_MsgCreate_creator protoreflect.FieldDescriptor + fd_MsgCreate_asset protoreflect.FieldDescriptor +) + +func init() { + file_andromeda_test_v1alpha1_tx_proto_init() + md_MsgCreate = File_andromeda_test_v1alpha1_tx_proto.Messages().ByName("MsgCreate") + fd_MsgCreate_creator = md_MsgCreate.Fields().ByName("creator") + fd_MsgCreate_asset = md_MsgCreate.Fields().ByName("asset") +} + +var _ protoreflect.Message = (*fastReflection_MsgCreate)(nil) + +type fastReflection_MsgCreate MsgCreate + +func (x *MsgCreate) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgCreate)(x) +} + +func (x *MsgCreate) slowProtoReflect() protoreflect.Message { + mi := &file_andromeda_test_v1alpha1_tx_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_MsgCreate_messageType fastReflection_MsgCreate_messageType +var _ protoreflect.MessageType = fastReflection_MsgCreate_messageType{} + +type fastReflection_MsgCreate_messageType struct{} + +func (x fastReflection_MsgCreate_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgCreate)(nil) +} +func (x fastReflection_MsgCreate_messageType) New() protoreflect.Message { + return new(fastReflection_MsgCreate) +} +func (x fastReflection_MsgCreate_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCreate +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgCreate) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCreate +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_MsgCreate) Type() protoreflect.MessageType { + return _fastReflection_MsgCreate_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgCreate) New() protoreflect.Message { + return new(fastReflection_MsgCreate) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgCreate) Interface() protoreflect.ProtoMessage { + return (*MsgCreate)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_MsgCreate) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Creator != "" { + value := protoreflect.ValueOfString(x.Creator) + if !f(fd_MsgCreate_creator, value) { + return + } + } + if x.Asset != "" { + value := protoreflect.ValueOfString(x.Asset) + if !f(fd_MsgCreate_asset, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_MsgCreate) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "andromeda.test.v1alpha1.MsgCreate.creator": + return x.Creator != "" + case "andromeda.test.v1alpha1.MsgCreate.asset": + return x.Asset != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.MsgCreate")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.MsgCreate does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgCreate) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "andromeda.test.v1alpha1.MsgCreate.creator": + x.Creator = "" + case "andromeda.test.v1alpha1.MsgCreate.asset": + x.Asset = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.MsgCreate")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.MsgCreate does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_MsgCreate) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "andromeda.test.v1alpha1.MsgCreate.creator": + value := x.Creator + return protoreflect.ValueOfString(value) + case "andromeda.test.v1alpha1.MsgCreate.asset": + value := x.Asset + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.MsgCreate")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.MsgCreate does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgCreate) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "andromeda.test.v1alpha1.MsgCreate.creator": + x.Creator = value.Interface().(string) + case "andromeda.test.v1alpha1.MsgCreate.asset": + x.Asset = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.MsgCreate")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.MsgCreate does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgCreate) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.test.v1alpha1.MsgCreate.creator": + panic(fmt.Errorf("field creator of message andromeda.test.v1alpha1.MsgCreate is not mutable")) + case "andromeda.test.v1alpha1.MsgCreate.asset": + panic(fmt.Errorf("field asset of message andromeda.test.v1alpha1.MsgCreate is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.MsgCreate")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.MsgCreate does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_MsgCreate) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.test.v1alpha1.MsgCreate.creator": + return protoreflect.ValueOfString("") + case "andromeda.test.v1alpha1.MsgCreate.asset": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.MsgCreate")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.MsgCreate does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_MsgCreate) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in andromeda.test.v1alpha1.MsgCreate", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_MsgCreate) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgCreate) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_MsgCreate) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_MsgCreate) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgCreate) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + l = len(x.Creator) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Asset) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*MsgCreate) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.Asset) > 0 { + i -= len(x.Asset) + copy(dAtA[i:], x.Asset) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Asset))) + i-- + dAtA[i] = 0x12 + } + if len(x.Creator) > 0 { + i -= len(x.Creator) + copy(dAtA[i:], x.Creator) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*MsgCreate) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreate: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreate: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Asset", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Asset = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_MsgCreateResponse protoreflect.MessageDescriptor +) + +func init() { + file_andromeda_test_v1alpha1_tx_proto_init() + md_MsgCreateResponse = File_andromeda_test_v1alpha1_tx_proto.Messages().ByName("MsgCreateResponse") +} + +var _ protoreflect.Message = (*fastReflection_MsgCreateResponse)(nil) + +type fastReflection_MsgCreateResponse MsgCreateResponse + +func (x *MsgCreateResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgCreateResponse)(x) +} + +func (x *MsgCreateResponse) slowProtoReflect() protoreflect.Message { + mi := &file_andromeda_test_v1alpha1_tx_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_MsgCreateResponse_messageType fastReflection_MsgCreateResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgCreateResponse_messageType{} + +type fastReflection_MsgCreateResponse_messageType struct{} + +func (x fastReflection_MsgCreateResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgCreateResponse)(nil) +} +func (x fastReflection_MsgCreateResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgCreateResponse) +} +func (x fastReflection_MsgCreateResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCreateResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgCreateResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCreateResponse +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_MsgCreateResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgCreateResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgCreateResponse) New() protoreflect.Message { + return new(fastReflection_MsgCreateResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgCreateResponse) Interface() protoreflect.ProtoMessage { + return (*MsgCreateResponse)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_MsgCreateResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_MsgCreateResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.MsgCreateResponse")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.MsgCreateResponse does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgCreateResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.MsgCreateResponse")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.MsgCreateResponse does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_MsgCreateResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.MsgCreateResponse")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.MsgCreateResponse does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgCreateResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.MsgCreateResponse")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.MsgCreateResponse does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgCreateResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.MsgCreateResponse")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.MsgCreateResponse does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_MsgCreateResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.MsgCreateResponse")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.MsgCreateResponse does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_MsgCreateResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in andromeda.test.v1alpha1.MsgCreateResponse", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_MsgCreateResponse) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgCreateResponse) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_MsgCreateResponse) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_MsgCreateResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgCreateResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*MsgCreateResponse) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*MsgCreateResponse) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_MsgSend protoreflect.MessageDescriptor + fd_MsgSend_sender protoreflect.FieldDescriptor + fd_MsgSend_recipient protoreflect.FieldDescriptor + fd_MsgSend_asset protoreflect.FieldDescriptor +) + +func init() { + file_andromeda_test_v1alpha1_tx_proto_init() + md_MsgSend = File_andromeda_test_v1alpha1_tx_proto.Messages().ByName("MsgSend") + fd_MsgSend_sender = md_MsgSend.Fields().ByName("sender") + fd_MsgSend_recipient = md_MsgSend.Fields().ByName("recipient") + fd_MsgSend_asset = md_MsgSend.Fields().ByName("asset") +} + +var _ protoreflect.Message = (*fastReflection_MsgSend)(nil) + +type fastReflection_MsgSend MsgSend + +func (x *MsgSend) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgSend)(x) +} + +func (x *MsgSend) slowProtoReflect() protoreflect.Message { + mi := &file_andromeda_test_v1alpha1_tx_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_MsgSend_messageType fastReflection_MsgSend_messageType +var _ protoreflect.MessageType = fastReflection_MsgSend_messageType{} + +type fastReflection_MsgSend_messageType struct{} + +func (x fastReflection_MsgSend_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgSend)(nil) +} +func (x fastReflection_MsgSend_messageType) New() protoreflect.Message { + return new(fastReflection_MsgSend) +} +func (x fastReflection_MsgSend_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSend +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgSend) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSend +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_MsgSend) Type() protoreflect.MessageType { + return _fastReflection_MsgSend_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgSend) New() protoreflect.Message { + return new(fastReflection_MsgSend) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgSend) Interface() protoreflect.ProtoMessage { + return (*MsgSend)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_MsgSend) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Sender != "" { + value := protoreflect.ValueOfString(x.Sender) + if !f(fd_MsgSend_sender, value) { + return + } + } + if x.Recipient != "" { + value := protoreflect.ValueOfString(x.Recipient) + if !f(fd_MsgSend_recipient, value) { + return + } + } + if x.Asset != "" { + value := protoreflect.ValueOfString(x.Asset) + if !f(fd_MsgSend_asset, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_MsgSend) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "andromeda.test.v1alpha1.MsgSend.sender": + return x.Sender != "" + case "andromeda.test.v1alpha1.MsgSend.recipient": + return x.Recipient != "" + case "andromeda.test.v1alpha1.MsgSend.asset": + return x.Asset != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.MsgSend")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.MsgSend does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgSend) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "andromeda.test.v1alpha1.MsgSend.sender": + x.Sender = "" + case "andromeda.test.v1alpha1.MsgSend.recipient": + x.Recipient = "" + case "andromeda.test.v1alpha1.MsgSend.asset": + x.Asset = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.MsgSend")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.MsgSend does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_MsgSend) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "andromeda.test.v1alpha1.MsgSend.sender": + value := x.Sender + return protoreflect.ValueOfString(value) + case "andromeda.test.v1alpha1.MsgSend.recipient": + value := x.Recipient + return protoreflect.ValueOfString(value) + case "andromeda.test.v1alpha1.MsgSend.asset": + value := x.Asset + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.MsgSend")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.MsgSend does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgSend) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "andromeda.test.v1alpha1.MsgSend.sender": + x.Sender = value.Interface().(string) + case "andromeda.test.v1alpha1.MsgSend.recipient": + x.Recipient = value.Interface().(string) + case "andromeda.test.v1alpha1.MsgSend.asset": + x.Asset = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.MsgSend")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.MsgSend does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgSend) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.test.v1alpha1.MsgSend.sender": + panic(fmt.Errorf("field sender of message andromeda.test.v1alpha1.MsgSend is not mutable")) + case "andromeda.test.v1alpha1.MsgSend.recipient": + panic(fmt.Errorf("field recipient of message andromeda.test.v1alpha1.MsgSend is not mutable")) + case "andromeda.test.v1alpha1.MsgSend.asset": + panic(fmt.Errorf("field asset of message andromeda.test.v1alpha1.MsgSend is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.MsgSend")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.MsgSend does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_MsgSend) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.test.v1alpha1.MsgSend.sender": + return protoreflect.ValueOfString("") + case "andromeda.test.v1alpha1.MsgSend.recipient": + return protoreflect.ValueOfString("") + case "andromeda.test.v1alpha1.MsgSend.asset": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.MsgSend")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.MsgSend does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_MsgSend) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in andromeda.test.v1alpha1.MsgSend", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_MsgSend) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgSend) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_MsgSend) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_MsgSend) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgSend) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + l = len(x.Sender) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Recipient) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Asset) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*MsgSend) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.Asset) > 0 { + i -= len(x.Asset) + copy(dAtA[i:], x.Asset) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Asset))) + i-- + dAtA[i] = 0x1a + } + if len(x.Recipient) > 0 { + i -= len(x.Recipient) + copy(dAtA[i:], x.Recipient) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Recipient))) + i-- + dAtA[i] = 0x12 + } + if len(x.Sender) > 0 { + i -= len(x.Sender) + copy(dAtA[i:], x.Sender) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Sender))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*MsgSend) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSend: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSend: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Sender", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Sender = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Recipient", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Recipient = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Asset", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Asset = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_MsgSendResponse protoreflect.MessageDescriptor +) + +func init() { + file_andromeda_test_v1alpha1_tx_proto_init() + md_MsgSendResponse = File_andromeda_test_v1alpha1_tx_proto.Messages().ByName("MsgSendResponse") +} + +var _ protoreflect.Message = (*fastReflection_MsgSendResponse)(nil) + +type fastReflection_MsgSendResponse MsgSendResponse + +func (x *MsgSendResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgSendResponse)(x) +} + +func (x *MsgSendResponse) slowProtoReflect() protoreflect.Message { + mi := &file_andromeda_test_v1alpha1_tx_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_MsgSendResponse_messageType fastReflection_MsgSendResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgSendResponse_messageType{} + +type fastReflection_MsgSendResponse_messageType struct{} + +func (x fastReflection_MsgSendResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgSendResponse)(nil) +} +func (x fastReflection_MsgSendResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgSendResponse) +} +func (x fastReflection_MsgSendResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSendResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgSendResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSendResponse +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_MsgSendResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgSendResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgSendResponse) New() protoreflect.Message { + return new(fastReflection_MsgSendResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgSendResponse) Interface() protoreflect.ProtoMessage { + return (*MsgSendResponse)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_MsgSendResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_MsgSendResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.MsgSendResponse")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.MsgSendResponse does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgSendResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.MsgSendResponse")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.MsgSendResponse does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_MsgSendResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.MsgSendResponse")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.MsgSendResponse does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgSendResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.MsgSendResponse")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.MsgSendResponse does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgSendResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.MsgSendResponse")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.MsgSendResponse does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_MsgSendResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.MsgSendResponse")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.MsgSendResponse does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_MsgSendResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in andromeda.test.v1alpha1.MsgSendResponse", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_MsgSendResponse) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgSendResponse) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_MsgSendResponse) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_MsgSendResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgSendResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*MsgSendResponse) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*MsgSendResponse) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSendResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSendResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc (unknown) +// source: andromeda/test/v1alpha1/tx.proto + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// MsgCreate is the Msg/Create request type. +type MsgCreate struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // the address of the creator + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + // the name of the asset to create + Asset string `protobuf:"bytes,2,opt,name=asset,proto3" json:"asset,omitempty"` +} + +func (x *MsgCreate) Reset() { + *x = MsgCreate{} + if protoimpl.UnsafeEnabled { + mi := &file_andromeda_test_v1alpha1_tx_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgCreate) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgCreate) ProtoMessage() {} + +// Deprecated: Use MsgCreate.ProtoReflect.Descriptor instead. +func (*MsgCreate) Descriptor() ([]byte, []int) { + return file_andromeda_test_v1alpha1_tx_proto_rawDescGZIP(), []int{0} +} + +func (x *MsgCreate) GetCreator() string { + if x != nil { + return x.Creator + } + return "" +} + +func (x *MsgCreate) GetAsset() string { + if x != nil { + return x.Asset + } + return "" +} + +// MsgCreateResponse is the Msg/Create response type. +type MsgCreateResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *MsgCreateResponse) Reset() { + *x = MsgCreateResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_andromeda_test_v1alpha1_tx_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgCreateResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgCreateResponse) ProtoMessage() {} + +// Deprecated: Use MsgCreateResponse.ProtoReflect.Descriptor instead. +func (*MsgCreateResponse) Descriptor() ([]byte, []int) { + return file_andromeda_test_v1alpha1_tx_proto_rawDescGZIP(), []int{1} +} + +// MsgSend is the Msg/Send request type. +type MsgSend struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // the address of the sender + Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` + // the address of the recipient + Recipient string `protobuf:"bytes,2,opt,name=recipient,proto3" json:"recipient,omitempty"` + // the asset to send + Asset string `protobuf:"bytes,3,opt,name=asset,proto3" json:"asset,omitempty"` +} + +func (x *MsgSend) Reset() { + *x = MsgSend{} + if protoimpl.UnsafeEnabled { + mi := &file_andromeda_test_v1alpha1_tx_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgSend) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgSend) ProtoMessage() {} + +// Deprecated: Use MsgSend.ProtoReflect.Descriptor instead. +func (*MsgSend) Descriptor() ([]byte, []int) { + return file_andromeda_test_v1alpha1_tx_proto_rawDescGZIP(), []int{2} +} + +func (x *MsgSend) GetSender() string { + if x != nil { + return x.Sender + } + return "" +} + +func (x *MsgSend) GetRecipient() string { + if x != nil { + return x.Recipient + } + return "" +} + +func (x *MsgSend) GetAsset() string { + if x != nil { + return x.Asset + } + return "" +} + +// MsgSendResponse is the Msg/Send response type. +type MsgSendResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *MsgSendResponse) Reset() { + *x = MsgSendResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_andromeda_test_v1alpha1_tx_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgSendResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgSendResponse) ProtoMessage() {} + +// Deprecated: Use MsgSendResponse.ProtoReflect.Descriptor instead. +func (*MsgSendResponse) Descriptor() ([]byte, []int) { + return file_andromeda_test_v1alpha1_tx_proto_rawDescGZIP(), []int{3} +} + +var File_andromeda_test_v1alpha1_tx_proto protoreflect.FileDescriptor + +var file_andromeda_test_v1alpha1_tx_proto_rawDesc = []byte{ + 0x0a, 0x20, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x74, 0x65, 0x73, 0x74, + 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x74, 0x78, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x12, 0x17, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x74, 0x65, + 0x73, 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x1a, 0x17, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x2f, 0x6d, 0x73, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x73, 0x67, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, + 0x63, 0x0a, 0x09, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x32, 0x0a, 0x07, + 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, + 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, + 0x12, 0x14, 0x0a, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, + 0x61, 0x74, 0x6f, 0x72, 0x22, 0x13, 0x0a, 0x11, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x96, 0x01, 0x0a, 0x07, 0x4d, 0x73, + 0x67, 0x53, 0x65, 0x6e, 0x64, 0x12, 0x30, 0x0a, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, + 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x36, 0x0a, 0x09, 0x72, 0x65, 0x63, 0x69, 0x70, + 0x69, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, + 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x12, + 0x14, 0x0a, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, + 0x61, 0x73, 0x73, 0x65, 0x74, 0x3a, 0x0b, 0x82, 0xe7, 0xb0, 0x2a, 0x06, 0x73, 0x65, 0x6e, 0x64, + 0x65, 0x72, 0x22, 0x11, 0x0a, 0x0f, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xba, 0x01, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x58, 0x0a, + 0x06, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x22, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, + 0x65, 0x64, 0x61, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x1a, 0x2a, 0x2e, 0x61, 0x6e, + 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x52, 0x0a, 0x04, 0x53, 0x65, 0x6e, 0x64, 0x12, + 0x20, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x74, 0x65, 0x73, 0x74, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x6e, + 0x64, 0x1a, 0x28, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x74, 0x65, + 0x73, 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x53, + 0x65, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x1a, 0x05, 0x80, 0xe7, 0xb0, + 0x2a, 0x01, 0x42, 0xce, 0x01, 0x0a, 0x1b, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, + 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x42, 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x28, 0x61, + 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x74, 0x65, 0x73, + 0x74, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x3b, 0x74, 0x65, 0x73, 0x74, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x54, 0x58, 0xaa, 0x02, 0x17, + 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x2e, 0x56, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xca, 0x02, 0x17, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, + 0x65, 0x64, 0x61, 0x5c, 0x54, 0x65, 0x73, 0x74, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0xe2, 0x02, 0x23, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x5c, 0x54, 0x65, + 0x73, 0x74, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x19, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, + 0x65, 0x64, 0x61, 0x3a, 0x3a, 0x54, 0x65, 0x73, 0x74, 0x3a, 0x3a, 0x56, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_andromeda_test_v1alpha1_tx_proto_rawDescOnce sync.Once + file_andromeda_test_v1alpha1_tx_proto_rawDescData = file_andromeda_test_v1alpha1_tx_proto_rawDesc +) + +func file_andromeda_test_v1alpha1_tx_proto_rawDescGZIP() []byte { + file_andromeda_test_v1alpha1_tx_proto_rawDescOnce.Do(func() { + file_andromeda_test_v1alpha1_tx_proto_rawDescData = protoimpl.X.CompressGZIP(file_andromeda_test_v1alpha1_tx_proto_rawDescData) + }) + return file_andromeda_test_v1alpha1_tx_proto_rawDescData +} + +var file_andromeda_test_v1alpha1_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_andromeda_test_v1alpha1_tx_proto_goTypes = []interface{}{ + (*MsgCreate)(nil), // 0: andromeda.test.v1alpha1.MsgCreate + (*MsgCreateResponse)(nil), // 1: andromeda.test.v1alpha1.MsgCreateResponse + (*MsgSend)(nil), // 2: andromeda.test.v1alpha1.MsgSend + (*MsgSendResponse)(nil), // 3: andromeda.test.v1alpha1.MsgSendResponse +} +var file_andromeda_test_v1alpha1_tx_proto_depIdxs = []int32{ + 0, // 0: andromeda.test.v1alpha1.Msg.Create:input_type -> andromeda.test.v1alpha1.MsgCreate + 2, // 1: andromeda.test.v1alpha1.Msg.Send:input_type -> andromeda.test.v1alpha1.MsgSend + 1, // 2: andromeda.test.v1alpha1.Msg.Create:output_type -> andromeda.test.v1alpha1.MsgCreateResponse + 3, // 3: andromeda.test.v1alpha1.Msg.Send:output_type -> andromeda.test.v1alpha1.MsgSendResponse + 2, // [2:4] is the sub-list for method output_type + 0, // [0:2] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_andromeda_test_v1alpha1_tx_proto_init() } +func file_andromeda_test_v1alpha1_tx_proto_init() { + if File_andromeda_test_v1alpha1_tx_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_andromeda_test_v1alpha1_tx_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgCreate); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_andromeda_test_v1alpha1_tx_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgCreateResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_andromeda_test_v1alpha1_tx_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgSend); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_andromeda_test_v1alpha1_tx_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgSendResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_andromeda_test_v1alpha1_tx_proto_rawDesc, + NumEnums: 0, + NumMessages: 4, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_andromeda_test_v1alpha1_tx_proto_goTypes, + DependencyIndexes: file_andromeda_test_v1alpha1_tx_proto_depIdxs, + MessageInfos: file_andromeda_test_v1alpha1_tx_proto_msgTypes, + }.Build() + File_andromeda_test_v1alpha1_tx_proto = out.File + file_andromeda_test_v1alpha1_tx_proto_rawDesc = nil + file_andromeda_test_v1alpha1_tx_proto_goTypes = nil + file_andromeda_test_v1alpha1_tx_proto_depIdxs = nil +} diff --git a/x/test/api/andromeda/test/v1alpha1/tx_grpc.pb.go b/x/test/api/andromeda/test/v1alpha1/tx_grpc.pb.go new file mode 100644 index 0000000..d451a6b --- /dev/null +++ b/x/test/api/andromeda/test/v1alpha1/tx_grpc.pb.go @@ -0,0 +1,150 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.3.0 +// - protoc (unknown) +// source: andromeda/test/v1alpha1/tx.proto + +package testv1alpha1 + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +const ( + Msg_Create_FullMethodName = "/andromeda.test.v1alpha1.Msg/Create" + Msg_Send_FullMethodName = "/andromeda.test.v1alpha1.Msg/Send" +) + +// MsgClient is the client API for Msg service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type MsgClient interface { + // Create creates an asset. + Create(ctx context.Context, in *MsgCreate, opts ...grpc.CallOption) (*MsgCreateResponse, error) + // Send sends an asset from an account to another. + Send(ctx context.Context, in *MsgSend, opts ...grpc.CallOption) (*MsgSendResponse, error) +} + +type msgClient struct { + cc grpc.ClientConnInterface +} + +func NewMsgClient(cc grpc.ClientConnInterface) MsgClient { + return &msgClient{cc} +} + +func (c *msgClient) Create(ctx context.Context, in *MsgCreate, opts ...grpc.CallOption) (*MsgCreateResponse, error) { + out := new(MsgCreateResponse) + err := c.cc.Invoke(ctx, Msg_Create_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) Send(ctx context.Context, in *MsgSend, opts ...grpc.CallOption) (*MsgSendResponse, error) { + out := new(MsgSendResponse) + err := c.cc.Invoke(ctx, Msg_Send_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// MsgServer is the server API for Msg service. +// All implementations must embed UnimplementedMsgServer +// for forward compatibility +type MsgServer interface { + // Create creates an asset. + Create(context.Context, *MsgCreate) (*MsgCreateResponse, error) + // Send sends an asset from an account to another. + Send(context.Context, *MsgSend) (*MsgSendResponse, error) + mustEmbedUnimplementedMsgServer() +} + +// UnimplementedMsgServer must be embedded to have forward compatible implementations. +type UnimplementedMsgServer struct { +} + +func (UnimplementedMsgServer) Create(context.Context, *MsgCreate) (*MsgCreateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Create not implemented") +} +func (UnimplementedMsgServer) Send(context.Context, *MsgSend) (*MsgSendResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Send not implemented") +} +func (UnimplementedMsgServer) mustEmbedUnimplementedMsgServer() {} + +// UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to MsgServer will +// result in compilation errors. +type UnsafeMsgServer interface { + mustEmbedUnimplementedMsgServer() +} + +func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer) { + s.RegisterService(&Msg_ServiceDesc, srv) +} + +func _Msg_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgCreate) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).Create(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_Create_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).Create(ctx, req.(*MsgCreate)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_Send_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgSend) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).Send(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_Send_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).Send(ctx, req.(*MsgSend)) + } + return interceptor(ctx, in, info, handler) +} + +// Msg_ServiceDesc is the grpc.ServiceDesc for Msg service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var Msg_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "andromeda.test.v1alpha1.Msg", + HandlerType: (*MsgServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Create", + Handler: _Msg_Create_Handler, + }, + { + MethodName: "Send", + Handler: _Msg_Send_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "andromeda/test/v1alpha1/tx.proto", +} diff --git a/x/test/api/andromeda/test/v1alpha1/types.pulsar.go b/x/test/api/andromeda/test/v1alpha1/types.pulsar.go new file mode 100644 index 0000000..cc12a69 --- /dev/null +++ b/x/test/api/andromeda/test/v1alpha1/types.pulsar.go @@ -0,0 +1,496 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package testv1alpha1 + +import ( + fmt "fmt" + runtime "github.com/cosmos/cosmos-proto/runtime" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoiface "google.golang.org/protobuf/runtime/protoiface" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + io "io" + reflect "reflect" + sync "sync" +) + +var ( + md_Asset protoreflect.MessageDescriptor +) + +func init() { + file_andromeda_test_v1alpha1_types_proto_init() + md_Asset = File_andromeda_test_v1alpha1_types_proto.Messages().ByName("Asset") +} + +var _ protoreflect.Message = (*fastReflection_Asset)(nil) + +type fastReflection_Asset Asset + +func (x *Asset) ProtoReflect() protoreflect.Message { + return (*fastReflection_Asset)(x) +} + +func (x *Asset) slowProtoReflect() protoreflect.Message { + mi := &file_andromeda_test_v1alpha1_types_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_Asset_messageType fastReflection_Asset_messageType +var _ protoreflect.MessageType = fastReflection_Asset_messageType{} + +type fastReflection_Asset_messageType struct{} + +func (x fastReflection_Asset_messageType) Zero() protoreflect.Message { + return (*fastReflection_Asset)(nil) +} +func (x fastReflection_Asset_messageType) New() protoreflect.Message { + return new(fastReflection_Asset) +} +func (x fastReflection_Asset_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_Asset +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_Asset) Descriptor() protoreflect.MessageDescriptor { + return md_Asset +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_Asset) Type() protoreflect.MessageType { + return _fastReflection_Asset_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_Asset) New() protoreflect.Message { + return new(fastReflection_Asset) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_Asset) Interface() protoreflect.ProtoMessage { + return (*Asset)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_Asset) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_Asset) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.Asset")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.Asset does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_Asset) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.Asset")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.Asset does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_Asset) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.Asset")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.Asset does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_Asset) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.Asset")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.Asset does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_Asset) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.Asset")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.Asset does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_Asset) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.test.v1alpha1.Asset")) + } + panic(fmt.Errorf("message andromeda.test.v1alpha1.Asset does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_Asset) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in andromeda.test.v1alpha1.Asset", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_Asset) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_Asset) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_Asset) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_Asset) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*Asset) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*Asset) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*Asset) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Asset: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Asset: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc (unknown) +// source: andromeda/test/v1alpha1/types.proto + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// Asset defines an asset identified by its name. +type Asset struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *Asset) Reset() { + *x = Asset{} + if protoimpl.UnsafeEnabled { + mi := &file_andromeda_test_v1alpha1_types_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Asset) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Asset) ProtoMessage() {} + +// Deprecated: Use Asset.ProtoReflect.Descriptor instead. +func (*Asset) Descriptor() ([]byte, []int) { + return file_andromeda_test_v1alpha1_types_proto_rawDescGZIP(), []int{0} +} + +var File_andromeda_test_v1alpha1_types_proto protoreflect.FileDescriptor + +var file_andromeda_test_v1alpha1_types_proto_rawDesc = []byte{ + 0x0a, 0x23, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x74, 0x65, 0x73, 0x74, + 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, + 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x22, 0x07, + 0x0a, 0x05, 0x41, 0x73, 0x73, 0x65, 0x74, 0x42, 0xd1, 0x01, 0x0a, 0x1b, 0x63, 0x6f, 0x6d, 0x2e, + 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x0a, 0x54, 0x79, 0x70, 0x65, 0x73, 0x50, 0x72, + 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x28, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x64, 0x72, 0x6f, + 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x3b, 0x74, 0x65, 0x73, 0x74, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xa2, + 0x02, 0x03, 0x41, 0x54, 0x58, 0xaa, 0x02, 0x17, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, + 0x61, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x2e, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xca, + 0x02, 0x17, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x5c, 0x54, 0x65, 0x73, 0x74, + 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xe2, 0x02, 0x23, 0x41, 0x6e, 0x64, 0x72, + 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x5c, 0x54, 0x65, 0x73, 0x74, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, + 0x02, 0x19, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x3a, 0x3a, 0x54, 0x65, 0x73, + 0x74, 0x3a, 0x3a, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, +} + +var ( + file_andromeda_test_v1alpha1_types_proto_rawDescOnce sync.Once + file_andromeda_test_v1alpha1_types_proto_rawDescData = file_andromeda_test_v1alpha1_types_proto_rawDesc +) + +func file_andromeda_test_v1alpha1_types_proto_rawDescGZIP() []byte { + file_andromeda_test_v1alpha1_types_proto_rawDescOnce.Do(func() { + file_andromeda_test_v1alpha1_types_proto_rawDescData = protoimpl.X.CompressGZIP(file_andromeda_test_v1alpha1_types_proto_rawDescData) + }) + return file_andromeda_test_v1alpha1_types_proto_rawDescData +} + +var file_andromeda_test_v1alpha1_types_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_andromeda_test_v1alpha1_types_proto_goTypes = []interface{}{ + (*Asset)(nil), // 0: andromeda.test.v1alpha1.Asset +} +var file_andromeda_test_v1alpha1_types_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_andromeda_test_v1alpha1_types_proto_init() } +func file_andromeda_test_v1alpha1_types_proto_init() { + if File_andromeda_test_v1alpha1_types_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_andromeda_test_v1alpha1_types_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Asset); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_andromeda_test_v1alpha1_types_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_andromeda_test_v1alpha1_types_proto_goTypes, + DependencyIndexes: file_andromeda_test_v1alpha1_types_proto_depIdxs, + MessageInfos: file_andromeda_test_v1alpha1_types_proto_msgTypes, + }.Build() + File_andromeda_test_v1alpha1_types_proto = out.File + file_andromeda_test_v1alpha1_types_proto_rawDesc = nil + file_andromeda_test_v1alpha1_types_proto_goTypes = nil + file_andromeda_test_v1alpha1_types_proto_depIdxs = nil +} diff --git a/x/test/go.mod b/x/test/go.mod new file mode 100644 index 0000000..6c38ce2 --- /dev/null +++ b/x/test/go.mod @@ -0,0 +1,154 @@ +module github.com/0tech/andromeda/x/test + +go 1.21 + +require ( + cosmossdk.io/api v0.7.2 + cosmossdk.io/collections v0.4.0 + cosmossdk.io/core v0.11.0 + cosmossdk.io/depinject v1.0.0-alpha.4 + cosmossdk.io/errors v1.0.1 + cosmossdk.io/log v1.3.0 + cosmossdk.io/store v1.0.2 + github.com/cosmos/cosmos-proto v1.0.0-beta.3 + github.com/cosmos/cosmos-sdk v0.50.3 + github.com/cosmos/gogoproto v1.4.11 + github.com/golang/protobuf v1.5.3 + github.com/grpc-ecosystem/grpc-gateway v1.16.0 + github.com/stretchr/testify v1.8.4 + google.golang.org/genproto/googleapis/api v0.0.0-20231120223509-83a465c0220f + google.golang.org/grpc v1.60.1 + google.golang.org/protobuf v1.32.0 +) + +require ( + cosmossdk.io/math v1.2.0 // indirect + cosmossdk.io/x/tx v0.13.0 // indirect + filippo.io/edwards25519 v1.0.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/beorn7/perks v1.0.1 // indirect + github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816 // indirect + github.com/btcsuite/btcd/btcec/v2 v2.3.2 // indirect + github.com/cenkalti/backoff/v4 v4.1.3 // indirect + github.com/cespare/xxhash v1.1.0 // indirect + github.com/cespare/xxhash/v2 v2.2.0 // indirect + github.com/cockroachdb/errors v1.11.1 // indirect + github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b // indirect + github.com/cockroachdb/pebble v0.0.0-20231101195458-481da04154d6 // indirect + github.com/cockroachdb/redact v1.1.5 // indirect + github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06 // indirect + github.com/cometbft/cometbft v0.38.2 // indirect + github.com/cometbft/cometbft-db v0.9.1 // indirect + github.com/cosmos/btcutil v1.0.5 // indirect + github.com/cosmos/cosmos-db v1.0.0 // indirect + github.com/cosmos/go-bip39 v1.0.0 // indirect + github.com/cosmos/gogogateway v1.2.0 // indirect + github.com/cosmos/iavl v1.0.0 // indirect + github.com/cosmos/ics23/go v0.10.0 // indirect + github.com/cosmos/ledger-cosmos-go v0.13.3 // indirect + github.com/danieljoos/wincred v1.1.2 // indirect + github.com/davecgh/go-spew v1.1.1 // indirect + github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.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 + github.com/dustin/go-humanize v1.0.1 // indirect + github.com/dvsekhvalnov/jose2go v1.5.0 // indirect + github.com/emicklei/dot v1.6.0 // indirect + github.com/fatih/color v1.15.0 // indirect + github.com/felixge/httpsnoop v1.0.2 // indirect + github.com/fsnotify/fsnotify v1.6.0 // indirect + github.com/getsentry/sentry-go v0.25.0 // indirect + github.com/go-kit/kit v0.12.0 // indirect + github.com/go-kit/log v0.2.1 // indirect + github.com/go-logfmt/logfmt v0.6.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.0 // indirect + github.com/golang/mock v1.6.0 // indirect + github.com/golang/snappy v0.0.4 // indirect + github.com/google/btree v1.1.2 // indirect + github.com/google/go-cmp v0.6.0 // indirect + github.com/google/orderedcode v0.0.1 // indirect + github.com/gorilla/handlers v1.5.1 // indirect + github.com/gorilla/mux v1.8.0 // indirect + github.com/gorilla/websocket v1.5.0 // indirect + github.com/grpc-ecosystem/go-grpc-middleware v1.4.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.1 // indirect + github.com/hashicorp/go-plugin v1.5.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/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.4 // indirect + github.com/kr/pretty v0.3.1 // indirect + github.com/kr/text v0.2.0 // indirect + github.com/lib/pq v1.10.7 // indirect + github.com/libp2p/go-buffer-pool v0.1.0 // indirect + github.com/linxGnu/grocksdb v1.8.6 // indirect + github.com/magiconair/properties v1.8.7 // indirect + github.com/mattn/go-colorable v0.1.13 // indirect + github.com/mattn/go-isatty v0.0.20 // indirect + github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0 // indirect + github.com/minio/highwayhash v1.0.2 // indirect + github.com/mitchellh/go-testing-interface v1.14.1 // indirect + github.com/mitchellh/mapstructure v1.5.0 // indirect + github.com/mtibben/percent v0.2.1 // indirect + github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a // indirect + github.com/oklog/run v1.1.0 // indirect + github.com/pelletier/go-toml/v2 v2.0.8 // indirect + github.com/petermattis/goid v0.0.0-20230904192822-1876fd5063bc // indirect + github.com/pkg/errors v0.9.1 // indirect + github.com/pmezard/go-difflib v1.0.0 // indirect + github.com/prometheus/client_golang v1.17.0 // indirect + github.com/prometheus/client_model v0.5.0 // indirect + github.com/prometheus/common v0.45.0 // indirect + github.com/prometheus/procfs v0.12.0 // indirect + github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect + github.com/rogpeppe/go-internal v1.11.0 // indirect + github.com/rs/cors v1.8.3 // indirect + github.com/rs/zerolog v1.31.0 // indirect + github.com/sasha-s/go-deadlock v0.3.1 // indirect + github.com/spf13/afero v1.9.5 // indirect + github.com/spf13/cast v1.5.1 // indirect + github.com/spf13/cobra v1.7.0 // indirect + github.com/spf13/jwalterweatherman v1.1.0 // indirect + github.com/spf13/pflag v1.0.5 // indirect + github.com/spf13/viper v1.16.0 // indirect + github.com/subosito/gotenv v1.4.2 // indirect + github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d // indirect + github.com/tendermint/go-amino v0.16.0 // indirect + github.com/tidwall/btree v1.7.0 // indirect + github.com/zondax/hid v0.9.2 // indirect + github.com/zondax/ledger-go v0.14.3 // indirect + go.etcd.io/bbolt v1.3.8 // indirect + golang.org/x/crypto v0.16.0 // indirect + golang.org/x/exp v0.0.0-20231006140011-7918f672742d // indirect + golang.org/x/net v0.19.0 // indirect + golang.org/x/sync v0.4.0 // indirect + golang.org/x/sys v0.15.0 // indirect + golang.org/x/term v0.15.0 // indirect + golang.org/x/text v0.14.0 // indirect + google.golang.org/genproto v0.0.0-20231211222908-989df2bf70f3 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20231212172506-995d672761c0 // indirect + gopkg.in/ini.v1 v1.67.0 // indirect + gopkg.in/yaml.v2 v2.4.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 + sigs.k8s.io/yaml v1.3.0 // indirect +) diff --git a/x/test/go.sum b/x/test/go.sum new file mode 100644 index 0000000..aa31942 --- /dev/null +++ b/x/test/go.sum @@ -0,0 +1,1280 @@ +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.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= +cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU= +cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= +cloud.google.com/go v0.44.3/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= +cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc= +cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0= +cloud.google.com/go v0.50.0/go.mod h1:r9sluTvynVuxRIOHXQEHMFffphuXHOMZMycpNR5e6To= +cloud.google.com/go v0.52.0/go.mod h1:pXajvRH/6o3+F9jDHZWQ5PbGhn+o8w9qiu/CffaVdO4= +cloud.google.com/go v0.53.0/go.mod h1:fp/UouUEsRkN6ryDKNW/Upv/JBKnv6WDthjR6+vze6M= +cloud.google.com/go v0.54.0/go.mod h1:1rq2OEkV3YMf6n/9ZvGWI3GWw0VoqH/1x2nd8Is/bPc= +cloud.google.com/go v0.56.0/go.mod h1:jr7tqZxxKOVYizybht9+26Z/gUq7tiRzu+ACVAMbKVk= +cloud.google.com/go v0.57.0/go.mod h1:oXiQ6Rzq3RAkkY7N6t3TcE6jE+CIBBbA36lwQ1JyzZs= +cloud.google.com/go v0.62.0/go.mod h1:jmCYTdRCQuc1PHIIJ/maLInMho30T/Y0M4hTdTShOYc= +cloud.google.com/go v0.65.0/go.mod h1:O5N8zS7uWy9vkA9vayVHs65eM1ubvY4h553ofrNHObY= +cloud.google.com/go v0.72.0/go.mod h1:M+5Vjvlc2wnp6tjzE102Dw08nGShTscUx2nZMufOKPI= +cloud.google.com/go v0.74.0/go.mod h1:VV1xSbzvo+9QJOxLDaJfTjx5e+MePCpCWwvftOeQmWk= +cloud.google.com/go v0.75.0/go.mod h1:VGuuCn7PG0dwsd5XPVm2Mm3wlh3EL55/79EKB6hlPTY= +cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= +cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE= +cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc= +cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUMb4Nv6dBIg= +cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4gLoIoXIAPc= +cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ= +cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= +cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk= +cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= +cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw= +cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA= +cloud.google.com/go/pubsub v1.3.1/go.mod h1:i+ucay31+CNRpDW4Lu78I4xXG+O1r/MAHgjpRVR+TSU= +cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= +cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos= +cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= +cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs= +cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0= +cloud.google.com/go/storage v1.14.0/go.mod h1:GrKmX003DSIwi9o29oFT7YDnHYwZoctc3fOKtUw0Xmo= +cosmossdk.io/api v0.7.2 h1:BO3i5fvKMKvfaUiMkCznxViuBEfyWA/k6w2eAF6q1C4= +cosmossdk.io/api v0.7.2/go.mod h1:IcxpYS5fMemZGqyYtErK7OqvdM0C8kdW3dq8Q/XIG38= +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.0 h1:vtIafqUi+1ZNAE/oxLOQQ7Oek2n4S48SWLG8h/+wdbo= +cosmossdk.io/core v0.11.0/go.mod h1:LaTtayWBSoacF5xNzoF8tmLhehqlA9z1SWiPuNC6X1w= +cosmossdk.io/depinject v1.0.0-alpha.4 h1:PLNp8ZYAMPTUKyG9IK2hsbciDWqna2z1Wsl98okJopc= +cosmossdk.io/depinject v1.0.0-alpha.4/go.mod h1:HeDk7IkR5ckZ3lMGs/o91AVUc7E596vMaOmslGFM3yU= +cosmossdk.io/errors v1.0.1 h1:bzu+Kcr0kS/1DuPBtUFdWjzLqyUuCiyHjyJB6srBV/0= +cosmossdk.io/errors v1.0.1/go.mod h1:MeelVSZThMi4bEakzhhhE/CKqVv3nOJDA25bIqRDu/U= +cosmossdk.io/log v1.3.0 h1:L0Z0XstClo2kOU4h3V1iDoE5Ji64sg5HLOogzGg67Oo= +cosmossdk.io/log v1.3.0/go.mod h1:HIDyvWLqZe2ovlWabsDN4aPMpY/nUEquAhgfTf2ZzB8= +cosmossdk.io/math v1.2.0 h1:8gudhTkkD3NxOP2YyyJIYYmt6dQ55ZfJkDOaxXpy7Ig= +cosmossdk.io/math v1.2.0/go.mod h1:l2Gnda87F0su8a/7FEKJfFdJrM0JZRXQaohlgJeyQh0= +cosmossdk.io/store v1.0.2 h1:lSg5BTvJBHUDwswNNyeh4K/CbqiHER73VU4nDNb8uk0= +cosmossdk.io/store v1.0.2/go.mod h1:EFtENTqVTuWwitGW1VwaBct+yDagk7oG/axBMPH+FXs= +cosmossdk.io/x/tx v0.13.0 h1:8lzyOh3zONPpZv2uTcUmsv0WTXy6T1/aCVDCqShmpzU= +cosmossdk.io/x/tx v0.13.0/go.mod h1:CpNQtmoqbXa33/DVxWQNx5Dcnbkv2xGUhL7tYQ5wUsY= +dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= +filippo.io/edwards25519 v1.0.0 h1:0wAIcmJUqRdI8IJ/3eGi5/HwXZWPujYXXlkrQogz0Ek= +filippo.io/edwards25519 v1.0.0/go.mod h1:N1IkdkCkiLB6tki+MYJoSx2JTY9NUlxZE7eHn5EwJns= +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/99designs/keyring v1.2.1 h1:tYLp1ULvO7i3fI5vE21ReQuj99QFSs7lGm0xWyJo87o= +github.com/99designs/keyring v1.2.1/go.mod h1:fc+wB5KTk9wQ9sDx0kFXB3A0MaeGHM9AwRStKOQ5vOA= +github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161 h1:L/gRVlceqvL25UVaW/CKtUDjefjrs0SPonmDGUVOYP0= +github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161/go.mod h1:xomTg63KZ2rFqZQzSB4Vz2SUXa1BpHTVz9L5PTmPC4E= +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/Microsoft/go-winio v0.6.0 h1:slsWYD/zyx7lCXoZVlvQrj0hPTM1HI4+v1sIda2yDvg= +github.com/Microsoft/go-winio v0.6.0/go.mod h1:cTAf44im0RAYeL23bpB+fzCyDH2MJiz2BO69KH/soAE= +github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5 h1:TngWCqHvy9oXAN6lEVMRuU21PR1EtLVZJmdB18Gu3Rw= +github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5/go.mod h1:lmUJ/7eu/Q8D7ML55dXQrVaamCz2vxCfdQBasLZfHKk= +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/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/adlio/schema v1.3.3 h1:oBJn8I02PyTB466pZO1UZEn1TV5XLlifBSyMrmHl/1I= +github.com/adlio/schema v1.3.3/go.mod h1:1EsRssiv9/Ce2CMzq5DoL7RiMshhuigQxrR4DMV9fHg= +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/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-v2 v0.18.0/go.mod h1:JWVYvqSMppoMJC0x5wdwiImzgXTI9FuZwxzkQq9wy+g= +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/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.8.0 h1:FD+XqgOZDUxxZ8hzoBFuV9+cGWY9CslN6d5MS5JVb4c= +github.com/bits-and-blooms/bitset v1.8.0/go.mod h1:7hO7Gc7Pp1vODcmWvKMRA9BNmbv6a/7QIWpPxHddWR8= +github.com/btcsuite/btcd/btcec/v2 v2.3.2 h1:5n0X6hX0Zk+6omWcihdYvdAlGf2DfasC0GMf7DClJ3U= +github.com/btcsuite/btcd/btcec/v2 v2.3.2/go.mod h1:zYzJ8etWJQIv1Ogk7OzpWjowwOdXY1W/17j2MW85J04= +github.com/btcsuite/btcd/btcutil v1.1.3 h1:xfbtw8lwpp0G6NwSHb+UE67ryTFHJAiNuipusjXSohQ= +github.com/btcsuite/btcd/btcutil v1.1.3/go.mod h1:UR7dsSJzJUfMmFiiLlIrMq1lS9jh9EdCV7FStZSnpi0= +github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1 h1:q0rUy8C/TYNBQS1+CGKw68tLOFYSNEs0TFnxxnS9+4U= +github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1/go.mod h1:7SFka0XMvUgj3hfZtydOrQY2mwhPclbT2snogU7SQQc= +github.com/bufbuild/protocompile v0.6.0 h1:Uu7WiSQ6Yj9DbkdnOe7U4mNKp58y9WDMKDn28/ZlunY= +github.com/bufbuild/protocompile v0.6.0/go.mod h1:YNP35qEYoYGme7QMtz5SBCoN4kL4g12jTtjuzRNdjpE= +github.com/casbin/casbin/v2 v2.1.2/go.mod h1:YcPU1XXisHhLzuxH9coDNf2FbKpjGlbCg3n9yuLkIJQ= +github.com/cenkalti/backoff v2.2.1+incompatible h1:tNowT99t7UNflLxfYYSlKYsBpXdEet03Pg2g16Swow4= +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/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= +github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko= +github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= +github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= +github.com/cespare/xxhash/v2 v2.2.0 h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44= +github.com/cespare/xxhash/v2 v2.2.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= +github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= +github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= +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/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= +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-20200629203442-efcf912fb354/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= +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.1 h1:xSEW75zKaKCWzR3OfxXUxgrk/NtT4G1MiOv5lWZazG8= +github.com/cockroachdb/errors v1.11.1/go.mod h1:8MUxA3Gi6b25tYlFEBGLf+D8aISL+M4MIpiWMSNRfxw= +github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b h1:r6VH0faHjZeQy818SGhaone5OnYfxFR/+AzdY3sf5aE= +github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b/go.mod h1:Vz9DsVWQQhf3vs21MhPMZpMGSht7O/2vFW2xusFUVOs= +github.com/cockroachdb/pebble v0.0.0-20231101195458-481da04154d6 h1:g+Y6IAf28JinY3zNdXwpw71SBGhLEb72kGQgiR5XKZM= +github.com/cockroachdb/pebble v0.0.0-20231101195458-481da04154d6/go.mod h1:acMRUGd/BK8AUmQNK3spUCCGzFLZU2bSST3NMXSq2Kc= +github.com/cockroachdb/redact v1.1.5 h1:u1PMllDkdFfPWaNGMyLD1+so+aq3uUItthCFqzwPJ30= +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.2 h1:io0JCh5EPxINKN5ZMI5hCdpW3QVZRy+o8qWe3mlJa/8= +github.com/cometbft/cometbft v0.38.2/go.mod h1:PIi48BpzwlHqtV3mzwPyQgOyOnU94BNBimLS2ebBHOg= +github.com/cometbft/cometbft-db v0.9.1 h1:MIhVX5ja5bXNHF8EYrThkG9F7r9kSfv8BX4LWaxWJ4M= +github.com/cometbft/cometbft-db v0.9.1/go.mod h1:iliyWaoV0mRwBJoizElCwwRA9Tf7jZJOURcRZF9m60U= +github.com/containerd/continuity v0.3.0 h1:nisirsYROK15TAMVukJOUyGJjz4BNQJBVsNvAXZJ/eg= +github.com/containerd/continuity v0.3.0/go.mod h1:wJEAIwKOm/pBZuBd0JmeTvnLquTB1Ag8espWhkykbPM= +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.0.0 h1:EVcQZ+qYag7W6uorBKFPvX6gRjw6Uq2hIh4hCWjuQ0E= +github.com/cosmos/cosmos-db v1.0.0/go.mod h1:iBvi1TtqaedwLdcrZVYRSSCb6eSy61NLj4UNmdIgs0U= +github.com/cosmos/cosmos-proto v1.0.0-beta.3 h1:VitvZ1lPORTVxkmF2fAp3IiA61xVwArQYKXTdEcpW6o= +github.com/cosmos/cosmos-proto v1.0.0-beta.3/go.mod h1:t8IASdLaAq+bbHbjq4p960BvcTqtwuAxid3b/2rOD6I= +github.com/cosmos/cosmos-sdk v0.50.3 h1:zP0AXm54ws2t2qVWvcQhEYVafhOAREU2QL0gnbwjvXw= +github.com/cosmos/cosmos-sdk v0.50.3/go.mod h1:tlrkY1sntOt1q0OX/rqF0zRJtmXNoffAS6VFTcky+w8= +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.4.11 h1:LZcMHrx4FjUgrqQSWeaGC1v/TeuVFqSLa43CC6aWR2g= +github.com/cosmos/gogoproto v1.4.11/go.mod h1:/g39Mh8m17X8Q/GDEs5zYTSNaNnInBSohtaxzQnYq1Y= +github.com/cosmos/iavl v1.0.0 h1:bw6t0Mv/mVCJvlMTOPHWLs5uUE3BRBfVWCRelOzl+so= +github.com/cosmos/iavl v1.0.0/go.mod h1:CmTGqMnRnucjxbjduneZXT+0vPgNElYvdefjX2q9tYc= +github.com/cosmos/ics23/go v0.10.0 h1:iXqLLgp2Lp+EdpIuwXTYIQU+AiHj9mOC2X9ab++bZDM= +github.com/cosmos/ics23/go v0.10.0/go.mod h1:ZfJSmng/TBNTBkFemHHHj5YY7VAU/MBU980F4VU1NG0= +github.com/cosmos/ledger-cosmos-go v0.13.3 h1:7ehuBGuyIytsXbd4MP43mLeoN2LTOEnk5nvue4rK+yM= +github.com/cosmos/ledger-cosmos-go v0.13.3/go.mod h1:HENcEP+VtahZFw38HZ3+LS3Iv5XV6svsnkk9vdJtLr8= +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.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= +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= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/decred/dcrd/crypto/blake256 v1.0.1 h1:7PltbUIQB7u/FfZ39+DGa/ShuMyJ5ilcvdfma9wOH6Y= +github.com/decred/dcrd/crypto/blake256 v1.0.1/go.mod h1:2OfgNZ5wDpcsFmHmCK5gZTPcCXqlm2ArzUIkw9czNJo= +github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 h1:8UrgZ3GkP4i/CLijOJx79Yu+etlyjdBU4sfcs2WYQMs= +github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0/go.mod h1:v57UDF4pDQJcEfFUCRop3lJL149eHGSe9Jvczhzjo/0= +github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f h1:U5y3Y5UE0w7amNe7Z5G/twsBW0KEalRQXZzf8ufSh9I= +github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f/go.mod h1:xH/i4TFMt8koVQZ6WFms69WAsDWr2XsYL3Hkl7jkoLE= +github.com/dgraph-io/badger/v2 v2.2007.4 h1:TRWBQg8UrlUhaFdco01nO2uXwzKS7zd+HVdwV/GHc4o= +github.com/dgraph-io/badger/v2 v2.2007.4/go.mod h1:vSw/ax2qojzbN6eXHIx6KPKtCSHJN/Uz0X0VPruTIhk= +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/docker/go-connections v0.4.0 h1:El9xVISelRB7BuFusrZozjnkIM5YnzCViNKohAFqRJQ= +github.com/docker/go-connections v0.4.0/go.mod h1:Gbd7IOopHjR8Iph03tsViu4nIes5XhDvyHbTtUxmeec= +github.com/docker/go-units v0.5.0 h1:69rxXcBk27SvSaaxTtLh/8llcHD8vYHT7WSdRZ/jvr4= +github.com/docker/go-units v0.5.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= +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.5.0 h1:3j8ya4Z4kMCwT5nXIKFSV84YS+HdqSSO0VsTQxaLAeM= +github.com/dvsekhvalnov/jose2go v1.5.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.0 h1:vUzuoVE8ipzS7QkES4UfxdpCwdU2U97m2Pb2tQCoYRY= +github.com/emicklei/dot v1.6.0/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.7/go.mod h1:cwu0lG7PUMfa9snN8LXBig5ynNVH9qI8YYLbd1fK2po= +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/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.15.0 h1:kOqh6YHBtK8aywxGerMG2Eq3H6Qgoqeo13Bk2Mv/nBs= +github.com/fatih/color v1.15.0/go.mod h1:0h5ZqXfHYED7Bhv2ZJamyIOUej9KtShiJESRwBDUSsw= +github.com/felixge/httpsnoop v1.0.1/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= +github.com/felixge/httpsnoop v1.0.2 h1:+nS9g82KMXccJ/wp0zyRW9ZBHFETmMGtkk+2CTTrW4o= +github.com/felixge/httpsnoop v1.0.2/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.4 h1:g2rn0vABPOOXmZUj+vbmUp0lPoXEMuhTpIluN0XL9UY= +github.com/frankban/quicktest v1.14.4/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0= +github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= +github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= +github.com/fsnotify/fsnotify v1.5.4/go.mod h1:OVB6XrOHzAwXMpEM7uPOzcehqUV2UqJxmVXmkdnm1bU= +github.com/fsnotify/fsnotify v1.6.0 h1:n+5WquG0fcWoWp6xPWfHdbskMCQaFnG6PfBrh1Ky4HY= +github.com/fsnotify/fsnotify v1.6.0/go.mod h1:sl3t1tCWJFWoRz9R8WJCbQihKKwmorjAbSClcnxKAGw= +github.com/getsentry/sentry-go v0.25.0 h1:q6Eo+hS+yoJlTO3uu/azhQadsD8V+jQn2D8VvX1eOyI= +github.com/getsentry/sentry-go v0.25.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 v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= +github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= +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-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/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0/go.mod h1:fyg7847qk6SyHyPtNmDHnmrv/HOrqktSC+C9fM+CJOE= +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.9.11 h1:/pAaQDLHEoCq/5FFmSKBswWmK6H0e8g4159Kc/X/nqk= +github.com/goccy/go-json v0.9.11/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= +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/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/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= +github.com/golang/glog v1.2.0 h1:uCdmnmatrKCgMBlM4rMuJZWOkPDqdbZPnrMXDY4gI68= +github.com/golang/glog v1.2.0/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-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= +github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= +github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y= +github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= +github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= +github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= +github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4= +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= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.0/go.mod h1:Qd/q+1AKNOZr9uGQzbzCmRO6sUih6GTPZv6a1/R87v0= +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.4/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.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= +github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= +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 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM= +github.com/golang/snappy v0.0.4/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.2 h1:xf4v41cLI2Z6FxbKm+8Bu+m8ifhj15JuZ9sa0jZCMUU= +github.com/google/btree v1.1.2/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.4.1/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.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.4/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.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= +github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf/go.mod h1:HP5RmnzzSNb993RKQDq4+1A4ia9nllfqcQFTQJedwGI= +github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= +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/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= +github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= +github.com/google/martian/v3 v3.1.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= +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/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= +github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= +github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200212024743-f11f1df84d12/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200229191704-1ebb73c60ed3/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200430221834-fc25d7d30c6d/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20201023163331-3e6fc7fc9c4c/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20201203190320-1bf35d6f28c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20201218002935-b9804c9f04c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20210407192527-94a9f03dee38/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= +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/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= +github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= +github.com/googleapis/google-cloud-go-testing v0.0.0-20200911160855-bcd43fbb19e8/go.mod h1:dvDLG8qkwmyD9a/MJJN3XJcT3xFxOKAvTZGvuZmac9g= +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.1 h1:9lRY6j8DEeeBT10CvO9hGW0gmky0BprnvDI5vfhUHH4= +github.com/gorilla/handlers v1.5.1/go.mod h1:t8XrUpc4KVXb7HGyJ4/cEnwQiaxrX/hz1Zv/4g96P1Q= +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.0 h1:i40aqfkR1h2SlN9hojwV5ZA91wcXFOvkdNIeFDP5koI= +github.com/gorilla/mux v1.8.0/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So= +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.0 h1:PPwGk2jz7EePpoHN/+ClbZu8SPxiqlu12wZP/3sWmnc= +github.com/gorilla/websocket v1.5.0/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-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-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= +github.com/hashicorp/go-immutable-radix v1.3.1 h1:DKHmCUm2hRBK510BaiZlwvpD40f8bJFeZnpfm2KLowc= +github.com/hashicorp/go-immutable-radix v1.3.1/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= +github.com/hashicorp/go-metrics v0.5.1 h1:rfPwUqFU6uZXNvGl4hzjY8LEBsqFVU4si1H9/Hqck/U= +github.com/hashicorp/go-metrics v0.5.1/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-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 h1:fv1ep09latC32wFoVwnqcnKJGnMSdBanPczbHAYm1BE= +github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= +github.com/hashicorp/go-version v1.2.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/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= +github.com/hdevalence/ed25519consensus v0.1.0/go.mod h1:w3BHWjwJbFU29IRHL1Iqkw3sus+7FctEyM4RqDxYNzo= +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/iancoleman/strcase v0.3.0 h1:nTXanmYxhfFAMjZL34Ov6gkzEsSJZ5DbhxWjvSASxEI= +github.com/iancoleman/strcase v0.3.0/go.mod h1:iwCmte+B7n89clKwxIoIXy/HfoL7AsD47ZCWhYzw7ho= +github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= +github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= +github.com/improbable-eng/grpc-web v0.15.0 h1:BN+7z6uNXZ1tQGcNAuaU1YjsLTApzkjt2tzCixLaUPQ= +github.com/improbable-eng/grpc-web v0.15.0/go.mod h1:1sy9HKV4Jt9aEs9JSnkWlRJPuPtwNr0l57L4f878wP8= +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/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/jmhodges/levigo v1.0.0 h1:q5EC36kV79HWeTBWsod3mG11EgStG3qArTKcvlksN1U= +github.com/jmhodges/levigo v1.0.0/go.mod h1:Q6Qx+uH3RAqyK4rFQroq9RL7mdkABMcfhEI+nNuzMJQ= +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/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/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= +github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= +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/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.4 h1:Ej5ixsIri7BrIjBkRZLTo6ghwrEtHFk7ijlczPW4fZ4= +github.com/klauspost/compress v1.17.4/go.mod h1:/dCuZOvVtNoHsyb+cuJD3itjs3NbnF6KH9zAO4BDxPM= +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/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg= +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= +github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= +github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= +github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= +github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= +github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= +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/libp2p/go-buffer-pool v0.1.0 h1:oK4mSFcQz7cTQIfqbe4MIj9gLW+mnanjyFtc6cdF0Y8= +github.com/libp2p/go-buffer-pool v0.1.0/go.mod h1:N+vh8gMqimBzdKkSMVuydVDq+UV5QTWy5HSiZacSbPg= +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.6 h1:O7I6SIGPrypf3f/gmrrLUBQDKfO8uOoYdWf4gLS06tc= +github.com/linxGnu/grocksdb v1.8.6/go.mod h1:xZCIb5Muw+nhbDK4Y5UJuOrin5MceOuiXkVUR7vp4WY= +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-runewidth v0.0.2/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= +github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= +github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0 h1:jWpvCLoY8Z/e3VKvlsiIGKtc+UG6U5vzxaoagmhXfyg= +github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0/go.mod h1:QUyp042oQthUoa9bqDv0ER0wrtXnBruoNd7aNjkbP+k= +github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= +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/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/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= +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/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/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/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= +github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= +github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk= +github.com/onsi/ginkgo v1.16.4/go.mod h1:dX+/inL/fNMqNlz0e9LfyB9TswhZpCVdJM/Z6Vvnwo0= +github.com/onsi/ginkgo v1.16.5 h1:8xi0RTUf59SOSfEtZMvwTvXYMzG4gV23XVHOZiXNtnE= +github.com/onsi/ginkgo v1.16.5/go.mod h1:+E8gABHa3K6zRBolWtd+ROzc/U5bkGt0FwiG042wbpU= +github.com/onsi/ginkgo/v2 v2.1.3/go.mod h1:vw5CSIxN1JObi/U8gcbwft7ZxR2dgaR70JSE3/PpL4c= +github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= +github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY= +github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo= +github.com/onsi/gomega v1.17.0/go.mod h1:HnhC7FXeEQY45zxNK3PPoIUhzk/80Xly9PcubAlGdZY= +github.com/onsi/gomega v1.19.0/go.mod h1:LY+I3pBVzYsTBU1AnDwOSxaYi9WoWiqgwooUqq9yPro= +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/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U= +github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM= +github.com/opencontainers/image-spec v1.1.0-rc2 h1:2zx/Stx4Wc5pIPDvIxHXvXtQFW/7XWJGmnM7r3wg034= +github.com/opencontainers/image-spec v1.1.0-rc2/go.mod h1:3OVijpioIKYWTqjiG0zfF6wvoJ4fAXGbjdZuI2NgsRQ= +github.com/opencontainers/runc v1.1.3 h1:vIXrkId+0/J2Ymu2m7VjGvbSlAId9XNRPhn2p4b+d8w= +github.com/opencontainers/runc v1.1.3/go.mod h1:1J5XiS+vdZ3wCyZybsuxXZWGrgSr8fFJHLXuG2PsnNg= +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/ory/dockertest v3.3.5+incompatible h1:iLLK6SQwIhcbrG783Dghaaa3WPzGc+4Emza6EbVUUGA= +github.com/ory/dockertest v3.3.5+incompatible/go.mod h1:1vX4m9wsvi00u5bseYwXaSnhNrne+V0E6LAcBILJdPs= +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.0.8 h1:0ctb6s9mE31h0/lhu+J6OPmVeDxJn+kYnJc2jZR9tGQ= +github.com/pelletier/go-toml/v2 v2.0.8/go.mod h1:vuYfssBdrU2XDZ9bYydBu6t+6a6PYNcZljzZR9VXg+4= +github.com/performancecopilot/speed v3.0.0+incompatible/go.mod h1:/CLtqpZ5gBg1M9iaPbIdPPGyKcA8hKdoy6hAWba7Yac= +github.com/petermattis/goid v0.0.0-20180202154549-b0b1615b78e5/go.mod h1:jvVRKCrJTQWu0XVbaOlby/2lO20uSCHEMzzplHXte1o= +github.com/petermattis/goid v0.0.0-20230904192822-1876fd5063bc h1:8bQZVK1X6BJR/6nYUPxQEP+ReTsceJTKizeuwjWOPUA= +github.com/petermattis/goid v0.0.0-20230904192822-1876fd5063bc/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= +github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +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/pkg/sftp v1.13.1/go.mod h1:3HaPG6Dq1ILlpPZRO0HVMrsydcdLt6HRDccSgb87qRg= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/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.17.0 h1:rl2sfwZMtSthVU752MqfjQozy7blglC+1SOtjMAMh+Q= +github.com/prometheus/client_golang v1.17.0/go.mod h1:VeL+gMmOAxkS2IqfCq0ZmHSL+LjWfWDUmp1mBz9JgUY= +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.5.0 h1:VQw1hfvPvk3Uv6Qf29VrPF32JB6rtbgI6cYPYQjL0Qw= +github.com/prometheus/client_model v0.5.0/go.mod h1:dTiFglRmd66nLR9Pv9f0mZi7B7fk5Pm3gvsjB5tr+kI= +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.45.0 h1:2BGz0eBc2hdMDLnO/8n0jeB3oPrt2D08CekT0lneoxM= +github.com/prometheus/common v0.45.0/go.mod h1:YJmSTw9BoKxJplESWWxlbyttQR4uaEcGyv9MZjVOJsY= +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.12.0 h1:jluTpSng7V9hY0O2R9DzzJHYb2xULk9VTR1V1R/k6Bo= +github.com/prometheus/procfs v0.12.0/go.mod h1:pcuDEFsWDnvcgNzo4EEweacyhjeA9Zk3cnaOZAZEfOo= +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/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.11.0 h1:cWPaGQEPrBb5/AsnsZesgZZ9yb1OQ+GOISoDNXVBh4M= +github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUzkipdSkR5nkCZA= +github.com/rs/cors v1.7.0/go.mod h1:gFx+x8UowdsKA9AchylcLynDq+nNFfI8FkUZdN/jGCU= +github.com/rs/cors v1.8.3 h1:O+qNyWn7Z+F9M0ILBHgMVPuB1xTOucVd5gtaYyXBpRo= +github.com/rs/cors v1.8.3/go.mod h1:XyqrcTp5zjWr1wsJ8PIRZssZ8b/WMcMf71DJnit4EMU= +github.com/rs/xid v1.5.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg= +github.com/rs/zerolog v1.31.0 h1:FcTR3NnLWW+NnTwwhFWiJSZr4ECLpqCm6QsEnyvbV4A= +github.com/rs/zerolog v1.31.0/go.mod h1:/7mN4D5sKwJLZQ2b/znpjC3/GQWY/xaDXUM0kKWRHss= +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/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= +github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= +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/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/sirupsen/logrus v1.9.0 h1:trlNQbNUG3OdDrDil03MCb1H2o9nJ1x4/5LYw7byDE0= +github.com/sirupsen/logrus v1.9.0/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= +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/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= +github.com/spaolacci/murmur3 v1.1.0 h1:7c1g84S4BPRrfL5Xrdp6fOJ206sU9y293DDHaoy0bLI= +github.com/spaolacci/murmur3 v1.1.0/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= +github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ= +github.com/spf13/afero v1.9.5 h1:stMpOSZFs//0Lv29HduCmli3GUfpFoF3Y1Q/aXj/wVM= +github.com/spf13/afero v1.9.5/go.mod h1:UBogFpq8E9Hx+xc5CNTTEpTnuHVmXDwZcZcE1eb/UhQ= +github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= +github.com/spf13/cast v1.5.1 h1:R+kOtfhWQE6TVQzY+4D7wJLBgkdVasCEFxSUBYBYIlA= +github.com/spf13/cast v1.5.1/go.mod h1:b9PdjNptOpzXr7Rq1q9gJML/2cdGQAo69NKzQ10KN48= +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.7.0 h1:hyqWnYt1ZQShIddO5kBpj3vu05/++x6tJ6dg8EC572I= +github.com/spf13/cobra v1.7.0/go.mod h1:uLxZILRyS/50WlhOIKD7W6V5bgeIt+4sICxh6uRMrb0= +github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo= +github.com/spf13/jwalterweatherman v1.1.0 h1:ue6voC5bR5F8YxI5S67j9i582FU4Qvo2bmqnqMYADFk= +github.com/spf13/jwalterweatherman v1.1.0/go.mod h1:aNWZUN0dPAAO/Ljvb5BEdw96iTZ0EXowPYD95IqWIGo= +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.16.0 h1:rGGH0XDZhdUOryiDWjmIvUSWpbNqisK8Wk0Vyefw8hc= +github.com/spf13/viper v1.16.0/go.mod h1:yg78JgCJcbrQOvV9YLXgkLaZqUidkY9K+Dd1FofRzQg= +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= +github.com/stretchr/objx v0.5.0 h1:1zr/of2m5FGMsad5YfcqgdqdWrIhu+EBEJRhR1U7z/c= +github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= +github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= +github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= +github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= +github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= +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.3/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= +github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= +github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= +github.com/subosito/gotenv v1.4.2 h1:X1TuBLAMDFbaTAChgCBLu3DU3UPyELpnF2jjJ2cz/S8= +github.com/subosito/gotenv v1.4.2/go.mod h1:ayKnFf/c6rvx/2iiLrJUk1e6plDbT3edrFNGqEflhK0= +github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d h1:vfofYNRScrDdvS342BElfbETmL1Aiz3i2t0zfRj16Hs= +github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d/go.mod h1:RRCYJbIwD5jmqPI9XoAFR0OcDxqUctll6zUj/+B4S48= +github.com/tendermint/go-amino v0.16.0 h1:GyhmgQKvqF82e2oZeuMSp9JTN0N09emoSZlb2lyGa2E= +github.com/tendermint/go-amino v0.16.0/go.mod h1:TQU0M1i/ImAo+tYpZi73AU3V/dKeCoMC9Sphe2ZwGME= +github.com/tidwall/btree v1.7.0 h1:L1fkJH/AuEh5zBnnBbmTwQ5Lt+bRJ5A8EWecslvo9iI= +github.com/tidwall/btree v1.7.0/go.mod h1:twD9XRA5jj9VUQGELzDO4HPQTNJsoWWfYEL+EUQ2cKY= +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/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.7 h1:YPXUKf7fYbp/y8xloBqZOw2qaVggbfwMlI8WM3wZUJ0= +github.com/ugorji/go/codec v1.2.7/go.mod h1:WGN1fab3R1fzQlVQTkfxVtIBhWDRqOviHU95kRgeqEY= +github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA= +github.com/urfave/cli v1.22.1/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= +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/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= +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.8 h1:xs88BrvEv273UsB79e0hcVrlUWmS0a8upikMFhSyAtA= +go.etcd.io/bbolt v1.3.8/go.mod h1:N9Mkw9X8x5fupy0IKsmuqVtoGDyxsaDlbk4Rd05IAQw= +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.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= +go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= +go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= +go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= +go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= +go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk= +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/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/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= +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-20190605123033-f99c8df09eb5/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-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20200728195943-123391ffb6de/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= +golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= +golang.org/x/crypto v0.16.0 h1:mMMrFzRSCF0GvB7Ne27XVtVAaXLrPmgPC7/v0tkwHaY= +golang.org/x/crypto v0.16.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4= +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-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= +golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek= +golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY= +golang.org/x/exp v0.0.0-20191129062945-2f5052295587/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= +golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= +golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= +golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM= +golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU= +golang.org/x/exp v0.0.0-20200331195152-e8c3332aa8e5/go.mod h1:4M0jN8W1tt0AVLNr8HDosyJCDCDuyL9N9+3m7wDWgKw= +golang.org/x/exp v0.0.0-20231006140011-7918f672742d h1:jtJma62tbqLibJ5sFQz8bKtEM8rJBtfilJ2qTU199MI= +golang.org/x/exp v0.0.0-20231006140011-7918f672742d/go.mod h1:ldy0pHrwJyGW56pPQzzkH36rKxoZW1tw7ZJpeKx+hdo= +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-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs= +golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= +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.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= +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/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.13.0 h1:I/DsJXRlw/8l/0c24sM9yb0T4z9liZTduXvdAWYiysY= +golang.org/x/mod v0.13.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= +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-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/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-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/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-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200222125558-5a598a2470a0/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-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200421231249-e086a090c8fd/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200506145744-7e3656a0809f/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200513185701-a91f0712d120/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-20200520182314-0ba52f642ac2/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-20200707034311-ab3426394381/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-20201031054903-ff519b6c9102/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/net v0.0.0-20201209123823-ac852fbbde11/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20201224014010-6772e930b67b/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= +golang.org/x/net v0.0.0-20210428140749-89ef3d95e781/go.mod h1:OJAsFXCWl8Ukc7SiCT/9KSuxbyM7479/AVlXFRxuMCk= +golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= +golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.19.0 h1:zTwKpTd2XuCqf8huc7Fo2iSy+4RHPd10s4KzeTnVr1c= +golang.org/x/net v0.19.0/go.mod h1:CfAk/cbD4CthTvqiEl8NpboMuiuOYsAr/7NOjZJtv1U= +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-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20200902213428-5d25da1a8d43/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20201109201403-9fd604954f58/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20201208152858-08078c50e5b5/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210218202405-ba52d332ba99/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.4.0 h1:zxkM55ReGkDlKSM+Fu41A+zmbZuaPVbGMzvvdUPznYQ= +golang.org/x/sync v0.4.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y= +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-20190130150945-aca44879d564/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-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/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-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-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191220142924-d4481acd189f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200106162015-b016eb3dc98e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/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-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200331124033-c3d80250170d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200420163511-1957bb5e6d1f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200501052902-10377860bb8e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200511232937-7e40ca221e25/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200523222454-059865788121/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-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200905004654-be1d3432aa8f/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-20201201145000-ef89a241ccb3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210104204734-6f8348627aad/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210112080510-489259a85091/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210225134936-a50acf3fe073/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-20210423185535-09eb48e85fd7/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-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-20220412211240-33da011f77ad/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-20220520151302-bc2c85ada10a/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-20220908164124-27713097b956/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20221010170243-090e33056c14/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.15.0 h1:h48lPFYpsTvQJZF4EKyI4aLHaev3CxivZmv7yZig9pc= +golang.org/x/sys v0.15.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.15.0 h1:y/Oo/a/q3IXu26lQgl04j/gjuBDOBlx7X6Om1j2CPW4= +golang.org/x/term v0.15.0/go.mod h1:BDl952bC7+uMoWR75FIrCDx79TPU9oHkTZ9yRbYOrX0= +golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/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.4/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.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= +golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= +golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +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-20190312151545-0bb0c0a6e846/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-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +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-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/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-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200103221440-774c71fcf114/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200117161641-43d50277825c/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200122220014-bf1340f18c4a/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200204074204-1cc6d1ef6c74/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-20200212150539-ea181f53ac56/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200224181240-023911ca70b2/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200227222343-706bc42d1f0d/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200304193943-95d2e580d8eb/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= +golang.org/x/tools v0.0.0-20200312045724-11d5b4c81c7d/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= +golang.org/x/tools v0.0.0-20200331025713-a30bf2db82d4/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= +golang.org/x/tools v0.0.0-20200501065659-ab2804fb9c9d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200904185747-39188db58858/go.mod h1:Cj7w3i3Rnn0Xh82ur9kSqwfTHTeVxaDqrfMjpcNT6bE= +golang.org/x/tools v0.0.0-20201110124207-079ba7bd75cd/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20201201161351-ac6f37ff4c2a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20201208233053-a543418bbed2/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20201224043029-2b0845dc783e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20210105154028-b0ab187a4818/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20210108195828-e2f9c7f1fc8e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0= +golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= +golang.org/x/tools v0.14.0 h1:jvNa2pY0M4r62jkRQ6RwEZZyPcymeL9XZMLBbV7U2nc= +golang.org/x/tools v0.14.0/go.mod h1:uYBEerGOWcJyEORxN+Ek8+TT266gXkNlHdJBwexUsBg= +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= +golang.org/x/xerrors v0.0.0-20220517211312-f3a8303e98df/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= +google.golang.org/api v0.3.1/go.mod h1:6wY9I6uQWHQ8EM57III9mq/AjF+i8G65rmVagqKMtkk= +google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= +google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= +google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= +google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= +google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= +google.golang.org/api v0.14.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= +google.golang.org/api v0.15.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= +google.golang.org/api v0.17.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.18.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.19.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.20.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.22.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.24.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= +google.golang.org/api v0.28.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= +google.golang.org/api v0.29.0/go.mod h1:Lcubydp8VUV7KeIHD9z2Bys/sm/vGKnG1UHuDBSrHWM= +google.golang.org/api v0.30.0/go.mod h1:QGmEvQ87FHZNiUVJkT14jQNYJ4ZJjdRF23ZXz5138Fc= +google.golang.org/api v0.35.0/go.mod h1:/XrVsuzM0rZmrsbjJutiuftIzeuTQcEeaYcSk/mQ1dg= +google.golang.org/api v0.36.0/go.mod h1:+z5ficQTmoYpPn8LCUNVpK5I7hwkpjbcgqA7I34qYtE= +google.golang.org/api v0.40.0/go.mod h1:fYKFpnQN0DsDSKRVRcQSDQNtqWPfM9i+zNPxepjRCQ8= +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/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= +google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= +google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= +google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= +google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= +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-20190418145605-e7d98fc518a7/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-20190502173448-54afdca5d873/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-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= +google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= +google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= +google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20191115194625-c23dd37a84c9/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20191216164720-4f79533eabd1/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20200115191322-ca5a22157cba/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20200122232147-0452cf42e150/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20200204135345-fa8e72b47b90/go.mod h1:GmwEX6Z4W5gMy59cAlVYjN9JhxgbQH6Gn+gFDQe2lzA= +google.golang.org/genproto v0.0.0-20200212174721-66ed5ce911ce/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200228133532-8c2c7df3a383/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200305110556-506484158171/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200312145019-da6875a35672/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200331122359-1ee6d9798940/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200423170343-7949de9c1215/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200430143042-b979b6f78d84/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200511104702-f5ebc3bea380/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200515170657-fc4c6c6a6587/go.mod h1:YsZOwe1myG/8QRHRsmBRE1LrgQY60beZKjly0O1fX9U= +google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= +google.golang.org/genproto v0.0.0-20200618031413-b414f8b61790/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA= +google.golang.org/genproto v0.0.0-20200729003335-053ba62fc06f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20200904004341-0bd0a958aa1d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201109203340-2640f1f9cdfb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201201144952-b05cb90ed32e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201210142538-e3217bee35cc/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201214200347-8c77b98c765d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210108203827-ffc7fda8c3d7/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210126160654-44e461bb6506/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210226172003-ab064af71705/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-20231211222908-989df2bf70f3 h1:1hfbdAfFbkmpg41000wDVqr7jUpK/Yo+LPnIxxGzmkg= +google.golang.org/genproto v0.0.0-20231211222908-989df2bf70f3/go.mod h1:5RBcpGRxr25RbDzY5w+dmaqpSEvl8Gwl1x2CICf60ic= +google.golang.org/genproto/googleapis/api v0.0.0-20231120223509-83a465c0220f h1:2yNACc1O40tTnrsbk9Cv6oxiW8pxI/pXj0wRtdlYmgY= +google.golang.org/genproto/googleapis/api v0.0.0-20231120223509-83a465c0220f/go.mod h1:Uy9bTZJqmfrw2rIBxgGLnamc78euZULUBrLZ9XTITKI= +google.golang.org/genproto/googleapis/rpc v0.0.0-20231212172506-995d672761c0 h1:/jFB8jK5R3Sq3i/lmeZO0cATSzFfZaJq1J2Euan3XKU= +google.golang.org/genproto/googleapis/rpc v0.0.0-20231212172506-995d672761c0/go.mod h1:FUoWkonphQm3RhTS+kOEhF8h0iDpm4tdXolVCeZ9KKA= +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.21.1/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.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60= +google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk= +google.golang.org/grpc v1.30.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/grpc v1.31.1/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +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.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc= +google.golang.org/grpc v1.34.0/go.mod h1:WotjhfgOW/POjDeRt8vscBtXq+2VjORFy659qA51WJ8= +google.golang.org/grpc v1.35.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= +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.60.1 h1:26+wFr+cNqSGFcOXcabYC0lUVJVRa2Sb2ortSK7VrEU= +google.golang.org/grpc v1.60.1/go.mod h1:OlCHIeLYqSSsLi6i49B5QGdzaMZK9+M7LXN2FKz4eGM= +google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= +google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= +google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= +google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= +google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= +google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.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.32.0 h1:pPC6BG5ex8PDFnkbrGU3EixyhKcQ2aDuBS36lqK/C7I= +google.golang.org/protobuf v1.32.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= +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/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-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/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= +honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= +honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= +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 v1.1.0 h1:CMa0sjHSru3puNx+J0MIAuiiEV4N0qj8/cMWGBBCsjw= +pgregory.net/rapid v1.1.0/go.mod h1:PY5XlDGj0+V1FCq0o192FdRhpKHGTRIWBgqjDBTrq04= +rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= +rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= +rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= +sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o= +sigs.k8s.io/yaml v1.3.0 h1:a2VclLzOGrwOHDiV8EfBGhvjHvP46CtW5j6POvhYGGo= +sigs.k8s.io/yaml v1.3.0/go.mod h1:GeOyir5tyXNByN85N/dRIT9es5UQNerPYEKK56eTBm8= +sourcegraph.com/sourcegraph/appdash v0.0.0-20190731080439-ebfcffb1b5c0/go.mod h1:hI742Nqp5OhwiqlzhgfbWU4mW4yO10fP+LoT9WOswdU= diff --git a/x/test/keeper/exported.go b/x/test/keeper/exported.go new file mode 100644 index 0000000..1d6b9e4 --- /dev/null +++ b/x/test/keeper/exported.go @@ -0,0 +1,37 @@ +package keeper + +import ( + "cosmossdk.io/core/store" + + "github.com/cosmos/cosmos-sdk/codec" + + testv1alpha1 "github.com/0tech/andromeda/x/test/andromeda/test/v1alpha1" + "github.com/0tech/andromeda/x/test/keeper/internal" +) + +type Keeper struct { + impl internal.Keeper +} + +func NewKeeper( + cdc codec.Codec, + storeService store.KVStoreService, +) (*Keeper, error) { + impl, err := internal.NewKeeper( + cdc, + storeService, + ) + if err != nil { + return nil, err + } + + return &Keeper{impl: *impl}, nil +} + +func NewMsgServer(keeper Keeper) testv1alpha1.MsgServer { + return internal.NewMsgServer(keeper.impl) +} + +func NewQueryServer(keeper Keeper) testv1alpha1.QueryServer { + return internal.NewQueryServer(keeper.impl) +} diff --git a/x/test/keeper/internal/asset.go b/x/test/keeper/internal/asset.go new file mode 100644 index 0000000..30764f2 --- /dev/null +++ b/x/test/keeper/internal/asset.go @@ -0,0 +1,95 @@ +package internal + +import ( + "context" + + "cosmossdk.io/collections" + errorsmod "cosmossdk.io/errors" + + sdk "github.com/cosmos/cosmos-sdk/types" + + testv1alpha1 "github.com/0tech/andromeda/x/test/andromeda/test/v1alpha1" +) + +func (k Keeper) Create(ctx context.Context, creator sdk.AccAddress, asset string) error { + if err := k.PushAsset(ctx, creator, asset); err != nil { + return err + } + + return nil +} + +func (k Keeper) Send(ctx context.Context, sender, recipient sdk.AccAddress, asset string) error { + if err := k.PopAsset(ctx, sender, asset); err != nil { + return err + } + + if err := k.PushAsset(ctx, recipient, asset); err != nil { + return err + } + + return nil +} + +func (k Keeper) PushAsset(ctx context.Context, address sdk.AccAddress, asset string) error { + if err := k.HasAsset(ctx, address, asset); err == nil { + addrStr, err := k.addressBytesToString(address) + if err != nil { + return err + } + + return errorsmod.Wrap(testv1alpha1.ErrAssetAlreadyExists.Wrap(asset), addrStr) + } + + if err := k.setAsset(ctx, address, asset); err != nil { + return err + } + + return nil +} + +func (k Keeper) PopAsset(ctx context.Context, address sdk.AccAddress, asset string) error { + if err := k.HasAsset(ctx, address, asset); err != nil { + return err + } + + if err := k.removeAsset(ctx, address, asset); err != nil { + return err + } + + return nil +} + +func (k Keeper) HasAsset(ctx context.Context, address sdk.AccAddress, asset string) error { + has, err := k.assets.Has(ctx, collections.Join(address, asset)) + if err != nil { + return testv1alpha1.ErrInvariantBroken.Wrap(err.Error()) + } + + if !has { + addrStr, err := k.addressBytesToString(address) + if err != nil { + return err + } + + return errorsmod.Wrap(testv1alpha1.ErrAssetNotFound.Wrap(asset), addrStr) + } + + return nil +} + +func (k Keeper) setAsset(ctx context.Context, address sdk.AccAddress, asset string) error { + if err := k.assets.Set(ctx, collections.Join(address, asset), testv1alpha1.Asset{}); err != nil { + return testv1alpha1.ErrInvariantBroken.Wrap(err.Error()) + } + + return nil +} + +func (k Keeper) removeAsset(ctx context.Context, address sdk.AccAddress, asset string) error { + if err := k.assets.Remove(ctx, collections.Join(address, asset)); err != nil { + return testv1alpha1.ErrInvariantBroken.Wrap(err.Error()) + } + + return nil +} diff --git a/x/test/keeper/internal/asset_test.go b/x/test/keeper/internal/asset_test.go new file mode 100644 index 0000000..988bd4a --- /dev/null +++ b/x/test/keeper/internal/asset_test.go @@ -0,0 +1,123 @@ +package internal_test + +import ( + sdk "github.com/cosmos/cosmos-sdk/types" + + testv1alpha1 "github.com/0tech/andromeda/x/test/andromeda/test/v1alpha1" + "github.com/0tech/andromeda/x/test/testutil" +) + +func (s *KeeperTestSuite) TestCreate() { + type create struct { + creator sdk.AccAddress + asset string + } + + tester := func(subject create) error { + s.NotNil(subject.creator) + s.NotEmpty(subject.asset) + + ctx, _ := sdk.UnwrapSDKContext(s.ctx).CacheContext() + if err := s.keeper.Create(ctx, subject.creator, subject.asset); err != nil { + return err + } + + err := s.keeper.HasAsset(s.ctx, subject.creator, subject.asset) + s.Assert().Error(err) + + err = s.keeper.HasAsset(ctx, subject.creator, subject.asset) + s.Require().NoError(err) + + return nil + } + cases := []map[string]testutil.Case[create]{ + { + "valid creator": { + Malleate: func(subject *create) { + subject.creator = s.catPerson + }, + }, + }, + { + "asset not found": { + Malleate: func(subject *create) { + subject.asset = s.dog + }, + }, + "asset already exists": { + Malleate: func(subject *create) { + subject.asset = s.cat + }, + Error: func() error { + return testv1alpha1.ErrAssetAlreadyExists + }, + }, + }, + } + + testutil.DoTest(s.T(), tester, cases) +} + +func (s *KeeperTestSuite) TestSend() { + type send struct { + sender sdk.AccAddress + recipient sdk.AccAddress + asset string + } + + tester := func(subject send) error { + s.NotNil(subject.sender) + s.NotNil(subject.recipient) + s.NotEmpty(subject.asset) + + ctx, _ := sdk.UnwrapSDKContext(s.ctx).CacheContext() + if err := s.keeper.Send(ctx, subject.sender, subject.recipient, subject.asset); err != nil { + return err + } + + err := s.keeper.HasAsset(s.ctx, subject.sender, subject.asset) + s.Assert().NoError(err) + err = s.keeper.HasAsset(s.ctx, subject.recipient, subject.asset) + s.Assert().Error(err) + + err = s.keeper.HasAsset(ctx, subject.sender, subject.asset) + s.Require().Error(err) + err = s.keeper.HasAsset(ctx, subject.recipient, subject.asset) + s.Require().NoError(err) + + return nil + } + cases := []map[string]testutil.Case[send]{ + { + "valid send": { + Malleate: func(subject *send) { + subject.sender = s.catPerson + subject.recipient = s.dogPerson + subject.asset = s.cat + }, + }, + "asset already exists on recipient": { + Malleate: func(subject *send) { + subject.sender = s.catPerson + subject.recipient = s.petPerson + subject.asset = s.cat + }, + Error: func() error { + return testv1alpha1.ErrAssetAlreadyExists + }, + }, + "asset not found on sender": { + Malleate: func(subject *send) { + subject.sender = s.catPerson + subject.recipient = s.notPetPerson + subject.asset = s.dog + }, + Error: func() error { + return testv1alpha1.ErrAssetNotFound + }, + }, + }, + } + + testutil.DoTest(s.T(), tester, cases) +} diff --git a/x/test/keeper/internal/grpc_query.go b/x/test/keeper/internal/grpc_query.go new file mode 100644 index 0000000..c7582e5 --- /dev/null +++ b/x/test/keeper/internal/grpc_query.go @@ -0,0 +1,90 @@ +package internal + +import ( + "context" + + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" + + "cosmossdk.io/collections" + errorsmod "cosmossdk.io/errors" + + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/types/query" + + testv1alpha1 "github.com/0tech/andromeda/x/test/andromeda/test/v1alpha1" +) + +type queryServer struct { + keeper Keeper +} + +var _ testv1alpha1.QueryServer = (*queryServer)(nil) + +// NewQueryServer returns an implementation of the QueryServer interface +// for the provided Keeper. +func NewQueryServer(keeper Keeper) testv1alpha1.QueryServer { + return &queryServer{ + keeper: keeper, + } +} + +func (s queryServer) Asset(ctx context.Context, req *testv1alpha1.QueryAssetRequest) (*testv1alpha1.QueryAssetResponse, error) { + if req == nil { + return nil, status.Errorf(codes.InvalidArgument, "empty request") + } + + if req.Account == "" { + return nil, testv1alpha1.ErrUnimplemented.Wrap("nil account") + } + + if req.Asset == "" { + return nil, testv1alpha1.ErrUnimplemented.Wrap("nil asset") + } + + account, err := s.keeper.addressStringToBytes(req.Account) + if err != nil { + return nil, errorsmod.Wrap(err, "account") + } + + if err := s.keeper.HasAsset(ctx, account, req.Asset); err != nil { + return nil, err + } + + return &testv1alpha1.QueryAssetResponse{ + Asset: &testv1alpha1.QueryAssetResponse_Asset{ + Name: req.Asset, + }, + }, nil +} + +func (s queryServer) Assets(ctx context.Context, req *testv1alpha1.QueryAssetsRequest) (*testv1alpha1.QueryAssetsResponse, error) { + if req == nil { + return nil, status.Errorf(codes.InvalidArgument, "empty request") + } + + if req.Account == "" { + return nil, testv1alpha1.ErrUnimplemented.Wrap("nil account") + } + + account, err := s.keeper.addressStringToBytes(req.Account) + if err != nil { + return nil, errorsmod.Wrap(err, "account") + } + + assets, pageRes, err := query.CollectionPaginate(ctx, s.keeper.assets, req.Pagination, func(key collections.Pair[sdk.AccAddress, string], _ testv1alpha1.Asset) (*testv1alpha1.QueryAssetsResponse_Asset, error) { + asset := key.K2() + + return &testv1alpha1.QueryAssetsResponse_Asset{ + Name: asset, + }, nil + }, query.WithCollectionPaginationPairPrefix[sdk.AccAddress, string](account)) + if err != nil { + return nil, err + } + + return &testv1alpha1.QueryAssetsResponse{ + Assets: assets, + Pagination: pageRes, + }, nil +} diff --git a/x/test/keeper/internal/grpc_query_test.go b/x/test/keeper/internal/grpc_query_test.go new file mode 100644 index 0000000..287f0bb --- /dev/null +++ b/x/test/keeper/internal/grpc_query_test.go @@ -0,0 +1,108 @@ +package internal_test + +import ( + testv1alpha1 "github.com/0tech/andromeda/x/test/andromeda/test/v1alpha1" + "github.com/0tech/andromeda/x/test/testutil" +) + +func (s *KeeperTestSuite) TestQueryAsset() { + tester := func(subject testv1alpha1.QueryAssetRequest) error { + res, err := s.queryServer.Asset(s.ctx, &subject) + if err != nil { + return err + } + s.Require().NotNil(res) + + s.Require().NotNil(res.Asset) + s.Require().Equal(subject.Asset, res.Asset.Name) + + return nil + } + cases := []map[string]testutil.Case[testv1alpha1.QueryAssetRequest]{ + { + "nil account": { + Error: func() error { + return testv1alpha1.ErrUnimplemented + }, + }, + "valid account": { + Malleate: func(subject *testv1alpha1.QueryAssetRequest) { + subject.Account = s.addressBytesToString(s.catPerson) + }, + }, + "invalid account": { + Malleate: func(subject *testv1alpha1.QueryAssetRequest) { + subject.Account = notInBech32 + }, + Error: func() error { + return testv1alpha1.ErrInvalidAddress + }, + }, + }, + { + "nil asset": { + Error: func() error { + return testv1alpha1.ErrUnimplemented + }, + }, + "valid asset": { + Malleate: func(subject *testv1alpha1.QueryAssetRequest) { + subject.Asset = s.cat + }, + }, + "asset not found": { + Malleate: func(subject *testv1alpha1.QueryAssetRequest) { + subject.Asset = s.dog + }, + Error: func() error { + return testv1alpha1.ErrAssetNotFound + }, + }, + }, + } + + testutil.DoTest(s.T(), tester, cases) +} + +func (s *KeeperTestSuite) TestQueryAssets() { + tester := func(subject testv1alpha1.QueryAssetsRequest) error { + res, err := s.queryServer.Assets(s.ctx, &subject) + if err != nil { + return err + } + s.Require().NotNil(res) + + s.Require().Len(res.Assets, 2) + for i, asset := range res.Assets { + s.Require().NotNil(asset, i) + + s.Require().NotNil(asset.Name, i) + } + + return nil + } + cases := []map[string]testutil.Case[testv1alpha1.QueryAssetsRequest]{ + { + "nil account": { + Error: func() error { + return testv1alpha1.ErrUnimplemented + }, + }, + "valid account": { + Malleate: func(subject *testv1alpha1.QueryAssetsRequest) { + subject.Account = s.addressBytesToString(s.petPerson) + }, + }, + "invalid account": { + Malleate: func(subject *testv1alpha1.QueryAssetsRequest) { + subject.Account = notInBech32 + }, + Error: func() error { + return testv1alpha1.ErrInvalidAddress + }, + }, + }, + } + + testutil.DoTest(s.T(), tester, cases) +} diff --git a/x/test/keeper/internal/keeper.go b/x/test/keeper/internal/keeper.go new file mode 100644 index 0000000..3ad9e4b --- /dev/null +++ b/x/test/keeper/internal/keeper.go @@ -0,0 +1,61 @@ +package internal + +import ( + "cosmossdk.io/collections" + "cosmossdk.io/core/store" + + "github.com/cosmos/cosmos-sdk/codec" + sdk "github.com/cosmos/cosmos-sdk/types" + + testv1alpha1 "github.com/0tech/andromeda/x/test/andromeda/test/v1alpha1" +) + +type Keeper struct { + cdc codec.Codec + + schema collections.Schema + + assets collections.Map[collections.Pair[sdk.AccAddress, string], testv1alpha1.Asset] +} + +func NewKeeper( + cdc codec.Codec, + storeService store.KVStoreService, +) (*Keeper, error) { + sb := collections.NewSchemaBuilder(storeService) + k := &Keeper{ + cdc: cdc, + assets: collections.NewMap(sb, assetsKeyPrefix, "assets", + collections.PairKeyCodec(sdk.AccAddressKey, collections.StringKey), + codec.CollValue[testv1alpha1.Asset](cdc), + ), + } + + schema, err := sb.Build() + if err != nil { + return nil, err + } + k.schema = schema + + return k, nil +} + +func (k Keeper) addressBytesToString(addr []byte) (string, error) { + addressCodec := k.cdc.InterfaceRegistry().SigningContext().AddressCodec() + addrStr, err := addressCodec.BytesToString(addr) + if err != nil { + return "", testv1alpha1.ErrInvalidAddress.Wrap(err.Error()) + } + + return addrStr, nil +} + +func (k Keeper) addressStringToBytes(addr string) (sdk.AccAddress, error) { + addressCodec := k.cdc.InterfaceRegistry().SigningContext().AddressCodec() + addrBytes, err := addressCodec.StringToBytes(addr) + if err != nil { + return nil, testv1alpha1.ErrInvalidAddress.Wrap(err.Error()) + } + + return addrBytes, nil +} diff --git a/x/test/keeper/internal/keeper_test.go b/x/test/keeper/internal/keeper_test.go new file mode 100644 index 0000000..82e5eb0 --- /dev/null +++ b/x/test/keeper/internal/keeper_test.go @@ -0,0 +1,158 @@ +package internal_test + +import ( + "context" + "math/rand" + "testing" + + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/suite" + + "cosmossdk.io/core/address" + "cosmossdk.io/log" + storetypes "cosmossdk.io/store/types" + + "github.com/cosmos/cosmos-sdk/baseapp" + "github.com/cosmos/cosmos-sdk/codec" + codectestutil "github.com/cosmos/cosmos-sdk/codec/testutil" + "github.com/cosmos/cosmos-sdk/runtime" + "github.com/cosmos/cosmos-sdk/testutil" + simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims" + sdk "github.com/cosmos/cosmos-sdk/types" + moduletestutil "github.com/cosmos/cosmos-sdk/types/module/testutil" + + testv1alpha1 "github.com/0tech/andromeda/x/test/andromeda/test/v1alpha1" + keeper "github.com/0tech/andromeda/x/test/keeper/internal" + "github.com/0tech/andromeda/x/test/module" +) + +const notInBech32 = "addresslverygoodtestingaddress" // does not include the separator + +//nolint:gosec +func randomString(size int) string { + res := make([]rune, size) + + letters := []rune("0123456789abcdef") + for i := range res { + res[i] = letters[rand.Intn(len(letters))] + } + + return string(res) +} + +type KeeperTestSuite struct { + suite.Suite + + ctx context.Context + + addressCodec address.Codec + + keeper *keeper.Keeper + + queryServer testv1alpha1.QueryServer + msgServer testv1alpha1.MsgServer + + notPetPerson sdk.AccAddress + catPerson sdk.AccAddress + dogPerson sdk.AccAddress + petPerson sdk.AccAddress + + cat string + dog string +} + +func (s *KeeperTestSuite) addressBytesToString(address sdk.AccAddress) string { + addressStr, err := s.addressCodec.BytesToString(address) + s.NoError(err) + + return addressStr +} + +func (s *KeeperTestSuite) SetupTest() { + s.addressCodec, s.ctx, s.keeper = setupTestKeeper(s.T()) + + s.queryServer = keeper.NewQueryServer(*s.keeper) + s.msgServer = keeper.NewMsgServer(*s.keeper) + + s.cat = "cat" + s.dog = "dog" + + accounts := []*sdk.AccAddress{ + &s.notPetPerson, + &s.catPerson, + &s.dogPerson, + &s.petPerson, + } + for i, account := range simtestutil.CreateRandomAccounts(len(accounts)) { + *accounts[i] = account + } + + for _, allocation := range []struct { + account sdk.AccAddress + assets []string + }{ + { + account: s.notPetPerson, + }, + { + account: s.catPerson, + assets: []string{s.cat}, + }, + { + account: s.dogPerson, + assets: []string{s.dog}, + }, + { + account: s.petPerson, + assets: []string{s.cat, s.dog}, + }, + } { + for _, asset := range allocation.assets { + err := s.keeper.Create(s.ctx, allocation.account, asset) + s.NoError(err) + } + } +} + +func TestKeeperTestSuite(t *testing.T) { + suite.Run(t, new(KeeperTestSuite)) +} + +func setupTestKeeper(t *testing.T) ( + address.Codec, + context.Context, + *keeper.Keeper, +) { + key := storetypes.NewKVStoreKey(testv1alpha1.ModuleName) + tkey := storetypes.NewTransientStoreKey("transient_test") + testCtx := testutil.DefaultContextWithDB(t, key, tkey) + encCfg := moduletestutil.MakeTestEncodingConfig(module.AppModuleBasic{}) + + mainPrefix := randomString(8) + ir := codectestutil.CodecOptions{ + AccAddressPrefix: mainPrefix, + ValAddressPrefix: mainPrefix + "valoper", + }.NewInterfaceRegistry() + encCfg.InterfaceRegistry = ir + encCfg.Codec = codec.NewProtoCodec(ir) + + bapp := baseapp.NewBaseApp( + "test", + log.NewNopLogger(), + testCtx.DB, + encCfg.TxConfig.TxDecoder(), + ) + bapp.SetInterfaceRegistry(ir) + + testKeeper, err := keeper.NewKeeper(encCfg.Codec, runtime.NewKVStoreService(key)) + assert.NoError(t, err) + + msgServer := keeper.NewMsgServer(*testKeeper) + queryServer := keeper.NewQueryServer(*testKeeper) + + testv1alpha1.RegisterInterfaces(ir) + testv1alpha1.RegisterMsgServer(bapp.MsgServiceRouter(), msgServer) + testv1alpha1.RegisterQueryServer(bapp.GRPCQueryRouter(), queryServer) + + return encCfg.InterfaceRegistry.SigningContext().AddressCodec(), testCtx.Ctx, testKeeper +} diff --git a/x/test/keeper/internal/keys.go b/x/test/keeper/internal/keys.go new file mode 100644 index 0000000..cd9bd1f --- /dev/null +++ b/x/test/keeper/internal/keys.go @@ -0,0 +1,7 @@ +package internal + +import ( + "cosmossdk.io/collections" +) + +var assetsKeyPrefix = collections.NewPrefix(0x00) diff --git a/x/test/keeper/internal/msg_server.go b/x/test/keeper/internal/msg_server.go new file mode 100644 index 0000000..d431bb3 --- /dev/null +++ b/x/test/keeper/internal/msg_server.go @@ -0,0 +1,91 @@ +package internal + +import ( + "context" + + errorsmod "cosmossdk.io/errors" + + sdk "github.com/cosmos/cosmos-sdk/types" + + testv1alpha1 "github.com/0tech/andromeda/x/test/andromeda/test/v1alpha1" +) + +type msgServer struct { + keeper Keeper +} + +var _ testv1alpha1.MsgServer = (*msgServer)(nil) + +// NewMsgServer returns an implementation of the MsgServer interface +// for the provided Keeper. +func NewMsgServer(keeper Keeper) testv1alpha1.MsgServer { + return &msgServer{ + keeper: keeper, + } +} + +func (s msgServer) Create(ctx context.Context, req *testv1alpha1.MsgCreate) (*testv1alpha1.MsgCreateResponse, error) { + if req.Creator == "" { + return nil, testv1alpha1.ErrUnimplemented.Wrap("nil creator") + } + + if req.Asset == "" { + return nil, testv1alpha1.ErrUnimplemented.Wrap("nil asset") + } + + creator, err := s.keeper.addressStringToBytes(req.Creator) + if err != nil { + return nil, errorsmod.Wrap(err, "creator") + } + + if err := s.keeper.Create(ctx, creator, req.Asset); err != nil { + return nil, err + } + + if err := sdk.UnwrapSDKContext(ctx).EventManager().EmitTypedEvent(&testv1alpha1.EventCreate{ + Creator: req.Creator, + Asset: req.Asset, + }); err != nil { + return nil, testv1alpha1.ErrInvariantBroken.Wrap(err.Error()) + } + + return &testv1alpha1.MsgCreateResponse{}, nil +} + +func (s msgServer) Send(ctx context.Context, req *testv1alpha1.MsgSend) (*testv1alpha1.MsgSendResponse, error) { + if req.Sender == "" { + return nil, testv1alpha1.ErrUnimplemented.Wrap("nil sender") + } + + if req.Recipient == "" { + return nil, testv1alpha1.ErrUnimplemented.Wrap("nil recipient") + } + + if req.Asset == "" { + return nil, testv1alpha1.ErrUnimplemented.Wrap("nil asset") + } + + sender, err := s.keeper.addressStringToBytes(req.Sender) + if err != nil { + return nil, errorsmod.Wrap(err, "sender") + } + + recipient, err := s.keeper.addressStringToBytes(req.Recipient) + if err != nil { + return nil, errorsmod.Wrap(err, "recipient") + } + + if err := s.keeper.Send(ctx, sender, recipient, req.Asset); err != nil { + return nil, err + } + + if err := sdk.UnwrapSDKContext(ctx).EventManager().EmitTypedEvent(&testv1alpha1.EventSend{ + Sender: req.Sender, + Recipient: req.Recipient, + Asset: req.Asset, + }); err != nil { + return nil, testv1alpha1.ErrInvariantBroken.Wrap(err.Error()) + } + + return &testv1alpha1.MsgSendResponse{}, nil +} diff --git a/x/test/keeper/internal/msg_server_test.go b/x/test/keeper/internal/msg_server_test.go new file mode 100644 index 0000000..1bd7579 --- /dev/null +++ b/x/test/keeper/internal/msg_server_test.go @@ -0,0 +1,147 @@ +package internal_test + +import ( + sdk "github.com/cosmos/cosmos-sdk/types" + + testv1alpha1 "github.com/0tech/andromeda/x/test/andromeda/test/v1alpha1" + "github.com/0tech/andromeda/x/test/testutil" +) + +func (s *KeeperTestSuite) TestMsgCreate() { + tester := func(subject testv1alpha1.MsgCreate) error { + ctx, _ := sdk.UnwrapSDKContext(s.ctx).CacheContext() + res, err := s.msgServer.Create(ctx, &subject) + if err != nil { + return err + } + s.Require().NotNil(res) + + events := ctx.EventManager().Events() + s.Require().Len(events, 1) + + eventExpected, err := sdk.TypedEventToEvent(&testv1alpha1.EventCreate{ + Creator: subject.Creator, + Asset: subject.Asset, + }) + s.Require().NoError(err) + s.Require().Equal(eventExpected, events[0]) + + return nil + } + cases := []map[string]testutil.Case[testv1alpha1.MsgCreate]{ + { + "nil creator": { + Error: func() error { + return testv1alpha1.ErrUnimplemented + }, + }, + "valid creator": { + Malleate: func(subject *testv1alpha1.MsgCreate) { + subject.Creator = s.addressBytesToString(s.dogPerson) + }, + }, + "invalid creator": { + Malleate: func(subject *testv1alpha1.MsgCreate) { + subject.Creator = notInBech32 + }, + Error: func() error { + return testv1alpha1.ErrInvalidAddress + }, + }, + }, + { + "nil asset": { + Error: func() error { + return testv1alpha1.ErrUnimplemented + }, + }, + "valid asset": { + Malleate: func(subject *testv1alpha1.MsgCreate) { + subject.Asset = s.cat + }, + }, + }, + } + + testutil.DoTest(s.T(), tester, cases) +} + +func (s *KeeperTestSuite) TestMsgSend() { + tester := func(subject testv1alpha1.MsgSend) error { + ctx, _ := sdk.UnwrapSDKContext(s.ctx).CacheContext() + res, err := s.msgServer.Send(ctx, &subject) + if err != nil { + return err + } + s.Require().NotNil(res) + + events := ctx.EventManager().Events() + s.Require().Len(events, 1) + + eventExpected, err := sdk.TypedEventToEvent(&testv1alpha1.EventSend{ + Sender: subject.Sender, + Recipient: subject.Recipient, + Asset: subject.Asset, + }) + s.Require().NoError(err) + s.Require().Equal(eventExpected, events[0]) + + return nil + } + cases := []map[string]testutil.Case[testv1alpha1.MsgSend]{ + { + "nil sender": { + Error: func() error { + return testv1alpha1.ErrUnimplemented + }, + }, + "valid sender": { + Malleate: func(subject *testv1alpha1.MsgSend) { + subject.Sender = s.addressBytesToString(s.catPerson) + }, + }, + "invalid sender": { + Malleate: func(subject *testv1alpha1.MsgSend) { + subject.Sender = notInBech32 + }, + Error: func() error { + return testv1alpha1.ErrInvalidAddress + }, + }, + }, + { + "nil recipient": { + Error: func() error { + return testv1alpha1.ErrUnimplemented + }, + }, + "valid recipient": { + Malleate: func(subject *testv1alpha1.MsgSend) { + subject.Recipient = s.addressBytesToString(s.dogPerson) + }, + }, + "invalid recipient": { + Malleate: func(subject *testv1alpha1.MsgSend) { + subject.Recipient = notInBech32 + }, + Error: func() error { + return testv1alpha1.ErrInvalidAddress + }, + }, + }, + { + "nil asset": { + Error: func() error { + return testv1alpha1.ErrUnimplemented + }, + }, + "valid asset": { + Malleate: func(subject *testv1alpha1.MsgSend) { + subject.Asset = s.cat + }, + }, + }, + } + + testutil.DoTest(s.T(), tester, cases) +} diff --git a/x/test/module/module.go b/x/test/module/module.go new file mode 100644 index 0000000..2a90863 --- /dev/null +++ b/x/test/module/module.go @@ -0,0 +1,137 @@ +package module + +import ( + "context" + + "github.com/grpc-ecosystem/grpc-gateway/runtime" + + "cosmossdk.io/core/appmodule" + "cosmossdk.io/core/store" + "cosmossdk.io/depinject" + + "github.com/cosmos/cosmos-sdk/client" + "github.com/cosmos/cosmos-sdk/codec" + codectypes "github.com/cosmos/cosmos-sdk/codec/types" + "github.com/cosmos/cosmos-sdk/types/module" + + testv1alpha1 "github.com/0tech/andromeda/x/test/andromeda/test/v1alpha1" + modulev1alpha1 "github.com/0tech/andromeda/x/test/api/andromeda/test/module/v1alpha1" + "github.com/0tech/andromeda/x/test/keeper" +) + +// ---------------------------------------------------------------------------- +// AppModuleBasic +// ---------------------------------------------------------------------------- + +// AppModuleBasic defines the basic application module used by the module. +type AppModuleBasic struct{} + +// ____________________________________________________________________________ + +var _ module.AppModuleBasic = (*AppModuleBasic)(nil) + +// Name returns the name of the module. +func (AppModuleBasic) Name() string { + return testv1alpha1.ModuleName +} + +func (AppModuleBasic) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) { + // testv1alpha1.RegisterLegacyAminoCodec(cdc) +} + +func (AppModuleBasic) RegisterInterfaces(registry codectypes.InterfaceRegistry) { + testv1alpha1.RegisterInterfaces(registry) +} + +// RegisterGRPCGatewayRoutes registers the gRPC Gateway routes for the module. +func (AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *runtime.ServeMux) { + if err := testv1alpha1.RegisterQueryHandlerClient(context.Background(), mux, testv1alpha1.NewQueryClient(clientCtx)); err != nil { + panic(err) + } +} + +// ---------------------------------------------------------------------------- +// AppModule +// ---------------------------------------------------------------------------- + +var _ module.AppModule = (*AppModule)(nil) + +// AppModule implements an application module for the module. +type AppModule struct { + AppModuleBasic + + keeper keeper.Keeper +} + +// NewAppModule creates a new AppModule object. +func NewAppModule(cdc codec.Codec, keeper keeper.Keeper) AppModule { + return AppModule{ + keeper: keeper, + } +} + +// ____________________________________________________________________________ + +var _ module.HasServices = (*AppModule)(nil) + +func (am AppModule) RegisterServices(cfg module.Configurator) { + testv1alpha1.RegisterMsgServer(cfg.MsgServer(), keeper.NewMsgServer(am.keeper)) + testv1alpha1.RegisterQueryServer(cfg.QueryServer(), keeper.NewQueryServer(am.keeper)) + + // m := keeper.NewMigrator(am.keeper) + // migrations := map[uint64]func(sdk.Context) error{} + // for ver, handler := range migrations { + // if err := cfg.RegisterMigration(testv1alpha1.ModuleName, ver, handler); err != nil { + // panic(fmt.Sprintf("failed to migrate x/%s from version %d to %d: %v", testv1alpha1.ModuleName, ver, ver+1, err)) + // } + // } +} + +// ____________________________________________________________________________ + +var _ module.HasConsensusVersion = (*AppModule)(nil) + +func (AppModule) ConsensusVersion() uint64 { return 1 } + +// ____________________________________________________________________________ + +var _ appmodule.AppModule = (*AppModule)(nil) + +func (AppModule) IsOnePerModuleType() {} +func (AppModule) IsAppModule() {} + +// ---------------------------------------------------------------------------- +// App Wiring Setup +// ---------------------------------------------------------------------------- + +func init() { + appmodule.Register(&modulev1alpha1.Module{}, + appmodule.Provide(ProvideModule), + ) +} + +type TestInputs struct { + depinject.In + + StoreService store.KVStoreService + Cdc codec.Codec + Config *modulev1alpha1.Module +} + +type TestOutputs struct { + depinject.Out + + Keeper keeper.Keeper + Module appmodule.AppModule +} + +func ProvideModule(in TestInputs) TestOutputs { + k, err := keeper.NewKeeper(in.Cdc, in.StoreService) + if err != nil { + panic(err) + } + + m := NewAppModule(in.Cdc, *k) + + return TestOutputs{Keeper: *k, Module: m} +} diff --git a/x/test/proto/andromeda/test/module/v1alpha1/module.proto b/x/test/proto/andromeda/test/module/v1alpha1/module.proto new file mode 100644 index 0000000..9aeca9f --- /dev/null +++ b/x/test/proto/andromeda/test/module/v1alpha1/module.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; +package andromeda.test.module.v1alpha1; + +import "cosmos/app/v1alpha1/module.proto"; + +// Module is the config object of the module. +message Module { + option (cosmos.app.v1alpha1.module) = {go_import: "github.com/0tech/andromeda/x/test"}; +} diff --git a/x/test/proto/andromeda/test/v1alpha1/event.proto b/x/test/proto/andromeda/test/v1alpha1/event.proto new file mode 100644 index 0000000..7750257 --- /dev/null +++ b/x/test/proto/andromeda/test/v1alpha1/event.proto @@ -0,0 +1,25 @@ +syntax = "proto3"; +package andromeda.test.v1alpha1; + +import "cosmos_proto/cosmos.proto"; + +// EventCreate is emitted on Msg/Create. +message EventCreate { + // the address of the creator + string creator = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // the name of the asset created + string asset = 2; +} + +// EventSend is emitted on Msg/Send. +message EventSend { + // the address of the sender + string sender = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // the address of the recipient + string recipient = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // the name of the asset sent + string asset = 3; +} diff --git a/x/test/proto/andromeda/test/v1alpha1/query.proto b/x/test/proto/andromeda/test/v1alpha1/query.proto new file mode 100644 index 0000000..8f48159 --- /dev/null +++ b/x/test/proto/andromeda/test/v1alpha1/query.proto @@ -0,0 +1,64 @@ +syntax = "proto3"; +package andromeda.test.v1alpha1; + +import "cosmos/base/query/v1beta1/pagination.proto"; +import "cosmos_proto/cosmos.proto"; +import "google/api/annotations.proto"; + +// Query defines the module's Query service. +service Query { + // Asset queries an asset. + rpc Asset(QueryAssetRequest) returns (QueryAssetResponse) { + option (google.api.http).get = "/andromeda/test/v1alpha1/accounts/{account}/assets/{asset}"; + } + + // Assets queries all the assets. + rpc Assets(QueryAssetsRequest) returns (QueryAssetsResponse) { + option (google.api.http).get = "/andromeda/test/v1alpha1/accounts/{account}/assets"; + } +} + +// QueryAssetRequest is the request type for the Query/Asset RPC method. +message QueryAssetRequest { + // the address of an account + string account = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // the name of an asset + string asset = 2; +} + +// QueryAssetResponse is the response type for the Query/Asset RPC method. +message QueryAssetResponse { + // Asset defines an asset identified by its name. + message Asset { + // the name of the asset + string name = 1; + } + + // the corresponding asset + Asset asset = 1; +} + +// QueryAssetsRequest is the request type for the Query/Assets RPC method. +message QueryAssetsRequest { + // the address of an account + string account = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // optional pagination for the request + cosmos.base.query.v1beta1.PageRequest pagination = 2; +} + +// QueryAssetsResponse is the response type for the Query/Assets RPC method. +message QueryAssetsResponse { + // Asset defines an asset identified by its name. + message Asset { + // the name of the asset + string name = 1; + } + + // all the assets owned by the account + repeated Asset assets = 1; + + // pagination in the response + cosmos.base.query.v1beta1.PageResponse pagination = 2; +} diff --git a/x/test/proto/andromeda/test/v1alpha1/tx.proto b/x/test/proto/andromeda/test/v1alpha1/tx.proto new file mode 100644 index 0000000..1cb27c7 --- /dev/null +++ b/x/test/proto/andromeda/test/v1alpha1/tx.proto @@ -0,0 +1,48 @@ +syntax = "proto3"; +package andromeda.test.v1alpha1; + +import "cosmos/msg/v1/msg.proto"; +import "cosmos_proto/cosmos.proto"; + +// Msg defines the module's Msg service. +service Msg { + option (cosmos.msg.v1.service) = true; + + // Create creates an asset. + rpc Create(MsgCreate) returns (MsgCreateResponse); + + // Send sends an asset from an account to another. + rpc Send(MsgSend) returns (MsgSendResponse); +} + +// MsgCreate is the Msg/Create request type. +message MsgCreate { + option (cosmos.msg.v1.signer) = "creator"; + + // the address of the creator + string creator = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // the name of the asset to create + string asset = 2; +} + +// MsgCreateResponse is the Msg/Create response type. +message MsgCreateResponse {} + +// MsgSend is the Msg/Send request type. +message MsgSend { + option (cosmos.msg.v1.signer) = "sender"; + + // the address of the sender + string sender = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // the address of the recipient + string recipient = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // the asset to send + string asset = 3; +} + +// MsgSendResponse is the Msg/Send response type. +message MsgSendResponse { +} diff --git a/x/test/proto/andromeda/test/v1alpha1/types.proto b/x/test/proto/andromeda/test/v1alpha1/types.proto new file mode 100644 index 0000000..b918095 --- /dev/null +++ b/x/test/proto/andromeda/test/v1alpha1/types.proto @@ -0,0 +1,6 @@ +syntax = "proto3"; +package andromeda.test.v1alpha1; + +// Asset defines an asset identified by its name. +message Asset { +} diff --git a/x/test/proto/buf.gen.gogo.yaml b/x/test/proto/buf.gen.gogo.yaml new file mode 100644 index 0000000..0bddf36 --- /dev/null +++ b/x/test/proto/buf.gen.gogo.yaml @@ -0,0 +1,16 @@ +version: v1 +managed: + enabled: true + go_package_prefix: + default: . + except: + - buf.build/googleapis/googleapis + - buf.build/cosmos/cosmos-sdk + - buf.build/cosmos/cosmos-proto +plugins: + - name: gocosmos + out: .. + opt: plugins=grpc,Mcosmos/app/v1alpha1/module.proto=cosmossdk.io/api/cosmos/app/v1alpha1 + - name: grpc-gateway + out: .. + opt: logtostderr=true,Mcosmos/app/v1alpha1/module.proto=cosmossdk.io/api/cosmos/app/v1alpha1 diff --git a/x/test/proto/buf.gen.pulsar.yaml b/x/test/proto/buf.gen.pulsar.yaml new file mode 100644 index 0000000..93ccefc --- /dev/null +++ b/x/test/proto/buf.gen.pulsar.yaml @@ -0,0 +1,16 @@ +version: v1 +managed: + enabled: true + go_package_prefix: + default: api + except: + - buf.build/googleapis/googleapis + - buf.build/cosmos/cosmos-sdk + - buf.build/cosmos/cosmos-proto +plugins: + - name: go-pulsar + out: ../api + opt: paths=source_relative,Mcosmos/app/v1alpha1/module.proto=cosmossdk.io/api/cosmos/app/v1alpha1,Mcosmos/base/query/v1beta1/pagination.proto=cosmossdk.io/api/cosmos/base/query/v1beta1 + - name: go-grpc + out: ../api + opt: paths=source_relative,Mcosmos/app/v1alpha1/module.proto=cosmossdk.io/api/cosmos/app/v1alpha1 diff --git a/x/test/proto/buf.lock b/x/test/proto/buf.lock new file mode 100644 index 0000000..abf79a0 --- /dev/null +++ b/x/test/proto/buf.lock @@ -0,0 +1,28 @@ +# Generated by buf. DO NOT EDIT. +version: v1 +deps: + - remote: buf.build + owner: cosmos + repository: cosmos-proto + commit: 1935555c206d4afb9e94615dfd0fad31 + digest: shake256:c74d91a3ac7ae07d579e90eee33abf9b29664047ac8816500cf22c081fec0d72d62c89ce0bebafc1f6fec7aa5315be72606717740ca95007248425102c365377 + - remote: buf.build + owner: cosmos + repository: cosmos-sdk + commit: e7dd2c968d9a403b8f1a01a8d8c8a581 + digest: shake256:e766fba8cb060d67357cc715f5c39ca32661b069f829a016962e2b6879f3cebcaecb23c9ac9f7846e04e10a0a6163298713078bc9ef0cf3400885a0acf5ba3bc + - remote: buf.build + owner: cosmos + repository: gogo-proto + commit: 5e5b9fdd01804356895f8f79a6f1ddc1 + digest: shake256:0b85da49e2e5f9ebc4806eae058e2f56096ff3b1c59d1fb7c190413dd15f45dd456f0b69ced9059341c80795d2b6c943de15b120a9e0308b499e43e4b5fc2952 + - remote: buf.build + owner: googleapis + repository: googleapis + commit: a86849a25cc04f4dbe9b15ddddfbc488 + digest: shake256:e19143328f8cbfe13fc226aeee5e63773ca494693a72740a7560664270039a380d94a1344234b88c7691311460df9a9b1c2982190d0a2612eae80368718e1943 + - remote: buf.build + owner: protocolbuffers + repository: wellknowntypes + commit: 657250e6a39648cbb169d079a60bd9ba + digest: shake256:00de25001b8dd2e29d85fc4bcc3ede7aed886d76d67f5e0f7a9b320b90f871d3eb73507d50818d823a0512f3f8db77a11c043685528403e31ff3fef18323a9fb diff --git a/x/test/proto/buf.yaml b/x/test/proto/buf.yaml new file mode 100644 index 0000000..00975bb --- /dev/null +++ b/x/test/proto/buf.yaml @@ -0,0 +1,20 @@ +version: v1 +name: buf.build/andromeda/x-test +deps: + - buf.build/googleapis/googleapis + - buf.build/cosmos/cosmos-sdk + - buf.build/cosmos/cosmos-proto +breaking: + use: + - FILE +lint: + use: + - DEFAULT + - COMMENTS + - FILE_LOWER_SNAKE_CASE + except: + - UNARY_RPC + - COMMENT_FIELD + - SERVICE_SUFFIX + - PACKAGE_VERSION_SUFFIX + - RPC_REQUEST_STANDARD_NAME diff --git a/x/test/testutil/iterator.go b/x/test/testutil/iterator.go new file mode 100644 index 0000000..65acaaf --- /dev/null +++ b/x/test/testutil/iterator.go @@ -0,0 +1,117 @@ +package testutil + +import ( + "errors" + "strings" + "testing" + + "github.com/stretchr/testify/assert" +) + +type CaseIterator struct { + valid bool + cursor []int + keys [][]string +} + +func NewCaseIterator[T any](components []map[string]T) CaseIterator { + keys := make([][]string, len(components)) + valid := true + for i, component := range components { + if len(component) == 0 { + valid = false + break + } + + for key := range component { + keys[i] = append(keys[i], key) + } + } + + cursor := make([]int, len(keys)) + return CaseIterator{ + valid: valid, + cursor: cursor, + keys: keys, + } +} + +func (ci CaseIterator) Valid() bool { + return ci.valid +} + +func (ci *CaseIterator) Next() { + for i := len(ci.keys) - 1; i >= 0; i-- { + next := ci.cursor[i] + 1 + if next < len(ci.keys[i]) { + ci.cursor[i] = next + return + } + + ci.cursor[i] = 0 + } + ci.valid = false +} + +func (ci CaseIterator) Key() []string { + res := make([]string, len(ci.keys)) + for i, j := range ci.cursor { + res[i] = ci.keys[i][j] + } + return res +} + +type Case[T any] struct { + Malleate func(*T) + Error func() error +} + +func DoTest[T any]( + t *testing.T, + tester func(T) error, + cases []map[string]Case[T], +) { + for iter := NewCaseIterator(cases); iter.Valid(); iter.Next() { + names := iter.Key() + + var subject T + var errs []error + for i, name := range names { + c := cases[i][name] + + if malleate := c.Malleate; malleate != nil { + malleate(&subject) + } + if errGen := c.Error; errGen != nil { + if err := errGen(); err != nil { + errs = append(errs, err) + } + } + } + + testName := func(names []string) string { + display := make([]string, 0, len(names)) + for _, name := range names { + if len(name) != 0 { + display = append(display, name) + } + } + return strings.Join(display, ",") + } + t.Run(testName(names), func(t *testing.T) { + err := tester(subject) + if len(errs) != 0 { + assert.Error(t, err) + + for _, candidate := range errs { + if errors.Is(err, candidate) { + return + } + } + assert.FailNow(t, "unexpected error", err) + } else { + assert.NoError(t, err) + } + }) + } +} From 202c652928b0412efbde535409bcad395099108f Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Sun, 21 Jan 2024 09:20:01 +0000 Subject: [PATCH 05/62] Use x/test in tests --- x/escrow/go.mod | 3 + x/escrow/keeper/internal/exec_test.go | 33 +++- x/escrow/keeper/internal/genesis_test.go | 12 +- x/escrow/keeper/internal/grpc_query_test.go | 4 +- x/escrow/keeper/internal/keeper_test.go | 162 +++++++++++++++++--- x/escrow/keeper/internal/msg_server_test.go | 74 +++++++-- x/escrow/keeper/internal/proposal_test.go | 34 +++- x/test/keeper/internal/keys.go | 2 +- 8 files changed, 277 insertions(+), 47 deletions(-) diff --git a/x/escrow/go.mod b/x/escrow/go.mod index 1f7a5c2..d2f85f5 100644 --- a/x/escrow/go.mod +++ b/x/escrow/go.mod @@ -11,6 +11,7 @@ require ( cosmossdk.io/log v1.3.0 cosmossdk.io/math v1.2.0 cosmossdk.io/store v1.0.2 + github.com/0tech/andromeda/x/test v0.0.0-00010101000000-000000000000 github.com/cosmos/cosmos-proto v1.0.0-beta.3 github.com/cosmos/cosmos-sdk v0.50.3 github.com/cosmos/gogoproto v1.4.11 @@ -152,3 +153,5 @@ require ( pgregory.net/rapid v1.1.0 // indirect sigs.k8s.io/yaml v1.3.0 // indirect ) + +replace github.com/0tech/andromeda/x/test => ../test diff --git a/x/escrow/keeper/internal/exec_test.go b/x/escrow/keeper/internal/exec_test.go index cb65ecf..833be3a 100644 --- a/x/escrow/keeper/internal/exec_test.go +++ b/x/escrow/keeper/internal/exec_test.go @@ -6,6 +6,7 @@ import ( escrowv1alpha1 "github.com/0tech/andromeda/x/escrow/andromeda/escrow/v1alpha1" "github.com/0tech/andromeda/x/escrow/testutil" + testv1alpha1 "github.com/0tech/andromeda/x/test/andromeda/test/v1alpha1" ) func (s *KeeperTestSuite) TestExec() { @@ -77,7 +78,37 @@ func (s *KeeperTestSuite) TestExec() { { "valid actions": { Malleate: func(subject *exec) { - subject.actions = []*codectypes.Any{} + subject.actions = s.encodeMsgs([]sdk.Msg{ + &testv1alpha1.MsgSend{ + Sender: s.addressBytesToString(s.stranger), + Recipient: s.addressBytesToString(s.agentAny), + Asset: "voucher", + }, + &testv1alpha1.MsgSend{ + Sender: s.addressBytesToString(s.agentAny), + Recipient: s.addressBytesToString(s.stranger), + Asset: "dog", + }, + }) + }, + }, + "actions failing": { + Malleate: func(subject *exec) { + subject.actions = s.encodeMsgs([]sdk.Msg{ + &testv1alpha1.MsgSend{ + Sender: s.addressBytesToString(s.stranger), + Recipient: s.addressBytesToString(s.agentAny), + Asset: "voucher", + }, + &testv1alpha1.MsgSend{ + Sender: s.addressBytesToString(s.agentAny), + Recipient: s.addressBytesToString(s.stranger), + Asset: "whale", // agent has "dog" + }, + }) + }, + Error: func() error { + return testv1alpha1.ErrAssetNotFound }, }, }, diff --git a/x/escrow/keeper/internal/genesis_test.go b/x/escrow/keeper/internal/genesis_test.go index 7ce8376..f18b745 100644 --- a/x/escrow/keeper/internal/genesis_test.go +++ b/x/escrow/keeper/internal/genesis_test.go @@ -14,7 +14,8 @@ import ( ) func TestValidateGenesisAgents(t *testing.T) { - k, _, addressCodec, _ := setupEscrowKeeper(t) + cdc, _, k, _, _ := setupKeepers(t) //nolint:dogsled + addressCodec := cdc.InterfaceRegistry().SigningContext().AddressCodec() addressBytesToString := func(address []byte) string { addressStr, err := addressCodec.BytesToString(address) assert.NoError(t, err) @@ -22,7 +23,7 @@ func TestValidateGenesisAgents(t *testing.T) { } addresses := simtestutil.CreateIncrementalAccounts(4) - creatorStr := addressBytesToString(simtestutil.CreateRandomAccounts(1)[0]) + creatorStr := addressBytesToString(createRandomAccounts(1)[0]) gs := k.DefaultGenesis() tester := func(subject []*escrowv1alpha1.GenesisState_Agent) error { @@ -216,7 +217,8 @@ func TestValidateGenesisAgents(t *testing.T) { } func TestValidateGenesisProposals(t *testing.T) { - k, _, addressCodec, _ := setupEscrowKeeper(t) + cdc, _, k, _, _ := setupKeepers(t) //nolint:dogsled + addressCodec := cdc.InterfaceRegistry().SigningContext().AddressCodec() addressBytesToString := func(address []byte) string { addressStr, err := addressCodec.BytesToString(address) assert.NoError(t, err) @@ -233,7 +235,7 @@ func TestValidateGenesisProposals(t *testing.T) { &proposerStr, &agentStr, } { - *addrStr = addressBytesToString(simtestutil.CreateRandomAccounts(1)[0]) + *addrStr = addressBytesToString(createRandomAccounts(1)[0]) } gs := k.DefaultGenesis() @@ -542,7 +544,7 @@ func TestValidateGenesisProposals(t *testing.T) { } func TestGenesisState(t *testing.T) { - k, _, _, _ := setupEscrowKeeper(t) //nolint:dogsled + _, _, k, _, _ := setupKeepers(t) //nolint:dogsled tester := func(subject escrowv1alpha1.GenesisState) error { return k.ValidateGenesis(&subject) diff --git a/x/escrow/keeper/internal/grpc_query_test.go b/x/escrow/keeper/internal/grpc_query_test.go index c6f7e14..24df133 100644 --- a/x/escrow/keeper/internal/grpc_query_test.go +++ b/x/escrow/keeper/internal/grpc_query_test.go @@ -1,8 +1,6 @@ package internal_test import ( - simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims" - escrowv1alpha1 "github.com/0tech/andromeda/x/escrow/andromeda/escrow/v1alpha1" "github.com/0tech/andromeda/x/escrow/testutil" ) @@ -64,7 +62,7 @@ func (s *KeeperTestSuite) TestQueryAgent() { }, "address not found": { Malleate: func(subject *escrowv1alpha1.QueryAgentRequest) { - subject.Address = s.addressBytesToString(simtestutil.CreateRandomAccounts(1)[0]) + subject.Address = s.addressBytesToString(createRandomAccounts(1)[0]) }, Error: func() error { return escrowv1alpha1.ErrAgentNotFound diff --git a/x/escrow/keeper/internal/keeper_test.go b/x/escrow/keeper/internal/keeper_test.go index 451ed76..4dfe3fc 100644 --- a/x/escrow/keeper/internal/keeper_test.go +++ b/x/escrow/keeper/internal/keeper_test.go @@ -17,6 +17,7 @@ import ( "github.com/cosmos/cosmos-sdk/baseapp" "github.com/cosmos/cosmos-sdk/codec" codectestutil "github.com/cosmos/cosmos-sdk/codec/testutil" + codectypes "github.com/cosmos/cosmos-sdk/codec/types" "github.com/cosmos/cosmos-sdk/runtime" "github.com/cosmos/cosmos-sdk/testutil" simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims" @@ -24,12 +25,15 @@ import ( moduletestutil "github.com/cosmos/cosmos-sdk/types/module/testutil" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" + "github.com/cosmos/gogoproto/proto" escrowv1alpha1 "github.com/0tech/andromeda/x/escrow/andromeda/escrow/v1alpha1" "github.com/0tech/andromeda/x/escrow/keeper/expected" keeper "github.com/0tech/andromeda/x/escrow/keeper/internal" "github.com/0tech/andromeda/x/escrow/module" escrowtestutil "github.com/0tech/andromeda/x/escrow/testutil" + testv1alpha1 "github.com/0tech/andromeda/x/test/andromeda/test/v1alpha1" + testkeeper "github.com/0tech/andromeda/x/test/keeper" ) const notInBech32 = "addresslverygoodtestingaddress" // does not include the separator @@ -46,6 +50,10 @@ func randomString(size int) string { return string(res) } +func createRandomAccounts(size int) []sdk.AccAddress { + return simtestutil.CreateRandomAccounts(size) +} + type KeeperTestSuite struct { suite.Suite @@ -53,7 +61,7 @@ type KeeperTestSuite struct { addressCodec address.Codec - keeper keeper.Keeper + keeper *keeper.Keeper queryServer escrowv1alpha1.QueryServer msgServer escrowv1alpha1.MsgServer @@ -79,31 +87,80 @@ func (s *KeeperTestSuite) addressBytesToString(address sdk.AccAddress) string { return addressStr } +func (s *KeeperTestSuite) encodeMsgs(msgs []sdk.Msg) []*codectypes.Any { + encoded := make([]*codectypes.Any, len(msgs)) + for i, msg := range msgs { + s.NotNil(msg) + + bz, err := proto.Marshal(msg) + s.NoError(err) + + encoded[i] = &codectypes.Any{ + TypeUrl: sdk.MsgTypeURL(msg), + Value: bz, + } + } + + return encoded +} + func (s *KeeperTestSuite) SetupTest() { var authKeeper expected.AuthKeeper - s.keeper, authKeeper, s.addressCodec, s.ctx = setupEscrowKeeper(s.T()) + var testKeeper *testkeeper.Keeper + var cdc codec.Codec + cdc, s.ctx, s.keeper, authKeeper, testKeeper = setupKeepers(s.T()) + s.addressCodec = cdc.InterfaceRegistry().SigningContext().AddressCodec() - s.queryServer = keeper.NewQueryServer(s.keeper) - s.msgServer = keeper.NewMsgServer(s.keeper) + s.queryServer = keeper.NewQueryServer(*s.keeper) + s.msgServer = keeper.NewMsgServer(*s.keeper) err := s.keeper.InitGenesis(s.ctx, s.keeper.DefaultGenesis()) s.NoError(err) // create accounts - addresses := []*sdk.AccAddress{ + accounts := []*sdk.AccAddress{ &s.seller, &s.buyer, &s.stranger, } - for i, address := range simtestutil.CreateRandomAccounts(len(addresses)) { - *addresses[i] = address + for i, account := range createRandomAccounts(len(accounts)) { + *accounts[i] = account account := &authtypes.BaseAccount{ - Address: s.addressBytesToString(address), + Address: s.addressBytesToString(account), } authKeeper.SetAccount(s.ctx, authKeeper.NewAccount(s.ctx, account)) } + // allocate assets + testMsgServer := testkeeper.NewMsgServer(*testKeeper) + for _, allocation := range []struct { + account sdk.AccAddress + assets []string + }{ + { + account: s.seller, + assets: []string{"cat", "dog", "snake"}, + }, + { + account: s.buyer, + assets: []string{"voucher"}, + }, + { + account: s.stranger, + assets: []string{"voucher"}, + }, + } { + accountStr := s.addressBytesToString(allocation.account) + for _, asset := range allocation.assets { + _, err := testMsgServer.Create(s.ctx, &testv1alpha1.MsgCreate{ + Creator: accountStr, + Asset: asset, + }) + s.NoError(err) + } + } + // seller creates agents for _, agent := range []*sdk.AccAddress{ &s.agentDedicated, @@ -117,11 +174,46 @@ func (s *KeeperTestSuite) SetupTest() { s.agentLast = s.agentIdle // submit proposal for the buyer - s.proposalDedicated, err = s.keeper.SubmitProposal(s.ctx, s.seller, s.agentDedicated, nil, nil) + s.proposalDedicated, err = s.keeper.SubmitProposal(s.ctx, s.seller, s.agentDedicated, + s.encodeMsgs([]sdk.Msg{ + &testv1alpha1.MsgSend{ + Sender: s.addressBytesToString(s.seller), + Recipient: s.addressBytesToString(s.agentDedicated), + Asset: "cat", + }, + }), + s.encodeMsgs([]sdk.Msg{ + &testv1alpha1.MsgSend{ + Sender: s.addressBytesToString(s.agentDedicated), + Recipient: s.addressBytesToString(s.seller), + Asset: "voucher", + }, + &testv1alpha1.MsgSend{ + Sender: s.addressBytesToString(s.agentDedicated), + Recipient: s.addressBytesToString(s.buyer), + Asset: "cat", + }, + }), + ) s.NoError(err) // submit proposal for anyone - s.proposalAny, err = s.keeper.SubmitProposal(s.ctx, s.seller, s.agentAny, nil, nil) + s.proposalAny, err = s.keeper.SubmitProposal(s.ctx, s.seller, s.agentAny, + s.encodeMsgs([]sdk.Msg{ + &testv1alpha1.MsgSend{ + Sender: s.addressBytesToString(s.seller), + Recipient: s.addressBytesToString(s.agentAny), + Asset: "dog", + }, + }), + s.encodeMsgs([]sdk.Msg{ + &testv1alpha1.MsgSend{ + Sender: s.addressBytesToString(s.agentAny), + Recipient: s.addressBytesToString(s.seller), + Asset: "voucher", + }, + }), + ) s.NoError(err) // store the last proposal id @@ -132,11 +224,12 @@ func TestKeeperTestSuite(t *testing.T) { suite.Run(t, new(KeeperTestSuite)) } -func setupEscrowKeeper(t *testing.T) ( - keeper.Keeper, - expected.AuthKeeper, - address.Codec, +func setupKeepers(t *testing.T) ( + codec.Codec, context.Context, + *keeper.Keeper, + expected.AuthKeeper, + *testkeeper.Keeper, ) { key := storetypes.NewKVStoreKey(escrowv1alpha1.ModuleName) tkey := storetypes.NewTransientStoreKey("transient_test") @@ -151,8 +244,6 @@ func setupEscrowKeeper(t *testing.T) ( encCfg.InterfaceRegistry = ir encCfg.Codec = codec.NewProtoCodec(ir) - escrowv1alpha1.RegisterInterfaces(ir) - bapp := baseapp.NewBaseApp( "escrow", log.NewNopLogger(), @@ -162,8 +253,16 @@ func setupEscrowKeeper(t *testing.T) ( bapp.SetInterfaceRegistry(ir) ctrl := gomock.NewController(t) + authKeeper := setupAuthKeeper(t, ctrl, encCfg.Codec, key) - // mock auth keeper + escrowKeeper := setupEscrowKeeper(t, bapp, encCfg.Codec, key, authKeeper) + testKeeper := setupTestKeeper(t, bapp, encCfg.Codec, key) // register test keeper + + return encCfg.Codec, testCtx.Ctx, escrowKeeper, authKeeper, testKeeper +} + +// mock auth keeper +func setupAuthKeeper(t *testing.T, ctrl *gomock.Controller, cdc codec.Codec, key *storetypes.KVStoreKey) expected.AuthKeeper { authKeeper := escrowtestutil.NewMockAuthKeeper(ctrl) authPrefix := []byte{0xff, 0x00} @@ -204,7 +303,7 @@ func setupEscrowKeeper(t *testing.T) ( setAccount := func(ctx context.Context, account sdk.AccountI) { store := runtime.NewKVStoreService(key).OpenKVStore(ctx) - bz, err := encCfg.Codec.Marshal(account) + bz, err := cdc.Marshal(account) assert.NoError(t, err) key := append(append([]byte{}, accountPrefix...), account.GetAddress()...) @@ -225,16 +324,35 @@ func setupEscrowKeeper(t *testing.T) ( setAccount(ctx, account) }).AnyTimes() + return authKeeper +} + +func setupEscrowKeeper(t *testing.T, bapp *baseapp.BaseApp, cdc codec.Codec, key *storetypes.KVStoreKey, authKeeper expected.AuthKeeper) *keeper.Keeper { authority := authtypes.NewModuleAddress(govtypes.ModuleName) - k, err := keeper.NewKeeper(encCfg.Codec, runtime.NewKVStoreService(key), authority, bapp.MsgServiceRouter(), authKeeper) + escrowKeeper, err := keeper.NewKeeper(cdc, runtime.NewKVStoreService(key), authority, bapp.MsgServiceRouter(), authKeeper) assert.NoError(t, err) - msgServer := keeper.NewMsgServer(*k) - queryServer := keeper.NewQueryServer(*k) + msgServer := keeper.NewMsgServer(*escrowKeeper) + queryServer := keeper.NewQueryServer(*escrowKeeper) + escrowv1alpha1.RegisterInterfaces(cdc.InterfaceRegistry()) escrowv1alpha1.RegisterMsgServer(bapp.MsgServiceRouter(), msgServer) escrowv1alpha1.RegisterQueryServer(bapp.GRPCQueryRouter(), queryServer) - return *k, authKeeper, encCfg.InterfaceRegistry.SigningContext().AddressCodec(), testCtx.Ctx + return escrowKeeper +} + +func setupTestKeeper(t *testing.T, bapp *baseapp.BaseApp, cdc codec.Codec, key *storetypes.KVStoreKey) *testkeeper.Keeper { + testKeeper, err := testkeeper.NewKeeper(cdc, runtime.NewKVStoreService(key)) + assert.NoError(t, err) + + msgServer := testkeeper.NewMsgServer(*testKeeper) + queryServer := testkeeper.NewQueryServer(*testKeeper) + + testv1alpha1.RegisterInterfaces(cdc.InterfaceRegistry()) + testv1alpha1.RegisterMsgServer(bapp.MsgServiceRouter(), msgServer) + testv1alpha1.RegisterQueryServer(bapp.GRPCQueryRouter(), queryServer) + + return testKeeper } diff --git a/x/escrow/keeper/internal/msg_server_test.go b/x/escrow/keeper/internal/msg_server_test.go index 18bf26a..fdc18f8 100644 --- a/x/escrow/keeper/internal/msg_server_test.go +++ b/x/escrow/keeper/internal/msg_server_test.go @@ -1,11 +1,11 @@ package internal_test import ( - codectypes "github.com/cosmos/cosmos-sdk/codec/types" sdk "github.com/cosmos/cosmos-sdk/types" escrowv1alpha1 "github.com/0tech/andromeda/x/escrow/andromeda/escrow/v1alpha1" "github.com/0tech/andromeda/x/escrow/testutil" + testv1alpha1 "github.com/0tech/andromeda/x/test/andromeda/test/v1alpha1" ) func (s *KeeperTestSuite) TestMsgCreateAgent() { @@ -68,7 +68,7 @@ func (s *KeeperTestSuite) TestMsgSubmitProposal() { s.Require().NotNil(res) events := ctx.EventManager().Events() - s.Require().Len(events, 1) + s.Require().NotEmpty(events) eventExpected, err := sdk.TypedEventToEvent(&escrowv1alpha1.EventSubmitProposal{ Id: s.proposalLast + 1, @@ -78,7 +78,7 @@ func (s *KeeperTestSuite) TestMsgSubmitProposal() { PostActions: subject.PostActions, }) s.Require().NoError(err) - s.Require().Equal(eventExpected, events[0]) + s.Require().Equal(eventExpected, events[len(events)-1]) return nil } @@ -102,6 +102,14 @@ func (s *KeeperTestSuite) TestMsgSubmitProposal() { return escrowv1alpha1.ErrInvalidAddress }, }, + "proposer not actions signer": { + Malleate: func(subject *escrowv1alpha1.MsgSubmitProposal) { + subject.Proposer = s.addressBytesToString(createRandomAccounts(1)[0]) + }, + Error: func() error { + return escrowv1alpha1.ErrPermissionDenied + }, + }, }, { "nil agent": { @@ -122,6 +130,14 @@ func (s *KeeperTestSuite) TestMsgSubmitProposal() { return escrowv1alpha1.ErrInvalidAddress }, }, + "agent not actions signer": { + Malleate: func(subject *escrowv1alpha1.MsgSubmitProposal) { + subject.Agent = s.addressBytesToString(createRandomAccounts(1)[0]) + }, + Error: func() error { + return escrowv1alpha1.ErrPermissionDenied + }, + }, }, { "nil pre_actions": { @@ -131,7 +147,13 @@ func (s *KeeperTestSuite) TestMsgSubmitProposal() { }, "valid pre_actions": { Malleate: func(subject *escrowv1alpha1.MsgSubmitProposal) { - subject.PreActions = []*codectypes.Any{} + subject.PreActions = s.encodeMsgs([]sdk.Msg{ + &testv1alpha1.MsgSend{ + Sender: s.addressBytesToString(s.seller), + Recipient: s.addressBytesToString(s.agentIdle), + Asset: "snake", + }, + }) }, }, }, @@ -143,7 +165,13 @@ func (s *KeeperTestSuite) TestMsgSubmitProposal() { }, "valid post_actions": { Malleate: func(subject *escrowv1alpha1.MsgSubmitProposal) { - subject.PostActions = []*codectypes.Any{} + subject.PostActions = s.encodeMsgs([]sdk.Msg{ + &testv1alpha1.MsgSend{ + Sender: s.addressBytesToString(s.agentIdle), + Recipient: s.addressBytesToString(s.seller), + Asset: "voucher", + }, + }) }, }, }, @@ -162,7 +190,7 @@ func (s *KeeperTestSuite) TestMsgExec() { s.Require().NotNil(res) events := ctx.EventManager().Events() - s.Require().Len(events, 1) + s.Require().NotEmpty(events) eventExpected, err := sdk.TypedEventToEvent(&escrowv1alpha1.EventExec{ Proposal: subject.Proposal, @@ -170,10 +198,7 @@ func (s *KeeperTestSuite) TestMsgExec() { Actions: subject.Actions, }) s.Require().NoError(err) - - for _, compare := range []int{0, 1, 2} { - s.Require().Equal(eventExpected.Attributes[compare], events[0].Attributes[compare]) - } + s.Require().Equal(eventExpected, events[len(events)-1]) return nil } @@ -217,6 +242,14 @@ func (s *KeeperTestSuite) TestMsgExec() { return escrowv1alpha1.ErrInvalidAddress }, }, + "executor not actions signer": { + Malleate: func(subject *escrowv1alpha1.MsgExec) { + subject.Executor = s.addressBytesToString(createRandomAccounts(1)[0]) + }, + Error: func() error { + return escrowv1alpha1.ErrPermissionDenied + }, + }, }, { "nil agent": { @@ -237,6 +270,14 @@ func (s *KeeperTestSuite) TestMsgExec() { return escrowv1alpha1.ErrInvalidAddress }, }, + "agent not actions signer": { + Malleate: func(subject *escrowv1alpha1.MsgExec) { + subject.Agent = s.addressBytesToString(createRandomAccounts(1)[0]) + }, + Error: func() error { + return escrowv1alpha1.ErrPermissionDenied + }, + }, }, { "nil actions": { @@ -246,7 +287,18 @@ func (s *KeeperTestSuite) TestMsgExec() { }, "valid actions": { Malleate: func(subject *escrowv1alpha1.MsgExec) { - subject.Actions = []*codectypes.Any{} + subject.Actions = s.encodeMsgs([]sdk.Msg{ + &testv1alpha1.MsgSend{ + Sender: s.addressBytesToString(s.stranger), + Recipient: s.addressBytesToString(s.agentAny), + Asset: "voucher", + }, + &testv1alpha1.MsgSend{ + Sender: s.addressBytesToString(s.agentAny), + Recipient: s.addressBytesToString(s.stranger), + Asset: "dog", + }, + }) }, }, }, diff --git a/x/escrow/keeper/internal/proposal_test.go b/x/escrow/keeper/internal/proposal_test.go index 60073d9..5273fbf 100644 --- a/x/escrow/keeper/internal/proposal_test.go +++ b/x/escrow/keeper/internal/proposal_test.go @@ -2,11 +2,11 @@ package internal_test import ( codectypes "github.com/cosmos/cosmos-sdk/codec/types" - simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims" sdk "github.com/cosmos/cosmos-sdk/types" escrowv1alpha1 "github.com/0tech/andromeda/x/escrow/andromeda/escrow/v1alpha1" "github.com/0tech/andromeda/x/escrow/testutil" + testv1alpha1 "github.com/0tech/andromeda/x/test/andromeda/test/v1alpha1" ) func (s *KeeperTestSuite) TestSubmitProposal() { @@ -62,7 +62,7 @@ func (s *KeeperTestSuite) TestSubmitProposal() { }, "agent not found": { Malleate: func(subject *submitProposal) { - subject.agent = simtestutil.CreateRandomAccounts(1)[0] + subject.agent = createRandomAccounts(1)[0] }, Error: func() error { return escrowv1alpha1.ErrAgentNotFound @@ -72,14 +72,40 @@ func (s *KeeperTestSuite) TestSubmitProposal() { { "valid pre_actions": { Malleate: func(subject *submitProposal) { - subject.preActions = []*codectypes.Any{} + subject.preActions = s.encodeMsgs([]sdk.Msg{ + &testv1alpha1.MsgSend{ + Sender: s.addressBytesToString(s.seller), + Recipient: s.addressBytesToString(s.agentIdle), + Asset: "snake", + }, + }) + }, + }, + "pre_actions failing": { + Malleate: func(subject *submitProposal) { + subject.preActions = s.encodeMsgs([]sdk.Msg{ + &testv1alpha1.MsgSend{ + Sender: s.addressBytesToString(s.seller), + Recipient: s.addressBytesToString(s.agentIdle), + Asset: "whale", // proposer does not have "whale" + }, + }) + }, + Error: func() error { + return testv1alpha1.ErrAssetNotFound }, }, }, { "valid post_actions": { Malleate: func(subject *submitProposal) { - subject.postActions = []*codectypes.Any{} + subject.postActions = s.encodeMsgs([]sdk.Msg{ + &testv1alpha1.MsgSend{ + Sender: s.addressBytesToString(s.agentIdle), + Recipient: s.addressBytesToString(s.seller), + Asset: "voucher", + }, + }) }, }, }, diff --git a/x/test/keeper/internal/keys.go b/x/test/keeper/internal/keys.go index cd9bd1f..c7044f5 100644 --- a/x/test/keeper/internal/keys.go +++ b/x/test/keeper/internal/keys.go @@ -4,4 +4,4 @@ import ( "cosmossdk.io/collections" ) -var assetsKeyPrefix = collections.NewPrefix(0x00) +var assetsKeyPrefix = collections.NewPrefix(append([]byte{0xff}, []byte("andromeda/test/asset")...)) From ceaaa36e75a49d5d9b5675b23b72774e07719703 Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Mon, 22 Jan 2024 11:44:27 +0000 Subject: [PATCH 06/62] Add documentations --- go.work.sum | 426 ++++++++++++++++++++ x/README.md | 10 + x/escrow/README.md | 775 +++++++++++++++++++++++++++++++++++++ x/escrow/go.mod | 3 +- x/escrow/go.sum | 7 +- x/escrow/module/autocli.go | 189 +++++++++ 6 files changed, 1406 insertions(+), 4 deletions(-) create mode 100644 x/README.md create mode 100644 x/escrow/README.md diff --git a/go.work.sum b/go.work.sum index 0bf8838..fc0cb19 100644 --- a/go.work.sum +++ b/go.work.sum @@ -1,5 +1,9 @@ 4d63.com/gocheckcompilerdirectives v1.2.1/go.mod h1:yjDJSxmDTtIHHCqX0ufRYZDL6vQtMG7tJdKVeWwsqvs= 4d63.com/gochecknoglobals v0.2.1/go.mod h1:KRE8wtJB3CXCsb1xy421JfTHIIbmT3U5ruxw2Qu8fSU= +cloud.google.com/go v0.0.0-20170206221025-ce650573d812/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +cloud.google.com/go v0.110.0/go.mod h1:SJnCLqQ0FCFGSZMUNUf84MV3Aia54kn7pi8st7tMzaY= +cloud.google.com/go v0.110.2/go.mod h1:k04UEeEtb6ZBRTv3dZz4CeJC3jKGxyhl0sAiVVquxiw= +cloud.google.com/go v0.110.8/go.mod h1:Iz8AkXJf1qmxC3Oxoep8R1T36w8B92yU29PcBhHO5fk= cloud.google.com/go/accessapproval v1.7.4/go.mod h1:/aTEh45LzplQgFYdQdwPMR9YdX0UlhBmvB84uAmQKUc= cloud.google.com/go/accesscontextmanager v1.8.4/go.mod h1:ParU+WbMpD34s5JFEnGAnPBYAgUHozaTmDJU7aCU9+M= cloud.google.com/go/aiplatform v1.54.0/go.mod h1:pwZMGvqe0JRkI1GWSZCtnAfrR4K1bv65IHILGA//VEU= @@ -24,6 +28,12 @@ cloud.google.com/go/channel v1.17.3/go.mod h1:QcEBuZLGGrUMm7kNj9IbU1ZfmJq2apotsV cloud.google.com/go/cloudbuild v1.15.0/go.mod h1:eIXYWmRt3UtggLnFGx4JvXcMj4kShhVzGndL1LwleEM= cloud.google.com/go/clouddms v1.7.3/go.mod h1:fkN2HQQNUYInAU3NQ3vRLkV2iWs8lIdmBKOx4nrL6Hc= cloud.google.com/go/cloudtasks v1.12.4/go.mod h1:BEPu0Gtt2dU6FxZHNqqNdGqIG86qyWKBPGnsb7udGY0= +cloud.google.com/go/compute v1.18.0/go.mod h1:1X7yHxec2Ga+Ss6jPyjxRxpu2uu7PLgsOVXvgU0yacs= +cloud.google.com/go/compute v1.19.0/go.mod h1:rikpw2y+UMidAe9tISo04EHNOIf42RLYF/q8Bs93scU= +cloud.google.com/go/compute v1.19.3/go.mod h1:qxvISKp/gYnXkSAD1ppcSOveRAmzxicEv/JlizULFrI= +cloud.google.com/go/compute v1.20.1/go.mod h1:4tCnrn48xsqlwSAiLf1HXMQk8CONslYbdiEZc9FEIbM= +cloud.google.com/go/compute v1.23.0/go.mod h1:4tCnrn48xsqlwSAiLf1HXMQk8CONslYbdiEZc9FEIbM= +cloud.google.com/go/compute v1.23.1/go.mod h1:CqB3xpmPKKt3OJpW2ndFIXnA9A4xAy/F3Xp1ixncW78= cloud.google.com/go/contactcenterinsights v1.12.0/go.mod h1:HHX5wrz5LHVAwfI2smIotQG9x8Qd6gYilaHcLLLmNis= cloud.google.com/go/container v1.28.0/go.mod h1:b1A1gJeTBXVLQ6GGw9/9M4FG94BEGsqJ5+t4d/3N7O4= cloud.google.com/go/containeranalysis v0.11.3/go.mod h1:kMeST7yWFQMGjiG9K7Eov+fPNQcGhb8mXj/UcTiWw9U= @@ -47,6 +57,7 @@ cloud.google.com/go/errorreporting v0.3.0/go.mod h1:xsP2yaAp+OAW4OIm60An2bbLpqIh cloud.google.com/go/essentialcontacts v1.6.5/go.mod h1:jjYbPzw0x+yglXC890l6ECJWdYeZ5dlYACTFL0U/VuM= cloud.google.com/go/eventarc v1.13.3/go.mod h1:RWH10IAZIRcj1s/vClXkBgMHwh59ts7hSWcqD3kaclg= cloud.google.com/go/filestore v1.8.0/go.mod h1:S5JCxIbFjeBhWMTfIYH2Jx24J6BqjwpkkPl+nBA5DlI= +cloud.google.com/go/firestore v1.9.0/go.mod h1:HMkjKHNTtRyZNiMzu7YAsLr9K3X2udY2AMwDaMEQiiE= cloud.google.com/go/firestore v1.14.0/go.mod h1:96MVaHLsEhbvkBEdZgfN+AS/GIkco1LRpH9Xp9YZfzQ= cloud.google.com/go/functions v1.15.4/go.mod h1:CAsTc3VlRMVvx+XqXxKqVevguqJpnVip4DdonFsX28I= cloud.google.com/go/gkebackup v1.3.4/go.mod h1:gLVlbM8h/nHIs09ns1qx3q3eaXcGSELgNu1DWXYz1HI= @@ -54,6 +65,8 @@ cloud.google.com/go/gkeconnect v0.8.4/go.mod h1:84hZz4UMlDCKl8ifVW8layK4WHlMAFeq cloud.google.com/go/gkehub v0.14.4/go.mod h1:Xispfu2MqnnFt8rV/2/3o73SK1snL8s9dYJ9G2oQMfc= cloud.google.com/go/gkemulticloud v1.0.3/go.mod h1:7NpJBN94U6DY1xHIbsDqB2+TFZUfjLUKLjUX8NGLor0= cloud.google.com/go/gsuiteaddons v1.6.4/go.mod h1:rxtstw7Fx22uLOXBpsvb9DUbC+fiXs7rF4U29KHM/pE= +cloud.google.com/go/iam v0.12.0/go.mod h1:knyHGviacl11zrtZUoDuYpDgLjvr28sLQaG0YB2GYAY= +cloud.google.com/go/iam v1.1.1/go.mod h1:A5avdyVL2tCppe4unb0951eI9jreack+RJ0/d+KUZOU= cloud.google.com/go/iap v1.9.3/go.mod h1:DTdutSZBqkkOm2HEOTBzhZxh2mwwxshfD/h3yofAiCw= cloud.google.com/go/ids v1.4.4/go.mod h1:z+WUc2eEl6S/1aZWzwtVNWoSZslgzPxAboS0lZX0HjI= cloud.google.com/go/iot v1.7.4/go.mod h1:3TWqDVvsddYBG++nHSZmluoCAVGr1hAcabbWZNKEZLk= @@ -61,6 +74,9 @@ cloud.google.com/go/kms v1.15.5/go.mod h1:cU2H5jnp6G2TDpUGZyqTCoy1n16fbubHZjmVXS cloud.google.com/go/language v1.12.2/go.mod h1:9idWapzr/JKXBBQ4lWqVX/hcadxB194ry20m/bTrhWc= cloud.google.com/go/lifesciences v0.9.4/go.mod h1:bhm64duKhMi7s9jR9WYJYvjAFJwRqNj+Nia7hF0Z7JA= cloud.google.com/go/logging v1.8.1/go.mod h1:TJjR+SimHwuC8MZ9cjByQulAMgni+RkXeI3wwctHJEI= +cloud.google.com/go/longrunning v0.4.1/go.mod h1:4iWDqhBZ70CvZ6BfETbvam3T8FMvLK+eFj0E6AaRQTo= +cloud.google.com/go/longrunning v0.5.0/go.mod h1:0JNuqRShmscVAhIACGtskSAWtqtOoPkwP0YF1oVEchc= +cloud.google.com/go/longrunning v0.5.2/go.mod h1:nqo6DQbNV2pXhGDbDMoN2bWz68MjZUzqv2YttZiveCs= cloud.google.com/go/longrunning v0.5.4/go.mod h1:zqNVncI0BOP8ST6XQD1+VcvuShMmq7+xFSzOL++V0dI= cloud.google.com/go/managedidentities v1.6.4/go.mod h1:WgyaECfHmF00t/1Uk8Oun3CQ2PGUtjc3e9Alh79wyiM= cloud.google.com/go/maps v1.6.1/go.mod h1:4+buOHhYXFBp58Zj/K+Lc1rCmJssxxF4pJ5CJnhdz18= @@ -113,29 +129,46 @@ cloud.google.com/go/vpcaccess v1.7.4/go.mod h1:lA0KTvhtEOb/VOdnH/gwPuOzGgM+CWsmG cloud.google.com/go/webrisk v1.9.4/go.mod h1:w7m4Ib4C+OseSr2GL66m0zMBywdrVNTDKsdEsfMl7X0= cloud.google.com/go/websecurityscanner v1.6.4/go.mod h1:mUiyMQ+dGpPPRkHgknIZeCzSHJ45+fY4F52nZFDHm2o= cloud.google.com/go/workflows v1.12.3/go.mod h1:fmOUeeqEwPzIU81foMjTRQIdwQHADi/vEr1cx9R1m5g= +cosmossdk.io/errors v1.0.0/go.mod h1:+hJZLuhdDE0pYN8HkOrVNwrIOYvUGnn6+4fjnJs/oV0= +cosmossdk.io/log v1.2.1/go.mod h1:GNSCc/6+DhFIj1aLn/j7Id7PaO8DzNylUZoOYBL9+I4= +cosmossdk.io/store v1.0.0/go.mod h1:ABMprwjvx6IpMp8l06TwuMrj6694/QP5NIW+X6jaTYc= +cosmossdk.io/x/tx v0.12.0/go.mod h1:qTth2coAGkwCwOCjqQ8EAQg+9udXNRzcnSbMgGKGEI0= +gioui.org v0.0.0-20210308172011-57750fc8a0a6/go.mod h1:RSH6KIUZ0p2xy5zHDxgAM4zumjgTw83q2ge/PI+yyw8= github.com/Abirdcfly/dupword v0.0.11/go.mod h1:wH8mVGuf3CP5fsBTkfWwwwKTjDnVVCxtU8d8rgeVYXA= github.com/Antonboom/errname v0.1.9/go.mod h1:nLTcJzevREuAsgTbG85UsuiWpMpAqbKD1HNZ29OzE58= github.com/Antonboom/nilnil v0.1.3/go.mod h1:iOov/7gRcXkeEU+EMGpBu2ORih3iyVEiWjeste1SJm8= github.com/BurntSushi/toml v1.2.1/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ= github.com/CloudyKit/fastprinter v0.0.0-20200109182630-33d98a066a53/go.mod h1:+3IMCy2vIlbG1XG/0ggNQv0SvxCAIpPM5b1nCz56Xno= github.com/CloudyKit/jet/v6 v6.2.0/go.mod h1:d3ypHeIRNo2+XyqnGA8s+aphtcVpjP5hPwP/Lzo7Ro4= +github.com/DataDog/zstd v1.4.5/go.mod h1:1jcaCB/ufaK+sKp1NBhlGmpz41jOoPQ35bpF36t7BBo= github.com/Djarvur/go-err113 v0.0.0-20210108212216-aea10b59be24/go.mod h1:4UJr5HIiMZrwgkSPdsjy2uOQExX/WEILpIrO9UPGuXs= github.com/GaijinEntertainment/go-exhaustruct/v2 v2.3.0/go.mod h1:b3g59n2Y+T5xmcxJL+UEG2f8cQploZm1mR/v6BW0mU0= +github.com/GoogleCloudPlatform/cloudsql-proxy v0.0.0-20190129172621-c8b1d7a94ddf/go.mod h1:aJ4qN3TfrelA6NZ6AXsXRfmEVaYin3EDbSPJrKS8OXo= github.com/HdrHistogram/hdrhistogram-go v1.1.2/go.mod h1:yDgFjdqOqDEKOvasDdhWNXYg9BVp4O+o5f6V/ehm6Oo= +github.com/Joker/hpp v1.0.0/go.mod h1:8x5n+M1Hp5hC0g8okX3sR3vFQwynaX/UgSOM9MeBKzY= github.com/Joker/jade v1.1.3/go.mod h1:T+2WLyt7VH6Lp0TRxQrUYEs64nRc83wkMQrfeIQKduM= github.com/Masterminds/semver v1.5.0/go.mod h1:MB6lktGJrhw8PrUyiEoblNEGEQ+RzHPF078ddwwvV3Y= github.com/Masterminds/semver/v3 v3.2.0/go.mod h1:qvl/7zhW3nngYb5+80sSMF+FG2BjYrf8m9wsX0PNOMQ= +github.com/Microsoft/go-winio v0.5.2/go.mod h1:WpS1mjBmmwHBEWmogvA2mj8546UReBk4v8QkMxJ6pZY= github.com/OpenPeeDeeP/depguard v1.1.1/go.mod h1:JtAMzWkmFEzDPyAd+W0NHl1lvpQKTvT9jnRVsohBKpc= github.com/ProtonMail/go-crypto v0.0.0-20230217124315-7d5c6f04bbb8/go.mod h1:I0gYDMZ6Z5GRU7l58bNFSkPTFN6Yl12dsUlAZ8xy98g= github.com/Shopify/goreferrer v0.0.0-20220729165902-8cddb4f5de06/go.mod h1:7erjKLwalezA0k99cWs5L11HWOAPNjdUZ6RxH1BXbbM= +github.com/aclements/go-gg v0.0.0-20170118225347-6dbb4e4fefb0/go.mod h1:55qNq4vcpkIuHowELi5C8e+1yUHtoLoOUR9QU5j7Tes= github.com/aclements/go-moremath v0.0.0-20210112150236-f10218a38794/go.mod h1:7e+I0LQFUI9AXWxOfsQROs9xPhoJtbsyWcjJqDd4KPY= github.com/acomagu/bufpipe v1.0.4/go.mod h1:mxdxdup/WdsKVreO5GpW4+M/1CE2sMG4jeGJ2sYmHc4= +github.com/aead/siphash v1.0.1/go.mod h1:Nywa3cDsYNNK3gaciGTWPwHt0wlpNV15vwmswBAUSII= +github.com/ajstarks/svgo v0.0.0-20180226025133-644b8db467af/go.mod h1:K08gAheRH3/J6wwsYMMT4xOr94bZjxIelGM0+d/wbFw= +github.com/ajstarks/svgo v0.0.0-20210923152817-c3b6e2f0c527/go.mod h1:K08gAheRH3/J6wwsYMMT4xOr94bZjxIelGM0+d/wbFw= github.com/alecthomas/kingpin/v2 v2.3.2/go.mod h1:0gyi0zQnjuFk8xrkNKamJoyUo382HRL7ATRpFZCw6tE= github.com/alecthomas/units v0.0.0-20211218093645-b94a6e3cc137/go.mod h1:OMCwj8VM1Kc9e19TLln2VL61YJF0x1XFtfdL4JdbSyE= github.com/alexkohler/prealloc v1.0.0/go.mod h1:VetnK3dIgFBBKmg0YnD9F9x6Icjd+9cvfHR56wJVlKE= github.com/alingse/asasalint v0.0.11/go.mod h1:nCaoMhw7a9kSJObvQyVzNTPBDbNpdocqrSP7t/cW5+I= +github.com/andybalholm/brotli v1.0.4/go.mod h1:fO7iG3H7G2nSZ7m0zPUDn85XEX2GTukHGRSepvi9Eig= github.com/andybalholm/brotli v1.0.5/go.mod h1:fO7iG3H7G2nSZ7m0zPUDn85XEX2GTukHGRSepvi9Eig= +github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be/go.mod h1:ySMOLuWl6zY27l47sB3qLNK6tF2fkHG55UZxx8oIVo4= github.com/armon/go-metrics v0.4.0/go.mod h1:E6amYzXo6aW1tqzoZGT755KkbgrJsSdpwZ+3JqfkOG4= +github.com/armon/go-radix v1.0.0/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= +github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5/go.mod h1:wHh0iHkYZB8zMSxRWpUBQtwG5a7fFgvEO+odwuTv2gs= github.com/ashanbrown/forbidigo v1.5.1/go.mod h1:Y8j9jy9ZYAEHXdu723cUlraTqbzjKF1MUyfOKL+AjcU= github.com/ashanbrown/makezero v1.1.1/go.mod h1:i1bJLCRSCHOcOa9Y6MyF2FTfMZMFdHvxKHxgO5Z1axI= github.com/aws/aws-sdk-go v1.40.45/go.mod h1:585smgzpB/KqRA+K3y/NL/oYRqQvpNJYvLm+LY1U59Q= @@ -143,35 +176,84 @@ github.com/aws/aws-sdk-go-v2 v1.9.1/go.mod h1:cK/D0BBs0b/oWPIcX/Z/obahJK1TT7IPVj github.com/aws/aws-sdk-go-v2/service/cloudwatch v1.8.1/go.mod h1:CM+19rL1+4dFWnOQKwDc7H1KwXTz+h61oUSHyhV0b3o= github.com/aws/smithy-go v1.8.0/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/aymerick/douceur v0.2.0/go.mod h1:wlT5vV2O3h55X9m7iVYN0TBM0NH/MmbLnd30/FjWUq4= +github.com/benbjohnson/clock v1.3.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= github.com/bkielbasa/cyclop v1.2.0/go.mod h1:qOI0yy6A7dYC4Zgsa72Ppm9kONl0RoIlPbzot9mhmeI= github.com/blizzy78/varnamelen v0.8.0/go.mod h1:V9TzQZ4fLJ1DSrjVDfl89H7aMnTvKkApdHeyESmyR7k= github.com/bombsimon/wsl/v3 v3.4.0/go.mod h1:KkIB+TXkqy6MvK9BDZVbZxKNYsE1/oLRJbIFtf14qqo= +github.com/boombuler/barcode v1.0.0/go.mod h1:paBWMcWSl3LHKBqUq+rly7CNSldXjb2rDl3JlRe0mD8= +github.com/boombuler/barcode v1.0.1/go.mod h1:paBWMcWSl3LHKBqUq+rly7CNSldXjb2rDl3JlRe0mD8= github.com/breml/bidichk v0.2.4/go.mod h1:7Zk0kRFt1LIZxtQdl9W9JwGAcLTTkOs+tN7wuEYGJ3s= github.com/breml/errchkjson v0.3.1/go.mod h1:XroxrzKjdiutFyW3nWhw34VGg7kiMsDQox73yWCGI2U= +github.com/btcsuite/btcd v0.20.1-beta/go.mod h1:wVuoA8VJLEcwgqHBwHmzLRazpKxTv13Px/pDuV7OomQ= +github.com/btcsuite/btcd v0.22.0-beta.0.20220111032746-97732e52810c/go.mod h1:tjmYdS6MLJ5/s0Fj4DbLgSbDHbEqLJrtnHecBFkdz5M= +github.com/btcsuite/btcd v0.23.0 h1:V2/ZgjfDFIygAX3ZapeigkVBoVUtOJKSwrhZdlpSvaA= +github.com/btcsuite/btcd v0.23.0/go.mod h1:0QJIIN1wwIXF/3G/m87gIwGniDMDQqjVn4SZgnFpsYY= +github.com/btcsuite/btcd/btcec/v2 v2.1.0/go.mod h1:2VzYrv4Gm4apmbVVsSq5bqf1Ec8v56E48Vt0Y/umPgA= +github.com/btcsuite/btcd/btcec/v2 v2.1.3/go.mod h1:ctjw4H1kknNJmRN4iP1R7bTQ+v3GJkZBd6mui8ZsAZE= +github.com/btcsuite/btcd/btcutil v1.0.0/go.mod h1:Uoxwv0pqYWhD//tfTiipkxNfdhG9UrLwaeswfjfdF0A= +github.com/btcsuite/btcd/btcutil v1.1.0/go.mod h1:5OapHB7A2hBBWLm48mmw4MOHNJCcUBTwmWH/0Jn8VHE= +github.com/btcsuite/btcd/chaincfg/chainhash v1.0.0/go.mod h1:7SFka0XMvUgj3hfZtydOrQY2mwhPclbT2snogU7SQQc= +github.com/btcsuite/btclog v0.0.0-20170628155309-84c8d2346e9f/go.mod h1:TdznJufoqS23FtqVCzL0ZqgP5MqXbb4fg/WgDys70nA= +github.com/btcsuite/btcutil v0.0.0-20190425235716-9e5f4b9a998d/go.mod h1:+5NJ2+qvTyV9exUAL/rxXi3DcLg2Ts+ymUAY5y4NvMg= +github.com/btcsuite/go-socks v0.0.0-20170105172521-4720035b7bfd/go.mod h1:HHNXQzUsZCxOoE+CPiyCTO6x34Zs86zZUiwtpXoGdtg= +github.com/btcsuite/goleveldb v0.0.0-20160330041536-7834afc9e8cd/go.mod h1:F+uVaaLLH7j4eDXPRvw78tMflu7Ie2bzYOH4Y8rRKBY= +github.com/btcsuite/goleveldb v1.0.0/go.mod h1:QiK9vBlgftBg6rWQIj6wFzbPfRjiykIEhBH4obrXJ/I= +github.com/btcsuite/snappy-go v0.0.0-20151229074030-0bdef8d06723/go.mod h1:8woku9dyThutzjeg+3xrA5iCpBRH8XEEg3lh6TiUghc= +github.com/btcsuite/snappy-go v1.0.0/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/buf v1.15.1/go.mod h1:TQeGKam1QMfHy/xsSnnMpxN3JK5HBb6aNvZj4m52gkE= github.com/bufbuild/connect-go v1.5.2/go.mod h1:GmMJYR6orFqD0Y6ZgX8pwQ8j9baizDrIQMm1/a6LnHk= +github.com/bufbuild/protocompile v0.5.1/go.mod h1:G5iLmavmF4NsYtpZFvE3B/zFch2GIY8+wjsYLR/lc40= github.com/butuzov/ireturn v0.1.1/go.mod h1:Wh6Zl3IMtTpaIKbmwzqi6olnM9ptYQxxVacMsOEFPoc= +github.com/bwesterb/go-ristretto v1.2.0/go.mod h1:fUIoIZaG73pV5biE2Blr2xEzDoMj7NFEuV9ekS419A0= github.com/casbin/casbin/v2 v2.37.0/go.mod h1:vByNa/Fchek0KZUgG5wEsl7iFsiviAYKRtgrQfcJqHg= github.com/census-instrumentation/opencensus-proto v0.4.1/go.mod h1:4T9NM4+4Vw91VeyqjLS6ao50K5bOcLKN6Q42XnYaRYw= +github.com/cespare/xxhash/v2 v2.1.2/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= github.com/charithe/durationcheck v0.0.10/go.mod h1:bCWXb7gYRysD1CU3C+u4ceO49LoGOY1C1L6uouGNreQ= github.com/chavacava/garif v0.0.0-20230227094218-b8c73b2037b8/go.mod h1:gakxgyXaaPkxvLw1XQxNGK4I37ys9iBRzNUx/B7pUCo= +github.com/checkpoint-restore/go-criu/v5 v5.3.0/go.mod h1:E/eQpaFtUKGOOSEBZgmKAcn+zUUwWxqcaKZlF54wK8E= +github.com/cheekybits/is v0.0.0-20150225183255-68e9c0620927/go.mod h1:h/aW8ynjgkuj+NQRlZcDbAbM1ORAbXjXX77sX7T289U= github.com/chigopher/pathlib v0.12.0/go.mod h1:EJ5UtJ/sK8Nt6q3VWN+EwZLZ3g0afJiG8NegYiQQ/gQ= +github.com/cilium/ebpf v0.7.0/go.mod h1:/oI2+1shJiTGAMgl6/RgJr36Eo1jzrRcAWbcXO2usCA= github.com/clbanning/mxj v1.8.4/go.mod h1:BVjHeAH+rl9rs6f+QIpeRl0tfu10SXn1pUSa5PVGJng= +github.com/cloudflare/circl v1.1.0/go.mod h1:prBCrKB9DV4poKZY1l9zBXg2QJY7mvgRvtMxxK7fi4I= github.com/cloudflare/circl v1.3.1/go.mod h1:+CauBF6R70Jqcyl8N2hC8pAXYbWkGIezuSbuGLtRhnw= github.com/cncf/udpa/go v0.0.0-20220112060539-c52dc94e7fbe/go.mod h1:6pvJx4me5XPnfI9Z40ddWsdw2W/uZgQLFXToKeRcDiI= github.com/cncf/xds/go v0.0.0-20230607035331-e9ce68804cb4/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= +github.com/cockroachdb/pebble v0.0.0-20230525220056-bb4fc9527b3b/go.mod h1:TkdVsGYRqtULUppt2RbC+YaKtTHnHoWa2apfFrSKABw= github.com/cockroachdb/sentry-go v0.6.1-cockroachdb.2/go.mod h1:8BT+cPK6xvFOcRlk0R8eg+OTkcqI6baNH4xAkpiYVvQ= github.com/codegangsta/inject v0.0.0-20150114235600-33e0aa1cb7c0/go.mod h1:4Zcjuz89kmFXt9morQgcfYZAYZ5n8WHjt81YYWIwtTM= +github.com/cometbft/cometbft v0.38.0/go.mod h1:5Jz0Z8YsHSf0ZaAqGvi/ifioSdVFPtEGrm8Y9T/993k= +github.com/cometbft/cometbft-db v0.7.0/go.mod h1:yiKJIm2WKrt6x8Cyxtq9YTEcIMPcEe4XPxhgX59Fzf0= +github.com/containerd/console v1.0.3/go.mod h1:7LqA/THxQ86k76b8c/EMSiaJ3h1eZkMkXar0TQ1gf3U= +github.com/coreos/bbolt v1.3.2/go.mod h1:iRUV2dpdMOn7Bo10OQBFzIJO9kkE559Wcmn+qkEiiKk= github.com/coreos/go-semver v0.3.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= +github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= +github.com/coreos/go-systemd/v22 v22.3.2/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= +github.com/coreos/go-systemd/v22 v22.3.3-0.20220203105225-a9a7ef127534/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= +github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= +github.com/cosmos/cosmos-sdk v0.50.1/go.mod h1:fsLSPGstCwn6MMsFDMAQWGJj8E4sYsN9Gnu1bGE5imA= +github.com/cpuguy83/go-md2man/v2 v2.0.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= github.com/creachadair/command v0.0.0-20220916173946-56a74cdd66b6/go.mod h1:jN7ZJM5YSVtD3SHmkAdN/cOC1dXiqg2Y9K5Sr5a8Nxw= github.com/curioswitch/go-reassign v0.2.0/go.mod h1:x6OpXuWvgfQaMGks2BZybTngWjT84hqJfKoO8Tt/Roc= +github.com/cyphar/filepath-securejoin v0.2.3/go.mod h1:aPGpWjXOXUn2NCNjFvBE6aRxGGx79pTxQpKOJNYHHl4= github.com/daixiang0/gci v0.10.1/go.mod h1:xtHP9N7AHdNvtRNfcx9gwTDfw7FRJx4bZUsiEfiNNAI= +github.com/davecgh/go-spew v0.0.0-20171005155431-ecdeabc65495/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/decred/dcrd/crypto/blake256 v1.0.0/go.mod h1:sQl2p6Y26YV+ZOcSTP6thNdn47hh8kt6rqSlvmrXFAc= +github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.1/go.mod h1:hyedUtir6IdtD/7lIxGeCxkaw7y45JueMRL4DIyJDKs= +github.com/decred/dcrd/lru v1.0.0/go.mod h1:mxKOwFd7lFjN2GZYsiz/ecgqR6kkYAl+0pz0tEMk218= github.com/denis-tingaikin/go-header v0.4.3/go.mod h1:0wOCWuN71D5qIgE2nz9KrKmuYBAC2Mra5RassOIQ2/c= +github.com/dgraph-io/ristretto v0.0.3/go.mod h1:KPxhHT9ZxKefz+PCeOGsrHpl1qZ7i70dGTu2u+Ahh6E= +github.com/dgryski/go-sip13 v0.0.0-20181026042036-e10d5fee7954/go.mod h1:vAd38F8PWV+bWy6jNmig1y/TA+kYO4g3RSRF0IAv0no= +github.com/djherbis/atime v1.1.0/go.mod h1:28OF6Y8s3NQWwacXc5eZTsEsiMzp7LF8MbXE+XJPdBE= github.com/docker/cli v23.0.1+incompatible/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8= github.com/docker/distribution v2.8.1+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w= github.com/docker/docker v23.0.1+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= github.com/docker/docker-credential-helpers v0.7.0/go.mod h1:rETQfLdHNT3foU5kuNkFR1R1V12OJRRO5lzt2D1b5X0= +github.com/docker/go-units v0.4.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= github.com/eknkc/amber v0.0.0-20171010120322-cdade1c07385/go.mod h1:0vRUJqYpeSZifjYj7uP3BG/gKcuzL9xWVV/Y+cK33KM= +github.com/emicklei/dot v1.4.2/go.mod h1:DeV7GvQtIw4h2u73RKBkkFdvVAz0D9fzeJrgPW6gy/s= github.com/emirpasic/gods v1.18.1/go.mod h1:8tpGGwCnJ5H4r6BWwaV6OrWmMoPhUl5jm/FMNAnJvWQ= github.com/envoyproxy/go-control-plane v0.11.1/go.mod h1:uhMcXKCQMEJHiAb0w+YGefQLaTEw+YhGluxZkrTmD0g= github.com/envoyproxy/protoc-gen-validate v1.0.2/go.mod h1:GpiZQP3dDbg4JouG/NNS7QWXpgx6x8QiMKdmN72jogE= @@ -180,36 +262,63 @@ github.com/ettle/strcase v0.1.1/go.mod h1:hzDLsPC7/lwKyBOywSHEP89nt2pDgdy+No1NBA github.com/facebookgo/ensure v0.0.0-20200202191622-63f1cf65ac4c/go.mod h1:Yg+htXGokKKdzcwhuNDwVvN+uBxDGXJ7G/VN1d8fa64= github.com/facebookgo/stack v0.0.0-20160209184415-751773369052/go.mod h1:UbMTZqLaRiH3MsBH8va0n7s1pQYcu3uTb8G4tygF4Zg= github.com/facebookgo/subset v0.0.0-20200203212716-c811ad88dec4/go.mod h1:5tD+neXqOorC30/tWg0LCSkrqj/AR6gu8yY8/fpw1q0= +github.com/fatih/color v1.9.0/go.mod h1:eQcE1qtQxscV5RaZvpXrrb8Drkc3/DdQ+uUYCNjL+zU= github.com/fatih/structs v1.1.0/go.mod h1:9NiDSp5zOcgEDl+j00MP/WkGVPOlPRLejGD8Ga6PJ7M= github.com/fatih/structtag v1.2.0/go.mod h1:mBJUNpUnHmRKrKlQQlmCrh5PuhftFbNv8Ys4/aAZl94= github.com/felixge/fgprof v0.9.3/go.mod h1:RdbpDgzqYVh/T9fPELJyV7EYJuHB55UTEULNun8eiPw= github.com/firefart/nonamedreturns v1.0.4/go.mod h1:TDhe/tjI1BXo48CmYbUduTV7BdIga8MAO/xbKdcVsGI= github.com/flosch/pongo2/v4 v4.0.2/go.mod h1:B5ObFANs/36VwxxlgKpdchIJHMvHB562PW+BWPhwZD8= +github.com/fogleman/gg v1.2.1-0.20190220221249-0403632d5b90/go.mod h1:R/bRT+9gY/C5z7JzPU0zXsXHKM4/ayA+zqcVNZzPa1k= +github.com/fogleman/gg v1.3.0/go.mod h1:R/bRT+9gY/C5z7JzPU0zXsXHKM4/ayA+zqcVNZzPa1k= +github.com/frankban/quicktest v1.11.3/go.mod h1:wRf/ReqHper53s+kmmSZizM8NamnL3IM0I9ntUbOk+k= github.com/fzipp/gocyclo v0.6.0/go.mod h1:rXPyn8fnlpa0R2csP/31uerbiVBugk5whMdlyaLkLoA= +github.com/getsentry/sentry-go v0.18.0/go.mod h1:Kgon4Mby+FJ7ZWHFUAZgVaIa8sxHtnRJRLTXZr51aKQ= +github.com/getsentry/sentry-go v0.23.0/go.mod h1:lc76E2QywIyW8WuBnwl8Lc4bkmQH4+w1gwTf25trprY= github.com/ghemawat/stream v0.0.0-20171120220530-696b145b53b9/go.mod h1:106OIgooyS7OzLDOpUGgm9fA3bQENb/cFSyyBmMoJDs= +github.com/gliderlabs/ssh v0.3.5/go.mod h1:8XB4KraRrX39qHhT6yxPsHedjA08I/uBVwj4xC+/+z4= github.com/go-chi/chi/v5 v5.0.8/go.mod h1:DslCQbL2OYiznFReuXYUmQ2hGd1aDpCnlMNITLSKoi8= github.com/go-critic/go-critic v0.7.0/go.mod h1:moYzd7GdVXE2C2hYTwd7h0CPcqlUeclsyBRwMa38v64= +github.com/go-fonts/dejavu v0.1.0/go.mod h1:4Wt4I4OU2Nq9asgDCteaAaWZOV24E+0/Pwo0gppep4g= +github.com/go-fonts/latin-modern v0.2.0/go.mod h1:rQVLdDMK+mK1xscDwsqM5J8U2jrRa3T0ecnM9pNujks= +github.com/go-fonts/liberation v0.1.1/go.mod h1:K6qoJYypsmfVjWg8KOVDQhLc8UDgIK2HYqyqAO9z7GY= +github.com/go-fonts/liberation v0.2.0/go.mod h1:K6qoJYypsmfVjWg8KOVDQhLc8UDgIK2HYqyqAO9z7GY= +github.com/go-fonts/stix v0.1.0/go.mod h1:w/c1f0ldAUlJmLBvlbkvVXLAD+tAMqobIIQpmnUIzUY= github.com/go-git/gcfg v1.5.0/go.mod h1:5m20vg6GwYabIxaOonVkTdrILxQMpEShl1xiMF4ua+E= +github.com/go-git/go-billy/v5 v5.3.1/go.mod h1:pmpqyWchKfYfrkb/UVH4otLvyi/5gJlGI4Hb3ZqZ3W0= github.com/go-git/go-billy/v5 v5.4.1/go.mod h1:vjbugF6Fz7JIflbVpl1hJsGjSHNltrSw45YK/ukIvQg= +github.com/go-git/go-git-fixtures/v4 v4.3.1/go.mod h1:8LHG1a3SRW71ettAD/jW13h8c6AqjVSeL11RAdgaqpo= github.com/go-git/go-git/v5 v5.6.1/go.mod h1:mvyoL6Unz0PiTQrGQfSfiLFhBH1c1e84ylC2MDs4ee8= +github.com/go-latex/latex v0.0.0-20210118124228-b3d85cf34e07/go.mod h1:CO1AlKB2CSIqUrmQPqA0gdRIlnLEY0gK5JGjh37zN5U= +github.com/go-latex/latex v0.0.0-20210823091927-c0d11ff05a81/go.mod h1:SX0U8uGpxhq9o2S/CELCSUxEWWAuoCUcVCQWv7G2OCk= +github.com/go-logfmt/logfmt v0.5.1/go.mod h1:WYhtIu8zTZfxdn5+rREduYbwxfcBr/Vr6KEVveWlfTs= +github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= github.com/go-logr/logr v1.2.3/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= github.com/go-martini/martini v0.0.0-20170121215854-22fa46961aab/go.mod h1:/P9AEU963A2AYjv4d1V5eVL1CQbEJq6aCNHDDjibzu8= +github.com/go-pdf/fpdf v0.5.0/go.mod h1:HzcnA+A23uwogo0tp9yU+l3V+KXhiESpt1PMayhOh5M= +github.com/go-sql-driver/mysql v1.4.1/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w= github.com/go-toolsmith/astcast v1.1.0/go.mod h1:qdcuFWeGGS2xX5bLM/c3U9lewg7+Zu4mr+xPwZIB4ZU= github.com/go-toolsmith/astcopy v1.1.0/go.mod h1:hXM6gan18VA1T/daUEHCFcYiW8Ai1tIwIzHY6srfEAw= +github.com/go-toolsmith/astequal v1.0.3/go.mod h1:9Ai4UglvtR+4up+bAD4+hCj7iTo4m/OXVTSLnCyTAx4= github.com/go-toolsmith/astequal v1.1.0/go.mod h1:sedf7VIdCL22LD8qIvv7Nn9MuWJruQA/ysswh64lffQ= github.com/go-toolsmith/astfmt v1.1.0/go.mod h1:OrcLlRwu0CuiIBp/8b5PYF9ktGVZUjlNMV634mhwuQ4= github.com/go-toolsmith/astp v1.1.0/go.mod h1:0T1xFGz9hicKs8Z5MfAqSUitoUYS30pDMsRVIDHs8CA= +github.com/go-toolsmith/strparse v1.0.0/go.mod h1:YI2nUKP9YGZnL/L1/DLFBfixrcjslWct4wyljWhSRy8= github.com/go-toolsmith/strparse v1.1.0/go.mod h1:7ksGy58fsaQkGQlY8WVoBFNyEPMGuJin1rfoPS4lBSQ= github.com/go-toolsmith/typep v1.1.0/go.mod h1:fVIw+7zjdsMxDA3ITWnH1yOiw1rnTQKCsF/sk2H/qig= github.com/go-xmlfmt/xmlfmt v1.1.2/go.mod h1:aUCEOzzezBEjDBbFBoSiya/gduyIiWYRP6CnSFIV8AM= github.com/go-zookeeper/zk v1.0.2/go.mod h1:nOB03cncLtlp4t+UAkGSV+9beXP/akpekBwL+UX1Qcw= github.com/gobwas/glob v0.2.3/go.mod h1:d3Ez4x06l9bZtSvzIay5+Yzi0fmZzPgnTbPcKjJAkT8= +github.com/godbus/dbus/v5 v5.0.6/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= github.com/gofrs/flock v0.8.1/go.mod h1:F1TvTiK9OcQqauNUHlbJvyl9Qa1QvF/gOUDKA14jxHU= github.com/gofrs/uuid v4.4.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM= github.com/gofrs/uuid/v5 v5.0.0/go.mod h1:CDOjlDMVAtN56jqyRUZh58JT31Tiw7/oQyEXZV+9bD8= github.com/gogo/status v1.1.0/go.mod h1:BFv9nrluPLmrS0EmGVvLaPNmRosr9KapBYd5/hpY1WM= github.com/golang-jwt/jwt/v4 v4.0.0/go.mod h1:/xlHOz8bRuivTWchD4jCa+NbatV+wEUSzwAxVc6locg= +github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0/go.mod h1:E/TSTwGwJL78qG/PmXZO1EjYhfJinVAhrmmHX6Z8B9k= +github.com/golang/glog v1.1.0/go.mod h1:pfYeQZ3JWZoXTV5sFc986z3HTpwQs9At6P4ImfuP3NQ= +github.com/golang/glog v1.1.2/go.mod h1:zR+okUeTbrL6EL3xHUDxZuEtGv04p5shwip1+mL/rLQ= +github.com/golang/groupcache v0.0.0-20190129154638-5b532d6fd5ef/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golangci/check v0.0.0-20180506172741-cfe4005ccda2/go.mod h1:k9Qvh+8juN+UKMCS/3jFtGICgW8O96FVaZsaxdzDkR4= github.com/golangci/dupl v0.0.0-20180902072040-3e9179ac440a/go.mod h1:ryS0uhF+x9jgbj/N71xsEqODy9BN81/GonCZiOzirOk= github.com/golangci/go-misc v0.0.0-20220329215616-d24fe342adfe/go.mod h1:gjqyPShc/m8pEMpk0a3SeagVb0kaqvhscv+i9jI5ZhQ= @@ -220,41 +329,76 @@ github.com/golangci/maligned v0.0.0-20180506175553-b1d89398deca/go.mod h1:tvlJhZ github.com/golangci/misspell v0.4.0/go.mod h1:W6O/bwV6lGDxUCChm2ykw9NQdd5bYd1Xkjo88UcWyJc= github.com/golangci/revgrep v0.0.0-20220804021717-745bb2f7c2e6/go.mod h1:0AKcRCkMoKvUvlf89F6O7H2LYdhr1zBh736mBItOdRs= github.com/golangci/unconvert v0.0.0-20180507085042-28b1c447d1f4/go.mod h1:Izgrg8RkN3rCIMLGE9CyYmU9pY2Jer6DgANEnZ/L/cQ= +github.com/gonum/blas v0.0.0-20181208220705-f22b278b28ac/go.mod h1:P32wAyui1PQ58Oce/KYkOqQv8cVw1zAapXOl+dRFGbc= +github.com/gonum/floats v0.0.0-20181209220543-c233463c7e82/go.mod h1:PxC8OnwL11+aosOB5+iEPoV3picfs8tUpkVd0pDo+Kg= +github.com/gonum/internal v0.0.0-20181124074243-f884aa714029/go.mod h1:Pu4dmpkhSyOzRwuXkOgAvijx4o+4YMUJJo9OvPYMkks= +github.com/gonum/lapack v0.0.0-20181123203213-e4cdc5a0bff9/go.mod h1:XA3DeT6rxh2EAE789SSiSJNqxPaC0aE9J8NTOI0Jo/A= +github.com/gonum/matrix v0.0.0-20181209220409-c518dec07be9/go.mod h1:0EXg4mc1CNP0HCqCz+K4ts155PXIlUywf0wqN+GfPZw= github.com/google/go-containerregistry v0.13.0/go.mod h1:J9FQ+eSS4a1aC2GNZxvNpbWhgp0487v+cgiilB4FqDo= github.com/google/go-pkcs11 v0.2.1-0.20230907215043-c6f79328ddf9/go.mod h1:6eQoGcuNJpa7jnd5pMGdkSaQpNDYvPlXWMcjXXThLlY= +github.com/google/pprof v0.0.0-20211214055906-6f57359322fd/go.mod h1:KgnwoLYCZ8IQu3XUZ8Nc/bM9CCZFOyjUNOSygVozoDg= github.com/google/pprof v0.0.0-20230228050547-1710fef4ab10/go.mod h1:79YE0hCXdHag9sBkw2o+N/YnZtTkXi0UT9Nnixa5eYk= github.com/google/s2a-go v0.1.3/go.mod h1:Ej+mSEMGRnqRzjc7VtF+jdBwYG5fuJfiZ8ELkjEwM0A= +github.com/google/s2a-go v0.1.4/go.mod h1:Ej+mSEMGRnqRzjc7VtF+jdBwYG5fuJfiZ8ELkjEwM0A= +github.com/google/safehtml v0.0.2/go.mod h1:L4KWwDsUJdECRAEpZoBn3O64bQaywRscowZjJAzjHnU= github.com/google/uuid v1.3.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/googleapis/enterprise-certificate-proxy v0.2.3/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= +github.com/googleapis/enterprise-certificate-proxy v0.2.4/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= +github.com/googleapis/gax-go v0.0.0-20161107002406-da06d194a00e h1:CYRpN206UTHUinz3VJoLaBdy1gEGeJNsqT0mvswDcMw= +github.com/googleapis/gax-go v0.0.0-20161107002406-da06d194a00e/go.mod h1:SFVmujtThgffbyetf+mdk2eWhX2bMyUtNHzFKcPA9HY= +github.com/googleapis/gax-go/v2 v2.7.1/go.mod h1:4orTrqY6hXxxaUL4LHIPl6lGo8vAE38/qKbhSAKP6QI= github.com/googleapis/gax-go/v2 v2.8.0/go.mod h1:4orTrqY6hXxxaUL4LHIPl6lGo8vAE38/qKbhSAKP6QI= github.com/gordonklaus/ineffassign v0.0.0-20230107090616-13ace0543b28/go.mod h1:Qcp2HIAYhR7mNUVSIxZww3Guk4it82ghYcEXIAk+QT0= github.com/gorilla/css v1.0.0/go.mod h1:Dn721qIggHpt4+EFCcTLTU/vk5ySda2ReITrtgBl60c= +github.com/gorilla/websocket v1.4.0/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= github.com/gostaticanalysis/analysisutil v0.7.1/go.mod h1:v21E3hY37WKMGSnbsw2S/ojApNWb6C1//mXO48CXbVc= +github.com/gostaticanalysis/comment v1.4.1/go.mod h1:ih6ZxzTHLdadaiSnF5WY3dxUoXfXAlTaRzuaNDlSado= github.com/gostaticanalysis/comment v1.4.2/go.mod h1:KLUTGDv6HOCotCH8h2erHKmpci2ZoR8VPu34YA2uzdM= github.com/gostaticanalysis/forcetypeassert v0.1.0/go.mod h1:qZEedyP/sY1lTGV1uJ3VhWZ2mqag3IkWsDHVbplHXak= github.com/gostaticanalysis/nilerr v0.1.1/go.mod h1:wZYb6YI5YAxxq0i1+VJbY0s2YONW0HU0GPE3+5PWN4A= +github.com/gostaticanalysis/testutil v0.3.1-0.20210208050101-bfb5c8eec0e4/go.mod h1:D+FIZ+7OahH3ePw/izIEeH5I06eKs1IKI4Xr64/Am3M= github.com/gotestyourself/gotestyourself v2.2.0+incompatible/go.mod h1:zZKM6oeNM8k+FRljX1mnzVYeS8wiGgQyvST1/GafPbY= +github.com/grpc-ecosystem/go-grpc-middleware v1.0.0/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= +github.com/grpc-ecosystem/grpc-gateway v1.9.0/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= github.com/guptarohit/asciigraph v0.5.5/go.mod h1:dYl5wwK4gNsnFf9Zp+l06rFiDZ5YtXM6x7SRWZ3KGag= github.com/hashicorp/consul/api v1.20.0/go.mod h1:nR64eD44KQ59Of/ECwt2vUmIK2DKsDzAwTmwmLl8Wpo= github.com/hashicorp/errwrap v1.1.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= +github.com/hashicorp/go-hclog v1.2.0/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ= +github.com/hashicorp/go-multierror v1.1.0/go.mod h1:spPvp8C1qA32ftKqdAHm4hHTbPw+vmowP0z+KUhOZdA= github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM= github.com/hashicorp/go-rootcerts v1.0.2/go.mod h1:pqUvnprVnM5bf7AOirdbb01K4ccR319Vf4pU3K5EGc8= +github.com/hashicorp/go-uuid v1.0.2/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= +github.com/hashicorp/go-version v1.2.1/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= +github.com/hashicorp/golang-lru v0.5.4/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= +github.com/hashicorp/mdns v1.0.4/go.mod h1:mtBihi+LeNXGtG8L9dX59gAEa12BDtBQSp4v/YAJqrc= +github.com/hashicorp/memberlist v0.5.0/go.mod h1:yvyXLpo0QaGE59Y7hDTsTzDD25JYBZ4mHgHUZ8lrOI0= github.com/hashicorp/serf v0.10.1/go.mod h1:yL2t6BqATOLGc5HF7qbFkTfXoPIY0WZdWHfEvMqbG+4= github.com/hexops/gotextdiff v1.0.3/go.mod h1:pSWU5MAI3yDq+fZBTazCSJysOMbxWL1BSow5/V2vxeg= github.com/hudl/fargo v1.4.0/go.mod h1:9Ai6uvFy5fQNq6VPKtg+Ceq1+eTY4nKUlR2JElEOcDo= github.com/hydrogen18/memlistener v1.0.0/go.mod h1:qEIFzExnS6016fRpRfxrExeVn2gbClQA99gQhnIcdhE= +github.com/iancoleman/strcase v0.2.0/go.mod h1:iwCmte+B7n89clKwxIoIXy/HfoL7AsD47ZCWhYzw7ho= +github.com/ianlancetaylor/demangle v0.0.0-20210905161508-09a460cdf81d/go.mod h1:aYm2/VgdVmcIU8iMfdMvDMsRAQjcfZSKFby6HOFvi/w= +github.com/ianlancetaylor/demangle v0.0.0-20220517205856-0058ec4f073c/go.mod h1:aYm2/VgdVmcIU8iMfdMvDMsRAQjcfZSKFby6HOFvi/w= github.com/imdario/mergo v0.3.13/go.mod h1:4lJ1jqUDcsbIECGy0RUJAXNIhg+6ocWgb1ALK2O4oXg= +github.com/inconshreveable/mousetrap v1.0.1/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= github.com/influxdata/influxdb1-client v0.0.0-20200827194710-b269163b24ab/go.mod h1:qj24IKcXYK6Iy9ceXlo3Tc+vtHo9lIhSX5JddghvEPo= github.com/informalsystems/tm-load-test v1.3.0/go.mod h1:OQ5AQ9TbT5hKWBNIwsMjn6Bf4O0U4b1kRc+0qZlQJKw= github.com/iris-contrib/schema v0.0.6/go.mod h1:iYszG0IOsuIsfzjymw1kMzTL8YQcCWlm65f3wX8J5iA= github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99/go.mod h1:1lJo3i6rXxKeerYnT8Nvf0QmHCRC1n8sfWVwXF2Frvo= github.com/jdxcode/netrc v0.0.0-20221124155335-4616370d1a84/go.mod h1:Zi/ZFkEqFHTm7qkjyNJjaWH4LQA9LQhGJyF0lTYGpxw= +github.com/jessevdk/go-flags v0.0.0-20141203071132-1679536dcc89/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= +github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= +github.com/jessevdk/go-flags v1.5.0/go.mod h1:Fw0T6WPc1dYxT4mKEZRfG5kJhaTDP9pj1c2EWnYs/m4= github.com/jgautheron/goconst v1.5.1/go.mod h1:aAosetZ5zaeC/2EfMeRswtxUFBpe2Hr7HzkgX4fanO4= github.com/jingyugao/rowserrcheck v1.1.1/go.mod h1:4yvlZSDb3IyDTUZJUmpZfm2Hwok+Dtp+nu2qOq+er9c= github.com/jinzhu/copier v0.3.5/go.mod h1:DfbEm0FYsaqBcKcFuvmOZb218JkPGtvSHsKg8S8hyyg= github.com/jirfag/go-printf-func-name v0.0.0-20200119135958-7558a9eaa5af/go.mod h1:HEWGJkRDzjJY2sqdDwxccsGicWEf9BQOZsq2tV+xzM0= github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFFd8Hwg//Y= +github.com/jrick/logrotate v1.0.0/go.mod h1:LNinyqDIJnpAur+b8yyulnQw/wDuN1+BYKlTRt3OuAQ= +github.com/json-iterator/go v1.1.11/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= github.com/julz/importas v0.1.0/go.mod h1:oSFU2R4XK/P7kNBrnL/FEQlDGN1/6WoxXEjSSXO0DV0= +github.com/jung-kurt/gofpdf v1.0.0/go.mod h1:7Id9E/uU8ce6rXgefFLlgrJj/GYY22cpxn+r32jIOes= +github.com/jung-kurt/gofpdf v1.0.3-0.20190309125859-24315acbbda5/go.mod h1:7Id9E/uU8ce6rXgefFLlgrJj/GYY22cpxn+r32jIOes= github.com/junk1tm/musttag v0.5.0/go.mod h1:PcR7BA+oREQYvHwgjIDmw3exJeds5JzRcvEJTfjrA0M= github.com/kataras/blocks v0.0.7/go.mod h1:UJIU97CluDo0f+zEjbnbkeMRlvYORtmc1304EeyXf4I= github.com/kataras/golog v0.1.8/go.mod h1:rGPAin4hYROfk1qT9wZP6VY2rsb4zzc37QpdPjdkqVw= @@ -265,7 +409,15 @@ github.com/kataras/tunnel v0.0.4/go.mod h1:9FkU4LaeifdMWqZu7o20ojmW4B7hdhv2CMLwf github.com/kevinburke/ssh_config v1.2.0/go.mod h1:CT57kijsi8u/K/BOFA39wgDQJ9CxiF4nAY/ojJ6r6mM= github.com/kisielk/errcheck v1.6.3/go.mod h1:nXw/i/MfnvRHqXa7XXmQMUB0oNFGuBrNI8d8NLy0LPw= github.com/kkHAIKE/contextcheck v1.1.4/go.mod h1:1+i/gWqokIa+dm31mqGLZhZJ7Uh44DJGZVmr6QRBNJg= +github.com/kkdai/bstream v0.0.0-20161212061736-f391b8402d23/go.mod h1:J+Gs4SYgM6CZQHDETBtE9HaSEkGmuNXF86RwHhHUvq4= +github.com/klauspost/compress v1.15.0/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk= +github.com/klauspost/compress v1.15.15/go.mod h1:ZcK2JAFqKOpnBlxcLsJzYfrS9X1akm9fHZNnD9+Vo/4= +github.com/klauspost/compress v1.16.0/go.mod h1:ntbaceVETuRiXiv4DpjP66DpAtAGkEQskQzEyD//IeE= +github.com/klauspost/compress v1.16.5/go.mod h1:ntbaceVETuRiXiv4DpjP66DpAtAGkEQskQzEyD//IeE= +github.com/klauspost/compress v1.17.2/go.mod h1:ntbaceVETuRiXiv4DpjP66DpAtAGkEQskQzEyD//IeE= github.com/klauspost/pgzip v1.2.5/go.mod h1:Ch1tH69qFZu15pkjo5kYi6mth2Zzwzt50oCQKQE9RUs= +github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= +github.com/kr/pretty v0.3.0/go.mod h1:640gp4NfQd8pI5XOwp5fnNeVWj67G7CFk/SaSQn7NBk= github.com/kulti/thelper v0.6.3/go.mod h1:DsqKShOvP40epevkFrvIwkCMNYxMeTNjdWL4dqWHZ6I= github.com/kunwardeep/paralleltest v1.0.6/go.mod h1:Y0Y0XISdZM5IKm3TREQMZ6iteqn1YuwCsJO/0kL9Zes= github.com/kyoh86/exportloopref v0.1.11/go.mod h1:qkV4UF1zGl6EkF1ox8L5t9SwyeBAZ3qLMd6up458uqA= @@ -274,22 +426,42 @@ github.com/labstack/gommon v0.4.0/go.mod h1:uW6kP17uPlLJsD3ijUYn3/M5bAxtlZhMI6m3 github.com/ldez/gomoddirectives v0.2.3/go.mod h1:cpgBogWITnCfRq2qGoDkKMEVSaarhdBr6g8G04uz6d0= github.com/ldez/tagliatelle v0.4.0/go.mod h1:mNtTfrHy2haaBAw+VT7IBV6VXBThS7TCreYWbBcJ87I= github.com/leonklingele/grouper v1.1.1/go.mod h1:uk3I3uDfi9B6PeUjsCKi6ndcf63Uy7snXgR4yDYQVDY= +github.com/linxGnu/grocksdb v1.7.16/go.mod h1:JkS7pl5qWpGpuVb3bPqTz8nC12X3YtPZT+Xq7+QfQo4= +github.com/linxGnu/grocksdb v1.8.4/go.mod h1:xZCIb5Muw+nhbDK4Y5UJuOrin5MceOuiXkVUR7vp4WY= github.com/lufeee/execinquery v1.2.1/go.mod h1:EC7DrEKView09ocscGHC+apXMIaorh4xqSxS/dy8SbM= github.com/mailgun/raymond/v2 v2.0.48/go.mod h1:lsgvL50kgt1ylcFJYZiULi5fjPBkkhNfj4KA0W54Z18= github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= github.com/maratori/testableexamples v1.0.0/go.mod h1:4rhjL1n20TUTT4vdh3RDqSizKLyXp7K2u6HgraZCGzE= github.com/maratori/testpackage v1.1.1/go.mod h1:s4gRK/ym6AMrqpOa/kEbQTV4Q4jb7WeLZzVhVVVOQMc= github.com/matoous/godox v0.0.0-20230222163458-006bad1f9d26/go.mod h1:1BELzlh859Sh1c6+90blK8lbYy0kwQf1bYlBhBysy1s= +github.com/matryer/is v1.2.0/go.mod h1:2fLPjFQM9rhQ15aVEtbuwhJinnOqrmgXPNdZsdwlWXA= +github.com/matryer/is v1.4.0/go.mod h1:8I/i5uYgLzgsgEloJE1U6xx5HkBQpAZvepWuujKwMRU= +github.com/matryer/try v0.0.0-20161228173917-9ac251b645a2/go.mod h1:0KeJpeMD6o+O4hW7qJOT7vyQPKrWmj26uf5wMc/IiIs= +github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= +github.com/mattn/go-colorable v0.1.6/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= +github.com/mattn/go-colorable v0.1.11/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= +github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= +github.com/mattn/go-isatty v0.0.10/go.mod h1:qgIWMr58cqv1PHHyhnkY9lrL7etaEgOFcMEpPG5Rm84= +github.com/mattn/go-isatty v0.0.11/go.mod h1:PhnuNfih5lzO57/f3n+odYbM4JtupLOxQOAqxQCu2WE= +github.com/mattn/go-isatty v0.0.17/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= github.com/mattn/go-runewidth v0.0.9/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI= +github.com/mattn/go-sqlite3 v1.14.5/go.mod h1:WVKg1VTActs4Qso6iwGbiFih2UIHo0ENGwNd0Lj+XmI= +github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369/go.mod h1:BSXmuO+STAnVfrANrmjBb36TMTDstsz7MSK+HVaYKv4= github.com/matttproud/golang_protobuf_extensions v1.0.4 h1:mmDVorXM7PCGKw94cs5zkfA9PSy5pEvNWRP0ET0TIVo= github.com/matttproud/golang_protobuf_extensions v1.0.4/go.mod h1:BSXmuO+STAnVfrANrmjBb36TMTDstsz7MSK+HVaYKv4= github.com/mbilski/exhaustivestruct v1.2.0/go.mod h1:OeTBVxQWoEmB2J2JCHmXWPJ0aksxSUOUy+nvtVEfzXc= github.com/mgechev/revive v1.3.1/go.mod h1:YlD6TTWl2B8A103R9KWJSPVI9DrEf+oqr15q21Ld+5I= github.com/microcosm-cc/bluemonday v1.0.23/go.mod h1:mN70sk7UkkF8TUr2IGBpNN0jAgStuPzlK76QuruE/z4= +github.com/miekg/dns v1.1.26/go.mod h1:bPDLeHnStXmXAq1m/Ch/hvfNHr14JKNPMBo3VZKjuso= +github.com/miekg/dns v1.1.41/go.mod h1:p6aan82bvRIyn+zDIv9xYNUpwa73JcSh9BKwknJysuI= github.com/miekg/dns v1.1.43/go.mod h1:+evo5L0630/F6ca/Z9+GAqzhjGyn8/c+TBaOyfEl0V4= +github.com/mitchellh/cli v1.1.0/go.mod h1:xcISNoH86gajksDmfB23e/pu+B+GeFRMYmoHXxx3xhI= +github.com/mmcloughlin/avo v0.5.0/go.mod h1:ChHFdoV7ql95Wi7vuq2YT1bwCJqiWdZrQ1im3VujLYM= +github.com/moby/sys/mountinfo v0.5.0/go.mod h1:3bMD3Rg+zkqx8MRYPi7Pyb0Ie97QEBmdxbhnCLlSvSU= github.com/moby/term v0.0.0-20221205130635-1aeaba878587/go.mod h1:8FzsFHVUBGZdbDsJw/ot+X+d5HLUbvklYLJ9uGfcI3Y= github.com/moricho/tparallel v0.3.0/go.mod h1:leENX2cUv7Sv2qDgdi0D0fCftN8fRC67Bcn8pqzeYNI= github.com/morikuni/aec v1.0.0/go.mod h1:BbKIizmSmc5MMPqRYbxO4ZU0S0+P200+tUnFx7PXmsc= +github.com/mrunalp/fileutils v0.5.0/go.mod h1:M1WthSahJixYnrXQl/DFQuteStB1weuxD2QJNHXfbSQ= github.com/nakabonne/nestif v0.3.1/go.mod h1:9EtoZochLn5iUprVDmDjqGKPofoUEBL8U4Ngq6aY7OE= github.com/nats-io/jwt/v2 v2.0.3/go.mod h1:VRP+deawSXyhNjXmxPCHskrR6Mq50BqpEI5SEcNiGlY= github.com/nats-io/nats-server/v2 v2.5.0/go.mod h1:Kj86UtrXAL6LwYRA6H4RqzkHhK0Vcv2ZnKD5WbQ1t3g= @@ -299,22 +471,73 @@ github.com/nbutton23/zxcvbn-go v0.0.0-20210217022336-fa2cb2858354/go.mod h1:KSVJ github.com/nishanths/exhaustive v0.9.5/go.mod h1:IbwrGdVMizvDcIxPYGVdQn5BqWJaOwpCvg4RGb8r/TA= github.com/nishanths/predeclared v0.2.2/go.mod h1:RROzoN6TnGQupbC+lqggsOlcgysk3LMK/HI84Mp280c= github.com/nunnatsa/ginkgolinter v0.9.0/go.mod h1:FHaMLURXP7qImeH6bvxWJUpyH+2tuqe5j4rW1gxJRmI= +github.com/oasisprotocol/curve25519-voi v0.0.0-20220708102147-0a8a51822cae/go.mod h1:hVoHR2EVESiICEMbg137etN/Lx+lSrHPTD39Z/uE+2s= +github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= github.com/olekukonko/tablewriter v0.0.5/go.mod h1:hPp6KlRPjbx+hW8ykQs1w3UBbZlj6HuIJcUGPhkA7kY= +github.com/onsi/ginkgo/v2 v2.7.0/go.mod h1:yjiuMwPokqY1XauOgju45q3sJt6VzQ/Fict1LFVcsAo= +github.com/onsi/ginkgo/v2 v2.8.0/go.mod h1:6JsQiECmxCa3V5st74AL/AmsV482EDdVrGaVW6z3oYU= +github.com/onsi/gomega v1.4.1/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5uiA= +github.com/onsi/gomega v1.25.0/go.mod h1:r+zV744Re+DiYCIPRlYOTxn0YkOLcAnW8k1xXdMPGhM= +github.com/opencontainers/runtime-spec v1.0.3-0.20210326190908-1c3f411f0417/go.mod h1:jwyrGlmzljRJv/Fgzds9SsS/C5hL+LL3ko9hs6T5lQ0= +github.com/opencontainers/selinux v1.10.0/go.mod h1:2i0OySw99QjzBBQByd1Gr9gSjvuho1lHsJxIJ3gGbJI= github.com/opentracing/opentracing-go v1.2.0/go.mod h1:GxEUsuufX4nBwe+T+Wl9TAgYrxe9dPLANfrWvHYVTgc= github.com/openzipkin/zipkin-go v0.2.5/go.mod h1:KpXfKdgRDnnhsxw4pNIH9Md5lyFqKUa4YDFlwRYAMyE= +github.com/otiai10/copy v1.2.0/go.mod h1:rrF5dJ5F0t/EWSYODDu4j9/vEeYHMkc8jt0zJChqQWw= +github.com/otiai10/curr v0.0.0-20150429015615-9b4961190c95/go.mod h1:9qAhocn7zKJG+0mI8eUu6xqkFDYS2kb2saOteoSB3cE= +github.com/otiai10/curr v1.0.0/go.mod h1:LskTG5wDwr8Rs+nNQ+1LlxRjAtTZZjtJW4rMXl6j4vs= +github.com/otiai10/mint v1.3.0/go.mod h1:F5AjcsTsWUqX+Na9fpHb52P8pcRX2CI6A3ctIT91xUo= +github.com/otiai10/mint v1.3.1/go.mod h1:/yxELlJQ0ufhjUwhshSj+wFjZ78CnZ48/1wtmBH1OTc= github.com/pelletier/go-toml v1.2.0 h1:T5zMGML61Wp+FlcbWjRDT7yAxhJNAiPPLOFECq181zc= +github.com/pelletier/go-toml v1.9.5 h1:4yBQzkHv+7BHq2PQUZF3Mx0IYxG7LsP222s7Agd3ve8= +github.com/pelletier/go-toml/v2 v2.0.5/go.mod h1:OMHamSCAODeSsVrwwvcJOaoN0LIUIaFVNZzmWyNfXas= +github.com/pelletier/go-toml/v2 v2.0.6/go.mod h1:eumQOmlWiOPt5WriQQqoM5y18pDHwha2N+QD+EUNTek= github.com/performancecopilot/speed/v4 v4.0.0/go.mod h1:qxrSyuDGrTOWfV+uKRFhfxw6h/4HXRGUiZiufxo49BM= +github.com/petermattis/goid v0.0.0-20221215004737-a150e88a970d/go.mod h1:pxMtw7cyUw6B2bRH0ZBANSPg+AoSud1I1iyJHI69jH4= +github.com/phpdave11/gofpdf v1.4.2/go.mod h1:zpO6xFn9yxo3YLyMvW8HcKWVdbNqgIfOOp2dXMnm1mY= +github.com/phpdave11/gofpdi v1.0.12/go.mod h1:vBmVV0Do6hSBHC8uKUQ71JGW+ZGQq74llk/7bXwjDoI= +github.com/phpdave11/gofpdi v1.0.13/go.mod h1:vBmVV0Do6hSBHC8uKUQ71JGW+ZGQq74llk/7bXwjDoI= github.com/pjbgf/sha1cd v0.3.0/go.mod h1:nZ1rrWOcGJ5uZgEEVL1VUM9iRQiZvWdbZjkKyFzPPsI= github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8/go.mod h1:HKlIX3XHQyzLZPlr7++PzdhaXEj94dEiJgZDTsxEqUI= github.com/pkg/profile v1.7.0/go.mod h1:8Uer0jas47ZQMJ7VD+OHknK4YDY07LPUC6dEvqDjvNo= +github.com/pkg/sftp v1.10.1/go.mod h1:lYOWFsE0bwd1+KfKJaKeuokY15vzFx25BLbzYYoAxZI= github.com/pointlander/compress v1.1.1-0.20190518213731-ff44bd196cc3/go.mod h1:q5NXNGzqj5uPnVuhGkZfmgHqNUhf15VLi6L9kW0VEc0= github.com/pointlander/jetset v1.0.1-0.20190518214125-eee7eff80bd4/go.mod h1:RdR1j20Aj5pB6+fw6Y9Ur7lMHpegTEjY1vc19hEZL40= github.com/pointlander/peg v1.0.1/go.mod h1:5hsGDQR2oZI4QoWz0/Kdg3VSVEC31iJw/b7WjqCBGRI= github.com/polyfloyd/go-errorlint v1.4.0/go.mod h1:qJCkPeBn+0EXkdKTrUCcuFStM2xrDKfxI3MGLXPexUs= +github.com/posener/complete v1.2.3/go.mod h1:WZIdtGGp+qx0sLrYKtIRAruyNpv6hFCicSgv7Sy7s/s= +github.com/prometheus/client_golang v0.9.3/go.mod h1:/TN21ttK/J9q6uSwhBd54HahCDft0ttaMvbicHlPoso= +github.com/prometheus/client_golang v1.11.0/go.mod h1:Z6t4BnS23TR94PD6BsDNk8yVqroYurpAkEiz0P2BEV0= +github.com/prometheus/client_golang v1.12.0/go.mod h1:3Z9XVyYiZYEO+YQWt3RD2R3jrbd179Rt297l4aS6nDY= +github.com/prometheus/client_golang v1.12.1/go.mod h1:3Z9XVyYiZYEO+YQWt3RD2R3jrbd179Rt297l4aS6nDY= +github.com/prometheus/client_golang v1.14.0/go.mod h1:8vpkKitgIVNcqrRBWh1C4TIUQgYNtG/XQE4E/Zae36Y= +github.com/prometheus/client_model v0.2.1-0.20210607210712-147c58e9608a/go.mod h1:LDGWKZIo7rky3hgvBe+caln+Dr3dPggB5dvjtD7w9+w= +github.com/prometheus/client_model v0.3.0/go.mod h1:LDGWKZIo7rky3hgvBe+caln+Dr3dPggB5dvjtD7w9+w= +github.com/prometheus/client_model v0.4.1-0.20230718164431-9a2bf3000d16/go.mod h1:oMQmHW1/JoDwqLtg57MGgP/Fb1CJEYF2imWWhWtMkYU= +github.com/prometheus/common v0.0.0-20181113130724-41aa239b4cce/go.mod h1:daVV7qP5qjZbuso7PdcryaAu0sAZbrN9i7WWcTMWvro= +github.com/prometheus/common v0.4.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= +github.com/prometheus/common v0.26.0/go.mod h1:M7rCNAaPfAosfx8veZJCuw84e35h3Cfd9VFqTh1DIvc= +github.com/prometheus/common v0.32.1/go.mod h1:vu+V0TpY+O6vW9J44gczi3Ap/oXXR10b+M/gUGO4Hls= +github.com/prometheus/common v0.42.0/go.mod h1:xBwqVerjNdUDjgODMpudtOMwlOwf2SaTr1yjz4b7Zbc= +github.com/prometheus/common v0.44.0/go.mod h1:ofAIvZbQ1e/nugmZGz4/qCb9Ap1VoSTIO7x0VV9VvuY= +github.com/prometheus/procfs v0.0.0-20190507164030-5867b95ac084/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= +github.com/prometheus/procfs v0.6.0/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= +github.com/prometheus/procfs v0.7.3/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= +github.com/prometheus/procfs v0.8.0/go.mod h1:z7EfXMXOkbkqb9IINtpCn86r/to3BnA0uaxHdg830/4= +github.com/prometheus/procfs v0.11.1/go.mod h1:eesXgaPo1q7lBpVMoMy0ZOFTth9hBn4W/y0/p/ScXhY= +github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= github.com/quasilyte/go-ruleguard v0.3.19/go.mod h1:lHSn69Scl48I7Gt9cX3VrbsZYvYiBYszZOZW4A+oTEw= github.com/quasilyte/gogrep v0.5.0/go.mod h1:Cm9lpz9NZjEoL1tgZ2OgeUKPIxL1meE7eo60Z6Sk+Ng= github.com/quasilyte/regex/syntax v0.0.0-20210819130434-b3f0c404a727/go.mod h1:rlzQ04UMyJXu/aOvhd8qT+hvDrFpiwqp8MRXDY9szc0= github.com/quasilyte/stdinfo v0.0.0-20220114132959-f7386bf02567/go.mod h1:DWNGW8A4Y+GyBgPuaQJuWiy0XYftx4Xm/y5Jqk9I6VQ= +github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc= +github.com/rogpeppe/go-internal v1.8.0/go.mod h1:WmiCO8CzOY8rg0OYDC4/i/2WRWAB6poM+XZ2dLUbcbE= +github.com/rogpeppe/go-internal v1.8.1/go.mod h1:JeRgkft04UBgHMgCIwADu4Pn6Mtm5d4nPKWu0nJ5d+o= +github.com/rogpeppe/go-internal v1.10.0/go.mod h1:UQnix2H7Ngw/k4C5ijL5+65zddjncjaFoBhdsK/akog= +github.com/rs/xid v1.4.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg= +github.com/rs/zerolog v1.29.0/go.mod h1:NILgTygv/Uej1ra5XxGf82ZFSLk58MFGAUS2o6usyD0= +github.com/rs/zerolog v1.30.0/go.mod h1:/tk+P47gFdPXq4QYjvCmT5/Gsug2nagsFWBWhAiSi1w= +github.com/ruudk/golang-pdf417 v0.0.0-20181029194003-1af4ab5afa58/go.mod h1:6lfFZQK844Gfx8o5WFuvpxWRwnSoipWe/p622j1v06w= +github.com/ruudk/golang-pdf417 v0.0.0-20201230142125-a7e3863a1245/go.mod h1:pQAZKsJ8yyVxGRWYNEm9oFB8ieLgKFnamEyDmSA0BRk= github.com/ryancurrah/gomodguard v1.3.0/go.mod h1:ggBxb3luypPEzqVtq33ee7YSN35V28XeGnid8dnni50= github.com/ryanrolds/sqlclosecheck v0.4.0/go.mod h1:TBRRjzL31JONc9i4XMinicuo+s+E8yKZ5FN8X3G6CKQ= github.com/sagikazarmark/crypt v0.10.0/go.mod h1:gwTNHQVoOS3xp9Xvz5LLR+1AauC5M6880z5NWzdhOyQ= @@ -323,9 +546,14 @@ github.com/sashamelentyev/interfacebloat v1.1.0/go.mod h1:+Y9yU5YdTkrNvoX0xHc84d github.com/sashamelentyev/usestdlibvars v1.23.0/go.mod h1:YPwr/Y1LATzHI93CqoPUN/2BzGQ/6N/cl/KwgR0B/aU= github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0= github.com/schollz/closestmatch v2.1.0+incompatible/go.mod h1:RtP1ddjLong6gTkbtmuhtR2uUrrJOpYzYRvbcPAid+g= +github.com/seccomp/libseccomp-golang v0.9.2-0.20220502022130-f33da4d89646/go.mod h1:JA8cRccbGaA1s33RQf7Y1+q9gHmZX1yB/z9WDN1C6fg= github.com/securego/gosec/v2 v2.15.0/go.mod h1:VOjTrZOkUtSDt2QLSJmQBMWnvwiQPEjg0l+5juIqGk8= +github.com/sergi/go-diff v1.1.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= github.com/sergi/go-diff v1.2.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= github.com/shazow/go-diff v0.0.0-20160112020656-b6b7b6733b8c/go.mod h1:/PevMnwAxekIXwN8qQyfc5gl2NlkB3CQlkizAbOkeBs= +github.com/shurcooL/go v0.0.0-20180423040247-9e1955d9fb6e/go.mod h1:TDJrrUr11Vxrven61rcy3hJMUqaf/CLWYhHNPmT14Lk= +github.com/shurcooL/go-goon v0.0.0-20170922171312-37c2f522c041/go.mod h1:N5mDOmsrJOB+vfqUK+7DmDyjhSLIIBnXo9lvZJj3MWQ= +github.com/sirupsen/logrus v1.8.1/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= github.com/sivchari/containedctx v1.0.2/go.mod h1:PwZOeqm4/DLoJOqMSIJs3aKqXRX4YO+uXww087KZ7Bw= github.com/sivchari/nosnakecase v1.7.0/go.mod h1:CwDzrzPea40/GB6uynrNLiorAlgFRvRbFSgJx2Gs+QY= github.com/sivchari/tenv v1.7.1/go.mod h1:64yStXKSOxDfX47NlhVwND4dHwfZDdbp2Lyl018Icvg= @@ -333,28 +561,47 @@ github.com/skeema/knownhosts v1.1.0/go.mod h1:sKFq3RD6/TKZkSWn8boUbDC7Qkgcv+8XXi github.com/snikch/goodman v0.0.0-20171125024755-10e37e294daa/go.mod h1:oJyF+mSPHbB5mVY2iO9KV3pTt/QbIkGaO8gQ2WrDbP4= github.com/sonatard/noctx v0.0.2/go.mod h1:kzFz+CzWSjQ2OzIm46uJZoXuBpa2+0y3T36U18dWqIo= github.com/sourcegraph/go-diff v0.7.0/go.mod h1:iBszgVvyxdc8SFZ7gm69go2KDdt3ag071iBaWPF6cjs= +github.com/spf13/afero v1.4.0/go.mod h1:Ai8FlHk4v/PARR026UzYexafAt9roJ7LcLMAmO6Z93I= +github.com/spf13/afero v1.9.3/go.mod h1:iUV7ddyEEZPO5gA3zD4fJt6iStLlL+Lg4m2cihcDf8Y= +github.com/spf13/cast v1.5.0/go.mod h1:SpXXQ5YoyJw6s3/6cMTQuxvgRl3PCJiyaX9p6b155UU= +github.com/spf13/cobra v1.0.0/go.mod h1:/6GTrnGXV9HjY+aR4k0oJ5tcvakLuG6EuKReYlHNrgE= +github.com/spf13/cobra v1.6.1/go.mod h1:IOw/AERYS7UzyrGinqmz6HLUo219MORXGxhbaJUqzrY= +github.com/spf13/viper v1.4.0/go.mod h1:PTJ7Z/lr49W6bUbkmS1V3by4uWynFiR9p7+dSq/yZzE= +github.com/spf13/viper v1.15.0/go.mod h1:fFcTBJxvhhzSJiZy8n+PeW6t8l+KeT/uTARa0jHOQLA= github.com/ssgreg/nlreturn/v2 v2.2.1/go.mod h1:E/iiPB78hV7Szg2YfRgyIrk1AD6JVMTRkkxBiELzh2I= github.com/stbenjam/no-sprintf-host-port v0.1.1/go.mod h1:TLhvtIvONRzdmkFiio4O8LHsN9N74I+PhRquPsxpL0I= github.com/streadway/amqp v1.0.0/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw= github.com/streadway/handy v0.0.0-20200128134331-0f66f006fb2e/go.mod h1:qNTQ5P5JnDBl6z3cMAg/SywNDC5ABu5ApDIw6lUbRmI= +github.com/stretchr/testify v1.1.4/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= +github.com/syndtr/gocapability v0.0.0-20200815063812-42c35b437635/go.mod h1:hkRG7XYTFWNJGYcbNJQlaLq0fg1yr4J4t/NcTQtrfww= github.com/t-yuki/gocover-cobertura v0.0.0-20180217150009-aaee18c8195c/go.mod h1:SbErYREK7xXdsRiigaQiQkI9McGRzYMvlKYaP3Nimdk= github.com/tdakkota/asciicheck v0.2.0/go.mod h1:Qb7Y9EgjCLJGup51gDHFzbI08/gbGhL/UVhYIPWG2rg= github.com/tdewolff/minify/v2 v2.12.4/go.mod h1:h+SRvSIX3kwgwTFOpSckvSxgax3uy8kZTSF1Ojrr3bk= github.com/tdewolff/parse/v2 v2.6.4/go.mod h1:woz0cgbLwFdtbjJu8PIKxhW05KplTFQkOdX78o+Jgrs= +github.com/tdewolff/test v1.0.7/go.mod h1:6DAvZliBAAnD7rhVgwaM7DE5/d9NMOAJ09SqYqeK4QE= github.com/tecbot/gorocksdb v0.0.0-20191217155057-f0fad39f321c/go.mod h1:ahpPrc7HpcfEWDQRZEmnXMzHY03mLDYMCxeDzy46i+8= +github.com/tenntenn/modver v1.0.1/go.mod h1:bePIyQPb7UeioSRkw3Q0XeMhYZSMx9B8ePqg6SAMGH0= +github.com/tenntenn/text/transform v0.0.0-20200319021203-7eef512accb3/go.mod h1:ON8b8w4BN/kE1EOhwT0o+d62W65a6aPw1nouo9LMgyY= github.com/tetafro/godot v1.4.11/go.mod h1:LR3CJpxDVGlYOWn3ZZg1PgNZdTUvzsZWu8xaEohUpn8= github.com/timakin/bodyclose v0.0.0-20221125081123-e39cf3fc478e/go.mod h1:27bSVNWSBOHm+qRp1T9qzaIpsWEP6TbUnei/43HK+PQ= github.com/timonwong/loggercheck v0.9.4/go.mod h1:caz4zlPcgvpEkXgVnAJGowHAMW2NwHaNlpS8xDbVhTg= +github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= github.com/tomarrell/wrapcheck/v2 v2.8.1/go.mod h1:/n2Q3NZ4XFT50ho6Hbxg+RV1uyo2Uow/Vdm9NQcl5SE= github.com/tommy-muehle/go-mnd/v2 v2.5.1/go.mod h1:WsUAkMJMYww6l/ufffCD3m+P7LEvr8TnZn9lwVDlgzw= +github.com/ugorji/go v1.1.4/go.mod h1:uQMGLiO92mf5W77hV/PUCpI3pbzQx3CRekS0kk+RGrc= +github.com/ugorji/go v1.2.7/go.mod h1:nF9osbDWLy6bDVv/Rtoh6QgnvNDpmCalQV5urGCCS6M= github.com/ultraware/funlen v0.0.3/go.mod h1:Dp4UiAus7Wdb9KUZsYWZEWiRzGuM2kXM1lPbfaF6xhA= github.com/ultraware/whitespace v0.0.5/go.mod h1:aVMh/gQve5Maj9hQ/hg+F75lr/X5A89uZnzAmWSineA= github.com/urfave/negroni v1.0.0/go.mod h1:Meg73S6kFm/4PpbYdq35yYWoCZ9mS/YSx+lKnmiohz4= github.com/uudashr/gocognit v1.0.6/go.mod h1:nAIUuVBnYU7pcninia3BHOvQkpQCeO76Uscky5BOwcY= github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc= github.com/valyala/fasthttp v1.40.0/go.mod h1:t/G+3rLek+CyY9bnIE+YlMRddxVAAGjhxndDB4i4C0I= +github.com/valyala/fasttemplate v1.2.1/go.mod h1:KHLXt3tVN2HBp8eijSv/kGJopbvo7S+qRAEEKiv+SiQ= github.com/valyala/fasttemplate v1.2.2/go.mod h1:KHLXt3tVN2HBp8eijSv/kGJopbvo7S+qRAEEKiv+SiQ= +github.com/valyala/tcplisten v1.0.0/go.mod h1:T0xQ8SeCZGxckz9qRXTfG43PvQ/mcWh7FwZEA7Ioqkc= github.com/vektra/mockery/v2 v2.23.1/go.mod h1:Zh3Kv1ckKs6FokhlVLcCu6UTyzfS3M8mpROz1lBNp+w= +github.com/vishvananda/netlink v1.1.0/go.mod h1:cTgwzPIzzgDAYoQrMm0EdrjRUBkTqKYppBueQtXaqoE= +github.com/vishvananda/netns v0.0.0-20191106174202-0a2b9b5464df/go.mod h1:JP3t17pCcGlemwknint6hfoeCVQrEMVwxRLRjXpq+BU= github.com/vmihailenco/msgpack/v5 v5.3.5/go.mod h1:7xyJ9e+0+9SaZT0Wt1RGleJXzli6Q/V5KbhBonMG9jc= github.com/vmihailenco/tagparser/v2 v2.0.0/go.mod h1:Wri+At7QHww0WTrCBeu4J6bNtoV6mEfg5OIWRZA9qds= github.com/xanzy/ssh-agent v0.3.3/go.mod h1:6dzNDKs0J9rVPHPhaGCukekBHKqfl+L3KghI1Bc68Uw= @@ -362,7 +609,11 @@ github.com/xhit/go-str2duration/v2 v2.1.0/go.mod h1:ohY8p+0f07DiV6Em5LKB0s2YpLtX github.com/yagipy/maintidx v1.0.0/go.mod h1:0qNf/I/CCZXSMhsRsrEPDZ+DkekpKLXAJfsTACwgXLk= github.com/yeya24/promlinter v0.2.0/go.mod h1:u54lkmBOZrpEbQQ6gox2zWKKLKu2SGe+2KOiextY+IA= github.com/yosssi/ace v0.0.5/go.mod h1:ALfIzm2vT7t5ZE7uoIZqF3TQ7SAOyupFZnkrF5id+K0= +github.com/yuin/goldmark v1.4.1/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= gitlab.com/bosi/decorder v0.2.3/go.mod h1:9K1RB5+VPNQYtXtTDAzd2OEftsZb1oV0IrJrzChSdGE= +go.etcd.io/bbolt v1.3.2/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= +go.etcd.io/bbolt v1.3.6/go.mod h1:qXsaaIqmgQH0T+OPdb99Bf+PKfBBQVAdyD6TY9G8XM4= +go.etcd.io/bbolt v1.3.7/go.mod h1:N9Mkw9X8x5fupy0IKsmuqVtoGDyxsaDlbk4Rd05IAQw= go.etcd.io/etcd/api/v3 v3.5.9/go.mod h1:uyAal843mC8uUVSLWz6eHa/d971iDGnCRpmKd2Z+X8k= go.etcd.io/etcd/client/pkg/v3 v3.5.9/go.mod h1:y+CzeSmkMpWN2Jyu1npecjB9BBnABxGM4pN8cGuJeL4= go.etcd.io/etcd/client/v2 v2.305.7/go.mod h1:GQGT5Z3TBuAQGvgPfhR7VPySu/SudxmEkRq9BgzFU6s= @@ -371,15 +622,190 @@ go.etcd.io/gofail v0.1.0/go.mod h1:VZBCXYGZhHAinaBiiqYvuDynvahNsAyLFwB3kEHKz1M= go.opentelemetry.io/otel v1.14.0/go.mod h1:o4buv+dJzx8rohcUeRmWUZhqupFvzWis188WlggnNeU= go.opentelemetry.io/otel/sdk v1.14.0/go.mod h1:bwIC5TjrNG6QDCHNWvW4HLHtUQ4I+VQDsnjhvyZCALM= go.opentelemetry.io/otel/trace v1.14.0/go.mod h1:8avnQLK+CG77yNLUae4ea2JDQ6iT+gozhnZjy/rw9G8= +go.uber.org/atomic v1.9.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= go.uber.org/atomic v1.10.0/go.mod h1:LUxbIzbOniOlMKjJjyPfpl4v+PKK2cNJn91OQbhoJI0= +go.uber.org/goleak v1.1.11/go.mod h1:cwTWslyiVhfpKIDGSZEM2HlOvcqm+tG4zioyIeLoqMQ= +go.uber.org/multierr v1.8.0/go.mod h1:7EAYxJLBy9rStEaz58O2t4Uvip6FSURkq8/ppBp95ak= go.uber.org/multierr v1.10.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= +go.uber.org/zap v1.21.0/go.mod h1:wjWOCqI0f2ZZrJF/UufIOkiC8ii6tm1iqIsLo76RfJw= go.uber.org/zap v1.24.0/go.mod h1:2kMP+WWQ8aoFoedH3T2sq6iJ2yDWpHbP0f6MQbS9Gkg= +golang.org/x/arch v0.1.0/go.mod h1:5om86z9Hs0C8fWVUuoMHwpExlXzs5Tkyp9hOrfG7pp8= +golang.org/x/crypto v0.0.0-20170930174604-9419663f5a44/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= +golang.org/x/crypto v0.0.0-20190820162420-60c769a6c586/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20190923035154-9ee001bba392/go.mod h1:/lpIB1dKB+9EgE3H3cr1v9wB50oz8l4C4h62xy7jSTY= +golang.org/x/crypto v0.0.0-20211108221036-ceb1ce70b4fa/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= +golang.org/x/crypto v0.0.0-20211215153901-e495a2d5b3d3/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= +golang.org/x/crypto v0.0.0-20220214200702-86341886e292/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= +golang.org/x/crypto v0.0.0-20220314234659-1baeb1ce4c0b/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= +golang.org/x/crypto v0.0.0-20220321153916-2c7772ba3064/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= +golang.org/x/crypto v0.0.0-20220525230936-793ad666bf5e/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= +golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= +golang.org/x/crypto v0.0.0-20220826181053-bd7e27e6170d/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= +golang.org/x/crypto v0.1.0/go.mod h1:RecgLatLF4+eUMCP1PoPZQb+cVrJcOPbHkTkbkB9sbw= +golang.org/x/crypto v0.6.0/go.mod h1:OFC/31mSvZgRz0V1QTNCzfAI1aIRzbiufJtkMIlEp58= +golang.org/x/crypto v0.12.0/go.mod h1:NF0Gs7EO5K4qLn+Ylc+fih8BSTeIjAP05siRnAh98yw= +golang.org/x/crypto v0.13.0/go.mod h1:y6Z2r+Rw4iayiXXAIxJIDAJ1zMW4yaTpebo8fPOliYc= +golang.org/x/crypto v0.14.0/go.mod h1:MVFd36DqK4CsrnJYDkBA3VC4m2GkXAM0PvzMCn4JQf4= +golang.org/x/exp v0.0.0-20180321215751-8460e604b9de/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= +golang.org/x/exp v0.0.0-20180807140117-3d87b88a115f/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= +golang.org/x/exp v0.0.0-20190125153040-c74c464bbbf2/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= +golang.org/x/exp v0.0.0-20191002040644-a1355ae1e2c3/go.mod h1:NOZ3BPKG0ec/BKJQgnvsSFpcKLM5xXVWnvZS97DWHgE= +golang.org/x/exp v0.0.0-20230626212559-97b1e661b5df/go.mod h1:FXUEEKJgO7OQYeo8N01OfiKP8RXMtf6e8aTskBGqWdc= +golang.org/x/exp v0.0.0-20230811145659-89c5cff77bcb/go.mod h1:FXUEEKJgO7OQYeo8N01OfiKP8RXMtf6e8aTskBGqWdc= +golang.org/x/exp/typeparams v0.0.0-20220428152302-39d4317da171/go.mod h1:AbB0pIl9nAr9wVwH+Z2ZpaocVmF5I4GyWCDIsVjR0bk= +golang.org/x/exp/typeparams v0.0.0-20230203172020-98cc5a0785f9/go.mod h1:AbB0pIl9nAr9wVwH+Z2ZpaocVmF5I4GyWCDIsVjR0bk= golang.org/x/exp/typeparams v0.0.0-20230224173230-c95f2b4c22f2/go.mod h1:AbB0pIl9nAr9wVwH+Z2ZpaocVmF5I4GyWCDIsVjR0bk= +golang.org/x/image v0.0.0-20180708004352-c73c2afc3b81/go.mod h1:ux5Hcp/YLpHSI86hEcLt0YII63i6oz57MZXIpbrjZUs= +golang.org/x/image v0.0.0-20190910094157-69e4b8554b2a/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= +golang.org/x/image v0.0.0-20200119044424-58c23975cae1/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= +golang.org/x/image v0.0.0-20200430140353-33d19683fad8/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= +golang.org/x/image v0.0.0-20200618115811-c13761719519/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= +golang.org/x/image v0.0.0-20201208152932-35266b937fa6/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= +golang.org/x/image v0.0.0-20210216034530-4410531fe030/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= +golang.org/x/image v0.0.0-20210607152325-775e3b0c77b9/go.mod h1:023OzeP/+EPmXeapQh35lcL3II3LrY8Ic+EFFKVhULM= +golang.org/x/image v0.0.0-20210628002857-a66eb6448b8d/go.mod h1:023OzeP/+EPmXeapQh35lcL3II3LrY8Ic+EFFKVhULM= +golang.org/x/mod v0.5.1/go.mod h1:5OXOZSfqPIIbmVBIIKWRFfZjPR0E5r58TLhUjH0a2Ro= +golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3/go.mod h1:3p9vT2HGsQu2K1YbXdKPJLVgG5VJdoTa1poYQBtP1AY= +golang.org/x/mod v0.6.0/go.mod h1:4mET923SAdbXp2ki8ey+zGs1SLqsuM2Y0uvdZR/fUNI= +golang.org/x/mod v0.7.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= +golang.org/x/mod v0.9.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= +golang.org/x/mod v0.11.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= +golang.org/x/net v0.0.0-20180719180050-a680a1efc54d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190327091125-710a502c58a2/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190522155817-f3200d17e092/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= +golang.org/x/net v0.0.0-20190923162816-aa69164e4478/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20210410081132-afb366fc7cd1/go.mod h1:9tjilg8BloeKEkVJvy7fQ90B1CfIiPueXVOjqfkSzI8= +golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20220826154423-83b083e8dc8b/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= +golang.org/x/net v0.2.0/go.mod h1:KqCZLdyyvdV855qA2rE3GC2aiw5xGR5TEjj8smXukLY= +golang.org/x/net v0.3.0/go.mod h1:MBQ8lrhLObU/6UmLb4fmbmk5OcyYmqtbGd/9yIeKjEE= +golang.org/x/net v0.5.0/go.mod h1:DivGGAXEgPSlEBzxGzZI+ZLohi+xUj054jfeKui00ws= +golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= +golang.org/x/net v0.14.0/go.mod h1:PpSgVXXLK0OxS0F31C1/tv6XNguvCrnXIDrFMspZIUI= +golang.org/x/net v0.16.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE= +golang.org/x/net v0.17.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE= +golang.org/x/net v0.18.0/go.mod h1:/czyP5RqHAH4odGYxBJ1qz0+CE5WZ+2j1YgoEo8F2jQ= +golang.org/x/oauth2 v0.0.0-20170207211851-4464e7848382/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= +golang.org/x/oauth2 v0.6.0/go.mod h1:ycmewcwgD4Rpr3eZJLSB4Kyyljb3qDh40vJ8STE5HKw= +golang.org/x/oauth2 v0.7.0/go.mod h1:hPLQkd9LyjfXTiRohC/41GhcFqxisoUQ99sCUOHO9x4= +golang.org/x/oauth2 v0.8.0/go.mod h1:yr7u4HXZRm1R1kBWqr/xKNqewf0plRYoB7sla+BCIXE= +golang.org/x/oauth2 v0.11.0/go.mod h1:LdF7O/8bLR/qWK9DrpXmbHLTouvRHK0SgJl0GmDBchk= +golang.org/x/oauth2 v0.12.0/go.mod h1:A74bZ3aGXgCY0qaIC9Ahg6Lglin4AMAco8cIv9baba4= golang.org/x/perf v0.0.0-20230113213139-801c7ef9e5c5/go.mod h1:UBKtEnL8aqnd+0JHqZ+2qoMDwtuy6cYhhKNoHLBiTQc= +golang.org/x/sync v0.2.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.3.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y= +golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190606203320-7fc4e5ec1444/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190922100055-0a153f010e69/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190924154521-2837fb4f24fe/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191008105621-543471e840be/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191115151921-52ab43148777/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200923182605-d9f96fdee20d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210303074136-134d130e1a04/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210304124612-50617c2ba197/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210603081109-ebe580a85c40/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210616045830-e2b7044e8c71/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210906170528-6f6e22806c34/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20211007075335-d3039528d8ac/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20211019181941-9d821ace8654/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20211103235746-7861aae1554b/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20211105183446-c75c47738b0c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20211116061358-0a5406a5449c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220114195835-da31bd327af9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220325203850-36772127a21f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220702020025-31831981b65f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220825204002-c680a09ffe64/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.3.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.4.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.13.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.14.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/term v0.0.0-20220722155259-a9ba230a4035/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= +golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc= +golang.org/x/term v0.3.0/go.mod h1:q750SLmJuPmVoN1blW3UFBPREJfb1KmY3vwxfr+nFDA= +golang.org/x/term v0.4.0/go.mod h1:9P2UbLfCdcvo3p/nzKvsmas4TnlujnuoV9hGgYzW1lQ= +golang.org/x/term v0.13.0/go.mod h1:LTmsnFJwVN6bCy1rVCoS+qHT1HhALEFxKncY3WNNh4U= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.6.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.12.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= +golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= +golang.org/x/time v0.1.0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.3.0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/tools v0.0.0-20180525024113-a5b4c53f6e8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190206041539-40960b6deb8e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190321232350-e250d351ecad/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190907020128-2ca718005c18/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20190910044552-dd2b5c81c578/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20190927191325-030b2cf1153e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20200324003944-a576cf524670/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= +golang.org/x/tools v0.0.0-20200329025819-fd4102a86c65/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= +golang.org/x/tools v0.0.0-20200724022722-7017fd6b1305/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200820010801-b793a1359eac/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20201001104356-43ebab892c4c/go.mod h1:z6u4i615ZeAfBE4XtMziQW1fSVJXACjjbWkB/mvPzlU= +golang.org/x/tools v0.0.0-20201023174141-c8cfbd0f21e6/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.1.1-0.20210205202024-ef80cdb6ec6d/go.mod h1:9bzcO0MWcOuT0tm1iBGzDVPshzfwoVvREIui8C+MHqU= +golang.org/x/tools v0.1.1-0.20210302220138-2ac05c832e1a/go.mod h1:9bzcO0MWcOuT0tm1iBGzDVPshzfwoVvREIui8C+MHqU= +golang.org/x/tools v0.1.9/go.mod h1:nABZi5QlRsZVlzPpHl034qft6wpY4eDcsTt5AaioBiU= +golang.org/x/tools v0.1.10/go.mod h1:Uh6Zz+xoGYZom868N8YTex3t7RhtHDBrE8Gzo9bV56E= +golang.org/x/tools v0.1.11/go.mod h1:SgwaegtQh8clINPpECJMqnxLv9I09HLqnW3RMqW0CA4= +golang.org/x/tools v0.2.0/go.mod h1:y4OqIKeOV/fWJetJ8bXPU1sEVniLMIyDAZWeHdV+NTA= +golang.org/x/tools v0.3.0/go.mod h1:/rWhSS2+zyEVwoJf8YAX6L2f0ntZ7Kn/mGgAWcipA5k= +golang.org/x/tools v0.4.0/go.mod h1:UE5sM2OK9E/d67R0ANs2xJizIymRP5gJU295PvKXxjQ= +golang.org/x/tools v0.5.0/go.mod h1:N+Kgy78s5I24c24dU8OfWNEotWjutIs8SnJvn5IDq+k= +golang.org/x/tools v0.7.0/go.mod h1:4pg6aUX35JBAogB10C9AtvVL+qowtN4pT3CGSQex14s= +golang.org/x/tools v0.13.0/go.mod h1:HvlwmtVNQAhOuCjW7xxvovg8wbNq7LwfXh/k7wXUl58= +gonum.org/v1/gonum v0.0.0-20180816165407-929014505bf4/go.mod h1:Y+Yx5eoAFn32cQvJDxZx5Dpnq+c3wtXuadVZAcxbbBo= +gonum.org/v1/gonum v0.8.2/go.mod h1:oe/vMfY3deqTw+1EZJhuvEW2iwGF1bW9wwu7XCu0+v0= +gonum.org/v1/gonum v0.9.3/go.mod h1:TZumC3NeyVQskjXqmyWt4S3bINhy7B4eYwW69EbyX+0= gonum.org/v1/gonum v0.12.0/go.mod h1:73TDxJfAAHeA8Mk9mf8NlIppyhQNo5GLTcYeqgo2lvY= +gonum.org/v1/netlib v0.0.0-20190313105609-8cb42192e0e0/go.mod h1:wa6Ws7BG/ESfp6dHfk7C6KdzKA7wR7u/rKwOGE66zvw= +gonum.org/v1/plot v0.0.0-20190515093506-e2840ee46a6b/go.mod h1:Wt8AAjI+ypCyYX3nZBvf6cAIx93T+c/OS2HFAYskSZc= +gonum.org/v1/plot v0.9.0/go.mod h1:3Pcqqmp6RHvJI72kgb8fThyUnav364FOsdDo2aGW5lY= +gonum.org/v1/plot v0.10.0/go.mod h1:JWIHJ7U20drSQb/aDpTetJzfC1KlAPldJLpkSy88dvQ= +google.golang.org/api v0.0.0-20170206182103-3d017632ea10/go.mod h1:4mhQ8q/RsB7i+udVvVy5NUi08OU8ZlA0gRVgrF7VFY0= +google.golang.org/api v0.114.0/go.mod h1:ifYI2ZsFK6/uGddGfAD5BMxlnkBqCmqHSDUVi45N5Yg= google.golang.org/api v0.122.0/go.mod h1:gcitW0lvnyWjSp9nKxAbdHKIZ6vF4aajGueeslZOyms= +google.golang.org/api v0.128.0/go.mod h1:Y611qgqaE92On/7g65MQgxYul3c0rEB894kniWLY750= +google.golang.org/genproto v0.0.0-20230320184635-7606e756e683/go.mod h1:NWraEVixdDnqcqQ30jipen1STv2r/n24Wb7twVTGR4s= +google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1/go.mod h1:nKE/iIaLqn2bQwXBg8f1g2Ylh6r5MN5CmZvuzZCgsCU= +google.golang.org/genproto v0.0.0-20230530153820-e85fd2cbaebc/go.mod h1:xZnkP7mREFX5MORlOPEzLMr+90PPZQ2QWzrVTWfAq64= +google.golang.org/genproto v0.0.0-20230822172742-b8732ec3820d/go.mod h1:yZTlhN0tQnXo3h00fuXNCxJdLdIdnVFVBaRJ5LWBbw4= +google.golang.org/genproto v0.0.0-20231002182017-d307bd883b97/go.mod h1:t1VqOqqvce95G3hIDCT5FeO3YUc6Q4Oe24L/+rNMxRk= +google.golang.org/genproto v0.0.0-20231016165738-49dd2c1f3d0b/go.mod h1:CgAqfJo+Xmu0GwA0411Ht3OU3OntXwsGmrmjI8ioGXI= +google.golang.org/genproto v0.0.0-20231106174013-bbf56f31fb17/go.mod h1:J7XzRzVy1+IPwWHZUzoD0IccYZIrXILAQpc+Qy9CMhY= +google.golang.org/genproto v0.0.0-20231120223509-83a465c0220f/go.mod h1:nWSwAFPb+qfNJXsoeO3Io7zf4tMSfN8EA8RlDA04GhY= +google.golang.org/genproto/googleapis/api v0.0.0-20230530153820-e85fd2cbaebc/go.mod h1:vHYtlOoi6TsQ3Uk2yxR7NI5z8uoV+3pZtR4jmHIkRig= +google.golang.org/genproto/googleapis/api v0.0.0-20230822172742-b8732ec3820d/go.mod h1:KjSP20unUpOx5kyQUFa7k4OJg0qeJ7DEZflGDu2p6Bk= +google.golang.org/genproto/googleapis/api v0.0.0-20231002182017-d307bd883b97/go.mod h1:iargEX0SFPm3xcfMI0d1domjg0ZF4Aa0p2awqyxhvF0= +google.golang.org/genproto/googleapis/api v0.0.0-20231012201019-e917dd12ba7a/go.mod h1:SUBoKXbI1Efip18FClrQVGjWcyd0QZd8KkvdP34t7ww= +google.golang.org/genproto/googleapis/api v0.0.0-20231016165738-49dd2c1f3d0b/go.mod h1:IBQ646DjkDkvUIsVq/cc03FUFQ9wbZu7yE396YcL870= +google.golang.org/genproto/googleapis/api v0.0.0-20231106174013-bbf56f31fb17/go.mod h1:0xJLfVdJqpAPl8tDg1ujOCGzx6LFLttXT5NhllGOXY4= google.golang.org/genproto/googleapis/bytestream v0.0.0-20231030173426-d783a09b4405/go.mod h1:GRUCuLdzVqZte8+Dl/D4N25yLzcGqqWaYkeVOwulFqw= +google.golang.org/genproto/googleapis/rpc v0.0.0-20230530153820-e85fd2cbaebc/go.mod h1:66JfowdXAEgad5O9NnYcsNPLCPZJD++2L9X0PCMODrA= +google.golang.org/genproto/googleapis/rpc v0.0.0-20230815205213-6bfd019c3878/go.mod h1:+Bk1OCOj40wS2hwAMA+aCW9ypzm63QTBBHp6lQ3p+9M= +google.golang.org/genproto/googleapis/rpc v0.0.0-20230822172742-b8732ec3820d/go.mod h1:+Bk1OCOj40wS2hwAMA+aCW9ypzm63QTBBHp6lQ3p+9M= +google.golang.org/genproto/googleapis/rpc v0.0.0-20231002182017-d307bd883b97/go.mod h1:v7nGkzlmW8P3n/bKmWBn2WpBjpOEx8Q6gMueudAmKfY= +google.golang.org/genproto/googleapis/rpc v0.0.0-20231016165738-49dd2c1f3d0b/go.mod h1:swOH3j0KzcDDgGUWr+SNpyTen5YrXjS3eyPzFYKc6lc= +google.golang.org/genproto/googleapis/rpc v0.0.0-20231030173426-d783a09b4405/go.mod h1:67X1fPuzjcrkymZzZV1vvkFeTn2Rvc6lYF9MYFGCcwE= +google.golang.org/genproto/googleapis/rpc v0.0.0-20231106174013-bbf56f31fb17/go.mod h1:oQ5rr10WTTMvP4A36n8JpR1OrO1BEiV4f78CneXZxkA= +google.golang.org/genproto/googleapis/rpc v0.0.0-20231120223509-83a465c0220f/go.mod h1:L9KNLi232K1/xB6f7AlSX692koaRnKaWSR0stBki0Yc= +google.golang.org/genproto/googleapis/rpc v0.0.0-20231211222908-989df2bf70f3/go.mod h1:eJVxU6o+4G1PSczBr85xmyvSNYAKvAYgkub40YGomFM= +google.golang.org/grpc v0.0.0-20170208002647-2a6bf6142e96/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw= +google.golang.org/grpc v1.53.0/go.mod h1:OnIrk0ipVdj4N5d9IUoFUx72/VlD7+jUsHwZgwSMQpw= +google.golang.org/grpc v1.55.0/go.mod h1:iYEXKGkEBhg1PjZQvoYEVPTDkHo1/bjTnfwTeGONTY8= +google.golang.org/grpc v1.56.1/go.mod h1:I9bI3vqKfayGqPUAwGdOSu7kt6oIJLixfffKrpXqQ9s= +google.golang.org/grpc v1.57.0/go.mod h1:Sd+9RMTACXwmub0zcNY2c4arhtrbBYD1AUHI/dt16Mo= +google.golang.org/grpc v1.58.3/go.mod h1:tgX3ZQDlNJGU96V6yHh1T/JeoBQ2TXdr43YbYSsCJk0= +google.golang.org/grpc v1.59.0/go.mod h1:aUPDwccQo6OTjy7Hct4AfBPD1GptF4fyUjIkQ9YtF98= +google.golang.org/grpc v1.60.0/go.mod h1:OlCHIeLYqSSsLi6i49B5QGdzaMZK9+M7LXN2FKz4eGM= +google.golang.org/protobuf v1.29.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= +google.golang.org/protobuf v1.31.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= +gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/yaml.v3 v3.0.0/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gotest.tools v2.2.0+incompatible h1:VsBPFP1AI068pPrMxtb/S8Zkgf9xEmTLJjfM+P5UIEo= gotest.tools v2.2.0+incompatible/go.mod h1:DsYFclhRJ6vuDpmuTbkuFWG+y2sxOXAzmJt81HFBacw= honnef.co/go/tools v0.4.3/go.mod h1:36ZgoUOrqOk1GxwHhyryEkq8FQWkUO2xGuSMhUCcdvA= diff --git a/x/README.md b/x/README.md new file mode 100644 index 0000000..1d367bf --- /dev/null +++ b/x/README.md @@ -0,0 +1,10 @@ +# List of Modules + +Here are some testing-grade modules, along with their respective documentation: + +* [Escrow](./escrow/README.md) - Supports generalized transaction between accounts +* [Test](./test/README.md) - Helps testing other modules. You should not use it in applications. + +## Cosmos SDK + +You can always use modules from [Cosmos SDK](https://github.com/cosmos/cosmos-sdk) applications. diff --git a/x/escrow/README.md b/x/escrow/README.md new file mode 100644 index 0000000..621b0a8 --- /dev/null +++ b/x/escrow/README.md @@ -0,0 +1,775 @@ +# `x/escrow` + +## Abstract + +This modules provides means to execute messages whose signers come from +different parties. Typical example would be a trade, by which two individual +account can exchange assets. Without this module, they have to use a tx which +include the messages that requires signatures from both of them. Or, they may +create a contract into x/wasm. The former requires a tool to safely exchange +the half-signed transaction (which x/group tries to avoid), while the latter +involves cumbersome preparation for certain tailer made contract code. The +trade itself would be quite simple and obvious, hence this module tries to +reduce such efforts on those tedious use cases. + + +## Contents + +* [Concepts](#concepts) +* [State](#state) +* [Msg Service](#msg-service) + * [Msg/UpdateParams](#msgupdateparams) + * [Msg/CreateAgent](#msgcreateagent) + * [Msg/SubmitProposal](#msgsubmitproposal) + * [Msg/Exec](#msgexec) +* [Events](#events) + * [EventUpdateParams](#eventupdateparams) + * [EventCreateAgent](#eventcreateagent) + * [EventSubmitProposal](#eventsubmitproposal) + * [EventExec](#eventexec) +* [Client](#client) + * [CLI](#cli) + * [gRPC](#grpc) + + +## Concepts + +### Agent + +In abstract manner, the purpose of agents is to provide a place holder for +proposals. In real life, an agent is vital component for safe transactions, +which arranges the procedure as a neutral actor. + +Anyone can create agents as many as they want. + +### Proposal + +There are two parties involved in a transaction. The first one, proposer, is +who suggests a transaction by broadcasting Msg/SubmitProposal. The second one, +executor, is who accepts the transaction, by broadcasting Msg/Exec. + +A transaction consists of pre-actions, actions and post-actions. All three +actions will be executed in sequence, and all the messages must be successful +to complete the transaction. + +Pre-actions are steps for transferring the control on certain assets from the +proposer to the agent, so determined by the proposer on Msg/SubmitProposal. To +ensure the successful transfer at Msg/Exec, pre-actions are executed at the +proposal submission. + +Post-actions are steps for transferring the control on certain assets from the +agent to the proposer. Post-actions ensure the proposer gets the proper reward, +so it is determined by the proposer on Msg/SubmitProposal. + +Actions are steps for transferring the control on certain assets from the +executor to agent and vice versa, so determined by the executor on Msg/Exec. +The messages included in actions would take assets on the agent (reserved by +the proposer), and reserve the reward for the proposer into the agent. The +executor MUST place the reward as stated in Msg/SubmitProposal or the +post-actions would fail, resulting the failure of the transaction. + +#### Submitting Proposals + +A transaction begins with a certain proposer submitting a proposal. It is +triggered by broadcasting Msg/SubmitProposal. The message has information of +the proposer, the agent, the pre-actions and post-actions. +An agent MUST be prepared by the proposer, in prior to the submission. The +signers included in the pre-actions and post-actions MUST be either the +proposer or the agent. As mentioned above, pre-actions will be executed in this +step. + +After successful submission of the proposal, the agent would be pruned from the +state. + +#### Executing Proposals + +A proposal would be executed by a certain executor who is interested in. It is +triggered by broadcasting Msg/Exec. The message has information of the +executor, the agent and the actions. The agent MUST be indentical with that of +the proposal. The signers included in the actions MUST be either the executor +or the agent. + +After successful execution of the proposal, the proposal would be pruned from +the state. + + +## State + +### Params + +* Params: `0x00 -> ProtocolBuffer(Params)` + +```protobuf reference +https://github.com/0tech/andromeda/blob/main/x/escrow/proto/andromeda/escrow/v1alpha1/types.proto#L6-L7 +``` + +### NextAgent + +* NextAgent: `0x10 -> uint64` + +### Agents + +* Agents: `0x11 | creator_address | agent_address -> ProtocolBuffer(Agent)` + +```protobuf reference +https://github.com/0tech/andromeda/blob/main/x/escrow/proto/andromeda/escrow/v1alpha1/types.proto#L9-L11 +``` + +### NextProposal + +* NextProposal: `0x20 -> uint64` + +### Proposals + +* Proposals: `0x21 | proposer_address | proposal_id -> ProtocolBuffer(Proposal)` + +```protobuf reference +https://github.com/0tech/andromeda/blob/main/x/escrow/proto/andromeda/escrow/v1alpha1/types.proto#L13-L23 +``` + + +## Msg Service + +### Msg/UpdateParams + +```protobuf reference +https://github.com/0tech/andromeda/blob/main/x/escrow/proto/andromeda/escrow/v1alpha1/tx.proto#L25-L38 +``` + +### Msg/CreateAgent + +```protobuf reference +https://github.com/0tech/andromeda/blob/main/x/escrow/proto/andromeda/escrow/v1alpha1/tx.proto#L43-L49 +``` + +### Msg/SubmitProposal + +```protobuf reference +https://github.com/0tech/andromeda/blob/main/x/escrow/proto/andromeda/escrow/v1alpha1/tx.proto#L57-L75 +``` + +### Msg/Exec + +```protobuf reference +https://github.com/0tech/andromeda/blob/main/x/escrow/proto/andromeda/escrow/v1alpha1/tx.proto#L83-L99 +``` + + +## Events + +### EventUpdateParams + +```protobuf reference +https://github.com/0tech/andromeda/blob/main/x/escrow/proto/andromeda/escrow/v1alpha1/event.proto#L7-L9 +``` + +### EventCreateAgent + +```protobuf reference +https://github.com/0tech/andromeda/blob/main/x/escrow/proto/andromeda/escrow/v1alpha1/event.proto#L11-L18 +``` + +### EventSubmitProposal + +```protobuf reference +https://github.com/0tech/andromeda/blob/main/x/escrow/proto/andromeda/escrow/v1alpha1/event.proto#L20-L36 +``` + +### EventExec + +```protobuf reference +https://github.com/0tech/andromeda/blob/main/x/escrow/proto/andromeda/escrow/v1alpha1/event.proto#L38-L48 +``` + + +## Client + +### CLI + +#### Query + +```bash +and query escrow --help +``` + +```bash +Querying commands for the escrow module + +Usage: + and query escrow [flags] + and query escrow [command] + +Available Commands: + agent queries an agent. + agents queries all the agents. + params queries the module params. + proposal queries a proposal. + proposals queries all the proposals. +``` + +##### params + +```bash +and query escrow params --help +``` + +```bash +``` + +##### agent + +```bash +and query escrow agent --help +``` + +```bash +queries an agent. + +Usage: + and query escrow agent --address [address] [flags] + +Examples: +$ and query escrow agent --address cosmos1aaa... +agent: + address: cosmos1aaa... + creator: cosmos1... +``` + +##### agents + +```bash +and and query escrow agents --help +``` + +```bash +queries all the agents. + +Usage: + and query escrow agents [flags] + +Examples: +$ and query escrow agents +agents: +- address: cosmos1... + creator: cosmos1... +- address: cosmos1... + creator: cosmos1... +- address: cosmos1... + creator: cosmos1... +pagination: + total: "3" +``` + +##### proposal + +```bash +and query escrow proposal --help +``` + +```bash +queries a proposal. + +Usage: + and query escrow proposal --id [id] [flags] + +Examples: +$ and query escrow proposal --id 3 +proposal: + agent: cosmos1... + id: "3" + post_actions: + - type: cosmos-sdk/MsgSend + value: + amount: + - amount: "42" + denom: stake + from_address: cosmos1... + to_address: cosmos1... + pre_actions: + - type: /cosmos.nft.v1beta1.MsgSend + value: + class_id: ... + id: ... + receiver: cosmos1... + sender: cosmos1... + proposer: cosmos1... +``` + +##### proposals + +```bash +and query escrow proposals --help +``` + +```bash +queries all the proposals. + +Usage: + and query escrow proposals [flags] + +Examples: +$ and query escrow proposals +pagination: + total: "2" +proposals: +- agent: cosmos1... + id: "3" + post_actions: + - type: cosmos-sdk/MsgSend + value: + amount: + - amount: "42" + denom: stake + from_address: cosmos1... + to_address: cosmos1... + pre_actions: + - type: /cosmos.nft.v1beta1.MsgSend + value: + class_id: ... + id: ... + receiver: cosmos1... + sender: cosmos1... + proposer: cosmos1... +- agent: cosmos1... + id: "4" + post_actions: + - type: cosmos-sdk/MsgSend + value: + amount: + - amount: "42" + denom: stake + from_address: cosmos1... + to_address: cosmos1... + - type: /cosmos.nft.v1beta1.MsgSend + value: + class_id: ... + id: ... + receiver: cosmos1... + sender: cosmos1... + pre_actions: + - type: /cosmos.nft.v1beta1.MsgSend + value: + class_id: ... + id: ... + receiver: cosmos1... + sender: cosmos1... + proposer: cosmos1... +``` + +#### Transactions + +```bash +and tx escrow --help +``` + +```bash +Transactions commands for the escrow module + +Usage: + and tx escrow [flags] + and tx escrow [command] + +Available Commands: + create-agent creates an escrow agent for a proposal. + exec executes a proposal. + submit-proposal submits a proposal. + update-params updates the module parameters. +``` + +##### create-agent + +```bash +and tx escrow create-agent --help +``` + +```bash +creates an escrow agent for a proposal. + +Usage: + and tx escrow create-agent --from [creator] [flags] + +Examples: +$ and tx escrow create-agent --from cosmos1ccc... +auth_info: + fee: + amount: [] + gas_limit: "200000" + granter: "" + payer: "" + signer_infos: [] + tip: null +body: + extension_options: [] + memo: "" + messages: + - '@type': /andromeda.escrow.v1alpha1.MsgCreateAgent + creator: cosmos1ccc... + non_critical_extension_options: [] + timeout_height: "0" +signatures: [] +confirm transaction before signing and broadcasting [y/N]: +``` + +##### submit-proposal + +```bash +and tx escrow submit-proposal --help +``` + +```bash +submits a proposal. + +Note: + agent: + it must be created by the proposer. + pre-actions: + the signer of each message must be either the proposer or the agent. + post-actions: + the signer of each message must be either the proposer or the agent. + +Usage: + and tx escrow submit-proposal --from [proposer] --agent [agent] --pre-actions [pre-actions] --post-actions [post-actions] [flags] + +Examples: +$ and tx escrow submit-proposal --from cosmos1ppp... --agent cosmos1aaa... \ + --pre-actions '{"@type": "/cosmos.nft.v1beta1.MsgSend", + "class_id": "cat", + "id": "octocat", + "sender": "cosmos1ppp...", + "receiver": "cosmos1aaa..."}' \ + --post-actions '{"@type": "/cosmos.bank.v1beta1.MsgSend", + "from_address": "cosmos1aaa", + "to_address": "cosmos1ppp...", + "amount": [{"amount": "42", "denom": "stake"}]}' +auth_info: + fee: + amount: [] + gas_limit: "200000" + granter: "" + payer: "" + signer_infos: [] + tip: null +body: + extension_options: [] + memo: "" + messages: + - '@type': /andromeda.escrow.v1alpha1.MsgSubmitProposal + agent: cosmos1aaa... + post_actions: + - '@type': /cosmos.bank.v1beta1.MsgSend + amount: + - amount: "42" + denom: stake + from_address: cosmos1aaa... + to_address: cosmos1ppp... + pre_actions: + - '@type': /cosmos.nft.v1beta1.MsgSend + value: + class_id: cat + id: octocat + receiver: cosmos1aaa... + sender: cosmos1ppp... + proposer: cosmos1ppp... + non_critical_extension_options: [] + timeout_height: "0" +signatures: [] +confirm transaction before signing and broadcasting [y/N]: +``` + +##### exec + +```bash +and tx escrow exec --help +``` + +```bash +executes a proposal. + +Note: + actions: + the signer of each message must be either the executor or the agent. + +Usage: + and tx escrow exec --proposal [proposal] --from [executor] --agent [agent] --actions [actions] [flags] + +Examples: +$ and tx escrow exec --proposal 2 --from cosmos1eee... --agent cosmos1... \ + --actions '{"@type": "/cosmos.nft.v1beta1.MsgSend", + "class_id": "cat", + "id": "octocat", + "sender": "cosmos1aaa...", + "receiver": "cosmos1eee..."}' \ + --actions '{"@type": "/cosmos.bank.v1beta1.MsgSend", + "from_address": "cosmos1eee...", + "to_address": "cosmos1aaa...", + "amount": [{"amount": "42", "denom": "stake"}]}' +auth_info: + fee: + amount: [] + gas_limit: "200000" + granter: "" + payer: "" + signer_infos: [] + tip: null +body: + extension_options: [] + memo: "" + messages: + - '@type': /andromeda.escrow.v1alpha1.MsgExec + actions: + - '@type': /cosmos.nft.v1beta1.MsgSend + class_id: cat + id: octocat + receiver: cosmos1eee... + sender: cosmos1aaa... + - '@type': /cosmos.bank.v1beta1.MsgSend + amount: + - amount: "42" + denom: stake + from_address: cosmos1eee... + to_address: cosmos1aaa... + agent: cosmos1aaa... + executor: cosmos1eee... + proposal: "2" + non_critical_extension_options: [] + timeout_height: "0" +signatures: [] +confirm transaction before signing and broadcasting [y/N]: +``` + +### gRPC + +```bash +grpcurl -plaintext \ + localhost:9090 list andromeda.escrow.v1alpha1.Query +``` + +```bash +andromeda.escrow.v1alpha1.Query.Agent +andromeda.escrow.v1alpha1.Query.Agents +andromeda.escrow.v1alpha1.Query.Params +andromeda.escrow.v1alpha1.Query.Proposal +andromeda.escrow.v1alpha1.Query.Proposals +``` + +#### andromeda.escrow.v1alpha1.Query.Params + +```bash +grpcurl -plaintext \ + localhost:9090 describe andromeda.escrow.v1alpha1.Query.Params +``` + +Example: + +```bash +grpcurl -plaintext \ + localhost:9090 andromeda.escrow.v1alpha1.Query.Params +``` + +Example Output: + +```bash +{ + "params": {} +} +``` + +#### andromeda.escrow.v1alpha1.Query.Agent + +```bash +grpcurl -plaintext \ + localhost:9090 describe andromeda.escrow.v1alpha1.Query.Agent +``` + +Example: + +```bash +grpcurl -plaintext \ + -d '{"address": "cosmos1aaa..."}' \ + localhost:9090 andromeda.escrow.v1alpha1.Query.Agent +``` + +Example Output: + +```bash +{ + "agent": { + "address": "cosmos1aaa...", + "creator": "cosmos1..." + } +} +``` + +### andromeda.escrow.v1alpha1.Query.Agents + +```bash +grpcurl -plaintext \ + localhost:9090 describe andromeda.escrow.v1alpha1.Query.Agents +``` + +Example: + +```bash +grpcurl -plaintext \ + localhost:9090 andromeda.escrow.v1alpha1.Query.Agents +``` + +Example Output: + +```bash +{ + "agents": [ + { + "address": "cosmos1...", + "creator": "cosmos1..." + }, + { + "address": "cosmos1...", + "creator": "cosmos1..." + }, + { + "address": "cosmos1...", + "creator": "cosmos1..." + } + ], + "pagination": { + "total": "3" + } +} +``` + +#### andromeda.escrow.v1alpha1.Query.Proposal + +```bash +grpcurl -plaintext \ + localhost:9090 describe andromeda.escrow.v1alpha1.Query.Proposal +``` + +Example: + +```bash +grpcurl -plaintext \ + -d '{"id": "3"}' \ + localhost:9090 andromeda.escrow.v1alpha1.Query.Proposal +``` + +Example Output: + +```bash +{ + "proposal": { + "id": "3", + "proposer": "cosmos1...", + "agent": "cosmos1...", + "preActions": [ + { + "@type": "/cosmos.nft.v1beta1.MsgSend", + "classId": "...", + "id": "...", + "sender": "cosmos1...", + "receiver": "cosmos1..." + } + ], + "postActions": [ + { + "@type": "/cosmos.bank.v1beta1.MsgSend", + "amount": [ + { + "denom": "stake", + "amount": "42" + } + ], + "fromAddress": "cosmos1...", + "toAddress": "cosmos1..." + } + ] + } +} +``` + +### andromeda.escrow.v1alpha1.Query.Proposals + +```bash +grpcurl -plaintext \ + localhost:9090 describe andromeda.escrow.v1alpha1.Query.Proposals +``` + +Example: + +```bash +grpcurl -plaintext \ + localhost:9090 andromeda.escrow.v1alpha1.Query.Proposals +``` + +Example Output: + +```bash +{ + "proposals": [ + { + "id": "3", + "proposer": "cosmos1...", + "agent": "cosmos1...", + "preActions": [ + { + "@type": "/cosmos.nft.v1beta1.MsgSend", + "classId": "...", + "id": "...", + "sender": "cosmos1...", + "receiver": "cosmos1..." + } + ], + "postActions": [ + { + "@type": "/cosmos.bank.v1beta1.MsgSend", + "amount": [ + { + "denom": "stake", + "amount": "42" + } + ], + "fromAddress": "cosmos1...", + "toAddress": "cosmos1..." + } + ] + }, + { + "id": "4", + "proposer": "cosmos1...", + "agent": "cosmos1...", + "preActions": [ + { + "@type": "/cosmos.nft.v1beta1.MsgSend", + "classId": "...", + "id": "...", + "sender": "cosmos1...", + "receiver": "cosmos1..." + } + ], + "postActions": [ + { + "@type": "/cosmos.bank.v1beta1.MsgSend", + "amount": [ + { + "denom": "stake", + "amount": "42" + } + ], + "fromAddress": "cosmos1...", + "toAddress": "cosmos1..." + }, + { + "@type": "/cosmos.nft.v1beta1.MsgSend", + "classId": "...", + "id": "...", + "sender": "cosmos1...", + "receiver": "cosmos1..." + } + ] + }, + ], + "pagination": { + "total": "2" + } +} +``` diff --git a/x/escrow/go.mod b/x/escrow/go.mod index d2f85f5..8fc59de 100644 --- a/x/escrow/go.mod +++ b/x/escrow/go.mod @@ -4,6 +4,7 @@ go 1.21 require ( cosmossdk.io/api v0.7.2 + cosmossdk.io/client/v2 v2.0.0-beta.1 cosmossdk.io/collections v0.4.0 cosmossdk.io/core v0.11.0 cosmossdk.io/depinject v1.0.0-alpha.4 @@ -110,7 +111,7 @@ require ( github.com/mtibben/percent v0.2.1 // indirect github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a // indirect github.com/oklog/run v1.1.0 // indirect - github.com/pelletier/go-toml/v2 v2.0.8 // indirect + github.com/pelletier/go-toml/v2 v2.1.0 // indirect github.com/petermattis/goid v0.0.0-20230904192822-1876fd5063bc // indirect github.com/pkg/errors v0.9.1 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect diff --git a/x/escrow/go.sum b/x/escrow/go.sum index aa31942..60ad8c7 100644 --- a/x/escrow/go.sum +++ b/x/escrow/go.sum @@ -37,6 +37,8 @@ cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9 cloud.google.com/go/storage v1.14.0/go.mod h1:GrKmX003DSIwi9o29oFT7YDnHYwZoctc3fOKtUw0Xmo= cosmossdk.io/api v0.7.2 h1:BO3i5fvKMKvfaUiMkCznxViuBEfyWA/k6w2eAF6q1C4= cosmossdk.io/api v0.7.2/go.mod h1:IcxpYS5fMemZGqyYtErK7OqvdM0C8kdW3dq8Q/XIG38= +cosmossdk.io/client/v2 v2.0.0-beta.1 h1:XkHh1lhrLYIT9zKl7cIOXUXg2hdhtjTPBUfqERNA1/Q= +cosmossdk.io/client/v2 v2.0.0-beta.1/go.mod h1:JEUSu9moNZQ4kU3ir1DKD5eU4bllmAexrGWjmb9k8qU= 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.0 h1:vtIafqUi+1ZNAE/oxLOQQ7Oek2n4S48SWLG8h/+wdbo= @@ -637,8 +639,8 @@ github.com/pascaldekloe/goe v0.1.0 h1:cBOtyMzM9HTpWjXfbbunk26uA6nG3a8n06Wieeh0Mw 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.0.8 h1:0ctb6s9mE31h0/lhu+J6OPmVeDxJn+kYnJc2jZR9tGQ= -github.com/pelletier/go-toml/v2 v2.0.8/go.mod h1:vuYfssBdrU2XDZ9bYydBu6t+6a6PYNcZljzZR9VXg+4= +github.com/pelletier/go-toml/v2 v2.1.0 h1:FnwAJ4oYMvbT/34k9zzHuZNrhlz48GB3/s6at6/MHO4= +github.com/pelletier/go-toml/v2 v2.1.0/go.mod h1:tJU2Z3ZkXwnxa4DPO899bsyIoywizdUvyaeZurnPPDc= github.com/performancecopilot/speed v3.0.0+incompatible/go.mod h1:/CLtqpZ5gBg1M9iaPbIdPPGyKcA8hKdoy6hAWba7Yac= github.com/petermattis/goid v0.0.0-20180202154549-b0b1615b78e5/go.mod h1:jvVRKCrJTQWu0XVbaOlby/2lO20uSCHEMzzplHXte1o= github.com/petermattis/goid v0.0.0-20230904192822-1876fd5063bc h1:8bQZVK1X6BJR/6nYUPxQEP+ReTsceJTKizeuwjWOPUA= @@ -763,7 +765,6 @@ github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/ 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.3/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= github.com/subosito/gotenv v1.4.2 h1:X1TuBLAMDFbaTAChgCBLu3DU3UPyELpnF2jjJ2cz/S8= diff --git a/x/escrow/module/autocli.go b/x/escrow/module/autocli.go index 4b0d4dd..1a61732 100644 --- a/x/escrow/module/autocli.go +++ b/x/escrow/module/autocli.go @@ -2,10 +2,13 @@ package module import ( autocliv1 "cosmossdk.io/api/cosmos/autocli/v1" + "cosmossdk.io/client/v2/autocli" escrowv1alpha1 "github.com/0tech/andromeda/x/escrow/api/andromeda/escrow/v1alpha1" ) +var _ autocli.HasAutoCLIConfig = (*AppModule)(nil) + func (AppModule) AutoCLIOptions() *autocliv1.ModuleOptions { return &autocliv1.ModuleOptions{ Query: &autocliv1.ServiceCommandDescriptor{ @@ -15,6 +18,8 @@ func (AppModule) AutoCLIOptions() *autocliv1.ModuleOptions { RpcMethod: "Params", Short: "queries the module params.", Use: "params", + Example: `$ and query escrow params +params: {}`, }, { RpcMethod: "Agent", @@ -25,10 +30,24 @@ func (AppModule) AutoCLIOptions() *autocliv1.ModuleOptions { Usage: "the address of an agent", }, }, + Example: `$ and query escrow agent --address cosmos1aaa... +agent: + address: cosmos1aaa... + creator: cosmos1...`, }, { RpcMethod: "Agents", Short: "queries all the agents.", + Example: `$ and query escrow agents +agents: +- address: cosmos1... + creator: cosmos1... +- address: cosmos1... + creator: cosmos1... +- address: cosmos1... + creator: cosmos1... +pagination: + total: "3"`, }, { RpcMethod: "Proposal", @@ -39,10 +58,76 @@ func (AppModule) AutoCLIOptions() *autocliv1.ModuleOptions { Usage: "the identifier of a proposal", }, }, + Example: `$ and query escrow proposal --id 3 +proposal: + agent: cosmos1... + id: "3" + post_actions: + - type: cosmos-sdk/MsgSend + value: + amount: + - amount: "42" + denom: stake + from_address: cosmos1... + to_address: cosmos1... + pre_actions: + - type: /cosmos.nft.v1beta1.MsgSend + value: + class_id: ... + id: ... + receiver: cosmos1... + sender: cosmos1... + proposer: cosmos1...`, }, { RpcMethod: "Proposals", Short: "queries all the proposals.", + Example: `$ and query escrow proposals +pagination: + total: "2" +proposals: +- agent: cosmos1... + id: "3" + post_actions: + - type: cosmos-sdk/MsgSend + value: + amount: + - amount: "42" + denom: stake + from_address: cosmos1... + to_address: cosmos1... + pre_actions: + - type: /cosmos.nft.v1beta1.MsgSend + value: + class_id: ... + id: ... + receiver: cosmos1... + sender: cosmos1... + proposer: cosmos1... +- agent: cosmos1... + id: "4" + post_actions: + - type: cosmos-sdk/MsgSend + value: + amount: + - amount: "42" + denom: stake + from_address: cosmos1... + to_address: cosmos1... + - type: /cosmos.nft.v1beta1.MsgSend + value: + class_id: ... + id: ... + receiver: cosmos1... + sender: cosmos1... + pre_actions: + - type: /cosmos.nft.v1beta1.MsgSend + value: + class_id: ... + id: ... + receiver: cosmos1... + sender: cosmos1... + proposer: cosmos1...`, }, }, }, @@ -68,6 +153,25 @@ Note: RpcMethod: "CreateAgent", Short: "creates an escrow agent for a proposal.", Use: "create-agent --from [creator]", + Example: `$ and tx escrow create-agent --from cosmos1ccc... +auth_info: + fee: + amount: [] + gas_limit: "200000" + granter: "" + payer: "" + signer_infos: [] + tip: null +body: + extension_options: [] + memo: "" + messages: + - '@type': /andromeda.escrow.v1alpha1.MsgCreateAgent + creator: cosmos1ccc... + non_critical_extension_options: [] + timeout_height: "0" +signatures: [] +confirm transaction before signing and broadcasting [y/N]:`, }, { RpcMethod: "SubmitProposal", @@ -95,6 +199,49 @@ Note: DefaultValue: "{}", }, }, + Example: `$ and tx escrow submit-proposal --from cosmos1ppp... --agent cosmos1aaa... \ + --pre-actions '{"@type": "/cosmos.nft.v1beta1.MsgSend", + "class_id": "cat", + "id": "octocat", + "sender": "cosmos1ppp...", + "receiver": "cosmos1aaa..."}' \ + --post-actions '{"@type": "/cosmos.bank.v1beta1.MsgSend", + "from_address": "cosmos1aaa", + "to_address": "cosmos1ppp...", + "amount": [{"amount": "42", "denom": "stake"}]}' +auth_info: + fee: + amount: [] + gas_limit: "200000" + granter: "" + payer: "" + signer_infos: [] + tip: null +body: + extension_options: [] + memo: "" + messages: + - '@type': /andromeda.escrow.v1alpha1.MsgSubmitProposal + agent: cosmos1aaa... + post_actions: + - '@type': /cosmos.bank.v1beta1.MsgSend + amount: + - amount: "42" + denom: stake + from_address: cosmos1aaa... + to_address: cosmos1ppp... + pre_actions: + - '@type': /cosmos.nft.v1beta1.MsgSend + value: + class_id: cat + id: octocat + receiver: cosmos1aaa... + sender: cosmos1ppp... + proposer: cosmos1ppp... + non_critical_extension_options: [] + timeout_height: "0" +signatures: [] +confirm transaction before signing and broadcasting [y/N]:`, }, { RpcMethod: "Exec", @@ -117,6 +264,48 @@ Note: DefaultValue: "{}", }, }, + Example: `$ and tx escrow exec --proposal 2 --from cosmos1eee... --agent cosmos1... \ + --actions '{"@type": "/cosmos.nft.v1beta1.MsgSend", + "class_id": "cat", + "id": "octocat", + "sender": "cosmos1aaa...", + "receiver": "cosmos1eee..."}' \ + --actions '{"@type": "/cosmos.bank.v1beta1.MsgSend", + "from_address": "cosmos1eee...", + "to_address": "cosmos1aaa...", + "amount": [{"amount": "42", "denom": "stake"}]}' +auth_info: + fee: + amount: [] + gas_limit: "200000" + granter: "" + payer: "" + signer_infos: [] + tip: null +body: + extension_options: [] + memo: "" + messages: + - '@type': /andromeda.escrow.v1alpha1.MsgExec + actions: + - '@type': /cosmos.nft.v1beta1.MsgSend + class_id: cat + id: octocat + receiver: cosmos1eee... + sender: cosmos1aaa... + - '@type': /cosmos.bank.v1beta1.MsgSend + amount: + - amount: "42" + denom: stake + from_address: cosmos1eee... + to_address: cosmos1aaa... + agent: cosmos1aaa... + executor: cosmos1eee... + proposal: "2" + non_critical_extension_options: [] + timeout_height: "0" +signatures: [] +confirm transaction before signing and broadcasting [y/N]:`, }, }, }, From 537519d0b374582448db64259680ae936c0a05b8 Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Mon, 22 Jan 2024 11:54:21 +0000 Subject: [PATCH 07/62] Do `go mod tidy` --- app/go.mod | 8 ++++++-- app/go.sum | 5 ++++- cmd/and/go.mod | 3 ++- cmd/and/go.sum | 4 ++-- 4 files changed, 14 insertions(+), 6 deletions(-) diff --git a/app/go.mod b/app/go.mod index fd51d62..08b38ae 100644 --- a/app/go.mod +++ b/app/go.mod @@ -28,6 +28,7 @@ require ( cloud.google.com/go/compute/metadata v0.2.3 // indirect cloud.google.com/go/iam v1.1.5 // indirect cloud.google.com/go/storage v1.30.1 // indirect + cosmossdk.io/client/v2 v2.0.0-beta.1 // indirect cosmossdk.io/collections v0.4.0 // indirect cosmossdk.io/errors v1.0.1 // indirect cosmossdk.io/x/tx v0.13.0 // indirect @@ -135,7 +136,7 @@ require ( github.com/mtibben/percent v0.2.1 // indirect github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a // indirect github.com/oklog/run v1.1.0 // indirect - github.com/pelletier/go-toml/v2 v2.0.8 // indirect + github.com/pelletier/go-toml/v2 v2.1.0 // indirect github.com/petermattis/goid v0.0.0-20230904192822-1876fd5063bc // indirect github.com/pkg/errors v0.9.1 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect @@ -199,4 +200,7 @@ replace ( github.com/syndtr/goleveldb => github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 ) -replace github.com/0tech/andromeda/x/escrow => ../x/escrow +replace ( + github.com/0tech/andromeda/x/escrow => ../x/escrow + github.com/0tech/andromeda/x/test => ../x/test +) diff --git a/app/go.sum b/app/go.sum index 6aae9cb..f1d9d5b 100644 --- a/app/go.sum +++ b/app/go.sum @@ -189,6 +189,8 @@ cloud.google.com/go/workflows v1.6.0/go.mod h1:6t9F5h/unJz41YqfBmqSASJSXccBLtD1V cloud.google.com/go/workflows v1.7.0/go.mod h1:JhSrZuVZWuiDfKEFxU0/F1PQjmpnpcoISEXH2bcHC3M= cosmossdk.io/api v0.7.2 h1:BO3i5fvKMKvfaUiMkCznxViuBEfyWA/k6w2eAF6q1C4= cosmossdk.io/api v0.7.2/go.mod h1:IcxpYS5fMemZGqyYtErK7OqvdM0C8kdW3dq8Q/XIG38= +cosmossdk.io/client/v2 v2.0.0-beta.1 h1:XkHh1lhrLYIT9zKl7cIOXUXg2hdhtjTPBUfqERNA1/Q= +cosmossdk.io/client/v2 v2.0.0-beta.1/go.mod h1:JEUSu9moNZQ4kU3ir1DKD5eU4bllmAexrGWjmb9k8qU= 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.0 h1:vtIafqUi+1ZNAE/oxLOQQ7Oek2n4S48SWLG8h/+wdbo= @@ -863,8 +865,9 @@ github.com/pascaldekloe/goe v0.1.0 h1:cBOtyMzM9HTpWjXfbbunk26uA6nG3a8n06Wieeh0Mw 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.0.8 h1:0ctb6s9mE31h0/lhu+J6OPmVeDxJn+kYnJc2jZR9tGQ= github.com/pelletier/go-toml/v2 v2.0.8/go.mod h1:vuYfssBdrU2XDZ9bYydBu6t+6a6PYNcZljzZR9VXg+4= +github.com/pelletier/go-toml/v2 v2.1.0 h1:FnwAJ4oYMvbT/34k9zzHuZNrhlz48GB3/s6at6/MHO4= +github.com/pelletier/go-toml/v2 v2.1.0/go.mod h1:tJU2Z3ZkXwnxa4DPO899bsyIoywizdUvyaeZurnPPDc= github.com/performancecopilot/speed v3.0.0+incompatible/go.mod h1:/CLtqpZ5gBg1M9iaPbIdPPGyKcA8hKdoy6hAWba7Yac= github.com/petermattis/goid v0.0.0-20180202154549-b0b1615b78e5/go.mod h1:jvVRKCrJTQWu0XVbaOlby/2lO20uSCHEMzzplHXte1o= github.com/petermattis/goid v0.0.0-20230904192822-1876fd5063bc h1:8bQZVK1X6BJR/6nYUPxQEP+ReTsceJTKizeuwjWOPUA= diff --git a/cmd/and/go.mod b/cmd/and/go.mod index 1b50bd3..0621b3a 100644 --- a/cmd/and/go.mod +++ b/cmd/and/go.mod @@ -3,7 +3,7 @@ module github.com/0tech/andromeda/cmd/and go 1.21 require ( - cosmossdk.io/client/v2 v2.0.0-20231103103049-f73a17f75727 + cosmossdk.io/client/v2 v2.0.0-beta.1 cosmossdk.io/core v0.11.0 cosmossdk.io/depinject v1.0.0-alpha.4 cosmossdk.io/log v1.3.0 @@ -195,4 +195,5 @@ require ( replace ( github.com/0tech/andromeda/app => ../../app github.com/0tech/andromeda/x/escrow => ../../x/escrow + github.com/0tech/andromeda/x/test => ../../x/test ) diff --git a/cmd/and/go.sum b/cmd/and/go.sum index 5839a7a..a05cf3f 100644 --- a/cmd/and/go.sum +++ b/cmd/and/go.sum @@ -189,8 +189,8 @@ cloud.google.com/go/workflows v1.6.0/go.mod h1:6t9F5h/unJz41YqfBmqSASJSXccBLtD1V cloud.google.com/go/workflows v1.7.0/go.mod h1:JhSrZuVZWuiDfKEFxU0/F1PQjmpnpcoISEXH2bcHC3M= cosmossdk.io/api v0.7.2 h1:BO3i5fvKMKvfaUiMkCznxViuBEfyWA/k6w2eAF6q1C4= cosmossdk.io/api v0.7.2/go.mod h1:IcxpYS5fMemZGqyYtErK7OqvdM0C8kdW3dq8Q/XIG38= -cosmossdk.io/client/v2 v2.0.0-20231103103049-f73a17f75727 h1:w4xUROlGYwypZwh7i8fEmkzeuCRmJXonHEbkpyve5yo= -cosmossdk.io/client/v2 v2.0.0-20231103103049-f73a17f75727/go.mod h1:HZbG3KK4esEs31qR9AjCG/OWDfqMGOA6iV8m3qzCnUc= +cosmossdk.io/client/v2 v2.0.0-beta.1 h1:XkHh1lhrLYIT9zKl7cIOXUXg2hdhtjTPBUfqERNA1/Q= +cosmossdk.io/client/v2 v2.0.0-beta.1/go.mod h1:JEUSu9moNZQ4kU3ir1DKD5eU4bllmAexrGWjmb9k8qU= 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.0 h1:vtIafqUi+1ZNAE/oxLOQQ7Oek2n4S48SWLG8h/+wdbo= From ce4daea9624c0e03ee8f4f796cf990e9582c5517 Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Mon, 22 Jan 2024 14:14:46 +0000 Subject: [PATCH 08/62] Add metadata --- x/escrow/README.md | 67 +- x/escrow/andromeda/escrow/v1alpha1/errors.go | 2 + .../andromeda/escrow/v1alpha1/event.pb.go | 204 +++- .../andromeda/escrow/v1alpha1/genesis.pb.go | 156 ++- .../andromeda/escrow/v1alpha1/query.pb.go | 384 +++--- x/escrow/andromeda/escrow/v1alpha1/tx.pb.go | 314 ++--- .../andromeda/escrow/v1alpha1/types.pb.go | 133 ++- .../andromeda/escrow/v1alpha1/event.pulsar.go | 309 ++++- .../escrow/v1alpha1/genesis.pulsar.go | 176 ++- .../andromeda/escrow/v1alpha1/query.pulsar.go | 1047 ++++++----------- .../andromeda/escrow/v1alpha1/tx.pulsar.go | 794 ++++--------- .../andromeda/escrow/v1alpha1/types.pulsar.go | 174 ++- x/escrow/keeper/internal/genesis.go | 23 +- x/escrow/keeper/internal/genesis_test.go | 28 +- x/escrow/keeper/internal/grpc_query.go | 6 +- x/escrow/keeper/internal/grpc_query_test.go | 3 +- x/escrow/keeper/internal/keeper.go | 19 + x/escrow/keeper/internal/keeper_test.go | 2 + x/escrow/keeper/internal/msg_server.go | 20 +- x/escrow/keeper/internal/msg_server_test.go | 72 ++ x/escrow/keeper/internal/params.go | 18 +- x/escrow/keeper/internal/params_test.go | 63 + x/escrow/keeper/internal/proposal.go | 7 +- x/escrow/keeper/internal/proposal_test.go | 20 +- x/escrow/module/autocli.go | 46 +- .../andromeda/escrow/v1alpha1/event.proto | 8 + .../andromeda/escrow/v1alpha1/genesis.proto | 8 +- .../andromeda/escrow/v1alpha1/query.proto | 13 +- .../proto/andromeda/escrow/v1alpha1/tx.proto | 12 +- .../andromeda/escrow/v1alpha1/types.proto | 8 +- 30 files changed, 2267 insertions(+), 1869 deletions(-) create mode 100644 x/escrow/keeper/internal/params_test.go diff --git a/x/escrow/README.md b/x/escrow/README.md index 621b0a8..e94cfcb 100644 --- a/x/escrow/README.md +++ b/x/escrow/README.md @@ -202,7 +202,7 @@ Usage: Available Commands: agent queries an agent. agents queries all the agents. - params queries the module params. + params queries the module parameters. proposal queries a proposal. proposals queries all the proposals. ``` @@ -214,6 +214,14 @@ and query escrow params --help ``` ```bash +queries the module parameters. + +Usage: + and query escrow params [flags] + +Examples: +$ and query escrow params +max_metadata_length: "42" ``` ##### agent @@ -277,6 +285,7 @@ $ and query escrow proposal --id 3 proposal: agent: cosmos1... id: "3" + metadata: very good deal post_actions: - type: cosmos-sdk/MsgSend value: @@ -314,6 +323,7 @@ pagination: proposals: - agent: cosmos1... id: "3" + metadata: very good deal post_actions: - type: cosmos-sdk/MsgSend value: @@ -332,6 +342,7 @@ proposals: proposer: cosmos1... - agent: cosmos1... id: "4" + metadata: limited time offer for you post_actions: - type: cosmos-sdk/MsgSend value: @@ -376,6 +387,45 @@ Available Commands: update-params updates the module parameters. ``` +##### update-params + +```bash +and tx escrow update-params --help +``` + +```bash +updates the module parameters. + +Note: + max-metadata-length: + it must be greater than or equal to the current's. + +Usage: + and tx escrow update-params --from [authority] --max-metadata-length [max-metadata-length] [flags] + +Examples: +$ and tx escrow update-params --from cosmos1aaa... --max-metadata-length 42 +auth_info: + fee: + amount: [] + gas_limit: "200000" + granter: "" + payer: "" + signer_infos: [] + tip: null +body: + extension_options: [] + memo: "" + messages: + - '@type': /andromeda.escrow.v1alpha1.MsgUpdateParams + authority: cosmos1aaa... + max_metadata_length: "42" + non_critical_extension_options: [] + timeout_height: "0" +signatures: [] +confirm transaction before signing and broadcasting [y/N]: +``` + ##### create-agent ```bash @@ -440,7 +490,8 @@ $ and tx escrow submit-proposal --from cosmos1ppp... --agent cosmos1aaa... \ --post-actions '{"@type": "/cosmos.bank.v1beta1.MsgSend", "from_address": "cosmos1aaa", "to_address": "cosmos1ppp...", - "amount": [{"amount": "42", "denom": "stake"}]}' + "amount": [{"amount": "42", "denom": "stake"}]}' \ + --metadata "sell octocat for 42stake" auth_info: fee: amount: [] @@ -455,6 +506,7 @@ body: messages: - '@type': /andromeda.escrow.v1alpha1.MsgSubmitProposal agent: cosmos1aaa... + metadata: sell octocat for 42stake post_actions: - '@type': /cosmos.bank.v1beta1.MsgSend amount: @@ -570,7 +622,7 @@ Example Output: ```bash { - "params": {} + "maxMetadataLength": "42" } ``` @@ -682,7 +734,8 @@ Example Output: "fromAddress": "cosmos1...", "toAddress": "cosmos1..." } - ] + ], + "metadata": "very good deal" } } ``` @@ -731,7 +784,8 @@ Example Output: "fromAddress": "cosmos1...", "toAddress": "cosmos1..." } - ] + ], + "metadata": "very good deal" }, { "id": "4", @@ -765,7 +819,8 @@ Example Output: "sender": "cosmos1...", "receiver": "cosmos1..." } - ] + ], + "metadata": "limited time offer for you" }, ], "pagination": { diff --git a/x/escrow/andromeda/escrow/v1alpha1/errors.go b/x/escrow/andromeda/escrow/v1alpha1/errors.go index f249cfa..2e45e55 100644 --- a/x/escrow/andromeda/escrow/v1alpha1/errors.go +++ b/x/escrow/andromeda/escrow/v1alpha1/errors.go @@ -29,6 +29,7 @@ const ( errorCodeAgentNotFound errorCodeProposalNotFound errorCodePermissionDenied + errorCodeLargeMetadata ) var ( @@ -36,4 +37,5 @@ var ( ErrAgentNotFound = errors.RegisterWithGRPCCode(errorCodespace, errorCodeAgentNotFound, codes.NotFound, "agent not found") ErrProposalNotFound = errors.RegisterWithGRPCCode(errorCodespace, errorCodeProposalNotFound, codes.NotFound, "proposal not found") ErrPermissionDenied = errors.RegisterWithGRPCCode(errorCodespace, errorCodePermissionDenied, codes.PermissionDenied, "permission denied") + ErrLargeMetadata = errors.RegisterWithGRPCCode(errorCodespace, errorCodeLargeMetadata, codes.ResourceExhausted, "large metadata") ) diff --git a/x/escrow/andromeda/escrow/v1alpha1/event.pb.go b/x/escrow/andromeda/escrow/v1alpha1/event.pb.go index a433b6e..8210227 100644 --- a/x/escrow/andromeda/escrow/v1alpha1/event.pb.go +++ b/x/escrow/andromeda/escrow/v1alpha1/event.pb.go @@ -26,6 +26,10 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // EventUpdateParams is emitted on Msg/UpdateParams. type EventUpdateParams struct { + // the address of the module authority + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // the maximum length allowed for metadata + MaxMetadataLength uint64 `protobuf:"varint,2,opt,name=max_metadata_length,json=maxMetadataLength,proto3" json:"max_metadata_length,omitempty"` } func (m *EventUpdateParams) Reset() { *m = EventUpdateParams{} } @@ -61,6 +65,20 @@ func (m *EventUpdateParams) XXX_DiscardUnknown() { var xxx_messageInfo_EventUpdateParams proto.InternalMessageInfo +func (m *EventUpdateParams) GetAuthority() string { + if m != nil { + return m.Authority + } + return "" +} + +func (m *EventUpdateParams) GetMaxMetadataLength() uint64 { + if m != nil { + return m.MaxMetadataLength + } + return 0 +} + // EventCreateAgent is emitted on Msg/CreateAgent. type EventCreateAgent struct { // the address of the created agent @@ -128,6 +146,8 @@ type EventSubmitProposal struct { PreActions []*types.Any `protobuf:"bytes,4,rep,name=pre_actions,json=preActions,proto3" json:"pre_actions,omitempty"` // the messages which will be executed after the actions included in Msg/Exec PostActions []*types.Any `protobuf:"bytes,5,rep,name=post_actions,json=postActions,proto3" json:"post_actions,omitempty"` + // any arbitrary metadata attached to the proposal + Metadata string `protobuf:"bytes,6,opt,name=metadata,proto3" json:"metadata,omitempty"` } func (m *EventSubmitProposal) Reset() { *m = EventSubmitProposal{} } @@ -198,6 +218,13 @@ func (m *EventSubmitProposal) GetPostActions() []*types.Any { return nil } +func (m *EventSubmitProposal) GetMetadata() string { + if m != nil { + return m.Metadata + } + return "" +} + // EventExec is emitted on Msg/Exec. type EventExec struct { // the identifier of the proposal @@ -274,36 +301,40 @@ func init() { } var fileDescriptor_499596c4087ad6c5 = []byte{ - // 460 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xc1, 0x6b, 0x13, 0x41, - 0x14, 0xc6, 0x33, 0x9b, 0xd6, 0xda, 0x89, 0x88, 0x6e, 0x7b, 0x48, 0x22, 0x2e, 0x25, 0x50, 0xc8, - 0xc5, 0x59, 0x5a, 0x15, 0x21, 0x9e, 0x36, 0x12, 0x3c, 0x09, 0x4b, 0x8a, 0x22, 0x12, 0x28, 0x2f, - 0xbb, 0xcf, 0xb8, 0x90, 0xdd, 0x19, 0x66, 0x26, 0xb1, 0xfd, 0x23, 0x04, 0xff, 0x06, 0x8f, 0x9e, - 0xfd, 0x23, 0xc4, 0x53, 0xf1, 0xe4, 0x51, 0x92, 0x9b, 0x57, 0x8f, 0x5e, 0x64, 0x67, 0x76, 0x56, - 0x2f, 0x69, 0x7b, 0xdb, 0xb7, 0xdf, 0xef, 0xfb, 0x66, 0xbe, 0xc7, 0xd0, 0x43, 0x28, 0x52, 0xc9, - 0x73, 0x4c, 0x21, 0x44, 0x95, 0x48, 0xfe, 0x3e, 0x5c, 0x1e, 0xc1, 0x5c, 0xbc, 0x83, 0xa3, 0x10, - 0x97, 0x58, 0x68, 0x26, 0x24, 0xd7, 0xdc, 0xef, 0xd4, 0x18, 0xb3, 0x18, 0x73, 0x58, 0xb7, 0x93, - 0x70, 0x95, 0x73, 0x75, 0x6a, 0xc0, 0xd0, 0x0e, 0xd6, 0xd5, 0xed, 0xcc, 0x38, 0x9f, 0xcd, 0x31, - 0x34, 0xd3, 0x74, 0xf1, 0x36, 0x84, 0xe2, 0xdc, 0x4a, 0xbd, 0x3d, 0x7a, 0x77, 0x54, 0xe6, 0xbf, - 0x14, 0x29, 0x68, 0x8c, 0x41, 0x42, 0xae, 0x7a, 0x4b, 0x7a, 0xc7, 0xfc, 0x7c, 0x26, 0x11, 0x34, - 0x46, 0x33, 0x2c, 0xb4, 0xcf, 0xe8, 0x36, 0x94, 0x1f, 0x6d, 0x72, 0x40, 0xfa, 0xbb, 0xc3, 0xf6, - 0xf7, 0x2f, 0x0f, 0xf6, 0xab, 0x43, 0xa2, 0x34, 0x95, 0xa8, 0xd4, 0x89, 0x96, 0x59, 0x31, 0x1b, - 0x5b, 0xcc, 0x3f, 0xa6, 0x3b, 0x49, 0x69, 0xe7, 0xb2, 0xed, 0x5d, 0xe1, 0x70, 0x60, 0xef, 0x0f, - 0xa1, 0x7b, 0xe6, 0xe0, 0x93, 0xc5, 0x34, 0xcf, 0x74, 0x2c, 0xb9, 0xe0, 0x0a, 0xe6, 0xfe, 0x6d, - 0xea, 0x65, 0xa9, 0x39, 0x78, 0x6b, 0xec, 0x65, 0xa9, 0xff, 0x88, 0xde, 0x14, 0x46, 0xc3, 0xab, - 0xc3, 0x6b, 0xf2, 0x5f, 0x83, 0xe6, 0xf5, 0x1a, 0x3c, 0xa6, 0x2d, 0x21, 0xf1, 0x14, 0x12, 0x9d, - 0xf1, 0x42, 0xb5, 0xb7, 0x0e, 0x9a, 0xfd, 0xd6, 0xf1, 0x3e, 0xb3, 0xbb, 0x64, 0x6e, 0x97, 0x2c, - 0x2a, 0xce, 0xc7, 0x54, 0x48, 0x8c, 0x2c, 0xe7, 0x3f, 0xa1, 0xb7, 0x04, 0x57, 0xba, 0xf6, 0x6d, - 0x5f, 0xe2, 0x6b, 0x95, 0x64, 0x65, 0xec, 0x7d, 0x20, 0x74, 0xd7, 0xb4, 0x1f, 0x9d, 0x61, 0xe2, - 0x77, 0x5d, 0x47, 0x98, 0x57, 0xcd, 0xeb, 0xb9, 0xec, 0x8f, 0x67, 0x98, 0x2c, 0xae, 0xb3, 0xdc, - 0x9a, 0xf4, 0x19, 0xdd, 0x71, 0x77, 0x6a, 0x5e, 0x72, 0x27, 0x07, 0x0d, 0x7f, 0x93, 0xaf, 0xab, - 0x80, 0x5c, 0xac, 0x02, 0xf2, 0x73, 0x15, 0x90, 0x8f, 0xeb, 0xa0, 0x71, 0xb1, 0x0e, 0x1a, 0x3f, - 0xd6, 0x41, 0x83, 0xde, 0x4f, 0x78, 0xce, 0x36, 0x3e, 0xc5, 0x21, 0x35, 0x35, 0xe2, 0x32, 0x35, - 0x26, 0x6f, 0xfa, 0x1b, 0x9f, 0xf6, 0x53, 0x3b, 0xbb, 0xf1, 0x93, 0xd7, 0x8c, 0x46, 0xaf, 0x3f, - 0x7b, 0x9d, 0xa8, 0x4e, 0x1e, 0xd9, 0xe4, 0x57, 0x15, 0xf1, 0xed, 0x3f, 0x6d, 0x62, 0xb5, 0x89, - 0xd3, 0x56, 0xde, 0xe1, 0x46, 0x6d, 0xf2, 0x3c, 0x1e, 0xbe, 0x40, 0x0d, 0x29, 0x68, 0xf8, 0xe5, - 0xdd, 0xab, 0xb9, 0xc1, 0xc0, 0x82, 0x83, 0x81, 0x23, 0xa7, 0x37, 0xcc, 0x32, 0x1e, 0xfe, 0x0d, - 0x00, 0x00, 0xff, 0xff, 0xb0, 0x6e, 0x53, 0x54, 0x91, 0x03, 0x00, 0x00, + // 515 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0x4f, 0x8b, 0xd3, 0x40, + 0x18, 0xc6, 0x9b, 0xb4, 0xfb, 0xa7, 0x53, 0x11, 0x37, 0xbb, 0x87, 0xb6, 0x62, 0x28, 0x85, 0x85, + 0x5e, 0x9c, 0xb0, 0xeb, 0x3f, 0xa8, 0xa7, 0x54, 0x8a, 0x17, 0x85, 0x90, 0x45, 0x11, 0x29, 0x94, + 0x69, 0xf2, 0x9a, 0x06, 0x9a, 0x4c, 0x98, 0x99, 0xd6, 0x16, 0x3f, 0x83, 0xe0, 0xcd, 0xbb, 0x47, + 0xcf, 0x7e, 0x08, 0xf1, 0xb4, 0x78, 0xf2, 0x28, 0xed, 0xcd, 0xab, 0x5f, 0x40, 0x32, 0x93, 0xc9, + 0x7a, 0x69, 0x77, 0x6f, 0x79, 0x79, 0x7e, 0xef, 0xf3, 0xce, 0x3c, 0x6f, 0x06, 0x9d, 0x92, 0x34, + 0x64, 0x34, 0x81, 0x90, 0x38, 0xc0, 0x03, 0x46, 0xdf, 0x3b, 0x8b, 0x33, 0x32, 0xcb, 0xa6, 0xe4, + 0xcc, 0x81, 0x05, 0xa4, 0x02, 0x67, 0x8c, 0x0a, 0x6a, 0xb5, 0x4a, 0x0c, 0x2b, 0x0c, 0x6b, 0xac, + 0xdd, 0x0a, 0x28, 0x4f, 0x28, 0x1f, 0x4b, 0xd0, 0x51, 0x85, 0xea, 0x6a, 0xb7, 0x22, 0x4a, 0xa3, + 0x19, 0x38, 0xb2, 0x9a, 0xcc, 0xdf, 0x39, 0x24, 0x5d, 0x29, 0xa9, 0xfb, 0x01, 0x1d, 0x0d, 0x73, + 0xff, 0x57, 0x59, 0x48, 0x04, 0x78, 0x84, 0x91, 0x84, 0x5b, 0x8f, 0x51, 0x9d, 0xcc, 0xc5, 0x94, + 0xb2, 0x58, 0xac, 0x9a, 0x46, 0xc7, 0xe8, 0xd5, 0x07, 0xcd, 0x9f, 0xdf, 0xee, 0x9f, 0x14, 0xa6, + 0x6e, 0x18, 0x32, 0xe0, 0xfc, 0x42, 0xb0, 0x38, 0x8d, 0xfc, 0x2b, 0xd4, 0xc2, 0xe8, 0x38, 0x21, + 0xcb, 0x71, 0x02, 0x82, 0x84, 0x44, 0x90, 0xf1, 0x0c, 0xd2, 0x48, 0x4c, 0x9b, 0x66, 0xc7, 0xe8, + 0xd5, 0xfc, 0xa3, 0x84, 0x2c, 0x5f, 0x16, 0xca, 0x0b, 0x29, 0x74, 0x17, 0xe8, 0x8e, 0x1c, 0xfe, + 0x8c, 0x01, 0x11, 0xe0, 0x46, 0x90, 0x0a, 0x0b, 0xa3, 0x3d, 0x92, 0x7f, 0x5c, 0x3b, 0x57, 0x61, + 0xd6, 0x39, 0x3a, 0x08, 0xf2, 0x76, 0xca, 0xe4, 0x9c, 0x5d, 0x1d, 0x1a, 0xec, 0x7e, 0x36, 0xd1, + 0xb1, 0x1c, 0x7c, 0x31, 0x9f, 0x24, 0xb1, 0xf0, 0x18, 0xcd, 0x28, 0x27, 0x33, 0xeb, 0x36, 0x32, + 0xe3, 0x50, 0x0e, 0xae, 0xf9, 0x66, 0x1c, 0x5a, 0x0f, 0xd1, 0x61, 0x26, 0x35, 0xb8, 0xde, 0xbc, + 0x24, 0xaf, 0x6e, 0x50, 0xbd, 0xd9, 0x0d, 0x1e, 0xa1, 0x46, 0xc6, 0x60, 0x4c, 0x02, 0x11, 0xd3, + 0x94, 0x37, 0x6b, 0x9d, 0x6a, 0xaf, 0x71, 0x7e, 0x82, 0xd5, 0xce, 0xb0, 0xde, 0x19, 0x76, 0xd3, + 0x95, 0x8f, 0x32, 0x06, 0xae, 0xe2, 0xac, 0x27, 0xe8, 0x56, 0x46, 0xb9, 0x28, 0xfb, 0xf6, 0x76, + 0xf4, 0x35, 0x72, 0x52, 0x37, 0xb6, 0xd1, 0xa1, 0xde, 0x50, 0x73, 0x3f, 0x3f, 0xa2, 0x5f, 0xd6, + 0xdd, 0x8f, 0x06, 0xaa, 0xcb, 0x64, 0x86, 0x4b, 0x08, 0x72, 0x32, 0x2b, 0xb2, 0x29, 0x52, 0x29, + 0xeb, 0x3c, 0x1b, 0x58, 0x42, 0x30, 0xbf, 0x49, 0xf0, 0x25, 0x69, 0x61, 0x74, 0xa0, 0xcf, 0x5b, + 0xdd, 0x71, 0x5e, 0x0d, 0x0d, 0xfe, 0x1a, 0xdf, 0xd7, 0xb6, 0x71, 0xb9, 0xb6, 0x8d, 0xdf, 0x6b, + 0xdb, 0xf8, 0xb4, 0xb1, 0x2b, 0x97, 0x1b, 0xbb, 0xf2, 0x6b, 0x63, 0x57, 0xd0, 0xbd, 0x80, 0x26, + 0x78, 0xeb, 0x73, 0x18, 0x20, 0x79, 0x0d, 0x2f, 0x77, 0xf5, 0x8c, 0xb7, 0xbd, 0xad, 0xcf, 0xeb, + 0xa9, 0xaa, 0x75, 0xf9, 0xc5, 0xac, 0xba, 0xc3, 0x37, 0x5f, 0xcd, 0x96, 0x5b, 0x3a, 0x0f, 0x95, + 0xf3, 0xeb, 0x82, 0xf8, 0xf1, 0x9f, 0x36, 0x52, 0xda, 0x48, 0x6b, 0x6b, 0xf3, 0x74, 0xab, 0x36, + 0x7a, 0xee, 0x0d, 0xf4, 0xff, 0xff, 0xc7, 0xbc, 0x5b, 0x72, 0xfd, 0xbe, 0x02, 0xfb, 0x7d, 0x4d, + 0x4e, 0xf6, 0x65, 0x18, 0x0f, 0xfe, 0x05, 0x00, 0x00, 0xff, 0xff, 0xe8, 0xce, 0x72, 0x94, 0x15, + 0x04, 0x00, 0x00, } func (m *EventUpdateParams) Marshal() (dAtA []byte, err error) { @@ -326,6 +357,18 @@ func (m *EventUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if m.MaxMetadataLength != 0 { + i = encodeVarintEvent(dAtA, i, uint64(m.MaxMetadataLength)) + i-- + dAtA[i] = 0x10 + } + if len(m.Authority) > 0 { + i -= len(m.Authority) + copy(dAtA[i:], m.Authority) + i = encodeVarintEvent(dAtA, i, uint64(len(m.Authority))) + i-- + dAtA[i] = 0xa + } return len(dAtA) - i, nil } @@ -386,6 +429,13 @@ func (m *EventSubmitProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if len(m.Metadata) > 0 { + i -= len(m.Metadata) + copy(dAtA[i:], m.Metadata) + i = encodeVarintEvent(dAtA, i, uint64(len(m.Metadata))) + i-- + dAtA[i] = 0x32 + } if len(m.PostActions) > 0 { for iNdEx := len(m.PostActions) - 1; iNdEx >= 0; iNdEx-- { { @@ -502,6 +552,13 @@ func (m *EventUpdateParams) Size() (n int) { } var l int _ = l + l = len(m.Authority) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } + if m.MaxMetadataLength != 0 { + n += 1 + sovEvent(uint64(m.MaxMetadataLength)) + } return n } @@ -551,6 +608,10 @@ func (m *EventSubmitProposal) Size() (n int) { n += 1 + l + sovEvent(uint64(l)) } } + l = len(m.Metadata) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } return n } @@ -611,6 +672,57 @@ func (m *EventUpdateParams) Unmarshal(dAtA []byte) error { return fmt.Errorf("proto: EventUpdateParams: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + 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 ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Authority = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxMetadataLength", wireType) + } + m.MaxMetadataLength = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MaxMetadataLength |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipEvent(dAtA[iNdEx:]) @@ -926,6 +1038,38 @@ func (m *EventSubmitProposal) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvent + } + 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 ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Metadata = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipEvent(dAtA[iNdEx:]) diff --git a/x/escrow/andromeda/escrow/v1alpha1/genesis.pb.go b/x/escrow/andromeda/escrow/v1alpha1/genesis.pb.go index f798d56..6061cca 100644 --- a/x/escrow/andromeda/escrow/v1alpha1/genesis.pb.go +++ b/x/escrow/andromeda/escrow/v1alpha1/genesis.pb.go @@ -108,6 +108,8 @@ func (m *GenesisState) GetProposals() []*GenesisState_Proposal { // Params defines the parameters for the module. type GenesisState_Params struct { + // the maximum length allowed for metadata + MaxMetadataLength uint64 `protobuf:"varint,1,opt,name=max_metadata_length,json=maxMetadataLength,proto3" json:"max_metadata_length,omitempty"` } func (m *GenesisState_Params) Reset() { *m = GenesisState_Params{} } @@ -143,6 +145,13 @@ func (m *GenesisState_Params) XXX_DiscardUnknown() { var xxx_messageInfo_GenesisState_Params proto.InternalMessageInfo +func (m *GenesisState_Params) GetMaxMetadataLength() uint64 { + if m != nil { + return m.MaxMetadataLength + } + return 0 +} + // Agent defines an account taking charge of a proposal. type GenesisState_Agent struct { // the address of the agent @@ -210,6 +219,8 @@ type GenesisState_Proposal struct { PreActions []*types.Any `protobuf:"bytes,4,rep,name=pre_actions,json=preActions,proto3" json:"pre_actions,omitempty"` // the messages which will be executed after the actions included in Msg/Exec PostActions []*types.Any `protobuf:"bytes,5,rep,name=post_actions,json=postActions,proto3" json:"post_actions,omitempty"` + // any arbitrary metadata attached to the proposal + Metadata string `protobuf:"bytes,6,opt,name=metadata,proto3" json:"metadata,omitempty"` } func (m *GenesisState_Proposal) Reset() { *m = GenesisState_Proposal{} } @@ -280,6 +291,13 @@ func (m *GenesisState_Proposal) GetPostActions() []*types.Any { return nil } +func (m *GenesisState_Proposal) GetMetadata() string { + if m != nil { + return m.Metadata + } + return "" +} + func init() { proto.RegisterType((*GenesisState)(nil), "andromeda.escrow.v1alpha1.GenesisState") proto.RegisterType((*GenesisState_Params)(nil), "andromeda.escrow.v1alpha1.GenesisState.Params") @@ -292,39 +310,41 @@ func init() { } var fileDescriptor_6d8dfc87c909dc5a = []byte{ - // 505 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0x4f, 0x8b, 0xd3, 0x40, - 0x18, 0xc6, 0x3b, 0xe9, 0x1f, 0xdb, 0xb7, 0xd5, 0xc3, 0xb0, 0x87, 0x34, 0xb2, 0xa1, 0x28, 0x62, - 0x2f, 0x3b, 0x71, 0xab, 0x22, 0xd4, 0x53, 0x0a, 0x75, 0x4f, 0x4a, 0xc8, 0x82, 0x88, 0x14, 0xca, - 0x6c, 0x32, 0xc6, 0x40, 0x9b, 0x09, 0x33, 0xe3, 0x9f, 0xfd, 0x16, 0x7e, 0x03, 0xc1, 0xa3, 0x67, - 0x3f, 0x84, 0x78, 0x5a, 0x3c, 0x79, 0x94, 0xf6, 0xe6, 0xc9, 0x8b, 0x77, 0xc9, 0x4c, 0x92, 0xdd, - 0x4b, 0x77, 0xf7, 0x38, 0xef, 0xf3, 0x7b, 0xde, 0x27, 0xef, 0x3b, 0x13, 0xb8, 0x4f, 0xb3, 0x58, - 0xf0, 0x35, 0x8b, 0xa9, 0xc7, 0x64, 0x24, 0xf8, 0x07, 0xef, 0xfd, 0x21, 0x5d, 0xe5, 0x6f, 0xe9, - 0xa1, 0x97, 0xb0, 0x8c, 0xc9, 0x54, 0x92, 0x5c, 0x70, 0xc5, 0xf1, 0xb0, 0x06, 0x89, 0x01, 0x49, - 0x05, 0x3a, 0xc3, 0x88, 0xcb, 0x35, 0x97, 0x4b, 0x0d, 0x7a, 0xe6, 0x60, 0x5c, 0xce, 0x30, 0xe1, - 0x3c, 0x59, 0x31, 0x4f, 0x9f, 0x4e, 0xde, 0xbd, 0xf1, 0x68, 0x76, 0x6a, 0xa4, 0x3b, 0x9f, 0xdb, - 0x30, 0x38, 0x32, 0x11, 0xc7, 0x8a, 0x2a, 0x86, 0x9f, 0x41, 0x27, 0xa7, 0x82, 0xae, 0xa5, 0x8d, - 0x46, 0x68, 0xdc, 0x9f, 0x10, 0xb2, 0x33, 0x92, 0x5c, 0x34, 0x92, 0x40, 0xbb, 0xc2, 0xd2, 0x8d, - 0xf7, 0x01, 0x32, 0xf6, 0x51, 0x2d, 0x69, 0xc2, 0x32, 0x65, 0x5b, 0x23, 0x34, 0x6e, 0x85, 0xbd, - 0xa2, 0xe2, 0x17, 0x05, 0x3c, 0x87, 0x8e, 0x56, 0xa4, 0xdd, 0x1c, 0x35, 0xc7, 0xfd, 0xc9, 0xc1, - 0x75, 0x63, 0xb4, 0x3d, 0x2c, 0xcd, 0xf8, 0x2e, 0xdc, 0xd4, 0x29, 0xb9, 0xe0, 0x39, 0x97, 0x74, - 0x65, 0xb7, 0x74, 0xd0, 0xa0, 0x28, 0x06, 0x65, 0x0d, 0xbf, 0x80, 0x5e, 0xa5, 0x4b, 0xbb, 0xad, - 0xe3, 0x1e, 0x5c, 0x7b, 0xaa, 0xd2, 0x18, 0x9e, 0xb7, 0x70, 0xba, 0xd0, 0x31, 0xc3, 0x3a, 0x1c, - 0xda, 0x66, 0x9c, 0x09, 0xdc, 0xa0, 0x71, 0x2c, 0x98, 0x34, 0x6b, 0xeb, 0xcd, 0xec, 0x9f, 0xdf, - 0x0e, 0xf6, 0xca, 0x4b, 0xf0, 0x8d, 0x72, 0xac, 0x44, 0x9a, 0x25, 0x61, 0x05, 0x16, 0x9e, 0x48, - 0x30, 0xaa, 0xb8, 0xd0, 0xeb, 0xb9, 0xd4, 0x53, 0x82, 0xce, 0x5f, 0x04, 0xdd, 0x7a, 0xae, 0x5b, - 0x60, 0xa5, 0xb1, 0xce, 0x6b, 0x85, 0x56, 0x1a, 0xe3, 0x47, 0xd0, 0x35, 0x1f, 0xc9, 0xae, 0xee, - 0x58, 0x93, 0x98, 0x40, 0xdb, 0xdc, 0x51, 0xf3, 0x0a, 0x8b, 0xc1, 0xf0, 0x63, 0xe8, 0xe7, 0x82, - 0x2d, 0x69, 0xa4, 0x52, 0x9e, 0x49, 0xbb, 0xa5, 0xf7, 0xb9, 0x47, 0xcc, 0x13, 0x23, 0xd5, 0x13, - 0x23, 0x7e, 0x76, 0x1a, 0x42, 0x2e, 0x98, 0x6f, 0x38, 0xfc, 0x04, 0x06, 0x39, 0x97, 0xaa, 0xf6, - 0xb5, 0x2f, 0xf1, 0xf5, 0x0b, 0xb2, 0x34, 0xce, 0xfe, 0xa1, 0xef, 0x1b, 0x17, 0x9d, 0x6d, 0x5c, - 0xf4, 0x7b, 0xe3, 0xa2, 0x4f, 0x5b, 0xb7, 0x71, 0xb6, 0x75, 0x1b, 0xbf, 0xb6, 0x6e, 0x03, 0xf6, - 0x23, 0xbe, 0xde, 0x7d, 0x91, 0xb3, 0xea, 0x61, 0x07, 0x45, 0xef, 0x00, 0xbd, 0x1e, 0xef, 0xfc, - 0xcb, 0x9e, 0x9a, 0x73, 0x75, 0xfc, 0x62, 0x35, 0xfd, 0xf9, 0xab, 0xaf, 0xd6, 0xd0, 0xaf, 0x7b, - 0xcf, 0x4d, 0xef, 0x97, 0x25, 0xf1, 0xe3, 0x82, 0xb6, 0x30, 0xda, 0xa2, 0xd2, 0x36, 0xd6, 0xbd, - 0x9d, 0xda, 0xe2, 0x28, 0x98, 0x3d, 0x67, 0x8a, 0xc6, 0x54, 0xd1, 0x3f, 0xd6, 0xed, 0x9a, 0x9b, - 0x4e, 0x0d, 0x38, 0x9d, 0x56, 0xe4, 0x49, 0x47, 0xaf, 0xe4, 0xe1, 0xff, 0x00, 0x00, 0x00, 0xff, - 0xff, 0xfb, 0xf8, 0x3a, 0x9a, 0x1c, 0x04, 0x00, 0x00, + // 540 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0xbf, 0x8e, 0xd3, 0x40, + 0x10, 0xc6, 0x63, 0xe7, 0x0f, 0xc9, 0x24, 0x20, 0xb1, 0x5c, 0xe1, 0x18, 0x9d, 0x15, 0x81, 0x10, + 0x69, 0x6e, 0xcd, 0x05, 0x10, 0x28, 0x54, 0x8e, 0x14, 0xae, 0x01, 0x14, 0xf9, 0x24, 0x84, 0x50, + 0xa4, 0x68, 0x2f, 0x5e, 0x7c, 0x91, 0x62, 0xaf, 0xb5, 0xbb, 0x40, 0xee, 0x1d, 0x28, 0x78, 0x06, + 0x4a, 0x6a, 0x1e, 0x02, 0x51, 0x9d, 0xa8, 0x28, 0x51, 0xd2, 0x41, 0x4d, 0x8f, 0xbc, 0xeb, 0xf5, + 0x5d, 0x93, 0xbb, 0x2b, 0x67, 0xbe, 0xdf, 0x37, 0xe3, 0x99, 0x1d, 0xc3, 0x7d, 0x92, 0x46, 0x9c, + 0x25, 0x34, 0x22, 0x3e, 0x15, 0x73, 0xce, 0x3e, 0xfa, 0x1f, 0xf6, 0xc9, 0x32, 0x3b, 0x26, 0xfb, + 0x7e, 0x4c, 0x53, 0x2a, 0x16, 0x02, 0x67, 0x9c, 0x49, 0x86, 0xba, 0x25, 0x88, 0x35, 0x88, 0x0d, + 0xe8, 0x76, 0xe7, 0x4c, 0x24, 0x4c, 0xcc, 0x14, 0xe8, 0xeb, 0x40, 0xbb, 0xdc, 0x6e, 0xcc, 0x58, + 0xbc, 0xa4, 0xbe, 0x8a, 0x8e, 0xde, 0xbf, 0xf3, 0x49, 0x7a, 0xa2, 0xa5, 0x3b, 0x7f, 0xeb, 0xd0, + 0x39, 0xd0, 0x2d, 0x0e, 0x25, 0x91, 0x14, 0x3d, 0x87, 0x46, 0x46, 0x38, 0x49, 0x84, 0x63, 0xf5, + 0xac, 0x7e, 0x7b, 0x80, 0xf1, 0xd6, 0x96, 0xf8, 0xbc, 0x11, 0x4f, 0x94, 0x2b, 0x2c, 0xdc, 0x68, + 0x17, 0x20, 0xa5, 0x2b, 0x39, 0x23, 0x31, 0x4d, 0xa5, 0x63, 0xf7, 0xac, 0x7e, 0x2d, 0x6c, 0xe5, + 0x99, 0x20, 0x4f, 0xa0, 0x31, 0x34, 0x94, 0x22, 0x9c, 0x6a, 0xaf, 0xda, 0x6f, 0x0f, 0xf6, 0xae, + 0xda, 0x46, 0xd9, 0xc3, 0xc2, 0x8c, 0xee, 0xc2, 0x75, 0xd5, 0x25, 0xe3, 0x2c, 0x63, 0x82, 0x2c, + 0x9d, 0x9a, 0x6a, 0xd4, 0xc9, 0x93, 0x93, 0x22, 0x87, 0x5e, 0x41, 0xcb, 0xe8, 0xc2, 0xa9, 0xab, + 0x76, 0x0f, 0xae, 0x3c, 0x55, 0x61, 0x0c, 0xcf, 0x4a, 0xb8, 0x4f, 0xa1, 0xa1, 0x87, 0x45, 0x18, + 0x6e, 0x25, 0x64, 0x35, 0x4b, 0xa8, 0x24, 0x11, 0x91, 0x64, 0xb6, 0xa4, 0x69, 0x2c, 0x8f, 0xd5, + 0xe6, 0x6a, 0xe1, 0xcd, 0x84, 0xac, 0x5e, 0x16, 0xca, 0x0b, 0x25, 0xb8, 0x0c, 0xea, 0x7a, 0xfc, + 0x01, 0x5c, 0x23, 0x51, 0xc4, 0xa9, 0xd0, 0x6b, 0x6e, 0x8d, 0x9c, 0x9f, 0xdf, 0xf6, 0x76, 0x8a, + 0x47, 0x0b, 0xb4, 0x72, 0x28, 0xf9, 0x22, 0x8d, 0x43, 0x03, 0xe6, 0x9e, 0x39, 0xa7, 0x44, 0x32, + 0xae, 0xd6, 0x79, 0xa1, 0xa7, 0x00, 0xdd, 0x4f, 0x36, 0x34, 0xcb, 0x3d, 0xdc, 0x00, 0x7b, 0x11, + 0x15, 0x1f, 0x67, 0x2f, 0x22, 0xf4, 0x08, 0x9a, 0x7a, 0x28, 0x7a, 0x79, 0xc5, 0x92, 0x44, 0x18, + 0xea, 0xfa, 0x4d, 0xab, 0x97, 0x58, 0x34, 0x86, 0x1e, 0x43, 0x3b, 0xe3, 0x74, 0x46, 0xe6, 0x72, + 0xc1, 0x52, 0xe1, 0xd4, 0xd4, 0xfe, 0x77, 0xb0, 0x3e, 0x49, 0x6c, 0x4e, 0x12, 0x07, 0xe9, 0x49, + 0x08, 0x19, 0xa7, 0x81, 0xe6, 0xd0, 0x13, 0xe8, 0x64, 0x4c, 0xc8, 0xd2, 0x57, 0xbf, 0xc0, 0xd7, + 0xce, 0x49, 0x63, 0x74, 0xa1, 0x69, 0xde, 0xc3, 0x69, 0xe4, 0x9f, 0x18, 0x96, 0xf1, 0xe8, 0x9f, + 0xf5, 0x7d, 0xed, 0x59, 0xa7, 0x6b, 0xcf, 0xfa, 0xbd, 0xf6, 0xac, 0xcf, 0x1b, 0xaf, 0x72, 0xba, + 0xf1, 0x2a, 0xbf, 0x36, 0x5e, 0x05, 0x76, 0xe7, 0x2c, 0xd9, 0x7e, 0x14, 0x23, 0xf3, 0x93, 0x4c, + 0xf2, 0xbe, 0x13, 0xeb, 0x6d, 0x7f, 0xeb, 0x1f, 0xfb, 0x4c, 0xc7, 0x26, 0xfc, 0x62, 0x57, 0x83, + 0xf1, 0x9b, 0xaf, 0x76, 0x37, 0x28, 0x6b, 0x8f, 0x75, 0xed, 0xd7, 0x05, 0xf1, 0xe3, 0x9c, 0x36, + 0xd5, 0xda, 0xd4, 0x68, 0x6b, 0xfb, 0xde, 0x56, 0x6d, 0x7a, 0x30, 0x19, 0x99, 0xfb, 0xfa, 0x63, + 0xdf, 0x2e, 0xb9, 0xe1, 0x50, 0x83, 0xc3, 0xa1, 0x21, 0x8f, 0x1a, 0x6a, 0x5d, 0x0f, 0xff, 0x07, + 0x00, 0x00, 0xff, 0xff, 0xb8, 0x9d, 0xc5, 0xbe, 0x68, 0x04, 0x00, 0x00, } func (m *GenesisState) Marshal() (dAtA []byte, err error) { @@ -420,6 +440,11 @@ func (m *GenesisState_Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if m.MaxMetadataLength != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.MaxMetadataLength)) + i-- + dAtA[i] = 0x8 + } return len(dAtA) - i, nil } @@ -480,6 +505,13 @@ func (m *GenesisState_Proposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if len(m.Metadata) > 0 { + i -= len(m.Metadata) + copy(dAtA[i:], m.Metadata) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.Metadata))) + i-- + dAtA[i] = 0x32 + } if len(m.PostActions) > 0 { for iNdEx := len(m.PostActions) - 1; iNdEx >= 0; iNdEx-- { { @@ -578,6 +610,9 @@ func (m *GenesisState_Params) Size() (n int) { } var l int _ = l + if m.MaxMetadataLength != 0 { + n += 1 + sovGenesis(uint64(m.MaxMetadataLength)) + } return n } @@ -627,6 +662,10 @@ func (m *GenesisState_Proposal) Size() (n int) { n += 1 + l + sovGenesis(uint64(l)) } } + l = len(m.Metadata) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } return n } @@ -857,6 +896,25 @@ func (m *GenesisState_Params) Unmarshal(dAtA []byte) error { 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 MaxMetadataLength", wireType) + } + m.MaxMetadataLength = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MaxMetadataLength |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipGenesis(dAtA[iNdEx:]) @@ -1172,6 +1230,38 @@ func (m *GenesisState_Proposal) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + 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 ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Metadata = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenesis(dAtA[iNdEx:]) diff --git a/x/escrow/andromeda/escrow/v1alpha1/query.pb.go b/x/escrow/andromeda/escrow/v1alpha1/query.pb.go index af7d78d..ab4fd35 100644 --- a/x/escrow/andromeda/escrow/v1alpha1/query.pb.go +++ b/x/escrow/andromeda/escrow/v1alpha1/query.pb.go @@ -70,8 +70,8 @@ var xxx_messageInfo_QueryParamsRequest proto.InternalMessageInfo // QueryParamsResponse is the response type for the Query/Params RPC method. type QueryParamsResponse struct { - // the parameters of the module - Params *QueryParamsResponse_Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` + // the maximum length allowed for metadata + MaxMetadataLength uint64 `protobuf:"varint,1,opt,name=max_metadata_length,json=maxMetadataLength,proto3" json:"max_metadata_length,omitempty"` } func (m *QueryParamsResponse) Reset() { *m = QueryParamsResponse{} } @@ -107,50 +107,13 @@ func (m *QueryParamsResponse) XXX_DiscardUnknown() { var xxx_messageInfo_QueryParamsResponse proto.InternalMessageInfo -func (m *QueryParamsResponse) GetParams() *QueryParamsResponse_Params { +func (m *QueryParamsResponse) GetMaxMetadataLength() uint64 { if m != nil { - return m.Params + return m.MaxMetadataLength } - return nil -} - -// Params defines the parameters for the module. -type QueryParamsResponse_Params struct { -} - -func (m *QueryParamsResponse_Params) Reset() { *m = QueryParamsResponse_Params{} } -func (m *QueryParamsResponse_Params) String() string { return proto.CompactTextString(m) } -func (*QueryParamsResponse_Params) ProtoMessage() {} -func (*QueryParamsResponse_Params) Descriptor() ([]byte, []int) { - return fileDescriptor_84a41d203399b1b7, []int{1, 0} -} -func (m *QueryParamsResponse_Params) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryParamsResponse_Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryParamsResponse_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 *QueryParamsResponse_Params) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryParamsResponse_Params.Merge(m, src) -} -func (m *QueryParamsResponse_Params) XXX_Size() int { - return m.Size() -} -func (m *QueryParamsResponse_Params) XXX_DiscardUnknown() { - xxx_messageInfo_QueryParamsResponse_Params.DiscardUnknown(m) + return 0 } -var xxx_messageInfo_QueryParamsResponse_Params proto.InternalMessageInfo - // QueryAgentRequest is the request type for the Query/Agent RPC method. type QueryAgentRequest struct { // the address of an agent @@ -558,6 +521,8 @@ type QueryProposalResponse_Proposal struct { PreActions []*types.Any `protobuf:"bytes,4,rep,name=pre_actions,json=preActions,proto3" json:"pre_actions,omitempty"` // the messages which will be executed after the actions included in Msg/Exec PostActions []*types.Any `protobuf:"bytes,5,rep,name=post_actions,json=postActions,proto3" json:"post_actions,omitempty"` + // any arbitrary metadata attached to the proposal + Metadata string `protobuf:"bytes,6,opt,name=metadata,proto3" json:"metadata,omitempty"` } func (m *QueryProposalResponse_Proposal) Reset() { *m = QueryProposalResponse_Proposal{} } @@ -628,6 +593,13 @@ func (m *QueryProposalResponse_Proposal) GetPostActions() []*types.Any { return nil } +func (m *QueryProposalResponse_Proposal) GetMetadata() string { + if m != nil { + return m.Metadata + } + return "" +} + // QueryProposalsRequest is the request type for the Query/Proposals RPC method. type QueryProposalsRequest struct { // optional pagination for the request @@ -741,6 +713,8 @@ type QueryProposalsResponse_Proposal struct { PreActions []*types.Any `protobuf:"bytes,4,rep,name=pre_actions,json=preActions,proto3" json:"pre_actions,omitempty"` // the messages which will be executed after the actions included in Msg/Exec PostActions []*types.Any `protobuf:"bytes,5,rep,name=post_actions,json=postActions,proto3" json:"post_actions,omitempty"` + // any arbitrary metadata attached to the proposal + Metadata string `protobuf:"bytes,6,opt,name=metadata,proto3" json:"metadata,omitempty"` } func (m *QueryProposalsResponse_Proposal) Reset() { *m = QueryProposalsResponse_Proposal{} } @@ -811,10 +785,16 @@ func (m *QueryProposalsResponse_Proposal) GetPostActions() []*types.Any { return nil } +func (m *QueryProposalsResponse_Proposal) GetMetadata() string { + if m != nil { + return m.Metadata + } + return "" +} + func init() { proto.RegisterType((*QueryParamsRequest)(nil), "andromeda.escrow.v1alpha1.QueryParamsRequest") proto.RegisterType((*QueryParamsResponse)(nil), "andromeda.escrow.v1alpha1.QueryParamsResponse") - proto.RegisterType((*QueryParamsResponse_Params)(nil), "andromeda.escrow.v1alpha1.QueryParamsResponse.Params") proto.RegisterType((*QueryAgentRequest)(nil), "andromeda.escrow.v1alpha1.QueryAgentRequest") proto.RegisterType((*QueryAgentResponse)(nil), "andromeda.escrow.v1alpha1.QueryAgentResponse") proto.RegisterType((*QueryAgentResponse_Agent)(nil), "andromeda.escrow.v1alpha1.QueryAgentResponse.Agent") @@ -834,59 +814,60 @@ func init() { } var fileDescriptor_84a41d203399b1b7 = []byte{ - // 824 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x55, 0x4d, 0x6b, 0x13, 0x5d, - 0x14, 0xee, 0x4c, 0x9a, 0xbc, 0xed, 0xcd, 0xcb, 0x0b, 0xef, 0x35, 0x4a, 0x12, 0x35, 0xe8, 0x68, - 0x6b, 0x6b, 0x9b, 0x7b, 0x9b, 0xb4, 0x45, 0x8c, 0xab, 0x04, 0x6a, 0x11, 0x2c, 0xc4, 0x88, 0x52, - 0x24, 0x50, 0x6e, 0x32, 0xd7, 0x38, 0xd0, 0xcc, 0x9d, 0xce, 0x4c, 0x2b, 0xa5, 0x74, 0xe3, 0x2f, - 0xf0, 0x63, 0xe5, 0x42, 0x11, 0x97, 0x2e, 0x5c, 0xf9, 0x23, 0xc4, 0x55, 0xd1, 0x8d, 0x4b, 0x4d, - 0x5d, 0xb9, 0x12, 0xfc, 0x03, 0x92, 0xfb, 0x31, 0x4d, 0xa2, 0x69, 0x26, 0x45, 0xdc, 0xb8, 0x3c, - 0xf7, 0x3c, 0xe7, 0x9c, 0xe7, 0x9c, 0x7b, 0x3e, 0xc0, 0x04, 0xb1, 0x4d, 0x97, 0x35, 0xa9, 0x49, - 0x30, 0xf5, 0xea, 0x2e, 0xbb, 0x8f, 0xb7, 0x72, 0x64, 0xdd, 0xb9, 0x47, 0x72, 0x78, 0x63, 0x93, - 0xba, 0xdb, 0xc8, 0x71, 0x99, 0xcf, 0x60, 0x2a, 0x80, 0x21, 0x01, 0x43, 0x0a, 0x96, 0xbe, 0x58, - 0x67, 0x5e, 0x93, 0x79, 0xb8, 0x46, 0x3c, 0x2a, 0x6c, 0xf0, 0x56, 0xae, 0x46, 0x7d, 0x92, 0xc3, - 0x0e, 0x69, 0x58, 0x36, 0xf1, 0x2d, 0x66, 0x0b, 0x37, 0xe9, 0x94, 0xc0, 0xae, 0x71, 0x09, 0x0b, - 0x41, 0xaa, 0x4e, 0x35, 0x18, 0x6b, 0xac, 0x53, 0x4c, 0x1c, 0x0b, 0x13, 0xdb, 0x66, 0x3e, 0xb7, - 0x53, 0xda, 0x94, 0xd4, 0x72, 0xa9, 0xb6, 0x79, 0x17, 0x13, 0x5b, 0x52, 0x33, 0x12, 0x00, 0xde, - 0x68, 0x47, 0x2d, 0x13, 0x97, 0x34, 0xbd, 0x0a, 0xdd, 0xd8, 0xa4, 0x9e, 0x6f, 0xd8, 0xe0, 0x58, - 0xd7, 0xab, 0xe7, 0x30, 0xdb, 0xa3, 0x70, 0x05, 0xc4, 0x1c, 0xfe, 0x92, 0xd4, 0xce, 0x68, 0x53, - 0xf1, 0xfc, 0x22, 0xea, 0x9b, 0x18, 0xfa, 0x85, 0x3d, 0x92, 0xa2, 0x74, 0x92, 0x1e, 0x03, 0x31, - 0xf1, 0x62, 0x2c, 0x83, 0xff, 0x39, 0xbe, 0xd8, 0xa0, 0xb6, 0x2f, 0x49, 0xc0, 0x3c, 0xf8, 0x87, - 0x98, 0xa6, 0x4b, 0x3d, 0x11, 0x6e, 0xbc, 0x94, 0x7c, 0xff, 0x26, 0x9b, 0x90, 0x69, 0x17, 0x85, - 0xe6, 0xa6, 0xef, 0x5a, 0x76, 0xa3, 0xa2, 0x80, 0xc6, 0x9e, 0x26, 0xf3, 0x91, 0x9e, 0x24, 0xf1, - 0x6b, 0x20, 0x4a, 0xda, 0x0f, 0x92, 0xf7, 0xfc, 0x20, 0xde, 0x5d, 0xd6, 0x48, 0x48, 0xc2, 0x43, - 0x9a, 0x81, 0x28, 0x97, 0x8f, 0x42, 0xaf, 0x6d, 0x53, 0x77, 0x29, 0xf1, 0x99, 0x9b, 0xd4, 0x07, - 0xd9, 0x48, 0xa0, 0x51, 0xed, 0xcc, 0x48, 0xfd, 0x10, 0xbc, 0x0a, 0xc0, 0x41, 0x7f, 0xc8, 0xb4, - 0x26, 0x91, 0xf4, 0xd4, 0x6e, 0x26, 0x24, 0x1a, 0x50, 0x36, 0x13, 0x2a, 0x93, 0x06, 0x95, 0xb6, - 0x95, 0x0e, 0x4b, 0xe3, 0x99, 0x2e, 0xbf, 0x5a, 0xb9, 0x97, 0x15, 0xbb, 0x0e, 0x62, 0x3c, 0xdf, - 0x76, 0x72, 0x91, 0xa9, 0x78, 0x7e, 0x21, 0x54, 0xc9, 0xbc, 0x9e, 0x9a, 0x49, 0x1f, 0x70, 0xb9, - 0x8b, 0xad, 0xce, 0xd9, 0x5e, 0x18, 0xc8, 0x56, 0xb8, 0xea, 0xa4, 0xfb, 0xe7, 0xab, 0x3f, 0x09, - 0x12, 0xa2, 0x93, 0x5d, 0xe6, 0x30, 0x8f, 0xac, 0xab, 0xfa, 0xff, 0x07, 0x74, 0xcb, 0xe4, 0xa1, - 0x47, 0x2b, 0xba, 0x65, 0x1a, 0x9f, 0x75, 0x70, 0xbc, 0x07, 0x28, 0x2b, 0x79, 0x0b, 0x8c, 0x39, - 0xf2, 0x4d, 0xfe, 0xd3, 0xe5, 0x81, 0x63, 0xd3, 0xe3, 0x03, 0x05, 0x0f, 0x81, 0xab, 0xf4, 0x37, - 0x0d, 0x8c, 0xa9, 0xe7, 0x5e, 0x36, 0x70, 0x41, 0xc5, 0xa4, 0x83, 0x53, 0x0d, 0x90, 0x10, 0xa9, - 0x29, 0x89, 0x0c, 0x30, 0x11, 0x30, 0xb8, 0x08, 0xe2, 0x8e, 0x4b, 0xd7, 0x48, 0x9d, 0xef, 0x9a, - 0xe4, 0x28, 0x6f, 0x94, 0x04, 0x12, 0xcb, 0x06, 0xa9, 0x65, 0x83, 0x8a, 0xf6, 0x76, 0x05, 0x38, - 0x2e, 0x2d, 0x0a, 0x1c, 0xbc, 0x04, 0xfe, 0x75, 0x98, 0xe7, 0x07, 0x76, 0xd1, 0x43, 0xec, 0xe2, - 0x6d, 0xa4, 0x34, 0x34, 0xd6, 0x7a, 0x4a, 0xdc, 0x67, 0x18, 0xf4, 0x23, 0x0f, 0xc3, 0xeb, 0x08, - 0x38, 0xd1, 0x1b, 0x41, 0xfe, 0xe2, 0x2a, 0x18, 0x57, 0xa5, 0x57, 0x23, 0x51, 0x08, 0xfb, 0x8d, - 0xde, 0xcf, 0xff, 0x78, 0xe0, 0xec, 0xf7, 0xcd, 0xc6, 0xdf, 0xd7, 0x11, 0xf9, 0x47, 0x31, 0x10, - 0xe5, 0xa5, 0x86, 0x8f, 0x35, 0x75, 0x4c, 0x60, 0x36, 0xec, 0x55, 0xe2, 0x0d, 0x90, 0x46, 0xc3, - 0x1d, 0x31, 0x63, 0xfa, 0xc1, 0x87, 0x2f, 0x4f, 0xf4, 0x73, 0xf0, 0x2c, 0xee, 0x7f, 0xfc, 0xc5, - 0x81, 0x83, 0x4f, 0x35, 0xb5, 0xae, 0x66, 0x43, 0x5e, 0x1c, 0x41, 0x29, 0x3b, 0xd4, 0x7d, 0x32, - 0xe6, 0x39, 0xa3, 0x2c, 0x9c, 0x39, 0x84, 0x91, 0x58, 0xc4, 0x78, 0x47, 0xee, 0xc2, 0x5d, 0x5e, - 0x30, 0xb1, 0xb3, 0x61, 0x36, 0xec, 0x6e, 0x0f, 0x59, 0xb0, 0xee, 0x53, 0x10, 0xaa, 0x60, 0xf2, - 0x4e, 0xbc, 0xe8, 0x6c, 0x61, 0x1c, 0x7e, 0x4d, 0x0a, 0x62, 0x73, 0xc3, 0xee, 0x55, 0x23, 0xc7, - 0xa9, 0xcd, 0xc0, 0xe9, 0xc3, 0xfe, 0x52, 0x4d, 0x2a, 0xde, 0xb1, 0xcc, 0x5d, 0xf8, 0x5c, 0x03, - 0xe3, 0xc1, 0x60, 0xc3, 0xb9, 0x21, 0x76, 0x80, 0x20, 0x99, 0x1b, 0x7a, 0x6b, 0x18, 0xb3, 0x9c, - 0xe5, 0x24, 0x3c, 0x1f, 0x86, 0x65, 0xe9, 0xbb, 0xf6, 0xb6, 0x95, 0xd1, 0xf6, 0x5a, 0x19, 0xed, - 0x53, 0x2b, 0xa3, 0x3d, 0xdc, 0xcf, 0x8c, 0xec, 0xed, 0x67, 0x46, 0x3e, 0xee, 0x67, 0x46, 0xc0, - 0xe9, 0x3a, 0x6b, 0xf6, 0x0f, 0x5f, 0x02, 0x2a, 0xbe, 0xcf, 0xca, 0xda, 0x9d, 0xa9, 0xbe, 0xc1, - 0xae, 0x08, 0x59, 0x89, 0x2f, 0xf5, 0x48, 0x71, 0x69, 0xf5, 0x95, 0x9e, 0x2a, 0x06, 0x9e, 0x97, - 0x84, 0xe7, 0xdb, 0x12, 0xf1, 0xae, 0x43, 0x57, 0x15, 0xba, 0xaa, 0xd2, 0xb5, 0xf4, 0x89, 0xbe, - 0xba, 0xea, 0x72, 0xb9, 0xb4, 0x42, 0x7d, 0x62, 0x12, 0x9f, 0x7c, 0xd5, 0x4f, 0x06, 0xb8, 0x42, - 0x41, 0x00, 0x0b, 0x05, 0x85, 0xac, 0xc5, 0xf8, 0x92, 0x98, 0xff, 0x11, 0x00, 0x00, 0xff, 0xff, - 0x0e, 0x74, 0xf1, 0x76, 0x92, 0x0b, 0x00, 0x00, + // 843 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x56, 0xcf, 0x6b, 0x13, 0x41, + 0x14, 0xee, 0x6e, 0x9a, 0xd8, 0x4e, 0x44, 0xe8, 0x34, 0x4a, 0x12, 0x35, 0xe8, 0x6a, 0x6b, 0x6b, + 0x9b, 0xd9, 0x26, 0xad, 0x88, 0xf1, 0x94, 0x40, 0x2d, 0x42, 0x85, 0x18, 0x51, 0x8a, 0x04, 0xc2, + 0x24, 0x3b, 0xa6, 0x81, 0x64, 0x67, 0xbb, 0xbb, 0xad, 0x2d, 0xa5, 0x17, 0xcf, 0x1e, 0xfc, 0x71, + 0xf2, 0xa0, 0x88, 0x47, 0xcf, 0xfe, 0x11, 0xd2, 0x53, 0xd1, 0x8b, 0x47, 0x49, 0x3d, 0x79, 0xf5, + 0x2c, 0x48, 0xe6, 0xc7, 0x76, 0x9b, 0x92, 0x66, 0x53, 0xc4, 0x93, 0xc7, 0xb7, 0xef, 0x7b, 0xdf, + 0x7c, 0xf3, 0xde, 0x9b, 0xf7, 0x16, 0x4c, 0x60, 0xd3, 0xb0, 0x69, 0x8b, 0x18, 0x58, 0x27, 0x4e, + 0xcd, 0xa6, 0x4f, 0xf5, 0x8d, 0x0c, 0x6e, 0x5a, 0xab, 0x38, 0xa3, 0xaf, 0xad, 0x13, 0x7b, 0x0b, + 0x59, 0x36, 0x75, 0x29, 0x4c, 0x78, 0x30, 0xc4, 0x61, 0x48, 0xc2, 0x92, 0xd7, 0x6b, 0xd4, 0x69, + 0x51, 0x47, 0xaf, 0x62, 0x87, 0xf0, 0x18, 0x7d, 0x23, 0x53, 0x25, 0x2e, 0xce, 0xe8, 0x16, 0xae, + 0x37, 0x4c, 0xec, 0x36, 0xa8, 0xc9, 0x69, 0x92, 0x09, 0x8e, 0xad, 0x30, 0x4b, 0xe7, 0x86, 0x70, + 0x5d, 0xa8, 0x53, 0x5a, 0x6f, 0x12, 0x1d, 0x5b, 0x0d, 0x1d, 0x9b, 0x26, 0x75, 0x59, 0x9c, 0xf4, + 0x26, 0x84, 0x97, 0x59, 0xd5, 0xf5, 0x27, 0x3a, 0x36, 0x85, 0x34, 0x2d, 0x06, 0xe0, 0xfd, 0xce, + 0xa9, 0x45, 0x6c, 0xe3, 0x96, 0x53, 0x22, 0x6b, 0xeb, 0xc4, 0x71, 0xb5, 0x45, 0x30, 0x7e, 0xe8, + 0xab, 0x63, 0x51, 0xd3, 0x21, 0x10, 0x81, 0xf1, 0x16, 0xde, 0xac, 0xb4, 0x88, 0x8b, 0x0d, 0xec, + 0xe2, 0x4a, 0x93, 0x98, 0x75, 0x77, 0x35, 0xae, 0x5c, 0x52, 0xa6, 0x86, 0x4b, 0x63, 0x2d, 0xbc, + 0x79, 0x4f, 0x78, 0x96, 0x99, 0x43, 0x5b, 0x02, 0x63, 0x8c, 0x26, 0x5f, 0x27, 0xa6, 0x2b, 0xb8, + 0x61, 0x16, 0x9c, 0xc2, 0x86, 0x61, 0x13, 0xc7, 0x61, 0x81, 0xa3, 0x85, 0xf8, 0x97, 0x4f, 0xe9, + 0x98, 0xb8, 0x4d, 0x9e, 0x7b, 0x1e, 0xb8, 0x76, 0xc3, 0xac, 0x97, 0x24, 0x50, 0xdb, 0x53, 0x84, + 0x4c, 0xc1, 0x24, 0xf4, 0xdc, 0x05, 0x61, 0xdc, 0xf9, 0xc0, 0x88, 0xa2, 0xd9, 0x79, 0xd4, 0x33, + 0xcf, 0xe8, 0x68, 0x34, 0xe2, 0x16, 0x67, 0x48, 0x52, 0x10, 0x66, 0xf6, 0x49, 0xe4, 0x75, 0x62, + 0x6a, 0x36, 0xc1, 0x2e, 0xb5, 0xe3, 0x6a, 0xbf, 0x18, 0x01, 0xd4, 0xca, 0xfe, 0x1b, 0xc9, 0xc4, + 0xc3, 0x3b, 0x00, 0x1c, 0x94, 0x5d, 0x5c, 0x6b, 0x12, 0x09, 0xa6, 0x4e, 0x8f, 0x20, 0xde, 0x57, + 0xa2, 0x47, 0x50, 0x11, 0xd7, 0x89, 0x88, 0x2d, 0xf9, 0x22, 0xb5, 0xb7, 0xaa, 0xa8, 0xa0, 0xa4, + 0x17, 0x19, 0x5b, 0x06, 0x11, 0x76, 0xdf, 0xce, 0xe5, 0x42, 0x53, 0xd1, 0xec, 0x42, 0xa0, 0x94, + 0x39, 0x5d, 0x39, 0x13, 0x1c, 0x70, 0xe9, 0x90, 0x5a, 0x95, 0xa9, 0xbd, 0xd6, 0x57, 0x2d, 0xa7, + 0xf2, 0xcb, 0xfd, 0xf7, 0xd9, 0x9f, 0x04, 0x31, 0xde, 0xe0, 0x36, 0xb5, 0xa8, 0x83, 0x9b, 0x32, + 0xff, 0x67, 0x80, 0xda, 0x30, 0x44, 0x43, 0xab, 0x0d, 0x43, 0xfb, 0xad, 0x82, 0xb3, 0x5d, 0x40, + 0x91, 0xc9, 0x87, 0x60, 0xc4, 0x12, 0xdf, 0x44, 0x9d, 0x6e, 0xf5, 0xcb, 0x65, 0x37, 0x07, 0xf2, + 0x3e, 0x78, 0x54, 0xc9, 0xe7, 0x2a, 0x18, 0x91, 0x9f, 0xbb, 0xd5, 0xc0, 0x05, 0x79, 0x26, 0xe9, + 0x7f, 0x55, 0x0f, 0x09, 0x91, 0x7c, 0x25, 0xa1, 0x3e, 0x21, 0x1c, 0x06, 0x6f, 0x80, 0xa8, 0x65, + 0x93, 0x0a, 0xae, 0xb1, 0x11, 0x12, 0x1f, 0x66, 0x8d, 0x12, 0x43, 0x7c, 0x86, 0x20, 0x39, 0x43, + 0x50, 0xde, 0xdc, 0x2a, 0x01, 0xcb, 0x26, 0x79, 0x8e, 0x83, 0x37, 0xc1, 0x69, 0x8b, 0x3a, 0xae, + 0x17, 0x17, 0x3e, 0x26, 0x2e, 0xda, 0x41, 0xca, 0xc0, 0x24, 0x18, 0x91, 0x13, 0x25, 0x1e, 0xe9, + 0x48, 0x2c, 0x79, 0xb6, 0x56, 0xe9, 0x4a, 0x7f, 0x8f, 0x87, 0xa2, 0x9e, 0xf8, 0xa1, 0xec, 0x86, + 0xc0, 0xb9, 0xee, 0x13, 0x44, 0x85, 0x57, 0xc0, 0xa8, 0x2c, 0x8b, 0x7c, 0x2e, 0xb9, 0xa0, 0x25, + 0x76, 0x8e, 0xd6, 0xf8, 0x80, 0xec, 0xef, 0xbd, 0x9b, 0xff, 0xdd, 0xe2, 0xef, 0x96, 0xec, 0xcb, + 0x08, 0x08, 0xb3, 0x32, 0xc0, 0x57, 0x0a, 0x88, 0xf0, 0xe5, 0x05, 0xd3, 0x7d, 0x6b, 0xe6, 0x5f, + 0x7d, 0x49, 0x14, 0x14, 0xce, 0xcb, 0xa1, 0x4d, 0x3f, 0xfb, 0xfa, 0xe3, 0xb5, 0x7a, 0x05, 0x5e, + 0xd6, 0x7b, 0xff, 0x0b, 0x58, 0x5c, 0xc9, 0x1b, 0x45, 0x8e, 0xb9, 0xd9, 0x80, 0x9b, 0x8a, 0x4b, + 0x4a, 0x0f, 0xb4, 0xd7, 0xb4, 0x79, 0xa6, 0x28, 0x0d, 0x67, 0x8e, 0x51, 0xc4, 0x07, 0xb8, 0xbe, + 0x2d, 0x66, 0xe8, 0x0e, 0x4b, 0x18, 0x9f, 0xf5, 0x30, 0x1d, 0x74, 0x27, 0x04, 0x4c, 0xd8, 0xe1, + 0x15, 0x12, 0x28, 0x61, 0x62, 0xbf, 0xbc, 0x57, 0x7c, 0xed, 0xad, 0x07, 0x1f, 0xaf, 0x5c, 0xd8, + 0xdc, 0xa0, 0xf3, 0x58, 0xcb, 0x30, 0x69, 0x33, 0x70, 0xfa, 0xb8, 0x5a, 0xca, 0x57, 0xac, 0x6f, + 0x37, 0x8c, 0x1d, 0xf8, 0x4e, 0x01, 0xa3, 0xde, 0xa3, 0x87, 0x73, 0x03, 0xcc, 0x07, 0x2e, 0x32, + 0x33, 0xf0, 0x44, 0xd1, 0x66, 0x99, 0xca, 0x49, 0x78, 0x35, 0x88, 0xca, 0xc2, 0x2f, 0xe5, 0x73, + 0x3b, 0xa5, 0xec, 0xb5, 0x53, 0xca, 0xf7, 0x76, 0x4a, 0x79, 0xb1, 0x9f, 0x1a, 0xda, 0xdb, 0x4f, + 0x0d, 0x7d, 0xdb, 0x4f, 0x0d, 0x81, 0x8b, 0x35, 0xda, 0xea, 0x7d, 0x7c, 0x01, 0xc8, 0xf3, 0x5d, + 0x5a, 0x54, 0x1e, 0x4f, 0xf5, 0x3c, 0xec, 0x36, 0xb7, 0xa5, 0xf9, 0x41, 0x0d, 0xe5, 0x17, 0x57, + 0x3e, 0xaa, 0x89, 0xbc, 0xc7, 0xbc, 0xc8, 0x99, 0x1f, 0x09, 0xc4, 0xae, 0xcf, 0x57, 0xe6, 0xbe, + 0xb2, 0xf4, 0xb5, 0xd5, 0x89, 0x9e, 0xbe, 0xf2, 0x52, 0xb1, 0x20, 0xff, 0x30, 0x7f, 0xaa, 0xe7, + 0x3d, 0x5c, 0x2e, 0xc7, 0x81, 0xb9, 0x9c, 0x44, 0x56, 0x23, 0x6c, 0x80, 0xcc, 0xff, 0x09, 0x00, + 0x00, 0xff, 0xff, 0xbb, 0x65, 0x0c, 0xe4, 0xa1, 0x0b, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1166,41 +1147,11 @@ func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if m.Params != nil { - { - size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } + if m.MaxMetadataLength != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.MaxMetadataLength)) i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *QueryParamsResponse_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 + dAtA[i] = 0x8 } - return dAtA[:n], nil -} - -func (m *QueryParamsResponse_Params) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryParamsResponse_Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l return len(dAtA) - i, nil } @@ -1510,6 +1461,13 @@ func (m *QueryProposalResponse_Proposal) MarshalToSizedBuffer(dAtA []byte) (int, _ = i var l int _ = l + if len(m.Metadata) > 0 { + i -= len(m.Metadata) + copy(dAtA[i:], m.Metadata) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Metadata))) + i-- + dAtA[i] = 0x32 + } if len(m.PostActions) > 0 { for iNdEx := len(m.PostActions) - 1; iNdEx >= 0; iNdEx-- { { @@ -1664,6 +1622,13 @@ func (m *QueryProposalsResponse_Proposal) MarshalToSizedBuffer(dAtA []byte) (int _ = i var l int _ = l + if len(m.Metadata) > 0 { + i -= len(m.Metadata) + copy(dAtA[i:], m.Metadata) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Metadata))) + i-- + dAtA[i] = 0x32 + } if len(m.PostActions) > 0 { for iNdEx := len(m.PostActions) - 1; iNdEx >= 0; iNdEx-- { { @@ -1740,22 +1705,12 @@ func (m *QueryParamsResponse) Size() (n int) { } var l int _ = l - if m.Params != nil { - l = m.Params.Size() - n += 1 + l + sovQuery(uint64(l)) + if m.MaxMetadataLength != 0 { + n += 1 + sovQuery(uint64(m.MaxMetadataLength)) } return n } -func (m *QueryParamsResponse_Params) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - func (m *QueryAgentRequest) Size() (n int) { if m == nil { return 0 @@ -1902,6 +1857,10 @@ func (m *QueryProposalResponse_Proposal) Size() (n int) { n += 1 + l + sovQuery(uint64(l)) } } + l = len(m.Metadata) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } return n } @@ -1966,6 +1925,10 @@ func (m *QueryProposalsResponse_Proposal) Size() (n int) { n += 1 + l + sovQuery(uint64(l)) } } + l = len(m.Metadata) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } return n } @@ -2055,10 +2018,10 @@ func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error { } switch fieldNum { case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxMetadataLength", wireType) } - var msglen int + m.MaxMetadataLength = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -2068,78 +2031,11 @@ func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.MaxMetadataLength |= uint64(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.Params == nil { - m.Params = &QueryParamsResponse_Params{} - } - 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 (m *QueryParamsResponse_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 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: 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 { default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -3098,6 +2994,38 @@ func (m *QueryProposalResponse_Proposal) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Metadata", 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.Metadata = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -3505,6 +3433,38 @@ func (m *QueryProposalsResponse_Proposal) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Metadata", 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.Metadata = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) diff --git a/x/escrow/andromeda/escrow/v1alpha1/tx.pb.go b/x/escrow/andromeda/escrow/v1alpha1/tx.pb.go index dd8bab0..29356b3 100644 --- a/x/escrow/andromeda/escrow/v1alpha1/tx.pb.go +++ b/x/escrow/andromeda/escrow/v1alpha1/tx.pb.go @@ -34,9 +34,9 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package type MsgUpdateParams struct { // the address of the module authority Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` - // the parameters to update - // Note: All parameters must be supplied. - Params *MsgUpdateParams_Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"` + // the maximum length allowed for metadata + // Note: it must be greater than or equal to the current's. + MaxMetadataLength uint64 `protobuf:"varint,2,opt,name=max_metadata_length,json=maxMetadataLength,proto3" json:"max_metadata_length,omitempty"` } func (m *MsgUpdateParams) Reset() { *m = MsgUpdateParams{} } @@ -79,50 +79,13 @@ func (m *MsgUpdateParams) GetAuthority() string { return "" } -func (m *MsgUpdateParams) GetParams() *MsgUpdateParams_Params { +func (m *MsgUpdateParams) GetMaxMetadataLength() uint64 { if m != nil { - return m.Params + return m.MaxMetadataLength } - return nil -} - -// Params defines the parameters for the module. -type MsgUpdateParams_Params struct { -} - -func (m *MsgUpdateParams_Params) Reset() { *m = MsgUpdateParams_Params{} } -func (m *MsgUpdateParams_Params) String() string { return proto.CompactTextString(m) } -func (*MsgUpdateParams_Params) ProtoMessage() {} -func (*MsgUpdateParams_Params) Descriptor() ([]byte, []int) { - return fileDescriptor_78c48d1f0ffd37da, []int{0, 0} -} -func (m *MsgUpdateParams_Params) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgUpdateParams_Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgUpdateParams_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 *MsgUpdateParams_Params) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgUpdateParams_Params.Merge(m, src) -} -func (m *MsgUpdateParams_Params) XXX_Size() int { - return m.Size() -} -func (m *MsgUpdateParams_Params) XXX_DiscardUnknown() { - xxx_messageInfo_MsgUpdateParams_Params.DiscardUnknown(m) + return 0 } -var xxx_messageInfo_MsgUpdateParams_Params proto.InternalMessageInfo - // MsgUpdateParamsResponse is the Msg/UpdateParams response type. type MsgUpdateParamsResponse struct { } @@ -265,6 +228,8 @@ type MsgSubmitProposal struct { // the messages which will be executed after the actions included in Msg/Exec // Note: the signer of each message must be either the proposer or the agent. PostActions []*types.Any `protobuf:"bytes,4,rep,name=post_actions,json=postActions,proto3" json:"post_actions,omitempty"` + // any arbitrary metadata attached to the proposal + Metadata string `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"` } func (m *MsgSubmitProposal) Reset() { *m = MsgSubmitProposal{} } @@ -328,6 +293,13 @@ func (m *MsgSubmitProposal) GetPostActions() []*types.Any { return nil } +func (m *MsgSubmitProposal) GetMetadata() string { + if m != nil { + return m.Metadata + } + return "" +} + // MsgSubmitProposalResponse is the Msg/SubmitProposal response type. type MsgSubmitProposalResponse struct { // the identifier of the submitted proposal @@ -487,7 +459,6 @@ var xxx_messageInfo_MsgExecResponse proto.InternalMessageInfo func init() { proto.RegisterType((*MsgUpdateParams)(nil), "andromeda.escrow.v1alpha1.MsgUpdateParams") - proto.RegisterType((*MsgUpdateParams_Params)(nil), "andromeda.escrow.v1alpha1.MsgUpdateParams.Params") proto.RegisterType((*MsgUpdateParamsResponse)(nil), "andromeda.escrow.v1alpha1.MsgUpdateParamsResponse") proto.RegisterType((*MsgCreateAgent)(nil), "andromeda.escrow.v1alpha1.MsgCreateAgent") proto.RegisterType((*MsgCreateAgentResponse)(nil), "andromeda.escrow.v1alpha1.MsgCreateAgentResponse") @@ -502,49 +473,50 @@ func init() { } var fileDescriptor_78c48d1f0ffd37da = []byte{ - // 660 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x94, 0xcf, 0x6b, 0x13, 0x41, - 0x14, 0xc7, 0xbb, 0x9b, 0xb6, 0x69, 0x5f, 0x6a, 0xa4, 0x4b, 0xb1, 0xc9, 0x8a, 0xa1, 0x2c, 0x08, - 0x31, 0xea, 0x2e, 0x89, 0x55, 0x61, 0x3d, 0x25, 0x52, 0xd4, 0x43, 0x20, 0xa4, 0x5a, 0x44, 0x0a, - 0x65, 0xba, 0x3b, 0x6e, 0x83, 0xc9, 0xce, 0x32, 0x33, 0xa9, 0xe9, 0x4d, 0xfc, 0x0b, 0xfc, 0x1b, - 0x3c, 0x7a, 0x90, 0x1e, 0x04, 0xff, 0x05, 0xe9, 0xa9, 0x78, 0xf2, 0x28, 0xe9, 0xa1, 0xe0, 0xc9, - 0xa3, 0x47, 0xd9, 0x9d, 0xcc, 0xa4, 0x8d, 0xe4, 0x87, 0xa7, 0xcd, 0xdb, 0xf7, 0x79, 0xdf, 0xef, - 0xbc, 0x97, 0x37, 0x0b, 0x16, 0x0a, 0x7d, 0x4a, 0x3a, 0xd8, 0x47, 0x0e, 0x66, 0x1e, 0x25, 0x6f, - 0x9d, 0xc3, 0x32, 0x6a, 0x47, 0x07, 0xa8, 0xec, 0xf0, 0x9e, 0x1d, 0x51, 0xc2, 0x89, 0x91, 0x57, - 0x8c, 0x2d, 0x18, 0x5b, 0x32, 0xe6, 0xba, 0x47, 0x58, 0x87, 0x30, 0xa7, 0xc3, 0x02, 0xe7, 0xb0, - 0x1c, 0x3f, 0x44, 0x8d, 0x99, 0x17, 0x89, 0xbd, 0x24, 0x72, 0x44, 0x20, 0x53, 0x01, 0x21, 0x41, - 0x1b, 0x3b, 0x49, 0xb4, 0xdf, 0x7d, 0xed, 0xa0, 0xf0, 0x48, 0xa4, 0xac, 0xcf, 0x1a, 0x5c, 0xad, - 0xb3, 0xe0, 0x45, 0xe4, 0x23, 0x8e, 0x1b, 0x88, 0xa2, 0x0e, 0x33, 0x1e, 0xc0, 0x32, 0xea, 0xf2, - 0x03, 0x42, 0x5b, 0xfc, 0x28, 0xa7, 0x6d, 0x68, 0xc5, 0xe5, 0x5a, 0xee, 0xfb, 0x97, 0xbb, 0x6b, - 0x03, 0xcd, 0xaa, 0xef, 0x53, 0xcc, 0xd8, 0x36, 0xa7, 0xad, 0x30, 0x68, 0x0e, 0x51, 0xe3, 0x19, - 0x2c, 0x46, 0x89, 0x42, 0x4e, 0xdf, 0xd0, 0x8a, 0x99, 0x4a, 0xd9, 0x1e, 0xdb, 0x86, 0x3d, 0xe2, - 0x69, 0x8b, 0x47, 0x73, 0x20, 0x60, 0x2e, 0xc1, 0xa2, 0x78, 0xe3, 0x66, 0xdf, 0x9f, 0x1f, 0x97, - 0x86, 0x26, 0x56, 0x1e, 0xd6, 0x47, 0x6a, 0x9b, 0x98, 0x45, 0x24, 0x64, 0xd8, 0x6a, 0x42, 0xb6, - 0xce, 0x82, 0xc7, 0x14, 0x23, 0x8e, 0xab, 0x01, 0x0e, 0xb9, 0x51, 0x81, 0xb4, 0x17, 0x87, 0x84, - 0x4e, 0xed, 0x43, 0x82, 0xee, 0x4a, 0x6c, 0x28, 0x23, 0xeb, 0x29, 0x5c, 0xbb, 0xac, 0x29, 0xdd, - 0x0c, 0x1b, 0x16, 0x50, 0xfc, 0x62, 0xaa, 0xb2, 0xc0, 0xac, 0x3f, 0x1a, 0xac, 0xd6, 0x59, 0xb0, - 0xdd, 0xdd, 0xef, 0xb4, 0x78, 0x83, 0x92, 0x88, 0x30, 0xd4, 0x36, 0x36, 0x61, 0x29, 0x4a, 0x7e, - 0xe3, 0xe9, 0x47, 0x54, 0xe4, 0xd0, 0x5b, 0x9f, 0xc9, 0xdb, 0xb8, 0x0f, 0x99, 0x88, 0xe2, 0x3d, - 0xe4, 0xf1, 0x16, 0x09, 0x59, 0x2e, 0xb5, 0x91, 0x2a, 0x66, 0x2a, 0x6b, 0xb6, 0x58, 0x0b, 0x5b, - 0xae, 0x85, 0x5d, 0x0d, 0x8f, 0x9a, 0x10, 0x51, 0x5c, 0x15, 0x9c, 0xf1, 0x10, 0x56, 0x22, 0xc2, - 0xb8, 0xaa, 0x9b, 0x9f, 0x50, 0x97, 0x89, 0xc9, 0x41, 0xa1, 0x7b, 0x25, 0x9e, 0xa1, 0x3a, 0xae, - 0x75, 0x1b, 0xf2, 0xff, 0x74, 0xae, 0xe6, 0x98, 0x05, 0xbd, 0xe5, 0x27, 0xbd, 0xcf, 0x37, 0xf5, - 0x96, 0x6f, 0x9d, 0x68, 0x90, 0xae, 0xb3, 0x60, 0xab, 0x87, 0x3d, 0xc3, 0x94, 0xd3, 0x41, 0xed, - 0x01, 0xa1, 0xe2, 0x78, 0x72, 0xb8, 0x87, 0xbd, 0x6e, 0xfc, 0xe7, 0x4e, 0x1b, 0x83, 0x22, 0x87, - 0x93, 0x4b, 0xcd, 0x36, 0x39, 0x1b, 0xd2, 0xb3, 0x74, 0x2f, 0xa1, 0x41, 0xe7, 0xd2, 0xce, 0x5a, - 0x4d, 0x6e, 0x57, 0xdc, 0x8b, 0xec, 0xb7, 0xf2, 0x35, 0x05, 0xa9, 0x3a, 0x0b, 0x8c, 0x10, 0x56, - 0x2e, 0xdd, 0xba, 0xd2, 0xec, 0xb7, 0xc5, 0xac, 0xcc, 0xce, 0xaa, 0x39, 0xbf, 0x81, 0xcc, 0xc5, - 0xab, 0x71, 0x6b, 0xb2, 0xc4, 0x05, 0xd4, 0x2c, 0xcf, 0x8c, 0x2a, 0x33, 0x0e, 0xd9, 0x91, 0x45, - 0xbf, 0x33, 0x59, 0xe4, 0x32, 0x6d, 0x6e, 0xfe, 0x0f, 0xad, 0x5c, 0x77, 0x60, 0x3e, 0x59, 0x1b, - 0x6b, 0x72, 0x75, 0xcc, 0x98, 0xa5, 0xe9, 0x8c, 0xd4, 0x35, 0x17, 0xde, 0x9d, 0x1f, 0x97, 0xb4, - 0xda, 0x6f, 0xed, 0x5b, 0xbf, 0xa0, 0x9d, 0xf6, 0x0b, 0xda, 0xcf, 0x7e, 0x41, 0xfb, 0x70, 0x56, - 0x98, 0x3b, 0x3d, 0x2b, 0xcc, 0xfd, 0x38, 0x2b, 0xcc, 0xc1, 0x0d, 0x8f, 0x74, 0xc6, 0x0b, 0xd6, - 0xd2, 0xcf, 0x7b, 0x8d, 0x78, 0x5d, 0x1a, 0xda, 0xab, 0xe2, 0xd8, 0xcf, 0xff, 0x23, 0x11, 0xcb, - 0xf0, 0xa3, 0x9e, 0xaa, 0x6e, 0xbd, 0xfc, 0xa4, 0xe7, 0xab, 0x4a, 0x76, 0x4b, 0xc8, 0xee, 0x0c, - 0x88, 0x93, 0x0b, 0xb9, 0x5d, 0x91, 0xdb, 0x95, 0xb9, 0xbe, 0x7e, 0x73, 0x6c, 0x6e, 0xf7, 0x49, - 0xa3, 0x56, 0xc7, 0x1c, 0xf9, 0x88, 0xa3, 0x5f, 0xfa, 0x75, 0xc5, 0xb9, 0xae, 0x00, 0x5d, 0x57, - 0x92, 0xfb, 0x8b, 0xc9, 0x96, 0xdf, 0xfb, 0x1b, 0x00, 0x00, 0xff, 0xff, 0xc0, 0x1f, 0x83, 0xdc, - 0xb5, 0x06, 0x00, 0x00, + // 678 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x94, 0xcf, 0x6e, 0xd3, 0x4a, + 0x14, 0xc6, 0x6b, 0x27, 0xbd, 0x69, 0x4f, 0x7a, 0x73, 0x55, 0xdf, 0x8a, 0x26, 0x46, 0x44, 0x95, + 0x25, 0xa4, 0x10, 0xc0, 0x56, 0x42, 0x01, 0xc9, 0xac, 0x12, 0x54, 0xc1, 0x82, 0x48, 0x91, 0x0b, + 0x15, 0x42, 0x95, 0xa2, 0xa9, 0x3d, 0xb8, 0x11, 0xb1, 0xc7, 0xf2, 0x4c, 0x4a, 0xba, 0x43, 0xec, + 0xd8, 0xb1, 0xe0, 0x09, 0x58, 0xb2, 0xea, 0x02, 0x89, 0x57, 0x40, 0x5d, 0x55, 0xac, 0x58, 0xa2, + 0x74, 0x51, 0x89, 0x15, 0x8f, 0x80, 0xc6, 0xce, 0x4c, 0xda, 0xa2, 0xfc, 0x61, 0x95, 0x1c, 0x9f, + 0xdf, 0xf9, 0xce, 0xcc, 0x37, 0x73, 0x06, 0x0c, 0x14, 0x7a, 0x31, 0x09, 0xb0, 0x87, 0x2c, 0x4c, + 0xdd, 0x98, 0xbc, 0xb6, 0x0e, 0x6a, 0xa8, 0x17, 0xed, 0xa3, 0x9a, 0xc5, 0x06, 0x66, 0x14, 0x13, + 0x46, 0xb4, 0x92, 0x64, 0xcc, 0x94, 0x31, 0x05, 0xa3, 0xaf, 0xbb, 0x84, 0x06, 0x84, 0x5a, 0x01, + 0xf5, 0xad, 0x83, 0x1a, 0xff, 0x49, 0x6b, 0xf4, 0x52, 0x9a, 0xe8, 0x24, 0x91, 0x95, 0x06, 0x22, + 0xe5, 0x13, 0xe2, 0xf7, 0xb0, 0x95, 0x44, 0x7b, 0xfd, 0x97, 0x16, 0x0a, 0x0f, 0xd3, 0x94, 0xf1, + 0x4e, 0x81, 0xff, 0x5a, 0xd4, 0x7f, 0x16, 0x79, 0x88, 0xe1, 0x36, 0x8a, 0x51, 0x40, 0xb5, 0x7b, + 0xb0, 0x8c, 0xfa, 0x6c, 0x9f, 0xc4, 0x5d, 0x76, 0x58, 0x54, 0x36, 0x94, 0xca, 0x72, 0xb3, 0xf8, + 0xed, 0xf3, 0xed, 0xb5, 0x91, 0x66, 0xc3, 0xf3, 0x62, 0x4c, 0xe9, 0x36, 0x8b, 0xbb, 0xa1, 0xef, + 0x8c, 0x51, 0xcd, 0x84, 0xff, 0x03, 0x34, 0xe8, 0x04, 0x98, 0x21, 0x0f, 0x31, 0xd4, 0xe9, 0xe1, + 0xd0, 0x67, 0xfb, 0x45, 0x75, 0x43, 0xa9, 0x64, 0x9d, 0xd5, 0x00, 0x0d, 0x5a, 0xa3, 0xcc, 0x93, + 0x24, 0x61, 0x17, 0xde, 0x9e, 0x1d, 0x55, 0xc7, 0xf5, 0x46, 0x09, 0xd6, 0x2f, 0x2d, 0xc5, 0xc1, + 0x34, 0x22, 0x21, 0xc5, 0x86, 0x03, 0x85, 0x16, 0xf5, 0x1f, 0xc6, 0x18, 0x31, 0xdc, 0xf0, 0x71, + 0xc8, 0xb4, 0x3a, 0xe4, 0x5c, 0x1e, 0x92, 0x78, 0xe6, 0x12, 0x05, 0x68, 0xaf, 0xf0, 0x86, 0x22, + 0x32, 0x1e, 0xc3, 0x95, 0x8b, 0x9a, 0xa2, 0x9b, 0x66, 0xc2, 0x22, 0xe2, 0x1f, 0x66, 0x2a, 0xa7, + 0x98, 0xf1, 0x41, 0x85, 0xd5, 0x16, 0xf5, 0xb7, 0xfb, 0x7b, 0x41, 0x97, 0xb5, 0x63, 0x12, 0x11, + 0x8a, 0x7a, 0xda, 0x26, 0x2c, 0x45, 0xc9, 0x7f, 0x3c, 0x7b, 0x89, 0x92, 0x1c, 0xf7, 0x56, 0xe7, + 0xea, 0xad, 0xdd, 0x85, 0x7c, 0x14, 0xe3, 0x0e, 0x72, 0x59, 0x97, 0x84, 0xb4, 0x98, 0xd9, 0xc8, + 0x54, 0xf2, 0xf5, 0x35, 0x33, 0x3d, 0x71, 0x53, 0x9c, 0xb8, 0xd9, 0x08, 0x0f, 0x1d, 0x88, 0x62, + 0xdc, 0x48, 0x39, 0xed, 0x3e, 0xac, 0x44, 0x84, 0x32, 0x59, 0x97, 0x9d, 0x52, 0x97, 0xe7, 0xa4, + 0x28, 0xd4, 0x61, 0x49, 0x1c, 0x70, 0x71, 0x91, 0x2f, 0xd1, 0x91, 0xb1, 0xfd, 0x2f, 0xf7, 0x57, + 0x6e, 0xc5, 0xb8, 0x09, 0xa5, 0x3f, 0x5c, 0x91, 0x1e, 0x17, 0x40, 0xed, 0x7a, 0x89, 0x2f, 0x59, + 0x47, 0xed, 0x7a, 0xc6, 0xb1, 0x02, 0xb9, 0x16, 0xf5, 0xb7, 0x06, 0xd8, 0xe5, 0x3d, 0xa2, 0x11, + 0x3f, 0x22, 0x64, 0xcc, 0x5d, 0xc5, 0x03, 0xec, 0xf6, 0xf9, 0xc1, 0xcf, 0xb2, 0x48, 0x92, 0x63, + 0x57, 0x33, 0xf3, 0xb9, 0x6a, 0x42, 0x6e, 0x1e, 0x67, 0x04, 0x34, 0xda, 0xb9, 0x68, 0x67, 0xac, + 0x26, 0x43, 0xc5, 0xf7, 0x22, 0xf6, 0x5b, 0xff, 0x92, 0x81, 0x4c, 0x8b, 0xfa, 0x5a, 0x08, 0x2b, + 0x17, 0x86, 0xad, 0x6a, 0x4e, 0x9c, 0x75, 0xf3, 0xd2, 0x34, 0xe8, 0xf5, 0xf9, 0x59, 0xe9, 0xf3, + 0x2b, 0xc8, 0x9f, 0x1f, 0x9b, 0x1b, 0xd3, 0x25, 0xce, 0xa1, 0x7a, 0x6d, 0x6e, 0x54, 0x36, 0x63, + 0x50, 0xb8, 0x34, 0x04, 0xb7, 0xa6, 0x8b, 0x5c, 0xa4, 0xf5, 0xcd, 0xbf, 0xa1, 0x65, 0xd7, 0x1d, + 0xc8, 0x26, 0xd7, 0xc6, 0x98, 0x5e, 0xcd, 0x19, 0xbd, 0x3a, 0x9b, 0x11, 0xba, 0xfa, 0xe2, 0x9b, + 0xb3, 0xa3, 0xaa, 0xd2, 0xfc, 0xa5, 0x7c, 0x1d, 0x96, 0x95, 0x93, 0x61, 0x59, 0xf9, 0x31, 0x2c, + 0x2b, 0xef, 0x4f, 0xcb, 0x0b, 0x27, 0xa7, 0xe5, 0x85, 0xef, 0xa7, 0xe5, 0x05, 0xb8, 0xe6, 0x92, + 0x60, 0xb2, 0x60, 0x33, 0xf7, 0x74, 0xd0, 0xe6, 0xd7, 0xa5, 0xad, 0xbc, 0xa8, 0x4c, 0x7c, 0xf5, + 0x1f, 0xa4, 0xb1, 0x08, 0x3f, 0xaa, 0x99, 0xc6, 0xd6, 0xf3, 0x4f, 0x6a, 0xa9, 0x21, 0x65, 0xb7, + 0x52, 0xd9, 0x9d, 0x11, 0x71, 0x7c, 0x2e, 0xb7, 0x9b, 0xe6, 0x76, 0x45, 0x6e, 0xa8, 0x5e, 0x9f, + 0x98, 0xdb, 0x7d, 0xd4, 0x6e, 0x8a, 0x17, 0xf8, 0xa7, 0x7a, 0x55, 0x72, 0xb6, 0x9d, 0x82, 0xb6, + 0x2d, 0xc8, 0xbd, 0x7f, 0x92, 0x5b, 0x7e, 0xe7, 0x77, 0x00, 0x00, 0x00, 0xff, 0xff, 0xd7, 0x50, + 0xda, 0xba, 0xac, 0x06, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -763,17 +735,10 @@ func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if m.Params != nil { - { - size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) - } + if m.MaxMetadataLength != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.MaxMetadataLength)) i-- - dAtA[i] = 0x12 + dAtA[i] = 0x10 } if len(m.Authority) > 0 { i -= len(m.Authority) @@ -785,29 +750,6 @@ func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *MsgUpdateParams_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 *MsgUpdateParams_Params) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgUpdateParams_Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -911,6 +853,13 @@ func (m *MsgSubmitProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if len(m.Metadata) > 0 { + i -= len(m.Metadata) + copy(dAtA[i:], m.Metadata) + i = encodeVarintTx(dAtA, i, uint64(len(m.Metadata))) + i-- + dAtA[i] = 0x2a + } if len(m.PostActions) > 0 { for iNdEx := len(m.PostActions) - 1; iNdEx >= 0; iNdEx-- { { @@ -1084,19 +1033,9 @@ func (m *MsgUpdateParams) Size() (n int) { if l > 0 { n += 1 + l + sovTx(uint64(l)) } - if m.Params != nil { - l = m.Params.Size() - n += 1 + l + sovTx(uint64(l)) - } - return n -} - -func (m *MsgUpdateParams_Params) Size() (n int) { - if m == nil { - return 0 + if m.MaxMetadataLength != 0 { + n += 1 + sovTx(uint64(m.MaxMetadataLength)) } - var l int - _ = l return n } @@ -1161,6 +1100,10 @@ func (m *MsgSubmitProposal) Size() (n int) { n += 1 + l + sovTx(uint64(l)) } } + l = len(m.Metadata) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } return n } @@ -1279,10 +1222,10 @@ func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error { m.Authority = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxMetadataLength", wireType) } - var msglen int + m.MaxMetadataLength = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -1292,78 +1235,11 @@ func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.MaxMetadataLength |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Params == nil { - m.Params = &MsgUpdateParams_Params{} - } - if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MsgUpdateParams_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 ErrIntOverflowTx - } - 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 { default: iNdEx = preIndex skippy, err := skipTx(dAtA[iNdEx:]) @@ -1760,6 +1636,38 @@ func (m *MsgSubmitProposal) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + 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 ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Metadata = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipTx(dAtA[iNdEx:]) diff --git a/x/escrow/andromeda/escrow/v1alpha1/types.pb.go b/x/escrow/andromeda/escrow/v1alpha1/types.pb.go index 7e01b61..ae86909 100644 --- a/x/escrow/andromeda/escrow/v1alpha1/types.pb.go +++ b/x/escrow/andromeda/escrow/v1alpha1/types.pb.go @@ -25,6 +25,8 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // Params defines the parameters for the module. type Params struct { + // the maximum length allowed for metadata + MaxMetadataLength uint64 `protobuf:"varint,1,opt,name=max_metadata_length,json=maxMetadataLength,proto3" json:"max_metadata_length,omitempty"` } func (m *Params) Reset() { *m = Params{} } @@ -60,6 +62,13 @@ func (m *Params) XXX_DiscardUnknown() { var xxx_messageInfo_Params proto.InternalMessageInfo +func (m *Params) GetMaxMetadataLength() uint64 { + if m != nil { + return m.MaxMetadataLength + } + return 0 +} + // Agent defines an account taking charge of a proposal. type Agent struct { } @@ -105,6 +114,8 @@ type Proposal struct { PreActions []*types.Any `protobuf:"bytes,2,rep,name=pre_actions,json=preActions,proto3" json:"pre_actions,omitempty"` // the messages which will be executed after the actions included in Msg/Exec PostActions []*types.Any `protobuf:"bytes,3,rep,name=post_actions,json=postActions,proto3" json:"post_actions,omitempty"` + // any arbitrary metadata attached to the proposal + Metadata string `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"` } func (m *Proposal) Reset() { *m = Proposal{} } @@ -161,6 +172,13 @@ func (m *Proposal) GetPostActions() []*types.Any { return nil } +func (m *Proposal) GetMetadata() string { + if m != nil { + return m.Metadata + } + return "" +} + func init() { proto.RegisterType((*Params)(nil), "andromeda.escrow.v1alpha1.Params") proto.RegisterType((*Agent)(nil), "andromeda.escrow.v1alpha1.Agent") @@ -172,27 +190,30 @@ func init() { } var fileDescriptor_20554566221d01d5 = []byte{ - // 320 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x4d, 0xcc, 0x4b, 0x29, - 0xca, 0xcf, 0x4d, 0x4d, 0x49, 0xd4, 0x4f, 0x2d, 0x4e, 0x2e, 0xca, 0x2f, 0xd7, 0x2f, 0x33, 0x4c, - 0xcc, 0x29, 0xc8, 0x48, 0x34, 0xd4, 0x2f, 0xa9, 0x2c, 0x48, 0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, - 0xc9, 0x17, 0x92, 0x84, 0x2b, 0xd3, 0x83, 0x28, 0xd3, 0x83, 0x29, 0x93, 0x92, 0x4c, 0xcf, 0xcf, - 0x4f, 0xcf, 0x49, 0xd5, 0x07, 0x2b, 0x4c, 0x2a, 0x4d, 0xd3, 0x4f, 0xcc, 0xab, 0x84, 0xe8, 0x52, - 0xe2, 0xe0, 0x62, 0x0b, 0x48, 0x2c, 0x4a, 0xcc, 0x2d, 0x56, 0x62, 0xe7, 0x62, 0x75, 0x4c, 0x4f, - 0xcd, 0x2b, 0x51, 0x9a, 0xc0, 0xc8, 0xc5, 0x11, 0x50, 0x94, 0x5f, 0x90, 0x5f, 0x9c, 0x98, 0x23, - 0x24, 0xc2, 0xc5, 0x9a, 0x08, 0x12, 0x95, 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x09, 0x82, 0x70, 0x84, - 0x4c, 0xb9, 0xb8, 0x0b, 0x8a, 0x52, 0xe3, 0x13, 0x93, 0x4b, 0x32, 0xf3, 0xf3, 0x8a, 0x25, 0x98, - 0x14, 0x98, 0x35, 0xb8, 0x8d, 0x44, 0xf4, 0x20, 0xd6, 0xe8, 0xc1, 0xac, 0xd1, 0x73, 0xcc, 0xab, - 0x0c, 0xe2, 0x2a, 0x28, 0x4a, 0x75, 0x84, 0xa8, 0x13, 0x32, 0xe7, 0xe2, 0x29, 0xc8, 0x2f, 0x2e, - 0x81, 0xeb, 0x63, 0xc6, 0xa3, 0x8f, 0x1b, 0xa4, 0x12, 0xaa, 0xd1, 0xe9, 0x33, 0xe3, 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, 0x70, 0xc9, 0x26, 0xe7, 0xe7, 0xea, 0xe1, 0xf4, 0xba, - 0x13, 0x57, 0x08, 0x28, 0x88, 0x02, 0x40, 0x26, 0x07, 0x30, 0x46, 0x69, 0xe0, 0x0c, 0x4a, 0x6b, - 0x08, 0x1f, 0xc6, 0x5d, 0xc4, 0xc4, 0xec, 0xe8, 0x1a, 0xb1, 0x8a, 0x49, 0xd2, 0x11, 0x6e, 0xb2, - 0x2b, 0xc4, 0xe4, 0x30, 0xa8, 0x8a, 0x53, 0x48, 0x72, 0x31, 0x10, 0xb9, 0x18, 0x98, 0xdc, 0x23, - 0x26, 0x55, 0x9c, 0x72, 0x31, 0xee, 0x01, 0x4e, 0xbe, 0xa9, 0x25, 0x89, 0x29, 0x89, 0x25, 0x89, - 0xaf, 0x98, 0xa4, 0xe1, 0xea, 0xac, 0xac, 0x20, 0x0a, 0xad, 0xac, 0x60, 0x2a, 0x93, 0xd8, 0xc0, - 0x01, 0x62, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x85, 0xa1, 0x02, 0xc9, 0x01, 0x02, 0x00, 0x00, + // 363 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x91, 0xcf, 0x4a, 0xf3, 0x40, + 0x14, 0xc5, 0x3b, 0xe9, 0x9f, 0xaf, 0xdf, 0xb4, 0x1b, 0x63, 0x17, 0x6d, 0xc5, 0x50, 0x0a, 0x85, + 0xac, 0x26, 0x54, 0x11, 0x25, 0xae, 0x52, 0x28, 0x6e, 0x14, 0x42, 0x10, 0x11, 0x29, 0x94, 0xdb, + 0x76, 0x4c, 0x85, 0x24, 0x13, 0x92, 0x51, 0xdb, 0xb7, 0xf0, 0x19, 0x5c, 0x8a, 0x0f, 0x22, 0xae, + 0xba, 0x74, 0x29, 0xe9, 0xce, 0xad, 0x2f, 0x20, 0xc9, 0x74, 0x82, 0x9b, 0xba, 0x3c, 0x39, 0xbf, + 0x73, 0x73, 0xe7, 0x5c, 0xdc, 0x83, 0x60, 0x16, 0x31, 0x9f, 0xce, 0xc0, 0xa0, 0xf1, 0x34, 0x62, + 0x8f, 0xc6, 0x43, 0x1f, 0xbc, 0x70, 0x0e, 0x7d, 0x83, 0x2f, 0x43, 0x1a, 0x93, 0x30, 0x62, 0x9c, + 0xa9, 0xad, 0x1c, 0x23, 0x02, 0x23, 0x12, 0x6b, 0xb7, 0x5c, 0xc6, 0x5c, 0x8f, 0x1a, 0x19, 0x38, + 0xb9, 0xbf, 0x35, 0x20, 0x58, 0x8a, 0x54, 0xf7, 0x04, 0x57, 0x6c, 0x88, 0xc0, 0x8f, 0x55, 0x82, + 0x77, 0x7d, 0x58, 0x8c, 0x7d, 0xca, 0x61, 0x06, 0x1c, 0xc6, 0x1e, 0x0d, 0x5c, 0x3e, 0x6f, 0xa2, + 0x0e, 0xd2, 0x4b, 0xce, 0x8e, 0x0f, 0x8b, 0x8b, 0x8d, 0x73, 0x9e, 0x19, 0xdd, 0x7f, 0xb8, 0x6c, + 0xb9, 0x34, 0xe0, 0xdd, 0x57, 0x84, 0xab, 0x76, 0xc4, 0x42, 0x16, 0x83, 0xa7, 0x36, 0x70, 0x19, + 0xd2, 0xaf, 0x59, 0xae, 0xee, 0x08, 0xa1, 0x1e, 0xe1, 0x5a, 0x18, 0xd1, 0x31, 0x4c, 0xf9, 0x1d, + 0x0b, 0xe2, 0xa6, 0xd2, 0x29, 0xea, 0xb5, 0x83, 0x06, 0x11, 0x6b, 0x11, 0xb9, 0x16, 0xb1, 0x82, + 0xa5, 0x83, 0xc3, 0x88, 0x5a, 0x82, 0x53, 0x8f, 0x71, 0x3d, 0x64, 0x31, 0xcf, 0x73, 0xc5, 0x3f, + 0x72, 0xb5, 0x94, 0x94, 0xc1, 0x36, 0xae, 0xca, 0x77, 0x34, 0x4b, 0x1d, 0xa4, 0xff, 0x77, 0x72, + 0x3d, 0xf8, 0x46, 0x6f, 0x89, 0x86, 0x56, 0x89, 0x86, 0x3e, 0x13, 0x0d, 0x3d, 0xad, 0xb5, 0xc2, + 0x6a, 0xad, 0x15, 0x3e, 0xd6, 0x5a, 0x01, 0xef, 0x4f, 0x99, 0x4f, 0xb6, 0xd6, 0x38, 0xc0, 0x97, + 0x69, 0xdd, 0x76, 0xfa, 0x57, 0x1b, 0xdd, 0xe8, 0x5b, 0xcf, 0x72, 0x2a, 0xb4, 0x94, 0xcf, 0x4a, + 0xd1, 0x1a, 0x5e, 0xbf, 0x28, 0x2d, 0x2b, 0x9f, 0x3c, 0x14, 0x93, 0xaf, 0x36, 0xc4, 0xfb, 0x2f, + 0x6f, 0x24, 0xbc, 0x91, 0xf4, 0x12, 0xa5, 0xb7, 0xd5, 0x1b, 0x9d, 0xd9, 0x03, 0x79, 0x95, 0x2f, + 0x65, 0x2f, 0xe7, 0x4c, 0x53, 0x80, 0xa6, 0x29, 0xc9, 0x49, 0x25, 0x2b, 0xeb, 0xf0, 0x27, 0x00, + 0x00, 0xff, 0xff, 0x06, 0xd9, 0xcc, 0xfc, 0x4d, 0x02, 0x00, 0x00, } func (m *Params) Marshal() (dAtA []byte, err error) { @@ -215,6 +236,11 @@ func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if m.MaxMetadataLength != 0 { + i = encodeVarintTypes(dAtA, i, uint64(m.MaxMetadataLength)) + i-- + dAtA[i] = 0x8 + } return len(dAtA) - i, nil } @@ -261,6 +287,13 @@ func (m *Proposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if len(m.Metadata) > 0 { + i -= len(m.Metadata) + copy(dAtA[i:], m.Metadata) + i = encodeVarintTypes(dAtA, i, uint64(len(m.Metadata))) + i-- + dAtA[i] = 0x22 + } if len(m.PostActions) > 0 { for iNdEx := len(m.PostActions) - 1; iNdEx >= 0; iNdEx-- { { @@ -316,6 +349,9 @@ func (m *Params) Size() (n int) { } var l int _ = l + if m.MaxMetadataLength != 0 { + n += 1 + sovTypes(uint64(m.MaxMetadataLength)) + } return n } @@ -350,6 +386,10 @@ func (m *Proposal) Size() (n int) { n += 1 + l + sovTypes(uint64(l)) } } + l = len(m.Metadata) + if l > 0 { + n += 1 + l + sovTypes(uint64(l)) + } return n } @@ -388,6 +428,25 @@ func (m *Params) Unmarshal(dAtA []byte) error { 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 MaxMetadataLength", wireType) + } + m.MaxMetadataLength = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTypes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MaxMetadataLength |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipTypes(dAtA[iNdEx:]) @@ -590,6 +649,38 @@ func (m *Proposal) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTypes + } + 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 ErrInvalidLengthTypes + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTypes + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Metadata = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipTypes(dAtA[iNdEx:]) diff --git a/x/escrow/api/andromeda/escrow/v1alpha1/event.pulsar.go b/x/escrow/api/andromeda/escrow/v1alpha1/event.pulsar.go index 318042b..6acf815 100644 --- a/x/escrow/api/andromeda/escrow/v1alpha1/event.pulsar.go +++ b/x/escrow/api/andromeda/escrow/v1alpha1/event.pulsar.go @@ -15,12 +15,16 @@ import ( ) var ( - md_EventUpdateParams protoreflect.MessageDescriptor + md_EventUpdateParams protoreflect.MessageDescriptor + fd_EventUpdateParams_authority protoreflect.FieldDescriptor + fd_EventUpdateParams_max_metadata_length protoreflect.FieldDescriptor ) func init() { file_andromeda_escrow_v1alpha1_event_proto_init() md_EventUpdateParams = File_andromeda_escrow_v1alpha1_event_proto.Messages().ByName("EventUpdateParams") + fd_EventUpdateParams_authority = md_EventUpdateParams.Fields().ByName("authority") + fd_EventUpdateParams_max_metadata_length = md_EventUpdateParams.Fields().ByName("max_metadata_length") } var _ protoreflect.Message = (*fastReflection_EventUpdateParams)(nil) @@ -88,6 +92,18 @@ func (x *fastReflection_EventUpdateParams) Interface() protoreflect.ProtoMessage // While iterating, mutating operations may only be performed // on the current field descriptor. func (x *fastReflection_EventUpdateParams) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Authority != "" { + value := protoreflect.ValueOfString(x.Authority) + if !f(fd_EventUpdateParams_authority, value) { + return + } + } + if x.MaxMetadataLength != uint64(0) { + value := protoreflect.ValueOfUint64(x.MaxMetadataLength) + if !f(fd_EventUpdateParams_max_metadata_length, value) { + return + } + } } // Has reports whether a field is populated. @@ -103,6 +119,10 @@ func (x *fastReflection_EventUpdateParams) Range(f func(protoreflect.FieldDescri // a repeated field is populated if it is non-empty. func (x *fastReflection_EventUpdateParams) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { + case "andromeda.escrow.v1alpha1.EventUpdateParams.authority": + return x.Authority != "" + case "andromeda.escrow.v1alpha1.EventUpdateParams.max_metadata_length": + return x.MaxMetadataLength != uint64(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.EventUpdateParams")) @@ -119,6 +139,10 @@ func (x *fastReflection_EventUpdateParams) Has(fd protoreflect.FieldDescriptor) // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_EventUpdateParams) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { + case "andromeda.escrow.v1alpha1.EventUpdateParams.authority": + x.Authority = "" + case "andromeda.escrow.v1alpha1.EventUpdateParams.max_metadata_length": + x.MaxMetadataLength = uint64(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.EventUpdateParams")) @@ -135,6 +159,12 @@ func (x *fastReflection_EventUpdateParams) Clear(fd protoreflect.FieldDescriptor // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_EventUpdateParams) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { + case "andromeda.escrow.v1alpha1.EventUpdateParams.authority": + value := x.Authority + return protoreflect.ValueOfString(value) + case "andromeda.escrow.v1alpha1.EventUpdateParams.max_metadata_length": + value := x.MaxMetadataLength + return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.EventUpdateParams")) @@ -155,6 +185,10 @@ func (x *fastReflection_EventUpdateParams) Get(descriptor protoreflect.FieldDesc // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_EventUpdateParams) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { + case "andromeda.escrow.v1alpha1.EventUpdateParams.authority": + x.Authority = value.Interface().(string) + case "andromeda.escrow.v1alpha1.EventUpdateParams.max_metadata_length": + x.MaxMetadataLength = value.Uint() default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.EventUpdateParams")) @@ -175,6 +209,10 @@ func (x *fastReflection_EventUpdateParams) Set(fd protoreflect.FieldDescriptor, // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_EventUpdateParams) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { + case "andromeda.escrow.v1alpha1.EventUpdateParams.authority": + panic(fmt.Errorf("field authority of message andromeda.escrow.v1alpha1.EventUpdateParams is not mutable")) + case "andromeda.escrow.v1alpha1.EventUpdateParams.max_metadata_length": + panic(fmt.Errorf("field max_metadata_length of message andromeda.escrow.v1alpha1.EventUpdateParams is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.EventUpdateParams")) @@ -188,6 +226,10 @@ func (x *fastReflection_EventUpdateParams) Mutable(fd protoreflect.FieldDescript // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_EventUpdateParams) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { + case "andromeda.escrow.v1alpha1.EventUpdateParams.authority": + return protoreflect.ValueOfString("") + case "andromeda.escrow.v1alpha1.EventUpdateParams.max_metadata_length": + return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.EventUpdateParams")) @@ -257,6 +299,13 @@ func (x *fastReflection_EventUpdateParams) ProtoMethods() *protoiface.Methods { var n int var l int _ = l + l = len(x.Authority) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.MaxMetadataLength != 0 { + n += 1 + runtime.Sov(uint64(x.MaxMetadataLength)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -286,6 +335,18 @@ func (x *fastReflection_EventUpdateParams) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if x.MaxMetadataLength != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.MaxMetadataLength)) + i-- + dAtA[i] = 0x10 + } + if len(x.Authority) > 0 { + i -= len(x.Authority) + copy(dAtA[i:], x.Authority) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority))) + i-- + dAtA[i] = 0xa + } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) } else { @@ -335,6 +396,57 @@ func (x *fastReflection_EventUpdateParams) ProtoMethods() *protoiface.Methods { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventUpdateParams: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Authority = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MaxMetadataLength", wireType) + } + x.MaxMetadataLength = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.MaxMetadataLength |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -963,6 +1075,7 @@ var ( fd_EventSubmitProposal_agent protoreflect.FieldDescriptor fd_EventSubmitProposal_pre_actions protoreflect.FieldDescriptor fd_EventSubmitProposal_post_actions protoreflect.FieldDescriptor + fd_EventSubmitProposal_metadata protoreflect.FieldDescriptor ) func init() { @@ -973,6 +1086,7 @@ func init() { fd_EventSubmitProposal_agent = md_EventSubmitProposal.Fields().ByName("agent") fd_EventSubmitProposal_pre_actions = md_EventSubmitProposal.Fields().ByName("pre_actions") fd_EventSubmitProposal_post_actions = md_EventSubmitProposal.Fields().ByName("post_actions") + fd_EventSubmitProposal_metadata = md_EventSubmitProposal.Fields().ByName("metadata") } var _ protoreflect.Message = (*fastReflection_EventSubmitProposal)(nil) @@ -1070,6 +1184,12 @@ func (x *fastReflection_EventSubmitProposal) Range(f func(protoreflect.FieldDesc return } } + if x.Metadata != "" { + value := protoreflect.ValueOfString(x.Metadata) + if !f(fd_EventSubmitProposal_metadata, value) { + return + } + } } // Has reports whether a field is populated. @@ -1095,6 +1215,8 @@ func (x *fastReflection_EventSubmitProposal) Has(fd protoreflect.FieldDescriptor return len(x.PreActions) != 0 case "andromeda.escrow.v1alpha1.EventSubmitProposal.post_actions": return len(x.PostActions) != 0 + case "andromeda.escrow.v1alpha1.EventSubmitProposal.metadata": + return x.Metadata != "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.EventSubmitProposal")) @@ -1121,6 +1243,8 @@ func (x *fastReflection_EventSubmitProposal) Clear(fd protoreflect.FieldDescript x.PreActions = nil case "andromeda.escrow.v1alpha1.EventSubmitProposal.post_actions": x.PostActions = nil + case "andromeda.escrow.v1alpha1.EventSubmitProposal.metadata": + x.Metadata = "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.EventSubmitProposal")) @@ -1158,6 +1282,9 @@ func (x *fastReflection_EventSubmitProposal) Get(descriptor protoreflect.FieldDe } listValue := &_EventSubmitProposal_5_list{list: &x.PostActions} return protoreflect.ValueOfList(listValue) + case "andromeda.escrow.v1alpha1.EventSubmitProposal.metadata": + value := x.Metadata + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.EventSubmitProposal")) @@ -1192,6 +1319,8 @@ func (x *fastReflection_EventSubmitProposal) Set(fd protoreflect.FieldDescriptor lv := value.List() clv := lv.(*_EventSubmitProposal_5_list) x.PostActions = *clv.list + case "andromeda.escrow.v1alpha1.EventSubmitProposal.metadata": + x.Metadata = value.Interface().(string) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.EventSubmitProposal")) @@ -1230,6 +1359,8 @@ func (x *fastReflection_EventSubmitProposal) Mutable(fd protoreflect.FieldDescri panic(fmt.Errorf("field proposer of message andromeda.escrow.v1alpha1.EventSubmitProposal is not mutable")) case "andromeda.escrow.v1alpha1.EventSubmitProposal.agent": panic(fmt.Errorf("field agent of message andromeda.escrow.v1alpha1.EventSubmitProposal is not mutable")) + case "andromeda.escrow.v1alpha1.EventSubmitProposal.metadata": + panic(fmt.Errorf("field metadata of message andromeda.escrow.v1alpha1.EventSubmitProposal is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.EventSubmitProposal")) @@ -1255,6 +1386,8 @@ func (x *fastReflection_EventSubmitProposal) NewField(fd protoreflect.FieldDescr case "andromeda.escrow.v1alpha1.EventSubmitProposal.post_actions": list := []*anypb.Any{} return protoreflect.ValueOfList(&_EventSubmitProposal_5_list{list: &list}) + case "andromeda.escrow.v1alpha1.EventSubmitProposal.metadata": + return protoreflect.ValueOfString("") default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.EventSubmitProposal")) @@ -1347,6 +1480,10 @@ func (x *fastReflection_EventSubmitProposal) ProtoMethods() *protoiface.Methods n += 1 + l + runtime.Sov(uint64(l)) } } + l = len(x.Metadata) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -1376,6 +1513,13 @@ func (x *fastReflection_EventSubmitProposal) ProtoMethods() *protoiface.Methods i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if len(x.Metadata) > 0 { + i -= len(x.Metadata) + copy(dAtA[i:], x.Metadata) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Metadata))) + i-- + dAtA[i] = 0x32 + } if len(x.PostActions) > 0 { for iNdEx := len(x.PostActions) - 1; iNdEx >= 0; iNdEx-- { encoded, err := options.Marshal(x.PostActions[iNdEx]) @@ -1627,6 +1771,38 @@ func (x *fastReflection_EventSubmitProposal) ProtoMethods() *protoiface.Methods return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex + case 6: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Metadata = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -2286,6 +2462,11 @@ type EventUpdateParams struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + + // the address of the module authority + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // the maximum length allowed for metadata + MaxMetadataLength uint64 `protobuf:"varint,2,opt,name=max_metadata_length,json=maxMetadataLength,proto3" json:"max_metadata_length,omitempty"` } func (x *EventUpdateParams) Reset() { @@ -2308,6 +2489,20 @@ func (*EventUpdateParams) Descriptor() ([]byte, []int) { return file_andromeda_escrow_v1alpha1_event_proto_rawDescGZIP(), []int{0} } +func (x *EventUpdateParams) GetAuthority() string { + if x != nil { + return x.Authority + } + return "" +} + +func (x *EventUpdateParams) GetMaxMetadataLength() uint64 { + if x != nil { + return x.MaxMetadataLength + } + return 0 +} + // EventCreateAgent is emitted on Msg/CreateAgent. type EventCreateAgent struct { state protoimpl.MessageState @@ -2370,6 +2565,8 @@ type EventSubmitProposal struct { PreActions []*anypb.Any `protobuf:"bytes,4,rep,name=pre_actions,json=preActions,proto3" json:"pre_actions,omitempty"` // the messages which will be executed after the actions included in Msg/Exec PostActions []*anypb.Any `protobuf:"bytes,5,rep,name=post_actions,json=postActions,proto3" json:"post_actions,omitempty"` + // any arbitrary metadata attached to the proposal + Metadata string `protobuf:"bytes,6,opt,name=metadata,proto3" json:"metadata,omitempty"` } func (x *EventSubmitProposal) Reset() { @@ -2427,6 +2624,13 @@ func (x *EventSubmitProposal) GetPostActions() []*anypb.Any { return nil } +func (x *EventSubmitProposal) GetMetadata() string { + if x != nil { + return x.Metadata + } + return "" +} + // EventExec is emitted on Msg/Exec. type EventExec struct { state protoimpl.MessageState @@ -2492,55 +2696,64 @@ var file_andromeda_escrow_v1alpha1_event_proto_rawDesc = []byte{ 0x61, 0x31, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, - 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x13, 0x0a, 0x11, 0x45, 0x76, 0x65, 0x6e, - 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x76, 0x0a, - 0x10, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x67, 0x65, 0x6e, - 0x74, 0x12, 0x2e, 0x0a, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x7b, 0x0a, 0x11, 0x45, 0x76, 0x65, 0x6e, + 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x36, 0x0a, + 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x05, 0x61, 0x67, 0x65, 0x6e, - 0x74, 0x12, 0x32, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x63, 0x72, - 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0xfb, 0x01, 0x0a, 0x13, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x53, - 0x75, 0x62, 0x6d, 0x69, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x0e, 0x0a, - 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x34, 0x0a, - 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, - 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, - 0x73, 0x65, 0x72, 0x12, 0x2e, 0x0a, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x05, 0x61, 0x67, - 0x65, 0x6e, 0x74, 0x12, 0x35, 0x0a, 0x0b, 0x70, 0x72, 0x65, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0a, - 0x70, 0x72, 0x65, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x37, 0x0a, 0x0c, 0x70, 0x6f, - 0x73, 0x74, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, + 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, + 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x2e, 0x0a, 0x13, 0x6d, 0x61, 0x78, 0x5f, 0x6d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x04, 0x52, 0x11, 0x6d, 0x61, 0x78, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x4c, + 0x65, 0x6e, 0x67, 0x74, 0x68, 0x22, 0x76, 0x0a, 0x10, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x2e, 0x0a, 0x05, 0x61, 0x67, 0x65, + 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, + 0x6e, 0x67, 0x52, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x32, 0x0a, 0x07, 0x63, 0x72, 0x65, + 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, + 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x97, 0x02, + 0x0a, 0x13, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x50, 0x72, 0x6f, + 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x34, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, + 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, + 0x67, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x12, 0x2e, 0x0a, 0x05, 0x61, + 0x67, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, + 0x72, 0x69, 0x6e, 0x67, 0x52, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x35, 0x0a, 0x0b, 0x70, + 0x72, 0x65, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, 0x70, 0x6f, 0x73, 0x74, 0x41, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x22, 0x8d, 0x01, 0x0a, 0x09, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x45, 0x78, 0x65, - 0x63, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x34, 0x0a, - 0x08, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, - 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x65, 0x78, 0x65, 0x63, 0x75, - 0x74, 0x6f, 0x72, 0x12, 0x2e, 0x0a, 0x07, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x07, 0x61, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x42, 0xdf, 0x01, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x6e, 0x64, 0x72, - 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, - 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x0a, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x74, - 0x6f, 0x50, 0x01, 0x5a, 0x2c, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, - 0x64, 0x61, 0x2f, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, - 0x61, 0x31, 0x3b, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, - 0x31, 0xa2, 0x02, 0x03, 0x41, 0x45, 0x58, 0xaa, 0x02, 0x19, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, - 0x65, 0x64, 0x61, 0x2e, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x56, 0x31, 0x61, 0x6c, 0x70, - 0x68, 0x61, 0x31, 0xca, 0x02, 0x19, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x5c, - 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xe2, - 0x02, 0x25, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x5c, 0x45, 0x73, 0x63, 0x72, - 0x6f, 0x77, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1b, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, - 0x65, 0x64, 0x61, 0x3a, 0x3a, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x3a, 0x3a, 0x56, 0x31, 0x61, - 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0a, 0x70, 0x72, 0x65, 0x41, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x12, 0x37, 0x0a, 0x0c, 0x70, 0x6f, 0x73, 0x74, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, + 0x70, 0x6f, 0x73, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x6d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0x8d, 0x01, 0x0a, 0x09, 0x45, 0x76, 0x65, 0x6e, + 0x74, 0x45, 0x78, 0x65, 0x63, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, + 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, + 0x6c, 0x12, 0x34, 0x0a, 0x08, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, + 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x65, + 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x12, 0x2e, 0x0a, 0x07, 0x61, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x07, + 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0xdf, 0x01, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x2e, + 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x0a, 0x45, 0x76, 0x65, 0x6e, 0x74, + 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2c, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x64, + 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2f, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x3b, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x45, 0x58, 0xaa, 0x02, 0x19, 0x41, 0x6e, + 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x56, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xca, 0x02, 0x19, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, + 0x65, 0x64, 0x61, 0x5c, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0xe2, 0x02, 0x25, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x5c, + 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x5c, + 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1b, 0x41, 0x6e, + 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x3a, 0x3a, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x3a, + 0x3a, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, } var ( diff --git a/x/escrow/api/andromeda/escrow/v1alpha1/genesis.pulsar.go b/x/escrow/api/andromeda/escrow/v1alpha1/genesis.pulsar.go index 076ab78..8d341ff 100644 --- a/x/escrow/api/andromeda/escrow/v1alpha1/genesis.pulsar.go +++ b/x/escrow/api/andromeda/escrow/v1alpha1/genesis.pulsar.go @@ -822,12 +822,14 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { } var ( - md_GenesisState_Params protoreflect.MessageDescriptor + md_GenesisState_Params protoreflect.MessageDescriptor + fd_GenesisState_Params_max_metadata_length protoreflect.FieldDescriptor ) func init() { file_andromeda_escrow_v1alpha1_genesis_proto_init() md_GenesisState_Params = File_andromeda_escrow_v1alpha1_genesis_proto.Messages().ByName("GenesisState").Messages().ByName("Params") + fd_GenesisState_Params_max_metadata_length = md_GenesisState_Params.Fields().ByName("max_metadata_length") } var _ protoreflect.Message = (*fastReflection_GenesisState_Params)(nil) @@ -895,6 +897,12 @@ func (x *fastReflection_GenesisState_Params) Interface() protoreflect.ProtoMessa // While iterating, mutating operations may only be performed // on the current field descriptor. func (x *fastReflection_GenesisState_Params) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.MaxMetadataLength != uint64(0) { + value := protoreflect.ValueOfUint64(x.MaxMetadataLength) + if !f(fd_GenesisState_Params_max_metadata_length, value) { + return + } + } } // Has reports whether a field is populated. @@ -910,6 +918,8 @@ func (x *fastReflection_GenesisState_Params) Range(f func(protoreflect.FieldDesc // a repeated field is populated if it is non-empty. func (x *fastReflection_GenesisState_Params) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { + case "andromeda.escrow.v1alpha1.GenesisState.Params.max_metadata_length": + return x.MaxMetadataLength != uint64(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.GenesisState.Params")) @@ -926,6 +936,8 @@ func (x *fastReflection_GenesisState_Params) Has(fd protoreflect.FieldDescriptor // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_GenesisState_Params) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { + case "andromeda.escrow.v1alpha1.GenesisState.Params.max_metadata_length": + x.MaxMetadataLength = uint64(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.GenesisState.Params")) @@ -942,6 +954,9 @@ func (x *fastReflection_GenesisState_Params) Clear(fd protoreflect.FieldDescript // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_GenesisState_Params) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { + case "andromeda.escrow.v1alpha1.GenesisState.Params.max_metadata_length": + value := x.MaxMetadataLength + return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.GenesisState.Params")) @@ -962,6 +977,8 @@ func (x *fastReflection_GenesisState_Params) Get(descriptor protoreflect.FieldDe // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_GenesisState_Params) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { + case "andromeda.escrow.v1alpha1.GenesisState.Params.max_metadata_length": + x.MaxMetadataLength = value.Uint() default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.GenesisState.Params")) @@ -982,6 +999,8 @@ func (x *fastReflection_GenesisState_Params) Set(fd protoreflect.FieldDescriptor // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_GenesisState_Params) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { + case "andromeda.escrow.v1alpha1.GenesisState.Params.max_metadata_length": + panic(fmt.Errorf("field max_metadata_length of message andromeda.escrow.v1alpha1.GenesisState.Params is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.GenesisState.Params")) @@ -995,6 +1014,8 @@ func (x *fastReflection_GenesisState_Params) Mutable(fd protoreflect.FieldDescri // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_GenesisState_Params) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { + case "andromeda.escrow.v1alpha1.GenesisState.Params.max_metadata_length": + return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.GenesisState.Params")) @@ -1064,6 +1085,9 @@ func (x *fastReflection_GenesisState_Params) ProtoMethods() *protoiface.Methods var n int var l int _ = l + if x.MaxMetadataLength != 0 { + n += 1 + runtime.Sov(uint64(x.MaxMetadataLength)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -1093,6 +1117,11 @@ func (x *fastReflection_GenesisState_Params) ProtoMethods() *protoiface.Methods i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if x.MaxMetadataLength != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.MaxMetadataLength)) + i-- + dAtA[i] = 0x8 + } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) } else { @@ -1142,6 +1171,25 @@ func (x *fastReflection_GenesisState_Params) ProtoMethods() *protoiface.Methods return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GenesisState_Params: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MaxMetadataLength", wireType) + } + x.MaxMetadataLength = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.MaxMetadataLength |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -1770,6 +1818,7 @@ var ( fd_GenesisState_Proposal_agent protoreflect.FieldDescriptor fd_GenesisState_Proposal_pre_actions protoreflect.FieldDescriptor fd_GenesisState_Proposal_post_actions protoreflect.FieldDescriptor + fd_GenesisState_Proposal_metadata protoreflect.FieldDescriptor ) func init() { @@ -1780,6 +1829,7 @@ func init() { fd_GenesisState_Proposal_agent = md_GenesisState_Proposal.Fields().ByName("agent") fd_GenesisState_Proposal_pre_actions = md_GenesisState_Proposal.Fields().ByName("pre_actions") fd_GenesisState_Proposal_post_actions = md_GenesisState_Proposal.Fields().ByName("post_actions") + fd_GenesisState_Proposal_metadata = md_GenesisState_Proposal.Fields().ByName("metadata") } var _ protoreflect.Message = (*fastReflection_GenesisState_Proposal)(nil) @@ -1877,6 +1927,12 @@ func (x *fastReflection_GenesisState_Proposal) Range(f func(protoreflect.FieldDe return } } + if x.Metadata != "" { + value := protoreflect.ValueOfString(x.Metadata) + if !f(fd_GenesisState_Proposal_metadata, value) { + return + } + } } // Has reports whether a field is populated. @@ -1902,6 +1958,8 @@ func (x *fastReflection_GenesisState_Proposal) Has(fd protoreflect.FieldDescript return len(x.PreActions) != 0 case "andromeda.escrow.v1alpha1.GenesisState.Proposal.post_actions": return len(x.PostActions) != 0 + case "andromeda.escrow.v1alpha1.GenesisState.Proposal.metadata": + return x.Metadata != "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.GenesisState.Proposal")) @@ -1928,6 +1986,8 @@ func (x *fastReflection_GenesisState_Proposal) Clear(fd protoreflect.FieldDescri x.PreActions = nil case "andromeda.escrow.v1alpha1.GenesisState.Proposal.post_actions": x.PostActions = nil + case "andromeda.escrow.v1alpha1.GenesisState.Proposal.metadata": + x.Metadata = "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.GenesisState.Proposal")) @@ -1965,6 +2025,9 @@ func (x *fastReflection_GenesisState_Proposal) Get(descriptor protoreflect.Field } listValue := &_GenesisState_Proposal_5_list{list: &x.PostActions} return protoreflect.ValueOfList(listValue) + case "andromeda.escrow.v1alpha1.GenesisState.Proposal.metadata": + value := x.Metadata + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.GenesisState.Proposal")) @@ -1999,6 +2062,8 @@ func (x *fastReflection_GenesisState_Proposal) Set(fd protoreflect.FieldDescript lv := value.List() clv := lv.(*_GenesisState_Proposal_5_list) x.PostActions = *clv.list + case "andromeda.escrow.v1alpha1.GenesisState.Proposal.metadata": + x.Metadata = value.Interface().(string) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.GenesisState.Proposal")) @@ -2037,6 +2102,8 @@ func (x *fastReflection_GenesisState_Proposal) Mutable(fd protoreflect.FieldDesc panic(fmt.Errorf("field proposer of message andromeda.escrow.v1alpha1.GenesisState.Proposal is not mutable")) case "andromeda.escrow.v1alpha1.GenesisState.Proposal.agent": panic(fmt.Errorf("field agent of message andromeda.escrow.v1alpha1.GenesisState.Proposal is not mutable")) + case "andromeda.escrow.v1alpha1.GenesisState.Proposal.metadata": + panic(fmt.Errorf("field metadata of message andromeda.escrow.v1alpha1.GenesisState.Proposal is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.GenesisState.Proposal")) @@ -2062,6 +2129,8 @@ func (x *fastReflection_GenesisState_Proposal) NewField(fd protoreflect.FieldDes case "andromeda.escrow.v1alpha1.GenesisState.Proposal.post_actions": list := []*anypb.Any{} return protoreflect.ValueOfList(&_GenesisState_Proposal_5_list{list: &list}) + case "andromeda.escrow.v1alpha1.GenesisState.Proposal.metadata": + return protoreflect.ValueOfString("") default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.GenesisState.Proposal")) @@ -2154,6 +2223,10 @@ func (x *fastReflection_GenesisState_Proposal) ProtoMethods() *protoiface.Method n += 1 + l + runtime.Sov(uint64(l)) } } + l = len(x.Metadata) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -2183,6 +2256,13 @@ func (x *fastReflection_GenesisState_Proposal) ProtoMethods() *protoiface.Method i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if len(x.Metadata) > 0 { + i -= len(x.Metadata) + copy(dAtA[i:], x.Metadata) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Metadata))) + i-- + dAtA[i] = 0x32 + } if len(x.PostActions) > 0 { for iNdEx := len(x.PostActions) - 1; iNdEx >= 0; iNdEx-- { encoded, err := options.Marshal(x.PostActions[iNdEx]) @@ -2434,6 +2514,38 @@ func (x *fastReflection_GenesisState_Proposal) ProtoMethods() *protoiface.Method return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex + case 6: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Metadata = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -2560,6 +2672,9 @@ type GenesisState_Params struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + + // the maximum length allowed for metadata + MaxMetadataLength uint64 `protobuf:"varint,1,opt,name=max_metadata_length,json=maxMetadataLength,proto3" json:"max_metadata_length,omitempty"` } func (x *GenesisState_Params) Reset() { @@ -2582,6 +2697,13 @@ func (*GenesisState_Params) Descriptor() ([]byte, []int) { return file_andromeda_escrow_v1alpha1_genesis_proto_rawDescGZIP(), []int{0, 0} } +func (x *GenesisState_Params) GetMaxMetadataLength() uint64 { + if x != nil { + return x.MaxMetadataLength + } + return 0 +} + // Agent defines an account taking charge of a proposal. type GenesisState_Agent struct { state protoimpl.MessageState @@ -2644,6 +2766,8 @@ type GenesisState_Proposal struct { PreActions []*anypb.Any `protobuf:"bytes,4,rep,name=pre_actions,json=preActions,proto3" json:"pre_actions,omitempty"` // the messages which will be executed after the actions included in Msg/Exec PostActions []*anypb.Any `protobuf:"bytes,5,rep,name=post_actions,json=postActions,proto3" json:"post_actions,omitempty"` + // any arbitrary metadata attached to the proposal + Metadata string `protobuf:"bytes,6,opt,name=metadata,proto3" json:"metadata,omitempty"` } func (x *GenesisState_Proposal) Reset() { @@ -2701,6 +2825,13 @@ func (x *GenesisState_Proposal) GetPostActions() []*anypb.Any { return nil } +func (x *GenesisState_Proposal) GetMetadata() string { + if x != nil { + return x.Metadata + } + return "" +} + var File_andromeda_escrow_v1alpha1_genesis_proto protoreflect.FileDescriptor var file_andromeda_escrow_v1alpha1_genesis_proto_rawDesc = []byte{ @@ -2711,7 +2842,7 @@ var file_andromeda_escrow_v1alpha1_genesis_proto_rawDesc = []byte{ 0x70, 0x68, 0x61, 0x31, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x9f, 0x05, 0x0a, 0x0c, 0x47, + 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xeb, 0x05, 0x0a, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x46, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, @@ -2730,15 +2861,18 @@ var file_andromeda_escrow_v1alpha1_genesis_proto_rawDesc = []byte{ 0x0b, 0x32, 0x30, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x6f, - 0x73, 0x61, 0x6c, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x1a, 0x08, - 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x1a, 0x6f, 0x0a, 0x05, 0x41, 0x67, 0x65, 0x6e, + 0x73, 0x61, 0x6c, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x1a, 0x38, + 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x2e, 0x0a, 0x13, 0x6d, 0x61, 0x78, 0x5f, + 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x11, 0x6d, 0x61, 0x78, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0x4c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x1a, 0x6f, 0x0a, 0x05, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x32, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x32, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, - 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x1a, 0xf0, 0x01, 0x0a, 0x08, 0x50, 0x72, + 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x1a, 0x8c, 0x02, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x34, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, @@ -2753,22 +2887,24 @@ var file_andromeda_escrow_v1alpha1_genesis_proto_rawDesc = []byte{ 0x6f, 0x6e, 0x73, 0x12, 0x37, 0x0a, 0x0c, 0x70, 0x6f, 0x73, 0x74, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, - 0x0b, 0x70, 0x6f, 0x73, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0xe1, 0x01, 0x0a, - 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, - 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x0c, - 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2c, - 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x65, 0x73, - 0x63, 0x72, 0x6f, 0x77, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x3b, 0x65, 0x73, - 0x63, 0x72, 0x6f, 0x77, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x41, - 0x45, 0x58, 0xaa, 0x02, 0x19, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x45, - 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xca, 0x02, - 0x19, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x5c, 0x45, 0x73, 0x63, 0x72, 0x6f, - 0x77, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xe2, 0x02, 0x25, 0x41, 0x6e, 0x64, + 0x0b, 0x70, 0x6f, 0x73, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1a, 0x0a, 0x08, + 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x42, 0xe1, 0x01, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, + 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, + 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x0c, 0x47, 0x65, 0x6e, 0x65, + 0x73, 0x69, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2c, 0x61, 0x70, 0x69, 0x2f, + 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, + 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x3b, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x45, 0x58, 0xaa, 0x02, + 0x19, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x45, 0x73, 0x63, 0x72, 0x6f, + 0x77, 0x2e, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xca, 0x02, 0x19, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x5c, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x5c, 0x56, 0x31, - 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, - 0x74, 0x61, 0xea, 0x02, 0x1b, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x3a, 0x3a, - 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x3a, 0x3a, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xe2, 0x02, 0x25, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, + 0x64, 0x61, 0x5c, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, + 0x1b, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x3a, 0x3a, 0x45, 0x73, 0x63, 0x72, + 0x6f, 0x77, 0x3a, 0x3a, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/x/escrow/api/andromeda/escrow/v1alpha1/query.pulsar.go b/x/escrow/api/andromeda/escrow/v1alpha1/query.pulsar.go index deab11d..c91d0d2 100644 --- a/x/escrow/api/andromeda/escrow/v1alpha1/query.pulsar.go +++ b/x/escrow/api/andromeda/escrow/v1alpha1/query.pulsar.go @@ -373,14 +373,14 @@ func (x *fastReflection_QueryParamsRequest) ProtoMethods() *protoiface.Methods { } var ( - md_QueryParamsResponse protoreflect.MessageDescriptor - fd_QueryParamsResponse_params protoreflect.FieldDescriptor + md_QueryParamsResponse protoreflect.MessageDescriptor + fd_QueryParamsResponse_max_metadata_length protoreflect.FieldDescriptor ) func init() { file_andromeda_escrow_v1alpha1_query_proto_init() md_QueryParamsResponse = File_andromeda_escrow_v1alpha1_query_proto.Messages().ByName("QueryParamsResponse") - fd_QueryParamsResponse_params = md_QueryParamsResponse.Fields().ByName("params") + fd_QueryParamsResponse_max_metadata_length = md_QueryParamsResponse.Fields().ByName("max_metadata_length") } var _ protoreflect.Message = (*fastReflection_QueryParamsResponse)(nil) @@ -448,9 +448,9 @@ func (x *fastReflection_QueryParamsResponse) Interface() protoreflect.ProtoMessa // While iterating, mutating operations may only be performed // on the current field descriptor. func (x *fastReflection_QueryParamsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Params != nil { - value := protoreflect.ValueOfMessage(x.Params.ProtoReflect()) - if !f(fd_QueryParamsResponse_params, value) { + if x.MaxMetadataLength != uint64(0) { + value := protoreflect.ValueOfUint64(x.MaxMetadataLength) + if !f(fd_QueryParamsResponse_max_metadata_length, value) { return } } @@ -469,8 +469,8 @@ func (x *fastReflection_QueryParamsResponse) Range(f func(protoreflect.FieldDesc // a repeated field is populated if it is non-empty. func (x *fastReflection_QueryParamsResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.QueryParamsResponse.params": - return x.Params != nil + case "andromeda.escrow.v1alpha1.QueryParamsResponse.max_metadata_length": + return x.MaxMetadataLength != uint64(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryParamsResponse")) @@ -487,8 +487,8 @@ func (x *fastReflection_QueryParamsResponse) Has(fd protoreflect.FieldDescriptor // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryParamsResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.QueryParamsResponse.params": - x.Params = nil + case "andromeda.escrow.v1alpha1.QueryParamsResponse.max_metadata_length": + x.MaxMetadataLength = uint64(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryParamsResponse")) @@ -505,9 +505,9 @@ func (x *fastReflection_QueryParamsResponse) Clear(fd protoreflect.FieldDescript // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_QueryParamsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "andromeda.escrow.v1alpha1.QueryParamsResponse.params": - value := x.Params - return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "andromeda.escrow.v1alpha1.QueryParamsResponse.max_metadata_length": + value := x.MaxMetadataLength + return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryParamsResponse")) @@ -528,8 +528,8 @@ func (x *fastReflection_QueryParamsResponse) Get(descriptor protoreflect.FieldDe // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryParamsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.QueryParamsResponse.params": - x.Params = value.Message().Interface().(*QueryParamsResponse_Params) + case "andromeda.escrow.v1alpha1.QueryParamsResponse.max_metadata_length": + x.MaxMetadataLength = value.Uint() default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryParamsResponse")) @@ -550,11 +550,8 @@ func (x *fastReflection_QueryParamsResponse) Set(fd protoreflect.FieldDescriptor // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryParamsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.QueryParamsResponse.params": - if x.Params == nil { - x.Params = new(QueryParamsResponse_Params) - } - return protoreflect.ValueOfMessage(x.Params.ProtoReflect()) + case "andromeda.escrow.v1alpha1.QueryParamsResponse.max_metadata_length": + panic(fmt.Errorf("field max_metadata_length of message andromeda.escrow.v1alpha1.QueryParamsResponse is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryParamsResponse")) @@ -568,9 +565,8 @@ func (x *fastReflection_QueryParamsResponse) Mutable(fd protoreflect.FieldDescri // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_QueryParamsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.QueryParamsResponse.params": - m := new(QueryParamsResponse_Params) - return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "andromeda.escrow.v1alpha1.QueryParamsResponse.max_metadata_length": + return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryParamsResponse")) @@ -640,9 +636,8 @@ func (x *fastReflection_QueryParamsResponse) ProtoMethods() *protoiface.Methods var n int var l int _ = l - if x.Params != nil { - l = options.Size(x.Params) - n += 1 + l + runtime.Sov(uint64(l)) + if x.MaxMetadataLength != 0 { + n += 1 + runtime.Sov(uint64(x.MaxMetadataLength)) } if x.unknownFields != nil { n += len(x.unknownFields) @@ -673,19 +668,10 @@ func (x *fastReflection_QueryParamsResponse) ProtoMethods() *protoiface.Methods i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.Params != nil { - encoded, err := options.Marshal(x.Params) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + if x.MaxMetadataLength != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.MaxMetadataLength)) i-- - dAtA[i] = 0xa + dAtA[i] = 0x8 } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -737,10 +723,10 @@ func (x *fastReflection_QueryParamsResponse) ProtoMethods() *protoiface.Methods } switch fieldNum { case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MaxMetadataLength", wireType) } - var msglen int + x.MaxMetadataLength = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -750,384 +736,11 @@ func (x *fastReflection_QueryParamsResponse) ProtoMethods() *protoiface.Methods } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + x.MaxMetadataLength |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Params == nil { - x.Params = &QueryParamsResponse_Params{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryParamsResponse_Params protoreflect.MessageDescriptor -) - -func init() { - file_andromeda_escrow_v1alpha1_query_proto_init() - md_QueryParamsResponse_Params = File_andromeda_escrow_v1alpha1_query_proto.Messages().ByName("QueryParamsResponse").Messages().ByName("Params") -} - -var _ protoreflect.Message = (*fastReflection_QueryParamsResponse_Params)(nil) - -type fastReflection_QueryParamsResponse_Params QueryParamsResponse_Params - -func (x *QueryParamsResponse_Params) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryParamsResponse_Params)(x) -} - -func (x *QueryParamsResponse_Params) slowProtoReflect() protoreflect.Message { - mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryParamsResponse_Params_messageType fastReflection_QueryParamsResponse_Params_messageType -var _ protoreflect.MessageType = fastReflection_QueryParamsResponse_Params_messageType{} - -type fastReflection_QueryParamsResponse_Params_messageType struct{} - -func (x fastReflection_QueryParamsResponse_Params_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryParamsResponse_Params)(nil) -} -func (x fastReflection_QueryParamsResponse_Params_messageType) New() protoreflect.Message { - return new(fastReflection_QueryParamsResponse_Params) -} -func (x fastReflection_QueryParamsResponse_Params_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryParamsResponse_Params -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryParamsResponse_Params) Descriptor() protoreflect.MessageDescriptor { - return md_QueryParamsResponse_Params -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryParamsResponse_Params) Type() protoreflect.MessageType { - return _fastReflection_QueryParamsResponse_Params_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryParamsResponse_Params) New() protoreflect.Message { - return new(fastReflection_QueryParamsResponse_Params) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryParamsResponse_Params) Interface() protoreflect.ProtoMessage { - return (*QueryParamsResponse_Params)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_QueryParamsResponse_Params) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryParamsResponse_Params) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryParamsResponse.Params")) - } - panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryParamsResponse.Params does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryParamsResponse_Params) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryParamsResponse.Params")) - } - panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryParamsResponse.Params does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryParamsResponse_Params) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryParamsResponse.Params")) - } - panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryParamsResponse.Params does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryParamsResponse_Params) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryParamsResponse.Params")) - } - panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryParamsResponse.Params does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryParamsResponse_Params) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryParamsResponse.Params")) - } - panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryParamsResponse.Params does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryParamsResponse_Params) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryParamsResponse.Params")) - } - panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryParamsResponse.Params does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryParamsResponse_Params) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in andromeda.escrow.v1alpha1.QueryParamsResponse.Params", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryParamsResponse_Params) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryParamsResponse_Params) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_QueryParamsResponse_Params) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_QueryParamsResponse_Params) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryParamsResponse_Params) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryParamsResponse_Params) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryParamsResponse_Params) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsResponse_Params: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsResponse_Params: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -2040,7 +1653,7 @@ func (x *QueryAgentResponse_Agent) ProtoReflect() protoreflect.Message { } func (x *QueryAgentResponse_Agent) slowProtoReflect() protoreflect.Message { - mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[11] + mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3532,7 +3145,7 @@ func (x *QueryAgentsResponse_Agent) ProtoReflect() protoreflect.Message { } func (x *QueryAgentsResponse_Agent) slowProtoReflect() protoreflect.Message { - mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[12] + mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4942,6 +4555,7 @@ var ( fd_QueryProposalResponse_Proposal_agent protoreflect.FieldDescriptor fd_QueryProposalResponse_Proposal_pre_actions protoreflect.FieldDescriptor fd_QueryProposalResponse_Proposal_post_actions protoreflect.FieldDescriptor + fd_QueryProposalResponse_Proposal_metadata protoreflect.FieldDescriptor ) func init() { @@ -4952,6 +4566,7 @@ func init() { fd_QueryProposalResponse_Proposal_agent = md_QueryProposalResponse_Proposal.Fields().ByName("agent") fd_QueryProposalResponse_Proposal_pre_actions = md_QueryProposalResponse_Proposal.Fields().ByName("pre_actions") fd_QueryProposalResponse_Proposal_post_actions = md_QueryProposalResponse_Proposal.Fields().ByName("post_actions") + fd_QueryProposalResponse_Proposal_metadata = md_QueryProposalResponse_Proposal.Fields().ByName("metadata") } var _ protoreflect.Message = (*fastReflection_QueryProposalResponse_Proposal)(nil) @@ -4963,7 +4578,7 @@ func (x *QueryProposalResponse_Proposal) ProtoReflect() protoreflect.Message { } func (x *QueryProposalResponse_Proposal) slowProtoReflect() protoreflect.Message { - mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[13] + mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5049,6 +4664,12 @@ func (x *fastReflection_QueryProposalResponse_Proposal) Range(f func(protoreflec return } } + if x.Metadata != "" { + value := protoreflect.ValueOfString(x.Metadata) + if !f(fd_QueryProposalResponse_Proposal_metadata, value) { + return + } + } } // Has reports whether a field is populated. @@ -5074,6 +4695,8 @@ func (x *fastReflection_QueryProposalResponse_Proposal) Has(fd protoreflect.Fiel return len(x.PreActions) != 0 case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.post_actions": return len(x.PostActions) != 0 + case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.metadata": + return x.Metadata != "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal")) @@ -5100,6 +4723,8 @@ func (x *fastReflection_QueryProposalResponse_Proposal) Clear(fd protoreflect.Fi x.PreActions = nil case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.post_actions": x.PostActions = nil + case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.metadata": + x.Metadata = "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal")) @@ -5137,6 +4762,9 @@ func (x *fastReflection_QueryProposalResponse_Proposal) Get(descriptor protorefl } listValue := &_QueryProposalResponse_Proposal_5_list{list: &x.PostActions} return protoreflect.ValueOfList(listValue) + case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.metadata": + value := x.Metadata + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal")) @@ -5171,6 +4799,8 @@ func (x *fastReflection_QueryProposalResponse_Proposal) Set(fd protoreflect.Fiel lv := value.List() clv := lv.(*_QueryProposalResponse_Proposal_5_list) x.PostActions = *clv.list + case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.metadata": + x.Metadata = value.Interface().(string) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal")) @@ -5209,6 +4839,8 @@ func (x *fastReflection_QueryProposalResponse_Proposal) Mutable(fd protoreflect. panic(fmt.Errorf("field proposer of message andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal is not mutable")) case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.agent": panic(fmt.Errorf("field agent of message andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal is not mutable")) + case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.metadata": + panic(fmt.Errorf("field metadata of message andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal")) @@ -5234,6 +4866,8 @@ func (x *fastReflection_QueryProposalResponse_Proposal) NewField(fd protoreflect case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.post_actions": list := []*anypb.Any{} return protoreflect.ValueOfList(&_QueryProposalResponse_Proposal_5_list{list: &list}) + case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.metadata": + return protoreflect.ValueOfString("") default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal")) @@ -5326,6 +4960,10 @@ func (x *fastReflection_QueryProposalResponse_Proposal) ProtoMethods() *protoifa n += 1 + l + runtime.Sov(uint64(l)) } } + l = len(x.Metadata) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -5355,6 +4993,13 @@ func (x *fastReflection_QueryProposalResponse_Proposal) ProtoMethods() *protoifa i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if len(x.Metadata) > 0 { + i -= len(x.Metadata) + copy(dAtA[i:], x.Metadata) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Metadata))) + i-- + dAtA[i] = 0x32 + } if len(x.PostActions) > 0 { for iNdEx := len(x.PostActions) - 1; iNdEx >= 0; iNdEx-- { encoded, err := options.Marshal(x.PostActions[iNdEx]) @@ -5606,6 +5251,38 @@ func (x *fastReflection_QueryProposalResponse_Proposal) ProtoMethods() *protoifa return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex + case 6: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Metadata = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -6758,6 +6435,7 @@ var ( fd_QueryProposalsResponse_Proposal_agent protoreflect.FieldDescriptor fd_QueryProposalsResponse_Proposal_pre_actions protoreflect.FieldDescriptor fd_QueryProposalsResponse_Proposal_post_actions protoreflect.FieldDescriptor + fd_QueryProposalsResponse_Proposal_metadata protoreflect.FieldDescriptor ) func init() { @@ -6768,6 +6446,7 @@ func init() { fd_QueryProposalsResponse_Proposal_agent = md_QueryProposalsResponse_Proposal.Fields().ByName("agent") fd_QueryProposalsResponse_Proposal_pre_actions = md_QueryProposalsResponse_Proposal.Fields().ByName("pre_actions") fd_QueryProposalsResponse_Proposal_post_actions = md_QueryProposalsResponse_Proposal.Fields().ByName("post_actions") + fd_QueryProposalsResponse_Proposal_metadata = md_QueryProposalsResponse_Proposal.Fields().ByName("metadata") } var _ protoreflect.Message = (*fastReflection_QueryProposalsResponse_Proposal)(nil) @@ -6779,7 +6458,7 @@ func (x *QueryProposalsResponse_Proposal) ProtoReflect() protoreflect.Message { } func (x *QueryProposalsResponse_Proposal) slowProtoReflect() protoreflect.Message { - mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[14] + mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6865,6 +6544,12 @@ func (x *fastReflection_QueryProposalsResponse_Proposal) Range(f func(protorefle return } } + if x.Metadata != "" { + value := protoreflect.ValueOfString(x.Metadata) + if !f(fd_QueryProposalsResponse_Proposal_metadata, value) { + return + } + } } // Has reports whether a field is populated. @@ -6890,6 +6575,8 @@ func (x *fastReflection_QueryProposalsResponse_Proposal) Has(fd protoreflect.Fie return len(x.PreActions) != 0 case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.post_actions": return len(x.PostActions) != 0 + case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.metadata": + return x.Metadata != "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal")) @@ -6916,6 +6603,8 @@ func (x *fastReflection_QueryProposalsResponse_Proposal) Clear(fd protoreflect.F x.PreActions = nil case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.post_actions": x.PostActions = nil + case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.metadata": + x.Metadata = "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal")) @@ -6953,6 +6642,9 @@ func (x *fastReflection_QueryProposalsResponse_Proposal) Get(descriptor protoref } listValue := &_QueryProposalsResponse_Proposal_5_list{list: &x.PostActions} return protoreflect.ValueOfList(listValue) + case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.metadata": + value := x.Metadata + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal")) @@ -6987,6 +6679,8 @@ func (x *fastReflection_QueryProposalsResponse_Proposal) Set(fd protoreflect.Fie lv := value.List() clv := lv.(*_QueryProposalsResponse_Proposal_5_list) x.PostActions = *clv.list + case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.metadata": + x.Metadata = value.Interface().(string) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal")) @@ -7025,6 +6719,8 @@ func (x *fastReflection_QueryProposalsResponse_Proposal) Mutable(fd protoreflect panic(fmt.Errorf("field proposer of message andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal is not mutable")) case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.agent": panic(fmt.Errorf("field agent of message andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal is not mutable")) + case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.metadata": + panic(fmt.Errorf("field metadata of message andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal")) @@ -7050,6 +6746,8 @@ func (x *fastReflection_QueryProposalsResponse_Proposal) NewField(fd protoreflec case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.post_actions": list := []*anypb.Any{} return protoreflect.ValueOfList(&_QueryProposalsResponse_Proposal_5_list{list: &list}) + case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.metadata": + return protoreflect.ValueOfString("") default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal")) @@ -7142,6 +6840,10 @@ func (x *fastReflection_QueryProposalsResponse_Proposal) ProtoMethods() *protoif n += 1 + l + runtime.Sov(uint64(l)) } } + l = len(x.Metadata) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -7171,6 +6873,13 @@ func (x *fastReflection_QueryProposalsResponse_Proposal) ProtoMethods() *protoif i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if len(x.Metadata) > 0 { + i -= len(x.Metadata) + copy(dAtA[i:], x.Metadata) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Metadata))) + i-- + dAtA[i] = 0x32 + } if len(x.PostActions) > 0 { for iNdEx := len(x.PostActions) - 1; iNdEx >= 0; iNdEx-- { encoded, err := options.Marshal(x.PostActions[iNdEx]) @@ -7422,6 +7131,38 @@ func (x *fastReflection_QueryProposalsResponse_Proposal) ProtoMethods() *protoif return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex + case 6: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Metadata = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -7503,8 +7244,8 @@ type QueryParamsResponse struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // the parameters of the module - Params *QueryParamsResponse_Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` + // the maximum length allowed for metadata + MaxMetadataLength uint64 `protobuf:"varint,1,opt,name=max_metadata_length,json=maxMetadataLength,proto3" json:"max_metadata_length,omitempty"` } func (x *QueryParamsResponse) Reset() { @@ -7527,11 +7268,11 @@ func (*QueryParamsResponse) Descriptor() ([]byte, []int) { return file_andromeda_escrow_v1alpha1_query_proto_rawDescGZIP(), []int{1} } -func (x *QueryParamsResponse) GetParams() *QueryParamsResponse_Params { +func (x *QueryParamsResponse) GetMaxMetadataLength() uint64 { if x != nil { - return x.Params + return x.MaxMetadataLength } - return nil + return 0 } // QueryAgentRequest is the request type for the Query/Agent RPC method. @@ -7848,33 +7589,6 @@ func (x *QueryProposalsResponse) GetPagination() *v1beta1.PageResponse { return nil } -// Params defines the parameters for the module. -type QueryParamsResponse_Params struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *QueryParamsResponse_Params) Reset() { - *x = QueryParamsResponse_Params{} - if protoimpl.UnsafeEnabled { - mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryParamsResponse_Params) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryParamsResponse_Params) ProtoMessage() {} - -// Deprecated: Use QueryParamsResponse_Params.ProtoReflect.Descriptor instead. -func (*QueryParamsResponse_Params) Descriptor() ([]byte, []int) { - return file_andromeda_escrow_v1alpha1_query_proto_rawDescGZIP(), []int{1, 0} -} - // Agent defines an account taking charge of a proposal. type QueryAgentResponse_Agent struct { state protoimpl.MessageState @@ -7890,7 +7604,7 @@ type QueryAgentResponse_Agent struct { func (x *QueryAgentResponse_Agent) Reset() { *x = QueryAgentResponse_Agent{} if protoimpl.UnsafeEnabled { - mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[11] + mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7936,7 +7650,7 @@ type QueryAgentsResponse_Agent struct { func (x *QueryAgentsResponse_Agent) Reset() { *x = QueryAgentsResponse_Agent{} if protoimpl.UnsafeEnabled { - mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[12] + mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7983,12 +7697,14 @@ type QueryProposalResponse_Proposal struct { PreActions []*anypb.Any `protobuf:"bytes,4,rep,name=pre_actions,json=preActions,proto3" json:"pre_actions,omitempty"` // the messages which will be executed after the actions included in Msg/Exec PostActions []*anypb.Any `protobuf:"bytes,5,rep,name=post_actions,json=postActions,proto3" json:"post_actions,omitempty"` + // any arbitrary metadata attached to the proposal + Metadata string `protobuf:"bytes,6,opt,name=metadata,proto3" json:"metadata,omitempty"` } func (x *QueryProposalResponse_Proposal) Reset() { *x = QueryProposalResponse_Proposal{} if protoimpl.UnsafeEnabled { - mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[13] + mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8040,6 +7756,13 @@ func (x *QueryProposalResponse_Proposal) GetPostActions() []*anypb.Any { return nil } +func (x *QueryProposalResponse_Proposal) GetMetadata() string { + if x != nil { + return x.Metadata + } + return "" +} + // Proposal defines a proposal. type QueryProposalsResponse_Proposal struct { state protoimpl.MessageState @@ -8056,12 +7779,14 @@ type QueryProposalsResponse_Proposal struct { PreActions []*anypb.Any `protobuf:"bytes,4,rep,name=pre_actions,json=preActions,proto3" json:"pre_actions,omitempty"` // the messages which will be executed after the actions included in Msg/Exec PostActions []*anypb.Any `protobuf:"bytes,5,rep,name=post_actions,json=postActions,proto3" json:"post_actions,omitempty"` + // any arbitrary metadata attached to the proposal + Metadata string `protobuf:"bytes,6,opt,name=metadata,proto3" json:"metadata,omitempty"` } func (x *QueryProposalsResponse_Proposal) Reset() { *x = QueryProposalsResponse_Proposal{} if protoimpl.UnsafeEnabled { - mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[14] + mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8113,6 +7838,13 @@ func (x *QueryProposalsResponse_Proposal) GetPostActions() []*anypb.Any { return nil } +func (x *QueryProposalsResponse_Proposal) GetMetadata() string { + if x != nil { + return x.Metadata + } + return "" +} + var File_andromeda_escrow_v1alpha1_query_proto protoreflect.FileDescriptor var file_andromeda_escrow_v1alpha1_query_proto_rawDesc = []byte{ @@ -8129,177 +7861,178 @@ var file_andromeda_escrow_v1alpha1_query_proto_rawDesc = []byte{ 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x14, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x6e, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x45, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x4d, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x35, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, - 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, - 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x1a, 0x08, - 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x47, 0x0a, 0x11, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x32, 0x0a, - 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, - 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x22, 0xd0, 0x01, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x67, 0x65, 0x6e, 0x74, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x49, 0x0a, 0x05, 0x61, 0x67, 0x65, 0x6e, - 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, - 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, - 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x61, 0x67, - 0x65, 0x6e, 0x74, 0x1a, 0x6f, 0x0a, 0x05, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x32, 0x0a, 0x07, - 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, - 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x12, 0x32, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x2e, 0x0a, 0x13, 0x6d, 0x61, 0x78, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x5f, + 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x11, 0x6d, 0x61, + 0x78, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x4c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x22, + 0x47, 0x0a, 0x11, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x32, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, + 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0xd0, 0x01, 0x0a, 0x12, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x49, 0x0a, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x33, + 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, + 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x41, 0x67, + 0x65, 0x6e, 0x74, 0x52, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x1a, 0x6f, 0x0a, 0x05, 0x41, 0x67, + 0x65, 0x6e, 0x74, 0x12, 0x32, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, + 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x32, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, + 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, + 0x6e, 0x67, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x5c, 0x0a, 0x12, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, + 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, + 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x9d, 0x02, 0x0a, 0x13, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x4c, 0x0a, 0x06, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x34, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, + 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x2e, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x12, + 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, + 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, + 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x6f, 0x0a, 0x05, 0x41, 0x67, 0x65, 0x6e, + 0x74, 0x12, 0x32, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x61, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x32, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, + 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x26, 0x0a, 0x14, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, + 0x64, 0x22, 0xfd, 0x02, 0x0a, 0x15, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, + 0x73, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x55, 0x0a, 0x08, 0x70, + 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x39, 0x2e, + 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, + 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, + 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, + 0x61, 0x6c, 0x1a, 0x8c, 0x02, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, + 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, + 0x34, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x63, 0x72, 0x65, - 0x61, 0x74, 0x6f, 0x72, 0x22, 0x5c, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x67, 0x65, - 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, - 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x70, 0x72, 0x6f, + 0x70, 0x6f, 0x73, 0x65, 0x72, 0x12, 0x2e, 0x0a, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x05, + 0x61, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x35, 0x0a, 0x0b, 0x70, 0x72, 0x65, 0x5f, 0x61, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, + 0x52, 0x0a, 0x70, 0x72, 0x65, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x37, 0x0a, 0x0c, + 0x70, 0x6f, 0x73, 0x74, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, 0x70, 0x6f, 0x73, 0x74, 0x41, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0x22, 0x5f, 0x0a, 0x15, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, + 0x61, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, + 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x22, 0x9d, 0x02, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x67, 0x65, 0x6e, - 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4c, 0x0a, 0x06, 0x61, 0x67, - 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x61, 0x6e, 0x64, - 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, - 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x67, 0x65, 0x6e, - 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x41, 0x67, 0x65, 0x6e, 0x74, - 0x52, 0x06, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, - 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x1a, 0x6f, 0x0a, 0x05, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x32, 0x0a, 0x07, 0x61, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, - 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, - 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x32, - 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, - 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, - 0x6f, 0x72, 0x22, 0x26, 0x0a, 0x14, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, - 0x73, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x22, 0xe1, 0x02, 0x0a, 0x15, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x55, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, - 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, - 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, - 0x6c, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x1a, 0xf0, 0x01, 0x0a, 0x08, - 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x34, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, - 0x6f, 0x73, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, - 0x72, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x12, 0x2e, - 0x0a, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, - 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x35, - 0x0a, 0x0b, 0x70, 0x72, 0x65, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0a, 0x70, 0x72, 0x65, 0x41, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x37, 0x0a, 0x0c, 0x70, 0x6f, 0x73, 0x74, 0x5f, 0x61, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, - 0x79, 0x52, 0x0b, 0x70, 0x6f, 0x73, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x5f, - 0x0a, 0x15, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, + 0x6f, 0x6e, 0x22, 0xca, 0x03, 0x0a, 0x16, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x70, + 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x58, 0x0a, + 0x09, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x3a, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, + 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x09, 0x70, 0x72, + 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, - 0xae, 0x03, 0x0a, 0x16, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, - 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x58, 0x0a, 0x09, 0x70, 0x72, - 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3a, 0x2e, - 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, - 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, - 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x70, 0x6f, - 0x73, 0x61, 0x6c, 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0xf0, 0x01, - 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x34, 0x0a, 0x08, 0x70, 0x72, - 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, - 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, - 0x12, 0x2e, 0x0a, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x1a, 0x8c, 0x02, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x0e, 0x0a, + 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x34, 0x0a, + 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, - 0x12, 0x35, 0x0a, 0x0b, 0x70, 0x72, 0x65, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, - 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0a, 0x70, 0x72, 0x65, - 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x37, 0x0a, 0x0c, 0x70, 0x6f, 0x73, 0x74, 0x5f, - 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x41, 0x6e, 0x79, 0x52, 0x0b, 0x70, 0x6f, 0x73, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x32, 0x91, 0x06, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x92, 0x01, 0x0a, 0x06, 0x50, - 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x2d, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, + 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, + 0x73, 0x65, 0x72, 0x12, 0x2e, 0x0a, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x05, 0x61, 0x67, + 0x65, 0x6e, 0x74, 0x12, 0x35, 0x0a, 0x0b, 0x70, 0x72, 0x65, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0a, + 0x70, 0x72, 0x65, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x37, 0x0a, 0x0c, 0x70, 0x6f, + 0x73, 0x74, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, 0x70, 0x6f, 0x73, 0x74, 0x41, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, + 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x32, + 0x91, 0x06, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x92, 0x01, 0x0a, 0x06, 0x50, 0x61, + 0x72, 0x61, 0x6d, 0x73, 0x12, 0x2d, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, + 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, + 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x29, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x23, 0x12, 0x21, 0x2f, 0x61, 0x6e, + 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2f, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x99, + 0x01, 0x0a, 0x05, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x2c, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, + 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, + 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x33, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2d, 0x12, 0x2b, 0x2f, + 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, + 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, + 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x12, 0x92, 0x01, 0x0a, 0x06, 0x41, + 0x67, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x2d, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, - 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, + 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, - 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x29, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x23, 0x12, 0x21, 0x2f, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2f, - 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, - 0x99, 0x01, 0x0a, 0x05, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x2c, 0x2e, 0x61, 0x6e, 0x64, 0x72, - 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, - 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x67, 0x65, 0x6e, 0x74, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, - 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, - 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x33, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2d, 0x12, 0x2b, - 0x2f, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x65, 0x73, 0x63, 0x72, 0x6f, - 0x77, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, - 0x73, 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x12, 0x92, 0x01, 0x0a, 0x06, - 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x2d, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, - 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, - 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, - 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, - 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x29, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x23, 0x12, 0x21, 0x2f, - 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, - 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, - 0x12, 0xa0, 0x01, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x2f, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x12, + 0xa0, 0x01, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x2f, 0x2e, 0x61, + 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, + 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, - 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, - 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, - 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x31, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x12, 0x29, 0x2f, 0x61, 0x6e, 0x64, 0x72, 0x6f, - 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2f, 0x76, 0x31, 0x61, 0x6c, - 0x70, 0x68, 0x61, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x2f, 0x7b, - 0x69, 0x64, 0x7d, 0x12, 0x9e, 0x01, 0x0a, 0x09, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, - 0x73, 0x12, 0x30, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, - 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, - 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x26, 0x12, 0x24, - 0x2f, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x65, 0x73, 0x63, 0x72, 0x6f, - 0x77, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x6f, - 0x73, 0x61, 0x6c, 0x73, 0x42, 0xdf, 0x01, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x6e, 0x64, - 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, - 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, - 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2c, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, + 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x31, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x12, 0x29, 0x2f, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, - 0x68, 0x61, 0x31, 0x3b, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, - 0x61, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x45, 0x58, 0xaa, 0x02, 0x19, 0x41, 0x6e, 0x64, 0x72, 0x6f, - 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x56, 0x31, 0x61, 0x6c, - 0x70, 0x68, 0x61, 0x31, 0xca, 0x02, 0x19, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, - 0x5c, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, - 0xe2, 0x02, 0x25, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x5c, 0x45, 0x73, 0x63, - 0x72, 0x6f, 0x77, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, - 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1b, 0x41, 0x6e, 0x64, 0x72, 0x6f, - 0x6d, 0x65, 0x64, 0x61, 0x3a, 0x3a, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x3a, 0x3a, 0x56, 0x31, - 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x68, 0x61, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x2f, 0x7b, 0x69, + 0x64, 0x7d, 0x12, 0x9e, 0x01, 0x0a, 0x09, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, + 0x12, 0x30, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, + 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, + 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x26, 0x12, 0x24, 0x2f, + 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, + 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, + 0x61, 0x6c, 0x73, 0x42, 0xdf, 0x01, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x6e, 0x64, 0x72, + 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, + 0x6f, 0x50, 0x01, 0x5a, 0x2c, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, + 0x64, 0x61, 0x2f, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x3b, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0xa2, 0x02, 0x03, 0x41, 0x45, 0x58, 0xaa, 0x02, 0x19, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, + 0x65, 0x64, 0x61, 0x2e, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x56, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0xca, 0x02, 0x19, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x5c, + 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xe2, + 0x02, 0x25, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x5c, 0x45, 0x73, 0x63, 0x72, + 0x6f, 0x77, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1b, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, + 0x65, 0x64, 0x61, 0x3a, 0x3a, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x3a, 0x3a, 0x56, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -8314,7 +8047,7 @@ func file_andromeda_escrow_v1alpha1_query_proto_rawDescGZIP() []byte { return file_andromeda_escrow_v1alpha1_query_proto_rawDescData } -var file_andromeda_escrow_v1alpha1_query_proto_msgTypes = make([]protoimpl.MessageInfo, 15) +var file_andromeda_escrow_v1alpha1_query_proto_msgTypes = make([]protoimpl.MessageInfo, 14) var file_andromeda_escrow_v1alpha1_query_proto_goTypes = []interface{}{ (*QueryParamsRequest)(nil), // 0: andromeda.escrow.v1alpha1.QueryParamsRequest (*QueryParamsResponse)(nil), // 1: andromeda.escrow.v1alpha1.QueryParamsResponse @@ -8326,44 +8059,42 @@ var file_andromeda_escrow_v1alpha1_query_proto_goTypes = []interface{}{ (*QueryProposalResponse)(nil), // 7: andromeda.escrow.v1alpha1.QueryProposalResponse (*QueryProposalsRequest)(nil), // 8: andromeda.escrow.v1alpha1.QueryProposalsRequest (*QueryProposalsResponse)(nil), // 9: andromeda.escrow.v1alpha1.QueryProposalsResponse - (*QueryParamsResponse_Params)(nil), // 10: andromeda.escrow.v1alpha1.QueryParamsResponse.Params - (*QueryAgentResponse_Agent)(nil), // 11: andromeda.escrow.v1alpha1.QueryAgentResponse.Agent - (*QueryAgentsResponse_Agent)(nil), // 12: andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent - (*QueryProposalResponse_Proposal)(nil), // 13: andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal - (*QueryProposalsResponse_Proposal)(nil), // 14: andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal - (*v1beta1.PageRequest)(nil), // 15: cosmos.base.query.v1beta1.PageRequest - (*v1beta1.PageResponse)(nil), // 16: cosmos.base.query.v1beta1.PageResponse - (*anypb.Any)(nil), // 17: google.protobuf.Any + (*QueryAgentResponse_Agent)(nil), // 10: andromeda.escrow.v1alpha1.QueryAgentResponse.Agent + (*QueryAgentsResponse_Agent)(nil), // 11: andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent + (*QueryProposalResponse_Proposal)(nil), // 12: andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal + (*QueryProposalsResponse_Proposal)(nil), // 13: andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal + (*v1beta1.PageRequest)(nil), // 14: cosmos.base.query.v1beta1.PageRequest + (*v1beta1.PageResponse)(nil), // 15: cosmos.base.query.v1beta1.PageResponse + (*anypb.Any)(nil), // 16: google.protobuf.Any } var file_andromeda_escrow_v1alpha1_query_proto_depIdxs = []int32{ - 10, // 0: andromeda.escrow.v1alpha1.QueryParamsResponse.params:type_name -> andromeda.escrow.v1alpha1.QueryParamsResponse.Params - 11, // 1: andromeda.escrow.v1alpha1.QueryAgentResponse.agent:type_name -> andromeda.escrow.v1alpha1.QueryAgentResponse.Agent - 15, // 2: andromeda.escrow.v1alpha1.QueryAgentsRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 12, // 3: andromeda.escrow.v1alpha1.QueryAgentsResponse.agents:type_name -> andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent - 16, // 4: andromeda.escrow.v1alpha1.QueryAgentsResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 13, // 5: andromeda.escrow.v1alpha1.QueryProposalResponse.proposal:type_name -> andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal - 15, // 6: andromeda.escrow.v1alpha1.QueryProposalsRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 14, // 7: andromeda.escrow.v1alpha1.QueryProposalsResponse.proposals:type_name -> andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal - 16, // 8: andromeda.escrow.v1alpha1.QueryProposalsResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 17, // 9: andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.pre_actions:type_name -> google.protobuf.Any - 17, // 10: andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.post_actions:type_name -> google.protobuf.Any - 17, // 11: andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.pre_actions:type_name -> google.protobuf.Any - 17, // 12: andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.post_actions:type_name -> google.protobuf.Any - 0, // 13: andromeda.escrow.v1alpha1.Query.Params:input_type -> andromeda.escrow.v1alpha1.QueryParamsRequest - 2, // 14: andromeda.escrow.v1alpha1.Query.Agent:input_type -> andromeda.escrow.v1alpha1.QueryAgentRequest - 4, // 15: andromeda.escrow.v1alpha1.Query.Agents:input_type -> andromeda.escrow.v1alpha1.QueryAgentsRequest - 6, // 16: andromeda.escrow.v1alpha1.Query.Proposal:input_type -> andromeda.escrow.v1alpha1.QueryProposalRequest - 8, // 17: andromeda.escrow.v1alpha1.Query.Proposals:input_type -> andromeda.escrow.v1alpha1.QueryProposalsRequest - 1, // 18: andromeda.escrow.v1alpha1.Query.Params:output_type -> andromeda.escrow.v1alpha1.QueryParamsResponse - 3, // 19: andromeda.escrow.v1alpha1.Query.Agent:output_type -> andromeda.escrow.v1alpha1.QueryAgentResponse - 5, // 20: andromeda.escrow.v1alpha1.Query.Agents:output_type -> andromeda.escrow.v1alpha1.QueryAgentsResponse - 7, // 21: andromeda.escrow.v1alpha1.Query.Proposal:output_type -> andromeda.escrow.v1alpha1.QueryProposalResponse - 9, // 22: andromeda.escrow.v1alpha1.Query.Proposals:output_type -> andromeda.escrow.v1alpha1.QueryProposalsResponse - 18, // [18:23] is the sub-list for method output_type - 13, // [13:18] is the sub-list for method input_type - 13, // [13:13] is the sub-list for extension type_name - 13, // [13:13] is the sub-list for extension extendee - 0, // [0:13] is the sub-list for field type_name + 10, // 0: andromeda.escrow.v1alpha1.QueryAgentResponse.agent:type_name -> andromeda.escrow.v1alpha1.QueryAgentResponse.Agent + 14, // 1: andromeda.escrow.v1alpha1.QueryAgentsRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 11, // 2: andromeda.escrow.v1alpha1.QueryAgentsResponse.agents:type_name -> andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent + 15, // 3: andromeda.escrow.v1alpha1.QueryAgentsResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 12, // 4: andromeda.escrow.v1alpha1.QueryProposalResponse.proposal:type_name -> andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal + 14, // 5: andromeda.escrow.v1alpha1.QueryProposalsRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 13, // 6: andromeda.escrow.v1alpha1.QueryProposalsResponse.proposals:type_name -> andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal + 15, // 7: andromeda.escrow.v1alpha1.QueryProposalsResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 16, // 8: andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.pre_actions:type_name -> google.protobuf.Any + 16, // 9: andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.post_actions:type_name -> google.protobuf.Any + 16, // 10: andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.pre_actions:type_name -> google.protobuf.Any + 16, // 11: andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.post_actions:type_name -> google.protobuf.Any + 0, // 12: andromeda.escrow.v1alpha1.Query.Params:input_type -> andromeda.escrow.v1alpha1.QueryParamsRequest + 2, // 13: andromeda.escrow.v1alpha1.Query.Agent:input_type -> andromeda.escrow.v1alpha1.QueryAgentRequest + 4, // 14: andromeda.escrow.v1alpha1.Query.Agents:input_type -> andromeda.escrow.v1alpha1.QueryAgentsRequest + 6, // 15: andromeda.escrow.v1alpha1.Query.Proposal:input_type -> andromeda.escrow.v1alpha1.QueryProposalRequest + 8, // 16: andromeda.escrow.v1alpha1.Query.Proposals:input_type -> andromeda.escrow.v1alpha1.QueryProposalsRequest + 1, // 17: andromeda.escrow.v1alpha1.Query.Params:output_type -> andromeda.escrow.v1alpha1.QueryParamsResponse + 3, // 18: andromeda.escrow.v1alpha1.Query.Agent:output_type -> andromeda.escrow.v1alpha1.QueryAgentResponse + 5, // 19: andromeda.escrow.v1alpha1.Query.Agents:output_type -> andromeda.escrow.v1alpha1.QueryAgentsResponse + 7, // 20: andromeda.escrow.v1alpha1.Query.Proposal:output_type -> andromeda.escrow.v1alpha1.QueryProposalResponse + 9, // 21: andromeda.escrow.v1alpha1.Query.Proposals:output_type -> andromeda.escrow.v1alpha1.QueryProposalsResponse + 17, // [17:22] is the sub-list for method output_type + 12, // [12:17] is the sub-list for method input_type + 12, // [12:12] is the sub-list for extension type_name + 12, // [12:12] is the sub-list for extension extendee + 0, // [0:12] is the sub-list for field type_name } func init() { file_andromeda_escrow_v1alpha1_query_proto_init() } @@ -8493,18 +8224,6 @@ func file_andromeda_escrow_v1alpha1_query_proto_init() { } } file_andromeda_escrow_v1alpha1_query_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryParamsResponse_Params); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_andromeda_escrow_v1alpha1_query_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryAgentResponse_Agent); i { case 0: return &v.state @@ -8516,7 +8235,7 @@ func file_andromeda_escrow_v1alpha1_query_proto_init() { return nil } } - file_andromeda_escrow_v1alpha1_query_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + file_andromeda_escrow_v1alpha1_query_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryAgentsResponse_Agent); i { case 0: return &v.state @@ -8528,7 +8247,7 @@ func file_andromeda_escrow_v1alpha1_query_proto_init() { return nil } } - file_andromeda_escrow_v1alpha1_query_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + file_andromeda_escrow_v1alpha1_query_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryProposalResponse_Proposal); i { case 0: return &v.state @@ -8540,7 +8259,7 @@ func file_andromeda_escrow_v1alpha1_query_proto_init() { return nil } } - file_andromeda_escrow_v1alpha1_query_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + file_andromeda_escrow_v1alpha1_query_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryProposalsResponse_Proposal); i { case 0: return &v.state @@ -8559,7 +8278,7 @@ func file_andromeda_escrow_v1alpha1_query_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_andromeda_escrow_v1alpha1_query_proto_rawDesc, NumEnums: 0, - NumMessages: 15, + NumMessages: 14, NumExtensions: 0, NumServices: 1, }, diff --git a/x/escrow/api/andromeda/escrow/v1alpha1/tx.pulsar.go b/x/escrow/api/andromeda/escrow/v1alpha1/tx.pulsar.go index db750d3..299a550 100644 --- a/x/escrow/api/andromeda/escrow/v1alpha1/tx.pulsar.go +++ b/x/escrow/api/andromeda/escrow/v1alpha1/tx.pulsar.go @@ -16,16 +16,16 @@ import ( ) var ( - md_MsgUpdateParams protoreflect.MessageDescriptor - fd_MsgUpdateParams_authority protoreflect.FieldDescriptor - fd_MsgUpdateParams_params protoreflect.FieldDescriptor + md_MsgUpdateParams protoreflect.MessageDescriptor + fd_MsgUpdateParams_authority protoreflect.FieldDescriptor + fd_MsgUpdateParams_max_metadata_length protoreflect.FieldDescriptor ) func init() { file_andromeda_escrow_v1alpha1_tx_proto_init() md_MsgUpdateParams = File_andromeda_escrow_v1alpha1_tx_proto.Messages().ByName("MsgUpdateParams") fd_MsgUpdateParams_authority = md_MsgUpdateParams.Fields().ByName("authority") - fd_MsgUpdateParams_params = md_MsgUpdateParams.Fields().ByName("params") + fd_MsgUpdateParams_max_metadata_length = md_MsgUpdateParams.Fields().ByName("max_metadata_length") } var _ protoreflect.Message = (*fastReflection_MsgUpdateParams)(nil) @@ -99,9 +99,9 @@ func (x *fastReflection_MsgUpdateParams) Range(f func(protoreflect.FieldDescript return } } - if x.Params != nil { - value := protoreflect.ValueOfMessage(x.Params.ProtoReflect()) - if !f(fd_MsgUpdateParams_params, value) { + if x.MaxMetadataLength != uint64(0) { + value := protoreflect.ValueOfUint64(x.MaxMetadataLength) + if !f(fd_MsgUpdateParams_max_metadata_length, value) { return } } @@ -122,8 +122,8 @@ func (x *fastReflection_MsgUpdateParams) Has(fd protoreflect.FieldDescriptor) bo switch fd.FullName() { case "andromeda.escrow.v1alpha1.MsgUpdateParams.authority": return x.Authority != "" - case "andromeda.escrow.v1alpha1.MsgUpdateParams.params": - return x.Params != nil + case "andromeda.escrow.v1alpha1.MsgUpdateParams.max_metadata_length": + return x.MaxMetadataLength != uint64(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgUpdateParams")) @@ -142,8 +142,8 @@ func (x *fastReflection_MsgUpdateParams) Clear(fd protoreflect.FieldDescriptor) switch fd.FullName() { case "andromeda.escrow.v1alpha1.MsgUpdateParams.authority": x.Authority = "" - case "andromeda.escrow.v1alpha1.MsgUpdateParams.params": - x.Params = nil + case "andromeda.escrow.v1alpha1.MsgUpdateParams.max_metadata_length": + x.MaxMetadataLength = uint64(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgUpdateParams")) @@ -163,9 +163,9 @@ func (x *fastReflection_MsgUpdateParams) Get(descriptor protoreflect.FieldDescri case "andromeda.escrow.v1alpha1.MsgUpdateParams.authority": value := x.Authority return protoreflect.ValueOfString(value) - case "andromeda.escrow.v1alpha1.MsgUpdateParams.params": - value := x.Params - return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "andromeda.escrow.v1alpha1.MsgUpdateParams.max_metadata_length": + value := x.MaxMetadataLength + return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgUpdateParams")) @@ -188,8 +188,8 @@ func (x *fastReflection_MsgUpdateParams) Set(fd protoreflect.FieldDescriptor, va switch fd.FullName() { case "andromeda.escrow.v1alpha1.MsgUpdateParams.authority": x.Authority = value.Interface().(string) - case "andromeda.escrow.v1alpha1.MsgUpdateParams.params": - x.Params = value.Message().Interface().(*MsgUpdateParams_Params) + case "andromeda.escrow.v1alpha1.MsgUpdateParams.max_metadata_length": + x.MaxMetadataLength = value.Uint() default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgUpdateParams")) @@ -210,13 +210,10 @@ func (x *fastReflection_MsgUpdateParams) Set(fd protoreflect.FieldDescriptor, va // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgUpdateParams) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.MsgUpdateParams.params": - if x.Params == nil { - x.Params = new(MsgUpdateParams_Params) - } - return protoreflect.ValueOfMessage(x.Params.ProtoReflect()) case "andromeda.escrow.v1alpha1.MsgUpdateParams.authority": panic(fmt.Errorf("field authority of message andromeda.escrow.v1alpha1.MsgUpdateParams is not mutable")) + case "andromeda.escrow.v1alpha1.MsgUpdateParams.max_metadata_length": + panic(fmt.Errorf("field max_metadata_length of message andromeda.escrow.v1alpha1.MsgUpdateParams is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgUpdateParams")) @@ -232,9 +229,8 @@ func (x *fastReflection_MsgUpdateParams) NewField(fd protoreflect.FieldDescripto switch fd.FullName() { case "andromeda.escrow.v1alpha1.MsgUpdateParams.authority": return protoreflect.ValueOfString("") - case "andromeda.escrow.v1alpha1.MsgUpdateParams.params": - m := new(MsgUpdateParams_Params) - return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "andromeda.escrow.v1alpha1.MsgUpdateParams.max_metadata_length": + return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgUpdateParams")) @@ -308,9 +304,8 @@ func (x *fastReflection_MsgUpdateParams) ProtoMethods() *protoiface.Methods { if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - if x.Params != nil { - l = options.Size(x.Params) - n += 1 + l + runtime.Sov(uint64(l)) + if x.MaxMetadataLength != 0 { + n += 1 + runtime.Sov(uint64(x.MaxMetadataLength)) } if x.unknownFields != nil { n += len(x.unknownFields) @@ -341,19 +336,10 @@ func (x *fastReflection_MsgUpdateParams) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.Params != nil { - encoded, err := options.Marshal(x.Params) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + if x.MaxMetadataLength != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.MaxMetadataLength)) i-- - dAtA[i] = 0x12 + dAtA[i] = 0x10 } if len(x.Authority) > 0 { i -= len(x.Authority) @@ -444,10 +430,10 @@ func (x *fastReflection_MsgUpdateParams) ProtoMethods() *protoiface.Methods { x.Authority = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MaxMetadataLength", wireType) } - var msglen int + x.MaxMetadataLength = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -457,384 +443,11 @@ func (x *fastReflection_MsgUpdateParams) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + x.MaxMetadataLength |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Params == nil { - x.Params = &MsgUpdateParams_Params{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgUpdateParams_Params protoreflect.MessageDescriptor -) - -func init() { - file_andromeda_escrow_v1alpha1_tx_proto_init() - md_MsgUpdateParams_Params = File_andromeda_escrow_v1alpha1_tx_proto.Messages().ByName("MsgUpdateParams").Messages().ByName("Params") -} - -var _ protoreflect.Message = (*fastReflection_MsgUpdateParams_Params)(nil) - -type fastReflection_MsgUpdateParams_Params MsgUpdateParams_Params - -func (x *MsgUpdateParams_Params) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgUpdateParams_Params)(x) -} - -func (x *MsgUpdateParams_Params) slowProtoReflect() protoreflect.Message { - mi := &file_andromeda_escrow_v1alpha1_tx_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgUpdateParams_Params_messageType fastReflection_MsgUpdateParams_Params_messageType -var _ protoreflect.MessageType = fastReflection_MsgUpdateParams_Params_messageType{} - -type fastReflection_MsgUpdateParams_Params_messageType struct{} - -func (x fastReflection_MsgUpdateParams_Params_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgUpdateParams_Params)(nil) -} -func (x fastReflection_MsgUpdateParams_Params_messageType) New() protoreflect.Message { - return new(fastReflection_MsgUpdateParams_Params) -} -func (x fastReflection_MsgUpdateParams_Params_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateParams_Params -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgUpdateParams_Params) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateParams_Params -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgUpdateParams_Params) Type() protoreflect.MessageType { - return _fastReflection_MsgUpdateParams_Params_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgUpdateParams_Params) New() protoreflect.Message { - return new(fastReflection_MsgUpdateParams_Params) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgUpdateParams_Params) Interface() protoreflect.ProtoMessage { - return (*MsgUpdateParams_Params)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgUpdateParams_Params) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgUpdateParams_Params) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgUpdateParams.Params")) - } - panic(fmt.Errorf("message andromeda.escrow.v1alpha1.MsgUpdateParams.Params does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateParams_Params) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgUpdateParams.Params")) - } - panic(fmt.Errorf("message andromeda.escrow.v1alpha1.MsgUpdateParams.Params does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgUpdateParams_Params) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgUpdateParams.Params")) - } - panic(fmt.Errorf("message andromeda.escrow.v1alpha1.MsgUpdateParams.Params does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateParams_Params) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgUpdateParams.Params")) - } - panic(fmt.Errorf("message andromeda.escrow.v1alpha1.MsgUpdateParams.Params does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateParams_Params) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgUpdateParams.Params")) - } - panic(fmt.Errorf("message andromeda.escrow.v1alpha1.MsgUpdateParams.Params does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgUpdateParams_Params) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgUpdateParams.Params")) - } - panic(fmt.Errorf("message andromeda.escrow.v1alpha1.MsgUpdateParams.Params does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgUpdateParams_Params) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in andromeda.escrow.v1alpha1.MsgUpdateParams.Params", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgUpdateParams_Params) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateParams_Params) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgUpdateParams_Params) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgUpdateParams_Params) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgUpdateParams_Params) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateParams_Params) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateParams_Params) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParams_Params: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParams_Params: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -2174,6 +1787,7 @@ var ( fd_MsgSubmitProposal_agent protoreflect.FieldDescriptor fd_MsgSubmitProposal_pre_actions protoreflect.FieldDescriptor fd_MsgSubmitProposal_post_actions protoreflect.FieldDescriptor + fd_MsgSubmitProposal_metadata protoreflect.FieldDescriptor ) func init() { @@ -2183,6 +1797,7 @@ func init() { fd_MsgSubmitProposal_agent = md_MsgSubmitProposal.Fields().ByName("agent") fd_MsgSubmitProposal_pre_actions = md_MsgSubmitProposal.Fields().ByName("pre_actions") fd_MsgSubmitProposal_post_actions = md_MsgSubmitProposal.Fields().ByName("post_actions") + fd_MsgSubmitProposal_metadata = md_MsgSubmitProposal.Fields().ByName("metadata") } var _ protoreflect.Message = (*fastReflection_MsgSubmitProposal)(nil) @@ -2274,6 +1889,12 @@ func (x *fastReflection_MsgSubmitProposal) Range(f func(protoreflect.FieldDescri return } } + if x.Metadata != "" { + value := protoreflect.ValueOfString(x.Metadata) + if !f(fd_MsgSubmitProposal_metadata, value) { + return + } + } } // Has reports whether a field is populated. @@ -2297,6 +1918,8 @@ func (x *fastReflection_MsgSubmitProposal) Has(fd protoreflect.FieldDescriptor) return len(x.PreActions) != 0 case "andromeda.escrow.v1alpha1.MsgSubmitProposal.post_actions": return len(x.PostActions) != 0 + case "andromeda.escrow.v1alpha1.MsgSubmitProposal.metadata": + return x.Metadata != "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgSubmitProposal")) @@ -2321,6 +1944,8 @@ func (x *fastReflection_MsgSubmitProposal) Clear(fd protoreflect.FieldDescriptor x.PreActions = nil case "andromeda.escrow.v1alpha1.MsgSubmitProposal.post_actions": x.PostActions = nil + case "andromeda.escrow.v1alpha1.MsgSubmitProposal.metadata": + x.Metadata = "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgSubmitProposal")) @@ -2355,6 +1980,9 @@ func (x *fastReflection_MsgSubmitProposal) Get(descriptor protoreflect.FieldDesc } listValue := &_MsgSubmitProposal_4_list{list: &x.PostActions} return protoreflect.ValueOfList(listValue) + case "andromeda.escrow.v1alpha1.MsgSubmitProposal.metadata": + value := x.Metadata + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgSubmitProposal")) @@ -2387,6 +2015,8 @@ func (x *fastReflection_MsgSubmitProposal) Set(fd protoreflect.FieldDescriptor, lv := value.List() clv := lv.(*_MsgSubmitProposal_4_list) x.PostActions = *clv.list + case "andromeda.escrow.v1alpha1.MsgSubmitProposal.metadata": + x.Metadata = value.Interface().(string) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgSubmitProposal")) @@ -2423,6 +2053,8 @@ func (x *fastReflection_MsgSubmitProposal) Mutable(fd protoreflect.FieldDescript panic(fmt.Errorf("field proposer of message andromeda.escrow.v1alpha1.MsgSubmitProposal is not mutable")) case "andromeda.escrow.v1alpha1.MsgSubmitProposal.agent": panic(fmt.Errorf("field agent of message andromeda.escrow.v1alpha1.MsgSubmitProposal is not mutable")) + case "andromeda.escrow.v1alpha1.MsgSubmitProposal.metadata": + panic(fmt.Errorf("field metadata of message andromeda.escrow.v1alpha1.MsgSubmitProposal is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgSubmitProposal")) @@ -2446,6 +2078,8 @@ func (x *fastReflection_MsgSubmitProposal) NewField(fd protoreflect.FieldDescrip case "andromeda.escrow.v1alpha1.MsgSubmitProposal.post_actions": list := []*anypb.Any{} return protoreflect.ValueOfList(&_MsgSubmitProposal_4_list{list: &list}) + case "andromeda.escrow.v1alpha1.MsgSubmitProposal.metadata": + return protoreflect.ValueOfString("") default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgSubmitProposal")) @@ -2535,6 +2169,10 @@ func (x *fastReflection_MsgSubmitProposal) ProtoMethods() *protoiface.Methods { n += 1 + l + runtime.Sov(uint64(l)) } } + l = len(x.Metadata) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -2564,6 +2202,13 @@ func (x *fastReflection_MsgSubmitProposal) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if len(x.Metadata) > 0 { + i -= len(x.Metadata) + copy(dAtA[i:], x.Metadata) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Metadata))) + i-- + dAtA[i] = 0x2a + } if len(x.PostActions) > 0 { for iNdEx := len(x.PostActions) - 1; iNdEx >= 0; iNdEx-- { encoded, err := options.Marshal(x.PostActions[iNdEx]) @@ -2791,6 +2436,38 @@ func (x *fastReflection_MsgSubmitProposal) ProtoMethods() *protoiface.Methods { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex + case 5: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Metadata = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -4277,9 +3954,9 @@ type MsgUpdateParams struct { // the address of the module authority Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` - // the parameters to update - // Note: All parameters must be supplied. - Params *MsgUpdateParams_Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"` + // the maximum length allowed for metadata + // Note: it must be greater than or equal to the current's. + MaxMetadataLength uint64 `protobuf:"varint,2,opt,name=max_metadata_length,json=maxMetadataLength,proto3" json:"max_metadata_length,omitempty"` } func (x *MsgUpdateParams) Reset() { @@ -4309,11 +3986,11 @@ func (x *MsgUpdateParams) GetAuthority() string { return "" } -func (x *MsgUpdateParams) GetParams() *MsgUpdateParams_Params { +func (x *MsgUpdateParams) GetMaxMetadataLength() uint64 { if x != nil { - return x.Params + return x.MaxMetadataLength } - return nil + return 0 } // MsgUpdateParamsResponse is the Msg/UpdateParams response type. @@ -4434,6 +4111,8 @@ type MsgSubmitProposal struct { // the messages which will be executed after the actions included in Msg/Exec // Note: the signer of each message must be either the proposer or the agent. PostActions []*anypb.Any `protobuf:"bytes,4,rep,name=post_actions,json=postActions,proto3" json:"post_actions,omitempty"` + // any arbitrary metadata attached to the proposal + Metadata string `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"` } func (x *MsgSubmitProposal) Reset() { @@ -4484,6 +4163,13 @@ func (x *MsgSubmitProposal) GetPostActions() []*anypb.Any { return nil } +func (x *MsgSubmitProposal) GetMetadata() string { + if x != nil { + return x.Metadata + } + return "" +} + // MsgSubmitProposalResponse is the Msg/SubmitProposal response type. type MsgSubmitProposalResponse struct { state protoimpl.MessageState @@ -4613,33 +4299,6 @@ func (*MsgExecResponse) Descriptor() ([]byte, []int) { return file_andromeda_escrow_v1alpha1_tx_proto_rawDescGZIP(), []int{7} } -// Params defines the parameters for the module. -type MsgUpdateParams_Params struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgUpdateParams_Params) Reset() { - *x = MsgUpdateParams_Params{} - if protoimpl.UnsafeEnabled { - mi := &file_andromeda_escrow_v1alpha1_tx_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgUpdateParams_Params) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgUpdateParams_Params) ProtoMessage() {} - -// Deprecated: Use MsgUpdateParams_Params.ProtoReflect.Descriptor instead. -func (*MsgUpdateParams_Params) Descriptor() ([]byte, []int) { - return file_andromeda_escrow_v1alpha1_tx_proto_rawDescGZIP(), []int{0, 0} -} - var File_andromeda_escrow_v1alpha1_tx_proto protoreflect.FileDescriptor var file_andromeda_escrow_v1alpha1_tx_proto_rawDesc = []byte{ @@ -4651,105 +4310,104 @@ var file_andromeda_escrow_v1alpha1_tx_proto_rawDesc = []byte{ 0x73, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xae, + 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x89, 0x01, 0x0a, 0x0f, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x36, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, - 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x49, 0x0a, 0x06, 0x70, 0x61, - 0x72, 0x61, 0x6d, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x61, 0x6e, 0x64, + 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x2e, 0x0a, 0x13, 0x6d, 0x61, + 0x78, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x6c, 0x65, 0x6e, 0x67, 0x74, + 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x11, 0x6d, 0x61, 0x78, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x4c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x3a, 0x0e, 0x82, 0xe7, 0xb0, 0x2a, + 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x22, 0x19, 0x0a, 0x17, 0x4d, 0x73, + 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x52, 0x0a, 0x0e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x32, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, + 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, + 0x6e, 0x67, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, + 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x48, 0x0a, 0x16, 0x4d, 0x73, 0x67, + 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x05, 0x61, 0x67, + 0x65, 0x6e, 0x74, 0x22, 0x94, 0x02, 0x0a, 0x11, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, + 0x74, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x34, 0x0a, 0x08, 0x70, 0x72, 0x6f, + 0x70, 0x6f, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, + 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, + 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x12, + 0x2e, 0x0a, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, + 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x12, + 0x35, 0x0a, 0x0b, 0x70, 0x72, 0x65, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0a, 0x70, 0x72, 0x65, 0x41, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x37, 0x0a, 0x0c, 0x70, 0x6f, 0x73, 0x74, 0x5f, 0x61, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, + 0x6e, 0x79, 0x52, 0x0b, 0x70, 0x6f, 0x73, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, + 0x1a, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x3a, 0x0d, 0x82, 0xe7, 0xb0, + 0x2a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x22, 0x2b, 0x0a, 0x19, 0x4d, 0x73, + 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x22, 0xca, 0x01, 0x0a, 0x07, 0x4d, 0x73, 0x67, 0x45, + 0x78, 0x65, 0x63, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, + 0x34, 0x0a, 0x08, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x65, 0x78, 0x65, + 0x63, 0x75, 0x74, 0x6f, 0x72, 0x12, 0x2e, 0x0a, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x05, + 0x61, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x2e, 0x0a, 0x07, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x07, 0x61, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x3a, 0x0d, 0x82, 0xe7, 0xb0, 0x2a, 0x08, 0x65, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x6f, 0x72, 0x22, 0x11, 0x0a, 0x0f, 0x4d, 0x73, 0x67, 0x45, 0x78, 0x65, 0x63, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xb7, 0x03, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, + 0x6e, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, + 0x2a, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, + 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x1a, 0x32, 0x2e, 0x61, 0x6e, + 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x6b, 0x0a, 0x0b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x29, + 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, + 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x1a, 0x31, 0x2e, 0x61, 0x6e, 0x64, 0x72, + 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, + 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x74, 0x0a, 0x0e, + 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x2c, + 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, + 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x75, + 0x62, 0x6d, 0x69, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x1a, 0x34, 0x2e, 0x61, + 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, + 0x69, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x56, 0x0a, 0x04, 0x45, 0x78, 0x65, 0x63, 0x12, 0x22, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, - 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x06, 0x70, - 0x61, 0x72, 0x61, 0x6d, 0x73, 0x1a, 0x08, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x3a, - 0x0e, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x22, - 0x19, 0x0a, 0x17, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, - 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x52, 0x0a, 0x0e, 0x4d, 0x73, - 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x32, 0x0a, 0x07, - 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, - 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, - 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x48, - 0x0a, 0x16, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x67, 0x65, 0x6e, 0x74, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x05, 0x61, 0x67, 0x65, 0x6e, - 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, - 0x67, 0x52, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x22, 0xf8, 0x01, 0x0a, 0x11, 0x4d, 0x73, 0x67, - 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x34, - 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, - 0x6f, 0x73, 0x65, 0x72, 0x12, 0x2e, 0x0a, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, - 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x05, 0x61, - 0x67, 0x65, 0x6e, 0x74, 0x12, 0x35, 0x0a, 0x0b, 0x70, 0x72, 0x65, 0x5f, 0x61, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, - 0x0a, 0x70, 0x72, 0x65, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x37, 0x0a, 0x0c, 0x70, - 0x6f, 0x73, 0x74, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, 0x70, 0x6f, 0x73, 0x74, 0x41, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x3a, 0x0d, 0x82, 0xe7, 0xb0, 0x2a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, - 0x73, 0x65, 0x72, 0x22, 0x2b, 0x0a, 0x19, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, - 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, - 0x22, 0xca, 0x01, 0x0a, 0x07, 0x4d, 0x73, 0x67, 0x45, 0x78, 0x65, 0x63, 0x12, 0x1a, 0x0a, 0x08, - 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, - 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x34, 0x0a, 0x08, 0x65, 0x78, 0x65, 0x63, - 0x75, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, - 0x72, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x12, 0x2e, - 0x0a, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, - 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x2e, - 0x0a, 0x07, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x07, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x3a, 0x0d, - 0x82, 0xe7, 0xb0, 0x2a, 0x08, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x22, 0x11, 0x0a, - 0x0f, 0x4d, 0x73, 0x67, 0x45, 0x78, 0x65, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x32, 0xb7, 0x03, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x6e, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x2a, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, - 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, - 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, - 0x72, 0x61, 0x6d, 0x73, 0x1a, 0x32, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, - 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, - 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6b, 0x0a, 0x0b, 0x43, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x29, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x45, 0x78, 0x65, 0x63, 0x1a, 0x2a, + 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, + 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x45, 0x78, + 0x65, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x1a, 0x05, 0x80, 0xe7, 0xb0, 0x2a, + 0x01, 0x42, 0xdc, 0x01, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, - 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x67, 0x65, - 0x6e, 0x74, 0x1a, 0x31, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, - 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, - 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x74, 0x0a, 0x0e, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x50, - 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x2c, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, - 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, - 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x50, 0x72, 0x6f, - 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x1a, 0x34, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, - 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, - 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x6f, - 0x73, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x56, 0x0a, 0x04, 0x45, - 0x78, 0x65, 0x63, 0x12, 0x22, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, - 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, - 0x4d, 0x73, 0x67, 0x45, 0x78, 0x65, 0x63, 0x1a, 0x2a, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, - 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, - 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x45, 0x78, 0x65, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x1a, 0x05, 0x80, 0xe7, 0xb0, 0x2a, 0x01, 0x42, 0xdc, 0x01, 0x0a, 0x1d, 0x63, - 0x6f, 0x6d, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, - 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x07, 0x54, 0x78, - 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2c, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x64, - 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2f, 0x76, 0x31, - 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x3b, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x76, 0x31, 0x61, - 0x6c, 0x70, 0x68, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x45, 0x58, 0xaa, 0x02, 0x19, 0x41, 0x6e, - 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x56, - 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xca, 0x02, 0x19, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, - 0x65, 0x64, 0x61, 0x5c, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, - 0x68, 0x61, 0x31, 0xe2, 0x02, 0x25, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x5c, - 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x5c, - 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1b, 0x41, 0x6e, - 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x3a, 0x3a, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x3a, - 0x3a, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, + 0x68, 0x61, 0x31, 0x42, 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2c, + 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x65, 0x73, + 0x63, 0x72, 0x6f, 0x77, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x3b, 0x65, 0x73, + 0x63, 0x72, 0x6f, 0x77, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x41, + 0x45, 0x58, 0xaa, 0x02, 0x19, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x45, + 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xca, 0x02, + 0x19, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x5c, 0x45, 0x73, 0x63, 0x72, 0x6f, + 0x77, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xe2, 0x02, 0x25, 0x41, 0x6e, 0x64, + 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x5c, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x5c, 0x56, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0xea, 0x02, 0x1b, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x3a, 0x3a, + 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x3a, 0x3a, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -4764,7 +4422,7 @@ func file_andromeda_escrow_v1alpha1_tx_proto_rawDescGZIP() []byte { return file_andromeda_escrow_v1alpha1_tx_proto_rawDescData } -var file_andromeda_escrow_v1alpha1_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 9) +var file_andromeda_escrow_v1alpha1_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 8) var file_andromeda_escrow_v1alpha1_tx_proto_goTypes = []interface{}{ (*MsgUpdateParams)(nil), // 0: andromeda.escrow.v1alpha1.MsgUpdateParams (*MsgUpdateParamsResponse)(nil), // 1: andromeda.escrow.v1alpha1.MsgUpdateParamsResponse @@ -4774,27 +4432,25 @@ var file_andromeda_escrow_v1alpha1_tx_proto_goTypes = []interface{}{ (*MsgSubmitProposalResponse)(nil), // 5: andromeda.escrow.v1alpha1.MsgSubmitProposalResponse (*MsgExec)(nil), // 6: andromeda.escrow.v1alpha1.MsgExec (*MsgExecResponse)(nil), // 7: andromeda.escrow.v1alpha1.MsgExecResponse - (*MsgUpdateParams_Params)(nil), // 8: andromeda.escrow.v1alpha1.MsgUpdateParams.Params - (*anypb.Any)(nil), // 9: google.protobuf.Any + (*anypb.Any)(nil), // 8: google.protobuf.Any } var file_andromeda_escrow_v1alpha1_tx_proto_depIdxs = []int32{ - 8, // 0: andromeda.escrow.v1alpha1.MsgUpdateParams.params:type_name -> andromeda.escrow.v1alpha1.MsgUpdateParams.Params - 9, // 1: andromeda.escrow.v1alpha1.MsgSubmitProposal.pre_actions:type_name -> google.protobuf.Any - 9, // 2: andromeda.escrow.v1alpha1.MsgSubmitProposal.post_actions:type_name -> google.protobuf.Any - 9, // 3: andromeda.escrow.v1alpha1.MsgExec.actions:type_name -> google.protobuf.Any - 0, // 4: andromeda.escrow.v1alpha1.Msg.UpdateParams:input_type -> andromeda.escrow.v1alpha1.MsgUpdateParams - 2, // 5: andromeda.escrow.v1alpha1.Msg.CreateAgent:input_type -> andromeda.escrow.v1alpha1.MsgCreateAgent - 4, // 6: andromeda.escrow.v1alpha1.Msg.SubmitProposal:input_type -> andromeda.escrow.v1alpha1.MsgSubmitProposal - 6, // 7: andromeda.escrow.v1alpha1.Msg.Exec:input_type -> andromeda.escrow.v1alpha1.MsgExec - 1, // 8: andromeda.escrow.v1alpha1.Msg.UpdateParams:output_type -> andromeda.escrow.v1alpha1.MsgUpdateParamsResponse - 3, // 9: andromeda.escrow.v1alpha1.Msg.CreateAgent:output_type -> andromeda.escrow.v1alpha1.MsgCreateAgentResponse - 5, // 10: andromeda.escrow.v1alpha1.Msg.SubmitProposal:output_type -> andromeda.escrow.v1alpha1.MsgSubmitProposalResponse - 7, // 11: andromeda.escrow.v1alpha1.Msg.Exec:output_type -> andromeda.escrow.v1alpha1.MsgExecResponse - 8, // [8:12] is the sub-list for method output_type - 4, // [4:8] is the sub-list for method input_type - 4, // [4:4] is the sub-list for extension type_name - 4, // [4:4] is the sub-list for extension extendee - 0, // [0:4] is the sub-list for field type_name + 8, // 0: andromeda.escrow.v1alpha1.MsgSubmitProposal.pre_actions:type_name -> google.protobuf.Any + 8, // 1: andromeda.escrow.v1alpha1.MsgSubmitProposal.post_actions:type_name -> google.protobuf.Any + 8, // 2: andromeda.escrow.v1alpha1.MsgExec.actions:type_name -> google.protobuf.Any + 0, // 3: andromeda.escrow.v1alpha1.Msg.UpdateParams:input_type -> andromeda.escrow.v1alpha1.MsgUpdateParams + 2, // 4: andromeda.escrow.v1alpha1.Msg.CreateAgent:input_type -> andromeda.escrow.v1alpha1.MsgCreateAgent + 4, // 5: andromeda.escrow.v1alpha1.Msg.SubmitProposal:input_type -> andromeda.escrow.v1alpha1.MsgSubmitProposal + 6, // 6: andromeda.escrow.v1alpha1.Msg.Exec:input_type -> andromeda.escrow.v1alpha1.MsgExec + 1, // 7: andromeda.escrow.v1alpha1.Msg.UpdateParams:output_type -> andromeda.escrow.v1alpha1.MsgUpdateParamsResponse + 3, // 8: andromeda.escrow.v1alpha1.Msg.CreateAgent:output_type -> andromeda.escrow.v1alpha1.MsgCreateAgentResponse + 5, // 9: andromeda.escrow.v1alpha1.Msg.SubmitProposal:output_type -> andromeda.escrow.v1alpha1.MsgSubmitProposalResponse + 7, // 10: andromeda.escrow.v1alpha1.Msg.Exec:output_type -> andromeda.escrow.v1alpha1.MsgExecResponse + 7, // [7:11] is the sub-list for method output_type + 3, // [3:7] is the sub-list for method input_type + 3, // [3:3] is the sub-list for extension type_name + 3, // [3:3] is the sub-list for extension extendee + 0, // [0:3] is the sub-list for field type_name } func init() { file_andromeda_escrow_v1alpha1_tx_proto_init() } @@ -4899,18 +4555,6 @@ func file_andromeda_escrow_v1alpha1_tx_proto_init() { return nil } } - file_andromeda_escrow_v1alpha1_tx_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgUpdateParams_Params); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } } type x struct{} out := protoimpl.TypeBuilder{ @@ -4918,7 +4562,7 @@ func file_andromeda_escrow_v1alpha1_tx_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_andromeda_escrow_v1alpha1_tx_proto_rawDesc, NumEnums: 0, - NumMessages: 9, + NumMessages: 8, NumExtensions: 0, NumServices: 1, }, diff --git a/x/escrow/api/andromeda/escrow/v1alpha1/types.pulsar.go b/x/escrow/api/andromeda/escrow/v1alpha1/types.pulsar.go index 98d2c48..5395777 100644 --- a/x/escrow/api/andromeda/escrow/v1alpha1/types.pulsar.go +++ b/x/escrow/api/andromeda/escrow/v1alpha1/types.pulsar.go @@ -14,12 +14,14 @@ import ( ) var ( - md_Params protoreflect.MessageDescriptor + md_Params protoreflect.MessageDescriptor + fd_Params_max_metadata_length protoreflect.FieldDescriptor ) func init() { file_andromeda_escrow_v1alpha1_types_proto_init() md_Params = File_andromeda_escrow_v1alpha1_types_proto.Messages().ByName("Params") + fd_Params_max_metadata_length = md_Params.Fields().ByName("max_metadata_length") } var _ protoreflect.Message = (*fastReflection_Params)(nil) @@ -87,6 +89,12 @@ func (x *fastReflection_Params) Interface() protoreflect.ProtoMessage { // While iterating, mutating operations may only be performed // on the current field descriptor. func (x *fastReflection_Params) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.MaxMetadataLength != uint64(0) { + value := protoreflect.ValueOfUint64(x.MaxMetadataLength) + if !f(fd_Params_max_metadata_length, value) { + return + } + } } // Has reports whether a field is populated. @@ -102,6 +110,8 @@ func (x *fastReflection_Params) Range(f func(protoreflect.FieldDescriptor, proto // a repeated field is populated if it is non-empty. func (x *fastReflection_Params) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { + case "andromeda.escrow.v1alpha1.Params.max_metadata_length": + return x.MaxMetadataLength != uint64(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.Params")) @@ -118,6 +128,8 @@ func (x *fastReflection_Params) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Params) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { + case "andromeda.escrow.v1alpha1.Params.max_metadata_length": + x.MaxMetadataLength = uint64(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.Params")) @@ -134,6 +146,9 @@ func (x *fastReflection_Params) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_Params) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { + case "andromeda.escrow.v1alpha1.Params.max_metadata_length": + value := x.MaxMetadataLength + return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.Params")) @@ -154,6 +169,8 @@ func (x *fastReflection_Params) Get(descriptor protoreflect.FieldDescriptor) pro // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Params) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { + case "andromeda.escrow.v1alpha1.Params.max_metadata_length": + x.MaxMetadataLength = value.Uint() default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.Params")) @@ -174,6 +191,8 @@ func (x *fastReflection_Params) Set(fd protoreflect.FieldDescriptor, value proto // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Params) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { + case "andromeda.escrow.v1alpha1.Params.max_metadata_length": + panic(fmt.Errorf("field max_metadata_length of message andromeda.escrow.v1alpha1.Params is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.Params")) @@ -187,6 +206,8 @@ func (x *fastReflection_Params) Mutable(fd protoreflect.FieldDescriptor) protore // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_Params) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { + case "andromeda.escrow.v1alpha1.Params.max_metadata_length": + return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.Params")) @@ -256,6 +277,9 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { var n int var l int _ = l + if x.MaxMetadataLength != 0 { + n += 1 + runtime.Sov(uint64(x.MaxMetadataLength)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -285,6 +309,11 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if x.MaxMetadataLength != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.MaxMetadataLength)) + i-- + dAtA[i] = 0x8 + } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) } else { @@ -334,6 +363,25 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MaxMetadataLength", wireType) + } + x.MaxMetadataLength = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.MaxMetadataLength |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -832,6 +880,7 @@ var ( fd_Proposal_agent protoreflect.FieldDescriptor fd_Proposal_pre_actions protoreflect.FieldDescriptor fd_Proposal_post_actions protoreflect.FieldDescriptor + fd_Proposal_metadata protoreflect.FieldDescriptor ) func init() { @@ -840,6 +889,7 @@ func init() { fd_Proposal_agent = md_Proposal.Fields().ByName("agent") fd_Proposal_pre_actions = md_Proposal.Fields().ByName("pre_actions") fd_Proposal_post_actions = md_Proposal.Fields().ByName("post_actions") + fd_Proposal_metadata = md_Proposal.Fields().ByName("metadata") } var _ protoreflect.Message = (*fastReflection_Proposal)(nil) @@ -925,6 +975,12 @@ func (x *fastReflection_Proposal) Range(f func(protoreflect.FieldDescriptor, pro return } } + if x.Metadata != "" { + value := protoreflect.ValueOfString(x.Metadata) + if !f(fd_Proposal_metadata, value) { + return + } + } } // Has reports whether a field is populated. @@ -946,6 +1002,8 @@ func (x *fastReflection_Proposal) Has(fd protoreflect.FieldDescriptor) bool { return len(x.PreActions) != 0 case "andromeda.escrow.v1alpha1.Proposal.post_actions": return len(x.PostActions) != 0 + case "andromeda.escrow.v1alpha1.Proposal.metadata": + return x.Metadata != "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.Proposal")) @@ -968,6 +1026,8 @@ func (x *fastReflection_Proposal) Clear(fd protoreflect.FieldDescriptor) { x.PreActions = nil case "andromeda.escrow.v1alpha1.Proposal.post_actions": x.PostActions = nil + case "andromeda.escrow.v1alpha1.Proposal.metadata": + x.Metadata = "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.Proposal")) @@ -999,6 +1059,9 @@ func (x *fastReflection_Proposal) Get(descriptor protoreflect.FieldDescriptor) p } listValue := &_Proposal_3_list{list: &x.PostActions} return protoreflect.ValueOfList(listValue) + case "andromeda.escrow.v1alpha1.Proposal.metadata": + value := x.Metadata + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.Proposal")) @@ -1029,6 +1092,8 @@ func (x *fastReflection_Proposal) Set(fd protoreflect.FieldDescriptor, value pro lv := value.List() clv := lv.(*_Proposal_3_list) x.PostActions = *clv.list + case "andromeda.escrow.v1alpha1.Proposal.metadata": + x.Metadata = value.Interface().(string) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.Proposal")) @@ -1063,6 +1128,8 @@ func (x *fastReflection_Proposal) Mutable(fd protoreflect.FieldDescriptor) proto return protoreflect.ValueOfList(value) case "andromeda.escrow.v1alpha1.Proposal.agent": panic(fmt.Errorf("field agent of message andromeda.escrow.v1alpha1.Proposal is not mutable")) + case "andromeda.escrow.v1alpha1.Proposal.metadata": + panic(fmt.Errorf("field metadata of message andromeda.escrow.v1alpha1.Proposal is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.Proposal")) @@ -1084,6 +1151,8 @@ func (x *fastReflection_Proposal) NewField(fd protoreflect.FieldDescriptor) prot case "andromeda.escrow.v1alpha1.Proposal.post_actions": list := []*anypb.Any{} return protoreflect.ValueOfList(&_Proposal_3_list{list: &list}) + case "andromeda.escrow.v1alpha1.Proposal.metadata": + return protoreflect.ValueOfString("") default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.Proposal")) @@ -1169,6 +1238,10 @@ func (x *fastReflection_Proposal) ProtoMethods() *protoiface.Methods { n += 1 + l + runtime.Sov(uint64(l)) } } + l = len(x.Metadata) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -1198,6 +1271,13 @@ func (x *fastReflection_Proposal) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if len(x.Metadata) > 0 { + i -= len(x.Metadata) + copy(dAtA[i:], x.Metadata) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Metadata))) + i-- + dAtA[i] = 0x22 + } if len(x.PostActions) > 0 { for iNdEx := len(x.PostActions) - 1; iNdEx >= 0; iNdEx-- { encoded, err := options.Marshal(x.PostActions[iNdEx]) @@ -1388,6 +1468,38 @@ func (x *fastReflection_Proposal) ProtoMethods() *protoiface.Methods { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex + case 4: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Metadata = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -1441,6 +1553,9 @@ type Params struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + + // the maximum length allowed for metadata + MaxMetadataLength uint64 `protobuf:"varint,1,opt,name=max_metadata_length,json=maxMetadataLength,proto3" json:"max_metadata_length,omitempty"` } func (x *Params) Reset() { @@ -1463,6 +1578,13 @@ func (*Params) Descriptor() ([]byte, []int) { return file_andromeda_escrow_v1alpha1_types_proto_rawDescGZIP(), []int{0} } +func (x *Params) GetMaxMetadataLength() uint64 { + if x != nil { + return x.MaxMetadataLength + } + return 0 +} + // Agent defines an account taking charge of a proposal. type Agent struct { state protoimpl.MessageState @@ -1502,6 +1624,8 @@ type Proposal struct { PreActions []*anypb.Any `protobuf:"bytes,2,rep,name=pre_actions,json=preActions,proto3" json:"pre_actions,omitempty"` // the messages which will be executed after the actions included in Msg/Exec PostActions []*anypb.Any `protobuf:"bytes,3,rep,name=post_actions,json=postActions,proto3" json:"post_actions,omitempty"` + // any arbitrary metadata attached to the proposal + Metadata string `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"` } func (x *Proposal) Reset() { @@ -1545,6 +1669,13 @@ func (x *Proposal) GetPostActions() []*anypb.Any { return nil } +func (x *Proposal) GetMetadata() string { + if x != nil { + return x.Metadata + } + return "" +} + var File_andromeda_escrow_v1alpha1_types_proto protoreflect.FileDescriptor var file_andromeda_escrow_v1alpha1_types_proto_rawDesc = []byte{ @@ -1553,9 +1684,12 @@ var file_andromeda_escrow_v1alpha1_types_proto_rawDesc = []byte{ 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x08, 0x0a, - 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x07, 0x0a, 0x05, 0x41, 0x67, 0x65, 0x6e, 0x74, - 0x22, 0x90, 0x01, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x14, 0x0a, + 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x38, 0x0a, + 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x2e, 0x0a, 0x13, 0x6d, 0x61, 0x78, 0x5f, 0x6d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x11, 0x6d, 0x61, 0x78, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0x4c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x22, 0x07, 0x0a, 0x05, 0x41, 0x67, 0x65, 0x6e, 0x74, + 0x22, 0xac, 0x01, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x35, 0x0a, 0x0b, 0x70, 0x72, 0x65, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, @@ -1564,21 +1698,23 @@ var file_andromeda_escrow_v1alpha1_types_proto_rawDesc = []byte{ 0x73, 0x74, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, 0x70, 0x6f, 0x73, 0x74, 0x41, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x42, 0xdf, 0x01, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x6e, 0x64, 0x72, - 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, - 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x0a, 0x54, 0x79, 0x70, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, - 0x6f, 0x50, 0x01, 0x5a, 0x2c, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, - 0x64, 0x61, 0x2f, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, - 0x61, 0x31, 0x3b, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, - 0x31, 0xa2, 0x02, 0x03, 0x41, 0x45, 0x58, 0xaa, 0x02, 0x19, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, - 0x65, 0x64, 0x61, 0x2e, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x56, 0x31, 0x61, 0x6c, 0x70, - 0x68, 0x61, 0x31, 0xca, 0x02, 0x19, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x5c, - 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xe2, - 0x02, 0x25, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x5c, 0x45, 0x73, 0x63, 0x72, - 0x6f, 0x77, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1b, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, - 0x65, 0x64, 0x61, 0x3a, 0x3a, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x3a, 0x3a, 0x56, 0x31, 0x61, - 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x6f, 0x6e, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x42, + 0xdf, 0x01, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, + 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x42, 0x0a, 0x54, 0x79, 0x70, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, + 0x2c, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x65, + 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x3b, 0x65, + 0x73, 0x63, 0x72, 0x6f, 0x77, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xa2, 0x02, 0x03, + 0x41, 0x45, 0x58, 0xaa, 0x02, 0x19, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, + 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xca, + 0x02, 0x19, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x5c, 0x45, 0x73, 0x63, 0x72, + 0x6f, 0x77, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xe2, 0x02, 0x25, 0x41, 0x6e, + 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x5c, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x5c, 0x56, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0xea, 0x02, 0x1b, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x3a, + 0x3a, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x3a, 0x3a, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/x/escrow/keeper/internal/genesis.go b/x/escrow/keeper/internal/genesis.go index 8dec7d2..1b740aa 100644 --- a/x/escrow/keeper/internal/genesis.go +++ b/x/escrow/keeper/internal/genesis.go @@ -23,7 +23,9 @@ func (k Keeper) DefaultGenesis() *escrowv1alpha1.GenesisState { } func DefaultGenesisParams() *escrowv1alpha1.GenesisState_Params { - return &escrowv1alpha1.GenesisState_Params{} + return &escrowv1alpha1.GenesisState_Params{ + MaxMetadataLength: 255, + } } func (k Keeper) ValidateGenesis(gs *escrowv1alpha1.GenesisState) error { @@ -63,6 +65,10 @@ func (k Keeper) ValidateGenesis(gs *escrowv1alpha1.GenesisState) error { } func (k Keeper) validateGenesisParams(params *escrowv1alpha1.GenesisState_Params) error { + if params.MaxMetadataLength == 0 { + return escrowv1alpha1.ErrUnimplemented.Wrap("nil max_metadata_length") + } + return nil } @@ -193,7 +199,9 @@ func (k Keeper) InitGenesis(ctx context.Context, gs *escrowv1alpha1.GenesisState } func (k Keeper) initGenesisParams(ctx context.Context, params *escrowv1alpha1.GenesisState_Params) error { - if err := k.setParams(ctx, &escrowv1alpha1.Params{}); err != nil { + if err := k.setParams(ctx, &escrowv1alpha1.Params{ + MaxMetadataLength: params.MaxMetadataLength, + }); err != nil { return err } @@ -261,6 +269,7 @@ func (k Keeper) initGenesisProposal(ctx context.Context, proposal *escrowv1alpha Agent: agent, PreActions: proposal.PreActions, PostActions: proposal.PostActions, + Metadata: proposal.Metadata, }); err != nil { return err } @@ -304,7 +313,14 @@ func (k Keeper) ExportGenesis(ctx context.Context) (*escrowv1alpha1.GenesisState } func (k Keeper) exportGenesisParams(ctx context.Context) (*escrowv1alpha1.GenesisState_Params, error) { - return &escrowv1alpha1.GenesisState_Params{}, nil + params, err := k.GetParams(ctx) + if err != nil { + return nil, err + } + + return &escrowv1alpha1.GenesisState_Params{ + MaxMetadataLength: params.MaxMetadataLength, + }, nil } func (k Keeper) exportGenesisAgents(ctx context.Context) ([]*escrowv1alpha1.GenesisState_Agent, error) { @@ -352,6 +368,7 @@ func (k Keeper) exportGenesisProposals(ctx context.Context) ([]*escrowv1alpha1.G Agent: agentStr, PreActions: proposal.PreActions, PostActions: proposal.PostActions, + Metadata: proposal.Metadata, }) return nil diff --git a/x/escrow/keeper/internal/genesis_test.go b/x/escrow/keeper/internal/genesis_test.go index f18b745..1c5156f 100644 --- a/x/escrow/keeper/internal/genesis_test.go +++ b/x/escrow/keeper/internal/genesis_test.go @@ -13,6 +13,32 @@ import ( "github.com/0tech/andromeda/x/escrow/testutil" ) +func TestValidateGenesisParams(t *testing.T) { + _, _, k, _, _ := setupKeepers(t) //nolint:dogsled + + gs := k.DefaultGenesis() + tester := func(subject escrowv1alpha1.GenesisState_Params) error { + gs.Params = &subject + return k.ValidateGenesis(gs) + } + cases := []map[string]testutil.Case[escrowv1alpha1.GenesisState_Params]{ + { + "nil max_metadata_length": { + Error: func() error { + return escrowv1alpha1.ErrUnimplemented + }, + }, + "valid max_metadata_length": { + Malleate: func(subject *escrowv1alpha1.GenesisState_Params) { + subject.MaxMetadataLength = k.DefaultGenesis().Params.MaxMetadataLength + }, + }, + }, + } + + testutil.DoTest(t, tester, cases) +} + func TestValidateGenesisAgents(t *testing.T) { cdc, _, k, _, _ := setupKeepers(t) //nolint:dogsled addressCodec := cdc.InterfaceRegistry().SigningContext().AddressCodec() @@ -543,7 +569,7 @@ func TestValidateGenesisProposals(t *testing.T) { testutil.DoTest(t, tester, cases) } -func TestGenesisState(t *testing.T) { +func TestValidateGenesis(t *testing.T) { _, _, k, _, _ := setupKeepers(t) //nolint:dogsled tester := func(subject escrowv1alpha1.GenesisState) error { diff --git a/x/escrow/keeper/internal/grpc_query.go b/x/escrow/keeper/internal/grpc_query.go index 09fb36c..a0d0bdf 100644 --- a/x/escrow/keeper/internal/grpc_query.go +++ b/x/escrow/keeper/internal/grpc_query.go @@ -34,13 +34,13 @@ func (s queryServer) Params(ctx context.Context, req *escrowv1alpha1.QueryParams return nil, status.Errorf(codes.InvalidArgument, "empty request") } - _, err := s.keeper.GetParams(ctx) + params, err := s.keeper.GetParams(ctx) if err != nil { return nil, err } return &escrowv1alpha1.QueryParamsResponse{ - Params: &escrowv1alpha1.QueryParamsResponse_Params{}, + MaxMetadataLength: params.MaxMetadataLength, }, nil } @@ -141,6 +141,7 @@ func (s queryServer) Proposal(ctx context.Context, req *escrowv1alpha1.QueryProp Agent: agentStr, PreActions: proposal.PreActions, PostActions: proposal.PostActions, + Metadata: proposal.Metadata, }, }, nil } @@ -173,6 +174,7 @@ func (s queryServer) Proposals(ctx context.Context, req *escrowv1alpha1.QueryPro Agent: agentStr, PreActions: proposal.PreActions, PostActions: proposal.PostActions, + Metadata: proposal.Metadata, }, nil }) if err != nil { diff --git a/x/escrow/keeper/internal/grpc_query_test.go b/x/escrow/keeper/internal/grpc_query_test.go index 24df133..e190f2e 100644 --- a/x/escrow/keeper/internal/grpc_query_test.go +++ b/x/escrow/keeper/internal/grpc_query_test.go @@ -12,8 +12,7 @@ func (s *KeeperTestSuite) TestQueryParams() { return err } s.Require().NotNil(res) - - s.Require().NotNil(res.Params) + s.Require().NotZero(res.MaxMetadataLength) return nil } diff --git a/x/escrow/keeper/internal/keeper.go b/x/escrow/keeper/internal/keeper.go index 4c6b42b..c2a5645 100644 --- a/x/escrow/keeper/internal/keeper.go +++ b/x/escrow/keeper/internal/keeper.go @@ -1,8 +1,11 @@ package internal import ( + "context" + "cosmossdk.io/collections" "cosmossdk.io/core/store" + errorsmod "cosmossdk.io/errors" "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" @@ -88,6 +91,10 @@ func (k Keeper) addressStringToBytes(addr string) (sdk.AccAddress, error) { return addrBytes, nil } +func (k Keeper) GetAuthority() sdk.AccAddress { + return k.authority +} + func (k Keeper) validateAuthority(candidate sdk.AccAddress) error { if !candidate.Equals(k.authority) { return escrowv1alpha1.ErrPermissionDenied.Wrap("not authority") @@ -96,3 +103,15 @@ func (k Keeper) validateAuthority(candidate sdk.AccAddress) error { return nil } +func (k Keeper) validateMetadata(ctx context.Context, metadata string) error { + params, err := k.GetParams(ctx) + if err != nil { + return err + } + + if length := uint64(len(metadata)); length > params.MaxMetadataLength { + return errorsmod.Wrapf(escrowv1alpha1.ErrLargeMetadata.Wrapf("over limit of %d", params.MaxMetadataLength), "%d", length) + } + + return nil +} diff --git a/x/escrow/keeper/internal/keeper_test.go b/x/escrow/keeper/internal/keeper_test.go index 4dfe3fc..a8d8812 100644 --- a/x/escrow/keeper/internal/keeper_test.go +++ b/x/escrow/keeper/internal/keeper_test.go @@ -194,6 +194,7 @@ func (s *KeeperTestSuite) SetupTest() { Asset: "cat", }, }), + "sell a cat to buyer for a voucher", ) s.NoError(err) @@ -213,6 +214,7 @@ func (s *KeeperTestSuite) SetupTest() { Asset: "voucher", }, }), + "sell a dog for a voucher", ) s.NoError(err) diff --git a/x/escrow/keeper/internal/msg_server.go b/x/escrow/keeper/internal/msg_server.go index 41dc1e0..c7995d9 100644 --- a/x/escrow/keeper/internal/msg_server.go +++ b/x/escrow/keeper/internal/msg_server.go @@ -29,6 +29,10 @@ func (s msgServer) UpdateParams(ctx context.Context, req *escrowv1alpha1.MsgUpda return nil, escrowv1alpha1.ErrUnimplemented.Wrap("nil authority") } + if req.MaxMetadataLength == 0 { + return nil, escrowv1alpha1.ErrUnimplemented.Wrap("nil max_metadata_length") + } + authority, err := s.keeper.addressStringToBytes(req.Authority) if err != nil { return nil, errorsmod.Wrap(err, "authority") @@ -38,11 +42,16 @@ func (s msgServer) UpdateParams(ctx context.Context, req *escrowv1alpha1.MsgUpda return nil, err } - if err := s.keeper.UpdateParams(ctx, &escrowv1alpha1.Params{}); err != nil { + if err := s.keeper.UpdateParams(ctx, &escrowv1alpha1.Params{ + MaxMetadataLength: req.MaxMetadataLength, + }); err != nil { return nil, err } - if err := sdk.UnwrapSDKContext(ctx).EventManager().EmitTypedEvent(&escrowv1alpha1.EventUpdateParams{}); err != nil { + if err := sdk.UnwrapSDKContext(ctx).EventManager().EmitTypedEvent(&escrowv1alpha1.EventUpdateParams{ + Authority: req.Authority, + MaxMetadataLength: req.MaxMetadataLength, + }); err != nil { return nil, escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()) } @@ -96,6 +105,10 @@ func (s msgServer) SubmitProposal(ctx context.Context, req *escrowv1alpha1.MsgSu return nil, escrowv1alpha1.ErrUnimplemented.Wrap("nil post_actions") } + if req.Metadata == "" { + return nil, escrowv1alpha1.ErrUnimplemented.Wrap("nil metadata") + } + proposer, err := s.keeper.addressStringToBytes(req.Proposer) if err != nil { return nil, errorsmod.Wrap(err, "proposer") @@ -116,7 +129,7 @@ func (s msgServer) SubmitProposal(ctx context.Context, req *escrowv1alpha1.MsgSu return nil, errorsmod.Wrap(err, "post_actions") } - id, err := s.keeper.SubmitProposal(ctx, proposer, agent, req.PreActions, req.PostActions) + id, err := s.keeper.SubmitProposal(ctx, proposer, agent, req.PreActions, req.PostActions, req.Metadata) if err != nil { return nil, err } @@ -127,6 +140,7 @@ func (s msgServer) SubmitProposal(ctx context.Context, req *escrowv1alpha1.MsgSu Agent: req.Agent, PreActions: req.PreActions, PostActions: req.PostActions, + Metadata: req.Metadata, }); err != nil { return nil, escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()) } diff --git a/x/escrow/keeper/internal/msg_server_test.go b/x/escrow/keeper/internal/msg_server_test.go index fdc18f8..bf1ddfd 100644 --- a/x/escrow/keeper/internal/msg_server_test.go +++ b/x/escrow/keeper/internal/msg_server_test.go @@ -8,6 +8,65 @@ import ( testv1alpha1 "github.com/0tech/andromeda/x/test/andromeda/test/v1alpha1" ) +func (s *KeeperTestSuite) TestMsgUpdateParams() { + tester := func(subject escrowv1alpha1.MsgUpdateParams) error { + ctx, _ := sdk.UnwrapSDKContext(s.ctx).CacheContext() + res, err := s.msgServer.UpdateParams(ctx, &subject) + if err != nil { + return err + } + s.Require().NotNil(res) + + events := ctx.EventManager().Events() + s.Require().Len(events, 1) + + eventExpected, err := sdk.TypedEventToEvent(&escrowv1alpha1.EventUpdateParams{ + Authority: subject.Authority, + MaxMetadataLength: subject.MaxMetadataLength, + }) + s.Require().NoError(err) + s.Require().Equal(eventExpected, events[0]) + + return nil + } + cases := []map[string]testutil.Case[escrowv1alpha1.MsgUpdateParams]{ + { + "nil authority": { + Error: func() error { + return escrowv1alpha1.ErrUnimplemented + }, + }, + "valid authority": { + Malleate: func(subject *escrowv1alpha1.MsgUpdateParams) { + subject.Authority = s.addressBytesToString(s.keeper.GetAuthority()) + }, + }, + "invalid authority": { + Malleate: func(subject *escrowv1alpha1.MsgUpdateParams) { + subject.Authority = notInBech32 + }, + Error: func() error { + return escrowv1alpha1.ErrInvalidAddress + }, + }, + }, + { + "nil max_metadata_length": { + Error: func() error { + return escrowv1alpha1.ErrUnimplemented + }, + }, + "valid max_metadata_length": { + Malleate: func(subject *escrowv1alpha1.MsgUpdateParams) { + subject.MaxMetadataLength = s.keeper.DefaultGenesis().Params.MaxMetadataLength + }, + }, + }, + } + + testutil.DoTest(s.T(), tester, cases) +} + func (s *KeeperTestSuite) TestMsgCreateAgent() { tester := func(subject escrowv1alpha1.MsgCreateAgent) error { ctx, _ := sdk.UnwrapSDKContext(s.ctx).CacheContext() @@ -76,6 +135,7 @@ func (s *KeeperTestSuite) TestMsgSubmitProposal() { Agent: subject.Agent, PreActions: subject.PreActions, PostActions: subject.PostActions, + Metadata: subject.Metadata, }) s.Require().NoError(err) s.Require().Equal(eventExpected, events[len(events)-1]) @@ -175,6 +235,18 @@ func (s *KeeperTestSuite) TestMsgSubmitProposal() { }, }, }, + { + "nil metadata": { + Error: func() error { + return escrowv1alpha1.ErrUnimplemented + }, + }, + "valid metadata": { + Malleate: func(subject *escrowv1alpha1.MsgSubmitProposal) { + subject.Metadata = "sell a snake for a voucher" + }, + }, + }, } testutil.DoTest(s.T(), tester, cases) diff --git a/x/escrow/keeper/internal/params.go b/x/escrow/keeper/internal/params.go index d1f80c7..00b3efb 100644 --- a/x/escrow/keeper/internal/params.go +++ b/x/escrow/keeper/internal/params.go @@ -3,17 +3,29 @@ package internal import ( "context" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + escrowv1alpha1 "github.com/0tech/andromeda/x/escrow/andromeda/escrow/v1alpha1" ) -func (k Keeper) UpdateParams(ctx context.Context, params *escrowv1alpha1.Params) error { - return k.setParams(ctx, params) +func (k Keeper) UpdateParams(ctx context.Context, newParams *escrowv1alpha1.Params) error { + oldParams, err := k.GetParams(ctx) + if err != nil { + return err + } + + if newParams.MaxMetadataLength < oldParams.MaxMetadataLength { + // TODO: define error + return sdkerrors.ErrInvalidRequest.Wrap("cannot lower max_metadata_length") + } + + return k.setParams(ctx, newParams) } func (k Keeper) GetParams(ctx context.Context) (*escrowv1alpha1.Params, error) { params, err := k.params.Get(ctx) if err != nil { - return nil, err + return nil, escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()) } return ¶ms, nil diff --git a/x/escrow/keeper/internal/params_test.go b/x/escrow/keeper/internal/params_test.go new file mode 100644 index 0000000..d82dc64 --- /dev/null +++ b/x/escrow/keeper/internal/params_test.go @@ -0,0 +1,63 @@ +package internal_test + +import ( + sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + + escrowv1alpha1 "github.com/0tech/andromeda/x/escrow/andromeda/escrow/v1alpha1" + "github.com/0tech/andromeda/x/escrow/testutil" +) + +func (s *KeeperTestSuite) TestUpdateParams() { + type updateParams struct { + newParams *escrowv1alpha1.Params + } + + tester := func(subject updateParams) error { + s.NotNil(subject.newParams) + s.NotZero(subject.newParams.MaxMetadataLength) + + ctx, _ := sdk.UnwrapSDKContext(s.ctx).CacheContext() + err := s.keeper.UpdateParams(ctx, subject.newParams) + if err != nil { + return err + } + + paramsBefore, err := s.keeper.GetParams(s.ctx) + s.Assert().NoError(err) + s.Assert().NotNil(paramsBefore) + + paramsAfter, err := s.keeper.GetParams(ctx) + s.Require().NoError(err) + s.Require().NotNil(paramsAfter) + s.Require().Equal(subject.newParams, paramsAfter) + + return nil + } + cases := []map[string]testutil.Case[updateParams]{ + { + "": { + Malleate: func(subject *updateParams) { + subject.newParams = &escrowv1alpha1.Params{} + }, + }, + }, + { + "valid max_metadata_length": { + Malleate: func(subject *updateParams) { + subject.newParams.MaxMetadataLength = s.keeper.DefaultGenesis().Params.MaxMetadataLength + }, + }, + "max_metadata_length is lesser than the current's": { + Malleate: func(subject *updateParams) { + subject.newParams.MaxMetadataLength = s.keeper.DefaultGenesis().Params.MaxMetadataLength - 1 + }, + Error: func() error { + return sdkerrors.ErrInvalidRequest + }, + }, + }, + } + + testutil.DoTest(s.T(), tester, cases) +} diff --git a/x/escrow/keeper/internal/proposal.go b/x/escrow/keeper/internal/proposal.go index 84cfea9..571767d 100644 --- a/x/escrow/keeper/internal/proposal.go +++ b/x/escrow/keeper/internal/proposal.go @@ -12,7 +12,11 @@ import ( escrowv1alpha1 "github.com/0tech/andromeda/x/escrow/andromeda/escrow/v1alpha1" ) -func (k Keeper) SubmitProposal(ctx context.Context, proposer, agent sdk.AccAddress, preActions, postActions []*codectypes.Any) (uint64, error) { +func (k Keeper) SubmitProposal(ctx context.Context, proposer, agent sdk.AccAddress, preActions, postActions []*codectypes.Any, metadata string) (uint64, error) { + if err := k.validateMetadata(ctx, metadata); err != nil { + return 0, err + } + if err := k.HasAgent(ctx, agent, proposer); err != nil { return 0, err } @@ -26,6 +30,7 @@ func (k Keeper) SubmitProposal(ctx context.Context, proposer, agent sdk.AccAddre Agent: agent, PreActions: preActions, PostActions: postActions, + Metadata: metadata, }); err != nil { return 0, err } diff --git a/x/escrow/keeper/internal/proposal_test.go b/x/escrow/keeper/internal/proposal_test.go index 5273fbf..bb1a440 100644 --- a/x/escrow/keeper/internal/proposal_test.go +++ b/x/escrow/keeper/internal/proposal_test.go @@ -15,6 +15,7 @@ func (s *KeeperTestSuite) TestSubmitProposal() { agent sdk.AccAddress preActions []*codectypes.Any postActions []*codectypes.Any + metadata string } tester := func(subject submitProposal) error { @@ -22,9 +23,10 @@ func (s *KeeperTestSuite) TestSubmitProposal() { s.NotNil(subject.agent) s.NotNil(subject.preActions) s.NotNil(subject.postActions) + s.NotEmpty(subject.metadata) ctx, _ := sdk.UnwrapSDKContext(s.ctx).CacheContext() - id, err := s.keeper.SubmitProposal(ctx, subject.proposer, subject.agent, subject.preActions, subject.postActions) + id, err := s.keeper.SubmitProposal(ctx, subject.proposer, subject.agent, subject.preActions, subject.postActions, subject.metadata) if err != nil { return err } @@ -43,6 +45,7 @@ func (s *KeeperTestSuite) TestSubmitProposal() { s.Require().Equal(subject.agent, sdk.AccAddress(proposalAfter.Agent)) s.Require().Equal(subject.preActions, proposalAfter.PreActions) s.Require().Equal(subject.postActions, proposalAfter.PostActions) + s.Require().Equal(subject.metadata, proposalAfter.Metadata) return nil } @@ -109,6 +112,21 @@ func (s *KeeperTestSuite) TestSubmitProposal() { }, }, }, + { + "valid metadata": { + Malleate: func(subject *submitProposal) { + subject.metadata = "sell a snake for a voucher" + }, + }, + "large metadata": { + Malleate: func(subject *submitProposal) { + subject.metadata = string(make([]rune, s.keeper.DefaultGenesis().Params.MaxMetadataLength+1)) + }, + Error: func() error { + return escrowv1alpha1.ErrLargeMetadata + }, + }, + }, } testutil.DoTest(s.T(), tester, cases) diff --git a/x/escrow/module/autocli.go b/x/escrow/module/autocli.go index 1a61732..cb4a032 100644 --- a/x/escrow/module/autocli.go +++ b/x/escrow/module/autocli.go @@ -16,10 +16,10 @@ func (AppModule) AutoCLIOptions() *autocliv1.ModuleOptions { RpcCommandOptions: []*autocliv1.RpcCommandOptions{ { RpcMethod: "Params", - Short: "queries the module params.", + Short: "queries the module parameters.", Use: "params", Example: `$ and query escrow params -params: {}`, +max_metadata_length: "42"`, }, { RpcMethod: "Agent", @@ -62,6 +62,7 @@ pagination: proposal: agent: cosmos1... id: "3" + metadata: very good deal post_actions: - type: cosmos-sdk/MsgSend value: @@ -88,6 +89,7 @@ pagination: proposals: - agent: cosmos1... id: "3" + metadata: very good deal post_actions: - type: cosmos-sdk/MsgSend value: @@ -106,6 +108,7 @@ proposals: proposer: cosmos1... - agent: cosmos1... id: "4" + metadata: limited time offer for you post_actions: - type: cosmos-sdk/MsgSend value: @@ -140,14 +143,34 @@ proposals: Long: `updates the module parameters. Note: - params: - All parameters must be supplied.`, - Use: "update-params --from [authority] --params [params]", + max-metadata-length: + it must be greater than or equal to the current's.`, + Use: "update-params --from [authority] --max-metadata-length [max-metadata-length]", FlagOptions: map[string]*autocliv1.FlagOptions{ - "params": { - Usage: "the parameters to update", + "max_metadata_length": { + Usage: "the maximum length allowed for metadata", }, }, + Example: `$ and tx escrow update-params --from cosmos1aaa... --max-metadata-length 42 +auth_info: + fee: + amount: [] + gas_limit: "200000" + granter: "" + payer: "" + signer_infos: [] + tip: null +body: + extension_options: [] + memo: "" + messages: + - '@type': /andromeda.escrow.v1alpha1.MsgUpdateParams + authority: cosmos1aaa... + max_metadata_length: "42" + non_critical_extension_options: [] + timeout_height: "0" +signatures: [] +confirm transaction before signing and broadcasting [y/N]:`, }, { RpcMethod: "CreateAgent", @@ -185,7 +208,7 @@ Note: the signer of each message must be either the proposer or the agent. post-actions: the signer of each message must be either the proposer or the agent.`, - Use: "submit-proposal --from [proposer] --agent [agent] --pre-actions [pre-actions] --post-actions [post-actions]", + Use: "submit-proposal --from [proposer] --agent [agent] --pre-actions [pre-actions] --post-actions [post-actions] --metadata [metadata]", FlagOptions: map[string]*autocliv1.FlagOptions{ "agent": { Usage: "the address of the agent in charge", @@ -198,6 +221,9 @@ Note: Usage: "the messages which will be executed after the actions included in Msg/Exec", DefaultValue: "{}", }, + "metadata": { + Usage: "any arbitrary metadata attached to the proposal", + }, }, Example: `$ and tx escrow submit-proposal --from cosmos1ppp... --agent cosmos1aaa... \ --pre-actions '{"@type": "/cosmos.nft.v1beta1.MsgSend", @@ -208,7 +234,8 @@ Note: --post-actions '{"@type": "/cosmos.bank.v1beta1.MsgSend", "from_address": "cosmos1aaa", "to_address": "cosmos1ppp...", - "amount": [{"amount": "42", "denom": "stake"}]}' + "amount": [{"amount": "42", "denom": "stake"}]}' \ + --metadata "sell octocat for 42stake" auth_info: fee: amount: [] @@ -223,6 +250,7 @@ body: messages: - '@type': /andromeda.escrow.v1alpha1.MsgSubmitProposal agent: cosmos1aaa... + metadata: sell octocat for 42stake post_actions: - '@type': /cosmos.bank.v1beta1.MsgSend amount: diff --git a/x/escrow/proto/andromeda/escrow/v1alpha1/event.proto b/x/escrow/proto/andromeda/escrow/v1alpha1/event.proto index a75b343..143c575 100644 --- a/x/escrow/proto/andromeda/escrow/v1alpha1/event.proto +++ b/x/escrow/proto/andromeda/escrow/v1alpha1/event.proto @@ -6,6 +6,11 @@ import "google/protobuf/any.proto"; // EventUpdateParams is emitted on Msg/UpdateParams. message EventUpdateParams { + // the address of the module authority + string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // the maximum length allowed for metadata + uint64 max_metadata_length = 2; } // EventCreateAgent is emitted on Msg/CreateAgent. @@ -33,6 +38,9 @@ message EventSubmitProposal { // the messages which will be executed after the actions included in Msg/Exec repeated google.protobuf.Any post_actions = 5; + + // any arbitrary metadata attached to the proposal + string metadata = 6; } // EventExec is emitted on Msg/Exec. diff --git a/x/escrow/proto/andromeda/escrow/v1alpha1/genesis.proto b/x/escrow/proto/andromeda/escrow/v1alpha1/genesis.proto index 92ed024..9d9ec58 100644 --- a/x/escrow/proto/andromeda/escrow/v1alpha1/genesis.proto +++ b/x/escrow/proto/andromeda/escrow/v1alpha1/genesis.proto @@ -7,7 +7,10 @@ import "google/protobuf/any.proto"; // GenesisState defines the module's genesis state. message GenesisState { // Params defines the parameters for the module. - message Params {} + message Params { + // the maximum length allowed for metadata + uint64 max_metadata_length = 1; + } // all the paramaters of the module Params params = 1; @@ -46,6 +49,9 @@ message GenesisState { // the messages which will be executed after the actions included in Msg/Exec repeated google.protobuf.Any post_actions = 5; + + // any arbitrary metadata attached to the proposal + string metadata = 6; } // all the proposals diff --git a/x/escrow/proto/andromeda/escrow/v1alpha1/query.proto b/x/escrow/proto/andromeda/escrow/v1alpha1/query.proto index 6b1d8b0..8da9ce5 100644 --- a/x/escrow/proto/andromeda/escrow/v1alpha1/query.proto +++ b/x/escrow/proto/andromeda/escrow/v1alpha1/query.proto @@ -39,11 +39,8 @@ message QueryParamsRequest {} // QueryParamsResponse is the response type for the Query/Params RPC method. message QueryParamsResponse { - // Params defines the parameters for the module. - message Params {} - - // the parameters of the module - Params params = 1; + // the maximum length allowed for metadata + uint64 max_metadata_length = 1; } // QueryAgentRequest is the request type for the Query/Agent RPC method. @@ -115,6 +112,9 @@ message QueryProposalResponse { // the messages which will be executed after the actions included in Msg/Exec repeated google.protobuf.Any post_actions = 5; + + // any arbitrary metadata attached to the proposal + string metadata = 6; } // the corresponding proposal @@ -145,6 +145,9 @@ message QueryProposalsResponse { // the messages which will be executed after the actions included in Msg/Exec repeated google.protobuf.Any post_actions = 5; + + // any arbitrary metadata attached to the proposal + string metadata = 6; } // all the proposals diff --git a/x/escrow/proto/andromeda/escrow/v1alpha1/tx.proto b/x/escrow/proto/andromeda/escrow/v1alpha1/tx.proto index faa486d..52fdc88 100644 --- a/x/escrow/proto/andromeda/escrow/v1alpha1/tx.proto +++ b/x/escrow/proto/andromeda/escrow/v1alpha1/tx.proto @@ -29,12 +29,9 @@ message MsgUpdateParams { // the address of the module authority string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; - // Params defines the parameters for the module. - message Params {} - - // the parameters to update - // Note: All parameters must be supplied. - Params params = 2; + // the maximum length allowed for metadata + // Note: it must be greater than or equal to the current's. + uint64 max_metadata_length = 2; } // MsgUpdateParamsResponse is the Msg/UpdateParams response type. @@ -72,6 +69,9 @@ message MsgSubmitProposal { // the messages which will be executed after the actions included in Msg/Exec // Note: the signer of each message must be either the proposer or the agent. repeated google.protobuf.Any post_actions = 4; + + // any arbitrary metadata attached to the proposal + string metadata = 5; } // MsgSubmitProposalResponse is the Msg/SubmitProposal response type. diff --git a/x/escrow/proto/andromeda/escrow/v1alpha1/types.proto b/x/escrow/proto/andromeda/escrow/v1alpha1/types.proto index 556cc32..e2909f8 100644 --- a/x/escrow/proto/andromeda/escrow/v1alpha1/types.proto +++ b/x/escrow/proto/andromeda/escrow/v1alpha1/types.proto @@ -4,7 +4,10 @@ package andromeda.escrow.v1alpha1; import "google/protobuf/any.proto"; // Params defines the parameters for the module. -message Params {} +message Params { + // the maximum length allowed for metadata + uint64 max_metadata_length = 1; +} // Agent defines an account taking charge of a proposal. message Agent { @@ -20,4 +23,7 @@ message Proposal { // the messages which will be executed after the actions included in Msg/Exec repeated google.protobuf.Any post_actions = 3; + + // any arbitrary metadata attached to the proposal + string metadata = 4; } From 4608f2556c02af5c90ca68f16f30564bc23bcce2 Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Mon, 22 Jan 2024 14:46:58 +0000 Subject: [PATCH 09/62] Update documentation --- x/escrow/README.md | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/x/escrow/README.md b/x/escrow/README.md index e94cfcb..4430240 100644 --- a/x/escrow/README.md +++ b/x/escrow/README.md @@ -2,7 +2,7 @@ ## Abstract -This modules provides means to execute messages whose signers come from +This module provides means to execute messages whose signers come from different parties. Typical example would be a trade, by which two individual account can exchange assets. Without this module, they have to use a tx which include the messages that requires signatures from both of them. Or, they may @@ -10,7 +10,7 @@ create a contract into x/wasm. The former requires a tool to safely exchange the half-signed transaction (which x/group tries to avoid), while the latter involves cumbersome preparation for certain tailer made contract code. The trade itself would be quite simple and obvious, hence this module tries to -reduce such efforts on those tedious use cases. +reduce such efforts on common use cases. ## Contents @@ -44,34 +44,34 @@ Anyone can create agents as many as they want. ### Proposal -There are two parties involved in a transaction. The first one, proposer, is -who suggests a transaction by broadcasting Msg/SubmitProposal. The second one, -executor, is who accepts the transaction, by broadcasting Msg/Exec. +There are two parties involved in a transaction. The first one, proposer, +suggests a transaction by broadcasting `Msg/SubmitProposal`. The second one, +executor, accepts the transaction, by broadcasting `Msg/Exec`. A transaction consists of pre-actions, actions and post-actions. All three -actions will be executed in sequence, and all the messages must be successful +actions will be executed in sequence, and all the messages MUST be successful to complete the transaction. Pre-actions are steps for transferring the control on certain assets from the -proposer to the agent, so determined by the proposer on Msg/SubmitProposal. To -ensure the successful transfer at Msg/Exec, pre-actions are executed at the -proposal submission. +proposer to the agent, so determined by the proposer on `Msg/SubmitProposal`. +To ensure the successful transfer at `Msg/Exec`, pre-actions are executed at +the proposal submission. Post-actions are steps for transferring the control on certain assets from the agent to the proposer. Post-actions ensure the proposer gets the proper reward, -so it is determined by the proposer on Msg/SubmitProposal. +so it is determined by the proposer on `Msg/SubmitProposal`. Actions are steps for transferring the control on certain assets from the -executor to agent and vice versa, so determined by the executor on Msg/Exec. +executor to agent and vice versa, so determined by the executor on `Msg/Exec`. The messages included in actions would take assets on the agent (reserved by the proposer), and reserve the reward for the proposer into the agent. The -executor MUST place the reward as stated in Msg/SubmitProposal or the +executor must place the reward as stated in `Msg/SubmitProposal` or the post-actions would fail, resulting the failure of the transaction. #### Submitting Proposals A transaction begins with a certain proposer submitting a proposal. It is -triggered by broadcasting Msg/SubmitProposal. The message has information of +triggered by broadcasting `Msg/SubmitProposal`. The message has information of the proposer, the agent, the pre-actions and post-actions. An agent MUST be prepared by the proposer, in prior to the submission. The signers included in the pre-actions and post-actions MUST be either the @@ -84,7 +84,7 @@ state. #### Executing Proposals A proposal would be executed by a certain executor who is interested in. It is -triggered by broadcasting Msg/Exec. The message has information of the +triggered by broadcasting `Msg/Exec`. The message has information of the executor, the agent and the actions. The agent MUST be indentical with that of the proposal. The signers included in the actions MUST be either the executor or the agent. From d1ab23c3bcabbffa42646c018aea374cb9c4e388 Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Tue, 23 Jan 2024 11:03:23 +0000 Subject: [PATCH 10/62] Update x/test documentation --- x/test/README.md | 78 +++++++++++++++++++ x/test/andromeda/test/v1alpha1/tx.pb.go | 2 + .../api/andromeda/test/v1alpha1/tx.pulsar.go | 2 + x/test/proto/andromeda/test/v1alpha1/tx.proto | 2 + 4 files changed, 84 insertions(+) create mode 100644 x/test/README.md diff --git a/x/test/README.md b/x/test/README.md new file mode 100644 index 0000000..91a3280 --- /dev/null +++ b/x/test/README.md @@ -0,0 +1,78 @@ +# `x/test` + +## Abstract + +Some modules have messages which may use other messages. Typical examples would +be: + +* [`x/escrow`](../escrow/README.md) +* [`x/authz`](https://github.com/cosmos/cosmos-sdk/x/authz/README.md) +* [`x/gov`](https://github.com/cosmos/cosmos-sdk/x/gov/README.md) +* [`x/group`](https://github.com/cosmos/cosmos-sdk/x/group/README.md) + +Testing those kind of messages requires messages with ownership semantics, +however, the corresponding module often lacks such kind of messages. While +implementing (or mocking) such messages by each module would be a good way to +avoid compatibility issues on the test, it would be also resonable to prepare a +simple, stable module only for the tests. That's the rationale of this module. + + +## Contents + +* [Concepts](#concepts) +* [State](#state) +* [Msg Service](#msg-service) + * [Msg/Create](#msgcreate) + * [Msg/Send](#msgsend) +* [Events](#events) + * [EventCreate](#eventcreate) + * [EventSend](#eventsend) + + +## Concepts + +### Asset + +Assets would be identified by its name in string. You cannot stack same assets +on the same account. Anyone can create assets by their own. + + +## State + +### Assets + +* Assets: `0xff | "andromeda/test/asset" | owner_address | asset_name -> ProtocolBuffer(Asset)` + +```protobuf reference +https://github.com/0tech/andromeda/blob/main/x/test/proto/andromeda/test/v1alpha1/types.proto#L3-L5 +``` + + +## Msg Service + +### Msg/Create + +```protobuf reference +https://github.com/0tech/andromeda/blob/main/x/test/proto/andromeda/test/v1alpha1/tx.proto#L18-L27 +``` + +### Msg/Send + +```protobuf reference +https://github.com/0tech/andromeda/blob/main/x/test/proto/andromeda/test/v1alpha1/tx.proto#L32-L44 +``` + + +## Events + +### EventCreate + +```protobuf reference +https://github.com/0tech/andromeda/blob/main/x/test/proto/andromeda/test/v1alpha1/event.proto#L6-L13 +``` + +### EventSend + +```protobuf reference +https://github.com/0tech/andromeda/blob/main/x/test/proto/andromeda/test/v1alpha1/event.proto#L15-L25 +``` diff --git a/x/test/andromeda/test/v1alpha1/tx.pb.go b/x/test/andromeda/test/v1alpha1/tx.pb.go index 114748b..18f1e1d 100644 --- a/x/test/andromeda/test/v1alpha1/tx.pb.go +++ b/x/test/andromeda/test/v1alpha1/tx.pb.go @@ -34,6 +34,7 @@ type MsgCreate struct { // the address of the creator Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` // the name of the asset to create + // Note: if creator already has the same asset, it will fail. Asset string `protobuf:"bytes,2,opt,name=asset,proto3" json:"asset,omitempty"` } @@ -126,6 +127,7 @@ type MsgSend struct { // the address of the sender Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` // the address of the recipient + // Note: if the recipient already has the same asset, it will fail. Recipient string `protobuf:"bytes,2,opt,name=recipient,proto3" json:"recipient,omitempty"` // the asset to send Asset string `protobuf:"bytes,3,opt,name=asset,proto3" json:"asset,omitempty"` diff --git a/x/test/api/andromeda/test/v1alpha1/tx.pulsar.go b/x/test/api/andromeda/test/v1alpha1/tx.pulsar.go index 7b1cc90..bdc1532 100644 --- a/x/test/api/andromeda/test/v1alpha1/tx.pulsar.go +++ b/x/test/api/andromeda/test/v1alpha1/tx.pulsar.go @@ -1780,6 +1780,7 @@ type MsgCreate struct { // the address of the creator Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` // the name of the asset to create + // Note: if creator already has the same asset, it will fail. Asset string `protobuf:"bytes,2,opt,name=asset,proto3" json:"asset,omitempty"` } @@ -1853,6 +1854,7 @@ type MsgSend struct { // the address of the sender Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` // the address of the recipient + // Note: if the recipient already has the same asset, it will fail. Recipient string `protobuf:"bytes,2,opt,name=recipient,proto3" json:"recipient,omitempty"` // the asset to send Asset string `protobuf:"bytes,3,opt,name=asset,proto3" json:"asset,omitempty"` diff --git a/x/test/proto/andromeda/test/v1alpha1/tx.proto b/x/test/proto/andromeda/test/v1alpha1/tx.proto index 1cb27c7..bcff235 100644 --- a/x/test/proto/andromeda/test/v1alpha1/tx.proto +++ b/x/test/proto/andromeda/test/v1alpha1/tx.proto @@ -23,6 +23,7 @@ message MsgCreate { string creator = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; // the name of the asset to create + // Note: if creator already has the same asset, it will fail. string asset = 2; } @@ -37,6 +38,7 @@ message MsgSend { string sender = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; // the address of the recipient + // Note: if the recipient already has the same asset, it will fail. string recipient = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; // the asset to send From 76bcac56b97a9afd6938f1ffa0a0cfdc42a559e4 Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Tue, 23 Jan 2024 11:29:20 +0000 Subject: [PATCH 11/62] Make assets prefix configurable so the consumer can avoid collision --- x/escrow/keeper/internal/keeper_test.go | 2 +- x/test/README.md | 4 +++- x/test/keeper/exported.go | 2 ++ x/test/keeper/internal/keeper.go | 8 +++++++- x/test/keeper/internal/keeper_test.go | 2 +- x/test/keeper/internal/keys.go | 2 +- x/test/module/module.go | 2 +- 7 files changed, 16 insertions(+), 6 deletions(-) diff --git a/x/escrow/keeper/internal/keeper_test.go b/x/escrow/keeper/internal/keeper_test.go index a8d8812..cd1f40b 100644 --- a/x/escrow/keeper/internal/keeper_test.go +++ b/x/escrow/keeper/internal/keeper_test.go @@ -346,7 +346,7 @@ func setupEscrowKeeper(t *testing.T, bapp *baseapp.BaseApp, cdc codec.Codec, key } func setupTestKeeper(t *testing.T, bapp *baseapp.BaseApp, cdc codec.Codec, key *storetypes.KVStoreKey) *testkeeper.Keeper { - testKeeper, err := testkeeper.NewKeeper(cdc, runtime.NewKVStoreService(key)) + testKeeper, err := testkeeper.NewKeeper(cdc, runtime.NewKVStoreService(key), nil) assert.NoError(t, err) msgServer := testkeeper.NewMsgServer(*testKeeper) diff --git a/x/test/README.md b/x/test/README.md index 91a3280..0b5daee 100644 --- a/x/test/README.md +++ b/x/test/README.md @@ -41,7 +41,9 @@ on the same account. Anyone can create assets by their own. ### Assets -* Assets: `0xff | "andromeda/test/asset" | owner_address | asset_name -> ProtocolBuffer(Asset)` +One can change the prefix through the argument of the keeper. + +* Assets: `0xff | owner_address | asset_name -> ProtocolBuffer(Asset)` ```protobuf reference https://github.com/0tech/andromeda/blob/main/x/test/proto/andromeda/test/v1alpha1/types.proto#L3-L5 diff --git a/x/test/keeper/exported.go b/x/test/keeper/exported.go index 1d6b9e4..79fdc56 100644 --- a/x/test/keeper/exported.go +++ b/x/test/keeper/exported.go @@ -16,10 +16,12 @@ type Keeper struct { func NewKeeper( cdc codec.Codec, storeService store.KVStoreService, + prefix []byte, ) (*Keeper, error) { impl, err := internal.NewKeeper( cdc, storeService, + prefix, ) if err != nil { return nil, err diff --git a/x/test/keeper/internal/keeper.go b/x/test/keeper/internal/keeper.go index 3ad9e4b..2ab3369 100644 --- a/x/test/keeper/internal/keeper.go +++ b/x/test/keeper/internal/keeper.go @@ -21,11 +21,17 @@ type Keeper struct { func NewKeeper( cdc codec.Codec, storeService store.KVStoreService, + prefix []byte, ) (*Keeper, error) { sb := collections.NewSchemaBuilder(storeService) + + if len(prefix) == 0 { + prefix = assetsKeyPrefix + } + k := &Keeper{ cdc: cdc, - assets: collections.NewMap(sb, assetsKeyPrefix, "assets", + assets: collections.NewMap(sb, prefix, "assets", collections.PairKeyCodec(sdk.AccAddressKey, collections.StringKey), codec.CollValue[testv1alpha1.Asset](cdc), ), diff --git a/x/test/keeper/internal/keeper_test.go b/x/test/keeper/internal/keeper_test.go index 82e5eb0..66e2c4a 100644 --- a/x/test/keeper/internal/keeper_test.go +++ b/x/test/keeper/internal/keeper_test.go @@ -144,7 +144,7 @@ func setupTestKeeper(t *testing.T) ( ) bapp.SetInterfaceRegistry(ir) - testKeeper, err := keeper.NewKeeper(encCfg.Codec, runtime.NewKVStoreService(key)) + testKeeper, err := keeper.NewKeeper(encCfg.Codec, runtime.NewKVStoreService(key), nil) assert.NoError(t, err) msgServer := keeper.NewMsgServer(*testKeeper) diff --git a/x/test/keeper/internal/keys.go b/x/test/keeper/internal/keys.go index c7044f5..2493200 100644 --- a/x/test/keeper/internal/keys.go +++ b/x/test/keeper/internal/keys.go @@ -4,4 +4,4 @@ import ( "cosmossdk.io/collections" ) -var assetsKeyPrefix = collections.NewPrefix(append([]byte{0xff}, []byte("andromeda/test/asset")...)) +var assetsKeyPrefix = collections.NewPrefix(0xff) diff --git a/x/test/module/module.go b/x/test/module/module.go index 2a90863..c7887f5 100644 --- a/x/test/module/module.go +++ b/x/test/module/module.go @@ -126,7 +126,7 @@ type TestOutputs struct { } func ProvideModule(in TestInputs) TestOutputs { - k, err := keeper.NewKeeper(in.Cdc, in.StoreService) + k, err := keeper.NewKeeper(in.Cdc, in.StoreService, nil) if err != nil { panic(err) } From 89e2f28c5bdfb886d7dcc8d7a74e1b62e093b75e Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Wed, 24 Jan 2024 13:50:22 +0000 Subject: [PATCH 12/62] Add minimal build configuration --- CMakeLists.txt | 25 ++++++++++++++++ app/CMakeLists.txt | 36 +++++++++++++++++++++++ cmd/and/CMakeLists.txt | 36 +++++++++++++++++++++++ x/escrow/CMakeLists.txt | 64 +++++++++++++++++++++++++++++++++++++++++ x/test/CMakeLists.txt | 64 +++++++++++++++++++++++++++++++++++++++++ 5 files changed, 225 insertions(+) create mode 100644 CMakeLists.txt create mode 100644 app/CMakeLists.txt create mode 100644 cmd/and/CMakeLists.txt create mode 100644 x/escrow/CMakeLists.txt create mode 100644 x/test/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..f085828 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,25 @@ +cmake_minimum_required(VERSION 3.25.1) + +option(CMAKE_COLOR_DIAGNOSTICS + "Enable/Disable color output during build.") + +project(andromeda + LANGUAGES NONE +) +enable_testing() + +# go +add_custom_target(tidy) +add_custom_target(lint) +add_custom_target(build ALL) + +# buf +add_custom_target(buf_build) +add_custom_target(buf_lint) +add_custom_target(buf_generate) + +add_subdirectory(app) +add_subdirectory(cmd/and) + +add_subdirectory(x/escrow) +add_subdirectory(x/test) diff --git a/app/CMakeLists.txt b/app/CMakeLists.txt new file mode 100644 index 0000000..b65116a --- /dev/null +++ b/app/CMakeLists.txt @@ -0,0 +1,36 @@ +project(app + LANGUAGES NONE +) + +add_custom_target(tidy_app + COMMAND go mod tidy + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} + VERBATIM +) +add_dependencies(tidy + tidy_app +) + +add_custom_target(lint_app + COMMAND golangci-lint run --fix + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} + VERBATIM +) +add_dependencies(lint + lint_app +) + +add_custom_target(build_app + COMMAND go build ./... + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} + VERBATIM +) +add_dependencies(build + build_app +) + +add_test( + NAME app + COMMAND go test ./... + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} +) diff --git a/cmd/and/CMakeLists.txt b/cmd/and/CMakeLists.txt new file mode 100644 index 0000000..aa1951f --- /dev/null +++ b/cmd/and/CMakeLists.txt @@ -0,0 +1,36 @@ +project(and + LANGUAGES NONE +) + +add_custom_target(tidy_and + COMMAND go mod tidy + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} + VERBATIM +) +add_dependencies(tidy + tidy_and +) + +add_custom_target(lint_and + COMMAND golangci-lint run --fix + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} + VERBATIM +) +add_dependencies(lint + lint_and +) + +add_custom_target(build_and + COMMAND go build -o ${andromeda_BINARY_DIR} ./... + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} + VERBATIM +) +add_dependencies(build + build_and +) + +add_test( + NAME and + COMMAND go test ./... + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} +) diff --git a/x/escrow/CMakeLists.txt b/x/escrow/CMakeLists.txt new file mode 100644 index 0000000..c894a17 --- /dev/null +++ b/x/escrow/CMakeLists.txt @@ -0,0 +1,64 @@ +project(x-escrow + LANGUAGES NONE +) + +add_custom_target(tidy_x-escrow + COMMAND go mod tidy + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} + VERBATIM +) +add_dependencies(tidy + tidy_x-escrow +) + +add_custom_target(lint_x-escrow + COMMAND golangci-lint run --fix + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} + VERBATIM +) +add_dependencies(lint + lint_x-escrow +) + +add_custom_target(build_x-escrow + COMMAND go build ./... + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} + VERBATIM +) +add_dependencies(build + build_x-escrow +) + +add_test( + NAME x-escrow + COMMAND go test ./... + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} +) + +add_custom_target(buf_build_x-escrow + COMMAND buf build + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/proto + VERBATIM +) +add_dependencies(buf_build + buf_build_x-escrow +) + +add_custom_target(buf_lint_x-escrow + COMMAND buf lint + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/proto + VERBATIM +) +add_dependencies(buf_lint + buf_lint_x-escrow +) + +add_custom_target(buf_generate_x-escrow + COMMAND buf generate --template buf.gen.gogo.yaml + COMMAND buf generate --template buf.gen.pulsar.yaml + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/proto + VERBATIM +) +add_dependencies(buf_generate + buf_generate_x-escrow +) diff --git a/x/test/CMakeLists.txt b/x/test/CMakeLists.txt new file mode 100644 index 0000000..43c9e53 --- /dev/null +++ b/x/test/CMakeLists.txt @@ -0,0 +1,64 @@ +project(x-test + LANGUAGES NONE +) + +add_custom_target(tidy_x-test + COMMAND go mod tidy + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} + VERBATIM +) +add_dependencies(tidy + tidy_x-test +) + +add_custom_target(lint_x-test + COMMAND golangci-lint run --fix + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} + VERBATIM +) +add_dependencies(lint + lint_x-test +) + +add_custom_target(build_x-test + COMMAND go build ./... + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} + VERBATIM +) +add_dependencies(build + build_x-test +) + +add_test( + NAME x-test + COMMAND go test ./... + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} +) + +add_custom_target(buf_build_x-test + COMMAND buf build + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/proto + VERBATIM +) +add_dependencies(buf_build + buf_build_x-test +) + +add_custom_target(buf_lint_x-test + COMMAND buf lint + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/proto + VERBATIM +) +add_dependencies(buf_lint + buf_lint_x-test +) + +add_custom_target(buf_generate_x-test + COMMAND buf generate --template buf.gen.gogo.yaml + COMMAND buf generate --template buf.gen.pulsar.yaml + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/proto + VERBATIM +) +add_dependencies(buf_generate + buf_generate_x-test +) From 20f5a5eede8f2294a40de32e31ad1f5509bc6250 Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Thu, 25 Jan 2024 11:36:03 +0000 Subject: [PATCH 13/62] Add workflows --- .github/workflows/module.yml | 79 +++++++++++++++++++++++++++++++ .github/workflows/modules.yml | 18 +++++++ CMakeLists.txt | 3 +- app/CMakeLists.txt | 15 ++++-- cmd/and/CMakeLists.txt | 15 ++++-- sonar-project.properties | 13 +++++ x/escrow/CMakeLists.txt | 17 +++++-- x/escrow/sonar-project.properties | 17 +++++++ x/test/CMakeLists.txt | 17 +++++-- x/test/sonar-project.properties | 17 +++++++ 10 files changed, 196 insertions(+), 15 deletions(-) create mode 100644 .github/workflows/module.yml create mode 100644 .github/workflows/modules.yml create mode 100644 sonar-project.properties create mode 100644 x/escrow/sonar-project.properties create mode 100644 x/test/sonar-project.properties diff --git a/.github/workflows/module.yml b/.github/workflows/module.yml new file mode 100644 index 0000000..d43a3a5 --- /dev/null +++ b/.github/workflows/module.yml @@ -0,0 +1,79 @@ +name: Check Module +on: + workflow_call: + inputs: + name: + required: true + type: string + secrets: + sonar-token: + required: true +env: + id: x-${{ inputs.name }} + path: x/${{ inputs.name }} + go-version: '1.21' + go-lint-version: '1.54' + buf-version: '1.29.0' +jobs: + lint: + name: lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: + go-version: ${{ env.go-version }} + - name: Install linter + run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@v${{ env.go-lint-version }} + - name: Configure + run: cmake -S . -B build + - name: Lint + run: cmake --build build --target lint_${{ env.id }} + build: + name: build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: + go-version: ${{ env.go-version }} + - name: Configure + run: cmake -S . -B build + - name: Build + run: cmake --build build --target build_${{ env.id }} + test: + name: test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis + - uses: actions/setup-go@v5 + with: + go-version: ${{ env.go-version }} + - name: Configure + run: cmake -S . -B build + - name: Test + run: | + VERBOSE=1 ctest --test-dir build --output-on-failure --stop-on-failure -R ${{ env.id }} + mv build/${{ env.path }}/cover.out ${{ env.path }}/ + - name: SonarCloud Scan + uses: SonarSource/sonarcloud-github-action@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any + SONAR_TOKEN: ${{ secrets.sonar-token }} + with: + projectBaseDir: ${{ env.path }}/ + buf-lint: + name: buf lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: bufbuild/buf-setup-action@v1 + with: + version: ${{ env.buf-version }} + github_token: ${{ secrets.GITHUB_TOKEN }} + - name: Configure + run: cmake -S . -B build + - name: Lint + run: cmake --build build --target buf_lint_${{ env.id }} diff --git a/.github/workflows/modules.yml b/.github/workflows/modules.yml new file mode 100644 index 0000000..01bb656 --- /dev/null +++ b/.github/workflows/modules.yml @@ -0,0 +1,18 @@ +name: Check Modules +on: + pull_request: +jobs: + check-modules: + name: check modules + strategy: + matrix: + include: + - name: test + sonar-token: SONAR_TOKEN_X_TEST + - name: escrow + sonar-token: SONAR_TOKEN_X_ESCROW + uses: ./.github/workflows/module.yml + with: + name: ${{ matrix.name }} + secrets: + sonar-token: ${{ secrets[matrix.sonar-token] }} diff --git a/CMakeLists.txt b/CMakeLists.txt index f085828..d15bff7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,8 +10,9 @@ enable_testing() # go add_custom_target(tidy) -add_custom_target(lint) +add_custom_target(lint_fix) add_custom_target(build ALL) +add_custom_target(lint) # buf add_custom_target(buf_build) diff --git a/app/CMakeLists.txt b/app/CMakeLists.txt index b65116a..af2179b 100644 --- a/app/CMakeLists.txt +++ b/app/CMakeLists.txt @@ -11,13 +11,13 @@ add_dependencies(tidy tidy_app ) -add_custom_target(lint_app +add_custom_target(lint_fix_app COMMAND golangci-lint run --fix WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} VERBATIM ) -add_dependencies(lint - lint_app +add_dependencies(lint_fix + lint_fix_app ) add_custom_target(build_app @@ -29,6 +29,15 @@ add_dependencies(build build_app ) +add_custom_target(lint_app + COMMAND golangci-lint run + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} + VERBATIM +) +add_dependencies(lint + lint_app +) + add_test( NAME app COMMAND go test ./... diff --git a/cmd/and/CMakeLists.txt b/cmd/and/CMakeLists.txt index aa1951f..ab120cd 100644 --- a/cmd/and/CMakeLists.txt +++ b/cmd/and/CMakeLists.txt @@ -11,13 +11,13 @@ add_dependencies(tidy tidy_and ) -add_custom_target(lint_and +add_custom_target(lint_fix_and COMMAND golangci-lint run --fix WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} VERBATIM ) -add_dependencies(lint - lint_and +add_dependencies(lint_fix + lint_fix_and ) add_custom_target(build_and @@ -29,6 +29,15 @@ add_dependencies(build build_and ) +add_custom_target(lint_and + COMMAND golangci-lint run + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} + VERBATIM +) +add_dependencies(lint + lint_and +) + add_test( NAME and COMMAND go test ./... diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 0000000..a9caa7d --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1,13 @@ +sonar.projectKey=0tech_andromeda +sonar.organization=0tech + +# This is the name and version displayed in the SonarCloud UI. +#sonar.projectName=0tech_andromeda +#sonar.projectVersion=1.0 + + +# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows. +#sonar.sources=. + +# Encoding of the source code. Default is default system encoding +#sonar.sourceEncoding=UTF-8 diff --git a/x/escrow/CMakeLists.txt b/x/escrow/CMakeLists.txt index c894a17..14957fb 100644 --- a/x/escrow/CMakeLists.txt +++ b/x/escrow/CMakeLists.txt @@ -11,13 +11,13 @@ add_dependencies(tidy tidy_x-escrow ) -add_custom_target(lint_x-escrow +add_custom_target(lint_fix_x-escrow COMMAND golangci-lint run --fix WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} VERBATIM ) -add_dependencies(lint - lint_x-escrow +add_dependencies(lint_fix + lint_fix_x-escrow ) add_custom_target(build_x-escrow @@ -29,9 +29,18 @@ add_dependencies(build build_x-escrow ) +add_custom_target(lint_x-escrow + COMMAND golangci-lint run + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} + VERBATIM +) +add_dependencies(lint + lint_x-escrow +) + add_test( NAME x-escrow - COMMAND go test ./... + COMMAND go test -coverprofile ${CMAKE_CURRENT_BINARY_DIR}/cover.out ./... WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} ) diff --git a/x/escrow/sonar-project.properties b/x/escrow/sonar-project.properties new file mode 100644 index 0000000..f2ae3f8 --- /dev/null +++ b/x/escrow/sonar-project.properties @@ -0,0 +1,17 @@ +sonar.projectKey=0tech_andromeda_x-escrow +sonar.organization=0tech + +# This is the name and version displayed in the SonarCloud UI. +sonar.projectName=andromeda - x/escrow +#sonar.projectVersion=1.0 + + +# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows. +#sonar.sources=. +sonar.inclusions=**/*.go +sonar.exclusions=api/**,testutil/**,**/*.pb.go,**/*.pb.gw.go,**/*_test.go +sonar.test.inclusions=**/*_test.go +sonar.go.coverage.reportPaths=cover.out + +# Encoding of the source code. Default is default system encoding +#sonar.sourceEncoding=UTF-8 diff --git a/x/test/CMakeLists.txt b/x/test/CMakeLists.txt index 43c9e53..92b5900 100644 --- a/x/test/CMakeLists.txt +++ b/x/test/CMakeLists.txt @@ -11,13 +11,13 @@ add_dependencies(tidy tidy_x-test ) -add_custom_target(lint_x-test +add_custom_target(lint_fix_x-test COMMAND golangci-lint run --fix WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} VERBATIM ) -add_dependencies(lint - lint_x-test +add_dependencies(lint_fix + lint_fix_x-test ) add_custom_target(build_x-test @@ -29,9 +29,18 @@ add_dependencies(build build_x-test ) +add_custom_target(lint_x-test + COMMAND golangci-lint run + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} + VERBATIM +) +add_dependencies(lint + lint_x-test +) + add_test( NAME x-test - COMMAND go test ./... + COMMAND go test -coverprofile ${CMAKE_CURRENT_BINARY_DIR}/cover.out ./... WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} ) diff --git a/x/test/sonar-project.properties b/x/test/sonar-project.properties new file mode 100644 index 0000000..504f49a --- /dev/null +++ b/x/test/sonar-project.properties @@ -0,0 +1,17 @@ +sonar.projectKey=0tech_andromeda_x-test +sonar.organization=0tech + +# This is the name and version displayed in the SonarCloud UI. +sonar.projectName=andromeda - x/test +#sonar.projectVersion=1.0 + + +# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows. +#sonar.sources=. +sonar.inclusions=**/*.go +sonar.exclusions=api/**,testutil/**,**/*.pb.go,**/*.pb.gw.go,**/*_test.go +sonar.test.inclusions=**/*_test.go +sonar.go.coverage.reportPaths=cover.out + +# Encoding of the source code. Default is default system encoding +#sonar.sourceEncoding=UTF-8 From ae3020c017db7c72c09e1354d0aacdd3edba01ba Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Thu, 25 Jan 2024 12:23:44 +0000 Subject: [PATCH 14/62] Lint x/test --- x/test/.golangci.yaml | 54 +++++++++++++++++++-------------- x/test/keeper/internal/asset.go | 24 +++------------ x/test/module/module.go | 10 +++--- 3 files changed, 41 insertions(+), 47 deletions(-) diff --git a/x/test/.golangci.yaml b/x/test/.golangci.yaml index 80d352c..b3b5839 100644 --- a/x/test/.golangci.yaml +++ b/x/test/.golangci.yaml @@ -1,32 +1,42 @@ run: skip-files: - - ".*\\.pb\\.go$" - - ".*\\.pb\\.gw\\.go$" - - ".*\\.pulsar\\.go$" - - ".*\\.mock\\.go$" + - ".*\\.pb\\.go$" + - ".*\\.pb\\.gw\\.go$" + - ".*\\.pulsar\\.go$" + - ".*\\.mock\\.go$" linters: enable: - - depguard - - dogsled - - exportloopref - - goconst - - gocritic - - gofumpt - - gosec - - misspell - - nakedret - - nolintlint - - revive - - stylecheck - - unconvert + - depguard + - dogsled + - exportloopref + - goconst + - gocritic + - gofumpt + - gosec + - misspell + - nakedret + - nolintlint + - revive + - stylecheck + - unconvert linters-settings: gci: custom-order: true sections: - - standard - - default - - prefix(cosmossdk.io) - - prefix(github.com/cosmos/cosmos-sdk) - - prefix(github.com/0tech/andromeda) + - standard + - default + - prefix(cosmossdk.io) + - prefix(github.com/cosmos/cosmos-sdk) + - prefix(github.com/0tech/andromeda) + depguard: + rules: + main: + allow: + - $gostd + - github.com/stretchr/testify + - github.com/grpc-ecosystem/grpc-gateway/runtime + - cosmossdk.io + - github.com/cosmos/cosmos-sdk + - github.com/0tech/andromeda diff --git a/x/test/keeper/internal/asset.go b/x/test/keeper/internal/asset.go index 30764f2..5118342 100644 --- a/x/test/keeper/internal/asset.go +++ b/x/test/keeper/internal/asset.go @@ -12,11 +12,7 @@ import ( ) func (k Keeper) Create(ctx context.Context, creator sdk.AccAddress, asset string) error { - if err := k.PushAsset(ctx, creator, asset); err != nil { - return err - } - - return nil + return k.PushAsset(ctx, creator, asset) } func (k Keeper) Send(ctx context.Context, sender, recipient sdk.AccAddress, asset string) error { @@ -24,11 +20,7 @@ func (k Keeper) Send(ctx context.Context, sender, recipient sdk.AccAddress, asse return err } - if err := k.PushAsset(ctx, recipient, asset); err != nil { - return err - } - - return nil + return k.PushAsset(ctx, recipient, asset) } func (k Keeper) PushAsset(ctx context.Context, address sdk.AccAddress, asset string) error { @@ -41,11 +33,7 @@ func (k Keeper) PushAsset(ctx context.Context, address sdk.AccAddress, asset str return errorsmod.Wrap(testv1alpha1.ErrAssetAlreadyExists.Wrap(asset), addrStr) } - if err := k.setAsset(ctx, address, asset); err != nil { - return err - } - - return nil + return k.setAsset(ctx, address, asset) } func (k Keeper) PopAsset(ctx context.Context, address sdk.AccAddress, asset string) error { @@ -53,11 +41,7 @@ func (k Keeper) PopAsset(ctx context.Context, address sdk.AccAddress, asset stri return err } - if err := k.removeAsset(ctx, address, asset); err != nil { - return err - } - - return nil + return k.removeAsset(ctx, address, asset) } func (k Keeper) HasAsset(ctx context.Context, address sdk.AccAddress, asset string) error { diff --git a/x/test/module/module.go b/x/test/module/module.go index c7887f5..3808cce 100644 --- a/x/test/module/module.go +++ b/x/test/module/module.go @@ -3,7 +3,7 @@ package module import ( "context" - "github.com/grpc-ecosystem/grpc-gateway/runtime" + gwruntime "github.com/grpc-ecosystem/grpc-gateway/runtime" "cosmossdk.io/core/appmodule" "cosmossdk.io/core/store" @@ -35,7 +35,7 @@ func (AppModuleBasic) Name() string { return testv1alpha1.ModuleName } -func (AppModuleBasic) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) { +func (AppModuleBasic) RegisterLegacyAminoCodec(_ *codec.LegacyAmino) { // testv1alpha1.RegisterLegacyAminoCodec(cdc) } @@ -44,7 +44,7 @@ func (AppModuleBasic) RegisterInterfaces(registry codectypes.InterfaceRegistry) } // RegisterGRPCGatewayRoutes registers the gRPC Gateway routes for the module. -func (AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *runtime.ServeMux) { +func (AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *gwruntime.ServeMux) { if err := testv1alpha1.RegisterQueryHandlerClient(context.Background(), mux, testv1alpha1.NewQueryClient(clientCtx)); err != nil { panic(err) } @@ -64,7 +64,7 @@ type AppModule struct { } // NewAppModule creates a new AppModule object. -func NewAppModule(cdc codec.Codec, keeper keeper.Keeper) AppModule { +func NewAppModule(keeper keeper.Keeper) AppModule { return AppModule{ keeper: keeper, } @@ -131,7 +131,7 @@ func ProvideModule(in TestInputs) TestOutputs { panic(err) } - m := NewAppModule(in.Cdc, *k) + m := NewAppModule(*k) return TestOutputs{Keeper: *k, Module: m} } From a670afe56546fe2ce0304dbc2d3f81414a5d0d8e Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Thu, 25 Jan 2024 12:31:03 +0000 Subject: [PATCH 15/62] Lint x/escrow --- x/escrow/.golangci.yaml | 56 +++++++++++++++++------------ x/escrow/keeper/internal/exec.go | 2 +- x/escrow/keeper/internal/genesis.go | 22 +++--------- x/escrow/module/module.go | 14 ++++---- 4 files changed, 47 insertions(+), 47 deletions(-) diff --git a/x/escrow/.golangci.yaml b/x/escrow/.golangci.yaml index 80d352c..bc7a58e 100644 --- a/x/escrow/.golangci.yaml +++ b/x/escrow/.golangci.yaml @@ -1,32 +1,44 @@ run: skip-files: - - ".*\\.pb\\.go$" - - ".*\\.pb\\.gw\\.go$" - - ".*\\.pulsar\\.go$" - - ".*\\.mock\\.go$" + - ".*\\.pb\\.go$" + - ".*\\.pb\\.gw\\.go$" + - ".*\\.pulsar\\.go$" + - ".*\\.mock\\.go$" linters: enable: - - depguard - - dogsled - - exportloopref - - goconst - - gocritic - - gofumpt - - gosec - - misspell - - nakedret - - nolintlint - - revive - - stylecheck - - unconvert + - depguard + - dogsled + - exportloopref + - goconst + - gocritic + - gofumpt + - gosec + - misspell + - nakedret + - nolintlint + - revive + - stylecheck + - unconvert linters-settings: gci: custom-order: true sections: - - standard - - default - - prefix(cosmossdk.io) - - prefix(github.com/cosmos/cosmos-sdk) - - prefix(github.com/0tech/andromeda) + - standard + - default + - prefix(cosmossdk.io) + - prefix(github.com/cosmos/cosmos-sdk) + - prefix(github.com/0tech/andromeda) + depguard: + rules: + main: + allow: + - $gostd + - github.com/golang/mock/gomock + - github.com/stretchr/testify + - github.com/grpc-ecosystem/grpc-gateway/runtime + - cosmossdk.io + - github.com/cosmos/gogoproto + - github.com/cosmos/cosmos-sdk + - github.com/0tech/andromeda diff --git a/x/escrow/keeper/internal/exec.go b/x/escrow/keeper/internal/exec.go index 84915b5..816e930 100644 --- a/x/escrow/keeper/internal/exec.go +++ b/x/escrow/keeper/internal/exec.go @@ -11,7 +11,7 @@ import ( escrowv1alpha1 "github.com/0tech/andromeda/x/escrow/andromeda/escrow/v1alpha1" ) -func (k Keeper) Exec(ctx context.Context, id uint64, executor, agent sdk.AccAddress, actions []*codectypes.Any) error { +func (k Keeper) Exec(ctx context.Context, id uint64, _, agent sdk.AccAddress, actions []*codectypes.Any) error { _, proposal, err := k.GetProposal(ctx, id) if err != nil { return err diff --git a/x/escrow/keeper/internal/genesis.go b/x/escrow/keeper/internal/genesis.go index 1b740aa..ba24bcf 100644 --- a/x/escrow/keeper/internal/genesis.go +++ b/x/escrow/keeper/internal/genesis.go @@ -199,13 +199,9 @@ func (k Keeper) InitGenesis(ctx context.Context, gs *escrowv1alpha1.GenesisState } func (k Keeper) initGenesisParams(ctx context.Context, params *escrowv1alpha1.GenesisState_Params) error { - if err := k.setParams(ctx, &escrowv1alpha1.Params{ + return k.setParams(ctx, &escrowv1alpha1.Params{ MaxMetadataLength: params.MaxMetadataLength, - }); err != nil { - return err - } - - return nil + }) } func (k Keeper) initGenesisAgents(ctx context.Context, agents []*escrowv1alpha1.GenesisState_Agent) error { @@ -233,11 +229,7 @@ func (k Keeper) initGenesisAgent(ctx context.Context, agent *escrowv1alpha1.Gene return errorsmod.Wrap(err, "creator") } - if err := k.setAgent(ctx, address, creator, &escrowv1alpha1.Agent{}); err != nil { - return err - } - - return nil + return k.setAgent(ctx, address, creator, &escrowv1alpha1.Agent{}) } func (k Keeper) initGenesisProposals(ctx context.Context, proposals []*escrowv1alpha1.GenesisState_Proposal) error { @@ -265,16 +257,12 @@ func (k Keeper) initGenesisProposal(ctx context.Context, proposal *escrowv1alpha return errorsmod.Wrap(err, "agent") } - if err := k.setProposal(ctx, proposal.Id, proposer, &escrowv1alpha1.Proposal{ + return k.setProposal(ctx, proposal.Id, proposer, &escrowv1alpha1.Proposal{ Agent: agent, PreActions: proposal.PreActions, PostActions: proposal.PostActions, Metadata: proposal.Metadata, - }); err != nil { - return err - } - - return nil + }) } func (k Keeper) ExportGenesis(ctx context.Context) (*escrowv1alpha1.GenesisState, error) { diff --git a/x/escrow/module/module.go b/x/escrow/module/module.go index 9305dce..aa5c213 100644 --- a/x/escrow/module/module.go +++ b/x/escrow/module/module.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/grpc-ecosystem/grpc-gateway/runtime" + gwruntime "github.com/grpc-ecosystem/grpc-gateway/runtime" "cosmossdk.io/core/appmodule" "cosmossdk.io/core/store" @@ -40,7 +40,7 @@ func (AppModuleBasic) Name() string { return escrowv1alpha1.ModuleName } -func (AppModuleBasic) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) { +func (AppModuleBasic) RegisterLegacyAminoCodec(_ *codec.LegacyAmino) { // escrowv1alpha1.RegisterLegacyAminoCodec(cdc) } @@ -49,7 +49,7 @@ func (AppModuleBasic) RegisterInterfaces(registry codectypes.InterfaceRegistry) } // RegisterGRPCGatewayRoutes registers the gRPC Gateway routes for the module. -func (AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *runtime.ServeMux) { +func (AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *gwruntime.ServeMux) { if err := escrowv1alpha1.RegisterQueryHandlerClient(context.Background(), mux, escrowv1alpha1.NewQueryClient(clientCtx)); err != nil { panic(err) } @@ -69,7 +69,7 @@ type AppModule struct { } // NewAppModule creates a new AppModule object. -func NewAppModule(cdc codec.Codec, keeper keeper.Keeper) AppModule { +func NewAppModule(keeper keeper.Keeper) AppModule { return AppModule{ keeper: keeper, } @@ -85,7 +85,7 @@ func (am AppModule) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage { } // ValidateGenesis performs genesis state validation for the module. -func (am AppModule) ValidateGenesis(cdc codec.JSONCodec, config client.TxEncodingConfig, bz json.RawMessage) error { +func (am AppModule) ValidateGenesis(cdc codec.JSONCodec, _ client.TxEncodingConfig, bz json.RawMessage) error { var gs escrowv1alpha1.GenesisState if err := cdc.UnmarshalJSON(bz, &gs); err != nil { return fmt.Errorf("failed to unmarshal %s genesis state: %w", escrowv1alpha1.ModuleName, err) @@ -98,7 +98,7 @@ func (am AppModule) ValidateGenesis(cdc codec.JSONCodec, config client.TxEncodin var _ module.HasInvariants = (*AppModule)(nil) -func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry) { +func (am AppModule) RegisterInvariants(_ sdk.InvariantRegistry) { // TODO(@0Tech): add invariants } @@ -203,7 +203,7 @@ func ProvideModule(in EscrowInputs) EscrowOutputs { panic(err) } - m := NewAppModule(in.Cdc, *k) + m := NewAppModule(*k) return EscrowOutputs{Keeper: *k, Module: m} } From 954ad1f4ff5bcb8ab6af00571dc4b53c4f08c3be Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Thu, 25 Jan 2024 12:36:35 +0000 Subject: [PATCH 16/62] Lint app --- app/.golangci.yaml | 47 ++++++++++++++++++++++++++++----------------- app/test_helpers.go | 2 +- 2 files changed, 30 insertions(+), 19 deletions(-) diff --git a/app/.golangci.yaml b/app/.golangci.yaml index 710936a..21fa74b 100644 --- a/app/.golangci.yaml +++ b/app/.golangci.yaml @@ -1,25 +1,36 @@ linters: enable: - - depguard - - dogsled - - exportloopref - - goconst - - gocritic - - gofumpt - - gosec - - misspell - - nakedret - - nolintlint - - revive - - stylecheck - - unconvert + - depguard + - dogsled + - exportloopref + - goconst + - gocritic + - gofumpt + - gosec + - misspell + - nakedret + - nolintlint + - revive + - stylecheck + - unconvert linters-settings: gci: custom-order: true sections: - - standard - - default - - prefix(cosmossdk.io) - - prefix(github.com/cosmos/cosmos-sdk) - - prefix(github.com/0tech/andromeda) + - standard + - default + - prefix(cosmossdk.io) + - prefix(github.com/cosmos/cosmos-sdk) + - prefix(github.com/0tech/andromeda) + depguard: + rules: + main: + allow: + - $gostd + - github.com/stretchr/testify + - github.com/cometbft/cometbft + - cosmossdk.io + - github.com/cosmos/cosmos-db + - github.com/cosmos/cosmos-sdk + - github.com/0tech/andromeda diff --git a/app/test_helpers.go b/app/test_helpers.go index 477445b..db251ea 100644 --- a/app/test_helpers.go +++ b/app/test_helpers.go @@ -94,7 +94,7 @@ func NewAppWithCustomOptions(t *testing.T, isCheckTx bool, options SetupOptions) } // Setup initializes a new App. A Nop logger is set in App. -func Setup(t *testing.T, isCheckTx bool) *App { +func Setup(t *testing.T, _ bool) *App { t.Helper() privVal := mock.NewPV() From 11ccef2a6b926ac8a520e023d9717cba390cb98c Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Thu, 25 Jan 2024 12:42:01 +0000 Subject: [PATCH 17/62] Lint cmd/and --- cmd/and/.golangci.yaml | 50 ++++++++++++++++++++++++++--------------- cmd/and/cmd/commands.go | 4 ++-- cmd/and/cmd/root.go | 2 +- cmd/and/cmd/testnet.go | 6 +---- 4 files changed, 36 insertions(+), 26 deletions(-) diff --git a/cmd/and/.golangci.yaml b/cmd/and/.golangci.yaml index 710936a..867129d 100644 --- a/cmd/and/.golangci.yaml +++ b/cmd/and/.golangci.yaml @@ -1,25 +1,39 @@ linters: enable: - - depguard - - dogsled - - exportloopref - - goconst - - gocritic - - gofumpt - - gosec - - misspell - - nakedret - - nolintlint - - revive - - stylecheck - - unconvert + - depguard + - dogsled + - exportloopref + - goconst + - gocritic + - gofumpt + - gosec + - misspell + - nakedret + - nolintlint + - revive + - stylecheck + - unconvert linters-settings: gci: custom-order: true sections: - - standard - - default - - prefix(cosmossdk.io) - - prefix(github.com/cosmos/cosmos-sdk) - - prefix(github.com/0tech/andromeda) + - standard + - default + - prefix(cosmossdk.io) + - prefix(github.com/cosmos/cosmos-sdk) + - prefix(github.com/0tech/andromeda) + depguard: + rules: + main: + allow: + - $gostd + - github.com/stretchr/testify + - github.com/spf13/cobra + - github.com/spf13/pflag + - github.com/spf13/viper + - github.com/cometbft/cometbft + - cosmossdk.io + - github.com/cosmos/cosmos-db + - github.com/cosmos/cosmos-sdk + - github.com/0tech/andromeda diff --git a/cmd/and/cmd/commands.go b/cmd/and/cmd/commands.go index 5145c4e..e18553e 100644 --- a/cmd/and/cmd/commands.go +++ b/cmd/and/cmd/commands.go @@ -107,8 +107,8 @@ lru_size = {{ .WASM.LruSize }}` func initRootCmd( rootCmd *cobra.Command, txConfig client.TxConfig, - interfaceRegistry codectypes.InterfaceRegistry, - appCodec codec.Codec, + _ codectypes.InterfaceRegistry, + _ codec.Codec, basicManager module.BasicManager, ) { cfg := sdk.GetConfig() diff --git a/cmd/and/cmd/root.go b/cmd/and/cmd/root.go index 85039cd..bf6eddd 100644 --- a/cmd/and/cmd/root.go +++ b/cmd/and/cmd/root.go @@ -121,7 +121,7 @@ func ProvideClientContext( return clientCtx } -func ProvideKeyring(clientCtx client.Context, addressCodec address.Codec) (clientv2keyring.Keyring, error) { +func ProvideKeyring(clientCtx client.Context, _ address.Codec) (clientv2keyring.Keyring, error) { kb, err := client.NewKeyringFromBackend(clientCtx, clientCtx.Keyring.Backend()) if err != nil { return nil, err diff --git a/cmd/and/cmd/testnet.go b/cmd/and/cmd/testnet.go index cffd2f9..f50f052 100644 --- a/cmd/and/cmd/testnet.go +++ b/cmd/and/cmd/testnet.go @@ -484,11 +484,7 @@ func writeFile(name, dir string, contents []byte) error { return fmt.Errorf("could not create directory %q: %w", dir, err) } - if err := os.WriteFile(file, contents, 0o600); err != nil { - return err - } - - return nil + return os.WriteFile(file, contents, 0o600) } // startTestnet starts an in-process testnet From c6a76a72a61d6d2c0cd184b2be5fd4b847dde289 Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Thu, 25 Jan 2024 12:48:05 +0000 Subject: [PATCH 18/62] Increase linter timeouts --- app/.golangci.yaml | 2 ++ cmd/and/.golangci.yaml | 2 ++ x/escrow/.golangci.yaml | 1 + x/test/.golangci.yaml | 1 + 4 files changed, 6 insertions(+) diff --git a/app/.golangci.yaml b/app/.golangci.yaml index 21fa74b..898577f 100644 --- a/app/.golangci.yaml +++ b/app/.golangci.yaml @@ -1,3 +1,5 @@ +run: + timeout: 5m linters: enable: - depguard diff --git a/cmd/and/.golangci.yaml b/cmd/and/.golangci.yaml index 867129d..4f185f1 100644 --- a/cmd/and/.golangci.yaml +++ b/cmd/and/.golangci.yaml @@ -1,3 +1,5 @@ +run: + timeout: 5m linters: enable: - depguard diff --git a/x/escrow/.golangci.yaml b/x/escrow/.golangci.yaml index bc7a58e..a4d657b 100644 --- a/x/escrow/.golangci.yaml +++ b/x/escrow/.golangci.yaml @@ -1,4 +1,5 @@ run: + timeout: 5m skip-files: - ".*\\.pb\\.go$" - ".*\\.pb\\.gw\\.go$" diff --git a/x/test/.golangci.yaml b/x/test/.golangci.yaml index b3b5839..f04b99d 100644 --- a/x/test/.golangci.yaml +++ b/x/test/.golangci.yaml @@ -1,4 +1,5 @@ run: + timeout: 5m skip-files: - ".*\\.pb\\.go$" - ".*\\.pb\\.gw\\.go$" From d3c7220d6b05b08d32ac2a954a92d3e3b238e650 Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Fri, 26 Jan 2024 03:30:01 +0000 Subject: [PATCH 19/62] Increase coverage --- x/escrow/keeper/internal/genesis.go | 4 + x/escrow/keeper/internal/genesis_test.go | 353 ++++++++++++++++++++++- x/escrow/keeper/internal/proposal.go | 1 + x/escrow/module/autocli.go | 9 +- 4 files changed, 352 insertions(+), 15 deletions(-) diff --git a/x/escrow/keeper/internal/genesis.go b/x/escrow/keeper/internal/genesis.go index ba24bcf..f57eb88 100644 --- a/x/escrow/keeper/internal/genesis.go +++ b/x/escrow/keeper/internal/genesis.go @@ -163,6 +163,10 @@ func (k Keeper) validateGenesisProposal(proposal *escrowv1alpha1.GenesisState_Pr return escrowv1alpha1.ErrUnimplemented.Wrap("nil post_actions") } + if proposal.Metadata == "" { + return escrowv1alpha1.ErrUnimplemented.Wrap("nil metadata") + } + if _, err := k.addressStringToBytes(proposal.Proposer); err != nil { return errorsmod.Wrap(err, "proposer") } diff --git a/x/escrow/keeper/internal/genesis_test.go b/x/escrow/keeper/internal/genesis_test.go index 1c5156f..1f87c67 100644 --- a/x/escrow/keeper/internal/genesis_test.go +++ b/x/escrow/keeper/internal/genesis_test.go @@ -1,12 +1,14 @@ package internal_test import ( + "fmt" "testing" "github.com/stretchr/testify/assert" codectypes "github.com/cosmos/cosmos-sdk/codec/types" simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims" + sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" escrowv1alpha1 "github.com/0tech/andromeda/x/escrow/andromeda/escrow/v1alpha1" @@ -16,8 +18,8 @@ import ( func TestValidateGenesisParams(t *testing.T) { _, _, k, _, _ := setupKeepers(t) //nolint:dogsled - gs := k.DefaultGenesis() tester := func(subject escrowv1alpha1.GenesisState_Params) error { + gs := k.DefaultGenesis() gs.Params = &subject return k.ValidateGenesis(gs) } @@ -51,12 +53,20 @@ func TestValidateGenesisAgents(t *testing.T) { addresses := simtestutil.CreateIncrementalAccounts(4) creatorStr := addressBytesToString(createRandomAccounts(1)[0]) - gs := k.DefaultGenesis() tester := func(subject []*escrowv1alpha1.GenesisState_Agent) error { + gs := k.DefaultGenesis() gs.Agents = subject return k.ValidateGenesis(gs) } - cases := []map[string]testutil.Case[[]*escrowv1alpha1.GenesisState_Agent]{} + cases := []map[string]testutil.Case[[]*escrowv1alpha1.GenesisState_Agent]{ + { + "": { + Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Agent) { + *subject = []*escrowv1alpha1.GenesisState_Agent{} + }, + }, + }, + } for i := 0; i < len(addresses)/2; i++ { addressStr := addressBytesToString(addresses[i*2+1]) descendingAddressStr := addressBytesToString(addresses[i*2]) @@ -64,6 +74,11 @@ func TestValidateGenesisAgents(t *testing.T) { added := false cases = append(cases, []map[string]testutil.Case[[]*escrowv1alpha1.GenesisState_Agent]{ { + "[no agent": { + Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Agent) { + added = false + }, + }, "[nil agent": { Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Agent) { added = false @@ -264,12 +279,20 @@ func TestValidateGenesisProposals(t *testing.T) { *addrStr = addressBytesToString(createRandomAccounts(1)[0]) } - gs := k.DefaultGenesis() tester := func(subject []*escrowv1alpha1.GenesisState_Proposal) error { + gs := k.DefaultGenesis() gs.Proposals = subject return k.ValidateGenesis(gs) } - cases := []map[string]testutil.Case[[]*escrowv1alpha1.GenesisState_Proposal]{} + cases := []map[string]testutil.Case[[]*escrowv1alpha1.GenesisState_Proposal]{ + { + "": { + Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Proposal) { + *subject = []*escrowv1alpha1.GenesisState_Proposal{} + }, + }, + }, + } for i := 0; i < len(ids)/2; i++ { id := ids[i*2+1] descendingID := ids[i*2] @@ -277,6 +300,11 @@ func TestValidateGenesisProposals(t *testing.T) { added := false cases = append(cases, []map[string]testutil.Case[[]*escrowv1alpha1.GenesisState_Proposal]{ { + "[no proposal": { + Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Proposal) { + added = false + }, + }, "[nil proposal": { Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Proposal) { added = false @@ -394,7 +422,7 @@ func TestValidateGenesisProposals(t *testing.T) { }, }, { - "nil post_actions]": { + "nil post_actions": { Error: func() error { if !added { return nil @@ -402,7 +430,7 @@ func TestValidateGenesisProposals(t *testing.T) { return escrowv1alpha1.ErrUnimplemented }, }, - "valid post_actions]": { + "valid post_actions": { Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Proposal) { if !added { return @@ -411,6 +439,24 @@ func TestValidateGenesisProposals(t *testing.T) { }, }, }, + { + "nil metadata": { + Error: func() error { + if !added { + return nil + } + return escrowv1alpha1.ErrUnimplemented + }, + }, + "valid metadata": { + Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Proposal) { + if !added { + return + } + (*subject)[len(*subject)-1].Metadata = randomString(int(k.DefaultGenesis().Params.MaxMetadataLength) - 1) + }, + }, + }, }...) addedDuplicate := false @@ -478,7 +524,7 @@ func TestValidateGenesisProposals(t *testing.T) { }, }, { - "valid post_actions]": { + "valid post_actions": { Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Proposal) { if !addedDuplicate { return @@ -487,6 +533,16 @@ func TestValidateGenesisProposals(t *testing.T) { }, }, }, + { + "valid metadata]": { + Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Proposal) { + if !addedDuplicate { + return + } + (*subject)[len(*subject)-1].Metadata = randomString(int(k.DefaultGenesis().Params.MaxMetadataLength) - 1) + }, + }, + }, }...) addedDescending := false @@ -554,7 +610,7 @@ func TestValidateGenesisProposals(t *testing.T) { }, }, { - "valid post_actions]": { + "valid post_actions": { Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Proposal) { if !addedDescending { return @@ -563,6 +619,16 @@ func TestValidateGenesisProposals(t *testing.T) { }, }, }, + { + "valid metadata]": { + Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Proposal) { + if !addedDescending { + return + } + (*subject)[len(*subject)-1].Metadata = randomString(int(k.DefaultGenesis().Params.MaxMetadataLength) - 1) + }, + }, + }, }...) } @@ -640,3 +706,272 @@ func TestValidateGenesis(t *testing.T) { testutil.DoTest(t, tester, cases) } + +func TestInitExportGenesisParams(t *testing.T) { + _, ctxBefore, k, _, _ := setupKeepers(t) //nolint:dogsled + + tester := func(subject escrowv1alpha1.GenesisState_Params) error { + gsInput := k.DefaultGenesis() + gsInput.Params = &subject + assert.NoError(t, k.ValidateGenesis(gsInput)) + + ctxAfter, _ := sdk.UnwrapSDKContext(ctxBefore).CacheContext() + err := k.InitGenesis(ctxAfter, gsInput) + if err != nil { + return err + } + + paramsBefore, err := k.GetParams(ctxBefore) + assert.Error(t, err) + assert.Nil(t, paramsBefore) + + paramsAfter, err := k.GetParams(ctxAfter) + assert.NoError(t, err) + assert.NotNil(t, paramsAfter) + assert.Equal(t, subject.MaxMetadataLength, paramsAfter.MaxMetadataLength) + + gsOutput, err := k.ExportGenesis(ctxAfter) + assert.NoError(t, err) + assert.NotNil(t, gsOutput) + assert.Equal(t, *gsInput, *gsOutput) + + return nil + } + cases := []map[string]testutil.Case[escrowv1alpha1.GenesisState_Params]{ + { + "valid max_metadata_length": { + Malleate: func(subject *escrowv1alpha1.GenesisState_Params) { + subject.MaxMetadataLength = k.DefaultGenesis().Params.MaxMetadataLength + }, + }, + }, + } + + testutil.DoTest(t, tester, cases) +} + +func TestInitExportGenesisAgents(t *testing.T) { + cdc, ctxBefore, k, _, _ := setupKeepers(t) + addressCodec := cdc.InterfaceRegistry().SigningContext().AddressCodec() + addressBytesToString := func(address []byte) string { + addressStr, err := addressCodec.BytesToString(address) + assert.NoError(t, err) + return addressStr + } + addressStringToBytes := func(address string) sdk.AccAddress { + addressBytes, err := addressCodec.StringToBytes(address) + assert.NoError(t, err) + return addressBytes + } + + addresses := simtestutil.CreateIncrementalAccounts(4) + creatorStr := addressBytesToString(createRandomAccounts(1)[0]) + + tester := func(subject []*escrowv1alpha1.GenesisState_Agent) error { + gsInput := k.DefaultGenesis() + gsInput.Agents = subject + assert.NoError(t, k.ValidateGenesis(gsInput)) + + ctxAfter, _ := sdk.UnwrapSDKContext(ctxBefore).CacheContext() + err := k.InitGenesis(ctxAfter, gsInput) + if err != nil { + return err + } + + for i, agent := range subject { + address := addressStringToBytes(agent.Address) + creator := addressStringToBytes(agent.Creator) + + creatorBefore, _, err := k.GetAgent(ctxBefore, address) + assert.Error(t, err, i) + assert.Nil(t, creatorBefore, i) + + creatorAfter, _, err := k.GetAgent(ctxAfter, address) + assert.NoError(t, err, i) + assert.NotNil(t, creatorAfter, i) + assert.Equal(t, creator, creatorAfter, i) + } + + gsOutput, err := k.ExportGenesis(ctxAfter) + assert.NoError(t, err) + assert.NotNil(t, gsOutput) + assert.Equal(t, *gsInput, *gsOutput) + + return nil + } + cases := []map[string]testutil.Case[[]*escrowv1alpha1.GenesisState_Agent]{ + { + "": { + Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Agent) { + *subject = []*escrowv1alpha1.GenesisState_Agent{} + }, + }, + }, + } + for i, address := range addresses { + addressStr := addressBytesToString(address) + + cases = append(cases, map[string]testutil.Case[[]*escrowv1alpha1.GenesisState_Agent]{ + "": {}, + fmt.Sprintf("agent %d", i): { + Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Agent) { + *subject = append(*subject, &escrowv1alpha1.GenesisState_Agent{ + Address: addressStr, + Creator: creatorStr, + }) + }, + }, + }) + } + + testutil.DoTest(t, tester, cases) +} + +func TestInitExportGenesisProposals(t *testing.T) { + cdc, ctxBefore, k, _, _ := setupKeepers(t) + addressCodec := cdc.InterfaceRegistry().SigningContext().AddressCodec() + addressBytesToString := func(address []byte) string { + addressStr, err := addressCodec.BytesToString(address) + assert.NoError(t, err) + return addressStr + } + + ids := make([]uint64, 4) + for i := range ids { + ids[i] = uint64(i) + 1 + } + + var proposerStr, agentStr string + for _, addrStr := range []*string{ + &proposerStr, + &agentStr, + } { + *addrStr = addressBytesToString(createRandomAccounts(1)[0]) + } + + tester := func(subject []*escrowv1alpha1.GenesisState_Proposal) error { + gsInput := k.DefaultGenesis() + gsInput.Proposals = subject + assert.NoError(t, k.ValidateGenesis(gsInput)) + + ctxAfter, _ := sdk.UnwrapSDKContext(ctxBefore).CacheContext() + err := k.InitGenesis(ctxAfter, gsInput) + if err != nil { + return err + } + + for i, proposal := range subject { + proposerBefore, proposalBefore, err := k.GetProposal(ctxBefore, proposal.Id) + assert.Error(t, err, i) + assert.Nil(t, proposerBefore, i) + assert.Nil(t, proposalBefore, i) + + proposerAfter, proposalAfter, err := k.GetProposal(ctxAfter, proposal.Id) + assert.NoError(t, err, i) + assert.NotNil(t, proposerAfter, i) + assert.NotNil(t, proposalAfter, i) + assert.Equal(t, proposal.Proposer, addressBytesToString(proposerAfter), i) + assert.Equal(t, proposal.Agent, addressBytesToString(proposalAfter.Agent), i) + assert.Equal(t, proposal.PreActions, proposalAfter.PreActions, i) + assert.Equal(t, proposal.PostActions, proposalAfter.PostActions, i) + assert.Equal(t, proposal.Metadata, proposalAfter.Metadata, i) + } + + gsOutput, err := k.ExportGenesis(ctxAfter) + assert.NoError(t, err) + assert.NotNil(t, gsOutput) + assert.Equal(t, *gsInput, *gsOutput) + + return nil + } + cases := []map[string]testutil.Case[[]*escrowv1alpha1.GenesisState_Proposal]{ + { + "": { + Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Proposal) { + *subject = []*escrowv1alpha1.GenesisState_Proposal{} + }, + }, + }, + } + for i, id := range ids { + id := id + + cases = append(cases, map[string]testutil.Case[[]*escrowv1alpha1.GenesisState_Proposal]{ + "": {}, + fmt.Sprintf("proposal %d", i): { + Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Proposal) { + *subject = append(*subject, &escrowv1alpha1.GenesisState_Proposal{ + Id: id, + Proposer: proposerStr, + Agent: agentStr, + PreActions: []*codectypes.Any{}, + PostActions: []*codectypes.Any{}, + Metadata: "metadata", + }) + }, + }, + }) + } + + testutil.DoTest(t, tester, cases) +} + +func TestInitExportGenesis(t *testing.T) { + _, ctxBefore, k, _, _ := setupKeepers(t) //nolint:dogsled + + tester := func(subject escrowv1alpha1.GenesisState) error { + assert.NoError(t, k.ValidateGenesis(&subject)) + + ctxAfter, _ := sdk.UnwrapSDKContext(ctxBefore).CacheContext() + err := k.InitGenesis(ctxAfter, &subject) + if err != nil { + return err + } + + gsOutput, err := k.ExportGenesis(ctxAfter) + assert.NoError(t, err) + assert.NotNil(t, gsOutput) + assert.Equal(t, subject, *gsOutput) + + return nil + } + cases := []map[string]testutil.Case[escrowv1alpha1.GenesisState]{ + { + "valid params": { + Malleate: func(subject *escrowv1alpha1.GenesisState) { + subject.Params = k.DefaultGenesis().Params + }, + }, + }, + { + "valid next_agent": { + Malleate: func(subject *escrowv1alpha1.GenesisState) { + subject.NextAgent = k.DefaultGenesis().NextAgent + }, + }, + }, + { + "valid agents": { + Malleate: func(subject *escrowv1alpha1.GenesisState) { + subject.Agents = k.DefaultGenesis().Agents + }, + }, + }, + { + "valid next_proposal": { + Malleate: func(subject *escrowv1alpha1.GenesisState) { + subject.NextProposal = k.DefaultGenesis().NextProposal + }, + }, + }, + { + "valid proposals": { + Malleate: func(subject *escrowv1alpha1.GenesisState) { + subject.Proposals = k.DefaultGenesis().Proposals + }, + }, + }, + } + + testutil.DoTest(t, tester, cases) +} diff --git a/x/escrow/keeper/internal/proposal.go b/x/escrow/keeper/internal/proposal.go index 571767d..002dff2 100644 --- a/x/escrow/keeper/internal/proposal.go +++ b/x/escrow/keeper/internal/proposal.go @@ -174,6 +174,7 @@ func (k Keeper) iterateProposals(ctx context.Context, fn func(id uint64, propose proposer := key.K1() id := key.K2() proposal := value + k.fixActions(&proposal) if err := fn(id, proposer, proposal); err != nil { return err diff --git a/x/escrow/module/autocli.go b/x/escrow/module/autocli.go index cb4a032..399ea8b 100644 --- a/x/escrow/module/autocli.go +++ b/x/escrow/module/autocli.go @@ -214,12 +214,10 @@ Note: Usage: "the address of the agent in charge", }, "pre_actions": { - Usage: "the messages which will be executed on the submission", - DefaultValue: "{}", + Usage: "the messages which will be executed on the submission", }, "post_actions": { - Usage: "the messages which will be executed after the actions included in Msg/Exec", - DefaultValue: "{}", + Usage: "the messages which will be executed after the actions included in Msg/Exec", }, "metadata": { Usage: "any arbitrary metadata attached to the proposal", @@ -288,8 +286,7 @@ Note: Usage: "the address of the agent in charge", }, "actions": { - Usage: "the messages which will be executed on the execution", - DefaultValue: "{}", + Usage: "the messages which will be executed on the execution", }, }, Example: `$ and tx escrow exec --proposal 2 --from cosmos1eee... --agent cosmos1... \ From dffc1582ef613f333f0981f407e9c616ef5feb6b Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Fri, 26 Jan 2024 03:47:49 +0000 Subject: [PATCH 20/62] Decrease ExportGenesis cost and increase ValidateGenesis cost --- x/escrow/keeper/internal/agent.go | 6 +- x/escrow/keeper/internal/genesis.go | 35 +++--- x/escrow/keeper/internal/genesis_test.go | 146 +---------------------- x/escrow/keeper/internal/proposal.go | 6 +- 4 files changed, 28 insertions(+), 165 deletions(-) diff --git a/x/escrow/keeper/internal/agent.go b/x/escrow/keeper/internal/agent.go index 1cf8434..0e0ba38 100644 --- a/x/escrow/keeper/internal/agent.go +++ b/x/escrow/keeper/internal/agent.go @@ -126,19 +126,19 @@ func (k Keeper) removeAgent(ctx context.Context, address sdk.AccAddress) error { } func (k Keeper) iterateAgents(ctx context.Context, fn func(address, creator sdk.AccAddress, agent escrowv1alpha1.Agent) error) error { - iter, err := k.agents.Indexes.address.Iterate(ctx, nil) + iter, err := k.agents.Iterate(ctx, nil) if err != nil { return escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()) } defer iter.Close() for ; iter.Valid(); iter.Next() { - key, err := iter.PrimaryKey() + key, err := iter.Key() if err != nil { return escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()) } - value, err := k.agents.Get(ctx, key) + value, err := iter.Value() if err != nil { return escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()) } diff --git a/x/escrow/keeper/internal/genesis.go b/x/escrow/keeper/internal/genesis.go index f57eb88..15de6ad 100644 --- a/x/escrow/keeper/internal/genesis.go +++ b/x/escrow/keeper/internal/genesis.go @@ -1,7 +1,6 @@ package internal import ( - "bytes" "context" errorsmod "cosmossdk.io/errors" @@ -73,7 +72,7 @@ func (k Keeper) validateGenesisParams(params *escrowv1alpha1.GenesisState_Params } func (k Keeper) validateGenesisAgents(agents []*escrowv1alpha1.GenesisState_Agent) error { - seenAddress := sdk.AccAddress{} + seen := map[string]bool{} for i, agent := range agents { addIndex := func(err error) error { return errorsmod.Wrapf(err, "index %d", i) @@ -83,43 +82,41 @@ func (k Keeper) validateGenesisAgents(agents []*escrowv1alpha1.GenesisState_Agen return addIndex(escrowv1alpha1.ErrUnimplemented.Wrap("nil agent")) } - address, err := k.validateGenesisAgent(agent) - if err != nil { + if err := k.validateGenesisAgent(agent); err != nil { return addIndex(err) } - if !(bytes.Compare(address, seenAddress) > 0) { - return addIndex(sdkerrors.ErrInvalidRequest.Wrap("unsorted agent")) + if seen[agent.Address] { + return addIndex(sdkerrors.ErrInvalidRequest.Wrap("duplicate agent")) } - seenAddress = address + seen[agent.Address] = true } return nil } -func (k Keeper) validateGenesisAgent(agent *escrowv1alpha1.GenesisState_Agent) (sdk.AccAddress, error) { +func (k Keeper) validateGenesisAgent(agent *escrowv1alpha1.GenesisState_Agent) error { if agent.Address == "" { - return nil, escrowv1alpha1.ErrUnimplemented.Wrap("nil address") + return escrowv1alpha1.ErrUnimplemented.Wrap("nil address") } if agent.Creator == "" { - return nil, escrowv1alpha1.ErrUnimplemented.Wrap("nil creator") + return escrowv1alpha1.ErrUnimplemented.Wrap("nil creator") } - address, err := k.addressStringToBytes(agent.Address) - if err != nil { - return nil, errorsmod.Wrap(err, "address") + if _, err := k.addressStringToBytes(agent.Address); err != nil { + return errorsmod.Wrap(err, "address") } if _, err := k.addressStringToBytes(agent.Creator); err != nil { - return nil, errorsmod.Wrap(err, "creator") + return errorsmod.Wrap(err, "creator") } - return address, nil + return nil } func (k Keeper) validateGenesisProposals(proposals []*escrowv1alpha1.GenesisState_Proposal) error { - seenID := uint64(0) + seen := map[uint64]bool{} for i, proposal := range proposals { addIndex := func(err error) error { return errorsmod.Wrapf(err, "index %d", i) @@ -133,10 +130,10 @@ func (k Keeper) validateGenesisProposals(proposals []*escrowv1alpha1.GenesisStat return addIndex(err) } - if !(proposal.Id > seenID) { - return addIndex(sdkerrors.ErrInvalidRequest.Wrap("unsorted proposal")) + if seen[proposal.Id] { + return addIndex(sdkerrors.ErrInvalidRequest.Wrap("duplicate proposal")) } - seenID = proposal.Id + seen[proposal.Id] = true } return nil diff --git a/x/escrow/keeper/internal/genesis_test.go b/x/escrow/keeper/internal/genesis_test.go index 1f87c67..174a525 100644 --- a/x/escrow/keeper/internal/genesis_test.go +++ b/x/escrow/keeper/internal/genesis_test.go @@ -50,7 +50,7 @@ func TestValidateGenesisAgents(t *testing.T) { return addressStr } - addresses := simtestutil.CreateIncrementalAccounts(4) + addresses := simtestutil.CreateIncrementalAccounts(2) creatorStr := addressBytesToString(createRandomAccounts(1)[0]) tester := func(subject []*escrowv1alpha1.GenesisState_Agent) error { @@ -67,9 +67,8 @@ func TestValidateGenesisAgents(t *testing.T) { }, }, } - for i := 0; i < len(addresses)/2; i++ { - addressStr := addressBytesToString(addresses[i*2+1]) - descendingAddressStr := addressBytesToString(addresses[i*2]) + for _, address := range addresses { + addressStr := addressBytesToString(address) added := false cases = append(cases, []map[string]testutil.Case[[]*escrowv1alpha1.GenesisState_Agent]{ @@ -206,52 +205,6 @@ func TestValidateGenesisAgents(t *testing.T) { }, }, }...) - - addedDescending := false - cases = append(cases, []map[string]testutil.Case[[]*escrowv1alpha1.GenesisState_Agent]{ - { - "[no descending agent": { - Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Agent) { - addedDescending = false - }, - }, - "[descending agent": { - Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Agent) { - if !added { - return - } - addedDescending = true - *subject = append(*subject, &escrowv1alpha1.GenesisState_Agent{}) - }, - Error: func() error { - if addedDescending { - return sdkerrors.ErrInvalidRequest - } - return nil - }, - }, - }, - { - "valid address": { - Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Agent) { - if !addedDescending { - return - } - (*subject)[len(*subject)-1].Address = descendingAddressStr - }, - }, - }, - { - "valid creator]": { - Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Agent) { - if !addedDescending { - return - } - (*subject)[len(*subject)-1].Creator = creatorStr - }, - }, - }, - }...) } testutil.DoTest(t, tester, cases) @@ -266,7 +219,7 @@ func TestValidateGenesisProposals(t *testing.T) { return addressStr } - ids := make([]uint64, 4) + ids := make([]uint64, 2) for i := range ids { ids[i] = uint64(i) + 1 } @@ -293,9 +246,8 @@ func TestValidateGenesisProposals(t *testing.T) { }, }, } - for i := 0; i < len(ids)/2; i++ { - id := ids[i*2+1] - descendingID := ids[i*2] + for _, id := range ids { + id := id added := false cases = append(cases, []map[string]testutil.Case[[]*escrowv1alpha1.GenesisState_Proposal]{ @@ -544,92 +496,6 @@ func TestValidateGenesisProposals(t *testing.T) { }, }, }...) - - addedDescending := false - cases = append(cases, []map[string]testutil.Case[[]*escrowv1alpha1.GenesisState_Proposal]{ - { - "[no descending proposal": { - Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Proposal) { - addedDescending = false - }, - }, - "[descending proposal": { - Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Proposal) { - if !added { - return - } - addedDescending = true - *subject = append(*subject, &escrowv1alpha1.GenesisState_Proposal{}) - }, - Error: func() error { - if addedDescending { - return sdkerrors.ErrInvalidRequest - } - return nil - }, - }, - }, - { - "valid id": { - Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Proposal) { - if !addedDescending { - return - } - (*subject)[len(*subject)-1].Id = descendingID - }, - }, - }, - { - "valid proposer": { - Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Proposal) { - if !addedDescending { - return - } - (*subject)[len(*subject)-1].Proposer = proposerStr - }, - }, - }, - { - "valid agent": { - Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Proposal) { - if !addedDescending { - return - } - (*subject)[len(*subject)-1].Agent = agentStr - }, - }, - }, - { - "valid pre_actions": { - Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Proposal) { - if !addedDescending { - return - } - (*subject)[len(*subject)-1].PreActions = []*codectypes.Any{} - }, - }, - }, - { - "valid post_actions": { - Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Proposal) { - if !addedDescending { - return - } - (*subject)[len(*subject)-1].PostActions = []*codectypes.Any{} - }, - }, - }, - { - "valid metadata]": { - Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Proposal) { - if !addedDescending { - return - } - (*subject)[len(*subject)-1].Metadata = randomString(int(k.DefaultGenesis().Params.MaxMetadataLength) - 1) - }, - }, - }, - }...) } testutil.DoTest(t, tester, cases) diff --git a/x/escrow/keeper/internal/proposal.go b/x/escrow/keeper/internal/proposal.go index 002dff2..24f4402 100644 --- a/x/escrow/keeper/internal/proposal.go +++ b/x/escrow/keeper/internal/proposal.go @@ -154,19 +154,19 @@ func (k Keeper) fixActions(proposal *escrowv1alpha1.Proposal) { } func (k Keeper) iterateProposals(ctx context.Context, fn func(id uint64, proposer sdk.AccAddress, proposal escrowv1alpha1.Proposal) error) error { - iter, err := k.proposals.Indexes.id.Iterate(ctx, nil) + iter, err := k.proposals.Iterate(ctx, nil) if err != nil { return escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()) } defer iter.Close() for ; iter.Valid(); iter.Next() { - key, err := iter.PrimaryKey() + key, err := iter.Key() if err != nil { return escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()) } - value, err := k.proposals.Get(ctx, key) + value, err := iter.Value() if err != nil { return escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()) } From 80c93b4888e78c2d6997a4a7fb642c240cd3b4a0 Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Fri, 26 Jan 2024 03:52:28 +0000 Subject: [PATCH 21/62] Update sonar configs --- .github/workflows/modules.yml | 3 +++ x/escrow/sonar-project.properties | 5 ++++- x/test/sonar-project.properties | 5 ++++- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/modules.yml b/.github/workflows/modules.yml index 01bb656..e58fdcd 100644 --- a/.github/workflows/modules.yml +++ b/.github/workflows/modules.yml @@ -1,5 +1,8 @@ name: Check Modules on: + push: + branches: + - main pull_request: jobs: check-modules: diff --git a/x/escrow/sonar-project.properties b/x/escrow/sonar-project.properties index f2ae3f8..3e34fe3 100644 --- a/x/escrow/sonar-project.properties +++ b/x/escrow/sonar-project.properties @@ -4,14 +4,17 @@ sonar.organization=0tech # This is the name and version displayed in the SonarCloud UI. sonar.projectName=andromeda - x/escrow #sonar.projectVersion=1.0 +sonar.project.monorepo.enabled=true # Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows. #sonar.sources=. sonar.inclusions=**/*.go -sonar.exclusions=api/**,testutil/**,**/*.pb.go,**/*.pb.gw.go,**/*_test.go +sonar.exclusions=api/**,testutil/**,**/exported.go,**/*.pb.go,**/*.pb.gw.go,**/*_test.go sonar.test.inclusions=**/*_test.go sonar.go.coverage.reportPaths=cover.out # Encoding of the source code. Default is default system encoding #sonar.sourceEncoding=UTF-8 + +sonar.scm.provider=git diff --git a/x/test/sonar-project.properties b/x/test/sonar-project.properties index 504f49a..32df66a 100644 --- a/x/test/sonar-project.properties +++ b/x/test/sonar-project.properties @@ -4,14 +4,17 @@ sonar.organization=0tech # This is the name and version displayed in the SonarCloud UI. sonar.projectName=andromeda - x/test #sonar.projectVersion=1.0 +sonar.project.monorepo.enabled=true # Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows. #sonar.sources=. sonar.inclusions=**/*.go -sonar.exclusions=api/**,testutil/**,**/*.pb.go,**/*.pb.gw.go,**/*_test.go +sonar.exclusions=api/**,testutil/**,**/exported.go,**/*.pb.go,**/*.pb.gw.go,**/*_test.go sonar.test.inclusions=**/*_test.go sonar.go.coverage.reportPaths=cover.out # Encoding of the source code. Default is default system encoding #sonar.sourceEncoding=UTF-8 + +sonar.scm.provider=git From 488a55b4630480d196ce81a71335ce5a415379da Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Fri, 26 Jan 2024 11:46:08 +0000 Subject: [PATCH 22/62] Separate depinject --- x/escrow/module/depinject.go | 67 +++++++++++++++++++++++++++++++++++ x/escrow/module/module.go | 68 ------------------------------------ 2 files changed, 67 insertions(+), 68 deletions(-) create mode 100644 x/escrow/module/depinject.go diff --git a/x/escrow/module/depinject.go b/x/escrow/module/depinject.go new file mode 100644 index 0000000..bf1ab95 --- /dev/null +++ b/x/escrow/module/depinject.go @@ -0,0 +1,67 @@ +package module + +import ( + "cosmossdk.io/core/appmodule" + "cosmossdk.io/core/store" + "cosmossdk.io/depinject" + + "github.com/cosmos/cosmos-sdk/codec" + authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" + govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" + + modulev1alpha1 "github.com/0tech/andromeda/x/escrow/api/andromeda/escrow/module/v1alpha1" + "github.com/0tech/andromeda/x/escrow/keeper" +) + +var _ appmodule.AppModule = (*AppModule)(nil) + +func (AppModule) IsOnePerModuleType() {} +func (AppModule) IsAppModule() {} + +func init() { + appmodule.Register(&modulev1alpha1.Module{}, + appmodule.Provide(ProvideModule), + ) +} + +type Inputs struct { + depinject.In + + StoreService store.KVStoreService + Cdc codec.Codec + Config *modulev1alpha1.Module + + Router keeper.MessageRouter + AuthKeeper keeper.AuthKeeper +} + +type Outputs struct { + depinject.Out + + Keeper keeper.Keeper + Module appmodule.AppModule +} + +func ProvideModule(in Inputs) Outputs { + addressCodec := in.Cdc.InterfaceRegistry().SigningContext().AddressCodec() + + // default to governance authority if not provided + authority := authtypes.NewModuleAddress(govtypes.ModuleName) + if in.Config.Authority != "" { + bz, err := addressCodec.StringToBytes(in.Config.Authority) + if err != nil { + authority = authtypes.NewModuleAddress(in.Config.Authority) + } else { + authority = bz + } + } + + k, err := keeper.NewKeeper(in.Cdc, in.StoreService, authority, in.Router, in.AuthKeeper) + if err != nil { + panic(err) + } + + m := NewAppModule(*k) + + return Outputs{Keeper: *k, Module: m} +} diff --git a/x/escrow/module/module.go b/x/escrow/module/module.go index aa5c213..0257341 100644 --- a/x/escrow/module/module.go +++ b/x/escrow/module/module.go @@ -7,20 +7,13 @@ import ( gwruntime "github.com/grpc-ecosystem/grpc-gateway/runtime" - "cosmossdk.io/core/appmodule" - "cosmossdk.io/core/store" - "cosmossdk.io/depinject" - "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/codec" codectypes "github.com/cosmos/cosmos-sdk/codec/types" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" - authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" escrowv1alpha1 "github.com/0tech/andromeda/x/escrow/andromeda/escrow/v1alpha1" - modulev1alpha1 "github.com/0tech/andromeda/x/escrow/api/andromeda/escrow/module/v1alpha1" "github.com/0tech/andromeda/x/escrow/keeper" ) @@ -59,8 +52,6 @@ func (AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *g // AppModule // ---------------------------------------------------------------------------- -var _ module.AppModule = (*AppModule)(nil) - // AppModule implements an application module for the module. type AppModule struct { AppModuleBasic @@ -148,62 +139,3 @@ func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.Raw var _ module.HasConsensusVersion = (*AppModule)(nil) func (AppModule) ConsensusVersion() uint64 { return 1 } - -// ____________________________________________________________________________ - -var _ appmodule.AppModule = (*AppModule)(nil) - -func (AppModule) IsOnePerModuleType() {} -func (AppModule) IsAppModule() {} - -// ---------------------------------------------------------------------------- -// App Wiring Setup -// ---------------------------------------------------------------------------- - -func init() { - appmodule.Register(&modulev1alpha1.Module{}, - appmodule.Provide(ProvideModule), - ) -} - -type EscrowInputs struct { - depinject.In - - StoreService store.KVStoreService - Cdc codec.Codec - Config *modulev1alpha1.Module - - Router keeper.MessageRouter - AuthKeeper keeper.AuthKeeper -} - -type EscrowOutputs struct { - depinject.Out - - Keeper keeper.Keeper - Module appmodule.AppModule -} - -func ProvideModule(in EscrowInputs) EscrowOutputs { - addressCodec := in.Cdc.InterfaceRegistry().SigningContext().AddressCodec() - - // default to governance authority if not provided - authority := authtypes.NewModuleAddress(govtypes.ModuleName) - if in.Config.Authority != "" { - bz, err := addressCodec.StringToBytes(in.Config.Authority) - if err != nil { - authority = authtypes.NewModuleAddress(in.Config.Authority) - } else { - authority = bz - } - } - - k, err := keeper.NewKeeper(in.Cdc, in.StoreService, authority, in.Router, in.AuthKeeper) - if err != nil { - panic(err) - } - - m := NewAppModule(*k) - - return EscrowOutputs{Keeper: *k, Module: m} -} From 4334e2f944fccd10a18fa95e24c5f87d4c401405 Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Fri, 26 Jan 2024 12:10:30 +0000 Subject: [PATCH 23/62] Remove unused codes --- x/test/go.mod | 2 +- x/test/module/module.go | 93 ----------------------------------------- 2 files changed, 1 insertion(+), 94 deletions(-) diff --git a/x/test/go.mod b/x/test/go.mod index 6c38ce2..549d830 100644 --- a/x/test/go.mod +++ b/x/test/go.mod @@ -6,7 +6,6 @@ require ( cosmossdk.io/api v0.7.2 cosmossdk.io/collections v0.4.0 cosmossdk.io/core v0.11.0 - cosmossdk.io/depinject v1.0.0-alpha.4 cosmossdk.io/errors v1.0.1 cosmossdk.io/log v1.3.0 cosmossdk.io/store v1.0.2 @@ -22,6 +21,7 @@ require ( ) require ( + cosmossdk.io/depinject v1.0.0-alpha.4 // indirect cosmossdk.io/math v1.2.0 // indirect cosmossdk.io/x/tx v0.13.0 // indirect filippo.io/edwards25519 v1.0.0 // indirect diff --git a/x/test/module/module.go b/x/test/module/module.go index 3808cce..5f41934 100644 --- a/x/test/module/module.go +++ b/x/test/module/module.go @@ -5,18 +5,12 @@ import ( gwruntime "github.com/grpc-ecosystem/grpc-gateway/runtime" - "cosmossdk.io/core/appmodule" - "cosmossdk.io/core/store" - "cosmossdk.io/depinject" - "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/codec" codectypes "github.com/cosmos/cosmos-sdk/codec/types" "github.com/cosmos/cosmos-sdk/types/module" testv1alpha1 "github.com/0tech/andromeda/x/test/andromeda/test/v1alpha1" - modulev1alpha1 "github.com/0tech/andromeda/x/test/api/andromeda/test/module/v1alpha1" - "github.com/0tech/andromeda/x/test/keeper" ) // ---------------------------------------------------------------------------- @@ -36,7 +30,6 @@ func (AppModuleBasic) Name() string { } func (AppModuleBasic) RegisterLegacyAminoCodec(_ *codec.LegacyAmino) { - // testv1alpha1.RegisterLegacyAminoCodec(cdc) } func (AppModuleBasic) RegisterInterfaces(registry codectypes.InterfaceRegistry) { @@ -49,89 +42,3 @@ func (AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *g panic(err) } } - -// ---------------------------------------------------------------------------- -// AppModule -// ---------------------------------------------------------------------------- - -var _ module.AppModule = (*AppModule)(nil) - -// AppModule implements an application module for the module. -type AppModule struct { - AppModuleBasic - - keeper keeper.Keeper -} - -// NewAppModule creates a new AppModule object. -func NewAppModule(keeper keeper.Keeper) AppModule { - return AppModule{ - keeper: keeper, - } -} - -// ____________________________________________________________________________ - -var _ module.HasServices = (*AppModule)(nil) - -func (am AppModule) RegisterServices(cfg module.Configurator) { - testv1alpha1.RegisterMsgServer(cfg.MsgServer(), keeper.NewMsgServer(am.keeper)) - testv1alpha1.RegisterQueryServer(cfg.QueryServer(), keeper.NewQueryServer(am.keeper)) - - // m := keeper.NewMigrator(am.keeper) - // migrations := map[uint64]func(sdk.Context) error{} - // for ver, handler := range migrations { - // if err := cfg.RegisterMigration(testv1alpha1.ModuleName, ver, handler); err != nil { - // panic(fmt.Sprintf("failed to migrate x/%s from version %d to %d: %v", testv1alpha1.ModuleName, ver, ver+1, err)) - // } - // } -} - -// ____________________________________________________________________________ - -var _ module.HasConsensusVersion = (*AppModule)(nil) - -func (AppModule) ConsensusVersion() uint64 { return 1 } - -// ____________________________________________________________________________ - -var _ appmodule.AppModule = (*AppModule)(nil) - -func (AppModule) IsOnePerModuleType() {} -func (AppModule) IsAppModule() {} - -// ---------------------------------------------------------------------------- -// App Wiring Setup -// ---------------------------------------------------------------------------- - -func init() { - appmodule.Register(&modulev1alpha1.Module{}, - appmodule.Provide(ProvideModule), - ) -} - -type TestInputs struct { - depinject.In - - StoreService store.KVStoreService - Cdc codec.Codec - Config *modulev1alpha1.Module -} - -type TestOutputs struct { - depinject.Out - - Keeper keeper.Keeper - Module appmodule.AppModule -} - -func ProvideModule(in TestInputs) TestOutputs { - k, err := keeper.NewKeeper(in.Cdc, in.StoreService, nil) - if err != nil { - panic(err) - } - - m := NewAppModule(*k) - - return TestOutputs{Keeper: *k, Module: m} -} From 51e4ce96fd4675fed0943bf39ad25d8ef03bd1e5 Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Fri, 26 Jan 2024 13:25:40 +0000 Subject: [PATCH 24/62] Update proto field names --- .../andromeda/escrow/v1alpha1/event.pb.go | 87 ++-- .../andromeda/escrow/v1alpha1/query.pb.go | 149 +++---- .../andromeda/escrow/v1alpha1/query.pb.gw.go | 36 +- x/escrow/andromeda/escrow/v1alpha1/tx.pb.go | 107 +++-- .../andromeda/escrow/v1alpha1/event.pulsar.go | 132 +++--- .../andromeda/escrow/v1alpha1/query.pulsar.go | 419 +++++++++--------- .../andromeda/escrow/v1alpha1/tx.pulsar.go | 165 +++---- x/escrow/keeper/internal/grpc_query.go | 20 +- x/escrow/keeper/internal/grpc_query_test.go | 28 +- x/escrow/keeper/internal/msg_server.go | 6 +- x/escrow/keeper/internal/msg_server_test.go | 2 +- .../andromeda/escrow/v1alpha1/event.proto | 2 +- .../andromeda/escrow/v1alpha1/query.proto | 8 +- .../proto/andromeda/escrow/v1alpha1/tx.proto | 2 +- 14 files changed, 582 insertions(+), 581 deletions(-) diff --git a/x/escrow/andromeda/escrow/v1alpha1/event.pb.go b/x/escrow/andromeda/escrow/v1alpha1/event.pb.go index 8210227..b63f11d 100644 --- a/x/escrow/andromeda/escrow/v1alpha1/event.pb.go +++ b/x/escrow/andromeda/escrow/v1alpha1/event.pb.go @@ -137,7 +137,7 @@ func (m *EventCreateAgent) GetCreator() string { // EventSubmitProposal is emitted on Msg/SubmitProposal. type EventSubmitProposal struct { // the identifier of the proposal - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + Proposal uint64 `protobuf:"varint,1,opt,name=proposal,proto3" json:"proposal,omitempty"` // the address of the proposer Proposer string `protobuf:"bytes,2,opt,name=proposer,proto3" json:"proposer,omitempty"` // the address of the agent in charge @@ -183,9 +183,9 @@ func (m *EventSubmitProposal) XXX_DiscardUnknown() { var xxx_messageInfo_EventSubmitProposal proto.InternalMessageInfo -func (m *EventSubmitProposal) GetId() uint64 { +func (m *EventSubmitProposal) GetProposal() uint64 { if m != nil { - return m.Id + return m.Proposal } return 0 } @@ -301,40 +301,39 @@ func init() { } var fileDescriptor_499596c4087ad6c5 = []byte{ - // 515 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0x4f, 0x8b, 0xd3, 0x40, - 0x18, 0xc6, 0x9b, 0xb4, 0xfb, 0xa7, 0x53, 0x11, 0x37, 0xbb, 0x87, 0xb6, 0x62, 0x28, 0x85, 0x85, - 0x5e, 0x9c, 0xb0, 0xeb, 0x3f, 0xa8, 0xa7, 0x54, 0x8a, 0x17, 0x85, 0x90, 0x45, 0x11, 0x29, 0x94, - 0x69, 0xf2, 0x9a, 0x06, 0x9a, 0x4c, 0x98, 0x99, 0xd6, 0x16, 0x3f, 0x83, 0xe0, 0xcd, 0xbb, 0x47, - 0xcf, 0x7e, 0x08, 0xf1, 0xb4, 0x78, 0xf2, 0x28, 0xed, 0xcd, 0xab, 0x5f, 0x40, 0x32, 0x93, 0xc9, - 0x7a, 0x69, 0x77, 0x6f, 0x79, 0x79, 0x7e, 0xef, 0xf3, 0xce, 0x3c, 0x6f, 0x06, 0x9d, 0x92, 0x34, - 0x64, 0x34, 0x81, 0x90, 0x38, 0xc0, 0x03, 0x46, 0xdf, 0x3b, 0x8b, 0x33, 0x32, 0xcb, 0xa6, 0xe4, - 0xcc, 0x81, 0x05, 0xa4, 0x02, 0x67, 0x8c, 0x0a, 0x6a, 0xb5, 0x4a, 0x0c, 0x2b, 0x0c, 0x6b, 0xac, - 0xdd, 0x0a, 0x28, 0x4f, 0x28, 0x1f, 0x4b, 0xd0, 0x51, 0x85, 0xea, 0x6a, 0xb7, 0x22, 0x4a, 0xa3, - 0x19, 0x38, 0xb2, 0x9a, 0xcc, 0xdf, 0x39, 0x24, 0x5d, 0x29, 0xa9, 0xfb, 0x01, 0x1d, 0x0d, 0x73, - 0xff, 0x57, 0x59, 0x48, 0x04, 0x78, 0x84, 0x91, 0x84, 0x5b, 0x8f, 0x51, 0x9d, 0xcc, 0xc5, 0x94, - 0xb2, 0x58, 0xac, 0x9a, 0x46, 0xc7, 0xe8, 0xd5, 0x07, 0xcd, 0x9f, 0xdf, 0xee, 0x9f, 0x14, 0xa6, - 0x6e, 0x18, 0x32, 0xe0, 0xfc, 0x42, 0xb0, 0x38, 0x8d, 0xfc, 0x2b, 0xd4, 0xc2, 0xe8, 0x38, 0x21, - 0xcb, 0x71, 0x02, 0x82, 0x84, 0x44, 0x90, 0xf1, 0x0c, 0xd2, 0x48, 0x4c, 0x9b, 0x66, 0xc7, 0xe8, - 0xd5, 0xfc, 0xa3, 0x84, 0x2c, 0x5f, 0x16, 0xca, 0x0b, 0x29, 0x74, 0x17, 0xe8, 0x8e, 0x1c, 0xfe, - 0x8c, 0x01, 0x11, 0xe0, 0x46, 0x90, 0x0a, 0x0b, 0xa3, 0x3d, 0x92, 0x7f, 0x5c, 0x3b, 0x57, 0x61, - 0xd6, 0x39, 0x3a, 0x08, 0xf2, 0x76, 0xca, 0xe4, 0x9c, 0x5d, 0x1d, 0x1a, 0xec, 0x7e, 0x36, 0xd1, - 0xb1, 0x1c, 0x7c, 0x31, 0x9f, 0x24, 0xb1, 0xf0, 0x18, 0xcd, 0x28, 0x27, 0x33, 0xeb, 0x36, 0x32, - 0xe3, 0x50, 0x0e, 0xae, 0xf9, 0x66, 0x1c, 0x5a, 0x0f, 0xd1, 0x61, 0x26, 0x35, 0xb8, 0xde, 0xbc, - 0x24, 0xaf, 0x6e, 0x50, 0xbd, 0xd9, 0x0d, 0x1e, 0xa1, 0x46, 0xc6, 0x60, 0x4c, 0x02, 0x11, 0xd3, - 0x94, 0x37, 0x6b, 0x9d, 0x6a, 0xaf, 0x71, 0x7e, 0x82, 0xd5, 0xce, 0xb0, 0xde, 0x19, 0x76, 0xd3, - 0x95, 0x8f, 0x32, 0x06, 0xae, 0xe2, 0xac, 0x27, 0xe8, 0x56, 0x46, 0xb9, 0x28, 0xfb, 0xf6, 0x76, - 0xf4, 0x35, 0x72, 0x52, 0x37, 0xb6, 0xd1, 0xa1, 0xde, 0x50, 0x73, 0x3f, 0x3f, 0xa2, 0x5f, 0xd6, - 0xdd, 0x8f, 0x06, 0xaa, 0xcb, 0x64, 0x86, 0x4b, 0x08, 0x72, 0x32, 0x2b, 0xb2, 0x29, 0x52, 0x29, - 0xeb, 0x3c, 0x1b, 0x58, 0x42, 0x30, 0xbf, 0x49, 0xf0, 0x25, 0x69, 0x61, 0x74, 0xa0, 0xcf, 0x5b, - 0xdd, 0x71, 0x5e, 0x0d, 0x0d, 0xfe, 0x1a, 0xdf, 0xd7, 0xb6, 0x71, 0xb9, 0xb6, 0x8d, 0xdf, 0x6b, - 0xdb, 0xf8, 0xb4, 0xb1, 0x2b, 0x97, 0x1b, 0xbb, 0xf2, 0x6b, 0x63, 0x57, 0xd0, 0xbd, 0x80, 0x26, - 0x78, 0xeb, 0x73, 0x18, 0x20, 0x79, 0x0d, 0x2f, 0x77, 0xf5, 0x8c, 0xb7, 0xbd, 0xad, 0xcf, 0xeb, - 0xa9, 0xaa, 0x75, 0xf9, 0xc5, 0xac, 0xba, 0xc3, 0x37, 0x5f, 0xcd, 0x96, 0x5b, 0x3a, 0x0f, 0x95, - 0xf3, 0xeb, 0x82, 0xf8, 0xf1, 0x9f, 0x36, 0x52, 0xda, 0x48, 0x6b, 0x6b, 0xf3, 0x74, 0xab, 0x36, - 0x7a, 0xee, 0x0d, 0xf4, 0xff, 0xff, 0xc7, 0xbc, 0x5b, 0x72, 0xfd, 0xbe, 0x02, 0xfb, 0x7d, 0x4d, - 0x4e, 0xf6, 0x65, 0x18, 0x0f, 0xfe, 0x05, 0x00, 0x00, 0xff, 0xff, 0xe8, 0xce, 0x72, 0x94, 0x15, - 0x04, 0x00, 0x00, + // 505 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0x4d, 0x8b, 0xd3, 0x40, + 0x18, 0xc7, 0x9b, 0xb4, 0xfb, 0xd2, 0xa9, 0x07, 0x37, 0xbb, 0x87, 0xb4, 0x62, 0x28, 0x85, 0x85, + 0x5e, 0x9c, 0xb0, 0xeb, 0x1b, 0xd4, 0x53, 0x2a, 0xc5, 0x8b, 0x42, 0xc8, 0xa2, 0x88, 0x14, 0xca, + 0x34, 0x79, 0x4c, 0x0b, 0x4d, 0x26, 0xcc, 0x4c, 0x6b, 0x8b, 0x9f, 0x41, 0xf0, 0x33, 0xe8, 0xcd, + 0xb3, 0x1f, 0x42, 0x3c, 0x2d, 0x9e, 0x3c, 0x4a, 0x7b, 0xf3, 0xea, 0x17, 0x90, 0xcc, 0x74, 0xb2, + 0x7b, 0xe9, 0xcb, 0x6d, 0x1e, 0xfe, 0xbf, 0xff, 0xf3, 0x9f, 0x99, 0x87, 0x07, 0x9d, 0x93, 0x34, + 0x62, 0x34, 0x81, 0x88, 0xb8, 0xc0, 0x43, 0x46, 0x3f, 0xb8, 0xb3, 0x0b, 0x32, 0xc9, 0x46, 0xe4, + 0xc2, 0x85, 0x19, 0xa4, 0x02, 0x67, 0x8c, 0x0a, 0x6a, 0xd5, 0x0b, 0x0c, 0x2b, 0x0c, 0x6b, 0xac, + 0x51, 0x0f, 0x29, 0x4f, 0x28, 0x1f, 0x48, 0xd0, 0x55, 0x85, 0x72, 0x35, 0xea, 0x31, 0xa5, 0xf1, + 0x04, 0x5c, 0x59, 0x0d, 0xa7, 0xef, 0x5d, 0x92, 0x2e, 0x94, 0xd4, 0xfa, 0x88, 0x4e, 0x7a, 0x79, + 0xff, 0xd7, 0x59, 0x44, 0x04, 0xf8, 0x84, 0x91, 0x84, 0x5b, 0x4f, 0x50, 0x95, 0x4c, 0xc5, 0x88, + 0xb2, 0xb1, 0x58, 0xd8, 0x46, 0xd3, 0x68, 0x57, 0xbb, 0xf6, 0xaf, 0xef, 0x0f, 0xce, 0xd6, 0x4d, + 0xbd, 0x28, 0x62, 0xc0, 0xf9, 0x95, 0x60, 0xe3, 0x34, 0x0e, 0x6e, 0x50, 0x0b, 0xa3, 0xd3, 0x84, + 0xcc, 0x07, 0x09, 0x08, 0x12, 0x11, 0x41, 0x06, 0x13, 0x48, 0x63, 0x31, 0xb2, 0xcd, 0xa6, 0xd1, + 0xae, 0x04, 0x27, 0x09, 0x99, 0xbf, 0x5a, 0x2b, 0x2f, 0xa5, 0xd0, 0x9a, 0xa1, 0xbb, 0x32, 0xfc, + 0x39, 0x03, 0x22, 0xc0, 0x8b, 0x21, 0x15, 0x16, 0x46, 0x07, 0x24, 0x3f, 0xec, 0xcc, 0x55, 0x98, + 0x75, 0x89, 0x8e, 0xc2, 0xdc, 0x4e, 0x99, 0xcc, 0xd9, 0xe6, 0xd0, 0x60, 0xeb, 0xab, 0x89, 0x4e, + 0x65, 0xf0, 0xd5, 0x74, 0x98, 0x8c, 0x85, 0xcf, 0x68, 0x46, 0x39, 0x99, 0x58, 0x0d, 0x74, 0x9c, + 0xad, 0xcf, 0x32, 0xbe, 0x12, 0x14, 0xb5, 0xf5, 0x48, 0x6b, 0xb0, 0x3b, 0xa8, 0x20, 0x6f, 0x5e, + 0x53, 0xde, 0xef, 0x35, 0x8f, 0x51, 0x2d, 0x63, 0x30, 0x20, 0xa1, 0x18, 0xd3, 0x94, 0xdb, 0x95, + 0x66, 0xb9, 0x5d, 0xbb, 0x3c, 0xc3, 0x6a, 0x7e, 0x58, 0xcf, 0x0f, 0x7b, 0xe9, 0x22, 0x40, 0x19, + 0x03, 0x4f, 0x71, 0xd6, 0x53, 0x74, 0x27, 0xa3, 0x5c, 0x14, 0xbe, 0x83, 0x2d, 0xbe, 0x5a, 0x4e, + 0x6a, 0x63, 0x03, 0x1d, 0xeb, 0x69, 0xd9, 0x87, 0xf9, 0x15, 0x83, 0xa2, 0x6e, 0x7d, 0x32, 0x50, + 0x55, 0xfe, 0x52, 0x6f, 0x0e, 0xe1, 0xae, 0xbf, 0x81, 0x39, 0x84, 0xd3, 0x7d, 0x86, 0x50, 0x90, + 0x16, 0x46, 0x47, 0xfa, 0xbe, 0xe5, 0x2d, 0xf7, 0xd5, 0x50, 0xf7, 0x9f, 0xf1, 0x63, 0xe9, 0x18, + 0xd7, 0x4b, 0xc7, 0xf8, 0xb3, 0x74, 0x8c, 0xcf, 0x2b, 0xa7, 0x74, 0xbd, 0x72, 0x4a, 0xbf, 0x57, + 0x4e, 0x09, 0xdd, 0x0f, 0x69, 0x82, 0x37, 0xae, 0x46, 0x17, 0xc9, 0x67, 0xf8, 0x79, 0x57, 0xdf, + 0x78, 0xd7, 0xde, 0xb8, 0x6a, 0xcf, 0x54, 0xad, 0xcb, 0x2f, 0x66, 0xd9, 0xeb, 0xbd, 0xfd, 0x66, + 0xd6, 0xbd, 0xa2, 0x73, 0x4f, 0x75, 0x7e, 0xb3, 0x26, 0x7e, 0xde, 0xd2, 0xfa, 0x4a, 0xeb, 0x6b, + 0x6d, 0x69, 0x9e, 0x6f, 0xd4, 0xfa, 0x2f, 0xfc, 0xae, 0xde, 0x85, 0xbf, 0xe6, 0xbd, 0x82, 0xeb, + 0x74, 0x14, 0xd8, 0xe9, 0x68, 0x72, 0x78, 0x28, 0x3f, 0xe3, 0xe1, 0xff, 0x00, 0x00, 0x00, 0xff, + 0xff, 0x90, 0xcd, 0x76, 0xf5, 0x21, 0x04, 0x00, 0x00, } func (m *EventUpdateParams) Marshal() (dAtA []byte, err error) { @@ -478,8 +477,8 @@ func (m *EventSubmitProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x12 } - if m.Id != 0 { - i = encodeVarintEvent(dAtA, i, uint64(m.Id)) + if m.Proposal != 0 { + i = encodeVarintEvent(dAtA, i, uint64(m.Proposal)) i-- dAtA[i] = 0x8 } @@ -585,8 +584,8 @@ func (m *EventSubmitProposal) Size() (n int) { } var l int _ = l - if m.Id != 0 { - n += 1 + sovEvent(uint64(m.Id)) + if m.Proposal != 0 { + n += 1 + sovEvent(uint64(m.Proposal)) } l = len(m.Proposer) if l > 0 { @@ -889,9 +888,9 @@ func (m *EventSubmitProposal) Unmarshal(dAtA []byte) error { switch fieldNum { case 1: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Proposal", wireType) } - m.Id = 0 + m.Proposal = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvent @@ -901,7 +900,7 @@ func (m *EventSubmitProposal) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Id |= uint64(b&0x7F) << shift + m.Proposal |= uint64(b&0x7F) << shift if b < 0x80 { break } diff --git a/x/escrow/andromeda/escrow/v1alpha1/query.pb.go b/x/escrow/andromeda/escrow/v1alpha1/query.pb.go index ab4fd35..0052c4d 100644 --- a/x/escrow/andromeda/escrow/v1alpha1/query.pb.go +++ b/x/escrow/andromeda/escrow/v1alpha1/query.pb.go @@ -117,7 +117,7 @@ func (m *QueryParamsResponse) GetMaxMetadataLength() uint64 { // QueryAgentRequest is the request type for the Query/Agent RPC method. type QueryAgentRequest struct { // the address of an agent - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + Agent string `protobuf:"bytes,1,opt,name=agent,proto3" json:"agent,omitempty"` } func (m *QueryAgentRequest) Reset() { *m = QueryAgentRequest{} } @@ -153,9 +153,9 @@ func (m *QueryAgentRequest) XXX_DiscardUnknown() { var xxx_messageInfo_QueryAgentRequest proto.InternalMessageInfo -func (m *QueryAgentRequest) GetAddress() string { +func (m *QueryAgentRequest) GetAgent() string { if m != nil { - return m.Address + return m.Agent } return "" } @@ -420,7 +420,7 @@ func (m *QueryAgentsResponse_Agent) GetCreator() string { // QueryProposalRequest is the request type for the Query/Proposal RPC method. type QueryProposalRequest struct { // the identifier of a proposal - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + Proposal uint64 `protobuf:"varint,1,opt,name=proposal,proto3" json:"proposal,omitempty"` } func (m *QueryProposalRequest) Reset() { *m = QueryProposalRequest{} } @@ -456,9 +456,9 @@ func (m *QueryProposalRequest) XXX_DiscardUnknown() { var xxx_messageInfo_QueryProposalRequest proto.InternalMessageInfo -func (m *QueryProposalRequest) GetId() uint64 { +func (m *QueryProposalRequest) GetProposal() uint64 { if m != nil { - return m.Id + return m.Proposal } return 0 } @@ -814,60 +814,61 @@ func init() { } var fileDescriptor_84a41d203399b1b7 = []byte{ - // 843 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x56, 0xcf, 0x6b, 0x13, 0x41, - 0x14, 0xee, 0x6e, 0x9a, 0xd8, 0x4e, 0x44, 0xe8, 0x34, 0x4a, 0x12, 0x35, 0xe8, 0x6a, 0x6b, 0x6b, - 0x9b, 0xd9, 0x26, 0xad, 0x88, 0xf1, 0x94, 0x40, 0x2d, 0x42, 0x85, 0x18, 0x51, 0x8a, 0x04, 0xc2, - 0x24, 0x3b, 0xa6, 0x81, 0x64, 0x67, 0xbb, 0xbb, 0xad, 0x2d, 0xa5, 0x17, 0xcf, 0x1e, 0xfc, 0x71, - 0xf2, 0xa0, 0x88, 0x47, 0xcf, 0xfe, 0x11, 0xd2, 0x53, 0xd1, 0x8b, 0x47, 0x49, 0x3d, 0x79, 0xf5, - 0x2c, 0x48, 0xe6, 0xc7, 0x76, 0x9b, 0x92, 0x66, 0x53, 0xc4, 0x93, 0xc7, 0xb7, 0xef, 0x7b, 0xdf, - 0x7c, 0xf3, 0xde, 0x9b, 0xf7, 0x16, 0x4c, 0x60, 0xd3, 0xb0, 0x69, 0x8b, 0x18, 0x58, 0x27, 0x4e, - 0xcd, 0xa6, 0x4f, 0xf5, 0x8d, 0x0c, 0x6e, 0x5a, 0xab, 0x38, 0xa3, 0xaf, 0xad, 0x13, 0x7b, 0x0b, - 0x59, 0x36, 0x75, 0x29, 0x4c, 0x78, 0x30, 0xc4, 0x61, 0x48, 0xc2, 0x92, 0xd7, 0x6b, 0xd4, 0x69, - 0x51, 0x47, 0xaf, 0x62, 0x87, 0xf0, 0x18, 0x7d, 0x23, 0x53, 0x25, 0x2e, 0xce, 0xe8, 0x16, 0xae, - 0x37, 0x4c, 0xec, 0x36, 0xa8, 0xc9, 0x69, 0x92, 0x09, 0x8e, 0xad, 0x30, 0x4b, 0xe7, 0x86, 0x70, - 0x5d, 0xa8, 0x53, 0x5a, 0x6f, 0x12, 0x1d, 0x5b, 0x0d, 0x1d, 0x9b, 0x26, 0x75, 0x59, 0x9c, 0xf4, - 0x26, 0x84, 0x97, 0x59, 0xd5, 0xf5, 0x27, 0x3a, 0x36, 0x85, 0x34, 0x2d, 0x06, 0xe0, 0xfd, 0xce, - 0xa9, 0x45, 0x6c, 0xe3, 0x96, 0x53, 0x22, 0x6b, 0xeb, 0xc4, 0x71, 0xb5, 0x45, 0x30, 0x7e, 0xe8, - 0xab, 0x63, 0x51, 0xd3, 0x21, 0x10, 0x81, 0xf1, 0x16, 0xde, 0xac, 0xb4, 0x88, 0x8b, 0x0d, 0xec, - 0xe2, 0x4a, 0x93, 0x98, 0x75, 0x77, 0x35, 0xae, 0x5c, 0x52, 0xa6, 0x86, 0x4b, 0x63, 0x2d, 0xbc, - 0x79, 0x4f, 0x78, 0x96, 0x99, 0x43, 0x5b, 0x02, 0x63, 0x8c, 0x26, 0x5f, 0x27, 0xa6, 0x2b, 0xb8, - 0x61, 0x16, 0x9c, 0xc2, 0x86, 0x61, 0x13, 0xc7, 0x61, 0x81, 0xa3, 0x85, 0xf8, 0x97, 0x4f, 0xe9, - 0x98, 0xb8, 0x4d, 0x9e, 0x7b, 0x1e, 0xb8, 0x76, 0xc3, 0xac, 0x97, 0x24, 0x50, 0xdb, 0x53, 0x84, - 0x4c, 0xc1, 0x24, 0xf4, 0xdc, 0x05, 0x61, 0xdc, 0xf9, 0xc0, 0x88, 0xa2, 0xd9, 0x79, 0xd4, 0x33, - 0xcf, 0xe8, 0x68, 0x34, 0xe2, 0x16, 0x67, 0x48, 0x52, 0x10, 0x66, 0xf6, 0x49, 0xe4, 0x75, 0x62, - 0x6a, 0x36, 0xc1, 0x2e, 0xb5, 0xe3, 0x6a, 0xbf, 0x18, 0x01, 0xd4, 0xca, 0xfe, 0x1b, 0xc9, 0xc4, - 0xc3, 0x3b, 0x00, 0x1c, 0x94, 0x5d, 0x5c, 0x6b, 0x12, 0x09, 0xa6, 0x4e, 0x8f, 0x20, 0xde, 0x57, - 0xa2, 0x47, 0x50, 0x11, 0xd7, 0x89, 0x88, 0x2d, 0xf9, 0x22, 0xb5, 0xb7, 0xaa, 0xa8, 0xa0, 0xa4, - 0x17, 0x19, 0x5b, 0x06, 0x11, 0x76, 0xdf, 0xce, 0xe5, 0x42, 0x53, 0xd1, 0xec, 0x42, 0xa0, 0x94, - 0x39, 0x5d, 0x39, 0x13, 0x1c, 0x70, 0xe9, 0x90, 0x5a, 0x95, 0xa9, 0xbd, 0xd6, 0x57, 0x2d, 0xa7, - 0xf2, 0xcb, 0xfd, 0xf7, 0xd9, 0x9f, 0x04, 0x31, 0xde, 0xe0, 0x36, 0xb5, 0xa8, 0x83, 0x9b, 0x32, - 0xff, 0x67, 0x80, 0xda, 0x30, 0x44, 0x43, 0xab, 0x0d, 0x43, 0xfb, 0xad, 0x82, 0xb3, 0x5d, 0x40, - 0x91, 0xc9, 0x87, 0x60, 0xc4, 0x12, 0xdf, 0x44, 0x9d, 0x6e, 0xf5, 0xcb, 0x65, 0x37, 0x07, 0xf2, - 0x3e, 0x78, 0x54, 0xc9, 0xe7, 0x2a, 0x18, 0x91, 0x9f, 0xbb, 0xd5, 0xc0, 0x05, 0x79, 0x26, 0xe9, - 0x7f, 0x55, 0x0f, 0x09, 0x91, 0x7c, 0x25, 0xa1, 0x3e, 0x21, 0x1c, 0x06, 0x6f, 0x80, 0xa8, 0x65, - 0x93, 0x0a, 0xae, 0xb1, 0x11, 0x12, 0x1f, 0x66, 0x8d, 0x12, 0x43, 0x7c, 0x86, 0x20, 0x39, 0x43, - 0x50, 0xde, 0xdc, 0x2a, 0x01, 0xcb, 0x26, 0x79, 0x8e, 0x83, 0x37, 0xc1, 0x69, 0x8b, 0x3a, 0xae, - 0x17, 0x17, 0x3e, 0x26, 0x2e, 0xda, 0x41, 0xca, 0xc0, 0x24, 0x18, 0x91, 0x13, 0x25, 0x1e, 0xe9, - 0x48, 0x2c, 0x79, 0xb6, 0x56, 0xe9, 0x4a, 0x7f, 0x8f, 0x87, 0xa2, 0x9e, 0xf8, 0xa1, 0xec, 0x86, - 0xc0, 0xb9, 0xee, 0x13, 0x44, 0x85, 0x57, 0xc0, 0xa8, 0x2c, 0x8b, 0x7c, 0x2e, 0xb9, 0xa0, 0x25, - 0x76, 0x8e, 0xd6, 0xf8, 0x80, 0xec, 0xef, 0xbd, 0x9b, 0xff, 0xdd, 0xe2, 0xef, 0x96, 0xec, 0xcb, - 0x08, 0x08, 0xb3, 0x32, 0xc0, 0x57, 0x0a, 0x88, 0xf0, 0xe5, 0x05, 0xd3, 0x7d, 0x6b, 0xe6, 0x5f, - 0x7d, 0x49, 0x14, 0x14, 0xce, 0xcb, 0xa1, 0x4d, 0x3f, 0xfb, 0xfa, 0xe3, 0xb5, 0x7a, 0x05, 0x5e, - 0xd6, 0x7b, 0xff, 0x0b, 0x58, 0x5c, 0xc9, 0x1b, 0x45, 0x8e, 0xb9, 0xd9, 0x80, 0x9b, 0x8a, 0x4b, - 0x4a, 0x0f, 0xb4, 0xd7, 0xb4, 0x79, 0xa6, 0x28, 0x0d, 0x67, 0x8e, 0x51, 0xc4, 0x07, 0xb8, 0xbe, - 0x2d, 0x66, 0xe8, 0x0e, 0x4b, 0x18, 0x9f, 0xf5, 0x30, 0x1d, 0x74, 0x27, 0x04, 0x4c, 0xd8, 0xe1, - 0x15, 0x12, 0x28, 0x61, 0x62, 0xbf, 0xbc, 0x57, 0x7c, 0xed, 0xad, 0x07, 0x1f, 0xaf, 0x5c, 0xd8, - 0xdc, 0xa0, 0xf3, 0x58, 0xcb, 0x30, 0x69, 0x33, 0x70, 0xfa, 0xb8, 0x5a, 0xca, 0x57, 0xac, 0x6f, - 0x37, 0x8c, 0x1d, 0xf8, 0x4e, 0x01, 0xa3, 0xde, 0xa3, 0x87, 0x73, 0x03, 0xcc, 0x07, 0x2e, 0x32, - 0x33, 0xf0, 0x44, 0xd1, 0x66, 0x99, 0xca, 0x49, 0x78, 0x35, 0x88, 0xca, 0xc2, 0x2f, 0xe5, 0x73, - 0x3b, 0xa5, 0xec, 0xb5, 0x53, 0xca, 0xf7, 0x76, 0x4a, 0x79, 0xb1, 0x9f, 0x1a, 0xda, 0xdb, 0x4f, - 0x0d, 0x7d, 0xdb, 0x4f, 0x0d, 0x81, 0x8b, 0x35, 0xda, 0xea, 0x7d, 0x7c, 0x01, 0xc8, 0xf3, 0x5d, - 0x5a, 0x54, 0x1e, 0x4f, 0xf5, 0x3c, 0xec, 0x36, 0xb7, 0xa5, 0xf9, 0x41, 0x0d, 0xe5, 0x17, 0x57, - 0x3e, 0xaa, 0x89, 0xbc, 0xc7, 0xbc, 0xc8, 0x99, 0x1f, 0x09, 0xc4, 0xae, 0xcf, 0x57, 0xe6, 0xbe, - 0xb2, 0xf4, 0xb5, 0xd5, 0x89, 0x9e, 0xbe, 0xf2, 0x52, 0xb1, 0x20, 0xff, 0x30, 0x7f, 0xaa, 0xe7, - 0x3d, 0x5c, 0x2e, 0xc7, 0x81, 0xb9, 0x9c, 0x44, 0x56, 0x23, 0x6c, 0x80, 0xcc, 0xff, 0x09, 0x00, - 0x00, 0xff, 0xff, 0xbb, 0x65, 0x0c, 0xe4, 0xa1, 0x0b, 0x00, 0x00, + // 852 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x56, 0xcf, 0x4f, 0x13, 0x4b, + 0x1c, 0x67, 0xb7, 0xb4, 0x0f, 0xa6, 0x2f, 0x2f, 0x61, 0xe8, 0x7b, 0x69, 0xfb, 0xde, 0x6b, 0x74, + 0x15, 0x04, 0xa5, 0x33, 0xb4, 0x60, 0x88, 0xf5, 0xd4, 0x1a, 0x24, 0x26, 0x98, 0xd4, 0x1a, 0x0d, + 0x31, 0x4d, 0x9a, 0x69, 0x3b, 0x96, 0x26, 0xed, 0xce, 0xb2, 0xbb, 0x20, 0x84, 0x70, 0xf1, 0xec, + 0xc1, 0x68, 0x8c, 0x27, 0x3d, 0x78, 0xf0, 0xe0, 0xd9, 0x3f, 0xc2, 0x70, 0x22, 0x7a, 0xf1, 0x68, + 0x8a, 0x27, 0xaf, 0x9e, 0x4d, 0x4c, 0xe7, 0xc7, 0xb2, 0x94, 0x94, 0x6e, 0x8d, 0xf1, 0xe4, 0x09, + 0xbe, 0xfb, 0xfd, 0x7c, 0x3f, 0xf3, 0x99, 0xef, 0xaf, 0x29, 0x98, 0x22, 0x66, 0xdd, 0x66, 0x6d, + 0x5a, 0x27, 0x98, 0x3a, 0x35, 0x9b, 0x3d, 0xc0, 0x5b, 0x19, 0xd2, 0xb2, 0xd6, 0x49, 0x06, 0x6f, + 0x6c, 0x52, 0x7b, 0x07, 0x59, 0x36, 0x73, 0x19, 0x4c, 0x78, 0x30, 0x24, 0x60, 0x48, 0xc1, 0x92, + 0x17, 0x6b, 0xcc, 0x69, 0x33, 0x07, 0x57, 0x89, 0x43, 0x45, 0x0c, 0xde, 0xca, 0x54, 0xa9, 0x4b, + 0x32, 0xd8, 0x22, 0x8d, 0xa6, 0x49, 0xdc, 0x26, 0x33, 0x05, 0x4d, 0x32, 0x21, 0xb0, 0x15, 0x6e, + 0x61, 0x61, 0x48, 0xd7, 0x7f, 0x0d, 0xc6, 0x1a, 0x2d, 0x8a, 0x89, 0xd5, 0xc4, 0xc4, 0x34, 0x99, + 0xcb, 0xe3, 0x94, 0x37, 0x21, 0xbd, 0xdc, 0xaa, 0x6e, 0xde, 0xc7, 0xc4, 0x94, 0xd2, 0x8c, 0x18, + 0x80, 0xb7, 0xba, 0xa7, 0x16, 0x89, 0x4d, 0xda, 0x4e, 0x89, 0x6e, 0x6c, 0x52, 0xc7, 0x35, 0x96, + 0xc1, 0xe4, 0xb1, 0xaf, 0x8e, 0xc5, 0x4c, 0x87, 0x42, 0x04, 0x26, 0xdb, 0x64, 0xbb, 0xd2, 0xa6, + 0x2e, 0xa9, 0x13, 0x97, 0x54, 0x5a, 0xd4, 0x6c, 0xb8, 0xeb, 0x71, 0xed, 0x8c, 0x36, 0x33, 0x5a, + 0x9a, 0x68, 0x93, 0xed, 0x9b, 0xd2, 0xb3, 0xca, 0x1d, 0xc6, 0x35, 0x30, 0xc1, 0x69, 0xf2, 0x0d, + 0x6a, 0xba, 0x92, 0x1b, 0x22, 0x10, 0x26, 0x5d, 0x9b, 0x87, 0x8d, 0x17, 0xe2, 0xef, 0xdf, 0xa6, + 0x63, 0xf2, 0x2e, 0xf9, 0x7a, 0xdd, 0xa6, 0x8e, 0x73, 0xdb, 0xb5, 0x9b, 0x66, 0xa3, 0x24, 0x60, + 0xc6, 0x81, 0x26, 0x25, 0x4a, 0x16, 0xa9, 0xe5, 0x86, 0x9f, 0x26, 0x9a, 0x5d, 0x40, 0x7d, 0x73, + 0x8c, 0x4e, 0x46, 0x23, 0x61, 0x09, 0x86, 0x24, 0x03, 0x61, 0x6e, 0xc3, 0x2c, 0xf8, 0x83, 0x08, + 0x09, 0x03, 0xc5, 0x29, 0x60, 0x37, 0xa6, 0x66, 0x53, 0xe2, 0x32, 0x3b, 0xae, 0x0f, 0x8a, 0x91, + 0x40, 0xa3, 0xec, 0xbf, 0x91, 0x4a, 0x3a, 0xbc, 0x0e, 0xc0, 0x51, 0xc9, 0xe5, 0xb5, 0xa6, 0x91, + 0x64, 0xea, 0xf6, 0x07, 0x12, 0x3d, 0x25, 0xfb, 0x03, 0x15, 0x49, 0x83, 0xca, 0xd8, 0x92, 0x2f, + 0xd2, 0x78, 0xa1, 0xcb, 0xea, 0x29, 0x7a, 0x99, 0xb1, 0x55, 0x10, 0xe1, 0xf7, 0xed, 0x5e, 0x2e, + 0x34, 0x13, 0xcd, 0x2e, 0x06, 0x4a, 0x99, 0xd3, 0x93, 0x33, 0xc9, 0x01, 0x57, 0x8e, 0xa9, 0xd5, + 0xb9, 0xda, 0x0b, 0x03, 0xd5, 0x0a, 0x2a, 0xbf, 0xdc, 0x5f, 0x9f, 0xfd, 0x2c, 0x88, 0x89, 0xe6, + 0xb6, 0x99, 0xc5, 0x1c, 0xd2, 0x52, 0xf9, 0x4f, 0x82, 0x31, 0x4b, 0x7e, 0x92, 0x2d, 0xed, 0xd9, + 0xc6, 0x37, 0x1d, 0xfc, 0xdd, 0x13, 0x24, 0xb3, 0x7a, 0xa7, 0x27, 0x2a, 0x9a, 0xbd, 0x32, 0x28, + 0xaf, 0xbd, 0x1c, 0xc8, 0xfb, 0xe0, 0x51, 0x25, 0x1f, 0xe9, 0x60, 0x4c, 0x7d, 0x86, 0x7f, 0x01, + 0xbd, 0x59, 0x97, 0x9a, 0xf4, 0x66, 0x1d, 0x2e, 0xaa, 0x33, 0xe9, 0xe0, 0x6b, 0x7b, 0xc8, 0xa3, + 0xc1, 0x0b, 0x05, 0x1a, 0x3c, 0x78, 0x19, 0x44, 0x2d, 0x9b, 0x56, 0x48, 0x8d, 0xaf, 0x92, 0xf8, + 0x28, 0x6f, 0x9a, 0x18, 0x12, 0xbb, 0x04, 0xa9, 0x5d, 0x82, 0xf2, 0xe6, 0x4e, 0x09, 0x58, 0x36, + 0xcd, 0x0b, 0x1c, 0x5c, 0x02, 0x7f, 0x5a, 0xcc, 0x71, 0xbd, 0xb8, 0xf0, 0x29, 0x71, 0xd1, 0x2e, + 0x52, 0x05, 0x26, 0xc1, 0x98, 0xda, 0x2c, 0xf1, 0x48, 0x57, 0x62, 0xc9, 0xb3, 0x8d, 0x4a, 0x4f, + 0xfa, 0xfb, 0x0c, 0x8d, 0xfe, 0xc3, 0x43, 0xb3, 0x1f, 0x02, 0xff, 0xf4, 0x9e, 0x20, 0x2b, 0xbc, + 0x06, 0xc6, 0x55, 0x59, 0xd4, 0xe8, 0xe4, 0x82, 0x96, 0xd8, 0x39, 0x59, 0xe3, 0x23, 0xb2, 0x9f, + 0x37, 0x43, 0xbf, 0xbb, 0xc5, 0xdf, 0x2d, 0xd9, 0x67, 0x11, 0x10, 0xe6, 0x65, 0x80, 0x4f, 0x34, + 0x10, 0x11, 0x8f, 0x18, 0x4c, 0x0f, 0xac, 0x99, 0xff, 0x09, 0x4c, 0xa2, 0xa0, 0x70, 0x51, 0x0e, + 0x63, 0xf6, 0xe1, 0x87, 0xcf, 0x4f, 0xf5, 0x73, 0xf0, 0x2c, 0xee, 0xff, 0x9b, 0xc0, 0x12, 0x4a, + 0x9e, 0x6b, 0x6a, 0xe5, 0xcd, 0x05, 0x7c, 0xb5, 0x84, 0xa4, 0xf4, 0x50, 0x6f, 0x9c, 0x91, 0xe1, + 0x8a, 0x2e, 0xc1, 0xd9, 0x53, 0x14, 0x89, 0x65, 0x8e, 0x77, 0xf9, 0xdf, 0x3d, 0x9e, 0x2e, 0xb1, + 0xf5, 0x61, 0x3a, 0xe8, 0xeb, 0x10, 0x30, 0x5d, 0xc7, 0x1f, 0x93, 0x40, 0xe9, 0x92, 0x2f, 0xcd, + 0x6b, 0xcd, 0xd7, 0xdc, 0x38, 0xf8, 0x72, 0x15, 0xc2, 0xe6, 0x87, 0xdd, 0xc6, 0xc6, 0x12, 0x97, + 0x96, 0x81, 0xf8, 0xb4, 0x4a, 0xaa, 0x19, 0xc6, 0xbb, 0xea, 0xdf, 0x3d, 0xf8, 0x52, 0x03, 0xe3, + 0xde, 0xe0, 0xc3, 0xf9, 0x21, 0x76, 0x84, 0x90, 0x9a, 0x19, 0x7a, 0xab, 0x18, 0x73, 0x5c, 0xeb, + 0x34, 0x3c, 0x1f, 0x44, 0x6b, 0xe1, 0xab, 0xf6, 0xae, 0x93, 0xd2, 0x0e, 0x3a, 0x29, 0xed, 0x53, + 0x27, 0xa5, 0x3d, 0x3e, 0x4c, 0x8d, 0x1c, 0x1c, 0xa6, 0x46, 0x3e, 0x1e, 0xa6, 0x46, 0xc0, 0xff, + 0x35, 0xd6, 0xee, 0x7f, 0x7c, 0x01, 0xa8, 0xf3, 0x5d, 0x56, 0xd4, 0xee, 0xcd, 0xf4, 0x3d, 0xec, + 0xaa, 0xb0, 0x95, 0xf9, 0x4a, 0x0f, 0xe5, 0x97, 0xd7, 0xde, 0xe8, 0x89, 0xbc, 0xc7, 0xbc, 0x2c, + 0x98, 0xef, 0x4a, 0xc4, 0xbe, 0xcf, 0x57, 0x16, 0xbe, 0xb2, 0xf2, 0x75, 0xf4, 0xa9, 0xbe, 0xbe, + 0xf2, 0x4a, 0xb1, 0xa0, 0x7e, 0x6d, 0x7e, 0xd1, 0xff, 0xf5, 0x70, 0xb9, 0x9c, 0x00, 0xe6, 0x72, + 0x0a, 0x59, 0x8d, 0xf0, 0x25, 0xb2, 0xf0, 0x3d, 0x00, 0x00, 0xff, 0xff, 0xb1, 0x00, 0x16, 0x27, + 0xad, 0x0b, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1175,10 +1176,10 @@ func (m *QueryAgentRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = 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))) + if len(m.Agent) > 0 { + i -= len(m.Agent) + copy(dAtA[i:], m.Agent) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Agent))) i-- dAtA[i] = 0xa } @@ -1398,8 +1399,8 @@ func (m *QueryProposalRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if m.Id != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.Id)) + if m.Proposal != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Proposal)) i-- dAtA[i] = 0x8 } @@ -1717,7 +1718,7 @@ func (m *QueryAgentRequest) Size() (n int) { } var l int _ = l - l = len(m.Address) + l = len(m.Agent) if l > 0 { n += 1 + l + sovQuery(uint64(l)) } @@ -1809,8 +1810,8 @@ func (m *QueryProposalRequest) Size() (n int) { } var l int _ = l - if m.Id != 0 { - n += 1 + sovQuery(uint64(m.Id)) + if m.Proposal != 0 { + n += 1 + sovQuery(uint64(m.Proposal)) } return n } @@ -2088,7 +2089,7 @@ func (m *QueryAgentRequest) Unmarshal(dAtA []byte) error { switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Agent", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -2116,7 +2117,7 @@ func (m *QueryAgentRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Address = string(dAtA[iNdEx:postIndex]) + m.Agent = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -2690,9 +2691,9 @@ func (m *QueryProposalRequest) Unmarshal(dAtA []byte) error { switch fieldNum { case 1: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Proposal", wireType) } - m.Id = 0 + m.Proposal = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -2702,7 +2703,7 @@ func (m *QueryProposalRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Id |= uint64(b&0x7F) << shift + m.Proposal |= uint64(b&0x7F) << shift if b < 0x80 { break } diff --git a/x/escrow/andromeda/escrow/v1alpha1/query.pb.gw.go b/x/escrow/andromeda/escrow/v1alpha1/query.pb.gw.go index 948068b..3311c91 100644 --- a/x/escrow/andromeda/escrow/v1alpha1/query.pb.gw.go +++ b/x/escrow/andromeda/escrow/v1alpha1/query.pb.gw.go @@ -62,15 +62,15 @@ func request_Query_Agent_0(ctx context.Context, marshaler runtime.Marshaler, cli _ = err ) - val, ok = pathParams["address"] + val, ok = pathParams["agent"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "address") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "agent") } - protoReq.Address, err = runtime.String(val) + protoReq.Agent, err = runtime.String(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "address", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "agent", err) } msg, err := client.Agent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) @@ -89,15 +89,15 @@ func local_request_Query_Agent_0(ctx context.Context, marshaler runtime.Marshale _ = err ) - val, ok = pathParams["address"] + val, ok = pathParams["agent"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "address") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "agent") } - protoReq.Address, err = runtime.String(val) + protoReq.Agent, err = runtime.String(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "address", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "agent", err) } msg, err := server.Agent(ctx, &protoReq) @@ -152,15 +152,15 @@ func request_Query_Proposal_0(ctx context.Context, marshaler runtime.Marshaler, _ = err ) - val, ok = pathParams["id"] + val, ok = pathParams["proposal"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "proposal") } - protoReq.Id, err = runtime.Uint64(val) + protoReq.Proposal, err = runtime.Uint64(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "proposal", err) } msg, err := client.Proposal(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) @@ -179,15 +179,15 @@ func local_request_Query_Proposal_0(ctx context.Context, marshaler runtime.Marsh _ = err ) - val, ok = pathParams["id"] + val, ok = pathParams["proposal"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "proposal") } - protoReq.Id, err = runtime.Uint64(val) + protoReq.Proposal, err = runtime.Uint64(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "proposal", err) } msg, err := server.Proposal(ctx, &protoReq) @@ -499,11 +499,11 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie var ( pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"andromeda", "escrow", "v1alpha1", "params"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_Query_Agent_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"andromeda", "escrow", "v1alpha1", "agents", "address"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_Agent_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"andromeda", "escrow", "v1alpha1", "agents", "agent"}, "", runtime.AssumeColonVerbOpt(true))) pattern_Query_Agents_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"andromeda", "escrow", "v1alpha1", "agents"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_Query_Proposal_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"andromeda", "escrow", "v1alpha1", "proposals", "id"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_Proposal_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"andromeda", "escrow", "v1alpha1", "proposals", "proposal"}, "", runtime.AssumeColonVerbOpt(true))) pattern_Query_Proposals_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"andromeda", "escrow", "v1alpha1", "proposals"}, "", runtime.AssumeColonVerbOpt(true))) ) diff --git a/x/escrow/andromeda/escrow/v1alpha1/tx.pb.go b/x/escrow/andromeda/escrow/v1alpha1/tx.pb.go index 29356b3..1fd9cc9 100644 --- a/x/escrow/andromeda/escrow/v1alpha1/tx.pb.go +++ b/x/escrow/andromeda/escrow/v1alpha1/tx.pb.go @@ -303,7 +303,7 @@ func (m *MsgSubmitProposal) GetMetadata() string { // MsgSubmitProposalResponse is the Msg/SubmitProposal response type. type MsgSubmitProposalResponse struct { // the identifier of the submitted proposal - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + Proposal uint64 `protobuf:"varint,1,opt,name=proposal,proto3" json:"proposal,omitempty"` } func (m *MsgSubmitProposalResponse) Reset() { *m = MsgSubmitProposalResponse{} } @@ -339,9 +339,9 @@ func (m *MsgSubmitProposalResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgSubmitProposalResponse proto.InternalMessageInfo -func (m *MsgSubmitProposalResponse) GetId() uint64 { +func (m *MsgSubmitProposalResponse) GetProposal() uint64 { if m != nil { - return m.Id + return m.Proposal } return 0 } @@ -473,50 +473,49 @@ func init() { } var fileDescriptor_78c48d1f0ffd37da = []byte{ - // 678 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x94, 0xcf, 0x6e, 0xd3, 0x4a, - 0x14, 0xc6, 0x6b, 0x27, 0xbd, 0x69, 0x4f, 0x7a, 0x73, 0x55, 0xdf, 0x8a, 0x26, 0x46, 0x44, 0x95, - 0x25, 0xa4, 0x10, 0xc0, 0x56, 0x42, 0x01, 0xc9, 0xac, 0x12, 0x54, 0xc1, 0x82, 0x48, 0x91, 0x0b, - 0x15, 0x42, 0x95, 0xa2, 0xa9, 0x3d, 0xb8, 0x11, 0xb1, 0xc7, 0xf2, 0x4c, 0x4a, 0xba, 0x43, 0xec, - 0xd8, 0xb1, 0xe0, 0x09, 0x58, 0xb2, 0xea, 0x02, 0x89, 0x57, 0x40, 0x5d, 0x55, 0xac, 0x58, 0xa2, - 0x74, 0x51, 0x89, 0x15, 0x8f, 0x80, 0xc6, 0xce, 0x4c, 0xda, 0xa2, 0xfc, 0x61, 0x95, 0x1c, 0x9f, - 0xdf, 0xf9, 0xce, 0xcc, 0x37, 0x73, 0x06, 0x0c, 0x14, 0x7a, 0x31, 0x09, 0xb0, 0x87, 0x2c, 0x4c, - 0xdd, 0x98, 0xbc, 0xb6, 0x0e, 0x6a, 0xa8, 0x17, 0xed, 0xa3, 0x9a, 0xc5, 0x06, 0x66, 0x14, 0x13, - 0x46, 0xb4, 0x92, 0x64, 0xcc, 0x94, 0x31, 0x05, 0xa3, 0xaf, 0xbb, 0x84, 0x06, 0x84, 0x5a, 0x01, - 0xf5, 0xad, 0x83, 0x1a, 0xff, 0x49, 0x6b, 0xf4, 0x52, 0x9a, 0xe8, 0x24, 0x91, 0x95, 0x06, 0x22, - 0xe5, 0x13, 0xe2, 0xf7, 0xb0, 0x95, 0x44, 0x7b, 0xfd, 0x97, 0x16, 0x0a, 0x0f, 0xd3, 0x94, 0xf1, - 0x4e, 0x81, 0xff, 0x5a, 0xd4, 0x7f, 0x16, 0x79, 0x88, 0xe1, 0x36, 0x8a, 0x51, 0x40, 0xb5, 0x7b, - 0xb0, 0x8c, 0xfa, 0x6c, 0x9f, 0xc4, 0x5d, 0x76, 0x58, 0x54, 0x36, 0x94, 0xca, 0x72, 0xb3, 0xf8, - 0xed, 0xf3, 0xed, 0xb5, 0x91, 0x66, 0xc3, 0xf3, 0x62, 0x4c, 0xe9, 0x36, 0x8b, 0xbb, 0xa1, 0xef, - 0x8c, 0x51, 0xcd, 0x84, 0xff, 0x03, 0x34, 0xe8, 0x04, 0x98, 0x21, 0x0f, 0x31, 0xd4, 0xe9, 0xe1, - 0xd0, 0x67, 0xfb, 0x45, 0x75, 0x43, 0xa9, 0x64, 0x9d, 0xd5, 0x00, 0x0d, 0x5a, 0xa3, 0xcc, 0x93, - 0x24, 0x61, 0x17, 0xde, 0x9e, 0x1d, 0x55, 0xc7, 0xf5, 0x46, 0x09, 0xd6, 0x2f, 0x2d, 0xc5, 0xc1, - 0x34, 0x22, 0x21, 0xc5, 0x86, 0x03, 0x85, 0x16, 0xf5, 0x1f, 0xc6, 0x18, 0x31, 0xdc, 0xf0, 0x71, - 0xc8, 0xb4, 0x3a, 0xe4, 0x5c, 0x1e, 0x92, 0x78, 0xe6, 0x12, 0x05, 0x68, 0xaf, 0xf0, 0x86, 0x22, - 0x32, 0x1e, 0xc3, 0x95, 0x8b, 0x9a, 0xa2, 0x9b, 0x66, 0xc2, 0x22, 0xe2, 0x1f, 0x66, 0x2a, 0xa7, - 0x98, 0xf1, 0x41, 0x85, 0xd5, 0x16, 0xf5, 0xb7, 0xfb, 0x7b, 0x41, 0x97, 0xb5, 0x63, 0x12, 0x11, - 0x8a, 0x7a, 0xda, 0x26, 0x2c, 0x45, 0xc9, 0x7f, 0x3c, 0x7b, 0x89, 0x92, 0x1c, 0xf7, 0x56, 0xe7, - 0xea, 0xad, 0xdd, 0x85, 0x7c, 0x14, 0xe3, 0x0e, 0x72, 0x59, 0x97, 0x84, 0xb4, 0x98, 0xd9, 0xc8, - 0x54, 0xf2, 0xf5, 0x35, 0x33, 0x3d, 0x71, 0x53, 0x9c, 0xb8, 0xd9, 0x08, 0x0f, 0x1d, 0x88, 0x62, - 0xdc, 0x48, 0x39, 0xed, 0x3e, 0xac, 0x44, 0x84, 0x32, 0x59, 0x97, 0x9d, 0x52, 0x97, 0xe7, 0xa4, - 0x28, 0xd4, 0x61, 0x49, 0x1c, 0x70, 0x71, 0x91, 0x2f, 0xd1, 0x91, 0xb1, 0xfd, 0x2f, 0xf7, 0x57, - 0x6e, 0xc5, 0xb8, 0x09, 0xa5, 0x3f, 0x5c, 0x91, 0x1e, 0x17, 0x40, 0xed, 0x7a, 0x89, 0x2f, 0x59, - 0x47, 0xed, 0x7a, 0xc6, 0xb1, 0x02, 0xb9, 0x16, 0xf5, 0xb7, 0x06, 0xd8, 0xe5, 0x3d, 0xa2, 0x11, - 0x3f, 0x22, 0x64, 0xcc, 0x5d, 0xc5, 0x03, 0xec, 0xf6, 0xf9, 0xc1, 0xcf, 0xb2, 0x48, 0x92, 0x63, - 0x57, 0x33, 0xf3, 0xb9, 0x6a, 0x42, 0x6e, 0x1e, 0x67, 0x04, 0x34, 0xda, 0xb9, 0x68, 0x67, 0xac, - 0x26, 0x43, 0xc5, 0xf7, 0x22, 0xf6, 0x5b, 0xff, 0x92, 0x81, 0x4c, 0x8b, 0xfa, 0x5a, 0x08, 0x2b, - 0x17, 0x86, 0xad, 0x6a, 0x4e, 0x9c, 0x75, 0xf3, 0xd2, 0x34, 0xe8, 0xf5, 0xf9, 0x59, 0xe9, 0xf3, - 0x2b, 0xc8, 0x9f, 0x1f, 0x9b, 0x1b, 0xd3, 0x25, 0xce, 0xa1, 0x7a, 0x6d, 0x6e, 0x54, 0x36, 0x63, - 0x50, 0xb8, 0x34, 0x04, 0xb7, 0xa6, 0x8b, 0x5c, 0xa4, 0xf5, 0xcd, 0xbf, 0xa1, 0x65, 0xd7, 0x1d, - 0xc8, 0x26, 0xd7, 0xc6, 0x98, 0x5e, 0xcd, 0x19, 0xbd, 0x3a, 0x9b, 0x11, 0xba, 0xfa, 0xe2, 0x9b, - 0xb3, 0xa3, 0xaa, 0xd2, 0xfc, 0xa5, 0x7c, 0x1d, 0x96, 0x95, 0x93, 0x61, 0x59, 0xf9, 0x31, 0x2c, - 0x2b, 0xef, 0x4f, 0xcb, 0x0b, 0x27, 0xa7, 0xe5, 0x85, 0xef, 0xa7, 0xe5, 0x05, 0xb8, 0xe6, 0x92, - 0x60, 0xb2, 0x60, 0x33, 0xf7, 0x74, 0xd0, 0xe6, 0xd7, 0xa5, 0xad, 0xbc, 0xa8, 0x4c, 0x7c, 0xf5, - 0x1f, 0xa4, 0xb1, 0x08, 0x3f, 0xaa, 0x99, 0xc6, 0xd6, 0xf3, 0x4f, 0x6a, 0xa9, 0x21, 0x65, 0xb7, - 0x52, 0xd9, 0x9d, 0x11, 0x71, 0x7c, 0x2e, 0xb7, 0x9b, 0xe6, 0x76, 0x45, 0x6e, 0xa8, 0x5e, 0x9f, - 0x98, 0xdb, 0x7d, 0xd4, 0x6e, 0x8a, 0x17, 0xf8, 0xa7, 0x7a, 0x55, 0x72, 0xb6, 0x9d, 0x82, 0xb6, - 0x2d, 0xc8, 0xbd, 0x7f, 0x92, 0x5b, 0x7e, 0xe7, 0x77, 0x00, 0x00, 0x00, 0xff, 0xff, 0xd7, 0x50, - 0xda, 0xba, 0xac, 0x06, 0x00, 0x00, + // 670 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x95, 0xcf, 0x6b, 0x13, 0x41, + 0x14, 0xc7, 0xbb, 0x9b, 0xd4, 0xb4, 0x2f, 0xb5, 0xd2, 0xb5, 0xd8, 0x64, 0xc5, 0x50, 0x16, 0x84, + 0x18, 0x74, 0x97, 0xc4, 0x6a, 0x61, 0x3d, 0x25, 0x52, 0xf4, 0x60, 0x20, 0x6c, 0xb5, 0x88, 0x14, + 0xc2, 0x74, 0x33, 0x6e, 0x83, 0xd9, 0x9d, 0x65, 0x67, 0x52, 0xb7, 0x37, 0xf1, 0xe6, 0xcd, 0x83, + 0x7f, 0x81, 0x47, 0x4f, 0x3d, 0x08, 0xfe, 0x0b, 0xd2, 0x53, 0xf1, 0xe4, 0x51, 0xd2, 0x43, 0xc1, + 0x93, 0x7f, 0x82, 0xec, 0x4e, 0x66, 0xd2, 0x56, 0xf2, 0xc3, 0x53, 0xf2, 0xf6, 0x7d, 0xde, 0xf7, + 0xcd, 0x7c, 0x67, 0xde, 0x2e, 0x18, 0x28, 0xe8, 0x44, 0xc4, 0xc7, 0x1d, 0x64, 0x61, 0xea, 0x46, + 0xe4, 0xad, 0x75, 0x50, 0x45, 0xbd, 0x70, 0x1f, 0x55, 0x2d, 0x16, 0x9b, 0x61, 0x44, 0x18, 0xd1, + 0x8a, 0x92, 0x31, 0x39, 0x63, 0x0a, 0x46, 0x5f, 0x73, 0x09, 0xf5, 0x09, 0xb5, 0x7c, 0xea, 0x59, + 0x07, 0xd5, 0xe4, 0x87, 0xd7, 0xe8, 0x45, 0x9e, 0x68, 0xa7, 0x91, 0xc5, 0x03, 0x91, 0xf2, 0x08, + 0xf1, 0x7a, 0xd8, 0x4a, 0xa3, 0xbd, 0xfe, 0x6b, 0x0b, 0x05, 0x87, 0x3c, 0x65, 0x7c, 0x50, 0xe0, + 0x5a, 0x93, 0x7a, 0x2f, 0xc2, 0x0e, 0x62, 0xb8, 0x85, 0x22, 0xe4, 0x53, 0xed, 0x21, 0x2c, 0xa2, + 0x3e, 0xdb, 0x27, 0x51, 0x97, 0x1d, 0x16, 0x94, 0x75, 0xa5, 0xbc, 0xd8, 0x28, 0xfc, 0xf8, 0x7a, + 0x6f, 0x75, 0xa8, 0x59, 0xef, 0x74, 0x22, 0x4c, 0xe9, 0x36, 0x8b, 0xba, 0x81, 0xe7, 0x8c, 0x50, + 0xcd, 0x84, 0xeb, 0x3e, 0x8a, 0xdb, 0x3e, 0x66, 0xa8, 0x83, 0x18, 0x6a, 0xf7, 0x70, 0xe0, 0xb1, + 0xfd, 0x82, 0xba, 0xae, 0x94, 0xb3, 0xce, 0x8a, 0x8f, 0xe2, 0xe6, 0x30, 0xf3, 0x2c, 0x4d, 0xd8, + 0xcb, 0xef, 0xcf, 0x8e, 0x2a, 0xa3, 0x7a, 0xa3, 0x08, 0x6b, 0x97, 0x96, 0xe2, 0x60, 0x1a, 0x92, + 0x80, 0x62, 0xc3, 0x81, 0xe5, 0x26, 0xf5, 0x1e, 0x47, 0x18, 0x31, 0x5c, 0xf7, 0x70, 0xc0, 0xb4, + 0x1a, 0xe4, 0xdc, 0x24, 0x24, 0xd1, 0xd4, 0x25, 0x0a, 0xd0, 0x5e, 0x4a, 0x1a, 0x8a, 0xc8, 0x78, + 0x0a, 0x37, 0x2e, 0x6a, 0x8a, 0x6e, 0x9a, 0x09, 0xf3, 0x28, 0x79, 0x30, 0x55, 0x99, 0x63, 0xc6, + 0x27, 0x15, 0x56, 0x9a, 0xd4, 0xdb, 0xee, 0xef, 0xf9, 0x5d, 0xd6, 0x8a, 0x48, 0x48, 0x28, 0xea, + 0x69, 0x1b, 0xb0, 0x10, 0xa6, 0xff, 0xf1, 0xf4, 0x25, 0x4a, 0x72, 0xd4, 0x5b, 0x9d, 0xa9, 0xb7, + 0xf6, 0x00, 0xf2, 0x61, 0x84, 0xdb, 0xc8, 0x65, 0x5d, 0x12, 0xd0, 0x42, 0x66, 0x3d, 0x53, 0xce, + 0xd7, 0x56, 0x4d, 0x7e, 0xe2, 0xa6, 0x38, 0x71, 0xb3, 0x1e, 0x1c, 0x3a, 0x10, 0x46, 0xb8, 0xce, + 0x39, 0x6d, 0x13, 0x96, 0x42, 0x42, 0x99, 0xac, 0xcb, 0x4e, 0xa8, 0xcb, 0x27, 0xa4, 0x28, 0xd4, + 0x61, 0x41, 0x1c, 0x70, 0x61, 0x3e, 0x59, 0xa2, 0x23, 0x63, 0xfb, 0x6a, 0xe2, 0xaf, 0xdc, 0x8a, + 0xb1, 0x09, 0xc5, 0x7f, 0x5c, 0x91, 0x1e, 0xeb, 0xc2, 0x1d, 0xd4, 0x4b, 0xdd, 0xc9, 0x3a, 0x32, + 0x36, 0x8e, 0x15, 0xc8, 0x35, 0xa9, 0xb7, 0x15, 0x63, 0x77, 0x12, 0x97, 0x38, 0x8c, 0x63, 0xec, + 0xf6, 0x93, 0x4b, 0x30, 0xcd, 0x2e, 0x49, 0x8e, 0x1c, 0xce, 0xcc, 0xe6, 0xb0, 0x09, 0xb9, 0x59, + 0x5c, 0x12, 0xd0, 0xd0, 0x05, 0xd1, 0xce, 0x58, 0x49, 0x07, 0x2c, 0xd9, 0x8b, 0xd8, 0x7b, 0xed, + 0x5b, 0x06, 0x32, 0x4d, 0xea, 0x69, 0x01, 0x2c, 0x5d, 0x18, 0xbc, 0x8a, 0x39, 0x76, 0xee, 0xcd, + 0x4b, 0x93, 0xa1, 0xd7, 0x66, 0x67, 0xa5, 0xe7, 0x6f, 0x20, 0x7f, 0x7e, 0x84, 0xee, 0x4c, 0x96, + 0x38, 0x87, 0xea, 0xd5, 0x99, 0x51, 0xd9, 0x8c, 0xc1, 0xf2, 0xa5, 0x81, 0xb8, 0x3b, 0x59, 0xe4, + 0x22, 0xad, 0x6f, 0xfc, 0x0f, 0x2d, 0xbb, 0xee, 0x40, 0x36, 0xbd, 0x36, 0xc6, 0xe4, 0xea, 0x84, + 0xd1, 0x2b, 0xd3, 0x19, 0xa1, 0xab, 0xcf, 0xbf, 0x3b, 0x3b, 0xaa, 0x28, 0x8d, 0x3f, 0xca, 0xf7, + 0x41, 0x49, 0x39, 0x19, 0x94, 0x94, 0x5f, 0x83, 0x92, 0xf2, 0xf1, 0xb4, 0x34, 0x77, 0x72, 0x5a, + 0x9a, 0xfb, 0x79, 0x5a, 0x9a, 0x83, 0x5b, 0x2e, 0xf1, 0xc7, 0x0b, 0x36, 0x72, 0xcf, 0xe3, 0x56, + 0x72, 0x5d, 0x5a, 0xca, 0xab, 0xf2, 0xd8, 0x2f, 0xc0, 0x23, 0x1e, 0x8b, 0xf0, 0xb3, 0x9a, 0xa9, + 0x6f, 0xbd, 0xfc, 0xa2, 0x16, 0xeb, 0x52, 0x76, 0x8b, 0xcb, 0xee, 0x0c, 0x89, 0xe3, 0x73, 0xb9, + 0x5d, 0x9e, 0xdb, 0x15, 0xb9, 0x81, 0x7a, 0x7b, 0x6c, 0x6e, 0xf7, 0x49, 0xab, 0x21, 0xde, 0xc6, + 0xbf, 0xd5, 0x9b, 0x92, 0xb3, 0x6d, 0x0e, 0xda, 0xb6, 0x20, 0xf7, 0xae, 0xa4, 0xb7, 0xfc, 0xfe, + 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x55, 0x85, 0x7c, 0x0d, 0xb8, 0x06, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -925,8 +924,8 @@ func (m *MsgSubmitProposalResponse) MarshalToSizedBuffer(dAtA []byte) (int, erro _ = i var l int _ = l - if m.Id != 0 { - i = encodeVarintTx(dAtA, i, uint64(m.Id)) + if m.Proposal != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.Proposal)) i-- dAtA[i] = 0x8 } @@ -1113,8 +1112,8 @@ func (m *MsgSubmitProposalResponse) Size() (n int) { } var l int _ = l - if m.Id != 0 { - n += 1 + sovTx(uint64(m.Id)) + if m.Proposal != 0 { + n += 1 + sovTx(uint64(m.Proposal)) } return n } @@ -1720,9 +1719,9 @@ func (m *MsgSubmitProposalResponse) Unmarshal(dAtA []byte) error { switch fieldNum { case 1: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Proposal", wireType) } - m.Id = 0 + m.Proposal = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -1732,7 +1731,7 @@ func (m *MsgSubmitProposalResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Id |= uint64(b&0x7F) << shift + m.Proposal |= uint64(b&0x7F) << shift if b < 0x80 { break } diff --git a/x/escrow/api/andromeda/escrow/v1alpha1/event.pulsar.go b/x/escrow/api/andromeda/escrow/v1alpha1/event.pulsar.go index 6acf815..349eac4 100644 --- a/x/escrow/api/andromeda/escrow/v1alpha1/event.pulsar.go +++ b/x/escrow/api/andromeda/escrow/v1alpha1/event.pulsar.go @@ -1070,7 +1070,7 @@ func (x *_EventSubmitProposal_5_list) IsValid() bool { var ( md_EventSubmitProposal protoreflect.MessageDescriptor - fd_EventSubmitProposal_id protoreflect.FieldDescriptor + fd_EventSubmitProposal_proposal protoreflect.FieldDescriptor fd_EventSubmitProposal_proposer protoreflect.FieldDescriptor fd_EventSubmitProposal_agent protoreflect.FieldDescriptor fd_EventSubmitProposal_pre_actions protoreflect.FieldDescriptor @@ -1081,7 +1081,7 @@ var ( func init() { file_andromeda_escrow_v1alpha1_event_proto_init() md_EventSubmitProposal = File_andromeda_escrow_v1alpha1_event_proto.Messages().ByName("EventSubmitProposal") - fd_EventSubmitProposal_id = md_EventSubmitProposal.Fields().ByName("id") + fd_EventSubmitProposal_proposal = md_EventSubmitProposal.Fields().ByName("proposal") fd_EventSubmitProposal_proposer = md_EventSubmitProposal.Fields().ByName("proposer") fd_EventSubmitProposal_agent = md_EventSubmitProposal.Fields().ByName("agent") fd_EventSubmitProposal_pre_actions = md_EventSubmitProposal.Fields().ByName("pre_actions") @@ -1154,9 +1154,9 @@ func (x *fastReflection_EventSubmitProposal) Interface() protoreflect.ProtoMessa // While iterating, mutating operations may only be performed // on the current field descriptor. func (x *fastReflection_EventSubmitProposal) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Id != uint64(0) { - value := protoreflect.ValueOfUint64(x.Id) - if !f(fd_EventSubmitProposal_id, value) { + if x.Proposal != uint64(0) { + value := protoreflect.ValueOfUint64(x.Proposal) + if !f(fd_EventSubmitProposal_proposal, value) { return } } @@ -1205,8 +1205,8 @@ func (x *fastReflection_EventSubmitProposal) Range(f func(protoreflect.FieldDesc // a repeated field is populated if it is non-empty. func (x *fastReflection_EventSubmitProposal) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.EventSubmitProposal.id": - return x.Id != uint64(0) + case "andromeda.escrow.v1alpha1.EventSubmitProposal.proposal": + return x.Proposal != uint64(0) case "andromeda.escrow.v1alpha1.EventSubmitProposal.proposer": return x.Proposer != "" case "andromeda.escrow.v1alpha1.EventSubmitProposal.agent": @@ -1233,8 +1233,8 @@ func (x *fastReflection_EventSubmitProposal) Has(fd protoreflect.FieldDescriptor // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_EventSubmitProposal) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.EventSubmitProposal.id": - x.Id = uint64(0) + case "andromeda.escrow.v1alpha1.EventSubmitProposal.proposal": + x.Proposal = uint64(0) case "andromeda.escrow.v1alpha1.EventSubmitProposal.proposer": x.Proposer = "" case "andromeda.escrow.v1alpha1.EventSubmitProposal.agent": @@ -1261,8 +1261,8 @@ func (x *fastReflection_EventSubmitProposal) Clear(fd protoreflect.FieldDescript // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_EventSubmitProposal) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "andromeda.escrow.v1alpha1.EventSubmitProposal.id": - value := x.Id + case "andromeda.escrow.v1alpha1.EventSubmitProposal.proposal": + value := x.Proposal return protoreflect.ValueOfUint64(value) case "andromeda.escrow.v1alpha1.EventSubmitProposal.proposer": value := x.Proposer @@ -1305,8 +1305,8 @@ func (x *fastReflection_EventSubmitProposal) Get(descriptor protoreflect.FieldDe // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_EventSubmitProposal) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.EventSubmitProposal.id": - x.Id = value.Uint() + case "andromeda.escrow.v1alpha1.EventSubmitProposal.proposal": + x.Proposal = value.Uint() case "andromeda.escrow.v1alpha1.EventSubmitProposal.proposer": x.Proposer = value.Interface().(string) case "andromeda.escrow.v1alpha1.EventSubmitProposal.agent": @@ -1353,8 +1353,8 @@ func (x *fastReflection_EventSubmitProposal) Mutable(fd protoreflect.FieldDescri } value := &_EventSubmitProposal_5_list{list: &x.PostActions} return protoreflect.ValueOfList(value) - case "andromeda.escrow.v1alpha1.EventSubmitProposal.id": - panic(fmt.Errorf("field id of message andromeda.escrow.v1alpha1.EventSubmitProposal is not mutable")) + case "andromeda.escrow.v1alpha1.EventSubmitProposal.proposal": + panic(fmt.Errorf("field proposal of message andromeda.escrow.v1alpha1.EventSubmitProposal is not mutable")) case "andromeda.escrow.v1alpha1.EventSubmitProposal.proposer": panic(fmt.Errorf("field proposer of message andromeda.escrow.v1alpha1.EventSubmitProposal is not mutable")) case "andromeda.escrow.v1alpha1.EventSubmitProposal.agent": @@ -1374,7 +1374,7 @@ func (x *fastReflection_EventSubmitProposal) Mutable(fd protoreflect.FieldDescri // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_EventSubmitProposal) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.EventSubmitProposal.id": + case "andromeda.escrow.v1alpha1.EventSubmitProposal.proposal": return protoreflect.ValueOfUint64(uint64(0)) case "andromeda.escrow.v1alpha1.EventSubmitProposal.proposer": return protoreflect.ValueOfString("") @@ -1457,8 +1457,8 @@ func (x *fastReflection_EventSubmitProposal) ProtoMethods() *protoiface.Methods var n int var l int _ = l - if x.Id != 0 { - n += 1 + runtime.Sov(uint64(x.Id)) + if x.Proposal != 0 { + n += 1 + runtime.Sov(uint64(x.Proposal)) } l = len(x.Proposer) if l > 0 { @@ -1566,8 +1566,8 @@ func (x *fastReflection_EventSubmitProposal) ProtoMethods() *protoiface.Methods i-- dAtA[i] = 0x12 } - if x.Id != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Id)) + if x.Proposal != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Proposal)) i-- dAtA[i] = 0x8 } @@ -1622,9 +1622,9 @@ func (x *fastReflection_EventSubmitProposal) ProtoMethods() *protoiface.Methods switch fieldNum { case 1: if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Proposal", wireType) } - x.Id = 0 + x.Proposal = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -1634,7 +1634,7 @@ func (x *fastReflection_EventSubmitProposal) ProtoMethods() *protoiface.Methods } b := dAtA[iNdEx] iNdEx++ - x.Id |= uint64(b&0x7F) << shift + x.Proposal |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2556,7 +2556,7 @@ type EventSubmitProposal struct { unknownFields protoimpl.UnknownFields // the identifier of the proposal - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + Proposal uint64 `protobuf:"varint,1,opt,name=proposal,proto3" json:"proposal,omitempty"` // the address of the proposer Proposer string `protobuf:"bytes,2,opt,name=proposer,proto3" json:"proposer,omitempty"` // the address of the agent in charge @@ -2589,9 +2589,9 @@ func (*EventSubmitProposal) Descriptor() ([]byte, []int) { return file_andromeda_escrow_v1alpha1_event_proto_rawDescGZIP(), []int{2} } -func (x *EventSubmitProposal) GetId() uint64 { +func (x *EventSubmitProposal) GetProposal() uint64 { if x != nil { - return x.Id + return x.Proposal } return 0 } @@ -2711,49 +2711,49 @@ var file_andromeda_escrow_v1alpha1_event_proto_rawDesc = []byte{ 0x6e, 0x67, 0x52, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x32, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, - 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x97, 0x02, + 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0xa3, 0x02, 0x0a, 0x13, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x50, 0x72, 0x6f, - 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x34, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, - 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, - 0x67, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x12, 0x2e, 0x0a, 0x05, 0x61, - 0x67, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, - 0x72, 0x69, 0x6e, 0x67, 0x52, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x35, 0x0a, 0x0b, 0x70, - 0x72, 0x65, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0a, 0x70, 0x72, 0x65, 0x41, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x12, 0x37, 0x0a, 0x0c, 0x70, 0x6f, 0x73, 0x74, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, - 0x70, 0x6f, 0x73, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x6d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0x8d, 0x01, 0x0a, 0x09, 0x45, 0x76, 0x65, 0x6e, - 0x74, 0x45, 0x78, 0x65, 0x63, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, + 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, - 0x6c, 0x12, 0x34, 0x0a, 0x08, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, + 0x6c, 0x12, 0x34, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, - 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x65, - 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x12, 0x2e, 0x0a, 0x07, 0x61, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x07, - 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0xdf, 0x01, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x2e, - 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, - 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x0a, 0x45, 0x76, 0x65, 0x6e, 0x74, - 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2c, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x64, - 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2f, 0x76, 0x31, - 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x3b, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x76, 0x31, 0x61, - 0x6c, 0x70, 0x68, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x45, 0x58, 0xaa, 0x02, 0x19, 0x41, 0x6e, - 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x56, - 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xca, 0x02, 0x19, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, - 0x65, 0x64, 0x61, 0x5c, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, - 0x68, 0x61, 0x31, 0xe2, 0x02, 0x25, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x5c, - 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x5c, - 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1b, 0x41, 0x6e, - 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x3a, 0x3a, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x3a, - 0x3a, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, + 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x70, + 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x12, 0x2e, 0x0a, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, + 0x52, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x35, 0x0a, 0x0b, 0x70, 0x72, 0x65, 0x5f, 0x61, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, + 0x6e, 0x79, 0x52, 0x0a, 0x70, 0x72, 0x65, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x37, + 0x0a, 0x0c, 0x70, 0x6f, 0x73, 0x74, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x05, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, 0x70, 0x6f, 0x73, 0x74, + 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0x22, 0x8d, 0x01, 0x0a, 0x09, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x45, 0x78, 0x65, + 0x63, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x34, 0x0a, + 0x08, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, + 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x65, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x6f, 0x72, 0x12, 0x2e, 0x0a, 0x07, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x07, 0x61, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x42, 0xdf, 0x01, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x6e, 0x64, 0x72, + 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x0a, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x74, + 0x6f, 0x50, 0x01, 0x5a, 0x2c, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, + 0x64, 0x61, 0x2f, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x3b, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0xa2, 0x02, 0x03, 0x41, 0x45, 0x58, 0xaa, 0x02, 0x19, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, + 0x65, 0x64, 0x61, 0x2e, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x56, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0xca, 0x02, 0x19, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x5c, + 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xe2, + 0x02, 0x25, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x5c, 0x45, 0x73, 0x63, 0x72, + 0x6f, 0x77, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1b, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, + 0x65, 0x64, 0x61, 0x3a, 0x3a, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x3a, 0x3a, 0x56, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/x/escrow/api/andromeda/escrow/v1alpha1/query.pulsar.go b/x/escrow/api/andromeda/escrow/v1alpha1/query.pulsar.go index c91d0d2..2f6b7cc 100644 --- a/x/escrow/api/andromeda/escrow/v1alpha1/query.pulsar.go +++ b/x/escrow/api/andromeda/escrow/v1alpha1/query.pulsar.go @@ -777,14 +777,14 @@ func (x *fastReflection_QueryParamsResponse) ProtoMethods() *protoiface.Methods } var ( - md_QueryAgentRequest protoreflect.MessageDescriptor - fd_QueryAgentRequest_address protoreflect.FieldDescriptor + md_QueryAgentRequest protoreflect.MessageDescriptor + fd_QueryAgentRequest_agent protoreflect.FieldDescriptor ) func init() { file_andromeda_escrow_v1alpha1_query_proto_init() md_QueryAgentRequest = File_andromeda_escrow_v1alpha1_query_proto.Messages().ByName("QueryAgentRequest") - fd_QueryAgentRequest_address = md_QueryAgentRequest.Fields().ByName("address") + fd_QueryAgentRequest_agent = md_QueryAgentRequest.Fields().ByName("agent") } var _ protoreflect.Message = (*fastReflection_QueryAgentRequest)(nil) @@ -852,9 +852,9 @@ func (x *fastReflection_QueryAgentRequest) Interface() protoreflect.ProtoMessage // While iterating, mutating operations may only be performed // on the current field descriptor. func (x *fastReflection_QueryAgentRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Address != "" { - value := protoreflect.ValueOfString(x.Address) - if !f(fd_QueryAgentRequest_address, value) { + if x.Agent != "" { + value := protoreflect.ValueOfString(x.Agent) + if !f(fd_QueryAgentRequest_agent, value) { return } } @@ -873,8 +873,8 @@ func (x *fastReflection_QueryAgentRequest) Range(f func(protoreflect.FieldDescri // a repeated field is populated if it is non-empty. func (x *fastReflection_QueryAgentRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.QueryAgentRequest.address": - return x.Address != "" + case "andromeda.escrow.v1alpha1.QueryAgentRequest.agent": + return x.Agent != "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentRequest")) @@ -891,8 +891,8 @@ func (x *fastReflection_QueryAgentRequest) Has(fd protoreflect.FieldDescriptor) // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryAgentRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.QueryAgentRequest.address": - x.Address = "" + case "andromeda.escrow.v1alpha1.QueryAgentRequest.agent": + x.Agent = "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentRequest")) @@ -909,8 +909,8 @@ func (x *fastReflection_QueryAgentRequest) Clear(fd protoreflect.FieldDescriptor // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_QueryAgentRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "andromeda.escrow.v1alpha1.QueryAgentRequest.address": - value := x.Address + case "andromeda.escrow.v1alpha1.QueryAgentRequest.agent": + value := x.Agent return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { @@ -932,8 +932,8 @@ func (x *fastReflection_QueryAgentRequest) Get(descriptor protoreflect.FieldDesc // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryAgentRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.QueryAgentRequest.address": - x.Address = value.Interface().(string) + case "andromeda.escrow.v1alpha1.QueryAgentRequest.agent": + x.Agent = value.Interface().(string) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentRequest")) @@ -954,8 +954,8 @@ func (x *fastReflection_QueryAgentRequest) Set(fd protoreflect.FieldDescriptor, // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryAgentRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.QueryAgentRequest.address": - panic(fmt.Errorf("field address of message andromeda.escrow.v1alpha1.QueryAgentRequest is not mutable")) + case "andromeda.escrow.v1alpha1.QueryAgentRequest.agent": + panic(fmt.Errorf("field agent of message andromeda.escrow.v1alpha1.QueryAgentRequest is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentRequest")) @@ -969,7 +969,7 @@ func (x *fastReflection_QueryAgentRequest) Mutable(fd protoreflect.FieldDescript // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_QueryAgentRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.QueryAgentRequest.address": + case "andromeda.escrow.v1alpha1.QueryAgentRequest.agent": return protoreflect.ValueOfString("") default: if fd.IsExtension() { @@ -1040,7 +1040,7 @@ func (x *fastReflection_QueryAgentRequest) ProtoMethods() *protoiface.Methods { var n int var l int _ = l - l = len(x.Address) + l = len(x.Agent) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } @@ -1073,10 +1073,10 @@ func (x *fastReflection_QueryAgentRequest) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Address) > 0 { - i -= len(x.Address) - copy(dAtA[i:], x.Address) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address))) + if len(x.Agent) > 0 { + i -= len(x.Agent) + copy(dAtA[i:], x.Agent) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Agent))) i-- dAtA[i] = 0xa } @@ -1131,7 +1131,7 @@ func (x *fastReflection_QueryAgentRequest) ProtoMethods() *protoiface.Methods { switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Agent", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -1159,7 +1159,7 @@ func (x *fastReflection_QueryAgentRequest) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Address = string(dAtA[iNdEx:postIndex]) + x.Agent = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -3608,14 +3608,14 @@ func (x *fastReflection_QueryAgentsResponse_Agent) ProtoMethods() *protoiface.Me } var ( - md_QueryProposalRequest protoreflect.MessageDescriptor - fd_QueryProposalRequest_id protoreflect.FieldDescriptor + md_QueryProposalRequest protoreflect.MessageDescriptor + fd_QueryProposalRequest_proposal protoreflect.FieldDescriptor ) func init() { file_andromeda_escrow_v1alpha1_query_proto_init() md_QueryProposalRequest = File_andromeda_escrow_v1alpha1_query_proto.Messages().ByName("QueryProposalRequest") - fd_QueryProposalRequest_id = md_QueryProposalRequest.Fields().ByName("id") + fd_QueryProposalRequest_proposal = md_QueryProposalRequest.Fields().ByName("proposal") } var _ protoreflect.Message = (*fastReflection_QueryProposalRequest)(nil) @@ -3683,9 +3683,9 @@ func (x *fastReflection_QueryProposalRequest) Interface() protoreflect.ProtoMess // While iterating, mutating operations may only be performed // on the current field descriptor. func (x *fastReflection_QueryProposalRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Id != uint64(0) { - value := protoreflect.ValueOfUint64(x.Id) - if !f(fd_QueryProposalRequest_id, value) { + if x.Proposal != uint64(0) { + value := protoreflect.ValueOfUint64(x.Proposal) + if !f(fd_QueryProposalRequest_proposal, value) { return } } @@ -3704,8 +3704,8 @@ func (x *fastReflection_QueryProposalRequest) Range(f func(protoreflect.FieldDes // a repeated field is populated if it is non-empty. func (x *fastReflection_QueryProposalRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.QueryProposalRequest.id": - return x.Id != uint64(0) + case "andromeda.escrow.v1alpha1.QueryProposalRequest.proposal": + return x.Proposal != uint64(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalRequest")) @@ -3722,8 +3722,8 @@ func (x *fastReflection_QueryProposalRequest) Has(fd protoreflect.FieldDescripto // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryProposalRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.QueryProposalRequest.id": - x.Id = uint64(0) + case "andromeda.escrow.v1alpha1.QueryProposalRequest.proposal": + x.Proposal = uint64(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalRequest")) @@ -3740,8 +3740,8 @@ func (x *fastReflection_QueryProposalRequest) Clear(fd protoreflect.FieldDescrip // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_QueryProposalRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "andromeda.escrow.v1alpha1.QueryProposalRequest.id": - value := x.Id + case "andromeda.escrow.v1alpha1.QueryProposalRequest.proposal": + value := x.Proposal return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { @@ -3763,8 +3763,8 @@ func (x *fastReflection_QueryProposalRequest) Get(descriptor protoreflect.FieldD // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryProposalRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.QueryProposalRequest.id": - x.Id = value.Uint() + case "andromeda.escrow.v1alpha1.QueryProposalRequest.proposal": + x.Proposal = value.Uint() default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalRequest")) @@ -3785,8 +3785,8 @@ func (x *fastReflection_QueryProposalRequest) Set(fd protoreflect.FieldDescripto // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryProposalRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.QueryProposalRequest.id": - panic(fmt.Errorf("field id of message andromeda.escrow.v1alpha1.QueryProposalRequest is not mutable")) + case "andromeda.escrow.v1alpha1.QueryProposalRequest.proposal": + panic(fmt.Errorf("field proposal of message andromeda.escrow.v1alpha1.QueryProposalRequest is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalRequest")) @@ -3800,7 +3800,7 @@ func (x *fastReflection_QueryProposalRequest) Mutable(fd protoreflect.FieldDescr // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_QueryProposalRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.QueryProposalRequest.id": + case "andromeda.escrow.v1alpha1.QueryProposalRequest.proposal": return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { @@ -3871,8 +3871,8 @@ func (x *fastReflection_QueryProposalRequest) ProtoMethods() *protoiface.Methods var n int var l int _ = l - if x.Id != 0 { - n += 1 + runtime.Sov(uint64(x.Id)) + if x.Proposal != 0 { + n += 1 + runtime.Sov(uint64(x.Proposal)) } if x.unknownFields != nil { n += len(x.unknownFields) @@ -3903,8 +3903,8 @@ func (x *fastReflection_QueryProposalRequest) ProtoMethods() *protoiface.Methods i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.Id != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Id)) + if x.Proposal != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Proposal)) i-- dAtA[i] = 0x8 } @@ -3959,9 +3959,9 @@ func (x *fastReflection_QueryProposalRequest) ProtoMethods() *protoiface.Methods switch fieldNum { case 1: if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Proposal", wireType) } - x.Id = 0 + x.Proposal = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -3971,7 +3971,7 @@ func (x *fastReflection_QueryProposalRequest) ProtoMethods() *protoiface.Methods } b := dAtA[iNdEx] iNdEx++ - x.Id |= uint64(b&0x7F) << shift + x.Proposal |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7282,7 +7282,7 @@ type QueryAgentRequest struct { unknownFields protoimpl.UnknownFields // the address of an agent - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + Agent string `protobuf:"bytes,1,opt,name=agent,proto3" json:"agent,omitempty"` } func (x *QueryAgentRequest) Reset() { @@ -7305,9 +7305,9 @@ func (*QueryAgentRequest) Descriptor() ([]byte, []int) { return file_andromeda_escrow_v1alpha1_query_proto_rawDescGZIP(), []int{2} } -func (x *QueryAgentRequest) GetAddress() string { +func (x *QueryAgentRequest) GetAgent() string { if x != nil { - return x.Address + return x.Agent } return "" } @@ -7439,7 +7439,7 @@ type QueryProposalRequest struct { unknownFields protoimpl.UnknownFields // the identifier of a proposal - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + Proposal uint64 `protobuf:"varint,1,opt,name=proposal,proto3" json:"proposal,omitempty"` } func (x *QueryProposalRequest) Reset() { @@ -7462,9 +7462,9 @@ func (*QueryProposalRequest) Descriptor() ([]byte, []int) { return file_andromeda_escrow_v1alpha1_query_proto_rawDescGZIP(), []int{6} } -func (x *QueryProposalRequest) GetId() uint64 { +func (x *QueryProposalRequest) GetProposal() uint64 { if x != nil { - return x.Id + return x.Proposal } return 0 } @@ -7866,173 +7866,174 @@ var file_andromeda_escrow_v1alpha1_query_proto_rawDesc = []byte{ 0x2e, 0x0a, 0x13, 0x6d, 0x61, 0x78, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x11, 0x6d, 0x61, 0x78, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x4c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x22, - 0x47, 0x0a, 0x11, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x32, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, - 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0xd0, 0x01, 0x0a, 0x12, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x49, 0x0a, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x33, - 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, - 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x41, 0x67, - 0x65, 0x6e, 0x74, 0x52, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x1a, 0x6f, 0x0a, 0x05, 0x41, 0x67, - 0x65, 0x6e, 0x74, 0x12, 0x32, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, + 0x43, 0x0a, 0x11, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, + 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x05, 0x61, + 0x67, 0x65, 0x6e, 0x74, 0x22, 0xd0, 0x01, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x67, + 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x49, 0x0a, 0x05, 0x61, + 0x67, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x61, 0x6e, 0x64, + 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x67, 0x65, 0x6e, + 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, + 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x1a, 0x6f, 0x0a, 0x05, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, + 0x32, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x12, 0x32, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, - 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x32, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, - 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, - 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, - 0x6e, 0x67, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x5c, 0x0a, 0x12, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, - 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, - 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x9d, 0x02, 0x0a, 0x13, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x4c, 0x0a, 0x06, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x34, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, - 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x2e, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x12, + 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x5c, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, + 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, + 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, + 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x9d, 0x02, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, + 0x67, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4c, 0x0a, + 0x06, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x34, 0x2e, + 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, + 0x67, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x41, 0x67, + 0x65, 0x6e, 0x74, 0x52, 0x06, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x70, + 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, + 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x6f, 0x0a, 0x05, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x32, 0x0a, + 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, + 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x12, 0x32, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x63, 0x72, + 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x32, 0x0a, 0x14, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, + 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, + 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x22, 0xfd, 0x02, 0x0a, 0x15, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x55, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, + 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, + 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x1a, 0x8c, 0x02, 0x0a, 0x08, 0x50, + 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x34, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, + 0x73, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, + 0x69, 0x6e, 0x67, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x12, 0x2e, 0x0a, + 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, + 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x35, 0x0a, + 0x0b, 0x70, 0x72, 0x65, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0a, 0x70, 0x72, 0x65, 0x41, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x37, 0x0a, 0x0c, 0x70, 0x6f, 0x73, 0x74, 0x5f, 0x61, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, + 0x52, 0x0b, 0x70, 0x6f, 0x73, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1a, 0x0a, + 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0x5f, 0x0a, 0x15, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, + 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, + 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xca, 0x03, 0x0a, 0x16, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x58, 0x0a, 0x09, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, + 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, + 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, + 0x61, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x70, + 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, - 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x6f, 0x0a, 0x05, 0x41, 0x67, 0x65, 0x6e, - 0x74, 0x12, 0x32, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x61, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x32, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, - 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x26, 0x0a, 0x14, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, - 0x64, 0x22, 0xfd, 0x02, 0x0a, 0x15, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, - 0x73, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x55, 0x0a, 0x08, 0x70, - 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x39, 0x2e, - 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, - 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, - 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, - 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, - 0x61, 0x6c, 0x1a, 0x8c, 0x02, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, - 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, - 0x34, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x70, 0x72, 0x6f, - 0x70, 0x6f, 0x73, 0x65, 0x72, 0x12, 0x2e, 0x0a, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, - 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x05, - 0x61, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x35, 0x0a, 0x0b, 0x70, 0x72, 0x65, 0x5f, 0x61, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, - 0x52, 0x0a, 0x70, 0x72, 0x65, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x37, 0x0a, 0x0c, - 0x70, 0x6f, 0x73, 0x74, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, 0x70, 0x6f, 0x73, 0x74, 0x41, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, - 0x61, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, - 0x61, 0x22, 0x5f, 0x0a, 0x15, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, - 0x61, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, - 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, - 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, - 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x22, 0xca, 0x03, 0x0a, 0x16, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x70, - 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x58, 0x0a, - 0x09, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x3a, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, - 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x09, 0x70, 0x72, - 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, - 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x1a, 0x8c, 0x02, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x0e, 0x0a, - 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x34, 0x0a, - 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, - 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, - 0x73, 0x65, 0x72, 0x12, 0x2e, 0x0a, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x05, 0x61, 0x67, - 0x65, 0x6e, 0x74, 0x12, 0x35, 0x0a, 0x0b, 0x70, 0x72, 0x65, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0a, - 0x70, 0x72, 0x65, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x37, 0x0a, 0x0c, 0x70, 0x6f, - 0x73, 0x74, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, + 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x8c, 0x02, 0x0a, 0x08, 0x50, 0x72, 0x6f, + 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x34, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, + 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, + 0x67, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x12, 0x2e, 0x0a, 0x05, 0x61, + 0x67, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, + 0x72, 0x69, 0x6e, 0x67, 0x52, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x35, 0x0a, 0x0b, 0x70, + 0x72, 0x65, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, 0x70, 0x6f, 0x73, 0x74, 0x41, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, - 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x32, - 0x91, 0x06, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x92, 0x01, 0x0a, 0x06, 0x50, 0x61, - 0x72, 0x61, 0x6d, 0x73, 0x12, 0x2d, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, - 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, - 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, - 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x29, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x23, 0x12, 0x21, 0x2f, 0x61, 0x6e, - 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2f, 0x76, - 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x99, - 0x01, 0x0a, 0x05, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x2c, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, - 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, - 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, - 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, - 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x33, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2d, 0x12, 0x2b, 0x2f, - 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, - 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, - 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x12, 0x92, 0x01, 0x0a, 0x06, 0x41, - 0x67, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x2d, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, - 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, - 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, - 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, - 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x29, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x23, 0x12, 0x21, 0x2f, 0x61, - 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2f, - 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x12, - 0xa0, 0x01, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x2f, 0x2e, 0x61, + 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0a, 0x70, 0x72, 0x65, 0x41, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x12, 0x37, 0x0a, 0x0c, 0x70, 0x6f, 0x73, 0x74, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, + 0x70, 0x6f, 0x73, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x6d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x32, 0x95, 0x06, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x12, 0x92, 0x01, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x2d, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, - 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, - 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, - 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, - 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, - 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x31, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x12, 0x29, 0x2f, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, - 0x65, 0x64, 0x61, 0x2f, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, - 0x68, 0x61, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x2f, 0x7b, 0x69, - 0x64, 0x7d, 0x12, 0x9e, 0x01, 0x0a, 0x09, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, - 0x12, 0x30, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, + 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x61, 0x6e, + 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, + 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x29, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x23, 0x12, 0x21, 0x2f, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, + 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, + 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x97, 0x01, 0x0a, 0x05, 0x41, 0x67, 0x65, 0x6e, 0x74, + 0x12, 0x2c, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, + 0x72, 0x79, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, + 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, + 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x31, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x12, 0x29, 0x2f, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, + 0x61, 0x2f, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x7d, + 0x12, 0x92, 0x01, 0x0a, 0x06, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x2d, 0x2e, 0x61, 0x6e, + 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x67, 0x65, + 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x61, 0x6e, 0x64, + 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x67, 0x65, 0x6e, + 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x29, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x23, 0x12, 0x21, 0x2f, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x65, + 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x61, + 0x67, 0x65, 0x6e, 0x74, 0x73, 0x12, 0xa6, 0x01, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, + 0x61, 0x6c, 0x12, 0x2f, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x26, 0x12, 0x24, 0x2f, + 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, + 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x37, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x31, 0x12, 0x2f, 0x2f, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, - 0x61, 0x6c, 0x73, 0x42, 0xdf, 0x01, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x6e, 0x64, 0x72, - 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, - 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, - 0x6f, 0x50, 0x01, 0x5a, 0x2c, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, - 0x64, 0x61, 0x2f, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, - 0x61, 0x31, 0x3b, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, - 0x31, 0xa2, 0x02, 0x03, 0x41, 0x45, 0x58, 0xaa, 0x02, 0x19, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, - 0x65, 0x64, 0x61, 0x2e, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x56, 0x31, 0x61, 0x6c, 0x70, - 0x68, 0x61, 0x31, 0xca, 0x02, 0x19, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x5c, - 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xe2, - 0x02, 0x25, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x5c, 0x45, 0x73, 0x63, 0x72, - 0x6f, 0x77, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1b, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, - 0x65, 0x64, 0x61, 0x3a, 0x3a, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x3a, 0x3a, 0x56, 0x31, 0x61, - 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x61, 0x6c, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x7d, 0x12, 0x9e, + 0x01, 0x0a, 0x09, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x12, 0x30, 0x2e, 0x61, + 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, + 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, + 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, + 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x2c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x26, 0x12, 0x24, 0x2f, 0x61, 0x6e, 0x64, 0x72, + 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2f, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x42, + 0xdf, 0x01, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, + 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, + 0x2c, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x65, + 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x3b, 0x65, + 0x73, 0x63, 0x72, 0x6f, 0x77, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xa2, 0x02, 0x03, + 0x41, 0x45, 0x58, 0xaa, 0x02, 0x19, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, + 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xca, + 0x02, 0x19, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x5c, 0x45, 0x73, 0x63, 0x72, + 0x6f, 0x77, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xe2, 0x02, 0x25, 0x41, 0x6e, + 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x5c, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x5c, 0x56, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0xea, 0x02, 0x1b, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x3a, + 0x3a, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x3a, 0x3a, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/x/escrow/api/andromeda/escrow/v1alpha1/tx.pulsar.go b/x/escrow/api/andromeda/escrow/v1alpha1/tx.pulsar.go index 299a550..11c9e51 100644 --- a/x/escrow/api/andromeda/escrow/v1alpha1/tx.pulsar.go +++ b/x/escrow/api/andromeda/escrow/v1alpha1/tx.pulsar.go @@ -2504,14 +2504,14 @@ func (x *fastReflection_MsgSubmitProposal) ProtoMethods() *protoiface.Methods { } var ( - md_MsgSubmitProposalResponse protoreflect.MessageDescriptor - fd_MsgSubmitProposalResponse_id protoreflect.FieldDescriptor + md_MsgSubmitProposalResponse protoreflect.MessageDescriptor + fd_MsgSubmitProposalResponse_proposal protoreflect.FieldDescriptor ) func init() { file_andromeda_escrow_v1alpha1_tx_proto_init() md_MsgSubmitProposalResponse = File_andromeda_escrow_v1alpha1_tx_proto.Messages().ByName("MsgSubmitProposalResponse") - fd_MsgSubmitProposalResponse_id = md_MsgSubmitProposalResponse.Fields().ByName("id") + fd_MsgSubmitProposalResponse_proposal = md_MsgSubmitProposalResponse.Fields().ByName("proposal") } var _ protoreflect.Message = (*fastReflection_MsgSubmitProposalResponse)(nil) @@ -2579,9 +2579,9 @@ func (x *fastReflection_MsgSubmitProposalResponse) Interface() protoreflect.Prot // While iterating, mutating operations may only be performed // on the current field descriptor. func (x *fastReflection_MsgSubmitProposalResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Id != uint64(0) { - value := protoreflect.ValueOfUint64(x.Id) - if !f(fd_MsgSubmitProposalResponse_id, value) { + if x.Proposal != uint64(0) { + value := protoreflect.ValueOfUint64(x.Proposal) + if !f(fd_MsgSubmitProposalResponse_proposal, value) { return } } @@ -2600,8 +2600,8 @@ func (x *fastReflection_MsgSubmitProposalResponse) Range(f func(protoreflect.Fie // a repeated field is populated if it is non-empty. func (x *fastReflection_MsgSubmitProposalResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.MsgSubmitProposalResponse.id": - return x.Id != uint64(0) + case "andromeda.escrow.v1alpha1.MsgSubmitProposalResponse.proposal": + return x.Proposal != uint64(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgSubmitProposalResponse")) @@ -2618,8 +2618,8 @@ func (x *fastReflection_MsgSubmitProposalResponse) Has(fd protoreflect.FieldDesc // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgSubmitProposalResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.MsgSubmitProposalResponse.id": - x.Id = uint64(0) + case "andromeda.escrow.v1alpha1.MsgSubmitProposalResponse.proposal": + x.Proposal = uint64(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgSubmitProposalResponse")) @@ -2636,8 +2636,8 @@ func (x *fastReflection_MsgSubmitProposalResponse) Clear(fd protoreflect.FieldDe // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_MsgSubmitProposalResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "andromeda.escrow.v1alpha1.MsgSubmitProposalResponse.id": - value := x.Id + case "andromeda.escrow.v1alpha1.MsgSubmitProposalResponse.proposal": + value := x.Proposal return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { @@ -2659,8 +2659,8 @@ func (x *fastReflection_MsgSubmitProposalResponse) Get(descriptor protoreflect.F // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgSubmitProposalResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.MsgSubmitProposalResponse.id": - x.Id = value.Uint() + case "andromeda.escrow.v1alpha1.MsgSubmitProposalResponse.proposal": + x.Proposal = value.Uint() default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgSubmitProposalResponse")) @@ -2681,8 +2681,8 @@ func (x *fastReflection_MsgSubmitProposalResponse) Set(fd protoreflect.FieldDesc // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgSubmitProposalResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.MsgSubmitProposalResponse.id": - panic(fmt.Errorf("field id of message andromeda.escrow.v1alpha1.MsgSubmitProposalResponse is not mutable")) + case "andromeda.escrow.v1alpha1.MsgSubmitProposalResponse.proposal": + panic(fmt.Errorf("field proposal of message andromeda.escrow.v1alpha1.MsgSubmitProposalResponse is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgSubmitProposalResponse")) @@ -2696,7 +2696,7 @@ func (x *fastReflection_MsgSubmitProposalResponse) Mutable(fd protoreflect.Field // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_MsgSubmitProposalResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.MsgSubmitProposalResponse.id": + case "andromeda.escrow.v1alpha1.MsgSubmitProposalResponse.proposal": return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { @@ -2767,8 +2767,8 @@ func (x *fastReflection_MsgSubmitProposalResponse) ProtoMethods() *protoiface.Me var n int var l int _ = l - if x.Id != 0 { - n += 1 + runtime.Sov(uint64(x.Id)) + if x.Proposal != 0 { + n += 1 + runtime.Sov(uint64(x.Proposal)) } if x.unknownFields != nil { n += len(x.unknownFields) @@ -2799,8 +2799,8 @@ func (x *fastReflection_MsgSubmitProposalResponse) ProtoMethods() *protoiface.Me i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.Id != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Id)) + if x.Proposal != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Proposal)) i-- dAtA[i] = 0x8 } @@ -2855,9 +2855,9 @@ func (x *fastReflection_MsgSubmitProposalResponse) ProtoMethods() *protoiface.Me switch fieldNum { case 1: if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Proposal", wireType) } - x.Id = 0 + x.Proposal = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -2867,7 +2867,7 @@ func (x *fastReflection_MsgSubmitProposalResponse) ProtoMethods() *protoiface.Me } b := dAtA[iNdEx] iNdEx++ - x.Id |= uint64(b&0x7F) << shift + x.Proposal |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4177,7 +4177,7 @@ type MsgSubmitProposalResponse struct { unknownFields protoimpl.UnknownFields // the identifier of the submitted proposal - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + Proposal uint64 `protobuf:"varint,1,opt,name=proposal,proto3" json:"proposal,omitempty"` } func (x *MsgSubmitProposalResponse) Reset() { @@ -4200,9 +4200,9 @@ func (*MsgSubmitProposalResponse) Descriptor() ([]byte, []int) { return file_andromeda_escrow_v1alpha1_tx_proto_rawDescGZIP(), []int{5} } -func (x *MsgSubmitProposalResponse) GetId() uint64 { +func (x *MsgSubmitProposalResponse) GetProposal() uint64 { if x != nil { - return x.Id + return x.Proposal } return 0 } @@ -4348,66 +4348,67 @@ var file_andromeda_escrow_v1alpha1_tx_proto_rawDesc = []byte{ 0x6e, 0x79, 0x52, 0x0b, 0x70, 0x6f, 0x73, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x3a, 0x0d, 0x82, 0xe7, 0xb0, - 0x2a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x22, 0x2b, 0x0a, 0x19, 0x4d, 0x73, + 0x2a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x22, 0x37, 0x0a, 0x19, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x22, 0xca, 0x01, 0x0a, 0x07, 0x4d, 0x73, 0x67, 0x45, - 0x78, 0x65, 0x63, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, - 0x34, 0x0a, 0x08, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x65, 0x78, 0x65, - 0x63, 0x75, 0x74, 0x6f, 0x72, 0x12, 0x2e, 0x0a, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, - 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x05, - 0x61, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x2e, 0x0a, 0x07, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x07, 0x61, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x3a, 0x0d, 0x82, 0xe7, 0xb0, 0x2a, 0x08, 0x65, 0x78, 0x65, 0x63, - 0x75, 0x74, 0x6f, 0x72, 0x22, 0x11, 0x0a, 0x0f, 0x4d, 0x73, 0x67, 0x45, 0x78, 0x65, 0x63, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xb7, 0x03, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, - 0x6e, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, - 0x2a, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, - 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x1a, 0x32, 0x2e, 0x61, 0x6e, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, + 0x73, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, + 0x73, 0x61, 0x6c, 0x22, 0xca, 0x01, 0x0a, 0x07, 0x4d, 0x73, 0x67, 0x45, 0x78, 0x65, 0x63, 0x12, + 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x34, 0x0a, 0x08, 0x65, + 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, + 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, + 0x72, 0x12, 0x2e, 0x0a, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x05, 0x61, 0x67, 0x65, 0x6e, + 0x74, 0x12, 0x2e, 0x0a, 0x07, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x07, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x3a, 0x0d, 0x82, 0xe7, 0xb0, 0x2a, 0x08, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, + 0x22, 0x11, 0x0a, 0x0f, 0x4d, 0x73, 0x67, 0x45, 0x78, 0x65, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x32, 0xb7, 0x03, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x6e, 0x0a, 0x0c, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x2a, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x6b, 0x0a, 0x0b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x29, - 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, - 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x1a, 0x31, 0x2e, 0x61, 0x6e, 0x64, 0x72, - 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, - 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, - 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x74, 0x0a, 0x0e, - 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x2c, - 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, - 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x75, - 0x62, 0x6d, 0x69, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x1a, 0x34, 0x2e, 0x61, - 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, - 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, - 0x69, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x56, 0x0a, 0x04, 0x45, 0x78, 0x65, 0x63, 0x12, 0x22, 0x2e, 0x61, 0x6e, 0x64, - 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, - 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x45, 0x78, 0x65, 0x63, 0x1a, 0x2a, - 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, - 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x45, 0x78, - 0x65, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x1a, 0x05, 0x80, 0xe7, 0xb0, 0x2a, - 0x01, 0x42, 0xdc, 0x01, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, + 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x1a, 0x32, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, - 0x68, 0x61, 0x31, 0x42, 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2c, - 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x65, 0x73, - 0x63, 0x72, 0x6f, 0x77, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x3b, 0x65, 0x73, - 0x63, 0x72, 0x6f, 0x77, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x41, - 0x45, 0x58, 0xaa, 0x02, 0x19, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x45, - 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xca, 0x02, - 0x19, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x5c, 0x45, 0x73, 0x63, 0x72, 0x6f, - 0x77, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xe2, 0x02, 0x25, 0x41, 0x6e, 0x64, + 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, + 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6b, 0x0a, 0x0b, 0x43, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x29, 0x2e, 0x61, 0x6e, 0x64, + 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x41, 0x67, 0x65, 0x6e, 0x74, 0x1a, 0x31, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, + 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x67, 0x65, 0x6e, 0x74, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x74, 0x0a, 0x0e, 0x53, 0x75, 0x62, 0x6d, + 0x69, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x2c, 0x2e, 0x61, 0x6e, 0x64, + 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, + 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x1a, 0x34, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, + 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x50, 0x72, + 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x56, + 0x0a, 0x04, 0x45, 0x78, 0x65, 0x63, 0x12, 0x22, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, + 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x45, 0x78, 0x65, 0x63, 0x1a, 0x2a, 0x2e, 0x61, 0x6e, 0x64, + 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x45, 0x78, 0x65, 0x63, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x1a, 0x05, 0x80, 0xe7, 0xb0, 0x2a, 0x01, 0x42, 0xdc, 0x01, + 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, + 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, + 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2c, 0x61, 0x70, 0x69, 0x2f, + 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, + 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x3b, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x45, 0x58, 0xaa, 0x02, + 0x19, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x45, 0x73, 0x63, 0x72, 0x6f, + 0x77, 0x2e, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xca, 0x02, 0x19, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x5c, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x5c, 0x56, 0x31, - 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, - 0x74, 0x61, 0xea, 0x02, 0x1b, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x3a, 0x3a, - 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x3a, 0x3a, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xe2, 0x02, 0x25, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, + 0x64, 0x61, 0x5c, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, + 0x1b, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x3a, 0x3a, 0x45, 0x73, 0x63, 0x72, + 0x6f, 0x77, 0x3a, 0x3a, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/x/escrow/keeper/internal/grpc_query.go b/x/escrow/keeper/internal/grpc_query.go index a0d0bdf..671f66f 100644 --- a/x/escrow/keeper/internal/grpc_query.go +++ b/x/escrow/keeper/internal/grpc_query.go @@ -49,16 +49,16 @@ func (s queryServer) Agent(ctx context.Context, req *escrowv1alpha1.QueryAgentRe return nil, status.Errorf(codes.InvalidArgument, "empty request") } - if req.Address == "" { - return nil, escrowv1alpha1.ErrUnimplemented.Wrap("nil address") + if req.Agent == "" { + return nil, escrowv1alpha1.ErrUnimplemented.Wrap("nil agent") } - address, err := s.keeper.addressStringToBytes(req.Address) + agent, err := s.keeper.addressStringToBytes(req.Agent) if err != nil { - return nil, errorsmod.Wrap(err, "address") + return nil, errorsmod.Wrap(err, "agent") } - creator, _, err := s.keeper.GetAgent(ctx, address) + creator, _, err := s.keeper.GetAgent(ctx, agent) if err != nil { return nil, err } @@ -70,7 +70,7 @@ func (s queryServer) Agent(ctx context.Context, req *escrowv1alpha1.QueryAgentRe return &escrowv1alpha1.QueryAgentResponse{ Agent: &escrowv1alpha1.QueryAgentResponse_Agent{ - Address: req.Address, + Address: req.Agent, Creator: creatorStr, }, }, nil @@ -115,11 +115,11 @@ func (s queryServer) Proposal(ctx context.Context, req *escrowv1alpha1.QueryProp return nil, status.Errorf(codes.InvalidArgument, "empty request") } - if req.Id == 0 { - return nil, escrowv1alpha1.ErrUnimplemented.Wrap("nil id") + if req.Proposal == 0 { + return nil, escrowv1alpha1.ErrUnimplemented.Wrap("nil proposal") } - proposer, proposal, err := s.keeper.GetProposal(ctx, req.Id) + proposer, proposal, err := s.keeper.GetProposal(ctx, req.Proposal) if err != nil { return nil, err } @@ -136,7 +136,7 @@ func (s queryServer) Proposal(ctx context.Context, req *escrowv1alpha1.QueryProp return &escrowv1alpha1.QueryProposalResponse{ Proposal: &escrowv1alpha1.QueryProposalResponse_Proposal{ - Id: req.Id, + Id: req.Proposal, Proposer: proposerStr, Agent: agentStr, PreActions: proposal.PreActions, diff --git a/x/escrow/keeper/internal/grpc_query_test.go b/x/escrow/keeper/internal/grpc_query_test.go index e190f2e..caf8f5f 100644 --- a/x/escrow/keeper/internal/grpc_query_test.go +++ b/x/escrow/keeper/internal/grpc_query_test.go @@ -34,34 +34,34 @@ func (s *KeeperTestSuite) TestQueryAgent() { s.Require().NotNil(res) s.Require().NotNil(res.Agent) - s.Require().Equal(subject.Address, res.Agent.Address) + s.Require().Equal(subject.Agent, res.Agent.Address) s.Require().NotNil(res.Agent.Creator) return nil } cases := []map[string]testutil.Case[escrowv1alpha1.QueryAgentRequest]{ { - "nil address": { + "nil agent": { Error: func() error { return escrowv1alpha1.ErrUnimplemented }, }, - "valid address": { + "valid agent": { Malleate: func(subject *escrowv1alpha1.QueryAgentRequest) { - subject.Address = s.addressBytesToString(s.agentIdle) + subject.Agent = s.addressBytesToString(s.agentIdle) }, }, - "invalid address": { + "invalid agent": { Malleate: func(subject *escrowv1alpha1.QueryAgentRequest) { - subject.Address = notInBech32 + subject.Agent = notInBech32 }, Error: func() error { return escrowv1alpha1.ErrInvalidAddress }, }, - "address not found": { + "agent not found": { Malleate: func(subject *escrowv1alpha1.QueryAgentRequest) { - subject.Address = s.addressBytesToString(createRandomAccounts(1)[0]) + subject.Agent = s.addressBytesToString(createRandomAccounts(1)[0]) }, Error: func() error { return escrowv1alpha1.ErrAgentNotFound @@ -109,7 +109,7 @@ func (s *KeeperTestSuite) TestQueryProposal() { s.Require().NotNil(res) s.Require().NotNil(res.Proposal) - s.Require().Equal(subject.Id, res.Proposal.Id) + s.Require().Equal(subject.Proposal, res.Proposal.Id) s.Require().NotNil(res.Proposal.Proposer) s.Require().NotNil(res.Proposal.Agent) s.Require().NotNil(res.Proposal.PreActions) @@ -119,19 +119,19 @@ func (s *KeeperTestSuite) TestQueryProposal() { } cases := []map[string]testutil.Case[escrowv1alpha1.QueryProposalRequest]{ { - "nil id": { + "nil proposal": { Error: func() error { return escrowv1alpha1.ErrUnimplemented }, }, - "valid id": { + "valid proposal": { Malleate: func(subject *escrowv1alpha1.QueryProposalRequest) { - subject.Id = s.proposalLast + subject.Proposal = s.proposalLast }, }, - "id not found": { + "proposal not found": { Malleate: func(subject *escrowv1alpha1.QueryProposalRequest) { - subject.Id = s.proposalLast + 1 + subject.Proposal = s.proposalLast + 1 }, Error: func() error { return escrowv1alpha1.ErrProposalNotFound diff --git a/x/escrow/keeper/internal/msg_server.go b/x/escrow/keeper/internal/msg_server.go index c7995d9..6e3b7ac 100644 --- a/x/escrow/keeper/internal/msg_server.go +++ b/x/escrow/keeper/internal/msg_server.go @@ -135,7 +135,7 @@ func (s msgServer) SubmitProposal(ctx context.Context, req *escrowv1alpha1.MsgSu } if err := sdk.UnwrapSDKContext(ctx).EventManager().EmitTypedEvent(&escrowv1alpha1.EventSubmitProposal{ - Id: id, + Proposal: id, Proposer: req.Proposer, Agent: req.Agent, PreActions: req.PreActions, @@ -145,12 +145,12 @@ func (s msgServer) SubmitProposal(ctx context.Context, req *escrowv1alpha1.MsgSu return nil, escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()) } - return &escrowv1alpha1.MsgSubmitProposalResponse{Id: id}, nil + return &escrowv1alpha1.MsgSubmitProposalResponse{Proposal: id}, nil } func (s msgServer) Exec(ctx context.Context, req *escrowv1alpha1.MsgExec) (*escrowv1alpha1.MsgExecResponse, error) { if req.Proposal == 0 { - return nil, escrowv1alpha1.ErrUnimplemented.Wrap("nil id") + return nil, escrowv1alpha1.ErrUnimplemented.Wrap("nil proposal") } if req.Executor == "" { diff --git a/x/escrow/keeper/internal/msg_server_test.go b/x/escrow/keeper/internal/msg_server_test.go index bf1ddfd..acb8d8d 100644 --- a/x/escrow/keeper/internal/msg_server_test.go +++ b/x/escrow/keeper/internal/msg_server_test.go @@ -130,7 +130,7 @@ func (s *KeeperTestSuite) TestMsgSubmitProposal() { s.Require().NotEmpty(events) eventExpected, err := sdk.TypedEventToEvent(&escrowv1alpha1.EventSubmitProposal{ - Id: s.proposalLast + 1, + Proposal: s.proposalLast + 1, Proposer: subject.Proposer, Agent: subject.Agent, PreActions: subject.PreActions, diff --git a/x/escrow/proto/andromeda/escrow/v1alpha1/event.proto b/x/escrow/proto/andromeda/escrow/v1alpha1/event.proto index 143c575..d69ff93 100644 --- a/x/escrow/proto/andromeda/escrow/v1alpha1/event.proto +++ b/x/escrow/proto/andromeda/escrow/v1alpha1/event.proto @@ -25,7 +25,7 @@ message EventCreateAgent { // EventSubmitProposal is emitted on Msg/SubmitProposal. message EventSubmitProposal { // the identifier of the proposal - uint64 id = 1; + uint64 proposal = 1; // the address of the proposer string proposer = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; diff --git a/x/escrow/proto/andromeda/escrow/v1alpha1/query.proto b/x/escrow/proto/andromeda/escrow/v1alpha1/query.proto index 8da9ce5..18470ed 100644 --- a/x/escrow/proto/andromeda/escrow/v1alpha1/query.proto +++ b/x/escrow/proto/andromeda/escrow/v1alpha1/query.proto @@ -15,7 +15,7 @@ service Query { // Agent queries an agent. rpc Agent(QueryAgentRequest) returns (QueryAgentResponse) { - option (google.api.http).get = "/andromeda/escrow/v1alpha1/agents/{address}"; + option (google.api.http).get = "/andromeda/escrow/v1alpha1/agents/{agent}"; } // Agents queries all the agents. @@ -25,7 +25,7 @@ service Query { // Proposal queries a proposal. rpc Proposal(QueryProposalRequest) returns (QueryProposalResponse) { - option (google.api.http).get = "/andromeda/escrow/v1alpha1/proposals/{id}"; + option (google.api.http).get = "/andromeda/escrow/v1alpha1/proposals/{proposal}"; } // Proposals queries all the proposals. @@ -46,7 +46,7 @@ message QueryParamsResponse { // QueryAgentRequest is the request type for the Query/Agent RPC method. message QueryAgentRequest { // the address of an agent - string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + string agent = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; } // QueryAgentResponse is the response type for the Query/Agent RPC method. @@ -91,7 +91,7 @@ message QueryAgentsResponse { // QueryProposalRequest is the request type for the Query/Proposal RPC method. message QueryProposalRequest { // the identifier of a proposal - uint64 id = 1; + uint64 proposal = 1; } // QueryProposalResponse is the response type for the Query/Proposal RPC method. diff --git a/x/escrow/proto/andromeda/escrow/v1alpha1/tx.proto b/x/escrow/proto/andromeda/escrow/v1alpha1/tx.proto index 52fdc88..6da8fd4 100644 --- a/x/escrow/proto/andromeda/escrow/v1alpha1/tx.proto +++ b/x/escrow/proto/andromeda/escrow/v1alpha1/tx.proto @@ -77,7 +77,7 @@ message MsgSubmitProposal { // MsgSubmitProposalResponse is the Msg/SubmitProposal response type. message MsgSubmitProposalResponse { // the identifier of the submitted proposal - uint64 id = 1; + uint64 proposal = 1; } // MsgExec is the Msg/Exec request type. From 49127a957fd7a9e7d5cbbceba924ada24eae1e91 Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Fri, 26 Jan 2024 13:45:32 +0000 Subject: [PATCH 25/62] Resolve SonarCloud issues --- x/escrow/module/depinject.go | 9 +++++++-- x/escrow/module/module.go | 4 ++-- x/test/module/module.go | 1 + 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/x/escrow/module/depinject.go b/x/escrow/module/depinject.go index bf1ab95..04f1c88 100644 --- a/x/escrow/module/depinject.go +++ b/x/escrow/module/depinject.go @@ -15,8 +15,13 @@ import ( var _ appmodule.AppModule = (*AppModule)(nil) -func (AppModule) IsOnePerModuleType() {} -func (AppModule) IsAppModule() {} +func (AppModule) IsOnePerModuleType() { + // IsOnePerModuleType is a marker function just indicates that this is a one-per-module type. +} + +func (AppModule) IsAppModule() { + // IsAppModule is a dummy method to tag a struct as implementing an AppModule. +} func init() { appmodule.Register(&modulev1alpha1.Module{}, diff --git a/x/escrow/module/module.go b/x/escrow/module/module.go index 0257341..12d98bb 100644 --- a/x/escrow/module/module.go +++ b/x/escrow/module/module.go @@ -34,7 +34,7 @@ func (AppModuleBasic) Name() string { } func (AppModuleBasic) RegisterLegacyAminoCodec(_ *codec.LegacyAmino) { - // escrowv1alpha1.RegisterLegacyAminoCodec(cdc) + // Amino deprecated. } func (AppModuleBasic) RegisterInterfaces(registry codectypes.InterfaceRegistry) { @@ -90,7 +90,7 @@ func (am AppModule) ValidateGenesis(cdc codec.JSONCodec, _ client.TxEncodingConf var _ module.HasInvariants = (*AppModule)(nil) func (am AppModule) RegisterInvariants(_ sdk.InvariantRegistry) { - // TODO(@0Tech): add invariants + // No invariants. } // ____________________________________________________________________________ diff --git a/x/test/module/module.go b/x/test/module/module.go index 5f41934..e4bcc7a 100644 --- a/x/test/module/module.go +++ b/x/test/module/module.go @@ -30,6 +30,7 @@ func (AppModuleBasic) Name() string { } func (AppModuleBasic) RegisterLegacyAminoCodec(_ *codec.LegacyAmino) { + // Amino deprecated. } func (AppModuleBasic) RegisterInterfaces(registry codectypes.InterfaceRegistry) { From 8fdfb8d7aaf6d065c2eeb8540af3c1e6be1183cf Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Sat, 27 Jan 2024 06:44:29 +0000 Subject: [PATCH 26/62] Update errors --- x/escrow/andromeda/escrow/v1alpha1/errors.go | 2 ++ x/escrow/keeper/internal/agent.go | 11 +++-------- x/escrow/keeper/internal/exec.go | 14 ++++---------- x/escrow/keeper/internal/genesis.go | 16 ++++++++-------- x/escrow/keeper/internal/proposal.go | 11 +++-------- x/test/keeper/internal/asset.go | 7 ++++++- 6 files changed, 26 insertions(+), 35 deletions(-) diff --git a/x/escrow/andromeda/escrow/v1alpha1/errors.go b/x/escrow/andromeda/escrow/v1alpha1/errors.go index 2e45e55..33248bd 100644 --- a/x/escrow/andromeda/escrow/v1alpha1/errors.go +++ b/x/escrow/andromeda/escrow/v1alpha1/errors.go @@ -14,11 +14,13 @@ const ( errorCodeUnimplemented errorCodeInvalidAddress + errorCodeInvalidMessage ) var ( ErrUnimplemented = errors.RegisterWithGRPCCode(errorCodespace, errorCodeUnimplemented, codes.Unimplemented, "unimplemented request") ErrInvalidAddress = errors.RegisterWithGRPCCode(errorCodespace, errorCodeInvalidAddress, codes.InvalidArgument, "invalid address") + ErrInvalidMessage = errors.RegisterWithGRPCCode(errorCodespace, errorCodeInvalidMessage, codes.InvalidArgument, "invalid message") ) // stateful errors diff --git a/x/escrow/keeper/internal/agent.go b/x/escrow/keeper/internal/agent.go index 0e0ba38..92073a1 100644 --- a/x/escrow/keeper/internal/agent.go +++ b/x/escrow/keeper/internal/agent.go @@ -27,6 +27,7 @@ func (k Keeper) CreateAgent(ctx context.Context, creator sdk.AccAddress) (sdk.Ac if err != nil { return nil, escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()) } + address := sdk.AccAddress(ac.Address()) if k.authKeeper.HasAccount(ctx, address) { // collision found. retry. @@ -49,7 +50,6 @@ func (k Keeper) CreateAgent(ctx context.Context, creator sdk.AccAddress) (sdk.Ac k.authKeeper.SetAccount(ctx, acc) if err := k.setAgent(ctx, address, creator, &escrowv1alpha1.Agent{}); err != nil { - // TODO: invariant broken return nil, err } @@ -112,13 +112,8 @@ func (k Keeper) setAgent(ctx context.Context, address, creator sdk.AccAddress, a return nil } -func (k Keeper) removeAgent(ctx context.Context, address sdk.AccAddress) error { - key, err := k.getAgentKey(ctx, address) - if err != nil { - return err - } - - if err := k.agents.Remove(ctx, *key); err != nil { +func (k Keeper) removeAgent(ctx context.Context, address, creator sdk.AccAddress) error { + if err := k.agents.Remove(ctx, collections.Join(creator, address)); err != nil { return escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()) } diff --git a/x/escrow/keeper/internal/exec.go b/x/escrow/keeper/internal/exec.go index 816e930..07e2628 100644 --- a/x/escrow/keeper/internal/exec.go +++ b/x/escrow/keeper/internal/exec.go @@ -12,7 +12,7 @@ import ( ) func (k Keeper) Exec(ctx context.Context, id uint64, _, agent sdk.AccAddress, actions []*codectypes.Any) error { - _, proposal, err := k.GetProposal(ctx, id) + proposer, proposal, err := k.GetProposal(ctx, id) if err != nil { return err } @@ -39,12 +39,7 @@ func (k Keeper) Exec(ctx context.Context, id uint64, _, agent sdk.AccAddress, ac } } - if err := k.removeProposal(ctx, id); err != nil { - // TODO: invariant broken error handler - return err - } - - return nil + return k.removeProposal(ctx, id, proposer) } func (k Keeper) executeActions(ctx context.Context, actions []*codectypes.Any) error { @@ -62,7 +57,7 @@ func (k Keeper) executeActions(ctx context.Context, actions []*codectypes.Any) e handler := k.router.Handler(msg) if handler == nil { - panic("TODO: error") + return addIndex(escrowv1alpha1.ErrInvalidMessage.Wrap("handler not found")) } result, err := handler(sdkCtx, msg) @@ -79,8 +74,7 @@ func (k Keeper) executeActions(ctx context.Context, actions []*codectypes.Any) e func (k Keeper) anyToMsg(any codectypes.Any) (sdk.Msg, error) { var msg sdk.Msg if err := k.cdc.UnpackAny(&any, &msg); err != nil { - // TODO: define error - return nil, err + return nil, escrowv1alpha1.ErrInvalidMessage.Wrap(err.Error()) } return msg, nil diff --git a/x/escrow/keeper/internal/genesis.go b/x/escrow/keeper/internal/genesis.go index 15de6ad..e647ae0 100644 --- a/x/escrow/keeper/internal/genesis.go +++ b/x/escrow/keeper/internal/genesis.go @@ -222,12 +222,12 @@ func (k Keeper) initGenesisAgents(ctx context.Context, agents []*escrowv1alpha1. func (k Keeper) initGenesisAgent(ctx context.Context, agent *escrowv1alpha1.GenesisState_Agent) error { address, err := k.addressStringToBytes(agent.Address) if err != nil { - return errorsmod.Wrap(err, "address") + return errorsmod.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "address") } creator, err := k.addressStringToBytes(agent.Creator) if err != nil { - return errorsmod.Wrap(err, "creator") + return errorsmod.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "creator") } return k.setAgent(ctx, address, creator, &escrowv1alpha1.Agent{}) @@ -250,12 +250,12 @@ func (k Keeper) initGenesisProposals(ctx context.Context, proposals []*escrowv1a func (k Keeper) initGenesisProposal(ctx context.Context, proposal *escrowv1alpha1.GenesisState_Proposal) error { proposer, err := k.addressStringToBytes(proposal.Proposer) if err != nil { - return errorsmod.Wrap(err, "proposer") + return errorsmod.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "proposer") } agent, err := k.addressStringToBytes(proposal.Agent) if err != nil { - return errorsmod.Wrap(err, "agent") + return errorsmod.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "agent") } return k.setProposal(ctx, proposal.Id, proposer, &escrowv1alpha1.Proposal{ @@ -317,12 +317,12 @@ func (k Keeper) exportGenesisAgents(ctx context.Context) ([]*escrowv1alpha1.Gene if err := k.iterateAgents(ctx, func(address, creator sdk.AccAddress, agent escrowv1alpha1.Agent) error { addressStr, err := k.addressBytesToString(address) if err != nil { - return errorsmod.Wrap(err, "address") + return errorsmod.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "address") } creatorStr, err := k.addressBytesToString(creator) if err != nil { - return errorsmod.Wrap(err, "creator") + return errorsmod.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "creator") } agents = append(agents, &escrowv1alpha1.GenesisState_Agent{ @@ -343,12 +343,12 @@ func (k Keeper) exportGenesisProposals(ctx context.Context) ([]*escrowv1alpha1.G if err := k.iterateProposals(ctx, func(id uint64, proposer sdk.AccAddress, proposal escrowv1alpha1.Proposal) error { proposerStr, err := k.addressBytesToString(proposer) if err != nil { - return errorsmod.Wrap(err, "proposer") + return errorsmod.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "proposer") } agentStr, err := k.addressBytesToString(proposal.Agent) if err != nil { - return errorsmod.Wrap(err, "agent") + return errorsmod.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "agent") } proposals = append(proposals, &escrowv1alpha1.GenesisState_Proposal{ diff --git a/x/escrow/keeper/internal/proposal.go b/x/escrow/keeper/internal/proposal.go index 24f4402..4e2a42a 100644 --- a/x/escrow/keeper/internal/proposal.go +++ b/x/escrow/keeper/internal/proposal.go @@ -49,7 +49,7 @@ func (k Keeper) SubmitProposal(ctx context.Context, proposer, agent sdk.AccAddre } } - if err := k.removeAgent(ctx, agent); err != nil { + if err := k.removeAgent(ctx, agent, proposer); err != nil { return 0, err } @@ -130,13 +130,8 @@ func (k Keeper) setProposal(ctx context.Context, id uint64, proposer sdk.AccAddr return nil } -func (k Keeper) removeProposal(ctx context.Context, id uint64) error { - key, err := k.getProposalKey(ctx, id) - if err != nil { - return err - } - - if err := k.proposals.Remove(ctx, *key); err != nil { +func (k Keeper) removeProposal(ctx context.Context, id uint64, proposer sdk.AccAddress) error { + if err := k.proposals.Remove(ctx, collections.Join(proposer, id)); err != nil { return escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()) } diff --git a/x/test/keeper/internal/asset.go b/x/test/keeper/internal/asset.go index 5118342..e9b8b43 100644 --- a/x/test/keeper/internal/asset.go +++ b/x/test/keeper/internal/asset.go @@ -24,7 +24,12 @@ func (k Keeper) Send(ctx context.Context, sender, recipient sdk.AccAddress, asse } func (k Keeper) PushAsset(ctx context.Context, address sdk.AccAddress, asset string) error { - if err := k.HasAsset(ctx, address, asset); err == nil { + err := k.HasAsset(ctx, address, asset) + if !errorsmod.IsOf(err, testv1alpha1.ErrAssetNotFound) { + if errorsmod.IsOf(err, testv1alpha1.ErrInvariantBroken) { + return err + } + addrStr, err := k.addressBytesToString(address) if err != nil { return err From b033bbcf2189c9c4bcd322e774f9686a8703731e Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Sat, 27 Jan 2024 07:14:10 +0000 Subject: [PATCH 27/62] Allow decreasing metadata limit --- x/escrow/keeper/internal/params.go | 13 +------------ x/escrow/keeper/internal/params_test.go | 9 --------- 2 files changed, 1 insertion(+), 21 deletions(-) diff --git a/x/escrow/keeper/internal/params.go b/x/escrow/keeper/internal/params.go index 00b3efb..b1559e3 100644 --- a/x/escrow/keeper/internal/params.go +++ b/x/escrow/keeper/internal/params.go @@ -3,22 +3,11 @@ package internal import ( "context" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - escrowv1alpha1 "github.com/0tech/andromeda/x/escrow/andromeda/escrow/v1alpha1" ) func (k Keeper) UpdateParams(ctx context.Context, newParams *escrowv1alpha1.Params) error { - oldParams, err := k.GetParams(ctx) - if err != nil { - return err - } - - if newParams.MaxMetadataLength < oldParams.MaxMetadataLength { - // TODO: define error - return sdkerrors.ErrInvalidRequest.Wrap("cannot lower max_metadata_length") - } - + // no transition rules yet. return k.setParams(ctx, newParams) } diff --git a/x/escrow/keeper/internal/params_test.go b/x/escrow/keeper/internal/params_test.go index d82dc64..7f15a50 100644 --- a/x/escrow/keeper/internal/params_test.go +++ b/x/escrow/keeper/internal/params_test.go @@ -2,7 +2,6 @@ package internal_test import ( sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" escrowv1alpha1 "github.com/0tech/andromeda/x/escrow/andromeda/escrow/v1alpha1" "github.com/0tech/andromeda/x/escrow/testutil" @@ -48,14 +47,6 @@ func (s *KeeperTestSuite) TestUpdateParams() { subject.newParams.MaxMetadataLength = s.keeper.DefaultGenesis().Params.MaxMetadataLength }, }, - "max_metadata_length is lesser than the current's": { - Malleate: func(subject *updateParams) { - subject.newParams.MaxMetadataLength = s.keeper.DefaultGenesis().Params.MaxMetadataLength - 1 - }, - Error: func() error { - return sdkerrors.ErrInvalidRequest - }, - }, }, } From 3f0e965c110730c75557edd4f5ef8bb90752aa84 Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Sat, 27 Jan 2024 07:30:47 +0000 Subject: [PATCH 28/62] Define error for duplicate entry in genesis --- x/escrow/andromeda/escrow/v1alpha1/errors.go | 2 ++ x/escrow/keeper/internal/genesis.go | 5 ++--- x/escrow/keeper/internal/genesis_test.go | 5 ++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/x/escrow/andromeda/escrow/v1alpha1/errors.go b/x/escrow/andromeda/escrow/v1alpha1/errors.go index 33248bd..6978bfd 100644 --- a/x/escrow/andromeda/escrow/v1alpha1/errors.go +++ b/x/escrow/andromeda/escrow/v1alpha1/errors.go @@ -15,12 +15,14 @@ const ( errorCodeUnimplemented errorCodeInvalidAddress errorCodeInvalidMessage + errorCodeDuplicateEntry ) var ( ErrUnimplemented = errors.RegisterWithGRPCCode(errorCodespace, errorCodeUnimplemented, codes.Unimplemented, "unimplemented request") ErrInvalidAddress = errors.RegisterWithGRPCCode(errorCodespace, errorCodeInvalidAddress, codes.InvalidArgument, "invalid address") ErrInvalidMessage = errors.RegisterWithGRPCCode(errorCodespace, errorCodeInvalidMessage, codes.InvalidArgument, "invalid message") + ErrDuplicateEntry = errors.RegisterWithGRPCCode(errorCodespace, errorCodeDuplicateEntry, codes.InvalidArgument, "duplicate entry") ) // stateful errors diff --git a/x/escrow/keeper/internal/genesis.go b/x/escrow/keeper/internal/genesis.go index e647ae0..5913c0f 100644 --- a/x/escrow/keeper/internal/genesis.go +++ b/x/escrow/keeper/internal/genesis.go @@ -6,7 +6,6 @@ import ( errorsmod "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" escrowv1alpha1 "github.com/0tech/andromeda/x/escrow/andromeda/escrow/v1alpha1" ) @@ -87,7 +86,7 @@ func (k Keeper) validateGenesisAgents(agents []*escrowv1alpha1.GenesisState_Agen } if seen[agent.Address] { - return addIndex(sdkerrors.ErrInvalidRequest.Wrap("duplicate agent")) + return addIndex(escrowv1alpha1.ErrDuplicateEntry) } seen[agent.Address] = true } @@ -131,7 +130,7 @@ func (k Keeper) validateGenesisProposals(proposals []*escrowv1alpha1.GenesisStat } if seen[proposal.Id] { - return addIndex(sdkerrors.ErrInvalidRequest.Wrap("duplicate proposal")) + return addIndex(escrowv1alpha1.ErrDuplicateEntry) } seen[proposal.Id] = true } diff --git a/x/escrow/keeper/internal/genesis_test.go b/x/escrow/keeper/internal/genesis_test.go index 174a525..86f8410 100644 --- a/x/escrow/keeper/internal/genesis_test.go +++ b/x/escrow/keeper/internal/genesis_test.go @@ -9,7 +9,6 @@ import ( codectypes "github.com/cosmos/cosmos-sdk/codec/types" simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims" sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" escrowv1alpha1 "github.com/0tech/andromeda/x/escrow/andromeda/escrow/v1alpha1" "github.com/0tech/andromeda/x/escrow/testutil" @@ -178,7 +177,7 @@ func TestValidateGenesisAgents(t *testing.T) { }, Error: func() error { if addedDuplicate { - return sdkerrors.ErrInvalidRequest + return escrowv1alpha1.ErrDuplicateEntry } return nil }, @@ -429,7 +428,7 @@ func TestValidateGenesisProposals(t *testing.T) { }, Error: func() error { if addedDuplicate { - return sdkerrors.ErrInvalidRequest + return escrowv1alpha1.ErrDuplicateEntry } return nil }, From 966567cd81a872b9aa669a7c8e8072417e08fdfc Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Sat, 27 Jan 2024 08:05:33 +0000 Subject: [PATCH 29/62] Remove duplicating literals --- x/escrow/keeper/internal/exec.go | 10 +++----- x/escrow/keeper/internal/genesis.go | 32 +++++++------------------- x/escrow/keeper/internal/grpc_query.go | 15 ++++++------ x/escrow/keeper/internal/keeper.go | 4 ++++ x/test/keeper/internal/grpc_query.go | 9 ++++---- 5 files changed, 26 insertions(+), 44 deletions(-) diff --git a/x/escrow/keeper/internal/exec.go b/x/escrow/keeper/internal/exec.go index 07e2628..1bec316 100644 --- a/x/escrow/keeper/internal/exec.go +++ b/x/escrow/keeper/internal/exec.go @@ -46,23 +46,19 @@ func (k Keeper) executeActions(ctx context.Context, actions []*codectypes.Any) e sdkCtx := sdk.UnwrapSDKContext(ctx) for i, action := range actions { - addIndex := func(err error) error { - return errorsmod.Wrapf(err, "index %d", i) - } - msg, err := k.anyToMsg(*action) if err != nil { - return addIndex(err) + return indexedError(err, i) } handler := k.router.Handler(msg) if handler == nil { - return addIndex(escrowv1alpha1.ErrInvalidMessage.Wrap("handler not found")) + return indexedError(escrowv1alpha1.ErrInvalidMessage.Wrap("handler not found"), i) } result, err := handler(sdkCtx, msg) if err != nil { - return addIndex(err) + return indexedError(err, i) } sdkCtx.EventManager().EmitEvents(result.GetEvents()) diff --git a/x/escrow/keeper/internal/genesis.go b/x/escrow/keeper/internal/genesis.go index 5913c0f..dcbd22d 100644 --- a/x/escrow/keeper/internal/genesis.go +++ b/x/escrow/keeper/internal/genesis.go @@ -73,20 +73,16 @@ func (k Keeper) validateGenesisParams(params *escrowv1alpha1.GenesisState_Params func (k Keeper) validateGenesisAgents(agents []*escrowv1alpha1.GenesisState_Agent) error { seen := map[string]bool{} for i, agent := range agents { - addIndex := func(err error) error { - return errorsmod.Wrapf(err, "index %d", i) - } - if agent == nil { - return addIndex(escrowv1alpha1.ErrUnimplemented.Wrap("nil agent")) + return indexedError(escrowv1alpha1.ErrUnimplemented.Wrap("nil agent"), i) } if err := k.validateGenesisAgent(agent); err != nil { - return addIndex(err) + return indexedError(err, i) } if seen[agent.Address] { - return addIndex(escrowv1alpha1.ErrDuplicateEntry) + return indexedError(escrowv1alpha1.ErrDuplicateEntry, i) } seen[agent.Address] = true } @@ -117,20 +113,16 @@ func (k Keeper) validateGenesisAgent(agent *escrowv1alpha1.GenesisState_Agent) e func (k Keeper) validateGenesisProposals(proposals []*escrowv1alpha1.GenesisState_Proposal) error { seen := map[uint64]bool{} for i, proposal := range proposals { - addIndex := func(err error) error { - return errorsmod.Wrapf(err, "index %d", i) - } - if proposal == nil { - return addIndex(escrowv1alpha1.ErrUnimplemented.Wrap("nil proposal")) + return indexedError(escrowv1alpha1.ErrUnimplemented.Wrap("nil proposal"), i) } if err := k.validateGenesisProposal(proposal); err != nil { - return addIndex(err) + return indexedError(err, i) } if seen[proposal.Id] { - return addIndex(escrowv1alpha1.ErrDuplicateEntry) + return indexedError(escrowv1alpha1.ErrDuplicateEntry, i) } seen[proposal.Id] = true } @@ -206,12 +198,8 @@ func (k Keeper) initGenesisParams(ctx context.Context, params *escrowv1alpha1.Ge func (k Keeper) initGenesisAgents(ctx context.Context, agents []*escrowv1alpha1.GenesisState_Agent) error { for i, agent := range agents { - addIndex := func(err error) error { - return errorsmod.Wrapf(err, "index %d", i) - } - if err := k.initGenesisAgent(ctx, agent); err != nil { - return addIndex(err) + return indexedError(err, i) } } @@ -234,12 +222,8 @@ func (k Keeper) initGenesisAgent(ctx context.Context, agent *escrowv1alpha1.Gene func (k Keeper) initGenesisProposals(ctx context.Context, proposals []*escrowv1alpha1.GenesisState_Proposal) error { for i, proposal := range proposals { - addIndex := func(err error) error { - return errorsmod.Wrapf(err, "index %d", i) - } - if err := k.initGenesisProposal(ctx, proposal); err != nil { - return addIndex(err) + return indexedError(err, i) } } diff --git a/x/escrow/keeper/internal/grpc_query.go b/x/escrow/keeper/internal/grpc_query.go index 671f66f..5bb9d9f 100644 --- a/x/escrow/keeper/internal/grpc_query.go +++ b/x/escrow/keeper/internal/grpc_query.go @@ -3,9 +3,6 @@ package internal import ( "context" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/status" - "cosmossdk.io/collections" errorsmod "cosmossdk.io/errors" @@ -29,9 +26,11 @@ func NewQueryServer(keeper Keeper) escrowv1alpha1.QueryServer { } } +var errNilRequest = escrowv1alpha1.ErrUnimplemented.Wrap("nil request") + func (s queryServer) Params(ctx context.Context, req *escrowv1alpha1.QueryParamsRequest) (*escrowv1alpha1.QueryParamsResponse, error) { if req == nil { - return nil, status.Errorf(codes.InvalidArgument, "empty request") + return nil, errNilRequest } params, err := s.keeper.GetParams(ctx) @@ -46,7 +45,7 @@ func (s queryServer) Params(ctx context.Context, req *escrowv1alpha1.QueryParams func (s queryServer) Agent(ctx context.Context, req *escrowv1alpha1.QueryAgentRequest) (*escrowv1alpha1.QueryAgentResponse, error) { if req == nil { - return nil, status.Errorf(codes.InvalidArgument, "empty request") + return nil, errNilRequest } if req.Agent == "" { @@ -78,7 +77,7 @@ func (s queryServer) Agent(ctx context.Context, req *escrowv1alpha1.QueryAgentRe func (s queryServer) Agents(ctx context.Context, req *escrowv1alpha1.QueryAgentsRequest) (*escrowv1alpha1.QueryAgentsResponse, error) { if req == nil { - return nil, status.Errorf(codes.InvalidArgument, "empty request") + return nil, errNilRequest } agents, pageRes, err := query.CollectionPaginate(ctx, s.keeper.agents, req.Pagination, func(key collections.Pair[sdk.AccAddress, sdk.AccAddress], _ escrowv1alpha1.Agent) (*escrowv1alpha1.QueryAgentsResponse_Agent, error) { @@ -112,7 +111,7 @@ func (s queryServer) Agents(ctx context.Context, req *escrowv1alpha1.QueryAgents func (s queryServer) Proposal(ctx context.Context, req *escrowv1alpha1.QueryProposalRequest) (*escrowv1alpha1.QueryProposalResponse, error) { if req == nil { - return nil, status.Errorf(codes.InvalidArgument, "empty request") + return nil, errNilRequest } if req.Proposal == 0 { @@ -148,7 +147,7 @@ func (s queryServer) Proposal(ctx context.Context, req *escrowv1alpha1.QueryProp func (s queryServer) Proposals(ctx context.Context, req *escrowv1alpha1.QueryProposalsRequest) (*escrowv1alpha1.QueryProposalsResponse, error) { if req == nil { - return nil, status.Errorf(codes.InvalidArgument, "empty request") + return nil, errNilRequest } proposals, pageRes, err := query.CollectionPaginate(ctx, s.keeper.proposals, req.Pagination, func(key collections.Pair[sdk.AccAddress, uint64], value escrowv1alpha1.Proposal) (*escrowv1alpha1.QueryProposalsResponse_Proposal, error) { diff --git a/x/escrow/keeper/internal/keeper.go b/x/escrow/keeper/internal/keeper.go index c2a5645..b080405 100644 --- a/x/escrow/keeper/internal/keeper.go +++ b/x/escrow/keeper/internal/keeper.go @@ -115,3 +115,7 @@ func (k Keeper) validateMetadata(ctx context.Context, metadata string) error { return nil } + +func indexedError(err error, index int) error { + return errorsmod.Wrapf(err, "index %d", index) +} diff --git a/x/test/keeper/internal/grpc_query.go b/x/test/keeper/internal/grpc_query.go index c7582e5..843cf20 100644 --- a/x/test/keeper/internal/grpc_query.go +++ b/x/test/keeper/internal/grpc_query.go @@ -3,9 +3,6 @@ package internal import ( "context" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/status" - "cosmossdk.io/collections" errorsmod "cosmossdk.io/errors" @@ -29,9 +26,11 @@ func NewQueryServer(keeper Keeper) testv1alpha1.QueryServer { } } +var errNilRequest = testv1alpha1.ErrUnimplemented.Wrap("nil request") + func (s queryServer) Asset(ctx context.Context, req *testv1alpha1.QueryAssetRequest) (*testv1alpha1.QueryAssetResponse, error) { if req == nil { - return nil, status.Errorf(codes.InvalidArgument, "empty request") + return nil, errNilRequest } if req.Account == "" { @@ -60,7 +59,7 @@ func (s queryServer) Asset(ctx context.Context, req *testv1alpha1.QueryAssetRequ func (s queryServer) Assets(ctx context.Context, req *testv1alpha1.QueryAssetsRequest) (*testv1alpha1.QueryAssetsResponse, error) { if req == nil { - return nil, status.Errorf(codes.InvalidArgument, "empty request") + return nil, errNilRequest } if req.Account == "" { From 0d0be5fc4ecd7cb093116753dae7cf68fce9a899 Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Sat, 27 Jan 2024 08:23:27 +0000 Subject: [PATCH 30/62] Stop using alias --- x/escrow/keeper/internal/agent.go | 6 +-- x/escrow/keeper/internal/exec.go | 4 +- x/escrow/keeper/internal/genesis.go | 52 +++++++++++++------------- x/escrow/keeper/internal/grpc_query.go | 18 ++++----- x/escrow/keeper/internal/keeper.go | 6 +-- x/escrow/keeper/internal/msg_server.go | 22 +++++------ x/escrow/keeper/internal/proposal.go | 10 ++--- x/test/keeper/internal/asset.go | 10 ++--- x/test/keeper/internal/grpc_query.go | 6 +-- x/test/keeper/internal/msg_server.go | 8 ++-- 10 files changed, 71 insertions(+), 71 deletions(-) diff --git a/x/escrow/keeper/internal/agent.go b/x/escrow/keeper/internal/agent.go index 92073a1..1ad1548 100644 --- a/x/escrow/keeper/internal/agent.go +++ b/x/escrow/keeper/internal/agent.go @@ -5,7 +5,7 @@ import ( "encoding/binary" "cosmossdk.io/collections" - errorsmod "cosmossdk.io/errors" + "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" @@ -43,7 +43,7 @@ func (k Keeper) CreateAgent(ctx context.Context, creator sdk.AccAddress) (sdk.Ac } if err := bac.SetPubKey(ac); err != nil { - return nil, errorsmod.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "failed to set a pubkey") + return nil, errors.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "failed to set a pubkey") } acc := k.authKeeper.NewAccount(ctx, bac) @@ -60,7 +60,7 @@ func (k Keeper) CreateAgent(ctx context.Context, creator sdk.AccAddress) (sdk.Ac func (k Keeper) getAgentKey(ctx context.Context, address sdk.AccAddress) (*collections.Pair[sdk.AccAddress, sdk.AccAddress], error) { key, err := k.agents.Indexes.address.MatchExact(ctx, address) if err != nil { - if !errorsmod.IsOf(err, collections.ErrNotFound) { + if !errors.IsOf(err, collections.ErrNotFound) { return nil, escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()) } diff --git a/x/escrow/keeper/internal/exec.go b/x/escrow/keeper/internal/exec.go index 1bec316..a12f1af 100644 --- a/x/escrow/keeper/internal/exec.go +++ b/x/escrow/keeper/internal/exec.go @@ -3,7 +3,7 @@ package internal import ( "context" - errorsmod "cosmossdk.io/errors" + "cosmossdk.io/errors" codectypes "github.com/cosmos/cosmos-sdk/codec/types" sdk "github.com/cosmos/cosmos-sdk/types" @@ -35,7 +35,7 @@ func (k Keeper) Exec(ctx context.Context, id uint64, _, agent sdk.AccAddress, ac }, } { if err := k.executeActions(ctx, phase.actions); err != nil { - return errorsmod.Wrap(err, phase.name) + return errors.Wrap(err, phase.name) } } diff --git a/x/escrow/keeper/internal/genesis.go b/x/escrow/keeper/internal/genesis.go index dcbd22d..26c4265 100644 --- a/x/escrow/keeper/internal/genesis.go +++ b/x/escrow/keeper/internal/genesis.go @@ -3,7 +3,7 @@ package internal import ( "context" - errorsmod "cosmossdk.io/errors" + "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" @@ -48,15 +48,15 @@ func (k Keeper) ValidateGenesis(gs *escrowv1alpha1.GenesisState) error { } if err := k.validateGenesisParams(gs.Params); err != nil { - return errorsmod.Wrap(err, "params") + return errors.Wrap(err, "params") } if err := k.validateGenesisAgents(gs.Agents); err != nil { - return errorsmod.Wrap(err, "agents") + return errors.Wrap(err, "agents") } if err := k.validateGenesisProposals(gs.Proposals); err != nil { - return errorsmod.Wrap(err, "proposals") + return errors.Wrap(err, "proposals") } return nil @@ -100,11 +100,11 @@ func (k Keeper) validateGenesisAgent(agent *escrowv1alpha1.GenesisState_Agent) e } if _, err := k.addressStringToBytes(agent.Address); err != nil { - return errorsmod.Wrap(err, "address") + return errors.Wrap(err, "address") } if _, err := k.addressStringToBytes(agent.Creator); err != nil { - return errorsmod.Wrap(err, "creator") + return errors.Wrap(err, "creator") } return nil @@ -156,11 +156,11 @@ func (k Keeper) validateGenesisProposal(proposal *escrowv1alpha1.GenesisState_Pr } if _, err := k.addressStringToBytes(proposal.Proposer); err != nil { - return errorsmod.Wrap(err, "proposer") + return errors.Wrap(err, "proposer") } if _, err := k.addressStringToBytes(proposal.Agent); err != nil { - return errorsmod.Wrap(err, "agent") + return errors.Wrap(err, "agent") } return nil @@ -168,23 +168,23 @@ func (k Keeper) validateGenesisProposal(proposal *escrowv1alpha1.GenesisState_Pr func (k Keeper) InitGenesis(ctx context.Context, gs *escrowv1alpha1.GenesisState) error { if err := k.initGenesisParams(ctx, gs.Params); err != nil { - return errorsmod.Wrap(err, "params") + return errors.Wrap(err, "params") } if err := k.nextAgent.Set(ctx, gs.NextAgent); err != nil { - return errorsmod.Wrap(err, "next_agent") + return errors.Wrap(err, "next_agent") } if err := k.initGenesisAgents(ctx, gs.Agents); err != nil { - return errorsmod.Wrap(err, "agents") + return errors.Wrap(err, "agents") } if err := k.nextProposal.Set(ctx, gs.NextProposal); err != nil { - return errorsmod.Wrap(err, "next_proposal") + return errors.Wrap(err, "next_proposal") } if err := k.initGenesisProposals(ctx, gs.Proposals); err != nil { - return errorsmod.Wrap(err, "proposals") + return errors.Wrap(err, "proposals") } return nil @@ -209,12 +209,12 @@ func (k Keeper) initGenesisAgents(ctx context.Context, agents []*escrowv1alpha1. func (k Keeper) initGenesisAgent(ctx context.Context, agent *escrowv1alpha1.GenesisState_Agent) error { address, err := k.addressStringToBytes(agent.Address) if err != nil { - return errorsmod.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "address") + return errors.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "address") } creator, err := k.addressStringToBytes(agent.Creator) if err != nil { - return errorsmod.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "creator") + return errors.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "creator") } return k.setAgent(ctx, address, creator, &escrowv1alpha1.Agent{}) @@ -233,12 +233,12 @@ func (k Keeper) initGenesisProposals(ctx context.Context, proposals []*escrowv1a func (k Keeper) initGenesisProposal(ctx context.Context, proposal *escrowv1alpha1.GenesisState_Proposal) error { proposer, err := k.addressStringToBytes(proposal.Proposer) if err != nil { - return errorsmod.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "proposer") + return errors.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "proposer") } agent, err := k.addressStringToBytes(proposal.Agent) if err != nil { - return errorsmod.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "agent") + return errors.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "agent") } return k.setProposal(ctx, proposal.Id, proposer, &escrowv1alpha1.Proposal{ @@ -252,27 +252,27 @@ func (k Keeper) initGenesisProposal(ctx context.Context, proposal *escrowv1alpha func (k Keeper) ExportGenesis(ctx context.Context) (*escrowv1alpha1.GenesisState, error) { params, err := k.exportGenesisParams(ctx) if err != nil { - return nil, errorsmod.Wrap(err, "params") + return nil, errors.Wrap(err, "params") } nextAgent, err := k.nextAgent.Peek(ctx) if err != nil { - return nil, errorsmod.Wrap(err, "next_agent") + return nil, errors.Wrap(err, "next_agent") } agents, err := k.exportGenesisAgents(ctx) if err != nil { - return nil, errorsmod.Wrap(err, "agents") + return nil, errors.Wrap(err, "agents") } nextProposal, err := k.nextProposal.Peek(ctx) if err != nil { - return nil, errorsmod.Wrap(err, "next_proposal") + return nil, errors.Wrap(err, "next_proposal") } proposals, err := k.exportGenesisProposals(ctx) if err != nil { - return nil, errorsmod.Wrap(err, "proposals") + return nil, errors.Wrap(err, "proposals") } return &escrowv1alpha1.GenesisState{ @@ -300,12 +300,12 @@ func (k Keeper) exportGenesisAgents(ctx context.Context) ([]*escrowv1alpha1.Gene if err := k.iterateAgents(ctx, func(address, creator sdk.AccAddress, agent escrowv1alpha1.Agent) error { addressStr, err := k.addressBytesToString(address) if err != nil { - return errorsmod.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "address") + return errors.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "address") } creatorStr, err := k.addressBytesToString(creator) if err != nil { - return errorsmod.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "creator") + return errors.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "creator") } agents = append(agents, &escrowv1alpha1.GenesisState_Agent{ @@ -326,12 +326,12 @@ func (k Keeper) exportGenesisProposals(ctx context.Context) ([]*escrowv1alpha1.G if err := k.iterateProposals(ctx, func(id uint64, proposer sdk.AccAddress, proposal escrowv1alpha1.Proposal) error { proposerStr, err := k.addressBytesToString(proposer) if err != nil { - return errorsmod.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "proposer") + return errors.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "proposer") } agentStr, err := k.addressBytesToString(proposal.Agent) if err != nil { - return errorsmod.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "agent") + return errors.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "agent") } proposals = append(proposals, &escrowv1alpha1.GenesisState_Proposal{ diff --git a/x/escrow/keeper/internal/grpc_query.go b/x/escrow/keeper/internal/grpc_query.go index 5bb9d9f..09a869e 100644 --- a/x/escrow/keeper/internal/grpc_query.go +++ b/x/escrow/keeper/internal/grpc_query.go @@ -4,7 +4,7 @@ import ( "context" "cosmossdk.io/collections" - errorsmod "cosmossdk.io/errors" + "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/query" @@ -54,7 +54,7 @@ func (s queryServer) Agent(ctx context.Context, req *escrowv1alpha1.QueryAgentRe agent, err := s.keeper.addressStringToBytes(req.Agent) if err != nil { - return nil, errorsmod.Wrap(err, "agent") + return nil, errors.Wrap(err, "agent") } creator, _, err := s.keeper.GetAgent(ctx, agent) @@ -64,7 +64,7 @@ func (s queryServer) Agent(ctx context.Context, req *escrowv1alpha1.QueryAgentRe creatorStr, err := s.keeper.addressBytesToString(creator) if err != nil { - return nil, errorsmod.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "creator") + return nil, errors.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "creator") } return &escrowv1alpha1.QueryAgentResponse{ @@ -86,12 +86,12 @@ func (s queryServer) Agents(ctx context.Context, req *escrowv1alpha1.QueryAgents addressStr, err := s.keeper.addressBytesToString(address) if err != nil { - return nil, errorsmod.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "address") + return nil, errors.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "address") } creatorStr, err := s.keeper.addressBytesToString(creator) if err != nil { - return nil, errorsmod.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "creator") + return nil, errors.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "creator") } return &escrowv1alpha1.QueryAgentsResponse_Agent{ @@ -125,12 +125,12 @@ func (s queryServer) Proposal(ctx context.Context, req *escrowv1alpha1.QueryProp proposerStr, err := s.keeper.addressBytesToString(proposer) if err != nil { - return nil, errorsmod.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "proposer") + return nil, errors.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "proposer") } agentStr, err := s.keeper.addressBytesToString(proposal.Agent) if err != nil { - return nil, errorsmod.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "agent") + return nil, errors.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "agent") } return &escrowv1alpha1.QueryProposalResponse{ @@ -157,12 +157,12 @@ func (s queryServer) Proposals(ctx context.Context, req *escrowv1alpha1.QueryPro proposerStr, err := s.keeper.addressBytesToString(proposer) if err != nil { - return nil, errorsmod.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "proposer") + return nil, errors.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "proposer") } agentStr, err := s.keeper.addressBytesToString(value.Agent) if err != nil { - return nil, errorsmod.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "agent") + return nil, errors.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "agent") } s.keeper.fixActions(&proposal) diff --git a/x/escrow/keeper/internal/keeper.go b/x/escrow/keeper/internal/keeper.go index b080405..d922275 100644 --- a/x/escrow/keeper/internal/keeper.go +++ b/x/escrow/keeper/internal/keeper.go @@ -5,7 +5,7 @@ import ( "cosmossdk.io/collections" "cosmossdk.io/core/store" - errorsmod "cosmossdk.io/errors" + "cosmossdk.io/errors" "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" @@ -110,12 +110,12 @@ func (k Keeper) validateMetadata(ctx context.Context, metadata string) error { } if length := uint64(len(metadata)); length > params.MaxMetadataLength { - return errorsmod.Wrapf(escrowv1alpha1.ErrLargeMetadata.Wrapf("over limit of %d", params.MaxMetadataLength), "%d", length) + return errors.Wrapf(escrowv1alpha1.ErrLargeMetadata.Wrapf("over limit of %d", params.MaxMetadataLength), "%d", length) } return nil } func indexedError(err error, index int) error { - return errorsmod.Wrapf(err, "index %d", index) + return errors.Wrapf(err, "index %d", index) } diff --git a/x/escrow/keeper/internal/msg_server.go b/x/escrow/keeper/internal/msg_server.go index 6e3b7ac..a7f6fc1 100644 --- a/x/escrow/keeper/internal/msg_server.go +++ b/x/escrow/keeper/internal/msg_server.go @@ -3,7 +3,7 @@ package internal import ( "context" - errorsmod "cosmossdk.io/errors" + "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" @@ -35,7 +35,7 @@ func (s msgServer) UpdateParams(ctx context.Context, req *escrowv1alpha1.MsgUpda authority, err := s.keeper.addressStringToBytes(req.Authority) if err != nil { - return nil, errorsmod.Wrap(err, "authority") + return nil, errors.Wrap(err, "authority") } if err := s.keeper.validateAuthority(authority); err != nil { @@ -65,7 +65,7 @@ func (s msgServer) CreateAgent(ctx context.Context, req *escrowv1alpha1.MsgCreat creator, err := s.keeper.addressStringToBytes(req.Creator) if err != nil { - return nil, errorsmod.Wrap(err, "creator") + return nil, errors.Wrap(err, "creator") } agent, err := s.keeper.CreateAgent(ctx, creator) @@ -75,7 +75,7 @@ func (s msgServer) CreateAgent(ctx context.Context, req *escrowv1alpha1.MsgCreat agentStr, err := s.keeper.addressBytesToString(agent) if err != nil { - return nil, errorsmod.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "agent") + return nil, errors.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "agent") } if err := sdk.UnwrapSDKContext(ctx).EventManager().EmitTypedEvent(&escrowv1alpha1.EventCreateAgent{ @@ -111,22 +111,22 @@ func (s msgServer) SubmitProposal(ctx context.Context, req *escrowv1alpha1.MsgSu proposer, err := s.keeper.addressStringToBytes(req.Proposer) if err != nil { - return nil, errorsmod.Wrap(err, "proposer") + return nil, errors.Wrap(err, "proposer") } agent, err := s.keeper.addressStringToBytes(req.Agent) if err != nil { - return nil, errorsmod.Wrap(err, "agent") + return nil, errors.Wrap(err, "agent") } signers := []sdk.AccAddress{proposer, agent} if err := s.keeper.validateActions(req.PreActions, signers); err != nil { - return nil, errorsmod.Wrap(err, "pre_actions") + return nil, errors.Wrap(err, "pre_actions") } if err := s.keeper.validateActions(req.PostActions, signers); err != nil { - return nil, errorsmod.Wrap(err, "post_actions") + return nil, errors.Wrap(err, "post_actions") } id, err := s.keeper.SubmitProposal(ctx, proposer, agent, req.PreActions, req.PostActions, req.Metadata) @@ -167,18 +167,18 @@ func (s msgServer) Exec(ctx context.Context, req *escrowv1alpha1.MsgExec) (*escr executor, err := s.keeper.addressStringToBytes(req.Executor) if err != nil { - return nil, errorsmod.Wrap(err, "executor") + return nil, errors.Wrap(err, "executor") } agent, err := s.keeper.addressStringToBytes(req.Agent) if err != nil { - return nil, errorsmod.Wrap(err, "agent") + return nil, errors.Wrap(err, "agent") } signers := []sdk.AccAddress{executor, agent} if err := s.keeper.validateActions(req.Actions, signers); err != nil { - return nil, errorsmod.Wrap(err, "actions") + return nil, errors.Wrap(err, "actions") } if err := s.keeper.Exec(ctx, req.Proposal, executor, agent, req.Actions); err != nil { diff --git a/x/escrow/keeper/internal/proposal.go b/x/escrow/keeper/internal/proposal.go index 4e2a42a..f41ec32 100644 --- a/x/escrow/keeper/internal/proposal.go +++ b/x/escrow/keeper/internal/proposal.go @@ -4,7 +4,7 @@ import ( "context" "cosmossdk.io/collections" - errorsmod "cosmossdk.io/errors" + "cosmossdk.io/errors" codectypes "github.com/cosmos/cosmos-sdk/codec/types" sdk "github.com/cosmos/cosmos-sdk/types" @@ -45,7 +45,7 @@ func (k Keeper) SubmitProposal(ctx context.Context, proposer, agent sdk.AccAddre }, } { if err := k.executeActions(ctx, phase.actions); err != nil { - return 0, errorsmod.Wrap(err, phase.name) + return 0, errors.Wrap(err, phase.name) } } @@ -64,7 +64,7 @@ func (k Keeper) validateActions(actions []*codectypes.Any, signers []sdk.AccAddr for i, action := range actions { addIndex := func(err error) error { - return errorsmod.Wrapf(err, "index %d", i) + return errors.Wrapf(err, "index %d", i) } msg, err := k.anyToMsg(*action) @@ -83,7 +83,7 @@ func (k Keeper) validateActions(actions []*codectypes.Any, signers []sdk.AccAddr if err != nil { return addIndex(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error())) } - return addIndex(errorsmod.Wrap(escrowv1alpha1.ErrPermissionDenied.Wrap("wrong signer"), signerStr)) + return addIndex(errors.Wrap(escrowv1alpha1.ErrPermissionDenied.Wrap("wrong signer"), signerStr)) } } } @@ -94,7 +94,7 @@ func (k Keeper) validateActions(actions []*codectypes.Any, signers []sdk.AccAddr func (k Keeper) getProposalKey(ctx context.Context, id uint64) (*collections.Pair[sdk.AccAddress, uint64], error) { key, err := k.proposals.Indexes.id.MatchExact(ctx, id) if err != nil { - if !errorsmod.IsOf(err, collections.ErrNotFound) { + if !errors.IsOf(err, collections.ErrNotFound) { return nil, escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()) } diff --git a/x/test/keeper/internal/asset.go b/x/test/keeper/internal/asset.go index e9b8b43..5f17e92 100644 --- a/x/test/keeper/internal/asset.go +++ b/x/test/keeper/internal/asset.go @@ -4,7 +4,7 @@ import ( "context" "cosmossdk.io/collections" - errorsmod "cosmossdk.io/errors" + "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" @@ -25,8 +25,8 @@ func (k Keeper) Send(ctx context.Context, sender, recipient sdk.AccAddress, asse func (k Keeper) PushAsset(ctx context.Context, address sdk.AccAddress, asset string) error { err := k.HasAsset(ctx, address, asset) - if !errorsmod.IsOf(err, testv1alpha1.ErrAssetNotFound) { - if errorsmod.IsOf(err, testv1alpha1.ErrInvariantBroken) { + if !errors.IsOf(err, testv1alpha1.ErrAssetNotFound) { + if errors.IsOf(err, testv1alpha1.ErrInvariantBroken) { return err } @@ -35,7 +35,7 @@ func (k Keeper) PushAsset(ctx context.Context, address sdk.AccAddress, asset str return err } - return errorsmod.Wrap(testv1alpha1.ErrAssetAlreadyExists.Wrap(asset), addrStr) + return errors.Wrap(testv1alpha1.ErrAssetAlreadyExists.Wrap(asset), addrStr) } return k.setAsset(ctx, address, asset) @@ -61,7 +61,7 @@ func (k Keeper) HasAsset(ctx context.Context, address sdk.AccAddress, asset stri return err } - return errorsmod.Wrap(testv1alpha1.ErrAssetNotFound.Wrap(asset), addrStr) + return errors.Wrap(testv1alpha1.ErrAssetNotFound.Wrap(asset), addrStr) } return nil diff --git a/x/test/keeper/internal/grpc_query.go b/x/test/keeper/internal/grpc_query.go index 843cf20..ba25f3a 100644 --- a/x/test/keeper/internal/grpc_query.go +++ b/x/test/keeper/internal/grpc_query.go @@ -4,7 +4,7 @@ import ( "context" "cosmossdk.io/collections" - errorsmod "cosmossdk.io/errors" + "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/query" @@ -43,7 +43,7 @@ func (s queryServer) Asset(ctx context.Context, req *testv1alpha1.QueryAssetRequ account, err := s.keeper.addressStringToBytes(req.Account) if err != nil { - return nil, errorsmod.Wrap(err, "account") + return nil, errors.Wrap(err, "account") } if err := s.keeper.HasAsset(ctx, account, req.Asset); err != nil { @@ -68,7 +68,7 @@ func (s queryServer) Assets(ctx context.Context, req *testv1alpha1.QueryAssetsRe account, err := s.keeper.addressStringToBytes(req.Account) if err != nil { - return nil, errorsmod.Wrap(err, "account") + return nil, errors.Wrap(err, "account") } assets, pageRes, err := query.CollectionPaginate(ctx, s.keeper.assets, req.Pagination, func(key collections.Pair[sdk.AccAddress, string], _ testv1alpha1.Asset) (*testv1alpha1.QueryAssetsResponse_Asset, error) { diff --git a/x/test/keeper/internal/msg_server.go b/x/test/keeper/internal/msg_server.go index d431bb3..a8834c5 100644 --- a/x/test/keeper/internal/msg_server.go +++ b/x/test/keeper/internal/msg_server.go @@ -3,7 +3,7 @@ package internal import ( "context" - errorsmod "cosmossdk.io/errors" + "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" @@ -35,7 +35,7 @@ func (s msgServer) Create(ctx context.Context, req *testv1alpha1.MsgCreate) (*te creator, err := s.keeper.addressStringToBytes(req.Creator) if err != nil { - return nil, errorsmod.Wrap(err, "creator") + return nil, errors.Wrap(err, "creator") } if err := s.keeper.Create(ctx, creator, req.Asset); err != nil { @@ -67,12 +67,12 @@ func (s msgServer) Send(ctx context.Context, req *testv1alpha1.MsgSend) (*testv1 sender, err := s.keeper.addressStringToBytes(req.Sender) if err != nil { - return nil, errorsmod.Wrap(err, "sender") + return nil, errors.Wrap(err, "sender") } recipient, err := s.keeper.addressStringToBytes(req.Recipient) if err != nil { - return nil, errorsmod.Wrap(err, "recipient") + return nil, errors.Wrap(err, "recipient") } if err := s.keeper.Send(ctx, sender, recipient, req.Asset); err != nil { From 1149b4cef30f14f77905b0648ebc170bf858e9eb Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Sat, 27 Jan 2024 08:27:52 +0000 Subject: [PATCH 31/62] Update CHANGELOG.md --- CHANGELOG.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..65934b6 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,14 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on +[Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project +adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [Unreleased] + +### Added + +- Add x/escrow prototype (#2). +- Add x/test prototype (#2). From a1e65c7469164302679f49947244eaacd319303d Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Sat, 27 Jan 2024 09:10:45 +0000 Subject: [PATCH 32/62] Refactor test cases of genesis --- x/escrow/keeper/internal/genesis_test.go | 160 ++++++----------------- 1 file changed, 38 insertions(+), 122 deletions(-) diff --git a/x/escrow/keeper/internal/genesis_test.go b/x/escrow/keeper/internal/genesis_test.go index 86f8410..bae1ef1 100644 --- a/x/escrow/keeper/internal/genesis_test.go +++ b/x/escrow/keeper/internal/genesis_test.go @@ -159,51 +159,27 @@ func TestValidateGenesisAgents(t *testing.T) { }, }...) - addedDuplicate := false - cases = append(cases, []map[string]testutil.Case[[]*escrowv1alpha1.GenesisState_Agent]{ - { - "[no duplicate agent": { - Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Agent) { - addedDuplicate = false - }, + // add duplicate proposal. + cases = append(cases, map[string]testutil.Case[[]*escrowv1alpha1.GenesisState_Agent]{ + "no duplicate agent": {}, + "duplicate agent": { + Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Agent) { + if !added { + return + } + *subject = append(*subject, &escrowv1alpha1.GenesisState_Agent{ + Address: addressStr, + Creator: creatorStr, + }) }, - "[duplicate agent": { - Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Agent) { - if !added { - return - } - addedDuplicate = true - *subject = append(*subject, &escrowv1alpha1.GenesisState_Agent{}) - }, - Error: func() error { - if addedDuplicate { - return escrowv1alpha1.ErrDuplicateEntry - } + Error: func() error { + if !added { return nil - }, + } + return escrowv1alpha1.ErrDuplicateEntry }, }, - { - "valid address": { - Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Agent) { - if !addedDuplicate { - return - } - (*subject)[len(*subject)-1].Address = addressStr - }, - }, - }, - { - "valid creator]": { - Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Agent) { - if !addedDuplicate { - return - } - (*subject)[len(*subject)-1].Creator = creatorStr - }, - }, - }, - }...) + }) } testutil.DoTest(t, tester, cases) @@ -410,91 +386,31 @@ func TestValidateGenesisProposals(t *testing.T) { }, }...) - addedDuplicate := false - cases = append(cases, []map[string]testutil.Case[[]*escrowv1alpha1.GenesisState_Proposal]{ - { - "[no duplicate proposal": { - Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Proposal) { - addedDuplicate = false - }, + // add duplicate proposal. + cases = append(cases, map[string]testutil.Case[[]*escrowv1alpha1.GenesisState_Proposal]{ + "no duplicate proposal": {}, + "duplicate proposal": { + Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Proposal) { + if !added { + return + } + *subject = append(*subject, &escrowv1alpha1.GenesisState_Proposal{ + Id: id, + Proposer: proposerStr, + Agent: agentStr, + PreActions: []*codectypes.Any{}, + PostActions: []*codectypes.Any{}, + Metadata: randomString(int(k.DefaultGenesis().Params.MaxMetadataLength) - 1), + }) }, - "[duplicate proposal": { - Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Proposal) { - if !added { - return - } - addedDuplicate = true - *subject = append(*subject, &escrowv1alpha1.GenesisState_Proposal{}) - }, - Error: func() error { - if addedDuplicate { - return escrowv1alpha1.ErrDuplicateEntry - } + Error: func() error { + if !added { return nil - }, - }, - }, - { - "valid id": { - Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Proposal) { - if !addedDuplicate { - return - } - (*subject)[len(*subject)-1].Id = id - }, - }, - }, - { - "valid proposer": { - Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Proposal) { - if !addedDuplicate { - return - } - (*subject)[len(*subject)-1].Proposer = proposerStr - }, + } + return escrowv1alpha1.ErrDuplicateEntry }, }, - { - "valid agent": { - Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Proposal) { - if !addedDuplicate { - return - } - (*subject)[len(*subject)-1].Agent = agentStr - }, - }, - }, - { - "valid pre_actions": { - Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Proposal) { - if !addedDuplicate { - return - } - (*subject)[len(*subject)-1].PreActions = []*codectypes.Any{} - }, - }, - }, - { - "valid post_actions": { - Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Proposal) { - if !addedDuplicate { - return - } - (*subject)[len(*subject)-1].PostActions = []*codectypes.Any{} - }, - }, - }, - { - "valid metadata]": { - Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Proposal) { - if !addedDuplicate { - return - } - (*subject)[len(*subject)-1].Metadata = randomString(int(k.DefaultGenesis().Params.MaxMetadataLength) - 1) - }, - }, - }, - }...) + }) } testutil.DoTest(t, tester, cases) From b6fd28d538198df429f4e019e7d012a695206d4e Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Mon, 29 Jan 2024 11:43:52 +0000 Subject: [PATCH 33/62] Refactor key schema of agents --- .../andromeda/escrow/v1alpha1/event.pb.go | 2 +- .../andromeda/escrow/v1alpha1/types.pb.go | 103 ++++++++++---- .../andromeda/escrow/v1alpha1/event.pulsar.go | 2 +- .../andromeda/escrow/v1alpha1/types.pulsar.go | 134 ++++++++++++++---- x/escrow/keeper/internal/agent.go | 59 ++------ x/escrow/keeper/internal/agent_test.go | 7 +- x/escrow/keeper/internal/genesis.go | 8 +- x/escrow/keeper/internal/genesis_test.go | 10 +- x/escrow/keeper/internal/grpc_query.go | 12 +- x/escrow/keeper/internal/keeper.go | 4 +- x/escrow/keeper/internal/keys.go | 22 +-- x/escrow/keeper/internal/proposal.go | 9 +- .../andromeda/escrow/v1alpha1/event.proto | 2 +- .../andromeda/escrow/v1alpha1/types.proto | 2 + 14 files changed, 244 insertions(+), 132 deletions(-) diff --git a/x/escrow/andromeda/escrow/v1alpha1/event.pb.go b/x/escrow/andromeda/escrow/v1alpha1/event.pb.go index b63f11d..476d6dd 100644 --- a/x/escrow/andromeda/escrow/v1alpha1/event.pb.go +++ b/x/escrow/andromeda/escrow/v1alpha1/event.pb.go @@ -83,7 +83,7 @@ func (m *EventUpdateParams) GetMaxMetadataLength() uint64 { type EventCreateAgent struct { // the address of the created agent Agent string `protobuf:"bytes,1,opt,name=agent,proto3" json:"agent,omitempty"` - // the address of the account created the agent + // the address of the creator Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` } diff --git a/x/escrow/andromeda/escrow/v1alpha1/types.pb.go b/x/escrow/andromeda/escrow/v1alpha1/types.pb.go index ae86909..9e91f10 100644 --- a/x/escrow/andromeda/escrow/v1alpha1/types.pb.go +++ b/x/escrow/andromeda/escrow/v1alpha1/types.pb.go @@ -71,6 +71,8 @@ func (m *Params) GetMaxMetadataLength() uint64 { // Agent defines an account taking charge of a proposal. type Agent struct { + // the address of the creator + Creator []byte `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` } func (m *Agent) Reset() { *m = Agent{} } @@ -106,6 +108,13 @@ func (m *Agent) XXX_DiscardUnknown() { var xxx_messageInfo_Agent proto.InternalMessageInfo +func (m *Agent) GetCreator() []byte { + if m != nil { + return m.Creator + } + return nil +} + // Proposal defines a proposal. type Proposal struct { // the address of the agent in charge @@ -190,30 +199,31 @@ func init() { } var fileDescriptor_20554566221d01d5 = []byte{ - // 363 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x91, 0xcf, 0x4a, 0xf3, 0x40, - 0x14, 0xc5, 0x3b, 0xe9, 0x9f, 0xaf, 0xdf, 0xb4, 0x1b, 0x63, 0x17, 0x6d, 0xc5, 0x50, 0x0a, 0x85, - 0xac, 0x26, 0x54, 0x11, 0x25, 0xae, 0x52, 0x28, 0x6e, 0x14, 0x42, 0x10, 0x11, 0x29, 0x94, 0xdb, - 0x76, 0x4c, 0x85, 0x24, 0x13, 0x92, 0x51, 0xdb, 0xb7, 0xf0, 0x19, 0x5c, 0x8a, 0x0f, 0x22, 0xae, - 0xba, 0x74, 0x29, 0xe9, 0xce, 0xad, 0x2f, 0x20, 0xc9, 0x74, 0x82, 0x9b, 0xba, 0x3c, 0x39, 0xbf, - 0x73, 0x73, 0xe7, 0x5c, 0xdc, 0x83, 0x60, 0x16, 0x31, 0x9f, 0xce, 0xc0, 0xa0, 0xf1, 0x34, 0x62, - 0x8f, 0xc6, 0x43, 0x1f, 0xbc, 0x70, 0x0e, 0x7d, 0x83, 0x2f, 0x43, 0x1a, 0x93, 0x30, 0x62, 0x9c, - 0xa9, 0xad, 0x1c, 0x23, 0x02, 0x23, 0x12, 0x6b, 0xb7, 0x5c, 0xc6, 0x5c, 0x8f, 0x1a, 0x19, 0x38, - 0xb9, 0xbf, 0x35, 0x20, 0x58, 0x8a, 0x54, 0xf7, 0x04, 0x57, 0x6c, 0x88, 0xc0, 0x8f, 0x55, 0x82, - 0x77, 0x7d, 0x58, 0x8c, 0x7d, 0xca, 0x61, 0x06, 0x1c, 0xc6, 0x1e, 0x0d, 0x5c, 0x3e, 0x6f, 0xa2, - 0x0e, 0xd2, 0x4b, 0xce, 0x8e, 0x0f, 0x8b, 0x8b, 0x8d, 0x73, 0x9e, 0x19, 0xdd, 0x7f, 0xb8, 0x6c, - 0xb9, 0x34, 0xe0, 0xdd, 0x57, 0x84, 0xab, 0x76, 0xc4, 0x42, 0x16, 0x83, 0xa7, 0x36, 0x70, 0x19, - 0xd2, 0xaf, 0x59, 0xae, 0xee, 0x08, 0xa1, 0x1e, 0xe1, 0x5a, 0x18, 0xd1, 0x31, 0x4c, 0xf9, 0x1d, - 0x0b, 0xe2, 0xa6, 0xd2, 0x29, 0xea, 0xb5, 0x83, 0x06, 0x11, 0x6b, 0x11, 0xb9, 0x16, 0xb1, 0x82, - 0xa5, 0x83, 0xc3, 0x88, 0x5a, 0x82, 0x53, 0x8f, 0x71, 0x3d, 0x64, 0x31, 0xcf, 0x73, 0xc5, 0x3f, - 0x72, 0xb5, 0x94, 0x94, 0xc1, 0x36, 0xae, 0xca, 0x77, 0x34, 0x4b, 0x1d, 0xa4, 0xff, 0x77, 0x72, - 0x3d, 0xf8, 0x46, 0x6f, 0x89, 0x86, 0x56, 0x89, 0x86, 0x3e, 0x13, 0x0d, 0x3d, 0xad, 0xb5, 0xc2, - 0x6a, 0xad, 0x15, 0x3e, 0xd6, 0x5a, 0x01, 0xef, 0x4f, 0x99, 0x4f, 0xb6, 0xd6, 0x38, 0xc0, 0x97, - 0x69, 0xdd, 0x76, 0xfa, 0x57, 0x1b, 0xdd, 0xe8, 0x5b, 0xcf, 0x72, 0x2a, 0xb4, 0x94, 0xcf, 0x4a, - 0xd1, 0x1a, 0x5e, 0xbf, 0x28, 0x2d, 0x2b, 0x9f, 0x3c, 0x14, 0x93, 0xaf, 0x36, 0xc4, 0xfb, 0x2f, - 0x6f, 0x24, 0xbc, 0x91, 0xf4, 0x12, 0xa5, 0xb7, 0xd5, 0x1b, 0x9d, 0xd9, 0x03, 0x79, 0x95, 0x2f, - 0x65, 0x2f, 0xe7, 0x4c, 0x53, 0x80, 0xa6, 0x29, 0xc9, 0x49, 0x25, 0x2b, 0xeb, 0xf0, 0x27, 0x00, - 0x00, 0xff, 0xff, 0x06, 0xd9, 0xcc, 0xfc, 0x4d, 0x02, 0x00, 0x00, + // 377 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x91, 0xcd, 0x6a, 0xdb, 0x40, + 0x14, 0x85, 0x3d, 0xf2, 0x4f, 0xdd, 0xb1, 0x37, 0x55, 0xbd, 0x90, 0x5d, 0x2a, 0x5c, 0x83, 0x41, + 0xab, 0x11, 0x6e, 0x29, 0x2d, 0xea, 0x4a, 0x06, 0xd3, 0x4d, 0x0b, 0x42, 0x94, 0x52, 0x8a, 0xc1, + 0x5c, 0xcb, 0x13, 0x39, 0x20, 0x69, 0xc4, 0x68, 0x92, 0xd8, 0x6f, 0x91, 0x67, 0xc8, 0x32, 0xe4, + 0x41, 0x42, 0x56, 0x5e, 0x66, 0x19, 0xe4, 0x5d, 0xb6, 0x79, 0x81, 0x20, 0x8d, 0x47, 0x64, 0xe3, + 0x2c, 0x0f, 0xe7, 0x3b, 0x77, 0xee, 0xdc, 0x83, 0xc7, 0x90, 0xac, 0x38, 0x8b, 0xe9, 0x0a, 0x6c, + 0x9a, 0x05, 0x9c, 0x5d, 0xd8, 0xe7, 0x13, 0x88, 0xd2, 0x35, 0x4c, 0x6c, 0xb1, 0x4d, 0x69, 0x46, + 0x52, 0xce, 0x04, 0xd3, 0xfb, 0x15, 0x46, 0x24, 0x46, 0x14, 0x36, 0xe8, 0x87, 0x8c, 0x85, 0x11, + 0xb5, 0x4b, 0x70, 0x79, 0x76, 0x62, 0x43, 0xb2, 0x95, 0xa9, 0xd1, 0x77, 0xdc, 0xf2, 0x80, 0x43, + 0x9c, 0xe9, 0x04, 0xbf, 0x8f, 0x61, 0xb3, 0x88, 0xa9, 0x80, 0x15, 0x08, 0x58, 0x44, 0x34, 0x09, + 0xc5, 0xda, 0x40, 0x43, 0x64, 0x35, 0xfc, 0x77, 0x31, 0x6c, 0x7e, 0x1f, 0x9c, 0x5f, 0xa5, 0x31, + 0xfa, 0x84, 0x9b, 0x6e, 0x48, 0x13, 0xa1, 0x1b, 0xf8, 0x4d, 0xc0, 0x29, 0x08, 0xc6, 0x4b, 0xb8, + 0xeb, 0x2b, 0x39, 0xba, 0x41, 0xb8, 0xed, 0x71, 0x96, 0xb2, 0x0c, 0x22, 0xbd, 0x87, 0x9b, 0x50, + 0xf0, 0x07, 0x48, 0x0a, 0xfd, 0x2b, 0xee, 0xa4, 0x9c, 0x2e, 0x20, 0x10, 0xa7, 0x2c, 0xc9, 0x0c, + 0x6d, 0x58, 0xb7, 0x3a, 0x9f, 0x7b, 0x44, 0x2e, 0x4c, 0xd4, 0xc2, 0xc4, 0x4d, 0xb6, 0x3e, 0x4e, + 0x39, 0x75, 0x25, 0xa7, 0x7f, 0xc3, 0xdd, 0x94, 0x65, 0xa2, 0xca, 0xd5, 0x5f, 0xc9, 0x75, 0x0a, + 0x52, 0x05, 0x07, 0xb8, 0xad, 0x7e, 0x68, 0x34, 0x86, 0xc8, 0x7a, 0xeb, 0x57, 0x7a, 0xfa, 0x84, + 0x6e, 0x73, 0x13, 0xed, 0x72, 0x13, 0x3d, 0xe4, 0x26, 0xba, 0xdc, 0x9b, 0xb5, 0xdd, 0xde, 0xac, + 0xdd, 0xef, 0xcd, 0x1a, 0xfe, 0x18, 0xb0, 0x98, 0x1c, 0x3d, 0xf0, 0x14, 0xff, 0x29, 0x8a, 0xf0, + 0x8a, 0x57, 0x3d, 0xf4, 0xdf, 0x3a, 0x5a, 0xd8, 0x0f, 0xa9, 0x95, 0xbc, 0xd2, 0xea, 0xee, 0xec, + 0xdf, 0xb5, 0xd6, 0x77, 0xab, 0xc9, 0x33, 0x39, 0xf9, 0xef, 0x81, 0xb8, 0x7b, 0xe1, 0xcd, 0xa5, + 0x37, 0x57, 0x5e, 0xae, 0x8d, 0x8f, 0x7a, 0xf3, 0x9f, 0xde, 0x54, 0xf5, 0xf5, 0xa8, 0x7d, 0xa8, + 0x38, 0xc7, 0x91, 0xa0, 0xe3, 0x28, 0x72, 0xd9, 0x2a, 0x8f, 0xf5, 0xe5, 0x39, 0x00, 0x00, 0xff, + 0xff, 0xed, 0x0f, 0xf5, 0x4c, 0x67, 0x02, 0x00, 0x00, } func (m *Params) Marshal() (dAtA []byte, err error) { @@ -264,6 +274,13 @@ func (m *Agent) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTypes(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } return len(dAtA) - i, nil } @@ -361,6 +378,10 @@ func (m *Agent) Size() (n int) { } var l int _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTypes(uint64(l)) + } return n } @@ -497,6 +518,40 @@ func (m *Agent) Unmarshal(dAtA []byte) error { return fmt.Errorf("proto: Agent: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTypes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthTypes + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthTypes + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = append(m.Creator[:0], dAtA[iNdEx:postIndex]...) + if m.Creator == nil { + m.Creator = []byte{} + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipTypes(dAtA[iNdEx:]) diff --git a/x/escrow/api/andromeda/escrow/v1alpha1/event.pulsar.go b/x/escrow/api/andromeda/escrow/v1alpha1/event.pulsar.go index 349eac4..838cef9 100644 --- a/x/escrow/api/andromeda/escrow/v1alpha1/event.pulsar.go +++ b/x/escrow/api/andromeda/escrow/v1alpha1/event.pulsar.go @@ -2511,7 +2511,7 @@ type EventCreateAgent struct { // the address of the created agent Agent string `protobuf:"bytes,1,opt,name=agent,proto3" json:"agent,omitempty"` - // the address of the account created the agent + // the address of the creator Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` } diff --git a/x/escrow/api/andromeda/escrow/v1alpha1/types.pulsar.go b/x/escrow/api/andromeda/escrow/v1alpha1/types.pulsar.go index 5395777..320c632 100644 --- a/x/escrow/api/andromeda/escrow/v1alpha1/types.pulsar.go +++ b/x/escrow/api/andromeda/escrow/v1alpha1/types.pulsar.go @@ -418,12 +418,14 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { } var ( - md_Agent protoreflect.MessageDescriptor + md_Agent protoreflect.MessageDescriptor + fd_Agent_creator protoreflect.FieldDescriptor ) func init() { file_andromeda_escrow_v1alpha1_types_proto_init() md_Agent = File_andromeda_escrow_v1alpha1_types_proto.Messages().ByName("Agent") + fd_Agent_creator = md_Agent.Fields().ByName("creator") } var _ protoreflect.Message = (*fastReflection_Agent)(nil) @@ -491,6 +493,12 @@ func (x *fastReflection_Agent) Interface() protoreflect.ProtoMessage { // While iterating, mutating operations may only be performed // on the current field descriptor. func (x *fastReflection_Agent) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.Creator) != 0 { + value := protoreflect.ValueOfBytes(x.Creator) + if !f(fd_Agent_creator, value) { + return + } + } } // Has reports whether a field is populated. @@ -506,6 +514,8 @@ func (x *fastReflection_Agent) Range(f func(protoreflect.FieldDescriptor, protor // a repeated field is populated if it is non-empty. func (x *fastReflection_Agent) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { + case "andromeda.escrow.v1alpha1.Agent.creator": + return len(x.Creator) != 0 default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.Agent")) @@ -522,6 +532,8 @@ func (x *fastReflection_Agent) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Agent) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { + case "andromeda.escrow.v1alpha1.Agent.creator": + x.Creator = nil default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.Agent")) @@ -538,6 +550,9 @@ func (x *fastReflection_Agent) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_Agent) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { + case "andromeda.escrow.v1alpha1.Agent.creator": + value := x.Creator + return protoreflect.ValueOfBytes(value) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.Agent")) @@ -558,6 +573,8 @@ func (x *fastReflection_Agent) Get(descriptor protoreflect.FieldDescriptor) prot // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Agent) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { + case "andromeda.escrow.v1alpha1.Agent.creator": + x.Creator = value.Bytes() default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.Agent")) @@ -578,6 +595,8 @@ func (x *fastReflection_Agent) Set(fd protoreflect.FieldDescriptor, value protor // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Agent) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { + case "andromeda.escrow.v1alpha1.Agent.creator": + panic(fmt.Errorf("field creator of message andromeda.escrow.v1alpha1.Agent is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.Agent")) @@ -591,6 +610,8 @@ func (x *fastReflection_Agent) Mutable(fd protoreflect.FieldDescriptor) protoref // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_Agent) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { + case "andromeda.escrow.v1alpha1.Agent.creator": + return protoreflect.ValueOfBytes(nil) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.Agent")) @@ -660,6 +681,10 @@ func (x *fastReflection_Agent) ProtoMethods() *protoiface.Methods { var n int var l int _ = l + l = len(x.Creator) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -689,6 +714,13 @@ func (x *fastReflection_Agent) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if len(x.Creator) > 0 { + i -= len(x.Creator) + copy(dAtA[i:], x.Creator) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) + i-- + dAtA[i] = 0xa + } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) } else { @@ -738,6 +770,40 @@ func (x *fastReflection_Agent) ProtoMethods() *protoiface.Methods { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Agent: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Creator = append(x.Creator[:0], dAtA[iNdEx:postIndex]...) + if x.Creator == nil { + x.Creator = []byte{} + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -1590,6 +1656,9 @@ type Agent struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + + // the address of the creator + Creator []byte `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` } func (x *Agent) Reset() { @@ -1612,6 +1681,13 @@ func (*Agent) Descriptor() ([]byte, []int) { return file_andromeda_escrow_v1alpha1_types_proto_rawDescGZIP(), []int{1} } +func (x *Agent) GetCreator() []byte { + if x != nil { + return x.Creator + } + return nil +} + // Proposal defines a proposal. type Proposal struct { state protoimpl.MessageState @@ -1688,33 +1764,35 @@ var file_andromeda_escrow_v1alpha1_types_proto_rawDesc = []byte{ 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x2e, 0x0a, 0x13, 0x6d, 0x61, 0x78, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x11, 0x6d, 0x61, 0x78, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, - 0x61, 0x4c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x22, 0x07, 0x0a, 0x05, 0x41, 0x67, 0x65, 0x6e, 0x74, - 0x22, 0xac, 0x01, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x14, 0x0a, - 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x61, 0x67, - 0x65, 0x6e, 0x74, 0x12, 0x35, 0x0a, 0x0b, 0x70, 0x72, 0x65, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0a, - 0x70, 0x72, 0x65, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x37, 0x0a, 0x0c, 0x70, 0x6f, - 0x73, 0x74, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, 0x70, 0x6f, 0x73, 0x74, 0x41, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x42, - 0xdf, 0x01, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, - 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, - 0x31, 0x42, 0x0a, 0x54, 0x79, 0x70, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, - 0x2c, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x65, - 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x3b, 0x65, - 0x73, 0x63, 0x72, 0x6f, 0x77, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xa2, 0x02, 0x03, - 0x41, 0x45, 0x58, 0xaa, 0x02, 0x19, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, - 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xca, - 0x02, 0x19, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x5c, 0x45, 0x73, 0x63, 0x72, - 0x6f, 0x77, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xe2, 0x02, 0x25, 0x41, 0x6e, - 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x5c, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x5c, 0x56, - 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0xea, 0x02, 0x1b, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x3a, - 0x3a, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x3a, 0x3a, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, - 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x61, 0x4c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x22, 0x21, 0x0a, 0x05, 0x41, 0x67, 0x65, 0x6e, 0x74, + 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0xac, 0x01, 0x0a, 0x08, 0x50, + 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x35, 0x0a, + 0x0b, 0x70, 0x72, 0x65, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0a, 0x70, 0x72, 0x65, 0x41, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x37, 0x0a, 0x0c, 0x70, 0x6f, 0x73, 0x74, 0x5f, 0x61, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, + 0x52, 0x0b, 0x70, 0x6f, 0x73, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1a, 0x0a, + 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x42, 0xdf, 0x01, 0x0a, 0x1d, 0x63, 0x6f, + 0x6d, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, + 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x0a, 0x54, 0x79, 0x70, + 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2c, 0x61, 0x70, 0x69, 0x2f, 0x61, + 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2f, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x3b, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x45, 0x58, 0xaa, 0x02, 0x19, + 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, + 0x2e, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xca, 0x02, 0x19, 0x41, 0x6e, 0x64, 0x72, + 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x5c, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x5c, 0x56, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0xe2, 0x02, 0x25, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, + 0x61, 0x5c, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1b, + 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x3a, 0x3a, 0x45, 0x73, 0x63, 0x72, 0x6f, + 0x77, 0x3a, 0x3a, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, } var ( diff --git a/x/escrow/keeper/internal/agent.go b/x/escrow/keeper/internal/agent.go index 1ad1548..9aba668 100644 --- a/x/escrow/keeper/internal/agent.go +++ b/x/escrow/keeper/internal/agent.go @@ -49,7 +49,9 @@ func (k Keeper) CreateAgent(ctx context.Context, creator sdk.AccAddress) (sdk.Ac acc := k.authKeeper.NewAccount(ctx, bac) k.authKeeper.SetAccount(ctx, acc) - if err := k.setAgent(ctx, address, creator, &escrowv1alpha1.Agent{}); err != nil { + if err := k.setAgent(ctx, address, &escrowv1alpha1.Agent{ + Creator: creator, + }); err != nil { return nil, err } @@ -57,8 +59,8 @@ func (k Keeper) CreateAgent(ctx context.Context, creator sdk.AccAddress) (sdk.Ac } } -func (k Keeper) getAgentKey(ctx context.Context, address sdk.AccAddress) (*collections.Pair[sdk.AccAddress, sdk.AccAddress], error) { - key, err := k.agents.Indexes.address.MatchExact(ctx, address) +func (k Keeper) GetAgent(ctx context.Context, address sdk.AccAddress) (*escrowv1alpha1.Agent, error) { + agent, err := k.agents.Get(ctx, address) if err != nil { if !errors.IsOf(err, collections.ErrNotFound) { return nil, escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()) @@ -67,60 +69,26 @@ func (k Keeper) getAgentKey(ctx context.Context, address sdk.AccAddress) (*colle return nil, escrowv1alpha1.ErrAgentNotFound.Wrap(err.Error()) } - return &key, nil + return &agent, nil } -func (k Keeper) GetAgent(ctx context.Context, address sdk.AccAddress) (sdk.AccAddress, *escrowv1alpha1.Agent, error) { - key, err := k.getAgentKey(ctx, address) - if err != nil { - return nil, nil, err - } - - creator := key.K1() - - agent, err := k.agents.Get(ctx, *key) - if err != nil { - return nil, nil, escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()) - } - - return creator, &agent, nil -} - -func (k Keeper) HasAgent(ctx context.Context, address, creator sdk.AccAddress) error { - has, err := k.agents.Has(ctx, collections.Join(creator, address)) - if err != nil { - return escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()) - } - - if !has { - addrStr, err := k.addressBytesToString(address) - if err != nil { - return err - } - - return escrowv1alpha1.ErrAgentNotFound.Wrap(addrStr) - } - - return nil -} - -func (k Keeper) setAgent(ctx context.Context, address, creator sdk.AccAddress, agent *escrowv1alpha1.Agent) error { - if err := k.agents.Set(ctx, collections.Join(creator, address), *agent); err != nil { +func (k Keeper) setAgent(ctx context.Context, address sdk.AccAddress, agent *escrowv1alpha1.Agent) error { + if err := k.agents.Set(ctx, address, *agent); err != nil { return escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()) } return nil } -func (k Keeper) removeAgent(ctx context.Context, address, creator sdk.AccAddress) error { - if err := k.agents.Remove(ctx, collections.Join(creator, address)); err != nil { +func (k Keeper) removeAgent(ctx context.Context, address sdk.AccAddress) error { + if err := k.agents.Remove(ctx, address); err != nil { return escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()) } return nil } -func (k Keeper) iterateAgents(ctx context.Context, fn func(address, creator sdk.AccAddress, agent escrowv1alpha1.Agent) error) error { +func (k Keeper) iterateAgents(ctx context.Context, fn func(address sdk.AccAddress, agent escrowv1alpha1.Agent) error) error { iter, err := k.agents.Iterate(ctx, nil) if err != nil { return escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()) @@ -138,11 +106,10 @@ func (k Keeper) iterateAgents(ctx context.Context, fn func(address, creator sdk. return escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()) } - creator := key.K1() - address := key.K2() + address := key agent := value - if err := fn(address, creator, agent); err != nil { + if err := fn(address, agent); err != nil { return err } } diff --git a/x/escrow/keeper/internal/agent_test.go b/x/escrow/keeper/internal/agent_test.go index 539c0a6..4681e85 100644 --- a/x/escrow/keeper/internal/agent_test.go +++ b/x/escrow/keeper/internal/agent_test.go @@ -21,11 +21,14 @@ func (s *KeeperTestSuite) TestCreateAgent() { } s.NotNil(agent) - err = s.keeper.HasAgent(s.ctx, agent, subject.creator) + agentBefore, err := s.keeper.GetAgent(s.ctx, agent) s.Assert().Error(err) + s.Assert().Nil(agentBefore) - err = s.keeper.HasAgent(ctx, agent, subject.creator) + agentAfter, err := s.keeper.GetAgent(ctx, agent) s.Require().NoError(err) + s.Require().NotNil(agentAfter) + s.Require().Equal(subject.creator, sdk.AccAddress(agentAfter.Creator)) return nil } diff --git a/x/escrow/keeper/internal/genesis.go b/x/escrow/keeper/internal/genesis.go index 26c4265..ce11f50 100644 --- a/x/escrow/keeper/internal/genesis.go +++ b/x/escrow/keeper/internal/genesis.go @@ -217,7 +217,9 @@ func (k Keeper) initGenesisAgent(ctx context.Context, agent *escrowv1alpha1.Gene return errors.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "creator") } - return k.setAgent(ctx, address, creator, &escrowv1alpha1.Agent{}) + return k.setAgent(ctx, address, &escrowv1alpha1.Agent{ + Creator: creator, + }) } func (k Keeper) initGenesisProposals(ctx context.Context, proposals []*escrowv1alpha1.GenesisState_Proposal) error { @@ -297,13 +299,13 @@ func (k Keeper) exportGenesisParams(ctx context.Context) (*escrowv1alpha1.Genesi func (k Keeper) exportGenesisAgents(ctx context.Context) ([]*escrowv1alpha1.GenesisState_Agent, error) { agents := []*escrowv1alpha1.GenesisState_Agent{} - if err := k.iterateAgents(ctx, func(address, creator sdk.AccAddress, agent escrowv1alpha1.Agent) error { + if err := k.iterateAgents(ctx, func(address sdk.AccAddress, agent escrowv1alpha1.Agent) error { addressStr, err := k.addressBytesToString(address) if err != nil { return errors.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "address") } - creatorStr, err := k.addressBytesToString(creator) + creatorStr, err := k.addressBytesToString(agent.Creator) if err != nil { return errors.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "creator") } diff --git a/x/escrow/keeper/internal/genesis_test.go b/x/escrow/keeper/internal/genesis_test.go index bae1ef1..78d0de1 100644 --- a/x/escrow/keeper/internal/genesis_test.go +++ b/x/escrow/keeper/internal/genesis_test.go @@ -563,14 +563,14 @@ func TestInitExportGenesisAgents(t *testing.T) { address := addressStringToBytes(agent.Address) creator := addressStringToBytes(agent.Creator) - creatorBefore, _, err := k.GetAgent(ctxBefore, address) + agentBefore, err := k.GetAgent(ctxBefore, address) assert.Error(t, err, i) - assert.Nil(t, creatorBefore, i) + assert.Nil(t, agentBefore, i) - creatorAfter, _, err := k.GetAgent(ctxAfter, address) + agentAfter, err := k.GetAgent(ctxAfter, address) assert.NoError(t, err, i) - assert.NotNil(t, creatorAfter, i) - assert.Equal(t, creator, creatorAfter, i) + assert.NotNil(t, agentAfter, i) + assert.Equal(t, creator, sdk.AccAddress(agentAfter.Creator), i) } gsOutput, err := k.ExportGenesis(ctxAfter) diff --git a/x/escrow/keeper/internal/grpc_query.go b/x/escrow/keeper/internal/grpc_query.go index 09a869e..0ac76da 100644 --- a/x/escrow/keeper/internal/grpc_query.go +++ b/x/escrow/keeper/internal/grpc_query.go @@ -57,12 +57,12 @@ func (s queryServer) Agent(ctx context.Context, req *escrowv1alpha1.QueryAgentRe return nil, errors.Wrap(err, "agent") } - creator, _, err := s.keeper.GetAgent(ctx, agent) + agentInfo, err := s.keeper.GetAgent(ctx, agent) if err != nil { return nil, err } - creatorStr, err := s.keeper.addressBytesToString(creator) + creatorStr, err := s.keeper.addressBytesToString(agentInfo.Creator) if err != nil { return nil, errors.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "creator") } @@ -80,16 +80,16 @@ func (s queryServer) Agents(ctx context.Context, req *escrowv1alpha1.QueryAgents return nil, errNilRequest } - agents, pageRes, err := query.CollectionPaginate(ctx, s.keeper.agents, req.Pagination, func(key collections.Pair[sdk.AccAddress, sdk.AccAddress], _ escrowv1alpha1.Agent) (*escrowv1alpha1.QueryAgentsResponse_Agent, error) { - creator := key.K1() - address := key.K2() + agents, pageRes, err := query.CollectionPaginate(ctx, s.keeper.agents, req.Pagination, func(key sdk.AccAddress, value escrowv1alpha1.Agent) (*escrowv1alpha1.QueryAgentsResponse_Agent, error) { + address := key + agent := value addressStr, err := s.keeper.addressBytesToString(address) if err != nil { return nil, errors.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "address") } - creatorStr, err := s.keeper.addressBytesToString(creator) + creatorStr, err := s.keeper.addressBytesToString(agent.Creator) if err != nil { return nil, errors.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "creator") } diff --git a/x/escrow/keeper/internal/keeper.go b/x/escrow/keeper/internal/keeper.go index d922275..b7e9309 100644 --- a/x/escrow/keeper/internal/keeper.go +++ b/x/escrow/keeper/internal/keeper.go @@ -27,7 +27,7 @@ type Keeper struct { params collections.Item[escrowv1alpha1.Params] nextAgent collections.Sequence - agents *collections.IndexedMap[collections.Pair[sdk.AccAddress, sdk.AccAddress], escrowv1alpha1.Agent, agentsIndexes] + agents *collections.IndexedMap[sdk.AccAddress, escrowv1alpha1.Agent, agentsIndexes] nextProposal collections.Sequence proposals *collections.IndexedMap[collections.Pair[sdk.AccAddress, uint64], escrowv1alpha1.Proposal, proposalsIndexes] @@ -50,7 +50,7 @@ func NewKeeper( codec.CollValue[escrowv1alpha1.Params](cdc)), nextAgent: collections.NewSequence(sb, agentsSeqKey, "next_agent"), agents: collections.NewIndexedMap(sb, agentsKeyPrefix, "agents", - collections.PairKeyCodec(sdk.AccAddressKey, sdk.AccAddressKey), + sdk.AccAddressKey, codec.CollValue[escrowv1alpha1.Agent](cdc), newAgentsIndexes(sb), ), diff --git a/x/escrow/keeper/internal/keys.go b/x/escrow/keeper/internal/keys.go index dfe2895..8e57b85 100644 --- a/x/escrow/keeper/internal/keys.go +++ b/x/escrow/keeper/internal/keys.go @@ -14,7 +14,7 @@ var ( agentsSeqKey = collections.NewPrefix(0x10) agentsKeyPrefix = collections.NewPrefix(0x11) - agentsKeyAddressPrefix = collections.NewPrefix(0x12) + agentsKeyCreatorPrefix = collections.NewPrefix(0x12) proposalsSeqKey = collections.NewPrefix(0x20) proposalsKeyPrefix = collections.NewPrefix(0x21) @@ -23,25 +23,25 @@ var ( func newAgentsIndexes(sb *collections.SchemaBuilder) agentsIndexes { return agentsIndexes{ - address: indexes.NewUnique( - sb, agentsKeyAddressPrefix, "agents_by_address", + creator: indexes.NewMulti( + sb, agentsKeyCreatorPrefix, "agents_by_creator", sdk.AccAddressKey, - collections.PairKeyCodec(sdk.AccAddressKey, sdk.AccAddressKey), - func(key collections.Pair[sdk.AccAddress, sdk.AccAddress], _ escrowv1alpha1.Agent) (sdk.AccAddress, error) { - address := key.K2() - return address, nil + sdk.AccAddressKey, + func(_ sdk.AccAddress, value escrowv1alpha1.Agent) (sdk.AccAddress, error) { + creator := value.Creator + return creator, nil }, ), } } type agentsIndexes struct { - address *indexes.Unique[sdk.AccAddress, collections.Pair[sdk.AccAddress, sdk.AccAddress], escrowv1alpha1.Agent] + creator *indexes.Multi[sdk.AccAddress, sdk.AccAddress, escrowv1alpha1.Agent] } -func (a agentsIndexes) IndexesList() []collections.Index[collections.Pair[sdk.AccAddress, sdk.AccAddress], escrowv1alpha1.Agent] { - return []collections.Index[collections.Pair[sdk.AccAddress, sdk.AccAddress], escrowv1alpha1.Agent]{ - a.address, +func (a agentsIndexes) IndexesList() []collections.Index[sdk.AccAddress, escrowv1alpha1.Agent] { + return []collections.Index[sdk.AccAddress, escrowv1alpha1.Agent]{ + a.creator, } } diff --git a/x/escrow/keeper/internal/proposal.go b/x/escrow/keeper/internal/proposal.go index f41ec32..63370f8 100644 --- a/x/escrow/keeper/internal/proposal.go +++ b/x/escrow/keeper/internal/proposal.go @@ -17,10 +17,15 @@ func (k Keeper) SubmitProposal(ctx context.Context, proposer, agent sdk.AccAddre return 0, err } - if err := k.HasAgent(ctx, agent, proposer); err != nil { + agentInfo, err := k.GetAgent(ctx, agent) + if err != nil { return 0, err } + if !proposer.Equals(sdk.AccAddress(agentInfo.Creator)) { + return 0, escrowv1alpha1.ErrPermissionDenied.Wrap("proposer differs from creator") + } + id, err := k.nextProposal.Next(ctx) if err != nil { return 0, escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()) @@ -49,7 +54,7 @@ func (k Keeper) SubmitProposal(ctx context.Context, proposer, agent sdk.AccAddre } } - if err := k.removeAgent(ctx, agent, proposer); err != nil { + if err := k.removeAgent(ctx, agent); err != nil { return 0, err } diff --git a/x/escrow/proto/andromeda/escrow/v1alpha1/event.proto b/x/escrow/proto/andromeda/escrow/v1alpha1/event.proto index d69ff93..b841114 100644 --- a/x/escrow/proto/andromeda/escrow/v1alpha1/event.proto +++ b/x/escrow/proto/andromeda/escrow/v1alpha1/event.proto @@ -18,7 +18,7 @@ message EventCreateAgent { // the address of the created agent string agent = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; - // the address of the account created the agent + // the address of the creator string creator = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; } diff --git a/x/escrow/proto/andromeda/escrow/v1alpha1/types.proto b/x/escrow/proto/andromeda/escrow/v1alpha1/types.proto index e2909f8..73ac02f 100644 --- a/x/escrow/proto/andromeda/escrow/v1alpha1/types.proto +++ b/x/escrow/proto/andromeda/escrow/v1alpha1/types.proto @@ -11,6 +11,8 @@ message Params { // Agent defines an account taking charge of a proposal. message Agent { + // the address of the creator + bytes creator = 1; } // Proposal defines a proposal. From 9681d1a3958294f97b0c3ec1195ae1652e9a8a99 Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Mon, 29 Jan 2024 12:27:48 +0000 Subject: [PATCH 34/62] Refactor proposals key schema --- .../andromeda/escrow/v1alpha1/types.pb.go | 125 ++++++++--- .../andromeda/escrow/v1alpha1/types.pulsar.go | 212 ++++++++++++------ x/escrow/keeper/internal/exec.go | 6 +- x/escrow/keeper/internal/exec_test.go | 4 +- x/escrow/keeper/internal/genesis.go | 7 +- x/escrow/keeper/internal/genesis_test.go | 8 +- x/escrow/keeper/internal/grpc_query.go | 14 +- x/escrow/keeper/internal/keeper.go | 4 +- x/escrow/keeper/internal/keys.go | 40 ++-- x/escrow/keeper/internal/proposal.go | 41 +--- x/escrow/keeper/internal/proposal_test.go | 8 +- .../andromeda/escrow/v1alpha1/types.proto | 11 +- 12 files changed, 303 insertions(+), 177 deletions(-) diff --git a/x/escrow/andromeda/escrow/v1alpha1/types.pb.go b/x/escrow/andromeda/escrow/v1alpha1/types.pb.go index 9e91f10..1cd4740 100644 --- a/x/escrow/andromeda/escrow/v1alpha1/types.pb.go +++ b/x/escrow/andromeda/escrow/v1alpha1/types.pb.go @@ -117,14 +117,16 @@ func (m *Agent) GetCreator() []byte { // Proposal defines a proposal. type Proposal struct { + // the address of the proposer + Proposer []byte `protobuf:"bytes,1,opt,name=proposer,proto3" json:"proposer,omitempty"` // the address of the agent in charge - Agent []byte `protobuf:"bytes,1,opt,name=agent,proto3" json:"agent,omitempty"` + Agent []byte `protobuf:"bytes,2,opt,name=agent,proto3" json:"agent,omitempty"` // the messages which has been executed on the submission - PreActions []*types.Any `protobuf:"bytes,2,rep,name=pre_actions,json=preActions,proto3" json:"pre_actions,omitempty"` + PreActions []*types.Any `protobuf:"bytes,3,rep,name=pre_actions,json=preActions,proto3" json:"pre_actions,omitempty"` // the messages which will be executed after the actions included in Msg/Exec - PostActions []*types.Any `protobuf:"bytes,3,rep,name=post_actions,json=postActions,proto3" json:"post_actions,omitempty"` + PostActions []*types.Any `protobuf:"bytes,4,rep,name=post_actions,json=postActions,proto3" json:"post_actions,omitempty"` // any arbitrary metadata attached to the proposal - Metadata string `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"` + Metadata string `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"` } func (m *Proposal) Reset() { *m = Proposal{} } @@ -160,6 +162,13 @@ func (m *Proposal) XXX_DiscardUnknown() { var xxx_messageInfo_Proposal proto.InternalMessageInfo +func (m *Proposal) GetProposer() []byte { + if m != nil { + return m.Proposer + } + return nil +} + func (m *Proposal) GetAgent() []byte { if m != nil { return m.Agent @@ -199,31 +208,32 @@ func init() { } var fileDescriptor_20554566221d01d5 = []byte{ - // 377 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x91, 0xcd, 0x6a, 0xdb, 0x40, - 0x14, 0x85, 0x3d, 0xf2, 0x4f, 0xdd, 0xb1, 0x37, 0x55, 0xbd, 0x90, 0x5d, 0x2a, 0x5c, 0x83, 0x41, - 0xab, 0x11, 0x6e, 0x29, 0x2d, 0xea, 0x4a, 0x06, 0xd3, 0x4d, 0x0b, 0x42, 0x94, 0x52, 0x8a, 0xc1, - 0x5c, 0xcb, 0x13, 0x39, 0x20, 0x69, 0xc4, 0x68, 0x92, 0xd8, 0x6f, 0x91, 0x67, 0xc8, 0x32, 0xe4, - 0x41, 0x42, 0x56, 0x5e, 0x66, 0x19, 0xe4, 0x5d, 0xb6, 0x79, 0x81, 0x20, 0x8d, 0x47, 0x64, 0xe3, - 0x2c, 0x0f, 0xe7, 0x3b, 0x77, 0xee, 0xdc, 0x83, 0xc7, 0x90, 0xac, 0x38, 0x8b, 0xe9, 0x0a, 0x6c, - 0x9a, 0x05, 0x9c, 0x5d, 0xd8, 0xe7, 0x13, 0x88, 0xd2, 0x35, 0x4c, 0x6c, 0xb1, 0x4d, 0x69, 0x46, - 0x52, 0xce, 0x04, 0xd3, 0xfb, 0x15, 0x46, 0x24, 0x46, 0x14, 0x36, 0xe8, 0x87, 0x8c, 0x85, 0x11, - 0xb5, 0x4b, 0x70, 0x79, 0x76, 0x62, 0x43, 0xb2, 0x95, 0xa9, 0xd1, 0x77, 0xdc, 0xf2, 0x80, 0x43, - 0x9c, 0xe9, 0x04, 0xbf, 0x8f, 0x61, 0xb3, 0x88, 0xa9, 0x80, 0x15, 0x08, 0x58, 0x44, 0x34, 0x09, - 0xc5, 0xda, 0x40, 0x43, 0x64, 0x35, 0xfc, 0x77, 0x31, 0x6c, 0x7e, 0x1f, 0x9c, 0x5f, 0xa5, 0x31, - 0xfa, 0x84, 0x9b, 0x6e, 0x48, 0x13, 0xa1, 0x1b, 0xf8, 0x4d, 0xc0, 0x29, 0x08, 0xc6, 0x4b, 0xb8, - 0xeb, 0x2b, 0x39, 0xba, 0x41, 0xb8, 0xed, 0x71, 0x96, 0xb2, 0x0c, 0x22, 0xbd, 0x87, 0x9b, 0x50, - 0xf0, 0x07, 0x48, 0x0a, 0xfd, 0x2b, 0xee, 0xa4, 0x9c, 0x2e, 0x20, 0x10, 0xa7, 0x2c, 0xc9, 0x0c, - 0x6d, 0x58, 0xb7, 0x3a, 0x9f, 0x7b, 0x44, 0x2e, 0x4c, 0xd4, 0xc2, 0xc4, 0x4d, 0xb6, 0x3e, 0x4e, - 0x39, 0x75, 0x25, 0xa7, 0x7f, 0xc3, 0xdd, 0x94, 0x65, 0xa2, 0xca, 0xd5, 0x5f, 0xc9, 0x75, 0x0a, - 0x52, 0x05, 0x07, 0xb8, 0xad, 0x7e, 0x68, 0x34, 0x86, 0xc8, 0x7a, 0xeb, 0x57, 0x7a, 0xfa, 0x84, - 0x6e, 0x73, 0x13, 0xed, 0x72, 0x13, 0x3d, 0xe4, 0x26, 0xba, 0xdc, 0x9b, 0xb5, 0xdd, 0xde, 0xac, - 0xdd, 0xef, 0xcd, 0x1a, 0xfe, 0x18, 0xb0, 0x98, 0x1c, 0x3d, 0xf0, 0x14, 0xff, 0x29, 0x8a, 0xf0, - 0x8a, 0x57, 0x3d, 0xf4, 0xdf, 0x3a, 0x5a, 0xd8, 0x0f, 0xa9, 0x95, 0xbc, 0xd2, 0xea, 0xee, 0xec, - 0xdf, 0xb5, 0xd6, 0x77, 0xab, 0xc9, 0x33, 0x39, 0xf9, 0xef, 0x81, 0xb8, 0x7b, 0xe1, 0xcd, 0xa5, - 0x37, 0x57, 0x5e, 0xae, 0x8d, 0x8f, 0x7a, 0xf3, 0x9f, 0xde, 0x54, 0xf5, 0xf5, 0xa8, 0x7d, 0xa8, - 0x38, 0xc7, 0x91, 0xa0, 0xe3, 0x28, 0x72, 0xd9, 0x2a, 0x8f, 0xf5, 0xe5, 0x39, 0x00, 0x00, 0xff, - 0xff, 0xed, 0x0f, 0xf5, 0x4c, 0x67, 0x02, 0x00, 0x00, + // 386 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x91, 0x4f, 0x8b, 0xd3, 0x40, + 0x18, 0xc6, 0x3b, 0xe9, 0x1f, 0xeb, 0xb4, 0x17, 0x63, 0x0f, 0x69, 0xc5, 0x50, 0x0b, 0x85, 0x9c, + 0x26, 0x54, 0x11, 0x25, 0x9e, 0x52, 0x28, 0x5e, 0x14, 0x42, 0x10, 0x11, 0x29, 0x94, 0xb7, 0xe9, + 0x98, 0x0a, 0x49, 0x66, 0x98, 0x8c, 0xda, 0x7e, 0x0b, 0x3f, 0x83, 0x47, 0x3f, 0x49, 0xd9, 0x53, + 0x8f, 0x7b, 0x5c, 0xd2, 0xdb, 0x5e, 0xf7, 0x0b, 0x2c, 0xc9, 0x74, 0xc2, 0x5e, 0xba, 0xb7, 0x3c, + 0xfc, 0x7e, 0xcf, 0x1b, 0xde, 0x79, 0xf1, 0x14, 0xb2, 0x8d, 0x60, 0x29, 0xdd, 0x80, 0x4b, 0xf3, + 0x48, 0xb0, 0x3f, 0xee, 0xef, 0x19, 0x24, 0x7c, 0x0b, 0x33, 0x57, 0xee, 0x39, 0xcd, 0x09, 0x17, + 0x4c, 0x32, 0x73, 0x58, 0x6b, 0x44, 0x69, 0x44, 0x6b, 0xa3, 0x61, 0xcc, 0x58, 0x9c, 0x50, 0xb7, + 0x12, 0xd7, 0xbf, 0x7e, 0xb8, 0x90, 0xed, 0x55, 0x6b, 0xf2, 0x1e, 0x77, 0x02, 0x10, 0x90, 0xe6, + 0x26, 0xc1, 0xcf, 0x53, 0xd8, 0xad, 0x52, 0x2a, 0x61, 0x03, 0x12, 0x56, 0x09, 0xcd, 0x62, 0xb9, + 0xb5, 0xd0, 0x18, 0x39, 0xad, 0xf0, 0x59, 0x0a, 0xbb, 0xcf, 0x67, 0xf2, 0xa9, 0x02, 0x93, 0x57, + 0xb8, 0xed, 0xc7, 0x34, 0x93, 0xa6, 0x85, 0x9f, 0x44, 0x82, 0x82, 0x64, 0xa2, 0x92, 0xfb, 0xa1, + 0x8e, 0x93, 0x03, 0xc2, 0xdd, 0x40, 0x30, 0xce, 0x72, 0x48, 0xcc, 0x11, 0xee, 0xf2, 0xea, 0x9b, + 0x6a, 0xaf, 0xce, 0xe6, 0x00, 0xb7, 0xa1, 0x9c, 0x65, 0x19, 0x15, 0x50, 0xc1, 0x7c, 0x8b, 0x7b, + 0x5c, 0xd0, 0x15, 0x44, 0xf2, 0x27, 0xcb, 0x72, 0xab, 0x39, 0x6e, 0x3a, 0xbd, 0xd7, 0x03, 0xa2, + 0x96, 0x21, 0x7a, 0x19, 0xe2, 0x67, 0xfb, 0x10, 0x73, 0x41, 0x7d, 0xe5, 0x99, 0xef, 0x70, 0x9f, + 0xb3, 0x5c, 0xd6, 0xbd, 0xd6, 0x23, 0xbd, 0x5e, 0x69, 0xea, 0xe2, 0x08, 0x77, 0xf5, 0xf6, 0x56, + 0x7b, 0x8c, 0x9c, 0xa7, 0x61, 0x9d, 0xe7, 0x77, 0xe8, 0x50, 0xd8, 0xe8, 0x58, 0xd8, 0xe8, 0xa6, + 0xb0, 0xd1, 0xdf, 0x93, 0xdd, 0x38, 0x9e, 0xec, 0xc6, 0xf5, 0xc9, 0x6e, 0xe0, 0x97, 0x11, 0x4b, + 0xc9, 0xc5, 0xc7, 0x9f, 0xe3, 0x2f, 0xe5, 0x91, 0x82, 0xf2, 0xaf, 0x01, 0xfa, 0xee, 0x5c, 0x3c, + 0xe6, 0x07, 0x95, 0x75, 0xfc, 0x67, 0x34, 0xfd, 0xc5, 0xb7, 0xff, 0xc6, 0xd0, 0xaf, 0x27, 0x2f, + 0xd4, 0xe4, 0xaf, 0x67, 0xe3, 0xea, 0x01, 0x5b, 0x2a, 0xb6, 0xd4, 0xac, 0x30, 0xa6, 0x17, 0xd9, + 0xf2, 0x63, 0x30, 0xd7, 0xb7, 0xbc, 0x35, 0x5e, 0xd4, 0x9e, 0xe7, 0x29, 0xd1, 0xf3, 0xb4, 0xb9, + 0xee, 0x54, 0x8f, 0xf5, 0xe6, 0x3e, 0x00, 0x00, 0xff, 0xff, 0xbb, 0x4d, 0xbf, 0x42, 0x83, 0x02, + 0x00, 0x00, } func (m *Params) Marshal() (dAtA []byte, err error) { @@ -309,7 +319,7 @@ func (m *Proposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { copy(dAtA[i:], m.Metadata) i = encodeVarintTypes(dAtA, i, uint64(len(m.Metadata))) i-- - dAtA[i] = 0x22 + dAtA[i] = 0x2a } if len(m.PostActions) > 0 { for iNdEx := len(m.PostActions) - 1; iNdEx >= 0; iNdEx-- { @@ -322,7 +332,7 @@ func (m *Proposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintTypes(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x1a + dAtA[i] = 0x22 } } if len(m.PreActions) > 0 { @@ -336,7 +346,7 @@ func (m *Proposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintTypes(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x12 + dAtA[i] = 0x1a } } if len(m.Agent) > 0 { @@ -344,6 +354,13 @@ func (m *Proposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { copy(dAtA[i:], m.Agent) i = encodeVarintTypes(dAtA, i, uint64(len(m.Agent))) i-- + dAtA[i] = 0x12 + } + if len(m.Proposer) > 0 { + i -= len(m.Proposer) + copy(dAtA[i:], m.Proposer) + i = encodeVarintTypes(dAtA, i, uint64(len(m.Proposer))) + i-- dAtA[i] = 0xa } return len(dAtA) - i, nil @@ -391,6 +408,10 @@ func (m *Proposal) Size() (n int) { } var l int _ = l + l = len(m.Proposer) + if l > 0 { + n += 1 + l + sovTypes(uint64(l)) + } l = len(m.Agent) if l > 0 { n += 1 + l + sovTypes(uint64(l)) @@ -603,6 +624,40 @@ func (m *Proposal) Unmarshal(dAtA []byte) error { } switch fieldNum { case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Proposer", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTypes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthTypes + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthTypes + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Proposer = append(m.Proposer[:0], dAtA[iNdEx:postIndex]...) + if m.Proposer == nil { + m.Proposer = []byte{} + } + iNdEx = postIndex + case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Agent", wireType) } @@ -636,7 +691,7 @@ func (m *Proposal) Unmarshal(dAtA []byte) error { m.Agent = []byte{} } iNdEx = postIndex - case 2: + case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field PreActions", wireType) } @@ -670,7 +725,7 @@ func (m *Proposal) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 3: + case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field PostActions", wireType) } @@ -704,7 +759,7 @@ func (m *Proposal) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 4: + case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) } diff --git a/x/escrow/api/andromeda/escrow/v1alpha1/types.pulsar.go b/x/escrow/api/andromeda/escrow/v1alpha1/types.pulsar.go index 320c632..47bcf11 100644 --- a/x/escrow/api/andromeda/escrow/v1alpha1/types.pulsar.go +++ b/x/escrow/api/andromeda/escrow/v1alpha1/types.pulsar.go @@ -839,110 +839,111 @@ func (x *fastReflection_Agent) ProtoMethods() *protoiface.Methods { } } -var _ protoreflect.List = (*_Proposal_2_list)(nil) +var _ protoreflect.List = (*_Proposal_3_list)(nil) -type _Proposal_2_list struct { +type _Proposal_3_list struct { list *[]*anypb.Any } -func (x *_Proposal_2_list) Len() int { +func (x *_Proposal_3_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_Proposal_2_list) Get(i int) protoreflect.Value { +func (x *_Proposal_3_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } -func (x *_Proposal_2_list) Set(i int, value protoreflect.Value) { +func (x *_Proposal_3_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*anypb.Any) (*x.list)[i] = concreteValue } -func (x *_Proposal_2_list) Append(value protoreflect.Value) { +func (x *_Proposal_3_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*anypb.Any) *x.list = append(*x.list, concreteValue) } -func (x *_Proposal_2_list) AppendMutable() protoreflect.Value { +func (x *_Proposal_3_list) AppendMutable() protoreflect.Value { v := new(anypb.Any) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_Proposal_2_list) Truncate(n int) { +func (x *_Proposal_3_list) Truncate(n int) { for i := n; i < len(*x.list); i++ { (*x.list)[i] = nil } *x.list = (*x.list)[:n] } -func (x *_Proposal_2_list) NewElement() protoreflect.Value { +func (x *_Proposal_3_list) NewElement() protoreflect.Value { v := new(anypb.Any) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_Proposal_2_list) IsValid() bool { +func (x *_Proposal_3_list) IsValid() bool { return x.list != nil } -var _ protoreflect.List = (*_Proposal_3_list)(nil) +var _ protoreflect.List = (*_Proposal_4_list)(nil) -type _Proposal_3_list struct { +type _Proposal_4_list struct { list *[]*anypb.Any } -func (x *_Proposal_3_list) Len() int { +func (x *_Proposal_4_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_Proposal_3_list) Get(i int) protoreflect.Value { +func (x *_Proposal_4_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } -func (x *_Proposal_3_list) Set(i int, value protoreflect.Value) { +func (x *_Proposal_4_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*anypb.Any) (*x.list)[i] = concreteValue } -func (x *_Proposal_3_list) Append(value protoreflect.Value) { +func (x *_Proposal_4_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*anypb.Any) *x.list = append(*x.list, concreteValue) } -func (x *_Proposal_3_list) AppendMutable() protoreflect.Value { +func (x *_Proposal_4_list) AppendMutable() protoreflect.Value { v := new(anypb.Any) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_Proposal_3_list) Truncate(n int) { +func (x *_Proposal_4_list) Truncate(n int) { for i := n; i < len(*x.list); i++ { (*x.list)[i] = nil } *x.list = (*x.list)[:n] } -func (x *_Proposal_3_list) NewElement() protoreflect.Value { +func (x *_Proposal_4_list) NewElement() protoreflect.Value { v := new(anypb.Any) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_Proposal_3_list) IsValid() bool { +func (x *_Proposal_4_list) IsValid() bool { return x.list != nil } var ( md_Proposal protoreflect.MessageDescriptor + fd_Proposal_proposer protoreflect.FieldDescriptor fd_Proposal_agent protoreflect.FieldDescriptor fd_Proposal_pre_actions protoreflect.FieldDescriptor fd_Proposal_post_actions protoreflect.FieldDescriptor @@ -952,6 +953,7 @@ var ( func init() { file_andromeda_escrow_v1alpha1_types_proto_init() md_Proposal = File_andromeda_escrow_v1alpha1_types_proto.Messages().ByName("Proposal") + fd_Proposal_proposer = md_Proposal.Fields().ByName("proposer") fd_Proposal_agent = md_Proposal.Fields().ByName("agent") fd_Proposal_pre_actions = md_Proposal.Fields().ByName("pre_actions") fd_Proposal_post_actions = md_Proposal.Fields().ByName("post_actions") @@ -1023,6 +1025,12 @@ func (x *fastReflection_Proposal) Interface() protoreflect.ProtoMessage { // While iterating, mutating operations may only be performed // on the current field descriptor. func (x *fastReflection_Proposal) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.Proposer) != 0 { + value := protoreflect.ValueOfBytes(x.Proposer) + if !f(fd_Proposal_proposer, value) { + return + } + } if len(x.Agent) != 0 { value := protoreflect.ValueOfBytes(x.Agent) if !f(fd_Proposal_agent, value) { @@ -1030,13 +1038,13 @@ func (x *fastReflection_Proposal) Range(f func(protoreflect.FieldDescriptor, pro } } if len(x.PreActions) != 0 { - value := protoreflect.ValueOfList(&_Proposal_2_list{list: &x.PreActions}) + value := protoreflect.ValueOfList(&_Proposal_3_list{list: &x.PreActions}) if !f(fd_Proposal_pre_actions, value) { return } } if len(x.PostActions) != 0 { - value := protoreflect.ValueOfList(&_Proposal_3_list{list: &x.PostActions}) + value := protoreflect.ValueOfList(&_Proposal_4_list{list: &x.PostActions}) if !f(fd_Proposal_post_actions, value) { return } @@ -1062,6 +1070,8 @@ func (x *fastReflection_Proposal) Range(f func(protoreflect.FieldDescriptor, pro // a repeated field is populated if it is non-empty. func (x *fastReflection_Proposal) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { + case "andromeda.escrow.v1alpha1.Proposal.proposer": + return len(x.Proposer) != 0 case "andromeda.escrow.v1alpha1.Proposal.agent": return len(x.Agent) != 0 case "andromeda.escrow.v1alpha1.Proposal.pre_actions": @@ -1086,6 +1096,8 @@ func (x *fastReflection_Proposal) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Proposal) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { + case "andromeda.escrow.v1alpha1.Proposal.proposer": + x.Proposer = nil case "andromeda.escrow.v1alpha1.Proposal.agent": x.Agent = nil case "andromeda.escrow.v1alpha1.Proposal.pre_actions": @@ -1110,20 +1122,23 @@ func (x *fastReflection_Proposal) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_Proposal) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { + case "andromeda.escrow.v1alpha1.Proposal.proposer": + value := x.Proposer + return protoreflect.ValueOfBytes(value) case "andromeda.escrow.v1alpha1.Proposal.agent": value := x.Agent return protoreflect.ValueOfBytes(value) case "andromeda.escrow.v1alpha1.Proposal.pre_actions": if len(x.PreActions) == 0 { - return protoreflect.ValueOfList(&_Proposal_2_list{}) + return protoreflect.ValueOfList(&_Proposal_3_list{}) } - listValue := &_Proposal_2_list{list: &x.PreActions} + listValue := &_Proposal_3_list{list: &x.PreActions} return protoreflect.ValueOfList(listValue) case "andromeda.escrow.v1alpha1.Proposal.post_actions": if len(x.PostActions) == 0 { - return protoreflect.ValueOfList(&_Proposal_3_list{}) + return protoreflect.ValueOfList(&_Proposal_4_list{}) } - listValue := &_Proposal_3_list{list: &x.PostActions} + listValue := &_Proposal_4_list{list: &x.PostActions} return protoreflect.ValueOfList(listValue) case "andromeda.escrow.v1alpha1.Proposal.metadata": value := x.Metadata @@ -1148,15 +1163,17 @@ func (x *fastReflection_Proposal) Get(descriptor protoreflect.FieldDescriptor) p // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Proposal) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { + case "andromeda.escrow.v1alpha1.Proposal.proposer": + x.Proposer = value.Bytes() case "andromeda.escrow.v1alpha1.Proposal.agent": x.Agent = value.Bytes() case "andromeda.escrow.v1alpha1.Proposal.pre_actions": lv := value.List() - clv := lv.(*_Proposal_2_list) + clv := lv.(*_Proposal_3_list) x.PreActions = *clv.list case "andromeda.escrow.v1alpha1.Proposal.post_actions": lv := value.List() - clv := lv.(*_Proposal_3_list) + clv := lv.(*_Proposal_4_list) x.PostActions = *clv.list case "andromeda.escrow.v1alpha1.Proposal.metadata": x.Metadata = value.Interface().(string) @@ -1184,14 +1201,16 @@ func (x *fastReflection_Proposal) Mutable(fd protoreflect.FieldDescriptor) proto if x.PreActions == nil { x.PreActions = []*anypb.Any{} } - value := &_Proposal_2_list{list: &x.PreActions} + value := &_Proposal_3_list{list: &x.PreActions} return protoreflect.ValueOfList(value) case "andromeda.escrow.v1alpha1.Proposal.post_actions": if x.PostActions == nil { x.PostActions = []*anypb.Any{} } - value := &_Proposal_3_list{list: &x.PostActions} + value := &_Proposal_4_list{list: &x.PostActions} return protoreflect.ValueOfList(value) + case "andromeda.escrow.v1alpha1.Proposal.proposer": + panic(fmt.Errorf("field proposer of message andromeda.escrow.v1alpha1.Proposal is not mutable")) case "andromeda.escrow.v1alpha1.Proposal.agent": panic(fmt.Errorf("field agent of message andromeda.escrow.v1alpha1.Proposal is not mutable")) case "andromeda.escrow.v1alpha1.Proposal.metadata": @@ -1209,14 +1228,16 @@ func (x *fastReflection_Proposal) Mutable(fd protoreflect.FieldDescriptor) proto // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_Proposal) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { + case "andromeda.escrow.v1alpha1.Proposal.proposer": + return protoreflect.ValueOfBytes(nil) case "andromeda.escrow.v1alpha1.Proposal.agent": return protoreflect.ValueOfBytes(nil) case "andromeda.escrow.v1alpha1.Proposal.pre_actions": list := []*anypb.Any{} - return protoreflect.ValueOfList(&_Proposal_2_list{list: &list}) + return protoreflect.ValueOfList(&_Proposal_3_list{list: &list}) case "andromeda.escrow.v1alpha1.Proposal.post_actions": list := []*anypb.Any{} - return protoreflect.ValueOfList(&_Proposal_3_list{list: &list}) + return protoreflect.ValueOfList(&_Proposal_4_list{list: &list}) case "andromeda.escrow.v1alpha1.Proposal.metadata": return protoreflect.ValueOfString("") default: @@ -1288,6 +1309,10 @@ func (x *fastReflection_Proposal) ProtoMethods() *protoiface.Methods { var n int var l int _ = l + l = len(x.Proposer) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } l = len(x.Agent) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) @@ -1342,7 +1367,7 @@ func (x *fastReflection_Proposal) ProtoMethods() *protoiface.Methods { copy(dAtA[i:], x.Metadata) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Metadata))) i-- - dAtA[i] = 0x22 + dAtA[i] = 0x2a } if len(x.PostActions) > 0 { for iNdEx := len(x.PostActions) - 1; iNdEx >= 0; iNdEx-- { @@ -1357,7 +1382,7 @@ func (x *fastReflection_Proposal) ProtoMethods() *protoiface.Methods { copy(dAtA[i:], encoded) i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- - dAtA[i] = 0x1a + dAtA[i] = 0x22 } } if len(x.PreActions) > 0 { @@ -1373,7 +1398,7 @@ func (x *fastReflection_Proposal) ProtoMethods() *protoiface.Methods { copy(dAtA[i:], encoded) i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- - dAtA[i] = 0x12 + dAtA[i] = 0x1a } } if len(x.Agent) > 0 { @@ -1381,6 +1406,13 @@ func (x *fastReflection_Proposal) ProtoMethods() *protoiface.Methods { copy(dAtA[i:], x.Agent) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Agent))) i-- + dAtA[i] = 0x12 + } + if len(x.Proposer) > 0 { + i -= len(x.Proposer) + copy(dAtA[i:], x.Proposer) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Proposer))) + i-- dAtA[i] = 0xa } if input.Buf != nil { @@ -1433,6 +1465,40 @@ func (x *fastReflection_Proposal) ProtoMethods() *protoiface.Methods { } switch fieldNum { case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Proposer", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Proposer = append(x.Proposer[:0], dAtA[iNdEx:postIndex]...) + if x.Proposer == nil { + x.Proposer = []byte{} + } + iNdEx = postIndex + case 2: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Agent", wireType) } @@ -1466,7 +1532,7 @@ func (x *fastReflection_Proposal) ProtoMethods() *protoiface.Methods { x.Agent = []byte{} } iNdEx = postIndex - case 2: + case 3: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PreActions", wireType) } @@ -1500,7 +1566,7 @@ func (x *fastReflection_Proposal) ProtoMethods() *protoiface.Methods { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex - case 3: + case 4: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PostActions", wireType) } @@ -1534,7 +1600,7 @@ func (x *fastReflection_Proposal) ProtoMethods() *protoiface.Methods { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex - case 4: + case 5: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) } @@ -1694,14 +1760,16 @@ type Proposal struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // the address of the proposer + Proposer []byte `protobuf:"bytes,1,opt,name=proposer,proto3" json:"proposer,omitempty"` // the address of the agent in charge - Agent []byte `protobuf:"bytes,1,opt,name=agent,proto3" json:"agent,omitempty"` + Agent []byte `protobuf:"bytes,2,opt,name=agent,proto3" json:"agent,omitempty"` // the messages which has been executed on the submission - PreActions []*anypb.Any `protobuf:"bytes,2,rep,name=pre_actions,json=preActions,proto3" json:"pre_actions,omitempty"` + PreActions []*anypb.Any `protobuf:"bytes,3,rep,name=pre_actions,json=preActions,proto3" json:"pre_actions,omitempty"` // the messages which will be executed after the actions included in Msg/Exec - PostActions []*anypb.Any `protobuf:"bytes,3,rep,name=post_actions,json=postActions,proto3" json:"post_actions,omitempty"` + PostActions []*anypb.Any `protobuf:"bytes,4,rep,name=post_actions,json=postActions,proto3" json:"post_actions,omitempty"` // any arbitrary metadata attached to the proposal - Metadata string `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"` + Metadata string `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"` } func (x *Proposal) Reset() { @@ -1724,6 +1792,13 @@ func (*Proposal) Descriptor() ([]byte, []int) { return file_andromeda_escrow_v1alpha1_types_proto_rawDescGZIP(), []int{2} } +func (x *Proposal) GetProposer() []byte { + if x != nil { + return x.Proposer + } + return nil +} + func (x *Proposal) GetAgent() []byte { if x != nil { return x.Agent @@ -1766,33 +1841,34 @@ var file_andromeda_escrow_v1alpha1_types_proto_rawDesc = []byte{ 0x20, 0x01, 0x28, 0x04, 0x52, 0x11, 0x6d, 0x61, 0x78, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x4c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x22, 0x21, 0x0a, 0x05, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0c, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0xac, 0x01, 0x0a, 0x08, 0x50, - 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x35, 0x0a, - 0x0b, 0x70, 0x72, 0x65, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0a, 0x70, 0x72, 0x65, 0x41, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x37, 0x0a, 0x0c, 0x70, 0x6f, 0x73, 0x74, 0x5f, 0x61, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, - 0x52, 0x0b, 0x70, 0x6f, 0x73, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1a, 0x0a, - 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x42, 0xdf, 0x01, 0x0a, 0x1d, 0x63, 0x6f, - 0x6d, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, - 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x0a, 0x54, 0x79, 0x70, - 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2c, 0x61, 0x70, 0x69, 0x2f, 0x61, - 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2f, - 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x3b, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x76, - 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x45, 0x58, 0xaa, 0x02, 0x19, - 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, - 0x2e, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xca, 0x02, 0x19, 0x41, 0x6e, 0x64, 0x72, - 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x5c, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x5c, 0x56, 0x31, 0x61, - 0x6c, 0x70, 0x68, 0x61, 0x31, 0xe2, 0x02, 0x25, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, + 0x0c, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0xc8, 0x01, 0x0a, 0x08, 0x50, + 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, + 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, + 0x73, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x35, 0x0a, 0x0b, 0x70, 0x72, 0x65, + 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0a, 0x70, 0x72, 0x65, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x12, 0x37, 0x0a, 0x0c, 0x70, 0x6f, 0x73, 0x74, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, 0x70, 0x6f, + 0x73, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0x42, 0xdf, 0x01, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x6e, + 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x0a, 0x54, 0x79, 0x70, 0x65, 0x73, 0x50, 0x72, + 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2c, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x64, 0x72, 0x6f, + 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2f, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x3b, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x45, 0x58, 0xaa, 0x02, 0x19, 0x41, 0x6e, 0x64, 0x72, + 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x56, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0xca, 0x02, 0x19, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x5c, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, - 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1b, - 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x3a, 0x3a, 0x45, 0x73, 0x63, 0x72, 0x6f, - 0x77, 0x3a, 0x3a, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x33, + 0x31, 0xe2, 0x02, 0x25, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x5c, 0x45, 0x73, + 0x63, 0x72, 0x6f, 0x77, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x5c, 0x47, 0x50, + 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1b, 0x41, 0x6e, 0x64, 0x72, + 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x3a, 0x3a, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x3a, 0x3a, 0x56, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/x/escrow/keeper/internal/exec.go b/x/escrow/keeper/internal/exec.go index a12f1af..68cf233 100644 --- a/x/escrow/keeper/internal/exec.go +++ b/x/escrow/keeper/internal/exec.go @@ -12,13 +12,13 @@ import ( ) func (k Keeper) Exec(ctx context.Context, id uint64, _, agent sdk.AccAddress, actions []*codectypes.Any) error { - proposer, proposal, err := k.GetProposal(ctx, id) + proposal, err := k.GetProposal(ctx, id) if err != nil { return err } if !agent.Equals(sdk.AccAddress(proposal.Agent)) { - return escrowv1alpha1.ErrPermissionDenied.Wrap("agent differs") + return escrowv1alpha1.ErrPermissionDenied.Wrap("agent differs from proposal's") } for _, phase := range []struct { @@ -39,7 +39,7 @@ func (k Keeper) Exec(ctx context.Context, id uint64, _, agent sdk.AccAddress, ac } } - return k.removeProposal(ctx, id, proposer) + return k.removeProposal(ctx, id) } func (k Keeper) executeActions(ctx context.Context, actions []*codectypes.Any) error { diff --git a/x/escrow/keeper/internal/exec_test.go b/x/escrow/keeper/internal/exec_test.go index 833be3a..9ec1378 100644 --- a/x/escrow/keeper/internal/exec_test.go +++ b/x/escrow/keeper/internal/exec_test.go @@ -29,10 +29,10 @@ func (s *KeeperTestSuite) TestExec() { return err } - _, _, err = s.keeper.GetProposal(s.ctx, subject.id) + _, err = s.keeper.GetProposal(s.ctx, subject.id) s.Assert().NoError(err) - _, _, err = s.keeper.GetProposal(ctx, subject.id) + _, err = s.keeper.GetProposal(ctx, subject.id) s.Require().Error(err) return nil diff --git a/x/escrow/keeper/internal/genesis.go b/x/escrow/keeper/internal/genesis.go index ce11f50..81e1c71 100644 --- a/x/escrow/keeper/internal/genesis.go +++ b/x/escrow/keeper/internal/genesis.go @@ -243,7 +243,8 @@ func (k Keeper) initGenesisProposal(ctx context.Context, proposal *escrowv1alpha return errors.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "agent") } - return k.setProposal(ctx, proposal.Id, proposer, &escrowv1alpha1.Proposal{ + return k.setProposal(ctx, proposal.Id, &escrowv1alpha1.Proposal{ + Proposer: proposer, Agent: agent, PreActions: proposal.PreActions, PostActions: proposal.PostActions, @@ -325,8 +326,8 @@ func (k Keeper) exportGenesisAgents(ctx context.Context) ([]*escrowv1alpha1.Gene func (k Keeper) exportGenesisProposals(ctx context.Context) ([]*escrowv1alpha1.GenesisState_Proposal, error) { proposals := []*escrowv1alpha1.GenesisState_Proposal{} - if err := k.iterateProposals(ctx, func(id uint64, proposer sdk.AccAddress, proposal escrowv1alpha1.Proposal) error { - proposerStr, err := k.addressBytesToString(proposer) + if err := k.iterateProposals(ctx, func(id uint64, proposal escrowv1alpha1.Proposal) error { + proposerStr, err := k.addressBytesToString(proposal.Proposer) if err != nil { return errors.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "proposer") } diff --git a/x/escrow/keeper/internal/genesis_test.go b/x/escrow/keeper/internal/genesis_test.go index 78d0de1..7018803 100644 --- a/x/escrow/keeper/internal/genesis_test.go +++ b/x/escrow/keeper/internal/genesis_test.go @@ -642,16 +642,14 @@ func TestInitExportGenesisProposals(t *testing.T) { } for i, proposal := range subject { - proposerBefore, proposalBefore, err := k.GetProposal(ctxBefore, proposal.Id) + proposalBefore, err := k.GetProposal(ctxBefore, proposal.Id) assert.Error(t, err, i) - assert.Nil(t, proposerBefore, i) assert.Nil(t, proposalBefore, i) - proposerAfter, proposalAfter, err := k.GetProposal(ctxAfter, proposal.Id) + proposalAfter, err := k.GetProposal(ctxAfter, proposal.Id) assert.NoError(t, err, i) - assert.NotNil(t, proposerAfter, i) assert.NotNil(t, proposalAfter, i) - assert.Equal(t, proposal.Proposer, addressBytesToString(proposerAfter), i) + assert.Equal(t, proposal.Proposer, addressBytesToString(proposalAfter.Proposer), i) assert.Equal(t, proposal.Agent, addressBytesToString(proposalAfter.Agent), i) assert.Equal(t, proposal.PreActions, proposalAfter.PreActions, i) assert.Equal(t, proposal.PostActions, proposalAfter.PostActions, i) diff --git a/x/escrow/keeper/internal/grpc_query.go b/x/escrow/keeper/internal/grpc_query.go index 0ac76da..9ee7f16 100644 --- a/x/escrow/keeper/internal/grpc_query.go +++ b/x/escrow/keeper/internal/grpc_query.go @@ -3,7 +3,6 @@ package internal import ( "context" - "cosmossdk.io/collections" "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" @@ -118,12 +117,12 @@ func (s queryServer) Proposal(ctx context.Context, req *escrowv1alpha1.QueryProp return nil, escrowv1alpha1.ErrUnimplemented.Wrap("nil proposal") } - proposer, proposal, err := s.keeper.GetProposal(ctx, req.Proposal) + proposal, err := s.keeper.GetProposal(ctx, req.Proposal) if err != nil { return nil, err } - proposerStr, err := s.keeper.addressBytesToString(proposer) + proposerStr, err := s.keeper.addressBytesToString(proposal.Proposer) if err != nil { return nil, errors.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "proposer") } @@ -150,17 +149,16 @@ func (s queryServer) Proposals(ctx context.Context, req *escrowv1alpha1.QueryPro return nil, errNilRequest } - proposals, pageRes, err := query.CollectionPaginate(ctx, s.keeper.proposals, req.Pagination, func(key collections.Pair[sdk.AccAddress, uint64], value escrowv1alpha1.Proposal) (*escrowv1alpha1.QueryProposalsResponse_Proposal, error) { - proposer := key.K1() - id := key.K2() + proposals, pageRes, err := query.CollectionPaginate(ctx, s.keeper.proposals, req.Pagination, func(key uint64, value escrowv1alpha1.Proposal) (*escrowv1alpha1.QueryProposalsResponse_Proposal, error) { + id := key proposal := value - proposerStr, err := s.keeper.addressBytesToString(proposer) + proposerStr, err := s.keeper.addressBytesToString(proposal.Proposer) if err != nil { return nil, errors.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "proposer") } - agentStr, err := s.keeper.addressBytesToString(value.Agent) + agentStr, err := s.keeper.addressBytesToString(proposal.Agent) if err != nil { return nil, errors.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "agent") } diff --git a/x/escrow/keeper/internal/keeper.go b/x/escrow/keeper/internal/keeper.go index b7e9309..9a7d442 100644 --- a/x/escrow/keeper/internal/keeper.go +++ b/x/escrow/keeper/internal/keeper.go @@ -30,7 +30,7 @@ type Keeper struct { agents *collections.IndexedMap[sdk.AccAddress, escrowv1alpha1.Agent, agentsIndexes] nextProposal collections.Sequence - proposals *collections.IndexedMap[collections.Pair[sdk.AccAddress, uint64], escrowv1alpha1.Proposal, proposalsIndexes] + proposals *collections.IndexedMap[uint64, escrowv1alpha1.Proposal, proposalsIndexes] } func NewKeeper( @@ -56,7 +56,7 @@ func NewKeeper( ), nextProposal: collections.NewSequence(sb, proposalsSeqKey, "next_proposal"), proposals: collections.NewIndexedMap(sb, proposalsKeyPrefix, "proposals", - collections.PairKeyCodec(sdk.AccAddressKey, collections.Uint64Key), + collections.Uint64Key, codec.CollValue[escrowv1alpha1.Proposal](cdc), newProposalsIndexes(sb), ), diff --git a/x/escrow/keeper/internal/keys.go b/x/escrow/keeper/internal/keys.go index 8e57b85..b4408be 100644 --- a/x/escrow/keeper/internal/keys.go +++ b/x/escrow/keeper/internal/keys.go @@ -16,9 +16,10 @@ var ( agentsKeyPrefix = collections.NewPrefix(0x11) agentsKeyCreatorPrefix = collections.NewPrefix(0x12) - proposalsSeqKey = collections.NewPrefix(0x20) - proposalsKeyPrefix = collections.NewPrefix(0x21) - proposalsKeyIDPrefix = collections.NewPrefix(0x22) + proposalsSeqKey = collections.NewPrefix(0x20) + proposalsKeyPrefix = collections.NewPrefix(0x21) + proposalsKeyProposerPrefix = collections.NewPrefix(0x22) + proposalsKeyAgentPrefix = collections.NewPrefix(0x23) ) func newAgentsIndexes(sb *collections.SchemaBuilder) agentsIndexes { @@ -37,34 +38,47 @@ func newAgentsIndexes(sb *collections.SchemaBuilder) agentsIndexes { type agentsIndexes struct { creator *indexes.Multi[sdk.AccAddress, sdk.AccAddress, escrowv1alpha1.Agent] + agent *indexes.Unique[sdk.AccAddress, sdk.AccAddress, escrowv1alpha1.Agent] } func (a agentsIndexes) IndexesList() []collections.Index[sdk.AccAddress, escrowv1alpha1.Agent] { return []collections.Index[sdk.AccAddress, escrowv1alpha1.Agent]{ a.creator, + a.agent, } } func newProposalsIndexes(sb *collections.SchemaBuilder) proposalsIndexes { return proposalsIndexes{ - id: indexes.NewUnique( - sb, proposalsKeyIDPrefix, "proposals_by_id", + proposer: indexes.NewMulti( + sb, proposalsKeyProposerPrefix, "proposals_by_proposer", + sdk.AccAddressKey, + collections.Uint64Key, + func(_ uint64, value escrowv1alpha1.Proposal) (sdk.AccAddress, error) { + proposer := value.Proposer + return proposer, nil + }, + ), + agent: indexes.NewUnique( + sb, proposalsKeyAgentPrefix, "proposals_by_agent", + sdk.AccAddressKey, collections.Uint64Key, - collections.PairKeyCodec(sdk.AccAddressKey, collections.Uint64Key), - func(key collections.Pair[sdk.AccAddress, uint64], _ escrowv1alpha1.Proposal) (uint64, error) { - id := key.K2() - return id, nil + func(_ uint64, value escrowv1alpha1.Proposal) (sdk.AccAddress, error) { + agent := value.Agent + return agent, nil }, ), } } type proposalsIndexes struct { - id *indexes.Unique[uint64, collections.Pair[sdk.AccAddress, uint64], escrowv1alpha1.Proposal] + proposer *indexes.Multi[sdk.AccAddress, uint64, escrowv1alpha1.Proposal] + agent *indexes.Unique[sdk.AccAddress, uint64, escrowv1alpha1.Proposal] } -func (a proposalsIndexes) IndexesList() []collections.Index[collections.Pair[sdk.AccAddress, uint64], escrowv1alpha1.Proposal] { - return []collections.Index[collections.Pair[sdk.AccAddress, uint64], escrowv1alpha1.Proposal]{ - a.id, +func (a proposalsIndexes) IndexesList() []collections.Index[uint64, escrowv1alpha1.Proposal] { + return []collections.Index[uint64, escrowv1alpha1.Proposal]{ + a.proposer, + a.agent, } } diff --git a/x/escrow/keeper/internal/proposal.go b/x/escrow/keeper/internal/proposal.go index 63370f8..f4dc205 100644 --- a/x/escrow/keeper/internal/proposal.go +++ b/x/escrow/keeper/internal/proposal.go @@ -31,7 +31,8 @@ func (k Keeper) SubmitProposal(ctx context.Context, proposer, agent sdk.AccAddre return 0, escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()) } - if err := k.setProposal(ctx, id, proposer, &escrowv1alpha1.Proposal{ + if err := k.setProposal(ctx, id, &escrowv1alpha1.Proposal{ + Proposer: proposer, Agent: agent, PreActions: preActions, PostActions: postActions, @@ -96,8 +97,8 @@ func (k Keeper) validateActions(actions []*codectypes.Any, signers []sdk.AccAddr return nil } -func (k Keeper) getProposalKey(ctx context.Context, id uint64) (*collections.Pair[sdk.AccAddress, uint64], error) { - key, err := k.proposals.Indexes.id.MatchExact(ctx, id) +func (k Keeper) GetProposal(ctx context.Context, id uint64) (*escrowv1alpha1.Proposal, error) { + proposal, err := k.proposals.Get(ctx, id) if err != nil { if !errors.IsOf(err, collections.ErrNotFound) { return nil, escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()) @@ -105,38 +106,21 @@ func (k Keeper) getProposalKey(ctx context.Context, id uint64) (*collections.Pai return nil, escrowv1alpha1.ErrProposalNotFound.Wrap(err.Error()) } - - return &key, nil -} - -func (k Keeper) GetProposal(ctx context.Context, id uint64) (sdk.AccAddress, *escrowv1alpha1.Proposal, error) { - key, err := k.getProposalKey(ctx, id) - if err != nil { - return nil, nil, err - } - - proposer := key.K1() - - proposal, err := k.proposals.Get(ctx, *key) - if err != nil { - return nil, nil, escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()) - } - k.fixActions(&proposal) - return proposer, &proposal, nil + return &proposal, nil } -func (k Keeper) setProposal(ctx context.Context, id uint64, proposer sdk.AccAddress, proposal *escrowv1alpha1.Proposal) error { - if err := k.proposals.Set(ctx, collections.Join(proposer, id), *proposal); err != nil { +func (k Keeper) setProposal(ctx context.Context, id uint64, proposal *escrowv1alpha1.Proposal) error { + if err := k.proposals.Set(ctx, id, *proposal); err != nil { return escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()) } return nil } -func (k Keeper) removeProposal(ctx context.Context, id uint64, proposer sdk.AccAddress) error { - if err := k.proposals.Remove(ctx, collections.Join(proposer, id)); err != nil { +func (k Keeper) removeProposal(ctx context.Context, id uint64) error { + if err := k.proposals.Remove(ctx, id); err != nil { return escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()) } @@ -153,7 +137,7 @@ func (k Keeper) fixActions(proposal *escrowv1alpha1.Proposal) { } } -func (k Keeper) iterateProposals(ctx context.Context, fn func(id uint64, proposer sdk.AccAddress, proposal escrowv1alpha1.Proposal) error) error { +func (k Keeper) iterateProposals(ctx context.Context, fn func(id uint64, proposal escrowv1alpha1.Proposal) error) error { iter, err := k.proposals.Iterate(ctx, nil) if err != nil { return escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()) @@ -171,12 +155,11 @@ func (k Keeper) iterateProposals(ctx context.Context, fn func(id uint64, propose return escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()) } - proposer := key.K1() - id := key.K2() + id := key proposal := value k.fixActions(&proposal) - if err := fn(id, proposer, proposal); err != nil { + if err := fn(id, proposal); err != nil { return err } } diff --git a/x/escrow/keeper/internal/proposal_test.go b/x/escrow/keeper/internal/proposal_test.go index bb1a440..2c1673b 100644 --- a/x/escrow/keeper/internal/proposal_test.go +++ b/x/escrow/keeper/internal/proposal_test.go @@ -32,16 +32,14 @@ func (s *KeeperTestSuite) TestSubmitProposal() { } s.NotZero(id) - proposerBefore, proposalBefore, err := s.keeper.GetProposal(s.ctx, id) + proposalBefore, err := s.keeper.GetProposal(s.ctx, id) s.Assert().Error(err) - s.Assert().Nil(proposerBefore) s.Assert().Nil(proposalBefore) - proposerAfter, proposalAfter, err := s.keeper.GetProposal(ctx, id) + proposalAfter, err := s.keeper.GetProposal(ctx, id) s.Require().NoError(err) - s.Require().NotNil(proposerAfter) s.Require().NotNil(proposalAfter) - s.Require().Equal(subject.proposer, proposerAfter) + s.Require().Equal(subject.proposer, sdk.AccAddress(proposalAfter.Proposer)) s.Require().Equal(subject.agent, sdk.AccAddress(proposalAfter.Agent)) s.Require().Equal(subject.preActions, proposalAfter.PreActions) s.Require().Equal(subject.postActions, proposalAfter.PostActions) diff --git a/x/escrow/proto/andromeda/escrow/v1alpha1/types.proto b/x/escrow/proto/andromeda/escrow/v1alpha1/types.proto index 73ac02f..ae6cd38 100644 --- a/x/escrow/proto/andromeda/escrow/v1alpha1/types.proto +++ b/x/escrow/proto/andromeda/escrow/v1alpha1/types.proto @@ -17,15 +17,18 @@ message Agent { // Proposal defines a proposal. message Proposal { + // the address of the proposer + bytes proposer = 1; + // the address of the agent in charge - bytes agent = 1; + bytes agent = 2; // the messages which has been executed on the submission - repeated google.protobuf.Any pre_actions = 2; + repeated google.protobuf.Any pre_actions = 3; // the messages which will be executed after the actions included in Msg/Exec - repeated google.protobuf.Any post_actions = 3; + repeated google.protobuf.Any post_actions = 4; // any arbitrary metadata attached to the proposal - string metadata = 4; + string metadata = 5; } From e05a07ed40e2e06429df52809003361f23625da3 Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Mon, 29 Jan 2024 13:22:51 +0000 Subject: [PATCH 35/62] Remove proposal id --- .../andromeda/escrow/v1alpha1/event.pb.go | 194 ++--- .../andromeda/escrow/v1alpha1/genesis.pb.go | 197 ++--- .../andromeda/escrow/v1alpha1/query.pb.go | 328 ++++---- .../andromeda/escrow/v1alpha1/query.pb.gw.go | 18 +- x/escrow/andromeda/escrow/v1alpha1/tx.pb.go | 173 ++-- .../andromeda/escrow/v1alpha1/types.pb.go | 121 +-- .../andromeda/escrow/v1alpha1/event.pulsar.go | 337 ++++---- .../escrow/v1alpha1/genesis.pulsar.go | 412 ++++------ .../andromeda/escrow/v1alpha1/query.pulsar.go | 742 ++++++++---------- .../andromeda/escrow/v1alpha1/tx.pulsar.go | 279 ++----- .../andromeda/escrow/v1alpha1/types.pulsar.go | 206 ++--- x/escrow/keeper/internal/exec.go | 10 +- x/escrow/keeper/internal/exec_test.go | 27 +- x/escrow/keeper/internal/genesis.go | 77 +- x/escrow/keeper/internal/genesis_test.go | 109 +-- x/escrow/keeper/internal/grpc_query.go | 34 +- x/escrow/keeper/internal/grpc_query_test.go | 16 +- x/escrow/keeper/internal/keeper.go | 6 +- x/escrow/keeper/internal/keeper_test.go | 13 +- x/escrow/keeper/internal/keys.go | 29 +- x/escrow/keeper/internal/msg_server.go | 14 +- x/escrow/keeper/internal/msg_server_test.go | 23 +- x/escrow/keeper/internal/proposal.go | 44 +- x/escrow/keeper/internal/proposal_test.go | 16 +- .../andromeda/escrow/v1alpha1/event.proto | 23 +- .../andromeda/escrow/v1alpha1/genesis.proto | 18 +- .../andromeda/escrow/v1alpha1/query.proto | 32 +- .../proto/andromeda/escrow/v1alpha1/tx.proto | 11 +- .../andromeda/escrow/v1alpha1/types.proto | 9 +- 29 files changed, 1304 insertions(+), 2214 deletions(-) diff --git a/x/escrow/andromeda/escrow/v1alpha1/event.pb.go b/x/escrow/andromeda/escrow/v1alpha1/event.pb.go index 476d6dd..70ee915 100644 --- a/x/escrow/andromeda/escrow/v1alpha1/event.pb.go +++ b/x/escrow/andromeda/escrow/v1alpha1/event.pb.go @@ -83,7 +83,7 @@ func (m *EventUpdateParams) GetMaxMetadataLength() uint64 { type EventCreateAgent struct { // the address of the created agent Agent string `protobuf:"bytes,1,opt,name=agent,proto3" json:"agent,omitempty"` - // the address of the creator + // the address of the account created the agent Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` } @@ -136,18 +136,16 @@ func (m *EventCreateAgent) GetCreator() string { // EventSubmitProposal is emitted on Msg/SubmitProposal. type EventSubmitProposal struct { - // the identifier of the proposal - Proposal uint64 `protobuf:"varint,1,opt,name=proposal,proto3" json:"proposal,omitempty"` // the address of the proposer - Proposer string `protobuf:"bytes,2,opt,name=proposer,proto3" json:"proposer,omitempty"` + Proposer string `protobuf:"bytes,1,opt,name=proposer,proto3" json:"proposer,omitempty"` // the address of the agent in charge - Agent string `protobuf:"bytes,3,opt,name=agent,proto3" json:"agent,omitempty"` + Agent string `protobuf:"bytes,2,opt,name=agent,proto3" json:"agent,omitempty"` // the messages which has been executed on the submission - PreActions []*types.Any `protobuf:"bytes,4,rep,name=pre_actions,json=preActions,proto3" json:"pre_actions,omitempty"` + PreActions []*types.Any `protobuf:"bytes,3,rep,name=pre_actions,json=preActions,proto3" json:"pre_actions,omitempty"` // the messages which will be executed after the actions included in Msg/Exec - PostActions []*types.Any `protobuf:"bytes,5,rep,name=post_actions,json=postActions,proto3" json:"post_actions,omitempty"` + PostActions []*types.Any `protobuf:"bytes,4,rep,name=post_actions,json=postActions,proto3" json:"post_actions,omitempty"` // any arbitrary metadata attached to the proposal - Metadata string `protobuf:"bytes,6,opt,name=metadata,proto3" json:"metadata,omitempty"` + Metadata string `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"` } func (m *EventSubmitProposal) Reset() { *m = EventSubmitProposal{} } @@ -183,13 +181,6 @@ func (m *EventSubmitProposal) XXX_DiscardUnknown() { var xxx_messageInfo_EventSubmitProposal proto.InternalMessageInfo -func (m *EventSubmitProposal) GetProposal() uint64 { - if m != nil { - return m.Proposal - } - return 0 -} - func (m *EventSubmitProposal) GetProposer() string { if m != nil { return m.Proposer @@ -227,10 +218,10 @@ func (m *EventSubmitProposal) GetMetadata() string { // EventExec is emitted on Msg/Exec. type EventExec struct { - // the identifier of the proposal - Proposal uint64 `protobuf:"varint,1,opt,name=proposal,proto3" json:"proposal,omitempty"` // the address of the account executed the proposal - Executor string `protobuf:"bytes,2,opt,name=executor,proto3" json:"executor,omitempty"` + Executor string `protobuf:"bytes,1,opt,name=executor,proto3" json:"executor,omitempty"` + // the address of the agent in charge + Agent string `protobuf:"bytes,2,opt,name=agent,proto3" json:"agent,omitempty"` // the messages executed on the execution Actions []*types.Any `protobuf:"bytes,3,rep,name=actions,proto3" json:"actions,omitempty"` } @@ -268,16 +259,16 @@ func (m *EventExec) XXX_DiscardUnknown() { var xxx_messageInfo_EventExec proto.InternalMessageInfo -func (m *EventExec) GetProposal() uint64 { +func (m *EventExec) GetExecutor() string { if m != nil { - return m.Proposal + return m.Executor } - return 0 + return "" } -func (m *EventExec) GetExecutor() string { +func (m *EventExec) GetAgent() string { if m != nil { - return m.Executor + return m.Agent } return "" } @@ -301,39 +292,39 @@ func init() { } var fileDescriptor_499596c4087ad6c5 = []byte{ - // 505 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0x4d, 0x8b, 0xd3, 0x40, - 0x18, 0xc7, 0x9b, 0xb4, 0xfb, 0xd2, 0xa9, 0x07, 0x37, 0xbb, 0x87, 0xb4, 0x62, 0x28, 0x85, 0x85, - 0x5e, 0x9c, 0xb0, 0xeb, 0x1b, 0xd4, 0x53, 0x2a, 0xc5, 0x8b, 0x42, 0xc8, 0xa2, 0x88, 0x14, 0xca, - 0x34, 0x79, 0x4c, 0x0b, 0x4d, 0x26, 0xcc, 0x4c, 0x6b, 0x8b, 0x9f, 0x41, 0xf0, 0x33, 0xe8, 0xcd, - 0xb3, 0x1f, 0x42, 0x3c, 0x2d, 0x9e, 0x3c, 0x4a, 0x7b, 0xf3, 0xea, 0x17, 0x90, 0xcc, 0x74, 0xb2, - 0x7b, 0xe9, 0xcb, 0x6d, 0x1e, 0xfe, 0xbf, 0xff, 0xf3, 0x9f, 0x99, 0x87, 0x07, 0x9d, 0x93, 0x34, - 0x62, 0x34, 0x81, 0x88, 0xb8, 0xc0, 0x43, 0x46, 0x3f, 0xb8, 0xb3, 0x0b, 0x32, 0xc9, 0x46, 0xe4, - 0xc2, 0x85, 0x19, 0xa4, 0x02, 0x67, 0x8c, 0x0a, 0x6a, 0xd5, 0x0b, 0x0c, 0x2b, 0x0c, 0x6b, 0xac, - 0x51, 0x0f, 0x29, 0x4f, 0x28, 0x1f, 0x48, 0xd0, 0x55, 0x85, 0x72, 0x35, 0xea, 0x31, 0xa5, 0xf1, - 0x04, 0x5c, 0x59, 0x0d, 0xa7, 0xef, 0x5d, 0x92, 0x2e, 0x94, 0xd4, 0xfa, 0x88, 0x4e, 0x7a, 0x79, - 0xff, 0xd7, 0x59, 0x44, 0x04, 0xf8, 0x84, 0x91, 0x84, 0x5b, 0x4f, 0x50, 0x95, 0x4c, 0xc5, 0x88, - 0xb2, 0xb1, 0x58, 0xd8, 0x46, 0xd3, 0x68, 0x57, 0xbb, 0xf6, 0xaf, 0xef, 0x0f, 0xce, 0xd6, 0x4d, - 0xbd, 0x28, 0x62, 0xc0, 0xf9, 0x95, 0x60, 0xe3, 0x34, 0x0e, 0x6e, 0x50, 0x0b, 0xa3, 0xd3, 0x84, - 0xcc, 0x07, 0x09, 0x08, 0x12, 0x11, 0x41, 0x06, 0x13, 0x48, 0x63, 0x31, 0xb2, 0xcd, 0xa6, 0xd1, - 0xae, 0x04, 0x27, 0x09, 0x99, 0xbf, 0x5a, 0x2b, 0x2f, 0xa5, 0xd0, 0x9a, 0xa1, 0xbb, 0x32, 0xfc, - 0x39, 0x03, 0x22, 0xc0, 0x8b, 0x21, 0x15, 0x16, 0x46, 0x07, 0x24, 0x3f, 0xec, 0xcc, 0x55, 0x98, - 0x75, 0x89, 0x8e, 0xc2, 0xdc, 0x4e, 0x99, 0xcc, 0xd9, 0xe6, 0xd0, 0x60, 0xeb, 0xab, 0x89, 0x4e, - 0x65, 0xf0, 0xd5, 0x74, 0x98, 0x8c, 0x85, 0xcf, 0x68, 0x46, 0x39, 0x99, 0x58, 0x0d, 0x74, 0x9c, - 0xad, 0xcf, 0x32, 0xbe, 0x12, 0x14, 0xb5, 0xf5, 0x48, 0x6b, 0xb0, 0x3b, 0xa8, 0x20, 0x6f, 0x5e, - 0x53, 0xde, 0xef, 0x35, 0x8f, 0x51, 0x2d, 0x63, 0x30, 0x20, 0xa1, 0x18, 0xd3, 0x94, 0xdb, 0x95, - 0x66, 0xb9, 0x5d, 0xbb, 0x3c, 0xc3, 0x6a, 0x7e, 0x58, 0xcf, 0x0f, 0x7b, 0xe9, 0x22, 0x40, 0x19, - 0x03, 0x4f, 0x71, 0xd6, 0x53, 0x74, 0x27, 0xa3, 0x5c, 0x14, 0xbe, 0x83, 0x2d, 0xbe, 0x5a, 0x4e, - 0x6a, 0x63, 0x03, 0x1d, 0xeb, 0x69, 0xd9, 0x87, 0xf9, 0x15, 0x83, 0xa2, 0x6e, 0x7d, 0x32, 0x50, - 0x55, 0xfe, 0x52, 0x6f, 0x0e, 0xe1, 0xae, 0xbf, 0x81, 0x39, 0x84, 0xd3, 0x7d, 0x86, 0x50, 0x90, - 0x16, 0x46, 0x47, 0xfa, 0xbe, 0xe5, 0x2d, 0xf7, 0xd5, 0x50, 0xf7, 0x9f, 0xf1, 0x63, 0xe9, 0x18, - 0xd7, 0x4b, 0xc7, 0xf8, 0xb3, 0x74, 0x8c, 0xcf, 0x2b, 0xa7, 0x74, 0xbd, 0x72, 0x4a, 0xbf, 0x57, - 0x4e, 0x09, 0xdd, 0x0f, 0x69, 0x82, 0x37, 0xae, 0x46, 0x17, 0xc9, 0x67, 0xf8, 0x79, 0x57, 0xdf, - 0x78, 0xd7, 0xde, 0xb8, 0x6a, 0xcf, 0x54, 0xad, 0xcb, 0x2f, 0x66, 0xd9, 0xeb, 0xbd, 0xfd, 0x66, - 0xd6, 0xbd, 0xa2, 0x73, 0x4f, 0x75, 0x7e, 0xb3, 0x26, 0x7e, 0xde, 0xd2, 0xfa, 0x4a, 0xeb, 0x6b, - 0x6d, 0x69, 0x9e, 0x6f, 0xd4, 0xfa, 0x2f, 0xfc, 0xae, 0xde, 0x85, 0xbf, 0xe6, 0xbd, 0x82, 0xeb, - 0x74, 0x14, 0xd8, 0xe9, 0x68, 0x72, 0x78, 0x28, 0x3f, 0xe3, 0xe1, 0xff, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x90, 0xcd, 0x76, 0xf5, 0x21, 0x04, 0x00, 0x00, + // 499 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x93, 0xcf, 0x8a, 0x13, 0x41, + 0x10, 0xc6, 0x33, 0x93, 0x5d, 0x77, 0xd3, 0xf1, 0xe0, 0xce, 0xee, 0x61, 0x12, 0x71, 0x08, 0x81, + 0x85, 0x5c, 0xec, 0x61, 0xd7, 0x7f, 0x10, 0x4f, 0x13, 0x09, 0x5e, 0x14, 0x86, 0x2c, 0x8a, 0x48, + 0x20, 0x54, 0x66, 0xca, 0x49, 0x20, 0x33, 0x3d, 0xf4, 0x74, 0x62, 0x82, 0x0f, 0xe0, 0xd5, 0x57, + 0xd0, 0xa3, 0x67, 0x1f, 0x42, 0x3c, 0x2d, 0x9e, 0x3c, 0x4a, 0x72, 0xf3, 0xea, 0x0b, 0xc8, 0x74, + 0xa7, 0x67, 0xbd, 0x64, 0x93, 0xbd, 0x75, 0xf1, 0xfd, 0xbe, 0xaa, 0xae, 0x2a, 0x8a, 0x9c, 0x42, + 0x12, 0x72, 0x16, 0x63, 0x08, 0x2e, 0x66, 0x01, 0x67, 0xef, 0xdd, 0xd9, 0x19, 0x4c, 0xd2, 0x11, + 0x9c, 0xb9, 0x38, 0xc3, 0x44, 0xd0, 0x94, 0x33, 0xc1, 0xac, 0x5a, 0x81, 0x51, 0x85, 0x51, 0x8d, + 0xd5, 0x6b, 0x01, 0xcb, 0x62, 0x96, 0x0d, 0x24, 0xe8, 0xaa, 0x40, 0xb9, 0xea, 0xb5, 0x88, 0xb1, + 0x68, 0x82, 0xae, 0x8c, 0x86, 0xd3, 0x77, 0x2e, 0x24, 0x0b, 0x25, 0x35, 0x3f, 0x90, 0xa3, 0x6e, + 0x9e, 0xff, 0x55, 0x1a, 0x82, 0x40, 0x1f, 0x38, 0xc4, 0x99, 0xf5, 0x98, 0x54, 0x60, 0x2a, 0x46, + 0x8c, 0x8f, 0xc5, 0xc2, 0x36, 0x1a, 0x46, 0xab, 0xd2, 0xb1, 0x7f, 0x7e, 0xbb, 0x7f, 0xb2, 0x4e, + 0xea, 0x85, 0x21, 0xc7, 0x2c, 0xbb, 0x10, 0x7c, 0x9c, 0x44, 0xbd, 0x2b, 0xd4, 0xa2, 0xe4, 0x38, + 0x86, 0xf9, 0x20, 0x46, 0x01, 0x21, 0x08, 0x18, 0x4c, 0x30, 0x89, 0xc4, 0xc8, 0x36, 0x1b, 0x46, + 0x6b, 0xaf, 0x77, 0x14, 0xc3, 0xfc, 0xe5, 0x5a, 0x79, 0x21, 0x85, 0xe6, 0x8c, 0xdc, 0x91, 0xc5, + 0x9f, 0x71, 0x04, 0x81, 0x5e, 0x84, 0x89, 0xb0, 0x28, 0xd9, 0x87, 0xfc, 0xb1, 0xb5, 0xae, 0xc2, + 0xac, 0x73, 0x72, 0x10, 0xe4, 0x76, 0xc6, 0x65, 0x9d, 0xeb, 0x1c, 0x1a, 0x6c, 0x7e, 0x34, 0xc9, + 0xb1, 0x2c, 0x7c, 0x31, 0x1d, 0xc6, 0x63, 0xe1, 0x73, 0x96, 0xb2, 0x0c, 0x26, 0xd6, 0x43, 0x72, + 0x98, 0xca, 0x37, 0xf2, 0xad, 0xe5, 0x0b, 0xf2, 0xea, 0xc7, 0xe6, 0x6e, 0x3f, 0x7e, 0x44, 0xaa, + 0x29, 0xc7, 0x01, 0x04, 0x62, 0xcc, 0x92, 0xcc, 0x2e, 0x37, 0xca, 0xad, 0xea, 0xf9, 0x09, 0x55, + 0x3b, 0xa2, 0x7a, 0x47, 0xd4, 0x4b, 0x16, 0x3d, 0x92, 0x72, 0xf4, 0x14, 0x67, 0x3d, 0x21, 0xb7, + 0x53, 0x96, 0x89, 0xc2, 0xb7, 0x77, 0x8d, 0xaf, 0x9a, 0x93, 0xda, 0x58, 0x27, 0x87, 0x7a, 0x23, + 0xf6, 0x7e, 0xfe, 0xc5, 0x5e, 0x11, 0x37, 0x3f, 0x1b, 0xa4, 0x22, 0x27, 0xd1, 0x9d, 0x63, 0x90, + 0xf7, 0x8f, 0x73, 0x0c, 0xa6, 0xf9, 0x30, 0xb7, 0xf6, 0xaf, 0xc9, 0x1b, 0xf7, 0x4f, 0xc9, 0xc1, + 0x2e, 0xbd, 0x6b, 0xa8, 0xf3, 0xd7, 0xf8, 0xbe, 0x74, 0x8c, 0xcb, 0xa5, 0x63, 0xfc, 0x5e, 0x3a, + 0xc6, 0xa7, 0x95, 0x53, 0xba, 0x5c, 0x39, 0xa5, 0x5f, 0x2b, 0xa7, 0x44, 0xee, 0x05, 0x2c, 0xa6, + 0x1b, 0x4f, 0xa2, 0x43, 0x64, 0x6b, 0x7e, 0x9e, 0xd5, 0x37, 0xde, 0xb6, 0x36, 0x9e, 0xd8, 0x53, + 0x15, 0xeb, 0xf0, 0x8b, 0x59, 0xf6, 0xba, 0x6f, 0xbe, 0x9a, 0x35, 0xaf, 0xc8, 0xdc, 0x55, 0x99, + 0x5f, 0xaf, 0x89, 0x1f, 0xff, 0x69, 0x7d, 0xa5, 0xf5, 0xb5, 0xb6, 0x34, 0x4f, 0x37, 0x6a, 0xfd, + 0xe7, 0x7e, 0x47, 0xdf, 0xc0, 0x1f, 0xf3, 0x6e, 0xc1, 0xb5, 0xdb, 0x0a, 0x6c, 0xb7, 0x35, 0x39, + 0xbc, 0x25, 0x87, 0xf1, 0xe0, 0x5f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xc7, 0x1f, 0xbb, 0x29, 0x19, + 0x04, 0x00, 0x00, } func (m *EventUpdateParams) Marshal() (dAtA []byte, err error) { @@ -433,7 +424,7 @@ func (m *EventSubmitProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { copy(dAtA[i:], m.Metadata) i = encodeVarintEvent(dAtA, i, uint64(len(m.Metadata))) i-- - dAtA[i] = 0x32 + dAtA[i] = 0x2a } if len(m.PostActions) > 0 { for iNdEx := len(m.PostActions) - 1; iNdEx >= 0; iNdEx-- { @@ -446,7 +437,7 @@ func (m *EventSubmitProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintEvent(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x2a + dAtA[i] = 0x22 } } if len(m.PreActions) > 0 { @@ -460,7 +451,7 @@ func (m *EventSubmitProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintEvent(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x22 + dAtA[i] = 0x1a } } if len(m.Agent) > 0 { @@ -468,19 +459,14 @@ func (m *EventSubmitProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { copy(dAtA[i:], m.Agent) i = encodeVarintEvent(dAtA, i, uint64(len(m.Agent))) i-- - dAtA[i] = 0x1a + dAtA[i] = 0x12 } if len(m.Proposer) > 0 { i -= len(m.Proposer) copy(dAtA[i:], m.Proposer) i = encodeVarintEvent(dAtA, i, uint64(len(m.Proposer))) i-- - dAtA[i] = 0x12 - } - if m.Proposal != 0 { - i = encodeVarintEvent(dAtA, i, uint64(m.Proposal)) - i-- - dAtA[i] = 0x8 + dAtA[i] = 0xa } return len(dAtA) - i, nil } @@ -519,17 +505,19 @@ func (m *EventExec) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA[i] = 0x1a } } + if len(m.Agent) > 0 { + i -= len(m.Agent) + copy(dAtA[i:], m.Agent) + i = encodeVarintEvent(dAtA, i, uint64(len(m.Agent))) + i-- + dAtA[i] = 0x12 + } if len(m.Executor) > 0 { i -= len(m.Executor) copy(dAtA[i:], m.Executor) i = encodeVarintEvent(dAtA, i, uint64(len(m.Executor))) i-- - dAtA[i] = 0x12 - } - if m.Proposal != 0 { - i = encodeVarintEvent(dAtA, i, uint64(m.Proposal)) - i-- - dAtA[i] = 0x8 + dAtA[i] = 0xa } return len(dAtA) - i, nil } @@ -584,9 +572,6 @@ func (m *EventSubmitProposal) Size() (n int) { } var l int _ = l - if m.Proposal != 0 { - n += 1 + sovEvent(uint64(m.Proposal)) - } l = len(m.Proposer) if l > 0 { n += 1 + l + sovEvent(uint64(l)) @@ -620,13 +605,14 @@ func (m *EventExec) Size() (n int) { } var l int _ = l - if m.Proposal != 0 { - n += 1 + sovEvent(uint64(m.Proposal)) - } l = len(m.Executor) if l > 0 { n += 1 + l + sovEvent(uint64(l)) } + l = len(m.Agent) + if l > 0 { + n += 1 + l + sovEvent(uint64(l)) + } if len(m.Actions) > 0 { for _, e := range m.Actions { l = e.Size() @@ -887,25 +873,6 @@ func (m *EventSubmitProposal) Unmarshal(dAtA []byte) error { } switch fieldNum { case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Proposal", wireType) - } - m.Proposal = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Proposal |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Proposer", wireType) } @@ -937,7 +904,7 @@ func (m *EventSubmitProposal) Unmarshal(dAtA []byte) error { } m.Proposer = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 3: + case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Agent", wireType) } @@ -969,7 +936,7 @@ func (m *EventSubmitProposal) Unmarshal(dAtA []byte) error { } m.Agent = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 4: + case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field PreActions", wireType) } @@ -1003,7 +970,7 @@ func (m *EventSubmitProposal) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 5: + case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field PostActions", wireType) } @@ -1037,7 +1004,7 @@ func (m *EventSubmitProposal) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 6: + case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) } @@ -1120,10 +1087,10 @@ func (m *EventExec) Unmarshal(dAtA []byte) error { } switch fieldNum { case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Proposal", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Executor", wireType) } - m.Proposal = 0 + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEvent @@ -1133,14 +1100,27 @@ func (m *EventExec) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Proposal |= uint64(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Executor = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Executor", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Agent", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -1168,7 +1148,7 @@ func (m *EventExec) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Executor = string(dAtA[iNdEx:postIndex]) + m.Agent = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { diff --git a/x/escrow/andromeda/escrow/v1alpha1/genesis.pb.go b/x/escrow/andromeda/escrow/v1alpha1/genesis.pb.go index 6061cca..3c68fd8 100644 --- a/x/escrow/andromeda/escrow/v1alpha1/genesis.pb.go +++ b/x/escrow/andromeda/escrow/v1alpha1/genesis.pb.go @@ -32,10 +32,8 @@ type GenesisState struct { NextAgent uint64 `protobuf:"varint,2,opt,name=next_agent,json=nextAgent,proto3" json:"next_agent,omitempty"` // all the agents Agents []*GenesisState_Agent `protobuf:"bytes,3,rep,name=agents,proto3" json:"agents,omitempty"` - // the identifier of the next proposal - NextProposal uint64 `protobuf:"varint,4,opt,name=next_proposal,json=nextProposal,proto3" json:"next_proposal,omitempty"` // all the proposals - Proposals []*GenesisState_Proposal `protobuf:"bytes,5,rep,name=proposals,proto3" json:"proposals,omitempty"` + Proposals []*GenesisState_Proposal `protobuf:"bytes,4,rep,name=proposals,proto3" json:"proposals,omitempty"` } func (m *GenesisState) Reset() { *m = GenesisState{} } @@ -92,13 +90,6 @@ func (m *GenesisState) GetAgents() []*GenesisState_Agent { return nil } -func (m *GenesisState) GetNextProposal() uint64 { - if m != nil { - return m.NextProposal - } - return 0 -} - func (m *GenesisState) GetProposals() []*GenesisState_Proposal { if m != nil { return m.Proposals @@ -209,18 +200,16 @@ func (m *GenesisState_Agent) GetCreator() string { // Proposal defines a proposal. type GenesisState_Proposal struct { - // the unique identifier - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + // the address of the agent in charge + Agent string `protobuf:"bytes,1,opt,name=agent,proto3" json:"agent,omitempty"` // the address of the proposer Proposer string `protobuf:"bytes,2,opt,name=proposer,proto3" json:"proposer,omitempty"` - // the address of the agent in charge - Agent string `protobuf:"bytes,3,opt,name=agent,proto3" json:"agent,omitempty"` // the messages which has been executed on the submission - PreActions []*types.Any `protobuf:"bytes,4,rep,name=pre_actions,json=preActions,proto3" json:"pre_actions,omitempty"` + PreActions []*types.Any `protobuf:"bytes,3,rep,name=pre_actions,json=preActions,proto3" json:"pre_actions,omitempty"` // the messages which will be executed after the actions included in Msg/Exec - PostActions []*types.Any `protobuf:"bytes,5,rep,name=post_actions,json=postActions,proto3" json:"post_actions,omitempty"` + PostActions []*types.Any `protobuf:"bytes,4,rep,name=post_actions,json=postActions,proto3" json:"post_actions,omitempty"` // any arbitrary metadata attached to the proposal - Metadata string `protobuf:"bytes,6,opt,name=metadata,proto3" json:"metadata,omitempty"` + Metadata string `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"` } func (m *GenesisState_Proposal) Reset() { *m = GenesisState_Proposal{} } @@ -256,11 +245,11 @@ func (m *GenesisState_Proposal) XXX_DiscardUnknown() { var xxx_messageInfo_GenesisState_Proposal proto.InternalMessageInfo -func (m *GenesisState_Proposal) GetId() uint64 { +func (m *GenesisState_Proposal) GetAgent() string { if m != nil { - return m.Id + return m.Agent } - return 0 + return "" } func (m *GenesisState_Proposal) GetProposer() string { @@ -270,13 +259,6 @@ func (m *GenesisState_Proposal) GetProposer() string { return "" } -func (m *GenesisState_Proposal) GetAgent() string { - if m != nil { - return m.Agent - } - return "" -} - func (m *GenesisState_Proposal) GetPreActions() []*types.Any { if m != nil { return m.PreActions @@ -310,41 +292,40 @@ func init() { } var fileDescriptor_6d8dfc87c909dc5a = []byte{ - // 540 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0xbf, 0x8e, 0xd3, 0x40, - 0x10, 0xc6, 0x63, 0xe7, 0x0f, 0xc9, 0x24, 0x20, 0xb1, 0x5c, 0xe1, 0x18, 0x9d, 0x15, 0x81, 0x10, - 0x69, 0x6e, 0xcd, 0x05, 0x10, 0x28, 0x54, 0x8e, 0x14, 0xae, 0x01, 0x14, 0xf9, 0x24, 0x84, 0x50, - 0xa4, 0x68, 0x2f, 0x5e, 0x7c, 0x91, 0x62, 0xaf, 0xb5, 0xbb, 0x40, 0xee, 0x1d, 0x28, 0x78, 0x06, - 0x4a, 0x6a, 0x1e, 0x02, 0x51, 0x9d, 0xa8, 0x28, 0x51, 0xd2, 0x41, 0x4d, 0x8f, 0xbc, 0xeb, 0xf5, - 0x5d, 0x93, 0xbb, 0x2b, 0x67, 0xbe, 0xdf, 0x37, 0xe3, 0x99, 0x1d, 0xc3, 0x7d, 0x92, 0x46, 0x9c, - 0x25, 0x34, 0x22, 0x3e, 0x15, 0x73, 0xce, 0x3e, 0xfa, 0x1f, 0xf6, 0xc9, 0x32, 0x3b, 0x26, 0xfb, - 0x7e, 0x4c, 0x53, 0x2a, 0x16, 0x02, 0x67, 0x9c, 0x49, 0x86, 0xba, 0x25, 0x88, 0x35, 0x88, 0x0d, - 0xe8, 0x76, 0xe7, 0x4c, 0x24, 0x4c, 0xcc, 0x14, 0xe8, 0xeb, 0x40, 0xbb, 0xdc, 0x6e, 0xcc, 0x58, - 0xbc, 0xa4, 0xbe, 0x8a, 0x8e, 0xde, 0xbf, 0xf3, 0x49, 0x7a, 0xa2, 0xa5, 0x3b, 0x7f, 0xeb, 0xd0, - 0x39, 0xd0, 0x2d, 0x0e, 0x25, 0x91, 0x14, 0x3d, 0x87, 0x46, 0x46, 0x38, 0x49, 0x84, 0x63, 0xf5, - 0xac, 0x7e, 0x7b, 0x80, 0xf1, 0xd6, 0x96, 0xf8, 0xbc, 0x11, 0x4f, 0x94, 0x2b, 0x2c, 0xdc, 0x68, - 0x17, 0x20, 0xa5, 0x2b, 0x39, 0x23, 0x31, 0x4d, 0xa5, 0x63, 0xf7, 0xac, 0x7e, 0x2d, 0x6c, 0xe5, - 0x99, 0x20, 0x4f, 0xa0, 0x31, 0x34, 0x94, 0x22, 0x9c, 0x6a, 0xaf, 0xda, 0x6f, 0x0f, 0xf6, 0xae, - 0xda, 0x46, 0xd9, 0xc3, 0xc2, 0x8c, 0xee, 0xc2, 0x75, 0xd5, 0x25, 0xe3, 0x2c, 0x63, 0x82, 0x2c, - 0x9d, 0x9a, 0x6a, 0xd4, 0xc9, 0x93, 0x93, 0x22, 0x87, 0x5e, 0x41, 0xcb, 0xe8, 0xc2, 0xa9, 0xab, - 0x76, 0x0f, 0xae, 0x3c, 0x55, 0x61, 0x0c, 0xcf, 0x4a, 0xb8, 0x4f, 0xa1, 0xa1, 0x87, 0x45, 0x18, - 0x6e, 0x25, 0x64, 0x35, 0x4b, 0xa8, 0x24, 0x11, 0x91, 0x64, 0xb6, 0xa4, 0x69, 0x2c, 0x8f, 0xd5, - 0xe6, 0x6a, 0xe1, 0xcd, 0x84, 0xac, 0x5e, 0x16, 0xca, 0x0b, 0x25, 0xb8, 0x0c, 0xea, 0x7a, 0xfc, - 0x01, 0x5c, 0x23, 0x51, 0xc4, 0xa9, 0xd0, 0x6b, 0x6e, 0x8d, 0x9c, 0x9f, 0xdf, 0xf6, 0x76, 0x8a, - 0x47, 0x0b, 0xb4, 0x72, 0x28, 0xf9, 0x22, 0x8d, 0x43, 0x03, 0xe6, 0x9e, 0x39, 0xa7, 0x44, 0x32, - 0xae, 0xd6, 0x79, 0xa1, 0xa7, 0x00, 0xdd, 0x4f, 0x36, 0x34, 0xcb, 0x3d, 0xdc, 0x00, 0x7b, 0x11, - 0x15, 0x1f, 0x67, 0x2f, 0x22, 0xf4, 0x08, 0x9a, 0x7a, 0x28, 0x7a, 0x79, 0xc5, 0x92, 0x44, 0x18, - 0xea, 0xfa, 0x4d, 0xab, 0x97, 0x58, 0x34, 0x86, 0x1e, 0x43, 0x3b, 0xe3, 0x74, 0x46, 0xe6, 0x72, - 0xc1, 0x52, 0xe1, 0xd4, 0xd4, 0xfe, 0x77, 0xb0, 0x3e, 0x49, 0x6c, 0x4e, 0x12, 0x07, 0xe9, 0x49, - 0x08, 0x19, 0xa7, 0x81, 0xe6, 0xd0, 0x13, 0xe8, 0x64, 0x4c, 0xc8, 0xd2, 0x57, 0xbf, 0xc0, 0xd7, - 0xce, 0x49, 0x63, 0x74, 0xa1, 0x69, 0xde, 0xc3, 0x69, 0xe4, 0x9f, 0x18, 0x96, 0xf1, 0xe8, 0x9f, - 0xf5, 0x7d, 0xed, 0x59, 0xa7, 0x6b, 0xcf, 0xfa, 0xbd, 0xf6, 0xac, 0xcf, 0x1b, 0xaf, 0x72, 0xba, - 0xf1, 0x2a, 0xbf, 0x36, 0x5e, 0x05, 0x76, 0xe7, 0x2c, 0xd9, 0x7e, 0x14, 0x23, 0xf3, 0x93, 0x4c, - 0xf2, 0xbe, 0x13, 0xeb, 0x6d, 0x7f, 0xeb, 0x1f, 0xfb, 0x4c, 0xc7, 0x26, 0xfc, 0x62, 0x57, 0x83, - 0xf1, 0x9b, 0xaf, 0x76, 0x37, 0x28, 0x6b, 0x8f, 0x75, 0xed, 0xd7, 0x05, 0xf1, 0xe3, 0x9c, 0x36, - 0xd5, 0xda, 0xd4, 0x68, 0x6b, 0xfb, 0xde, 0x56, 0x6d, 0x7a, 0x30, 0x19, 0x99, 0xfb, 0xfa, 0x63, - 0xdf, 0x2e, 0xb9, 0xe1, 0x50, 0x83, 0xc3, 0xa1, 0x21, 0x8f, 0x1a, 0x6a, 0x5d, 0x0f, 0xff, 0x07, - 0x00, 0x00, 0xff, 0xff, 0xb8, 0x9d, 0xc5, 0xbe, 0x68, 0x04, 0x00, 0x00, + // 513 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0xbf, 0x6f, 0xd3, 0x40, + 0x14, 0xc7, 0x6b, 0xe7, 0x07, 0xc9, 0x4b, 0x17, 0x8e, 0x0e, 0x8e, 0x51, 0xad, 0x08, 0x09, 0x91, + 0xa5, 0x67, 0x1a, 0x40, 0xa0, 0x30, 0x39, 0x52, 0xe8, 0x02, 0x28, 0x72, 0x25, 0x84, 0x50, 0x24, + 0xeb, 0x6a, 0x1f, 0x6e, 0xa4, 0xd8, 0x67, 0xdd, 0x1d, 0x90, 0xfe, 0x17, 0xfc, 0x0d, 0x8c, 0xcc, + 0x88, 0xbf, 0x01, 0x31, 0x55, 0x4c, 0x8c, 0x28, 0xd9, 0xd8, 0xd9, 0x18, 0x90, 0xef, 0x7c, 0xa6, + 0x4b, 0xda, 0x8e, 0xef, 0xbe, 0x9f, 0xef, 0x7b, 0xf7, 0xde, 0xbd, 0x83, 0x7b, 0x24, 0x4f, 0x38, + 0xcb, 0x68, 0x42, 0x7c, 0x2a, 0x62, 0xce, 0x3e, 0xf8, 0xef, 0x0f, 0xc9, 0xb2, 0x38, 0x25, 0x87, + 0x7e, 0x4a, 0x73, 0x2a, 0x16, 0x02, 0x17, 0x9c, 0x49, 0x86, 0xfa, 0x35, 0x88, 0x35, 0x88, 0x0d, + 0xe8, 0xf6, 0x63, 0x26, 0x32, 0x26, 0x22, 0x05, 0xfa, 0x3a, 0xd0, 0x2e, 0xb7, 0x9f, 0x32, 0x96, + 0x2e, 0xa9, 0xaf, 0xa2, 0x93, 0x77, 0x6f, 0x7d, 0x92, 0x9f, 0x69, 0xe9, 0xce, 0xd7, 0x16, 0xec, + 0x1e, 0xe9, 0x12, 0xc7, 0x92, 0x48, 0x8a, 0x9e, 0x41, 0xbb, 0x20, 0x9c, 0x64, 0xc2, 0xb1, 0x06, + 0xd6, 0xb0, 0x37, 0xc2, 0x78, 0x6b, 0x49, 0x7c, 0xd1, 0x88, 0x67, 0xca, 0x15, 0x56, 0x6e, 0xb4, + 0x0f, 0x90, 0xd3, 0x95, 0x8c, 0x48, 0x4a, 0x73, 0xe9, 0xd8, 0x03, 0x6b, 0xd8, 0x0c, 0xbb, 0xe5, + 0x49, 0x50, 0x1e, 0xa0, 0x29, 0xb4, 0x95, 0x22, 0x9c, 0xc6, 0xa0, 0x31, 0xec, 0x8d, 0x0e, 0xae, + 0x5b, 0x46, 0xd9, 0xc3, 0xca, 0x8c, 0x5e, 0x42, 0xb7, 0xe0, 0xac, 0x60, 0x82, 0x2c, 0x85, 0xd3, + 0x54, 0x99, 0xee, 0x5f, 0xfb, 0xc2, 0x95, 0x31, 0xfc, 0x9f, 0xc2, 0x7d, 0x02, 0x6d, 0xdd, 0x07, + 0xc2, 0x70, 0x2b, 0x23, 0xab, 0x28, 0xa3, 0x92, 0x24, 0x44, 0x92, 0x68, 0x49, 0xf3, 0x54, 0x9e, + 0xaa, 0xa1, 0x34, 0xc3, 0x9b, 0x19, 0x59, 0xbd, 0xa8, 0x94, 0xe7, 0x4a, 0x70, 0x19, 0xb4, 0x74, + 0x67, 0x23, 0xb8, 0x41, 0x92, 0x84, 0x53, 0xa1, 0x27, 0xd8, 0x9d, 0x38, 0x3f, 0xbe, 0x1c, 0xec, + 0x55, 0xef, 0x11, 0x68, 0xe5, 0x58, 0xf2, 0x45, 0x9e, 0x86, 0x06, 0x2c, 0x3d, 0x31, 0xa7, 0x44, + 0x32, 0xae, 0x26, 0x75, 0xa9, 0xa7, 0x02, 0xdd, 0xbf, 0x16, 0x74, 0x4c, 0x0b, 0x08, 0x43, 0x4b, + 0x0f, 0xfa, 0xaa, 0x92, 0x1a, 0x43, 0x0f, 0xa1, 0xa3, 0x9b, 0xa6, 0x57, 0x57, 0xac, 0x49, 0xf4, + 0x08, 0x7a, 0x05, 0xa7, 0x11, 0x89, 0xe5, 0x82, 0xe5, 0xe6, 0xe5, 0xf6, 0xb0, 0xde, 0x2e, 0x6c, + 0xb6, 0x0b, 0x07, 0xf9, 0x59, 0x08, 0x05, 0xa7, 0x81, 0xe6, 0xd0, 0x63, 0xd8, 0x2d, 0x98, 0x90, + 0xb5, 0xaf, 0x79, 0x89, 0xaf, 0x57, 0x92, 0xc6, 0xe8, 0x42, 0xc7, 0xcc, 0xdf, 0x69, 0x95, 0xb7, + 0x0c, 0xeb, 0x78, 0xf2, 0xc7, 0xfa, 0xb6, 0xf6, 0xac, 0xf3, 0xb5, 0x67, 0xfd, 0x5a, 0x7b, 0xd6, + 0xc7, 0x8d, 0xb7, 0x73, 0xbe, 0xf1, 0x76, 0x7e, 0x6e, 0xbc, 0x1d, 0xd8, 0x8f, 0x59, 0xb6, 0x7d, + 0x09, 0x26, 0x66, 0xdf, 0x67, 0x65, 0xdd, 0x99, 0xf5, 0x66, 0xb8, 0xf5, 0xf3, 0x3d, 0xd5, 0xb1, + 0x09, 0x3f, 0xd9, 0x8d, 0x60, 0xfa, 0xfa, 0xb3, 0xdd, 0x0f, 0xea, 0xdc, 0x53, 0x9d, 0xfb, 0x55, + 0x45, 0x7c, 0xbf, 0xa0, 0xcd, 0xb5, 0x36, 0x37, 0xda, 0xda, 0xbe, 0xbb, 0x55, 0x9b, 0x1f, 0xcd, + 0x26, 0x66, 0x9f, 0x7e, 0xdb, 0xb7, 0x6b, 0x6e, 0x3c, 0xd6, 0xe0, 0x78, 0x6c, 0xc8, 0x93, 0xb6, + 0x1a, 0xd7, 0x83, 0x7f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xb7, 0x01, 0x46, 0x41, 0x33, 0x04, 0x00, + 0x00, } func (m *GenesisState) Marshal() (dAtA []byte, err error) { @@ -378,14 +359,9 @@ func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintGenesis(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x2a + dAtA[i] = 0x22 } } - if m.NextProposal != 0 { - i = encodeVarintGenesis(dAtA, i, uint64(m.NextProposal)) - i-- - dAtA[i] = 0x20 - } if len(m.Agents) > 0 { for iNdEx := len(m.Agents) - 1; iNdEx >= 0; iNdEx-- { { @@ -510,7 +486,7 @@ func (m *GenesisState_Proposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { copy(dAtA[i:], m.Metadata) i = encodeVarintGenesis(dAtA, i, uint64(len(m.Metadata))) i-- - dAtA[i] = 0x32 + dAtA[i] = 0x2a } if len(m.PostActions) > 0 { for iNdEx := len(m.PostActions) - 1; iNdEx >= 0; iNdEx-- { @@ -523,7 +499,7 @@ func (m *GenesisState_Proposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintGenesis(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x2a + dAtA[i] = 0x22 } } if len(m.PreActions) > 0 { @@ -537,16 +513,9 @@ func (m *GenesisState_Proposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintGenesis(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x22 + dAtA[i] = 0x1a } } - if len(m.Agent) > 0 { - i -= len(m.Agent) - copy(dAtA[i:], m.Agent) - i = encodeVarintGenesis(dAtA, i, uint64(len(m.Agent))) - i-- - dAtA[i] = 0x1a - } if len(m.Proposer) > 0 { i -= len(m.Proposer) copy(dAtA[i:], m.Proposer) @@ -554,10 +523,12 @@ func (m *GenesisState_Proposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x12 } - if m.Id != 0 { - i = encodeVarintGenesis(dAtA, i, uint64(m.Id)) + if len(m.Agent) > 0 { + i -= len(m.Agent) + copy(dAtA[i:], m.Agent) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.Agent))) i-- - dAtA[i] = 0x8 + dAtA[i] = 0xa } return len(dAtA) - i, nil } @@ -592,9 +563,6 @@ func (m *GenesisState) Size() (n int) { n += 1 + l + sovGenesis(uint64(l)) } } - if m.NextProposal != 0 { - n += 1 + sovGenesis(uint64(m.NextProposal)) - } if len(m.Proposals) > 0 { for _, e := range m.Proposals { l = e.Size() @@ -639,14 +607,11 @@ func (m *GenesisState_Proposal) Size() (n int) { } var l int _ = l - if m.Id != 0 { - n += 1 + sovGenesis(uint64(m.Id)) - } - l = len(m.Proposer) + l = len(m.Agent) if l > 0 { n += 1 + l + sovGenesis(uint64(l)) } - l = len(m.Agent) + l = len(m.Proposer) if l > 0 { n += 1 + l + sovGenesis(uint64(l)) } @@ -794,25 +759,6 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { } iNdEx = postIndex case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NextProposal", wireType) - } - m.NextProposal = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.NextProposal |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Proposals", wireType) } @@ -1080,27 +1026,8 @@ func (m *GenesisState_Proposal) Unmarshal(dAtA []byte) error { } 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 ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Id |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Proposer", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Agent", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -1128,11 +1055,11 @@ func (m *GenesisState_Proposal) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Proposer = string(dAtA[iNdEx:postIndex]) + m.Agent = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 3: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Agent", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Proposer", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -1160,9 +1087,9 @@ func (m *GenesisState_Proposal) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Agent = string(dAtA[iNdEx:postIndex]) + m.Proposer = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 4: + case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field PreActions", wireType) } @@ -1196,7 +1123,7 @@ func (m *GenesisState_Proposal) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 5: + case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field PostActions", wireType) } @@ -1230,7 +1157,7 @@ func (m *GenesisState_Proposal) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 6: + case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) } diff --git a/x/escrow/andromeda/escrow/v1alpha1/query.pb.go b/x/escrow/andromeda/escrow/v1alpha1/query.pb.go index 0052c4d..6e1e863 100644 --- a/x/escrow/andromeda/escrow/v1alpha1/query.pb.go +++ b/x/escrow/andromeda/escrow/v1alpha1/query.pb.go @@ -419,8 +419,8 @@ func (m *QueryAgentsResponse_Agent) GetCreator() string { // QueryProposalRequest is the request type for the Query/Proposal RPC method. type QueryProposalRequest struct { - // the identifier of a proposal - Proposal uint64 `protobuf:"varint,1,opt,name=proposal,proto3" json:"proposal,omitempty"` + // the address of an agent in charge + Agent string `protobuf:"bytes,1,opt,name=agent,proto3" json:"agent,omitempty"` } func (m *QueryProposalRequest) Reset() { *m = QueryProposalRequest{} } @@ -456,11 +456,11 @@ func (m *QueryProposalRequest) XXX_DiscardUnknown() { var xxx_messageInfo_QueryProposalRequest proto.InternalMessageInfo -func (m *QueryProposalRequest) GetProposal() uint64 { +func (m *QueryProposalRequest) GetAgent() string { if m != nil { - return m.Proposal + return m.Agent } - return 0 + return "" } // QueryProposalResponse is the response type for the Query/Proposal RPC method. @@ -511,18 +511,16 @@ func (m *QueryProposalResponse) GetProposal() *QueryProposalResponse_Proposal { // Proposal defines a proposal. type QueryProposalResponse_Proposal struct { - // the unique identifier - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + // the address of the agent in charge + Agent string `protobuf:"bytes,1,opt,name=agent,proto3" json:"agent,omitempty"` // the address of the proposer Proposer string `protobuf:"bytes,2,opt,name=proposer,proto3" json:"proposer,omitempty"` - // the address of the agent in charge - Agent string `protobuf:"bytes,3,opt,name=agent,proto3" json:"agent,omitempty"` // the messages which has been executed on the submission - PreActions []*types.Any `protobuf:"bytes,4,rep,name=pre_actions,json=preActions,proto3" json:"pre_actions,omitempty"` + PreActions []*types.Any `protobuf:"bytes,3,rep,name=pre_actions,json=preActions,proto3" json:"pre_actions,omitempty"` // the messages which will be executed after the actions included in Msg/Exec - PostActions []*types.Any `protobuf:"bytes,5,rep,name=post_actions,json=postActions,proto3" json:"post_actions,omitempty"` + PostActions []*types.Any `protobuf:"bytes,4,rep,name=post_actions,json=postActions,proto3" json:"post_actions,omitempty"` // any arbitrary metadata attached to the proposal - Metadata string `protobuf:"bytes,6,opt,name=metadata,proto3" json:"metadata,omitempty"` + Metadata string `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"` } func (m *QueryProposalResponse_Proposal) Reset() { *m = QueryProposalResponse_Proposal{} } @@ -558,11 +556,11 @@ func (m *QueryProposalResponse_Proposal) XXX_DiscardUnknown() { var xxx_messageInfo_QueryProposalResponse_Proposal proto.InternalMessageInfo -func (m *QueryProposalResponse_Proposal) GetId() uint64 { +func (m *QueryProposalResponse_Proposal) GetAgent() string { if m != nil { - return m.Id + return m.Agent } - return 0 + return "" } func (m *QueryProposalResponse_Proposal) GetProposer() string { @@ -572,13 +570,6 @@ func (m *QueryProposalResponse_Proposal) GetProposer() string { return "" } -func (m *QueryProposalResponse_Proposal) GetAgent() string { - if m != nil { - return m.Agent - } - return "" -} - func (m *QueryProposalResponse_Proposal) GetPreActions() []*types.Any { if m != nil { return m.PreActions @@ -703,18 +694,16 @@ func (m *QueryProposalsResponse) GetPagination() *query.PageResponse { // Proposal defines a proposal. type QueryProposalsResponse_Proposal struct { - // the unique identifier - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + // the address of the agent in charge + Agent string `protobuf:"bytes,1,opt,name=agent,proto3" json:"agent,omitempty"` // the address of the proposer Proposer string `protobuf:"bytes,2,opt,name=proposer,proto3" json:"proposer,omitempty"` - // the address of the agent of the proposal - Agent string `protobuf:"bytes,3,opt,name=agent,proto3" json:"agent,omitempty"` // the messages which has been executed on the submission - PreActions []*types.Any `protobuf:"bytes,4,rep,name=pre_actions,json=preActions,proto3" json:"pre_actions,omitempty"` + PreActions []*types.Any `protobuf:"bytes,3,rep,name=pre_actions,json=preActions,proto3" json:"pre_actions,omitempty"` // the messages which will be executed after the actions included in Msg/Exec - PostActions []*types.Any `protobuf:"bytes,5,rep,name=post_actions,json=postActions,proto3" json:"post_actions,omitempty"` + PostActions []*types.Any `protobuf:"bytes,4,rep,name=post_actions,json=postActions,proto3" json:"post_actions,omitempty"` // any arbitrary metadata attached to the proposal - Metadata string `protobuf:"bytes,6,opt,name=metadata,proto3" json:"metadata,omitempty"` + Metadata string `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"` } func (m *QueryProposalsResponse_Proposal) Reset() { *m = QueryProposalsResponse_Proposal{} } @@ -750,11 +739,11 @@ func (m *QueryProposalsResponse_Proposal) XXX_DiscardUnknown() { var xxx_messageInfo_QueryProposalsResponse_Proposal proto.InternalMessageInfo -func (m *QueryProposalsResponse_Proposal) GetId() uint64 { +func (m *QueryProposalsResponse_Proposal) GetAgent() string { if m != nil { - return m.Id + return m.Agent } - return 0 + return "" } func (m *QueryProposalsResponse_Proposal) GetProposer() string { @@ -764,13 +753,6 @@ func (m *QueryProposalsResponse_Proposal) GetProposer() string { return "" } -func (m *QueryProposalsResponse_Proposal) GetAgent() string { - if m != nil { - return m.Agent - } - return "" -} - func (m *QueryProposalsResponse_Proposal) GetPreActions() []*types.Any { if m != nil { return m.PreActions @@ -814,61 +796,59 @@ func init() { } var fileDescriptor_84a41d203399b1b7 = []byte{ - // 852 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x56, 0xcf, 0x4f, 0x13, 0x4b, - 0x1c, 0x67, 0xb7, 0xb4, 0x0f, 0xa6, 0x2f, 0x2f, 0x61, 0xe8, 0x7b, 0x69, 0xfb, 0xde, 0x6b, 0x74, - 0x15, 0x04, 0xa5, 0x33, 0xb4, 0x60, 0x88, 0xf5, 0xd4, 0x1a, 0x24, 0x26, 0x98, 0xd4, 0x1a, 0x0d, - 0x31, 0x4d, 0x9a, 0x69, 0x3b, 0x96, 0x26, 0xed, 0xce, 0xb2, 0xbb, 0x20, 0x84, 0x70, 0xf1, 0xec, - 0xc1, 0x68, 0x8c, 0x27, 0x3d, 0x78, 0xf0, 0xe0, 0xd9, 0x3f, 0xc2, 0x70, 0x22, 0x7a, 0xf1, 0x68, - 0x8a, 0x27, 0xaf, 0x9e, 0x4d, 0x4c, 0xe7, 0xc7, 0xb2, 0x94, 0x94, 0x6e, 0x8d, 0xf1, 0xe4, 0x09, - 0xbe, 0xfb, 0xfd, 0x7c, 0x3f, 0xf3, 0x99, 0xef, 0xaf, 0x29, 0x98, 0x22, 0x66, 0xdd, 0x66, 0x6d, - 0x5a, 0x27, 0x98, 0x3a, 0x35, 0x9b, 0x3d, 0xc0, 0x5b, 0x19, 0xd2, 0xb2, 0xd6, 0x49, 0x06, 0x6f, - 0x6c, 0x52, 0x7b, 0x07, 0x59, 0x36, 0x73, 0x19, 0x4c, 0x78, 0x30, 0x24, 0x60, 0x48, 0xc1, 0x92, - 0x17, 0x6b, 0xcc, 0x69, 0x33, 0x07, 0x57, 0x89, 0x43, 0x45, 0x0c, 0xde, 0xca, 0x54, 0xa9, 0x4b, - 0x32, 0xd8, 0x22, 0x8d, 0xa6, 0x49, 0xdc, 0x26, 0x33, 0x05, 0x4d, 0x32, 0x21, 0xb0, 0x15, 0x6e, - 0x61, 0x61, 0x48, 0xd7, 0x7f, 0x0d, 0xc6, 0x1a, 0x2d, 0x8a, 0x89, 0xd5, 0xc4, 0xc4, 0x34, 0x99, - 0xcb, 0xe3, 0x94, 0x37, 0x21, 0xbd, 0xdc, 0xaa, 0x6e, 0xde, 0xc7, 0xc4, 0x94, 0xd2, 0x8c, 0x18, - 0x80, 0xb7, 0xba, 0xa7, 0x16, 0x89, 0x4d, 0xda, 0x4e, 0x89, 0x6e, 0x6c, 0x52, 0xc7, 0x35, 0x96, - 0xc1, 0xe4, 0xb1, 0xaf, 0x8e, 0xc5, 0x4c, 0x87, 0x42, 0x04, 0x26, 0xdb, 0x64, 0xbb, 0xd2, 0xa6, - 0x2e, 0xa9, 0x13, 0x97, 0x54, 0x5a, 0xd4, 0x6c, 0xb8, 0xeb, 0x71, 0xed, 0x8c, 0x36, 0x33, 0x5a, - 0x9a, 0x68, 0x93, 0xed, 0x9b, 0xd2, 0xb3, 0xca, 0x1d, 0xc6, 0x35, 0x30, 0xc1, 0x69, 0xf2, 0x0d, - 0x6a, 0xba, 0x92, 0x1b, 0x22, 0x10, 0x26, 0x5d, 0x9b, 0x87, 0x8d, 0x17, 0xe2, 0xef, 0xdf, 0xa6, - 0x63, 0xf2, 0x2e, 0xf9, 0x7a, 0xdd, 0xa6, 0x8e, 0x73, 0xdb, 0xb5, 0x9b, 0x66, 0xa3, 0x24, 0x60, - 0xc6, 0x81, 0x26, 0x25, 0x4a, 0x16, 0xa9, 0xe5, 0x86, 0x9f, 0x26, 0x9a, 0x5d, 0x40, 0x7d, 0x73, - 0x8c, 0x4e, 0x46, 0x23, 0x61, 0x09, 0x86, 0x24, 0x03, 0x61, 0x6e, 0xc3, 0x2c, 0xf8, 0x83, 0x08, - 0x09, 0x03, 0xc5, 0x29, 0x60, 0x37, 0xa6, 0x66, 0x53, 0xe2, 0x32, 0x3b, 0xae, 0x0f, 0x8a, 0x91, - 0x40, 0xa3, 0xec, 0xbf, 0x91, 0x4a, 0x3a, 0xbc, 0x0e, 0xc0, 0x51, 0xc9, 0xe5, 0xb5, 0xa6, 0x91, - 0x64, 0xea, 0xf6, 0x07, 0x12, 0x3d, 0x25, 0xfb, 0x03, 0x15, 0x49, 0x83, 0xca, 0xd8, 0x92, 0x2f, - 0xd2, 0x78, 0xa1, 0xcb, 0xea, 0x29, 0x7a, 0x99, 0xb1, 0x55, 0x10, 0xe1, 0xf7, 0xed, 0x5e, 0x2e, - 0x34, 0x13, 0xcd, 0x2e, 0x06, 0x4a, 0x99, 0xd3, 0x93, 0x33, 0xc9, 0x01, 0x57, 0x8e, 0xa9, 0xd5, - 0xb9, 0xda, 0x0b, 0x03, 0xd5, 0x0a, 0x2a, 0xbf, 0xdc, 0x5f, 0x9f, 0xfd, 0x2c, 0x88, 0x89, 0xe6, - 0xb6, 0x99, 0xc5, 0x1c, 0xd2, 0x52, 0xf9, 0x4f, 0x82, 0x31, 0x4b, 0x7e, 0x92, 0x2d, 0xed, 0xd9, - 0xc6, 0x37, 0x1d, 0xfc, 0xdd, 0x13, 0x24, 0xb3, 0x7a, 0xa7, 0x27, 0x2a, 0x9a, 0xbd, 0x32, 0x28, - 0xaf, 0xbd, 0x1c, 0xc8, 0xfb, 0xe0, 0x51, 0x25, 0x1f, 0xe9, 0x60, 0x4c, 0x7d, 0x86, 0x7f, 0x01, - 0xbd, 0x59, 0x97, 0x9a, 0xf4, 0x66, 0x1d, 0x2e, 0xaa, 0x33, 0xe9, 0xe0, 0x6b, 0x7b, 0xc8, 0xa3, - 0xc1, 0x0b, 0x05, 0x1a, 0x3c, 0x78, 0x19, 0x44, 0x2d, 0x9b, 0x56, 0x48, 0x8d, 0xaf, 0x92, 0xf8, - 0x28, 0x6f, 0x9a, 0x18, 0x12, 0xbb, 0x04, 0xa9, 0x5d, 0x82, 0xf2, 0xe6, 0x4e, 0x09, 0x58, 0x36, - 0xcd, 0x0b, 0x1c, 0x5c, 0x02, 0x7f, 0x5a, 0xcc, 0x71, 0xbd, 0xb8, 0xf0, 0x29, 0x71, 0xd1, 0x2e, - 0x52, 0x05, 0x26, 0xc1, 0x98, 0xda, 0x2c, 0xf1, 0x48, 0x57, 0x62, 0xc9, 0xb3, 0x8d, 0x4a, 0x4f, - 0xfa, 0xfb, 0x0c, 0x8d, 0xfe, 0xc3, 0x43, 0xb3, 0x1f, 0x02, 0xff, 0xf4, 0x9e, 0x20, 0x2b, 0xbc, - 0x06, 0xc6, 0x55, 0x59, 0xd4, 0xe8, 0xe4, 0x82, 0x96, 0xd8, 0x39, 0x59, 0xe3, 0x23, 0xb2, 0x9f, - 0x37, 0x43, 0xbf, 0xbb, 0xc5, 0xdf, 0x2d, 0xd9, 0x67, 0x11, 0x10, 0xe6, 0x65, 0x80, 0x4f, 0x34, - 0x10, 0x11, 0x8f, 0x18, 0x4c, 0x0f, 0xac, 0x99, 0xff, 0x09, 0x4c, 0xa2, 0xa0, 0x70, 0x51, 0x0e, - 0x63, 0xf6, 0xe1, 0x87, 0xcf, 0x4f, 0xf5, 0x73, 0xf0, 0x2c, 0xee, 0xff, 0x9b, 0xc0, 0x12, 0x4a, - 0x9e, 0x6b, 0x6a, 0xe5, 0xcd, 0x05, 0x7c, 0xb5, 0x84, 0xa4, 0xf4, 0x50, 0x6f, 0x9c, 0x91, 0xe1, - 0x8a, 0x2e, 0xc1, 0xd9, 0x53, 0x14, 0x89, 0x65, 0x8e, 0x77, 0xf9, 0xdf, 0x3d, 0x9e, 0x2e, 0xb1, - 0xf5, 0x61, 0x3a, 0xe8, 0xeb, 0x10, 0x30, 0x5d, 0xc7, 0x1f, 0x93, 0x40, 0xe9, 0x92, 0x2f, 0xcd, - 0x6b, 0xcd, 0xd7, 0xdc, 0x38, 0xf8, 0x72, 0x15, 0xc2, 0xe6, 0x87, 0xdd, 0xc6, 0xc6, 0x12, 0x97, - 0x96, 0x81, 0xf8, 0xb4, 0x4a, 0xaa, 0x19, 0xc6, 0xbb, 0xea, 0xdf, 0x3d, 0xf8, 0x52, 0x03, 0xe3, - 0xde, 0xe0, 0xc3, 0xf9, 0x21, 0x76, 0x84, 0x90, 0x9a, 0x19, 0x7a, 0xab, 0x18, 0x73, 0x5c, 0xeb, - 0x34, 0x3c, 0x1f, 0x44, 0x6b, 0xe1, 0xab, 0xf6, 0xae, 0x93, 0xd2, 0x0e, 0x3a, 0x29, 0xed, 0x53, - 0x27, 0xa5, 0x3d, 0x3e, 0x4c, 0x8d, 0x1c, 0x1c, 0xa6, 0x46, 0x3e, 0x1e, 0xa6, 0x46, 0xc0, 0xff, - 0x35, 0xd6, 0xee, 0x7f, 0x7c, 0x01, 0xa8, 0xf3, 0x5d, 0x56, 0xd4, 0xee, 0xcd, 0xf4, 0x3d, 0xec, - 0xaa, 0xb0, 0x95, 0xf9, 0x4a, 0x0f, 0xe5, 0x97, 0xd7, 0xde, 0xe8, 0x89, 0xbc, 0xc7, 0xbc, 0x2c, - 0x98, 0xef, 0x4a, 0xc4, 0xbe, 0xcf, 0x57, 0x16, 0xbe, 0xb2, 0xf2, 0x75, 0xf4, 0xa9, 0xbe, 0xbe, - 0xf2, 0x4a, 0xb1, 0xa0, 0x7e, 0x6d, 0x7e, 0xd1, 0xff, 0xf5, 0x70, 0xb9, 0x9c, 0x00, 0xe6, 0x72, - 0x0a, 0x59, 0x8d, 0xf0, 0x25, 0xb2, 0xf0, 0x3d, 0x00, 0x00, 0xff, 0xff, 0xb1, 0x00, 0x16, 0x27, - 0xad, 0x0b, 0x00, 0x00, + // 832 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x56, 0xcf, 0x6f, 0x12, 0x4d, + 0x18, 0xee, 0x2e, 0x85, 0xaf, 0x1d, 0xbe, 0x4b, 0xa7, 0x7c, 0x5f, 0x00, 0x95, 0xe8, 0x6a, 0x6b, + 0xab, 0x65, 0xb6, 0xd0, 0x1a, 0x23, 0x9e, 0xc0, 0xd4, 0xc6, 0xa4, 0x26, 0x88, 0xd1, 0x34, 0x86, + 0x84, 0x0c, 0x30, 0x52, 0x12, 0xd8, 0xd9, 0xee, 0x6c, 0x6b, 0x1b, 0xe3, 0xc5, 0xbf, 0xc0, 0xe8, + 0x41, 0x2f, 0x7a, 0xf0, 0xa6, 0x67, 0x4f, 0xfe, 0x05, 0xc6, 0x53, 0xa3, 0x17, 0x8f, 0x86, 0x7a, + 0x32, 0xf1, 0xe4, 0xd5, 0x83, 0x61, 0x7e, 0x6c, 0x17, 0x1a, 0xca, 0x62, 0x8c, 0x17, 0x4f, 0xe4, + 0xdd, 0xf7, 0x79, 0x9f, 0x79, 0xe6, 0x99, 0x77, 0xde, 0x01, 0xcc, 0x60, 0xab, 0xee, 0xd0, 0x36, + 0xa9, 0x63, 0x93, 0xb0, 0x9a, 0x43, 0xef, 0x99, 0xdb, 0x19, 0xdc, 0xb2, 0x37, 0x70, 0xc6, 0xdc, + 0xdc, 0x22, 0xce, 0x2e, 0xb2, 0x1d, 0xea, 0x52, 0x98, 0xf0, 0x60, 0x48, 0xc0, 0x90, 0x82, 0x25, + 0xcf, 0xd5, 0x28, 0x6b, 0x53, 0x66, 0x56, 0x31, 0x23, 0xa2, 0xc6, 0xdc, 0xce, 0x54, 0x89, 0x8b, + 0x33, 0xa6, 0x8d, 0x1b, 0x4d, 0x0b, 0xbb, 0x4d, 0x6a, 0x09, 0x9a, 0x64, 0x42, 0x60, 0x2b, 0x3c, + 0x32, 0x45, 0x20, 0x53, 0xc7, 0x1b, 0x94, 0x36, 0x5a, 0xc4, 0xc4, 0x76, 0xd3, 0xc4, 0x96, 0x45, + 0x5d, 0x5e, 0xa7, 0xb2, 0x09, 0x99, 0xe5, 0x51, 0x75, 0xeb, 0xae, 0x89, 0x2d, 0x29, 0xcd, 0x88, + 0x01, 0x78, 0xa3, 0xbb, 0x6a, 0x11, 0x3b, 0xb8, 0xcd, 0x4a, 0x64, 0x73, 0x8b, 0x30, 0xd7, 0x58, + 0x01, 0xd3, 0x3d, 0x5f, 0x99, 0x4d, 0x2d, 0x46, 0x20, 0x02, 0xd3, 0x6d, 0xbc, 0x53, 0x69, 0x13, + 0x17, 0xd7, 0xb1, 0x8b, 0x2b, 0x2d, 0x62, 0x35, 0xdc, 0x8d, 0xb8, 0x76, 0x52, 0x9b, 0x1b, 0x2f, + 0x4d, 0xb5, 0xf1, 0xce, 0x75, 0x99, 0x59, 0xe3, 0x09, 0xe3, 0x0a, 0x98, 0xe2, 0x34, 0xf9, 0x06, + 0xb1, 0x5c, 0xc9, 0x0d, 0x11, 0x08, 0xe3, 0x6e, 0xcc, 0xcb, 0x26, 0x0b, 0xf1, 0x0f, 0x6f, 0xd2, + 0x31, 0xb9, 0x97, 0x7c, 0xbd, 0xee, 0x10, 0xc6, 0x6e, 0xba, 0x4e, 0xd3, 0x6a, 0x94, 0x04, 0xcc, + 0xd8, 0xd3, 0xa4, 0x44, 0xc9, 0x22, 0xb5, 0x5c, 0xf3, 0xd3, 0x44, 0xb3, 0x4b, 0x68, 0xa0, 0xc7, + 0xe8, 0x70, 0x35, 0x12, 0x91, 0x60, 0x48, 0x52, 0x10, 0xe6, 0x31, 0xcc, 0x82, 0x7f, 0xb0, 0x90, + 0x30, 0x54, 0x9c, 0x02, 0x76, 0x6b, 0x6a, 0x0e, 0xc1, 0x2e, 0x75, 0xe2, 0xfa, 0xb0, 0x1a, 0x09, + 0x34, 0xca, 0xfe, 0x1d, 0x29, 0xd3, 0xe1, 0x55, 0x00, 0x0e, 0x8e, 0x5c, 0x6e, 0x6b, 0x16, 0x49, + 0xa6, 0x6e, 0x7f, 0x20, 0xd1, 0x53, 0xb2, 0x3f, 0x50, 0x11, 0x37, 0x88, 0xac, 0x2d, 0xf9, 0x2a, + 0x8d, 0xe7, 0xba, 0x3c, 0x3d, 0x45, 0x2f, 0x1d, 0x5b, 0x03, 0x11, 0xbe, 0xdf, 0xee, 0xe6, 0x42, + 0x73, 0xd1, 0xec, 0x72, 0x20, 0xcb, 0x58, 0x9f, 0x67, 0x92, 0x03, 0xae, 0xf6, 0xa8, 0xd5, 0xb9, + 0xda, 0xb3, 0x43, 0xd5, 0x0a, 0x2a, 0xbf, 0xdc, 0x3f, 0xef, 0xfe, 0x02, 0x88, 0x89, 0xe6, 0x76, + 0xa8, 0x4d, 0x19, 0x6e, 0x29, 0xff, 0x63, 0x3d, 0x8d, 0xa9, 0xda, 0xef, 0x9b, 0x0e, 0xfe, 0xeb, + 0x83, 0x4b, 0x3f, 0x6f, 0x81, 0x09, 0x5b, 0x7e, 0x93, 0xa7, 0x75, 0x69, 0x98, 0xa3, 0xfd, 0x1c, + 0xc8, 0xfb, 0xe0, 0x51, 0x25, 0x7f, 0x68, 0x60, 0x42, 0x7d, 0x1e, 0xf5, 0xb2, 0xc0, 0x65, 0xa5, + 0x89, 0x0c, 0x37, 0xc4, 0x43, 0xc2, 0x0b, 0x20, 0x6a, 0x3b, 0xa4, 0x82, 0x6b, 0x7c, 0x68, 0xc4, + 0x43, 0xbc, 0x3d, 0x62, 0x48, 0x4c, 0x0d, 0xa4, 0xa6, 0x06, 0xca, 0x5b, 0xbb, 0x25, 0x60, 0x3b, + 0x24, 0x2f, 0x70, 0xf0, 0x22, 0xf8, 0xd7, 0xa6, 0xcc, 0xf5, 0xea, 0xc6, 0x8f, 0xa8, 0x8b, 0x76, + 0x91, 0xaa, 0x30, 0x09, 0x26, 0xd4, 0x0c, 0x89, 0x87, 0xb9, 0xd9, 0x5e, 0x6c, 0x54, 0xfa, 0xec, + 0x1e, 0x70, 0x3d, 0xf4, 0x5f, 0xbe, 0x1e, 0x6f, 0x43, 0xe0, 0xff, 0xfe, 0x15, 0xe4, 0x89, 0xae, + 0x83, 0x49, 0x75, 0x0c, 0xea, 0x92, 0xe4, 0x82, 0x1e, 0x29, 0x3b, 0x7c, 0xa6, 0x07, 0x64, 0xbf, + 0xef, 0xb6, 0xfc, 0xdd, 0xdd, 0x91, 0x7d, 0x16, 0x01, 0x61, 0x6e, 0x3b, 0x7c, 0xac, 0x81, 0x88, + 0x78, 0x9e, 0x60, 0x7a, 0xe8, 0x19, 0xf9, 0x1f, 0xb7, 0x24, 0x0a, 0x0a, 0x17, 0xf6, 0x1b, 0xf3, + 0x0f, 0x3f, 0x7e, 0x79, 0xa2, 0x9f, 0x86, 0xa7, 0xcc, 0xc1, 0xaf, 0xbd, 0x2d, 0x94, 0x3c, 0xd5, + 0xd4, 0x30, 0x5b, 0x08, 0xf8, 0x1e, 0x09, 0x49, 0xe9, 0x91, 0x5e, 0x2f, 0x23, 0xc3, 0x15, 0x9d, + 0x87, 0xf3, 0x47, 0x28, 0x12, 0x63, 0xda, 0xbc, 0xcf, 0x7f, 0x1f, 0x70, 0xbb, 0xc4, 0x3c, 0x87, + 0xe9, 0xa0, 0x73, 0x3f, 0xa0, 0x5d, 0xbd, 0xcf, 0x44, 0x20, 0xbb, 0xe4, 0x1b, 0xf2, 0xca, 0xdf, + 0xcc, 0x66, 0xf0, 0xe1, 0x29, 0x84, 0x2d, 0x8e, 0x3a, 0x6d, 0x8d, 0x1c, 0x97, 0xb6, 0x0c, 0xb3, + 0x81, 0x7d, 0x33, 0xd5, 0x15, 0x86, 0x2f, 0x34, 0x30, 0xe9, 0xdd, 0x75, 0xb8, 0x38, 0xc2, 0x58, + 0x10, 0x6a, 0x33, 0x23, 0x0f, 0x12, 0x63, 0x81, 0xcb, 0x9d, 0x85, 0x67, 0x8e, 0x6a, 0x3c, 0x55, + 0x55, 0xf8, 0xae, 0xbd, 0xeb, 0xa4, 0xb4, 0xbd, 0x4e, 0x4a, 0xfb, 0xdc, 0x49, 0x69, 0x8f, 0xf6, + 0x53, 0x63, 0x7b, 0xfb, 0xa9, 0xb1, 0x4f, 0xfb, 0xa9, 0x31, 0x70, 0xa2, 0x46, 0xdb, 0x83, 0x97, + 0x2f, 0x00, 0xb5, 0xbe, 0x4b, 0x8b, 0xda, 0x9d, 0xb9, 0x81, 0x8b, 0x5d, 0x16, 0xb1, 0x0a, 0x5f, + 0xea, 0xa1, 0xfc, 0xca, 0xfa, 0x6b, 0x3d, 0x91, 0xf7, 0x98, 0x57, 0x04, 0xf3, 0x6d, 0x89, 0x78, + 0xef, 0xcb, 0x95, 0x45, 0xae, 0xac, 0x72, 0x1d, 0x7d, 0x66, 0x60, 0xae, 0xbc, 0x5a, 0x2c, 0xa8, + 0xbf, 0x92, 0x5f, 0xf5, 0x63, 0x1e, 0x2e, 0x97, 0x13, 0xc0, 0x5c, 0x4e, 0x21, 0xab, 0x11, 0x3e, + 0x47, 0x96, 0x7e, 0x06, 0x00, 0x00, 0xff, 0xff, 0x9a, 0x6b, 0x40, 0xed, 0x8a, 0x0b, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1399,10 +1379,12 @@ func (m *QueryProposalRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if m.Proposal != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.Proposal)) + if len(m.Agent) > 0 { + i -= len(m.Agent) + copy(dAtA[i:], m.Agent) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Agent))) i-- - dAtA[i] = 0x8 + dAtA[i] = 0xa } return len(dAtA) - i, nil } @@ -1467,7 +1449,7 @@ func (m *QueryProposalResponse_Proposal) MarshalToSizedBuffer(dAtA []byte) (int, copy(dAtA[i:], m.Metadata) i = encodeVarintQuery(dAtA, i, uint64(len(m.Metadata))) i-- - dAtA[i] = 0x32 + dAtA[i] = 0x2a } if len(m.PostActions) > 0 { for iNdEx := len(m.PostActions) - 1; iNdEx >= 0; iNdEx-- { @@ -1480,7 +1462,7 @@ func (m *QueryProposalResponse_Proposal) MarshalToSizedBuffer(dAtA []byte) (int, i = encodeVarintQuery(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x2a + dAtA[i] = 0x22 } } if len(m.PreActions) > 0 { @@ -1494,16 +1476,9 @@ func (m *QueryProposalResponse_Proposal) MarshalToSizedBuffer(dAtA []byte) (int, i = encodeVarintQuery(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x22 + dAtA[i] = 0x1a } } - if len(m.Agent) > 0 { - i -= len(m.Agent) - copy(dAtA[i:], m.Agent) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Agent))) - i-- - dAtA[i] = 0x1a - } if len(m.Proposer) > 0 { i -= len(m.Proposer) copy(dAtA[i:], m.Proposer) @@ -1511,10 +1486,12 @@ func (m *QueryProposalResponse_Proposal) MarshalToSizedBuffer(dAtA []byte) (int, i-- dAtA[i] = 0x12 } - if m.Id != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.Id)) + if len(m.Agent) > 0 { + i -= len(m.Agent) + copy(dAtA[i:], m.Agent) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Agent))) i-- - dAtA[i] = 0x8 + dAtA[i] = 0xa } return len(dAtA) - i, nil } @@ -1628,7 +1605,7 @@ func (m *QueryProposalsResponse_Proposal) MarshalToSizedBuffer(dAtA []byte) (int copy(dAtA[i:], m.Metadata) i = encodeVarintQuery(dAtA, i, uint64(len(m.Metadata))) i-- - dAtA[i] = 0x32 + dAtA[i] = 0x2a } if len(m.PostActions) > 0 { for iNdEx := len(m.PostActions) - 1; iNdEx >= 0; iNdEx-- { @@ -1641,7 +1618,7 @@ func (m *QueryProposalsResponse_Proposal) MarshalToSizedBuffer(dAtA []byte) (int i = encodeVarintQuery(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x2a + dAtA[i] = 0x22 } } if len(m.PreActions) > 0 { @@ -1655,16 +1632,9 @@ func (m *QueryProposalsResponse_Proposal) MarshalToSizedBuffer(dAtA []byte) (int i = encodeVarintQuery(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x22 + dAtA[i] = 0x1a } } - if len(m.Agent) > 0 { - i -= len(m.Agent) - copy(dAtA[i:], m.Agent) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Agent))) - i-- - dAtA[i] = 0x1a - } if len(m.Proposer) > 0 { i -= len(m.Proposer) copy(dAtA[i:], m.Proposer) @@ -1672,10 +1642,12 @@ func (m *QueryProposalsResponse_Proposal) MarshalToSizedBuffer(dAtA []byte) (int i-- dAtA[i] = 0x12 } - if m.Id != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.Id)) + if len(m.Agent) > 0 { + i -= len(m.Agent) + copy(dAtA[i:], m.Agent) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Agent))) i-- - dAtA[i] = 0x8 + dAtA[i] = 0xa } return len(dAtA) - i, nil } @@ -1810,8 +1782,9 @@ func (m *QueryProposalRequest) Size() (n int) { } var l int _ = l - if m.Proposal != 0 { - n += 1 + sovQuery(uint64(m.Proposal)) + l = len(m.Agent) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) } return n } @@ -1835,14 +1808,11 @@ func (m *QueryProposalResponse_Proposal) Size() (n int) { } var l int _ = l - if m.Id != 0 { - n += 1 + sovQuery(uint64(m.Id)) - } - l = len(m.Proposer) + l = len(m.Agent) if l > 0 { n += 1 + l + sovQuery(uint64(l)) } - l = len(m.Agent) + l = len(m.Proposer) if l > 0 { n += 1 + l + sovQuery(uint64(l)) } @@ -1903,14 +1873,11 @@ func (m *QueryProposalsResponse_Proposal) Size() (n int) { } var l int _ = l - if m.Id != 0 { - n += 1 + sovQuery(uint64(m.Id)) - } - l = len(m.Proposer) + l = len(m.Agent) if l > 0 { n += 1 + l + sovQuery(uint64(l)) } - l = len(m.Agent) + l = len(m.Proposer) if l > 0 { n += 1 + l + sovQuery(uint64(l)) } @@ -2690,10 +2657,10 @@ func (m *QueryProposalRequest) Unmarshal(dAtA []byte) error { } switch fieldNum { case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Proposal", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Agent", wireType) } - m.Proposal = 0 + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -2703,11 +2670,24 @@ func (m *QueryProposalRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Proposal |= uint64(b&0x7F) << shift + 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.Agent = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -2845,27 +2825,8 @@ func (m *QueryProposalResponse_Proposal) Unmarshal(dAtA []byte) error { } 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 ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Id |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Proposer", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Agent", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -2893,11 +2854,11 @@ func (m *QueryProposalResponse_Proposal) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Proposer = string(dAtA[iNdEx:postIndex]) + m.Agent = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 3: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Agent", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Proposer", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -2925,9 +2886,9 @@ func (m *QueryProposalResponse_Proposal) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Agent = string(dAtA[iNdEx:postIndex]) + m.Proposer = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 4: + case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field PreActions", wireType) } @@ -2961,7 +2922,7 @@ func (m *QueryProposalResponse_Proposal) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 5: + case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field PostActions", wireType) } @@ -2995,7 +2956,7 @@ func (m *QueryProposalResponse_Proposal) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 6: + case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) } @@ -3284,27 +3245,8 @@ func (m *QueryProposalsResponse_Proposal) Unmarshal(dAtA []byte) error { } 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 ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Id |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Proposer", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Agent", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -3332,11 +3274,11 @@ func (m *QueryProposalsResponse_Proposal) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Proposer = string(dAtA[iNdEx:postIndex]) + m.Agent = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 3: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Agent", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Proposer", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -3364,9 +3306,9 @@ func (m *QueryProposalsResponse_Proposal) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Agent = string(dAtA[iNdEx:postIndex]) + m.Proposer = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 4: + case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field PreActions", wireType) } @@ -3400,7 +3342,7 @@ func (m *QueryProposalsResponse_Proposal) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 5: + case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field PostActions", wireType) } @@ -3434,7 +3376,7 @@ func (m *QueryProposalsResponse_Proposal) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 6: + case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) } diff --git a/x/escrow/andromeda/escrow/v1alpha1/query.pb.gw.go b/x/escrow/andromeda/escrow/v1alpha1/query.pb.gw.go index 3311c91..367e3bd 100644 --- a/x/escrow/andromeda/escrow/v1alpha1/query.pb.gw.go +++ b/x/escrow/andromeda/escrow/v1alpha1/query.pb.gw.go @@ -152,15 +152,15 @@ func request_Query_Proposal_0(ctx context.Context, marshaler runtime.Marshaler, _ = err ) - val, ok = pathParams["proposal"] + val, ok = pathParams["agent"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "proposal") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "agent") } - protoReq.Proposal, err = runtime.Uint64(val) + protoReq.Agent, err = runtime.String(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "proposal", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "agent", err) } msg, err := client.Proposal(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) @@ -179,15 +179,15 @@ func local_request_Query_Proposal_0(ctx context.Context, marshaler runtime.Marsh _ = err ) - val, ok = pathParams["proposal"] + val, ok = pathParams["agent"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "proposal") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "agent") } - protoReq.Proposal, err = runtime.Uint64(val) + protoReq.Agent, err = runtime.String(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "proposal", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "agent", err) } msg, err := server.Proposal(ctx, &protoReq) @@ -503,7 +503,7 @@ var ( pattern_Query_Agents_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"andromeda", "escrow", "v1alpha1", "agents"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_Query_Proposal_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"andromeda", "escrow", "v1alpha1", "proposals", "proposal"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_Proposal_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"andromeda", "escrow", "v1alpha1", "agents", "agent", "proposal"}, "", runtime.AssumeColonVerbOpt(true))) pattern_Query_Proposals_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"andromeda", "escrow", "v1alpha1", "proposals"}, "", runtime.AssumeColonVerbOpt(true))) ) diff --git a/x/escrow/andromeda/escrow/v1alpha1/tx.pb.go b/x/escrow/andromeda/escrow/v1alpha1/tx.pb.go index 1fd9cc9..02a6500 100644 --- a/x/escrow/andromeda/escrow/v1alpha1/tx.pb.go +++ b/x/escrow/andromeda/escrow/v1alpha1/tx.pb.go @@ -302,8 +302,6 @@ func (m *MsgSubmitProposal) GetMetadata() string { // MsgSubmitProposalResponse is the Msg/SubmitProposal response type. type MsgSubmitProposalResponse struct { - // the identifier of the submitted proposal - Proposal uint64 `protobuf:"varint,1,opt,name=proposal,proto3" json:"proposal,omitempty"` } func (m *MsgSubmitProposalResponse) Reset() { *m = MsgSubmitProposalResponse{} } @@ -339,24 +337,15 @@ func (m *MsgSubmitProposalResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgSubmitProposalResponse proto.InternalMessageInfo -func (m *MsgSubmitProposalResponse) GetProposal() uint64 { - if m != nil { - return m.Proposal - } - return 0 -} - // MsgExec is the Msg/Exec request type. type MsgExec struct { - // the identifier of the proposal - Proposal uint64 `protobuf:"varint,1,opt,name=proposal,proto3" json:"proposal,omitempty"` // the address of the account executing the proposal - Executor string `protobuf:"bytes,2,opt,name=executor,proto3" json:"executor,omitempty"` + Executor string `protobuf:"bytes,1,opt,name=executor,proto3" json:"executor,omitempty"` // the address of the agent in charge - Agent string `protobuf:"bytes,3,opt,name=agent,proto3" json:"agent,omitempty"` + Agent string `protobuf:"bytes,2,opt,name=agent,proto3" json:"agent,omitempty"` // the messages which will be executed on the execution // Note: the signer of each message must be either the executor or the agent. - Actions []*types.Any `protobuf:"bytes,4,rep,name=actions,proto3" json:"actions,omitempty"` + Actions []*types.Any `protobuf:"bytes,3,rep,name=actions,proto3" json:"actions,omitempty"` } func (m *MsgExec) Reset() { *m = MsgExec{} } @@ -392,13 +381,6 @@ func (m *MsgExec) XXX_DiscardUnknown() { var xxx_messageInfo_MsgExec proto.InternalMessageInfo -func (m *MsgExec) GetProposal() uint64 { - if m != nil { - return m.Proposal - } - return 0 -} - func (m *MsgExec) GetExecutor() string { if m != nil { return m.Executor @@ -473,49 +455,48 @@ func init() { } var fileDescriptor_78c48d1f0ffd37da = []byte{ - // 670 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x95, 0xcf, 0x6b, 0x13, 0x41, - 0x14, 0xc7, 0xbb, 0x9b, 0xd4, 0xb4, 0x2f, 0xb5, 0xd2, 0xb5, 0xd8, 0x64, 0xc5, 0x50, 0x16, 0x84, - 0x18, 0x74, 0x97, 0xc4, 0x6a, 0x61, 0x3d, 0x25, 0x52, 0xf4, 0x60, 0x20, 0x6c, 0xb5, 0x88, 0x14, - 0xc2, 0x74, 0x33, 0x6e, 0x83, 0xd9, 0x9d, 0x65, 0x67, 0x52, 0xb7, 0x37, 0xf1, 0xe6, 0xcd, 0x83, - 0x7f, 0x81, 0x47, 0x4f, 0x3d, 0x08, 0xfe, 0x0b, 0xd2, 0x53, 0xf1, 0xe4, 0x51, 0xd2, 0x43, 0xc1, - 0x93, 0x7f, 0x82, 0xec, 0x4e, 0x66, 0xd2, 0x56, 0xf2, 0xc3, 0x53, 0xf2, 0xf6, 0x7d, 0xde, 0xf7, - 0xcd, 0x7c, 0x67, 0xde, 0x2e, 0x18, 0x28, 0xe8, 0x44, 0xc4, 0xc7, 0x1d, 0x64, 0x61, 0xea, 0x46, - 0xe4, 0xad, 0x75, 0x50, 0x45, 0xbd, 0x70, 0x1f, 0x55, 0x2d, 0x16, 0x9b, 0x61, 0x44, 0x18, 0xd1, - 0x8a, 0x92, 0x31, 0x39, 0x63, 0x0a, 0x46, 0x5f, 0x73, 0x09, 0xf5, 0x09, 0xb5, 0x7c, 0xea, 0x59, - 0x07, 0xd5, 0xe4, 0x87, 0xd7, 0xe8, 0x45, 0x9e, 0x68, 0xa7, 0x91, 0xc5, 0x03, 0x91, 0xf2, 0x08, - 0xf1, 0x7a, 0xd8, 0x4a, 0xa3, 0xbd, 0xfe, 0x6b, 0x0b, 0x05, 0x87, 0x3c, 0x65, 0x7c, 0x50, 0xe0, - 0x5a, 0x93, 0x7a, 0x2f, 0xc2, 0x0e, 0x62, 0xb8, 0x85, 0x22, 0xe4, 0x53, 0xed, 0x21, 0x2c, 0xa2, - 0x3e, 0xdb, 0x27, 0x51, 0x97, 0x1d, 0x16, 0x94, 0x75, 0xa5, 0xbc, 0xd8, 0x28, 0xfc, 0xf8, 0x7a, - 0x6f, 0x75, 0xa8, 0x59, 0xef, 0x74, 0x22, 0x4c, 0xe9, 0x36, 0x8b, 0xba, 0x81, 0xe7, 0x8c, 0x50, - 0xcd, 0x84, 0xeb, 0x3e, 0x8a, 0xdb, 0x3e, 0x66, 0xa8, 0x83, 0x18, 0x6a, 0xf7, 0x70, 0xe0, 0xb1, - 0xfd, 0x82, 0xba, 0xae, 0x94, 0xb3, 0xce, 0x8a, 0x8f, 0xe2, 0xe6, 0x30, 0xf3, 0x2c, 0x4d, 0xd8, - 0xcb, 0xef, 0xcf, 0x8e, 0x2a, 0xa3, 0x7a, 0xa3, 0x08, 0x6b, 0x97, 0x96, 0xe2, 0x60, 0x1a, 0x92, - 0x80, 0x62, 0xc3, 0x81, 0xe5, 0x26, 0xf5, 0x1e, 0x47, 0x18, 0x31, 0x5c, 0xf7, 0x70, 0xc0, 0xb4, - 0x1a, 0xe4, 0xdc, 0x24, 0x24, 0xd1, 0xd4, 0x25, 0x0a, 0xd0, 0x5e, 0x4a, 0x1a, 0x8a, 0xc8, 0x78, - 0x0a, 0x37, 0x2e, 0x6a, 0x8a, 0x6e, 0x9a, 0x09, 0xf3, 0x28, 0x79, 0x30, 0x55, 0x99, 0x63, 0xc6, - 0x27, 0x15, 0x56, 0x9a, 0xd4, 0xdb, 0xee, 0xef, 0xf9, 0x5d, 0xd6, 0x8a, 0x48, 0x48, 0x28, 0xea, - 0x69, 0x1b, 0xb0, 0x10, 0xa6, 0xff, 0xf1, 0xf4, 0x25, 0x4a, 0x72, 0xd4, 0x5b, 0x9d, 0xa9, 0xb7, - 0xf6, 0x00, 0xf2, 0x61, 0x84, 0xdb, 0xc8, 0x65, 0x5d, 0x12, 0xd0, 0x42, 0x66, 0x3d, 0x53, 0xce, - 0xd7, 0x56, 0x4d, 0x7e, 0xe2, 0xa6, 0x38, 0x71, 0xb3, 0x1e, 0x1c, 0x3a, 0x10, 0x46, 0xb8, 0xce, - 0x39, 0x6d, 0x13, 0x96, 0x42, 0x42, 0x99, 0xac, 0xcb, 0x4e, 0xa8, 0xcb, 0x27, 0xa4, 0x28, 0xd4, - 0x61, 0x41, 0x1c, 0x70, 0x61, 0x3e, 0x59, 0xa2, 0x23, 0x63, 0xfb, 0x6a, 0xe2, 0xaf, 0xdc, 0x8a, - 0xb1, 0x09, 0xc5, 0x7f, 0x5c, 0x91, 0x1e, 0xeb, 0xc2, 0x1d, 0xd4, 0x4b, 0xdd, 0xc9, 0x3a, 0x32, - 0x36, 0x8e, 0x15, 0xc8, 0x35, 0xa9, 0xb7, 0x15, 0x63, 0x77, 0x12, 0x97, 0x38, 0x8c, 0x63, 0xec, - 0xf6, 0x93, 0x4b, 0x30, 0xcd, 0x2e, 0x49, 0x8e, 0x1c, 0xce, 0xcc, 0xe6, 0xb0, 0x09, 0xb9, 0x59, - 0x5c, 0x12, 0xd0, 0xd0, 0x05, 0xd1, 0xce, 0x58, 0x49, 0x07, 0x2c, 0xd9, 0x8b, 0xd8, 0x7b, 0xed, - 0x5b, 0x06, 0x32, 0x4d, 0xea, 0x69, 0x01, 0x2c, 0x5d, 0x18, 0xbc, 0x8a, 0x39, 0x76, 0xee, 0xcd, - 0x4b, 0x93, 0xa1, 0xd7, 0x66, 0x67, 0xa5, 0xe7, 0x6f, 0x20, 0x7f, 0x7e, 0x84, 0xee, 0x4c, 0x96, - 0x38, 0x87, 0xea, 0xd5, 0x99, 0x51, 0xd9, 0x8c, 0xc1, 0xf2, 0xa5, 0x81, 0xb8, 0x3b, 0x59, 0xe4, - 0x22, 0xad, 0x6f, 0xfc, 0x0f, 0x2d, 0xbb, 0xee, 0x40, 0x36, 0xbd, 0x36, 0xc6, 0xe4, 0xea, 0x84, - 0xd1, 0x2b, 0xd3, 0x19, 0xa1, 0xab, 0xcf, 0xbf, 0x3b, 0x3b, 0xaa, 0x28, 0x8d, 0x3f, 0xca, 0xf7, - 0x41, 0x49, 0x39, 0x19, 0x94, 0x94, 0x5f, 0x83, 0x92, 0xf2, 0xf1, 0xb4, 0x34, 0x77, 0x72, 0x5a, - 0x9a, 0xfb, 0x79, 0x5a, 0x9a, 0x83, 0x5b, 0x2e, 0xf1, 0xc7, 0x0b, 0x36, 0x72, 0xcf, 0xe3, 0x56, - 0x72, 0x5d, 0x5a, 0xca, 0xab, 0xf2, 0xd8, 0x2f, 0xc0, 0x23, 0x1e, 0x8b, 0xf0, 0xb3, 0x9a, 0xa9, - 0x6f, 0xbd, 0xfc, 0xa2, 0x16, 0xeb, 0x52, 0x76, 0x8b, 0xcb, 0xee, 0x0c, 0x89, 0xe3, 0x73, 0xb9, - 0x5d, 0x9e, 0xdb, 0x15, 0xb9, 0x81, 0x7a, 0x7b, 0x6c, 0x6e, 0xf7, 0x49, 0xab, 0x21, 0xde, 0xc6, - 0xbf, 0xd5, 0x9b, 0x92, 0xb3, 0x6d, 0x0e, 0xda, 0xb6, 0x20, 0xf7, 0xae, 0xa4, 0xb7, 0xfc, 0xfe, - 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x55, 0x85, 0x7c, 0x0d, 0xb8, 0x06, 0x00, 0x00, + // 655 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x94, 0x4d, 0x6f, 0xd3, 0x4c, + 0x10, 0xc7, 0x6b, 0xa7, 0x7d, 0xd2, 0x4e, 0xfa, 0x14, 0xd5, 0x54, 0x34, 0x71, 0x45, 0x54, 0x59, + 0x42, 0x0a, 0x11, 0xd8, 0x4a, 0x28, 0x20, 0x99, 0x53, 0x82, 0x2a, 0x38, 0x10, 0x29, 0x4a, 0xa1, + 0x42, 0xa8, 0x52, 0xb4, 0x75, 0x16, 0x37, 0x22, 0xf6, 0x5a, 0xbb, 0x9b, 0xe2, 0xde, 0x10, 0x37, + 0x6e, 0x1c, 0xf8, 0x04, 0x1c, 0x39, 0xa0, 0x1e, 0x90, 0xf8, 0x0a, 0x88, 0x53, 0xc5, 0x89, 0x23, + 0x4a, 0x0f, 0x95, 0x38, 0xf1, 0x11, 0x90, 0xbd, 0xd9, 0xed, 0x0b, 0xca, 0x4b, 0x4f, 0xc9, 0x78, + 0x7e, 0xf3, 0x9f, 0xd9, 0x99, 0xd9, 0x05, 0x0b, 0x85, 0x1d, 0x4a, 0x02, 0xdc, 0x41, 0x0e, 0x66, + 0x1e, 0x25, 0xaf, 0x9d, 0xfd, 0x0a, 0xea, 0x45, 0x7b, 0xa8, 0xe2, 0xf0, 0xd8, 0x8e, 0x28, 0xe1, + 0xc4, 0x28, 0x28, 0xc6, 0x16, 0x8c, 0x2d, 0x19, 0x73, 0xd5, 0x23, 0x2c, 0x20, 0xcc, 0x09, 0x98, + 0xef, 0xec, 0x57, 0x92, 0x1f, 0x11, 0x63, 0x16, 0x84, 0xa3, 0x9d, 0x5a, 0x8e, 0x30, 0xa4, 0xcb, + 0x27, 0xc4, 0xef, 0x61, 0x27, 0xb5, 0x76, 0xfb, 0x2f, 0x1d, 0x14, 0x1e, 0x08, 0x97, 0xf5, 0x4e, + 0x83, 0x2b, 0x0d, 0xe6, 0x3f, 0x8b, 0x3a, 0x88, 0xe3, 0x26, 0xa2, 0x28, 0x60, 0xc6, 0x3d, 0x58, + 0x40, 0x7d, 0xbe, 0x47, 0x68, 0x97, 0x1f, 0xe4, 0xb5, 0x75, 0xad, 0xb4, 0x50, 0xcf, 0xff, 0xf8, + 0x72, 0x7b, 0x65, 0xa8, 0x59, 0xeb, 0x74, 0x28, 0x66, 0x6c, 0x8b, 0xd3, 0x6e, 0xe8, 0xb7, 0x4e, + 0x51, 0xc3, 0x86, 0xab, 0x01, 0x8a, 0xdb, 0x01, 0xe6, 0xa8, 0x83, 0x38, 0x6a, 0xf7, 0x70, 0xe8, + 0xf3, 0xbd, 0xbc, 0xbe, 0xae, 0x95, 0x66, 0x5b, 0xcb, 0x01, 0x8a, 0x1b, 0x43, 0xcf, 0x93, 0xd4, + 0xe1, 0x2e, 0xbd, 0x3d, 0x39, 0x2c, 0x9f, 0xc6, 0x5b, 0x05, 0x58, 0xbd, 0x50, 0x4a, 0x0b, 0xb3, + 0x88, 0x84, 0x0c, 0x5b, 0x2d, 0x58, 0x6a, 0x30, 0xff, 0x21, 0xc5, 0x88, 0xe3, 0x9a, 0x8f, 0x43, + 0x6e, 0x54, 0x21, 0xeb, 0x25, 0x26, 0xa1, 0x13, 0x4b, 0x94, 0xa0, 0xbb, 0x98, 0x24, 0x94, 0x96, + 0xf5, 0x18, 0xae, 0x9d, 0xd7, 0x94, 0xd9, 0x0c, 0x1b, 0xe6, 0x50, 0xf2, 0x61, 0xa2, 0xb2, 0xc0, + 0xac, 0x0f, 0x3a, 0x2c, 0x37, 0x98, 0xbf, 0xd5, 0xdf, 0x0d, 0xba, 0xbc, 0x49, 0x49, 0x44, 0x18, + 0xea, 0x19, 0x1b, 0x30, 0x1f, 0xa5, 0xff, 0xf1, 0xe4, 0x12, 0x15, 0x79, 0x9a, 0x5b, 0x9f, 0x2a, + 0xb7, 0x71, 0x17, 0x72, 0x11, 0xc5, 0x6d, 0xe4, 0xf1, 0x2e, 0x09, 0x59, 0x3e, 0xb3, 0x9e, 0x29, + 0xe5, 0xaa, 0x2b, 0xb6, 0x98, 0xb8, 0x2d, 0x27, 0x6e, 0xd7, 0xc2, 0x83, 0x16, 0x44, 0x14, 0xd7, + 0x04, 0x67, 0xdc, 0x87, 0xc5, 0x88, 0x30, 0xae, 0xe2, 0x66, 0xc7, 0xc4, 0xe5, 0x12, 0x52, 0x06, + 0x9a, 0x30, 0x2f, 0x07, 0x9c, 0x9f, 0x4b, 0x4a, 0x6c, 0x29, 0xdb, 0xfd, 0x3f, 0xe9, 0xaf, 0x3a, + 0x8a, 0xb5, 0x06, 0x85, 0x7f, 0xba, 0xa2, 0x26, 0xfa, 0x59, 0x83, 0x6c, 0x83, 0xf9, 0x9b, 0x31, + 0xf6, 0x92, 0x4e, 0xe1, 0x18, 0x7b, 0xfd, 0x69, 0x86, 0xa9, 0xc8, 0x4b, 0x77, 0xca, 0x86, 0xec, + 0x34, 0x5d, 0x92, 0xd0, 0xf0, 0x34, 0x32, 0x9d, 0xb5, 0x9c, 0x5e, 0x94, 0xa4, 0x5e, 0x79, 0x86, + 0xea, 0xd7, 0x0c, 0x64, 0x1a, 0xcc, 0x37, 0x42, 0x58, 0x3c, 0x77, 0x81, 0xca, 0xf6, 0xc8, 0xfb, + 0x6b, 0x5f, 0xd8, 0x70, 0xb3, 0x3a, 0x3d, 0xab, 0xf6, 0xf3, 0x15, 0xe4, 0xce, 0x5e, 0x85, 0x9b, + 0xe3, 0x25, 0xce, 0xa0, 0x66, 0x65, 0x6a, 0x54, 0x25, 0xe3, 0xb0, 0x74, 0x61, 0xb1, 0x6f, 0x8d, + 0x17, 0x39, 0x4f, 0x9b, 0x1b, 0x97, 0xa1, 0x55, 0xd6, 0x6d, 0x98, 0x4d, 0x57, 0xc3, 0x1a, 0x1f, + 0x9d, 0x30, 0x66, 0x79, 0x32, 0x23, 0x75, 0xcd, 0xb9, 0x37, 0x27, 0x87, 0x65, 0xad, 0xfe, 0x47, + 0xfb, 0x36, 0x28, 0x6a, 0x47, 0x83, 0xa2, 0xf6, 0x6b, 0x50, 0xd4, 0xde, 0x1f, 0x17, 0x67, 0x8e, + 0x8e, 0x8b, 0x33, 0x3f, 0x8f, 0x8b, 0x33, 0x70, 0xdd, 0x23, 0xc1, 0x68, 0xc1, 0x7a, 0xf6, 0x69, + 0xdc, 0x4c, 0xd6, 0xa5, 0xa9, 0xbd, 0x28, 0x8d, 0x7c, 0xc9, 0x1f, 0x08, 0x5b, 0x9a, 0x1f, 0xf5, + 0x4c, 0x6d, 0xf3, 0xf9, 0x27, 0xbd, 0x50, 0x53, 0xb2, 0x9b, 0x42, 0x76, 0x7b, 0x48, 0x7c, 0x3f, + 0xe3, 0xdb, 0x11, 0xbe, 0x1d, 0xe9, 0x1b, 0xe8, 0x37, 0x46, 0xfa, 0x76, 0x1e, 0x35, 0xeb, 0xf2, + 0x55, 0xfd, 0xad, 0xaf, 0x29, 0xce, 0x75, 0x05, 0xe8, 0xba, 0x92, 0xdc, 0xfd, 0x2f, 0xdd, 0xf2, + 0x3b, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x75, 0xda, 0xcb, 0x9f, 0x80, 0x06, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -924,11 +905,6 @@ func (m *MsgSubmitProposalResponse) MarshalToSizedBuffer(dAtA []byte) (int, erro _ = i var l int _ = l - if m.Proposal != 0 { - i = encodeVarintTx(dAtA, i, uint64(m.Proposal)) - i-- - dAtA[i] = 0x8 - } return len(dAtA) - i, nil } @@ -963,7 +939,7 @@ func (m *MsgExec) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintTx(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x22 + dAtA[i] = 0x1a } } if len(m.Agent) > 0 { @@ -971,19 +947,14 @@ func (m *MsgExec) MarshalToSizedBuffer(dAtA []byte) (int, error) { copy(dAtA[i:], m.Agent) i = encodeVarintTx(dAtA, i, uint64(len(m.Agent))) i-- - dAtA[i] = 0x1a + dAtA[i] = 0x12 } if len(m.Executor) > 0 { i -= len(m.Executor) copy(dAtA[i:], m.Executor) i = encodeVarintTx(dAtA, i, uint64(len(m.Executor))) i-- - dAtA[i] = 0x12 - } - if m.Proposal != 0 { - i = encodeVarintTx(dAtA, i, uint64(m.Proposal)) - i-- - dAtA[i] = 0x8 + dAtA[i] = 0xa } return len(dAtA) - i, nil } @@ -1112,9 +1083,6 @@ func (m *MsgSubmitProposalResponse) Size() (n int) { } var l int _ = l - if m.Proposal != 0 { - n += 1 + sovTx(uint64(m.Proposal)) - } return n } @@ -1124,9 +1092,6 @@ func (m *MsgExec) Size() (n int) { } var l int _ = l - if m.Proposal != 0 { - n += 1 + sovTx(uint64(m.Proposal)) - } l = len(m.Executor) if l > 0 { n += 1 + l + sovTx(uint64(l)) @@ -1717,25 +1682,6 @@ func (m *MsgSubmitProposalResponse) Unmarshal(dAtA []byte) error { return fmt.Errorf("proto: MsgSubmitProposalResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Proposal", wireType) - } - m.Proposal = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Proposal |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } default: iNdEx = preIndex skippy, err := skipTx(dAtA[iNdEx:]) @@ -1787,25 +1733,6 @@ func (m *MsgExec) Unmarshal(dAtA []byte) error { } switch fieldNum { case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Proposal", wireType) - } - m.Proposal = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Proposal |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Executor", wireType) } @@ -1837,7 +1764,7 @@ func (m *MsgExec) Unmarshal(dAtA []byte) error { } m.Executor = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 3: + case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Agent", wireType) } @@ -1869,7 +1796,7 @@ func (m *MsgExec) Unmarshal(dAtA []byte) error { } m.Agent = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 4: + case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Actions", wireType) } diff --git a/x/escrow/andromeda/escrow/v1alpha1/types.pb.go b/x/escrow/andromeda/escrow/v1alpha1/types.pb.go index 1cd4740..c177d3a 100644 --- a/x/escrow/andromeda/escrow/v1alpha1/types.pb.go +++ b/x/escrow/andromeda/escrow/v1alpha1/types.pb.go @@ -119,14 +119,12 @@ func (m *Agent) GetCreator() []byte { type Proposal struct { // the address of the proposer Proposer []byte `protobuf:"bytes,1,opt,name=proposer,proto3" json:"proposer,omitempty"` - // the address of the agent in charge - Agent []byte `protobuf:"bytes,2,opt,name=agent,proto3" json:"agent,omitempty"` // the messages which has been executed on the submission - PreActions []*types.Any `protobuf:"bytes,3,rep,name=pre_actions,json=preActions,proto3" json:"pre_actions,omitempty"` + PreActions []*types.Any `protobuf:"bytes,2,rep,name=pre_actions,json=preActions,proto3" json:"pre_actions,omitempty"` // the messages which will be executed after the actions included in Msg/Exec - PostActions []*types.Any `protobuf:"bytes,4,rep,name=post_actions,json=postActions,proto3" json:"post_actions,omitempty"` + PostActions []*types.Any `protobuf:"bytes,3,rep,name=post_actions,json=postActions,proto3" json:"post_actions,omitempty"` // any arbitrary metadata attached to the proposal - Metadata string `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"` + Metadata string `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"` } func (m *Proposal) Reset() { *m = Proposal{} } @@ -169,13 +167,6 @@ func (m *Proposal) GetProposer() []byte { return nil } -func (m *Proposal) GetAgent() []byte { - if m != nil { - return m.Agent - } - return nil -} - func (m *Proposal) GetPreActions() []*types.Any { if m != nil { return m.PreActions @@ -208,32 +199,31 @@ func init() { } var fileDescriptor_20554566221d01d5 = []byte{ - // 386 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x91, 0x4f, 0x8b, 0xd3, 0x40, - 0x18, 0xc6, 0x3b, 0xe9, 0x1f, 0xeb, 0xb4, 0x17, 0x63, 0x0f, 0x69, 0xc5, 0x50, 0x0b, 0x85, 0x9c, - 0x26, 0x54, 0x11, 0x25, 0x9e, 0x52, 0x28, 0x5e, 0x14, 0x42, 0x10, 0x11, 0x29, 0x94, 0xb7, 0xe9, - 0x98, 0x0a, 0x49, 0x66, 0x98, 0x8c, 0xda, 0x7e, 0x0b, 0x3f, 0x83, 0x47, 0x3f, 0x49, 0xd9, 0x53, - 0x8f, 0x7b, 0x5c, 0xd2, 0xdb, 0x5e, 0xf7, 0x0b, 0x2c, 0xc9, 0x74, 0xc2, 0x5e, 0xba, 0xb7, 0x3c, - 0xfc, 0x7e, 0xcf, 0x1b, 0xde, 0x79, 0xf1, 0x14, 0xb2, 0x8d, 0x60, 0x29, 0xdd, 0x80, 0x4b, 0xf3, - 0x48, 0xb0, 0x3f, 0xee, 0xef, 0x19, 0x24, 0x7c, 0x0b, 0x33, 0x57, 0xee, 0x39, 0xcd, 0x09, 0x17, - 0x4c, 0x32, 0x73, 0x58, 0x6b, 0x44, 0x69, 0x44, 0x6b, 0xa3, 0x61, 0xcc, 0x58, 0x9c, 0x50, 0xb7, - 0x12, 0xd7, 0xbf, 0x7e, 0xb8, 0x90, 0xed, 0x55, 0x6b, 0xf2, 0x1e, 0x77, 0x02, 0x10, 0x90, 0xe6, - 0x26, 0xc1, 0xcf, 0x53, 0xd8, 0xad, 0x52, 0x2a, 0x61, 0x03, 0x12, 0x56, 0x09, 0xcd, 0x62, 0xb9, - 0xb5, 0xd0, 0x18, 0x39, 0xad, 0xf0, 0x59, 0x0a, 0xbb, 0xcf, 0x67, 0xf2, 0xa9, 0x02, 0x93, 0x57, - 0xb8, 0xed, 0xc7, 0x34, 0x93, 0xa6, 0x85, 0x9f, 0x44, 0x82, 0x82, 0x64, 0xa2, 0x92, 0xfb, 0xa1, - 0x8e, 0x93, 0x03, 0xc2, 0xdd, 0x40, 0x30, 0xce, 0x72, 0x48, 0xcc, 0x11, 0xee, 0xf2, 0xea, 0x9b, - 0x6a, 0xaf, 0xce, 0xe6, 0x00, 0xb7, 0xa1, 0x9c, 0x65, 0x19, 0x15, 0x50, 0xc1, 0x7c, 0x8b, 0x7b, - 0x5c, 0xd0, 0x15, 0x44, 0xf2, 0x27, 0xcb, 0x72, 0xab, 0x39, 0x6e, 0x3a, 0xbd, 0xd7, 0x03, 0xa2, - 0x96, 0x21, 0x7a, 0x19, 0xe2, 0x67, 0xfb, 0x10, 0x73, 0x41, 0x7d, 0xe5, 0x99, 0xef, 0x70, 0x9f, - 0xb3, 0x5c, 0xd6, 0xbd, 0xd6, 0x23, 0xbd, 0x5e, 0x69, 0xea, 0xe2, 0x08, 0x77, 0xf5, 0xf6, 0x56, - 0x7b, 0x8c, 0x9c, 0xa7, 0x61, 0x9d, 0xe7, 0x77, 0xe8, 0x50, 0xd8, 0xe8, 0x58, 0xd8, 0xe8, 0xa6, - 0xb0, 0xd1, 0xdf, 0x93, 0xdd, 0x38, 0x9e, 0xec, 0xc6, 0xf5, 0xc9, 0x6e, 0xe0, 0x97, 0x11, 0x4b, - 0xc9, 0xc5, 0xc7, 0x9f, 0xe3, 0x2f, 0xe5, 0x91, 0x82, 0xf2, 0xaf, 0x01, 0xfa, 0xee, 0x5c, 0x3c, - 0xe6, 0x07, 0x95, 0x75, 0xfc, 0x67, 0x34, 0xfd, 0xc5, 0xb7, 0xff, 0xc6, 0xd0, 0xaf, 0x27, 0x2f, - 0xd4, 0xe4, 0xaf, 0x67, 0xe3, 0xea, 0x01, 0x5b, 0x2a, 0xb6, 0xd4, 0xac, 0x30, 0xa6, 0x17, 0xd9, - 0xf2, 0x63, 0x30, 0xd7, 0xb7, 0xbc, 0x35, 0x5e, 0xd4, 0x9e, 0xe7, 0x29, 0xd1, 0xf3, 0xb4, 0xb9, - 0xee, 0x54, 0x8f, 0xf5, 0xe6, 0x3e, 0x00, 0x00, 0xff, 0xff, 0xbb, 0x4d, 0xbf, 0x42, 0x83, 0x02, - 0x00, 0x00, + // 376 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x91, 0xc1, 0x4a, 0xeb, 0x40, + 0x18, 0x85, 0x3b, 0x69, 0x6f, 0x6f, 0xef, 0xb4, 0x9b, 0x1b, 0x5d, 0xa4, 0x15, 0x43, 0x2d, 0x14, + 0xb2, 0x9a, 0x50, 0x45, 0x94, 0xb8, 0x4a, 0xa1, 0xb8, 0x51, 0x08, 0x41, 0x44, 0xa4, 0x50, 0xa6, + 0xe9, 0x98, 0x0a, 0x49, 0x66, 0x98, 0x8c, 0xda, 0xbe, 0x85, 0xcf, 0xe0, 0xd2, 0xa5, 0x4f, 0x21, + 0xae, 0xba, 0x74, 0x29, 0xe9, 0xce, 0xad, 0x2f, 0x20, 0xcd, 0x74, 0x82, 0x9b, 0xba, 0xcb, 0xe1, + 0x7c, 0xe7, 0xcf, 0x3f, 0xff, 0x81, 0x5d, 0x9c, 0x4c, 0x38, 0x8d, 0xc9, 0x04, 0xdb, 0x24, 0x0d, + 0x38, 0x7d, 0xb0, 0xef, 0x7b, 0x38, 0x62, 0x53, 0xdc, 0xb3, 0xc5, 0x9c, 0x91, 0x14, 0x31, 0x4e, + 0x05, 0xd5, 0x9b, 0x05, 0x86, 0x24, 0x86, 0x14, 0xd6, 0x6a, 0x86, 0x94, 0x86, 0x11, 0xb1, 0x73, + 0x70, 0x7c, 0x77, 0x63, 0xe3, 0x64, 0x2e, 0x53, 0x9d, 0x63, 0x58, 0xf5, 0x30, 0xc7, 0x71, 0xaa, + 0x23, 0xb8, 0x15, 0xe3, 0xd9, 0x28, 0x26, 0x02, 0x4f, 0xb0, 0xc0, 0xa3, 0x88, 0x24, 0xa1, 0x98, + 0x1a, 0xa0, 0x0d, 0xac, 0x8a, 0xff, 0x3f, 0xc6, 0xb3, 0xf3, 0xb5, 0x73, 0x96, 0x1b, 0x9d, 0x3d, + 0xf8, 0xc7, 0x0d, 0x49, 0x22, 0x74, 0x03, 0xfe, 0x0d, 0x38, 0xc1, 0x82, 0xf2, 0x1c, 0x6e, 0xf8, + 0x4a, 0x76, 0x5e, 0x00, 0xac, 0x79, 0x9c, 0x32, 0x9a, 0xe2, 0x48, 0x6f, 0xc1, 0x1a, 0xcb, 0xbf, + 0x89, 0xe2, 0x0a, 0xad, 0x1f, 0xc2, 0x3a, 0xe3, 0x64, 0x84, 0x03, 0x71, 0x4b, 0x93, 0xd4, 0xd0, + 0xda, 0x65, 0xab, 0xbe, 0xbf, 0x8d, 0xe4, 0xda, 0x48, 0xad, 0x8d, 0xdc, 0x64, 0xee, 0x43, 0xc6, + 0x89, 0x2b, 0x39, 0xfd, 0x08, 0x36, 0x18, 0x4d, 0x45, 0x91, 0x2b, 0xff, 0x92, 0xab, 0xaf, 0x48, + 0x15, 0x6c, 0xc1, 0x9a, 0x7a, 0xa7, 0x51, 0x69, 0x03, 0xeb, 0x9f, 0x5f, 0xe8, 0xfe, 0x17, 0x78, + 0xcd, 0x4c, 0xb0, 0xc8, 0x4c, 0xf0, 0x91, 0x99, 0xe0, 0x71, 0x69, 0x96, 0x16, 0x4b, 0xb3, 0xf4, + 0xbe, 0x34, 0x4b, 0x70, 0x37, 0xa0, 0x31, 0xda, 0x78, 0xe6, 0x3e, 0xbc, 0x58, 0xd5, 0xe1, 0xad, + 0xfe, 0xea, 0x81, 0x6b, 0x6b, 0x63, 0x6d, 0x27, 0x52, 0x2b, 0xf9, 0xa4, 0x95, 0xdd, 0xc1, 0xd5, + 0xb3, 0xd6, 0x74, 0x8b, 0xc9, 0x03, 0x39, 0xf9, 0x72, 0x4d, 0xbc, 0xfd, 0xf0, 0x86, 0xd2, 0x1b, + 0x2a, 0x2f, 0xd3, 0xba, 0x1b, 0xbd, 0xe1, 0xa9, 0xd7, 0x57, 0xad, 0x7d, 0x6a, 0x3b, 0x05, 0xe7, + 0x38, 0x12, 0x74, 0x1c, 0x45, 0x8e, 0xab, 0xf9, 0xb1, 0x0e, 0xbe, 0x03, 0x00, 0x00, 0xff, 0xff, + 0xf8, 0x02, 0xde, 0x54, 0x6d, 0x02, 0x00, 0x00, } func (m *Params) Marshal() (dAtA []byte, err error) { @@ -319,7 +309,7 @@ func (m *Proposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { copy(dAtA[i:], m.Metadata) i = encodeVarintTypes(dAtA, i, uint64(len(m.Metadata))) i-- - dAtA[i] = 0x2a + dAtA[i] = 0x22 } if len(m.PostActions) > 0 { for iNdEx := len(m.PostActions) - 1; iNdEx >= 0; iNdEx-- { @@ -332,7 +322,7 @@ func (m *Proposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintTypes(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x22 + dAtA[i] = 0x1a } } if len(m.PreActions) > 0 { @@ -346,16 +336,9 @@ func (m *Proposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintTypes(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x1a + dAtA[i] = 0x12 } } - if len(m.Agent) > 0 { - i -= len(m.Agent) - copy(dAtA[i:], m.Agent) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Agent))) - i-- - dAtA[i] = 0x12 - } if len(m.Proposer) > 0 { i -= len(m.Proposer) copy(dAtA[i:], m.Proposer) @@ -412,10 +395,6 @@ func (m *Proposal) Size() (n int) { if l > 0 { n += 1 + l + sovTypes(uint64(l)) } - l = len(m.Agent) - if l > 0 { - n += 1 + l + sovTypes(uint64(l)) - } if len(m.PreActions) > 0 { for _, e := range m.PreActions { l = e.Size() @@ -658,40 +637,6 @@ func (m *Proposal) Unmarshal(dAtA []byte) error { } iNdEx = postIndex case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Agent", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthTypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthTypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Agent = append(m.Agent[:0], dAtA[iNdEx:postIndex]...) - if m.Agent == nil { - m.Agent = []byte{} - } - iNdEx = postIndex - case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field PreActions", wireType) } @@ -725,7 +670,7 @@ func (m *Proposal) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 4: + case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field PostActions", wireType) } @@ -759,7 +704,7 @@ func (m *Proposal) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 5: + case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) } diff --git a/x/escrow/api/andromeda/escrow/v1alpha1/event.pulsar.go b/x/escrow/api/andromeda/escrow/v1alpha1/event.pulsar.go index 838cef9..280037f 100644 --- a/x/escrow/api/andromeda/escrow/v1alpha1/event.pulsar.go +++ b/x/escrow/api/andromeda/escrow/v1alpha1/event.pulsar.go @@ -966,111 +966,110 @@ func (x *fastReflection_EventCreateAgent) ProtoMethods() *protoiface.Methods { } } -var _ protoreflect.List = (*_EventSubmitProposal_4_list)(nil) +var _ protoreflect.List = (*_EventSubmitProposal_3_list)(nil) -type _EventSubmitProposal_4_list struct { +type _EventSubmitProposal_3_list struct { list *[]*anypb.Any } -func (x *_EventSubmitProposal_4_list) Len() int { +func (x *_EventSubmitProposal_3_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_EventSubmitProposal_4_list) Get(i int) protoreflect.Value { +func (x *_EventSubmitProposal_3_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } -func (x *_EventSubmitProposal_4_list) Set(i int, value protoreflect.Value) { +func (x *_EventSubmitProposal_3_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*anypb.Any) (*x.list)[i] = concreteValue } -func (x *_EventSubmitProposal_4_list) Append(value protoreflect.Value) { +func (x *_EventSubmitProposal_3_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*anypb.Any) *x.list = append(*x.list, concreteValue) } -func (x *_EventSubmitProposal_4_list) AppendMutable() protoreflect.Value { +func (x *_EventSubmitProposal_3_list) AppendMutable() protoreflect.Value { v := new(anypb.Any) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_EventSubmitProposal_4_list) Truncate(n int) { +func (x *_EventSubmitProposal_3_list) Truncate(n int) { for i := n; i < len(*x.list); i++ { (*x.list)[i] = nil } *x.list = (*x.list)[:n] } -func (x *_EventSubmitProposal_4_list) NewElement() protoreflect.Value { +func (x *_EventSubmitProposal_3_list) NewElement() protoreflect.Value { v := new(anypb.Any) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_EventSubmitProposal_4_list) IsValid() bool { +func (x *_EventSubmitProposal_3_list) IsValid() bool { return x.list != nil } -var _ protoreflect.List = (*_EventSubmitProposal_5_list)(nil) +var _ protoreflect.List = (*_EventSubmitProposal_4_list)(nil) -type _EventSubmitProposal_5_list struct { +type _EventSubmitProposal_4_list struct { list *[]*anypb.Any } -func (x *_EventSubmitProposal_5_list) Len() int { +func (x *_EventSubmitProposal_4_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_EventSubmitProposal_5_list) Get(i int) protoreflect.Value { +func (x *_EventSubmitProposal_4_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } -func (x *_EventSubmitProposal_5_list) Set(i int, value protoreflect.Value) { +func (x *_EventSubmitProposal_4_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*anypb.Any) (*x.list)[i] = concreteValue } -func (x *_EventSubmitProposal_5_list) Append(value protoreflect.Value) { +func (x *_EventSubmitProposal_4_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*anypb.Any) *x.list = append(*x.list, concreteValue) } -func (x *_EventSubmitProposal_5_list) AppendMutable() protoreflect.Value { +func (x *_EventSubmitProposal_4_list) AppendMutable() protoreflect.Value { v := new(anypb.Any) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_EventSubmitProposal_5_list) Truncate(n int) { +func (x *_EventSubmitProposal_4_list) Truncate(n int) { for i := n; i < len(*x.list); i++ { (*x.list)[i] = nil } *x.list = (*x.list)[:n] } -func (x *_EventSubmitProposal_5_list) NewElement() protoreflect.Value { +func (x *_EventSubmitProposal_4_list) NewElement() protoreflect.Value { v := new(anypb.Any) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_EventSubmitProposal_5_list) IsValid() bool { +func (x *_EventSubmitProposal_4_list) IsValid() bool { return x.list != nil } var ( md_EventSubmitProposal protoreflect.MessageDescriptor - fd_EventSubmitProposal_proposal protoreflect.FieldDescriptor fd_EventSubmitProposal_proposer protoreflect.FieldDescriptor fd_EventSubmitProposal_agent protoreflect.FieldDescriptor fd_EventSubmitProposal_pre_actions protoreflect.FieldDescriptor @@ -1081,7 +1080,6 @@ var ( func init() { file_andromeda_escrow_v1alpha1_event_proto_init() md_EventSubmitProposal = File_andromeda_escrow_v1alpha1_event_proto.Messages().ByName("EventSubmitProposal") - fd_EventSubmitProposal_proposal = md_EventSubmitProposal.Fields().ByName("proposal") fd_EventSubmitProposal_proposer = md_EventSubmitProposal.Fields().ByName("proposer") fd_EventSubmitProposal_agent = md_EventSubmitProposal.Fields().ByName("agent") fd_EventSubmitProposal_pre_actions = md_EventSubmitProposal.Fields().ByName("pre_actions") @@ -1154,12 +1152,6 @@ func (x *fastReflection_EventSubmitProposal) Interface() protoreflect.ProtoMessa // While iterating, mutating operations may only be performed // on the current field descriptor. func (x *fastReflection_EventSubmitProposal) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Proposal != uint64(0) { - value := protoreflect.ValueOfUint64(x.Proposal) - if !f(fd_EventSubmitProposal_proposal, value) { - return - } - } if x.Proposer != "" { value := protoreflect.ValueOfString(x.Proposer) if !f(fd_EventSubmitProposal_proposer, value) { @@ -1173,13 +1165,13 @@ func (x *fastReflection_EventSubmitProposal) Range(f func(protoreflect.FieldDesc } } if len(x.PreActions) != 0 { - value := protoreflect.ValueOfList(&_EventSubmitProposal_4_list{list: &x.PreActions}) + value := protoreflect.ValueOfList(&_EventSubmitProposal_3_list{list: &x.PreActions}) if !f(fd_EventSubmitProposal_pre_actions, value) { return } } if len(x.PostActions) != 0 { - value := protoreflect.ValueOfList(&_EventSubmitProposal_5_list{list: &x.PostActions}) + value := protoreflect.ValueOfList(&_EventSubmitProposal_4_list{list: &x.PostActions}) if !f(fd_EventSubmitProposal_post_actions, value) { return } @@ -1205,8 +1197,6 @@ func (x *fastReflection_EventSubmitProposal) Range(f func(protoreflect.FieldDesc // a repeated field is populated if it is non-empty. func (x *fastReflection_EventSubmitProposal) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.EventSubmitProposal.proposal": - return x.Proposal != uint64(0) case "andromeda.escrow.v1alpha1.EventSubmitProposal.proposer": return x.Proposer != "" case "andromeda.escrow.v1alpha1.EventSubmitProposal.agent": @@ -1233,8 +1223,6 @@ func (x *fastReflection_EventSubmitProposal) Has(fd protoreflect.FieldDescriptor // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_EventSubmitProposal) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.EventSubmitProposal.proposal": - x.Proposal = uint64(0) case "andromeda.escrow.v1alpha1.EventSubmitProposal.proposer": x.Proposer = "" case "andromeda.escrow.v1alpha1.EventSubmitProposal.agent": @@ -1261,9 +1249,6 @@ func (x *fastReflection_EventSubmitProposal) Clear(fd protoreflect.FieldDescript // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_EventSubmitProposal) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "andromeda.escrow.v1alpha1.EventSubmitProposal.proposal": - value := x.Proposal - return protoreflect.ValueOfUint64(value) case "andromeda.escrow.v1alpha1.EventSubmitProposal.proposer": value := x.Proposer return protoreflect.ValueOfString(value) @@ -1272,15 +1257,15 @@ func (x *fastReflection_EventSubmitProposal) Get(descriptor protoreflect.FieldDe return protoreflect.ValueOfString(value) case "andromeda.escrow.v1alpha1.EventSubmitProposal.pre_actions": if len(x.PreActions) == 0 { - return protoreflect.ValueOfList(&_EventSubmitProposal_4_list{}) + return protoreflect.ValueOfList(&_EventSubmitProposal_3_list{}) } - listValue := &_EventSubmitProposal_4_list{list: &x.PreActions} + listValue := &_EventSubmitProposal_3_list{list: &x.PreActions} return protoreflect.ValueOfList(listValue) case "andromeda.escrow.v1alpha1.EventSubmitProposal.post_actions": if len(x.PostActions) == 0 { - return protoreflect.ValueOfList(&_EventSubmitProposal_5_list{}) + return protoreflect.ValueOfList(&_EventSubmitProposal_4_list{}) } - listValue := &_EventSubmitProposal_5_list{list: &x.PostActions} + listValue := &_EventSubmitProposal_4_list{list: &x.PostActions} return protoreflect.ValueOfList(listValue) case "andromeda.escrow.v1alpha1.EventSubmitProposal.metadata": value := x.Metadata @@ -1305,19 +1290,17 @@ func (x *fastReflection_EventSubmitProposal) Get(descriptor protoreflect.FieldDe // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_EventSubmitProposal) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.EventSubmitProposal.proposal": - x.Proposal = value.Uint() case "andromeda.escrow.v1alpha1.EventSubmitProposal.proposer": x.Proposer = value.Interface().(string) case "andromeda.escrow.v1alpha1.EventSubmitProposal.agent": x.Agent = value.Interface().(string) case "andromeda.escrow.v1alpha1.EventSubmitProposal.pre_actions": lv := value.List() - clv := lv.(*_EventSubmitProposal_4_list) + clv := lv.(*_EventSubmitProposal_3_list) x.PreActions = *clv.list case "andromeda.escrow.v1alpha1.EventSubmitProposal.post_actions": lv := value.List() - clv := lv.(*_EventSubmitProposal_5_list) + clv := lv.(*_EventSubmitProposal_4_list) x.PostActions = *clv.list case "andromeda.escrow.v1alpha1.EventSubmitProposal.metadata": x.Metadata = value.Interface().(string) @@ -1345,16 +1328,14 @@ func (x *fastReflection_EventSubmitProposal) Mutable(fd protoreflect.FieldDescri if x.PreActions == nil { x.PreActions = []*anypb.Any{} } - value := &_EventSubmitProposal_4_list{list: &x.PreActions} + value := &_EventSubmitProposal_3_list{list: &x.PreActions} return protoreflect.ValueOfList(value) case "andromeda.escrow.v1alpha1.EventSubmitProposal.post_actions": if x.PostActions == nil { x.PostActions = []*anypb.Any{} } - value := &_EventSubmitProposal_5_list{list: &x.PostActions} + value := &_EventSubmitProposal_4_list{list: &x.PostActions} return protoreflect.ValueOfList(value) - case "andromeda.escrow.v1alpha1.EventSubmitProposal.proposal": - panic(fmt.Errorf("field proposal of message andromeda.escrow.v1alpha1.EventSubmitProposal is not mutable")) case "andromeda.escrow.v1alpha1.EventSubmitProposal.proposer": panic(fmt.Errorf("field proposer of message andromeda.escrow.v1alpha1.EventSubmitProposal is not mutable")) case "andromeda.escrow.v1alpha1.EventSubmitProposal.agent": @@ -1374,18 +1355,16 @@ func (x *fastReflection_EventSubmitProposal) Mutable(fd protoreflect.FieldDescri // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_EventSubmitProposal) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.EventSubmitProposal.proposal": - return protoreflect.ValueOfUint64(uint64(0)) case "andromeda.escrow.v1alpha1.EventSubmitProposal.proposer": return protoreflect.ValueOfString("") case "andromeda.escrow.v1alpha1.EventSubmitProposal.agent": return protoreflect.ValueOfString("") case "andromeda.escrow.v1alpha1.EventSubmitProposal.pre_actions": list := []*anypb.Any{} - return protoreflect.ValueOfList(&_EventSubmitProposal_4_list{list: &list}) + return protoreflect.ValueOfList(&_EventSubmitProposal_3_list{list: &list}) case "andromeda.escrow.v1alpha1.EventSubmitProposal.post_actions": list := []*anypb.Any{} - return protoreflect.ValueOfList(&_EventSubmitProposal_5_list{list: &list}) + return protoreflect.ValueOfList(&_EventSubmitProposal_4_list{list: &list}) case "andromeda.escrow.v1alpha1.EventSubmitProposal.metadata": return protoreflect.ValueOfString("") default: @@ -1457,9 +1436,6 @@ func (x *fastReflection_EventSubmitProposal) ProtoMethods() *protoiface.Methods var n int var l int _ = l - if x.Proposal != 0 { - n += 1 + runtime.Sov(uint64(x.Proposal)) - } l = len(x.Proposer) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) @@ -1518,7 +1494,7 @@ func (x *fastReflection_EventSubmitProposal) ProtoMethods() *protoiface.Methods copy(dAtA[i:], x.Metadata) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Metadata))) i-- - dAtA[i] = 0x32 + dAtA[i] = 0x2a } if len(x.PostActions) > 0 { for iNdEx := len(x.PostActions) - 1; iNdEx >= 0; iNdEx-- { @@ -1533,7 +1509,7 @@ func (x *fastReflection_EventSubmitProposal) ProtoMethods() *protoiface.Methods copy(dAtA[i:], encoded) i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- - dAtA[i] = 0x2a + dAtA[i] = 0x22 } } if len(x.PreActions) > 0 { @@ -1549,7 +1525,7 @@ func (x *fastReflection_EventSubmitProposal) ProtoMethods() *protoiface.Methods copy(dAtA[i:], encoded) i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- - dAtA[i] = 0x22 + dAtA[i] = 0x1a } } if len(x.Agent) > 0 { @@ -1557,19 +1533,14 @@ func (x *fastReflection_EventSubmitProposal) ProtoMethods() *protoiface.Methods copy(dAtA[i:], x.Agent) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Agent))) i-- - dAtA[i] = 0x1a + dAtA[i] = 0x12 } if len(x.Proposer) > 0 { i -= len(x.Proposer) copy(dAtA[i:], x.Proposer) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Proposer))) i-- - dAtA[i] = 0x12 - } - if x.Proposal != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Proposal)) - i-- - dAtA[i] = 0x8 + dAtA[i] = 0xa } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -1621,25 +1592,6 @@ func (x *fastReflection_EventSubmitProposal) ProtoMethods() *protoiface.Methods } switch fieldNum { case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Proposal", wireType) - } - x.Proposal = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.Proposal |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Proposer", wireType) } @@ -1671,7 +1623,7 @@ func (x *fastReflection_EventSubmitProposal) ProtoMethods() *protoiface.Methods } x.Proposer = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 3: + case 2: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Agent", wireType) } @@ -1703,7 +1655,7 @@ func (x *fastReflection_EventSubmitProposal) ProtoMethods() *protoiface.Methods } x.Agent = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 4: + case 3: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PreActions", wireType) } @@ -1737,7 +1689,7 @@ func (x *fastReflection_EventSubmitProposal) ProtoMethods() *protoiface.Methods return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex - case 5: + case 4: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PostActions", wireType) } @@ -1771,7 +1723,7 @@ func (x *fastReflection_EventSubmitProposal) ProtoMethods() *protoiface.Methods return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex - case 6: + case 5: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) } @@ -1891,16 +1843,16 @@ func (x *_EventExec_3_list) IsValid() bool { var ( md_EventExec protoreflect.MessageDescriptor - fd_EventExec_proposal protoreflect.FieldDescriptor fd_EventExec_executor protoreflect.FieldDescriptor + fd_EventExec_agent protoreflect.FieldDescriptor fd_EventExec_actions protoreflect.FieldDescriptor ) func init() { file_andromeda_escrow_v1alpha1_event_proto_init() md_EventExec = File_andromeda_escrow_v1alpha1_event_proto.Messages().ByName("EventExec") - fd_EventExec_proposal = md_EventExec.Fields().ByName("proposal") fd_EventExec_executor = md_EventExec.Fields().ByName("executor") + fd_EventExec_agent = md_EventExec.Fields().ByName("agent") fd_EventExec_actions = md_EventExec.Fields().ByName("actions") } @@ -1969,18 +1921,18 @@ func (x *fastReflection_EventExec) Interface() protoreflect.ProtoMessage { // While iterating, mutating operations may only be performed // on the current field descriptor. func (x *fastReflection_EventExec) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Proposal != uint64(0) { - value := protoreflect.ValueOfUint64(x.Proposal) - if !f(fd_EventExec_proposal, value) { - return - } - } if x.Executor != "" { value := protoreflect.ValueOfString(x.Executor) if !f(fd_EventExec_executor, value) { return } } + if x.Agent != "" { + value := protoreflect.ValueOfString(x.Agent) + if !f(fd_EventExec_agent, value) { + return + } + } if len(x.Actions) != 0 { value := protoreflect.ValueOfList(&_EventExec_3_list{list: &x.Actions}) if !f(fd_EventExec_actions, value) { @@ -2002,10 +1954,10 @@ func (x *fastReflection_EventExec) Range(f func(protoreflect.FieldDescriptor, pr // a repeated field is populated if it is non-empty. func (x *fastReflection_EventExec) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.EventExec.proposal": - return x.Proposal != uint64(0) case "andromeda.escrow.v1alpha1.EventExec.executor": return x.Executor != "" + case "andromeda.escrow.v1alpha1.EventExec.agent": + return x.Agent != "" case "andromeda.escrow.v1alpha1.EventExec.actions": return len(x.Actions) != 0 default: @@ -2024,10 +1976,10 @@ func (x *fastReflection_EventExec) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_EventExec) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.EventExec.proposal": - x.Proposal = uint64(0) case "andromeda.escrow.v1alpha1.EventExec.executor": x.Executor = "" + case "andromeda.escrow.v1alpha1.EventExec.agent": + x.Agent = "" case "andromeda.escrow.v1alpha1.EventExec.actions": x.Actions = nil default: @@ -2046,12 +1998,12 @@ func (x *fastReflection_EventExec) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_EventExec) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "andromeda.escrow.v1alpha1.EventExec.proposal": - value := x.Proposal - return protoreflect.ValueOfUint64(value) case "andromeda.escrow.v1alpha1.EventExec.executor": value := x.Executor return protoreflect.ValueOfString(value) + case "andromeda.escrow.v1alpha1.EventExec.agent": + value := x.Agent + return protoreflect.ValueOfString(value) case "andromeda.escrow.v1alpha1.EventExec.actions": if len(x.Actions) == 0 { return protoreflect.ValueOfList(&_EventExec_3_list{}) @@ -2078,10 +2030,10 @@ func (x *fastReflection_EventExec) Get(descriptor protoreflect.FieldDescriptor) // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_EventExec) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.EventExec.proposal": - x.Proposal = value.Uint() case "andromeda.escrow.v1alpha1.EventExec.executor": x.Executor = value.Interface().(string) + case "andromeda.escrow.v1alpha1.EventExec.agent": + x.Agent = value.Interface().(string) case "andromeda.escrow.v1alpha1.EventExec.actions": lv := value.List() clv := lv.(*_EventExec_3_list) @@ -2112,10 +2064,10 @@ func (x *fastReflection_EventExec) Mutable(fd protoreflect.FieldDescriptor) prot } value := &_EventExec_3_list{list: &x.Actions} return protoreflect.ValueOfList(value) - case "andromeda.escrow.v1alpha1.EventExec.proposal": - panic(fmt.Errorf("field proposal of message andromeda.escrow.v1alpha1.EventExec is not mutable")) case "andromeda.escrow.v1alpha1.EventExec.executor": panic(fmt.Errorf("field executor of message andromeda.escrow.v1alpha1.EventExec is not mutable")) + case "andromeda.escrow.v1alpha1.EventExec.agent": + panic(fmt.Errorf("field agent of message andromeda.escrow.v1alpha1.EventExec is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.EventExec")) @@ -2129,10 +2081,10 @@ func (x *fastReflection_EventExec) Mutable(fd protoreflect.FieldDescriptor) prot // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_EventExec) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.EventExec.proposal": - return protoreflect.ValueOfUint64(uint64(0)) case "andromeda.escrow.v1alpha1.EventExec.executor": return protoreflect.ValueOfString("") + case "andromeda.escrow.v1alpha1.EventExec.agent": + return protoreflect.ValueOfString("") case "andromeda.escrow.v1alpha1.EventExec.actions": list := []*anypb.Any{} return protoreflect.ValueOfList(&_EventExec_3_list{list: &list}) @@ -2205,13 +2157,14 @@ func (x *fastReflection_EventExec) ProtoMethods() *protoiface.Methods { var n int var l int _ = l - if x.Proposal != 0 { - n += 1 + runtime.Sov(uint64(x.Proposal)) - } l = len(x.Executor) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } + l = len(x.Agent) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } if len(x.Actions) > 0 { for _, e := range x.Actions { l = options.Size(e) @@ -2263,17 +2216,19 @@ func (x *fastReflection_EventExec) ProtoMethods() *protoiface.Methods { dAtA[i] = 0x1a } } + if len(x.Agent) > 0 { + i -= len(x.Agent) + copy(dAtA[i:], x.Agent) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Agent))) + i-- + dAtA[i] = 0x12 + } if len(x.Executor) > 0 { i -= len(x.Executor) copy(dAtA[i:], x.Executor) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Executor))) i-- - dAtA[i] = 0x12 - } - if x.Proposal != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Proposal)) - i-- - dAtA[i] = 0x8 + dAtA[i] = 0xa } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -2325,10 +2280,10 @@ func (x *fastReflection_EventExec) ProtoMethods() *protoiface.Methods { } switch fieldNum { case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Proposal", wireType) + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Executor", wireType) } - x.Proposal = 0 + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -2338,14 +2293,27 @@ func (x *fastReflection_EventExec) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - x.Proposal |= uint64(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Executor = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex case 2: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Executor", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Agent", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -2373,7 +2341,7 @@ func (x *fastReflection_EventExec) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Executor = string(dAtA[iNdEx:postIndex]) + x.Agent = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { @@ -2511,7 +2479,7 @@ type EventCreateAgent struct { // the address of the created agent Agent string `protobuf:"bytes,1,opt,name=agent,proto3" json:"agent,omitempty"` - // the address of the creator + // the address of the account created the agent Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` } @@ -2555,18 +2523,16 @@ type EventSubmitProposal struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // the identifier of the proposal - Proposal uint64 `protobuf:"varint,1,opt,name=proposal,proto3" json:"proposal,omitempty"` // the address of the proposer - Proposer string `protobuf:"bytes,2,opt,name=proposer,proto3" json:"proposer,omitempty"` + Proposer string `protobuf:"bytes,1,opt,name=proposer,proto3" json:"proposer,omitempty"` // the address of the agent in charge - Agent string `protobuf:"bytes,3,opt,name=agent,proto3" json:"agent,omitempty"` + Agent string `protobuf:"bytes,2,opt,name=agent,proto3" json:"agent,omitempty"` // the messages which has been executed on the submission - PreActions []*anypb.Any `protobuf:"bytes,4,rep,name=pre_actions,json=preActions,proto3" json:"pre_actions,omitempty"` + PreActions []*anypb.Any `protobuf:"bytes,3,rep,name=pre_actions,json=preActions,proto3" json:"pre_actions,omitempty"` // the messages which will be executed after the actions included in Msg/Exec - PostActions []*anypb.Any `protobuf:"bytes,5,rep,name=post_actions,json=postActions,proto3" json:"post_actions,omitempty"` + PostActions []*anypb.Any `protobuf:"bytes,4,rep,name=post_actions,json=postActions,proto3" json:"post_actions,omitempty"` // any arbitrary metadata attached to the proposal - Metadata string `protobuf:"bytes,6,opt,name=metadata,proto3" json:"metadata,omitempty"` + Metadata string `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"` } func (x *EventSubmitProposal) Reset() { @@ -2589,13 +2555,6 @@ func (*EventSubmitProposal) Descriptor() ([]byte, []int) { return file_andromeda_escrow_v1alpha1_event_proto_rawDescGZIP(), []int{2} } -func (x *EventSubmitProposal) GetProposal() uint64 { - if x != nil { - return x.Proposal - } - return 0 -} - func (x *EventSubmitProposal) GetProposer() string { if x != nil { return x.Proposer @@ -2637,10 +2596,10 @@ type EventExec struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // the identifier of the proposal - Proposal uint64 `protobuf:"varint,1,opt,name=proposal,proto3" json:"proposal,omitempty"` // the address of the account executed the proposal - Executor string `protobuf:"bytes,2,opt,name=executor,proto3" json:"executor,omitempty"` + Executor string `protobuf:"bytes,1,opt,name=executor,proto3" json:"executor,omitempty"` + // the address of the agent in charge + Agent string `protobuf:"bytes,2,opt,name=agent,proto3" json:"agent,omitempty"` // the messages executed on the execution Actions []*anypb.Any `protobuf:"bytes,3,rep,name=actions,proto3" json:"actions,omitempty"` } @@ -2665,16 +2624,16 @@ func (*EventExec) Descriptor() ([]byte, []int) { return file_andromeda_escrow_v1alpha1_event_proto_rawDescGZIP(), []int{3} } -func (x *EventExec) GetProposal() uint64 { +func (x *EventExec) GetExecutor() string { if x != nil { - return x.Proposal + return x.Executor } - return 0 + return "" } -func (x *EventExec) GetExecutor() string { +func (x *EventExec) GetAgent() string { if x != nil { - return x.Executor + return x.Agent } return "" } @@ -2711,49 +2670,49 @@ var file_andromeda_escrow_v1alpha1_event_proto_rawDesc = []byte{ 0x6e, 0x67, 0x52, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x32, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, - 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0xa3, 0x02, + 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x87, 0x02, 0x0a, 0x13, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x50, 0x72, 0x6f, - 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, - 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, - 0x6c, 0x12, 0x34, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, - 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x70, - 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x12, 0x2e, 0x0a, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, - 0x52, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x35, 0x0a, 0x0b, 0x70, 0x72, 0x65, 0x5f, 0x61, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, + 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x34, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, + 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, + 0x67, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x12, 0x2e, 0x0a, 0x05, 0x61, + 0x67, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, + 0x72, 0x69, 0x6e, 0x67, 0x52, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x35, 0x0a, 0x0b, 0x70, + 0x72, 0x65, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0a, 0x70, 0x72, 0x65, 0x41, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x12, 0x37, 0x0a, 0x0c, 0x70, 0x6f, 0x73, 0x74, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, + 0x70, 0x6f, 0x73, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x6d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0xa1, 0x01, 0x0a, 0x09, 0x45, 0x76, 0x65, 0x6e, + 0x74, 0x45, 0x78, 0x65, 0x63, 0x12, 0x34, 0x0a, 0x08, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, + 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, + 0x67, 0x52, 0x08, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x12, 0x2e, 0x0a, 0x05, 0x61, + 0x67, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, + 0x72, 0x69, 0x6e, 0x67, 0x52, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x2e, 0x0a, 0x07, 0x61, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, - 0x6e, 0x79, 0x52, 0x0a, 0x70, 0x72, 0x65, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x37, - 0x0a, 0x0c, 0x70, 0x6f, 0x73, 0x74, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x05, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, 0x70, 0x6f, 0x73, 0x74, - 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0x22, 0x8d, 0x01, 0x0a, 0x09, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x45, 0x78, 0x65, - 0x63, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x34, 0x0a, - 0x08, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, - 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x65, 0x78, 0x65, 0x63, 0x75, - 0x74, 0x6f, 0x72, 0x12, 0x2e, 0x0a, 0x07, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x07, 0x61, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x42, 0xdf, 0x01, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x6e, 0x64, 0x72, - 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, - 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x0a, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x74, - 0x6f, 0x50, 0x01, 0x5a, 0x2c, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, - 0x64, 0x61, 0x2f, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, - 0x61, 0x31, 0x3b, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, - 0x31, 0xa2, 0x02, 0x03, 0x41, 0x45, 0x58, 0xaa, 0x02, 0x19, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, - 0x65, 0x64, 0x61, 0x2e, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x56, 0x31, 0x61, 0x6c, 0x70, - 0x68, 0x61, 0x31, 0xca, 0x02, 0x19, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x5c, - 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xe2, - 0x02, 0x25, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x5c, 0x45, 0x73, 0x63, 0x72, - 0x6f, 0x77, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1b, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, - 0x65, 0x64, 0x61, 0x3a, 0x3a, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x3a, 0x3a, 0x56, 0x31, 0x61, - 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x6e, 0x79, 0x52, 0x07, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0xdf, 0x01, 0x0a, 0x1d, + 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, + 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x0a, 0x45, + 0x76, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2c, 0x61, 0x70, 0x69, + 0x2f, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x65, 0x73, 0x63, 0x72, 0x6f, + 0x77, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x3b, 0x65, 0x73, 0x63, 0x72, 0x6f, + 0x77, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x45, 0x58, 0xaa, + 0x02, 0x19, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x45, 0x73, 0x63, 0x72, + 0x6f, 0x77, 0x2e, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xca, 0x02, 0x19, 0x41, 0x6e, + 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x5c, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x5c, 0x56, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xe2, 0x02, 0x25, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, + 0x65, 0x64, 0x61, 0x5c, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, + 0x02, 0x1b, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x3a, 0x3a, 0x45, 0x73, 0x63, + 0x72, 0x6f, 0x77, 0x3a, 0x3a, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/x/escrow/api/andromeda/escrow/v1alpha1/genesis.pulsar.go b/x/escrow/api/andromeda/escrow/v1alpha1/genesis.pulsar.go index 8d341ff..f5eb4b4 100644 --- a/x/escrow/api/andromeda/escrow/v1alpha1/genesis.pulsar.go +++ b/x/escrow/api/andromeda/escrow/v1alpha1/genesis.pulsar.go @@ -65,64 +65,63 @@ func (x *_GenesisState_3_list) IsValid() bool { return x.list != nil } -var _ protoreflect.List = (*_GenesisState_5_list)(nil) +var _ protoreflect.List = (*_GenesisState_4_list)(nil) -type _GenesisState_5_list struct { +type _GenesisState_4_list struct { list *[]*GenesisState_Proposal } -func (x *_GenesisState_5_list) Len() int { +func (x *_GenesisState_4_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_GenesisState_5_list) Get(i int) protoreflect.Value { +func (x *_GenesisState_4_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } -func (x *_GenesisState_5_list) Set(i int, value protoreflect.Value) { +func (x *_GenesisState_4_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*GenesisState_Proposal) (*x.list)[i] = concreteValue } -func (x *_GenesisState_5_list) Append(value protoreflect.Value) { +func (x *_GenesisState_4_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*GenesisState_Proposal) *x.list = append(*x.list, concreteValue) } -func (x *_GenesisState_5_list) AppendMutable() protoreflect.Value { +func (x *_GenesisState_4_list) AppendMutable() protoreflect.Value { v := new(GenesisState_Proposal) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_GenesisState_5_list) Truncate(n int) { +func (x *_GenesisState_4_list) Truncate(n int) { for i := n; i < len(*x.list); i++ { (*x.list)[i] = nil } *x.list = (*x.list)[:n] } -func (x *_GenesisState_5_list) NewElement() protoreflect.Value { +func (x *_GenesisState_4_list) NewElement() protoreflect.Value { v := new(GenesisState_Proposal) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_GenesisState_5_list) IsValid() bool { +func (x *_GenesisState_4_list) IsValid() bool { return x.list != nil } var ( - md_GenesisState protoreflect.MessageDescriptor - fd_GenesisState_params protoreflect.FieldDescriptor - fd_GenesisState_next_agent protoreflect.FieldDescriptor - fd_GenesisState_agents protoreflect.FieldDescriptor - fd_GenesisState_next_proposal protoreflect.FieldDescriptor - fd_GenesisState_proposals protoreflect.FieldDescriptor + md_GenesisState protoreflect.MessageDescriptor + fd_GenesisState_params protoreflect.FieldDescriptor + fd_GenesisState_next_agent protoreflect.FieldDescriptor + fd_GenesisState_agents protoreflect.FieldDescriptor + fd_GenesisState_proposals protoreflect.FieldDescriptor ) func init() { @@ -131,7 +130,6 @@ func init() { fd_GenesisState_params = md_GenesisState.Fields().ByName("params") fd_GenesisState_next_agent = md_GenesisState.Fields().ByName("next_agent") fd_GenesisState_agents = md_GenesisState.Fields().ByName("agents") - fd_GenesisState_next_proposal = md_GenesisState.Fields().ByName("next_proposal") fd_GenesisState_proposals = md_GenesisState.Fields().ByName("proposals") } @@ -218,14 +216,8 @@ func (x *fastReflection_GenesisState) Range(f func(protoreflect.FieldDescriptor, return } } - if x.NextProposal != uint64(0) { - value := protoreflect.ValueOfUint64(x.NextProposal) - if !f(fd_GenesisState_next_proposal, value) { - return - } - } if len(x.Proposals) != 0 { - value := protoreflect.ValueOfList(&_GenesisState_5_list{list: &x.Proposals}) + value := protoreflect.ValueOfList(&_GenesisState_4_list{list: &x.Proposals}) if !f(fd_GenesisState_proposals, value) { return } @@ -251,8 +243,6 @@ func (x *fastReflection_GenesisState) Has(fd protoreflect.FieldDescriptor) bool return x.NextAgent != uint64(0) case "andromeda.escrow.v1alpha1.GenesisState.agents": return len(x.Agents) != 0 - case "andromeda.escrow.v1alpha1.GenesisState.next_proposal": - return x.NextProposal != uint64(0) case "andromeda.escrow.v1alpha1.GenesisState.proposals": return len(x.Proposals) != 0 default: @@ -277,8 +267,6 @@ func (x *fastReflection_GenesisState) Clear(fd protoreflect.FieldDescriptor) { x.NextAgent = uint64(0) case "andromeda.escrow.v1alpha1.GenesisState.agents": x.Agents = nil - case "andromeda.escrow.v1alpha1.GenesisState.next_proposal": - x.NextProposal = uint64(0) case "andromeda.escrow.v1alpha1.GenesisState.proposals": x.Proposals = nil default: @@ -309,14 +297,11 @@ func (x *fastReflection_GenesisState) Get(descriptor protoreflect.FieldDescripto } listValue := &_GenesisState_3_list{list: &x.Agents} return protoreflect.ValueOfList(listValue) - case "andromeda.escrow.v1alpha1.GenesisState.next_proposal": - value := x.NextProposal - return protoreflect.ValueOfUint64(value) case "andromeda.escrow.v1alpha1.GenesisState.proposals": if len(x.Proposals) == 0 { - return protoreflect.ValueOfList(&_GenesisState_5_list{}) + return protoreflect.ValueOfList(&_GenesisState_4_list{}) } - listValue := &_GenesisState_5_list{list: &x.Proposals} + listValue := &_GenesisState_4_list{list: &x.Proposals} return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { @@ -346,11 +331,9 @@ func (x *fastReflection_GenesisState) Set(fd protoreflect.FieldDescriptor, value lv := value.List() clv := lv.(*_GenesisState_3_list) x.Agents = *clv.list - case "andromeda.escrow.v1alpha1.GenesisState.next_proposal": - x.NextProposal = value.Uint() case "andromeda.escrow.v1alpha1.GenesisState.proposals": lv := value.List() - clv := lv.(*_GenesisState_5_list) + clv := lv.(*_GenesisState_4_list) x.Proposals = *clv.list default: if fd.IsExtension() { @@ -387,12 +370,10 @@ func (x *fastReflection_GenesisState) Mutable(fd protoreflect.FieldDescriptor) p if x.Proposals == nil { x.Proposals = []*GenesisState_Proposal{} } - value := &_GenesisState_5_list{list: &x.Proposals} + value := &_GenesisState_4_list{list: &x.Proposals} return protoreflect.ValueOfList(value) case "andromeda.escrow.v1alpha1.GenesisState.next_agent": panic(fmt.Errorf("field next_agent of message andromeda.escrow.v1alpha1.GenesisState is not mutable")) - case "andromeda.escrow.v1alpha1.GenesisState.next_proposal": - panic(fmt.Errorf("field next_proposal of message andromeda.escrow.v1alpha1.GenesisState is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.GenesisState")) @@ -414,11 +395,9 @@ func (x *fastReflection_GenesisState) NewField(fd protoreflect.FieldDescriptor) case "andromeda.escrow.v1alpha1.GenesisState.agents": list := []*GenesisState_Agent{} return protoreflect.ValueOfList(&_GenesisState_3_list{list: &list}) - case "andromeda.escrow.v1alpha1.GenesisState.next_proposal": - return protoreflect.ValueOfUint64(uint64(0)) case "andromeda.escrow.v1alpha1.GenesisState.proposals": list := []*GenesisState_Proposal{} - return protoreflect.ValueOfList(&_GenesisState_5_list{list: &list}) + return protoreflect.ValueOfList(&_GenesisState_4_list{list: &list}) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.GenesisState")) @@ -501,9 +480,6 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { n += 1 + l + runtime.Sov(uint64(l)) } } - if x.NextProposal != 0 { - n += 1 + runtime.Sov(uint64(x.NextProposal)) - } if len(x.Proposals) > 0 { for _, e := range x.Proposals { l = options.Size(e) @@ -552,14 +528,9 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { copy(dAtA[i:], encoded) i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- - dAtA[i] = 0x2a + dAtA[i] = 0x22 } } - if x.NextProposal != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.NextProposal)) - i-- - dAtA[i] = 0x20 - } if len(x.Agents) > 0 { for iNdEx := len(x.Agents) - 1; iNdEx >= 0; iNdEx-- { encoded, err := options.Marshal(x.Agents[iNdEx]) @@ -734,25 +705,6 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { } iNdEx = postIndex case 4: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NextProposal", wireType) - } - x.NextProposal = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.NextProposal |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Proposals", wireType) } @@ -1709,113 +1661,112 @@ func (x *fastReflection_GenesisState_Agent) ProtoMethods() *protoiface.Methods { } } -var _ protoreflect.List = (*_GenesisState_Proposal_4_list)(nil) +var _ protoreflect.List = (*_GenesisState_Proposal_3_list)(nil) -type _GenesisState_Proposal_4_list struct { +type _GenesisState_Proposal_3_list struct { list *[]*anypb.Any } -func (x *_GenesisState_Proposal_4_list) Len() int { +func (x *_GenesisState_Proposal_3_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_GenesisState_Proposal_4_list) Get(i int) protoreflect.Value { +func (x *_GenesisState_Proposal_3_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } -func (x *_GenesisState_Proposal_4_list) Set(i int, value protoreflect.Value) { +func (x *_GenesisState_Proposal_3_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*anypb.Any) (*x.list)[i] = concreteValue } -func (x *_GenesisState_Proposal_4_list) Append(value protoreflect.Value) { +func (x *_GenesisState_Proposal_3_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*anypb.Any) *x.list = append(*x.list, concreteValue) } -func (x *_GenesisState_Proposal_4_list) AppendMutable() protoreflect.Value { +func (x *_GenesisState_Proposal_3_list) AppendMutable() protoreflect.Value { v := new(anypb.Any) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_GenesisState_Proposal_4_list) Truncate(n int) { +func (x *_GenesisState_Proposal_3_list) Truncate(n int) { for i := n; i < len(*x.list); i++ { (*x.list)[i] = nil } *x.list = (*x.list)[:n] } -func (x *_GenesisState_Proposal_4_list) NewElement() protoreflect.Value { +func (x *_GenesisState_Proposal_3_list) NewElement() protoreflect.Value { v := new(anypb.Any) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_GenesisState_Proposal_4_list) IsValid() bool { +func (x *_GenesisState_Proposal_3_list) IsValid() bool { return x.list != nil } -var _ protoreflect.List = (*_GenesisState_Proposal_5_list)(nil) +var _ protoreflect.List = (*_GenesisState_Proposal_4_list)(nil) -type _GenesisState_Proposal_5_list struct { +type _GenesisState_Proposal_4_list struct { list *[]*anypb.Any } -func (x *_GenesisState_Proposal_5_list) Len() int { +func (x *_GenesisState_Proposal_4_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_GenesisState_Proposal_5_list) Get(i int) protoreflect.Value { +func (x *_GenesisState_Proposal_4_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } -func (x *_GenesisState_Proposal_5_list) Set(i int, value protoreflect.Value) { +func (x *_GenesisState_Proposal_4_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*anypb.Any) (*x.list)[i] = concreteValue } -func (x *_GenesisState_Proposal_5_list) Append(value protoreflect.Value) { +func (x *_GenesisState_Proposal_4_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*anypb.Any) *x.list = append(*x.list, concreteValue) } -func (x *_GenesisState_Proposal_5_list) AppendMutable() protoreflect.Value { +func (x *_GenesisState_Proposal_4_list) AppendMutable() protoreflect.Value { v := new(anypb.Any) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_GenesisState_Proposal_5_list) Truncate(n int) { +func (x *_GenesisState_Proposal_4_list) Truncate(n int) { for i := n; i < len(*x.list); i++ { (*x.list)[i] = nil } *x.list = (*x.list)[:n] } -func (x *_GenesisState_Proposal_5_list) NewElement() protoreflect.Value { +func (x *_GenesisState_Proposal_4_list) NewElement() protoreflect.Value { v := new(anypb.Any) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_GenesisState_Proposal_5_list) IsValid() bool { +func (x *_GenesisState_Proposal_4_list) IsValid() bool { return x.list != nil } var ( md_GenesisState_Proposal protoreflect.MessageDescriptor - fd_GenesisState_Proposal_id protoreflect.FieldDescriptor - fd_GenesisState_Proposal_proposer protoreflect.FieldDescriptor fd_GenesisState_Proposal_agent protoreflect.FieldDescriptor + fd_GenesisState_Proposal_proposer protoreflect.FieldDescriptor fd_GenesisState_Proposal_pre_actions protoreflect.FieldDescriptor fd_GenesisState_Proposal_post_actions protoreflect.FieldDescriptor fd_GenesisState_Proposal_metadata protoreflect.FieldDescriptor @@ -1824,9 +1775,8 @@ var ( func init() { file_andromeda_escrow_v1alpha1_genesis_proto_init() md_GenesisState_Proposal = File_andromeda_escrow_v1alpha1_genesis_proto.Messages().ByName("GenesisState").Messages().ByName("Proposal") - fd_GenesisState_Proposal_id = md_GenesisState_Proposal.Fields().ByName("id") - fd_GenesisState_Proposal_proposer = md_GenesisState_Proposal.Fields().ByName("proposer") fd_GenesisState_Proposal_agent = md_GenesisState_Proposal.Fields().ByName("agent") + fd_GenesisState_Proposal_proposer = md_GenesisState_Proposal.Fields().ByName("proposer") fd_GenesisState_Proposal_pre_actions = md_GenesisState_Proposal.Fields().ByName("pre_actions") fd_GenesisState_Proposal_post_actions = md_GenesisState_Proposal.Fields().ByName("post_actions") fd_GenesisState_Proposal_metadata = md_GenesisState_Proposal.Fields().ByName("metadata") @@ -1897,9 +1847,9 @@ func (x *fastReflection_GenesisState_Proposal) Interface() protoreflect.ProtoMes // While iterating, mutating operations may only be performed // on the current field descriptor. func (x *fastReflection_GenesisState_Proposal) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Id != uint64(0) { - value := protoreflect.ValueOfUint64(x.Id) - if !f(fd_GenesisState_Proposal_id, value) { + if x.Agent != "" { + value := protoreflect.ValueOfString(x.Agent) + if !f(fd_GenesisState_Proposal_agent, value) { return } } @@ -1909,20 +1859,14 @@ func (x *fastReflection_GenesisState_Proposal) Range(f func(protoreflect.FieldDe return } } - if x.Agent != "" { - value := protoreflect.ValueOfString(x.Agent) - if !f(fd_GenesisState_Proposal_agent, value) { - return - } - } if len(x.PreActions) != 0 { - value := protoreflect.ValueOfList(&_GenesisState_Proposal_4_list{list: &x.PreActions}) + value := protoreflect.ValueOfList(&_GenesisState_Proposal_3_list{list: &x.PreActions}) if !f(fd_GenesisState_Proposal_pre_actions, value) { return } } if len(x.PostActions) != 0 { - value := protoreflect.ValueOfList(&_GenesisState_Proposal_5_list{list: &x.PostActions}) + value := protoreflect.ValueOfList(&_GenesisState_Proposal_4_list{list: &x.PostActions}) if !f(fd_GenesisState_Proposal_post_actions, value) { return } @@ -1948,12 +1892,10 @@ func (x *fastReflection_GenesisState_Proposal) Range(f func(protoreflect.FieldDe // a repeated field is populated if it is non-empty. func (x *fastReflection_GenesisState_Proposal) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.GenesisState.Proposal.id": - return x.Id != uint64(0) - case "andromeda.escrow.v1alpha1.GenesisState.Proposal.proposer": - return x.Proposer != "" case "andromeda.escrow.v1alpha1.GenesisState.Proposal.agent": return x.Agent != "" + case "andromeda.escrow.v1alpha1.GenesisState.Proposal.proposer": + return x.Proposer != "" case "andromeda.escrow.v1alpha1.GenesisState.Proposal.pre_actions": return len(x.PreActions) != 0 case "andromeda.escrow.v1alpha1.GenesisState.Proposal.post_actions": @@ -1976,12 +1918,10 @@ func (x *fastReflection_GenesisState_Proposal) Has(fd protoreflect.FieldDescript // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_GenesisState_Proposal) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.GenesisState.Proposal.id": - x.Id = uint64(0) - case "andromeda.escrow.v1alpha1.GenesisState.Proposal.proposer": - x.Proposer = "" case "andromeda.escrow.v1alpha1.GenesisState.Proposal.agent": x.Agent = "" + case "andromeda.escrow.v1alpha1.GenesisState.Proposal.proposer": + x.Proposer = "" case "andromeda.escrow.v1alpha1.GenesisState.Proposal.pre_actions": x.PreActions = nil case "andromeda.escrow.v1alpha1.GenesisState.Proposal.post_actions": @@ -2004,26 +1944,23 @@ func (x *fastReflection_GenesisState_Proposal) Clear(fd protoreflect.FieldDescri // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_GenesisState_Proposal) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "andromeda.escrow.v1alpha1.GenesisState.Proposal.id": - value := x.Id - return protoreflect.ValueOfUint64(value) - case "andromeda.escrow.v1alpha1.GenesisState.Proposal.proposer": - value := x.Proposer - return protoreflect.ValueOfString(value) case "andromeda.escrow.v1alpha1.GenesisState.Proposal.agent": value := x.Agent return protoreflect.ValueOfString(value) + case "andromeda.escrow.v1alpha1.GenesisState.Proposal.proposer": + value := x.Proposer + return protoreflect.ValueOfString(value) case "andromeda.escrow.v1alpha1.GenesisState.Proposal.pre_actions": if len(x.PreActions) == 0 { - return protoreflect.ValueOfList(&_GenesisState_Proposal_4_list{}) + return protoreflect.ValueOfList(&_GenesisState_Proposal_3_list{}) } - listValue := &_GenesisState_Proposal_4_list{list: &x.PreActions} + listValue := &_GenesisState_Proposal_3_list{list: &x.PreActions} return protoreflect.ValueOfList(listValue) case "andromeda.escrow.v1alpha1.GenesisState.Proposal.post_actions": if len(x.PostActions) == 0 { - return protoreflect.ValueOfList(&_GenesisState_Proposal_5_list{}) + return protoreflect.ValueOfList(&_GenesisState_Proposal_4_list{}) } - listValue := &_GenesisState_Proposal_5_list{list: &x.PostActions} + listValue := &_GenesisState_Proposal_4_list{list: &x.PostActions} return protoreflect.ValueOfList(listValue) case "andromeda.escrow.v1alpha1.GenesisState.Proposal.metadata": value := x.Metadata @@ -2048,19 +1985,17 @@ func (x *fastReflection_GenesisState_Proposal) Get(descriptor protoreflect.Field // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_GenesisState_Proposal) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.GenesisState.Proposal.id": - x.Id = value.Uint() - case "andromeda.escrow.v1alpha1.GenesisState.Proposal.proposer": - x.Proposer = value.Interface().(string) case "andromeda.escrow.v1alpha1.GenesisState.Proposal.agent": x.Agent = value.Interface().(string) + case "andromeda.escrow.v1alpha1.GenesisState.Proposal.proposer": + x.Proposer = value.Interface().(string) case "andromeda.escrow.v1alpha1.GenesisState.Proposal.pre_actions": lv := value.List() - clv := lv.(*_GenesisState_Proposal_4_list) + clv := lv.(*_GenesisState_Proposal_3_list) x.PreActions = *clv.list case "andromeda.escrow.v1alpha1.GenesisState.Proposal.post_actions": lv := value.List() - clv := lv.(*_GenesisState_Proposal_5_list) + clv := lv.(*_GenesisState_Proposal_4_list) x.PostActions = *clv.list case "andromeda.escrow.v1alpha1.GenesisState.Proposal.metadata": x.Metadata = value.Interface().(string) @@ -2088,20 +2023,18 @@ func (x *fastReflection_GenesisState_Proposal) Mutable(fd protoreflect.FieldDesc if x.PreActions == nil { x.PreActions = []*anypb.Any{} } - value := &_GenesisState_Proposal_4_list{list: &x.PreActions} + value := &_GenesisState_Proposal_3_list{list: &x.PreActions} return protoreflect.ValueOfList(value) case "andromeda.escrow.v1alpha1.GenesisState.Proposal.post_actions": if x.PostActions == nil { x.PostActions = []*anypb.Any{} } - value := &_GenesisState_Proposal_5_list{list: &x.PostActions} + value := &_GenesisState_Proposal_4_list{list: &x.PostActions} return protoreflect.ValueOfList(value) - case "andromeda.escrow.v1alpha1.GenesisState.Proposal.id": - panic(fmt.Errorf("field id of message andromeda.escrow.v1alpha1.GenesisState.Proposal is not mutable")) - case "andromeda.escrow.v1alpha1.GenesisState.Proposal.proposer": - panic(fmt.Errorf("field proposer of message andromeda.escrow.v1alpha1.GenesisState.Proposal is not mutable")) case "andromeda.escrow.v1alpha1.GenesisState.Proposal.agent": panic(fmt.Errorf("field agent of message andromeda.escrow.v1alpha1.GenesisState.Proposal is not mutable")) + case "andromeda.escrow.v1alpha1.GenesisState.Proposal.proposer": + panic(fmt.Errorf("field proposer of message andromeda.escrow.v1alpha1.GenesisState.Proposal is not mutable")) case "andromeda.escrow.v1alpha1.GenesisState.Proposal.metadata": panic(fmt.Errorf("field metadata of message andromeda.escrow.v1alpha1.GenesisState.Proposal is not mutable")) default: @@ -2117,18 +2050,16 @@ func (x *fastReflection_GenesisState_Proposal) Mutable(fd protoreflect.FieldDesc // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_GenesisState_Proposal) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.GenesisState.Proposal.id": - return protoreflect.ValueOfUint64(uint64(0)) - case "andromeda.escrow.v1alpha1.GenesisState.Proposal.proposer": - return protoreflect.ValueOfString("") case "andromeda.escrow.v1alpha1.GenesisState.Proposal.agent": return protoreflect.ValueOfString("") + case "andromeda.escrow.v1alpha1.GenesisState.Proposal.proposer": + return protoreflect.ValueOfString("") case "andromeda.escrow.v1alpha1.GenesisState.Proposal.pre_actions": list := []*anypb.Any{} - return protoreflect.ValueOfList(&_GenesisState_Proposal_4_list{list: &list}) + return protoreflect.ValueOfList(&_GenesisState_Proposal_3_list{list: &list}) case "andromeda.escrow.v1alpha1.GenesisState.Proposal.post_actions": list := []*anypb.Any{} - return protoreflect.ValueOfList(&_GenesisState_Proposal_5_list{list: &list}) + return protoreflect.ValueOfList(&_GenesisState_Proposal_4_list{list: &list}) case "andromeda.escrow.v1alpha1.GenesisState.Proposal.metadata": return protoreflect.ValueOfString("") default: @@ -2200,14 +2131,11 @@ func (x *fastReflection_GenesisState_Proposal) ProtoMethods() *protoiface.Method var n int var l int _ = l - if x.Id != 0 { - n += 1 + runtime.Sov(uint64(x.Id)) - } - l = len(x.Proposer) + l = len(x.Agent) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.Agent) + l = len(x.Proposer) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } @@ -2261,7 +2189,7 @@ func (x *fastReflection_GenesisState_Proposal) ProtoMethods() *protoiface.Method copy(dAtA[i:], x.Metadata) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Metadata))) i-- - dAtA[i] = 0x32 + dAtA[i] = 0x2a } if len(x.PostActions) > 0 { for iNdEx := len(x.PostActions) - 1; iNdEx >= 0; iNdEx-- { @@ -2276,7 +2204,7 @@ func (x *fastReflection_GenesisState_Proposal) ProtoMethods() *protoiface.Method copy(dAtA[i:], encoded) i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- - dAtA[i] = 0x2a + dAtA[i] = 0x22 } } if len(x.PreActions) > 0 { @@ -2292,16 +2220,9 @@ func (x *fastReflection_GenesisState_Proposal) ProtoMethods() *protoiface.Method copy(dAtA[i:], encoded) i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- - dAtA[i] = 0x22 + dAtA[i] = 0x1a } } - if len(x.Agent) > 0 { - i -= len(x.Agent) - copy(dAtA[i:], x.Agent) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Agent))) - i-- - dAtA[i] = 0x1a - } if len(x.Proposer) > 0 { i -= len(x.Proposer) copy(dAtA[i:], x.Proposer) @@ -2309,10 +2230,12 @@ func (x *fastReflection_GenesisState_Proposal) ProtoMethods() *protoiface.Method i-- dAtA[i] = 0x12 } - if x.Id != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Id)) + if len(x.Agent) > 0 { + i -= len(x.Agent) + copy(dAtA[i:], x.Agent) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Agent))) i-- - dAtA[i] = 0x8 + dAtA[i] = 0xa } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -2364,27 +2287,8 @@ func (x *fastReflection_GenesisState_Proposal) ProtoMethods() *protoiface.Method } switch fieldNum { case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - x.Id = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.Id |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Proposer", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Agent", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -2412,11 +2316,11 @@ func (x *fastReflection_GenesisState_Proposal) ProtoMethods() *protoiface.Method if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Proposer = string(dAtA[iNdEx:postIndex]) + x.Agent = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 3: + case 2: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Agent", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Proposer", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -2444,9 +2348,9 @@ func (x *fastReflection_GenesisState_Proposal) ProtoMethods() *protoiface.Method if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Agent = string(dAtA[iNdEx:postIndex]) + x.Proposer = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 4: + case 3: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PreActions", wireType) } @@ -2480,7 +2384,7 @@ func (x *fastReflection_GenesisState_Proposal) ProtoMethods() *protoiface.Method return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex - case 5: + case 4: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PostActions", wireType) } @@ -2514,7 +2418,7 @@ func (x *fastReflection_GenesisState_Proposal) ProtoMethods() *protoiface.Method return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex - case 6: + case 5: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) } @@ -2606,10 +2510,8 @@ type GenesisState struct { NextAgent uint64 `protobuf:"varint,2,opt,name=next_agent,json=nextAgent,proto3" json:"next_agent,omitempty"` // all the agents Agents []*GenesisState_Agent `protobuf:"bytes,3,rep,name=agents,proto3" json:"agents,omitempty"` - // the identifier of the next proposal - NextProposal uint64 `protobuf:"varint,4,opt,name=next_proposal,json=nextProposal,proto3" json:"next_proposal,omitempty"` // all the proposals - Proposals []*GenesisState_Proposal `protobuf:"bytes,5,rep,name=proposals,proto3" json:"proposals,omitempty"` + Proposals []*GenesisState_Proposal `protobuf:"bytes,4,rep,name=proposals,proto3" json:"proposals,omitempty"` } func (x *GenesisState) Reset() { @@ -2653,13 +2555,6 @@ func (x *GenesisState) GetAgents() []*GenesisState_Agent { return nil } -func (x *GenesisState) GetNextProposal() uint64 { - if x != nil { - return x.NextProposal - } - return 0 -} - func (x *GenesisState) GetProposals() []*GenesisState_Proposal { if x != nil { return x.Proposals @@ -2756,18 +2651,16 @@ type GenesisState_Proposal struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // the unique identifier - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + // the address of the agent in charge + Agent string `protobuf:"bytes,1,opt,name=agent,proto3" json:"agent,omitempty"` // the address of the proposer Proposer string `protobuf:"bytes,2,opt,name=proposer,proto3" json:"proposer,omitempty"` - // the address of the agent in charge - Agent string `protobuf:"bytes,3,opt,name=agent,proto3" json:"agent,omitempty"` // the messages which has been executed on the submission - PreActions []*anypb.Any `protobuf:"bytes,4,rep,name=pre_actions,json=preActions,proto3" json:"pre_actions,omitempty"` + PreActions []*anypb.Any `protobuf:"bytes,3,rep,name=pre_actions,json=preActions,proto3" json:"pre_actions,omitempty"` // the messages which will be executed after the actions included in Msg/Exec - PostActions []*anypb.Any `protobuf:"bytes,5,rep,name=post_actions,json=postActions,proto3" json:"post_actions,omitempty"` + PostActions []*anypb.Any `protobuf:"bytes,4,rep,name=post_actions,json=postActions,proto3" json:"post_actions,omitempty"` // any arbitrary metadata attached to the proposal - Metadata string `protobuf:"bytes,6,opt,name=metadata,proto3" json:"metadata,omitempty"` + Metadata string `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"` } func (x *GenesisState_Proposal) Reset() { @@ -2790,11 +2683,11 @@ func (*GenesisState_Proposal) Descriptor() ([]byte, []int) { return file_andromeda_escrow_v1alpha1_genesis_proto_rawDescGZIP(), []int{0, 2} } -func (x *GenesisState_Proposal) GetId() uint64 { +func (x *GenesisState_Proposal) GetAgent() string { if x != nil { - return x.Id + return x.Agent } - return 0 + return "" } func (x *GenesisState_Proposal) GetProposer() string { @@ -2804,13 +2697,6 @@ func (x *GenesisState_Proposal) GetProposer() string { return "" } -func (x *GenesisState_Proposal) GetAgent() string { - if x != nil { - return x.Agent - } - return "" -} - func (x *GenesisState_Proposal) GetPreActions() []*anypb.Any { if x != nil { return x.PreActions @@ -2842,7 +2728,7 @@ var file_andromeda_escrow_v1alpha1_genesis_proto_rawDesc = []byte{ 0x70, 0x68, 0x61, 0x31, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xeb, 0x05, 0x0a, 0x0c, 0x47, + 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb6, 0x05, 0x0a, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x46, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, @@ -2854,57 +2740,53 @@ var file_andromeda_escrow_v1alpha1_genesis_proto_rawDesc = []byte{ 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x41, 0x67, 0x65, 0x6e, - 0x74, 0x52, 0x06, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x6e, 0x65, 0x78, - 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x0c, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x4e, - 0x0a, 0x09, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x30, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, - 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, - 0x6e, 0x65, 0x73, 0x69, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x6f, - 0x73, 0x61, 0x6c, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x1a, 0x38, - 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x2e, 0x0a, 0x13, 0x6d, 0x61, 0x78, 0x5f, - 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x11, 0x6d, 0x61, 0x78, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, - 0x74, 0x61, 0x4c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x1a, 0x6f, 0x0a, 0x05, 0x41, 0x67, 0x65, 0x6e, - 0x74, 0x12, 0x32, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x61, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x32, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, - 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x1a, 0x8c, 0x02, 0x0a, 0x08, 0x50, 0x72, - 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x34, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, - 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, - 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, - 0x6e, 0x67, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x12, 0x2e, 0x0a, 0x05, - 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, - 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, - 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x35, 0x0a, 0x0b, - 0x70, 0x72, 0x65, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0a, 0x70, 0x72, 0x65, 0x41, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x12, 0x37, 0x0a, 0x0c, 0x70, 0x6f, 0x73, 0x74, 0x5f, 0x61, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, - 0x0b, 0x70, 0x6f, 0x73, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1a, 0x0a, 0x08, - 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, - 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x42, 0xe1, 0x01, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, - 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, - 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x0c, 0x47, 0x65, 0x6e, 0x65, - 0x73, 0x69, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2c, 0x61, 0x70, 0x69, 0x2f, - 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, - 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x3b, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, - 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x45, 0x58, 0xaa, 0x02, - 0x19, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x45, 0x73, 0x63, 0x72, 0x6f, - 0x77, 0x2e, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xca, 0x02, 0x19, 0x41, 0x6e, 0x64, - 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x5c, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x5c, 0x56, 0x31, - 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xe2, 0x02, 0x25, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, - 0x64, 0x61, 0x5c, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, - 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, - 0x1b, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x3a, 0x3a, 0x45, 0x73, 0x63, 0x72, - 0x6f, 0x77, 0x3a, 0x3a, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x33, + 0x74, 0x52, 0x06, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x4e, 0x0a, 0x09, 0x70, 0x72, 0x6f, + 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x61, + 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, + 0x53, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x09, + 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x1a, 0x38, 0x0a, 0x06, 0x50, 0x61, 0x72, + 0x61, 0x6d, 0x73, 0x12, 0x2e, 0x0a, 0x13, 0x6d, 0x61, 0x78, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0x5f, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x11, 0x6d, 0x61, 0x78, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x4c, 0x65, 0x6e, + 0x67, 0x74, 0x68, 0x1a, 0x6f, 0x0a, 0x05, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x32, 0x0a, 0x07, + 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, + 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x12, 0x32, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x63, 0x72, 0x65, + 0x61, 0x74, 0x6f, 0x72, 0x1a, 0xfc, 0x01, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, + 0x6c, 0x12, 0x2e, 0x0a, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x05, 0x61, 0x67, 0x65, 0x6e, + 0x74, 0x12, 0x34, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, + 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x70, + 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x12, 0x35, 0x0a, 0x0b, 0x70, 0x72, 0x65, 0x5f, 0x61, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, + 0x6e, 0x79, 0x52, 0x0a, 0x70, 0x72, 0x65, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x37, + 0x0a, 0x0c, 0x70, 0x6f, 0x73, 0x74, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, 0x70, 0x6f, 0x73, 0x74, + 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0x42, 0xe1, 0x01, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x6e, 0x64, 0x72, + 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x50, 0x72, + 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2c, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x64, 0x72, 0x6f, + 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2f, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x3b, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x45, 0x58, 0xaa, 0x02, 0x19, 0x41, 0x6e, 0x64, 0x72, + 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x56, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0xca, 0x02, 0x19, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, + 0x61, 0x5c, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0xe2, 0x02, 0x25, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x5c, 0x45, 0x73, + 0x63, 0x72, 0x6f, 0x77, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x5c, 0x47, 0x50, + 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1b, 0x41, 0x6e, 0x64, 0x72, + 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x3a, 0x3a, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x3a, 0x3a, 0x56, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/x/escrow/api/andromeda/escrow/v1alpha1/query.pulsar.go b/x/escrow/api/andromeda/escrow/v1alpha1/query.pulsar.go index 2f6b7cc..907962c 100644 --- a/x/escrow/api/andromeda/escrow/v1alpha1/query.pulsar.go +++ b/x/escrow/api/andromeda/escrow/v1alpha1/query.pulsar.go @@ -3608,14 +3608,14 @@ func (x *fastReflection_QueryAgentsResponse_Agent) ProtoMethods() *protoiface.Me } var ( - md_QueryProposalRequest protoreflect.MessageDescriptor - fd_QueryProposalRequest_proposal protoreflect.FieldDescriptor + md_QueryProposalRequest protoreflect.MessageDescriptor + fd_QueryProposalRequest_agent protoreflect.FieldDescriptor ) func init() { file_andromeda_escrow_v1alpha1_query_proto_init() md_QueryProposalRequest = File_andromeda_escrow_v1alpha1_query_proto.Messages().ByName("QueryProposalRequest") - fd_QueryProposalRequest_proposal = md_QueryProposalRequest.Fields().ByName("proposal") + fd_QueryProposalRequest_agent = md_QueryProposalRequest.Fields().ByName("agent") } var _ protoreflect.Message = (*fastReflection_QueryProposalRequest)(nil) @@ -3683,9 +3683,9 @@ func (x *fastReflection_QueryProposalRequest) Interface() protoreflect.ProtoMess // While iterating, mutating operations may only be performed // on the current field descriptor. func (x *fastReflection_QueryProposalRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Proposal != uint64(0) { - value := protoreflect.ValueOfUint64(x.Proposal) - if !f(fd_QueryProposalRequest_proposal, value) { + if x.Agent != "" { + value := protoreflect.ValueOfString(x.Agent) + if !f(fd_QueryProposalRequest_agent, value) { return } } @@ -3704,8 +3704,8 @@ func (x *fastReflection_QueryProposalRequest) Range(f func(protoreflect.FieldDes // a repeated field is populated if it is non-empty. func (x *fastReflection_QueryProposalRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.QueryProposalRequest.proposal": - return x.Proposal != uint64(0) + case "andromeda.escrow.v1alpha1.QueryProposalRequest.agent": + return x.Agent != "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalRequest")) @@ -3722,8 +3722,8 @@ func (x *fastReflection_QueryProposalRequest) Has(fd protoreflect.FieldDescripto // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryProposalRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.QueryProposalRequest.proposal": - x.Proposal = uint64(0) + case "andromeda.escrow.v1alpha1.QueryProposalRequest.agent": + x.Agent = "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalRequest")) @@ -3740,9 +3740,9 @@ func (x *fastReflection_QueryProposalRequest) Clear(fd protoreflect.FieldDescrip // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_QueryProposalRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "andromeda.escrow.v1alpha1.QueryProposalRequest.proposal": - value := x.Proposal - return protoreflect.ValueOfUint64(value) + case "andromeda.escrow.v1alpha1.QueryProposalRequest.agent": + value := x.Agent + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalRequest")) @@ -3763,8 +3763,8 @@ func (x *fastReflection_QueryProposalRequest) Get(descriptor protoreflect.FieldD // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryProposalRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.QueryProposalRequest.proposal": - x.Proposal = value.Uint() + case "andromeda.escrow.v1alpha1.QueryProposalRequest.agent": + x.Agent = value.Interface().(string) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalRequest")) @@ -3785,8 +3785,8 @@ func (x *fastReflection_QueryProposalRequest) Set(fd protoreflect.FieldDescripto // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryProposalRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.QueryProposalRequest.proposal": - panic(fmt.Errorf("field proposal of message andromeda.escrow.v1alpha1.QueryProposalRequest is not mutable")) + case "andromeda.escrow.v1alpha1.QueryProposalRequest.agent": + panic(fmt.Errorf("field agent of message andromeda.escrow.v1alpha1.QueryProposalRequest is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalRequest")) @@ -3800,8 +3800,8 @@ func (x *fastReflection_QueryProposalRequest) Mutable(fd protoreflect.FieldDescr // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_QueryProposalRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.QueryProposalRequest.proposal": - return protoreflect.ValueOfUint64(uint64(0)) + case "andromeda.escrow.v1alpha1.QueryProposalRequest.agent": + return protoreflect.ValueOfString("") default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalRequest")) @@ -3871,8 +3871,9 @@ func (x *fastReflection_QueryProposalRequest) ProtoMethods() *protoiface.Methods var n int var l int _ = l - if x.Proposal != 0 { - n += 1 + runtime.Sov(uint64(x.Proposal)) + l = len(x.Agent) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { n += len(x.unknownFields) @@ -3903,10 +3904,12 @@ func (x *fastReflection_QueryProposalRequest) ProtoMethods() *protoiface.Methods i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.Proposal != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Proposal)) + if len(x.Agent) > 0 { + i -= len(x.Agent) + copy(dAtA[i:], x.Agent) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Agent))) i-- - dAtA[i] = 0x8 + dAtA[i] = 0xa } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -3958,10 +3961,10 @@ func (x *fastReflection_QueryProposalRequest) ProtoMethods() *protoiface.Methods } switch fieldNum { case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Proposal", wireType) + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Agent", wireType) } - x.Proposal = 0 + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -3971,11 +3974,24 @@ func (x *fastReflection_QueryProposalRequest) ProtoMethods() *protoiface.Methods } b := dAtA[iNdEx] iNdEx++ - x.Proposal |= uint64(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Agent = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -4446,113 +4462,112 @@ func (x *fastReflection_QueryProposalResponse) ProtoMethods() *protoiface.Method } } -var _ protoreflect.List = (*_QueryProposalResponse_Proposal_4_list)(nil) +var _ protoreflect.List = (*_QueryProposalResponse_Proposal_3_list)(nil) -type _QueryProposalResponse_Proposal_4_list struct { +type _QueryProposalResponse_Proposal_3_list struct { list *[]*anypb.Any } -func (x *_QueryProposalResponse_Proposal_4_list) Len() int { +func (x *_QueryProposalResponse_Proposal_3_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_QueryProposalResponse_Proposal_4_list) Get(i int) protoreflect.Value { +func (x *_QueryProposalResponse_Proposal_3_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } -func (x *_QueryProposalResponse_Proposal_4_list) Set(i int, value protoreflect.Value) { +func (x *_QueryProposalResponse_Proposal_3_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*anypb.Any) (*x.list)[i] = concreteValue } -func (x *_QueryProposalResponse_Proposal_4_list) Append(value protoreflect.Value) { +func (x *_QueryProposalResponse_Proposal_3_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*anypb.Any) *x.list = append(*x.list, concreteValue) } -func (x *_QueryProposalResponse_Proposal_4_list) AppendMutable() protoreflect.Value { +func (x *_QueryProposalResponse_Proposal_3_list) AppendMutable() protoreflect.Value { v := new(anypb.Any) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_QueryProposalResponse_Proposal_4_list) Truncate(n int) { +func (x *_QueryProposalResponse_Proposal_3_list) Truncate(n int) { for i := n; i < len(*x.list); i++ { (*x.list)[i] = nil } *x.list = (*x.list)[:n] } -func (x *_QueryProposalResponse_Proposal_4_list) NewElement() protoreflect.Value { +func (x *_QueryProposalResponse_Proposal_3_list) NewElement() protoreflect.Value { v := new(anypb.Any) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_QueryProposalResponse_Proposal_4_list) IsValid() bool { +func (x *_QueryProposalResponse_Proposal_3_list) IsValid() bool { return x.list != nil } -var _ protoreflect.List = (*_QueryProposalResponse_Proposal_5_list)(nil) +var _ protoreflect.List = (*_QueryProposalResponse_Proposal_4_list)(nil) -type _QueryProposalResponse_Proposal_5_list struct { +type _QueryProposalResponse_Proposal_4_list struct { list *[]*anypb.Any } -func (x *_QueryProposalResponse_Proposal_5_list) Len() int { +func (x *_QueryProposalResponse_Proposal_4_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_QueryProposalResponse_Proposal_5_list) Get(i int) protoreflect.Value { +func (x *_QueryProposalResponse_Proposal_4_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } -func (x *_QueryProposalResponse_Proposal_5_list) Set(i int, value protoreflect.Value) { +func (x *_QueryProposalResponse_Proposal_4_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*anypb.Any) (*x.list)[i] = concreteValue } -func (x *_QueryProposalResponse_Proposal_5_list) Append(value protoreflect.Value) { +func (x *_QueryProposalResponse_Proposal_4_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*anypb.Any) *x.list = append(*x.list, concreteValue) } -func (x *_QueryProposalResponse_Proposal_5_list) AppendMutable() protoreflect.Value { +func (x *_QueryProposalResponse_Proposal_4_list) AppendMutable() protoreflect.Value { v := new(anypb.Any) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_QueryProposalResponse_Proposal_5_list) Truncate(n int) { +func (x *_QueryProposalResponse_Proposal_4_list) Truncate(n int) { for i := n; i < len(*x.list); i++ { (*x.list)[i] = nil } *x.list = (*x.list)[:n] } -func (x *_QueryProposalResponse_Proposal_5_list) NewElement() protoreflect.Value { +func (x *_QueryProposalResponse_Proposal_4_list) NewElement() protoreflect.Value { v := new(anypb.Any) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_QueryProposalResponse_Proposal_5_list) IsValid() bool { +func (x *_QueryProposalResponse_Proposal_4_list) IsValid() bool { return x.list != nil } var ( md_QueryProposalResponse_Proposal protoreflect.MessageDescriptor - fd_QueryProposalResponse_Proposal_id protoreflect.FieldDescriptor - fd_QueryProposalResponse_Proposal_proposer protoreflect.FieldDescriptor fd_QueryProposalResponse_Proposal_agent protoreflect.FieldDescriptor + fd_QueryProposalResponse_Proposal_proposer protoreflect.FieldDescriptor fd_QueryProposalResponse_Proposal_pre_actions protoreflect.FieldDescriptor fd_QueryProposalResponse_Proposal_post_actions protoreflect.FieldDescriptor fd_QueryProposalResponse_Proposal_metadata protoreflect.FieldDescriptor @@ -4561,9 +4576,8 @@ var ( func init() { file_andromeda_escrow_v1alpha1_query_proto_init() md_QueryProposalResponse_Proposal = File_andromeda_escrow_v1alpha1_query_proto.Messages().ByName("QueryProposalResponse").Messages().ByName("Proposal") - fd_QueryProposalResponse_Proposal_id = md_QueryProposalResponse_Proposal.Fields().ByName("id") - fd_QueryProposalResponse_Proposal_proposer = md_QueryProposalResponse_Proposal.Fields().ByName("proposer") fd_QueryProposalResponse_Proposal_agent = md_QueryProposalResponse_Proposal.Fields().ByName("agent") + fd_QueryProposalResponse_Proposal_proposer = md_QueryProposalResponse_Proposal.Fields().ByName("proposer") fd_QueryProposalResponse_Proposal_pre_actions = md_QueryProposalResponse_Proposal.Fields().ByName("pre_actions") fd_QueryProposalResponse_Proposal_post_actions = md_QueryProposalResponse_Proposal.Fields().ByName("post_actions") fd_QueryProposalResponse_Proposal_metadata = md_QueryProposalResponse_Proposal.Fields().ByName("metadata") @@ -4634,9 +4648,9 @@ func (x *fastReflection_QueryProposalResponse_Proposal) Interface() protoreflect // While iterating, mutating operations may only be performed // on the current field descriptor. func (x *fastReflection_QueryProposalResponse_Proposal) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Id != uint64(0) { - value := protoreflect.ValueOfUint64(x.Id) - if !f(fd_QueryProposalResponse_Proposal_id, value) { + if x.Agent != "" { + value := protoreflect.ValueOfString(x.Agent) + if !f(fd_QueryProposalResponse_Proposal_agent, value) { return } } @@ -4646,20 +4660,14 @@ func (x *fastReflection_QueryProposalResponse_Proposal) Range(f func(protoreflec return } } - if x.Agent != "" { - value := protoreflect.ValueOfString(x.Agent) - if !f(fd_QueryProposalResponse_Proposal_agent, value) { - return - } - } if len(x.PreActions) != 0 { - value := protoreflect.ValueOfList(&_QueryProposalResponse_Proposal_4_list{list: &x.PreActions}) + value := protoreflect.ValueOfList(&_QueryProposalResponse_Proposal_3_list{list: &x.PreActions}) if !f(fd_QueryProposalResponse_Proposal_pre_actions, value) { return } } if len(x.PostActions) != 0 { - value := protoreflect.ValueOfList(&_QueryProposalResponse_Proposal_5_list{list: &x.PostActions}) + value := protoreflect.ValueOfList(&_QueryProposalResponse_Proposal_4_list{list: &x.PostActions}) if !f(fd_QueryProposalResponse_Proposal_post_actions, value) { return } @@ -4685,12 +4693,10 @@ func (x *fastReflection_QueryProposalResponse_Proposal) Range(f func(protoreflec // a repeated field is populated if it is non-empty. func (x *fastReflection_QueryProposalResponse_Proposal) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.id": - return x.Id != uint64(0) - case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.proposer": - return x.Proposer != "" case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.agent": return x.Agent != "" + case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.proposer": + return x.Proposer != "" case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.pre_actions": return len(x.PreActions) != 0 case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.post_actions": @@ -4713,12 +4719,10 @@ func (x *fastReflection_QueryProposalResponse_Proposal) Has(fd protoreflect.Fiel // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryProposalResponse_Proposal) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.id": - x.Id = uint64(0) - case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.proposer": - x.Proposer = "" case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.agent": x.Agent = "" + case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.proposer": + x.Proposer = "" case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.pre_actions": x.PreActions = nil case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.post_actions": @@ -4741,26 +4745,23 @@ func (x *fastReflection_QueryProposalResponse_Proposal) Clear(fd protoreflect.Fi // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_QueryProposalResponse_Proposal) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.id": - value := x.Id - return protoreflect.ValueOfUint64(value) - case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.proposer": - value := x.Proposer - return protoreflect.ValueOfString(value) case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.agent": value := x.Agent return protoreflect.ValueOfString(value) + case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.proposer": + value := x.Proposer + return protoreflect.ValueOfString(value) case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.pre_actions": if len(x.PreActions) == 0 { - return protoreflect.ValueOfList(&_QueryProposalResponse_Proposal_4_list{}) + return protoreflect.ValueOfList(&_QueryProposalResponse_Proposal_3_list{}) } - listValue := &_QueryProposalResponse_Proposal_4_list{list: &x.PreActions} + listValue := &_QueryProposalResponse_Proposal_3_list{list: &x.PreActions} return protoreflect.ValueOfList(listValue) case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.post_actions": if len(x.PostActions) == 0 { - return protoreflect.ValueOfList(&_QueryProposalResponse_Proposal_5_list{}) + return protoreflect.ValueOfList(&_QueryProposalResponse_Proposal_4_list{}) } - listValue := &_QueryProposalResponse_Proposal_5_list{list: &x.PostActions} + listValue := &_QueryProposalResponse_Proposal_4_list{list: &x.PostActions} return protoreflect.ValueOfList(listValue) case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.metadata": value := x.Metadata @@ -4785,19 +4786,17 @@ func (x *fastReflection_QueryProposalResponse_Proposal) Get(descriptor protorefl // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryProposalResponse_Proposal) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.id": - x.Id = value.Uint() - case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.proposer": - x.Proposer = value.Interface().(string) case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.agent": x.Agent = value.Interface().(string) + case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.proposer": + x.Proposer = value.Interface().(string) case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.pre_actions": lv := value.List() - clv := lv.(*_QueryProposalResponse_Proposal_4_list) + clv := lv.(*_QueryProposalResponse_Proposal_3_list) x.PreActions = *clv.list case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.post_actions": lv := value.List() - clv := lv.(*_QueryProposalResponse_Proposal_5_list) + clv := lv.(*_QueryProposalResponse_Proposal_4_list) x.PostActions = *clv.list case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.metadata": x.Metadata = value.Interface().(string) @@ -4825,20 +4824,18 @@ func (x *fastReflection_QueryProposalResponse_Proposal) Mutable(fd protoreflect. if x.PreActions == nil { x.PreActions = []*anypb.Any{} } - value := &_QueryProposalResponse_Proposal_4_list{list: &x.PreActions} + value := &_QueryProposalResponse_Proposal_3_list{list: &x.PreActions} return protoreflect.ValueOfList(value) case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.post_actions": if x.PostActions == nil { x.PostActions = []*anypb.Any{} } - value := &_QueryProposalResponse_Proposal_5_list{list: &x.PostActions} + value := &_QueryProposalResponse_Proposal_4_list{list: &x.PostActions} return protoreflect.ValueOfList(value) - case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.id": - panic(fmt.Errorf("field id of message andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal is not mutable")) - case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.proposer": - panic(fmt.Errorf("field proposer of message andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal is not mutable")) case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.agent": panic(fmt.Errorf("field agent of message andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal is not mutable")) + case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.proposer": + panic(fmt.Errorf("field proposer of message andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal is not mutable")) case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.metadata": panic(fmt.Errorf("field metadata of message andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal is not mutable")) default: @@ -4854,18 +4851,16 @@ func (x *fastReflection_QueryProposalResponse_Proposal) Mutable(fd protoreflect. // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_QueryProposalResponse_Proposal) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.id": - return protoreflect.ValueOfUint64(uint64(0)) - case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.proposer": - return protoreflect.ValueOfString("") case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.agent": return protoreflect.ValueOfString("") + case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.proposer": + return protoreflect.ValueOfString("") case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.pre_actions": list := []*anypb.Any{} - return protoreflect.ValueOfList(&_QueryProposalResponse_Proposal_4_list{list: &list}) + return protoreflect.ValueOfList(&_QueryProposalResponse_Proposal_3_list{list: &list}) case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.post_actions": list := []*anypb.Any{} - return protoreflect.ValueOfList(&_QueryProposalResponse_Proposal_5_list{list: &list}) + return protoreflect.ValueOfList(&_QueryProposalResponse_Proposal_4_list{list: &list}) case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.metadata": return protoreflect.ValueOfString("") default: @@ -4937,14 +4932,11 @@ func (x *fastReflection_QueryProposalResponse_Proposal) ProtoMethods() *protoifa var n int var l int _ = l - if x.Id != 0 { - n += 1 + runtime.Sov(uint64(x.Id)) - } - l = len(x.Proposer) + l = len(x.Agent) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.Agent) + l = len(x.Proposer) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } @@ -4998,7 +4990,7 @@ func (x *fastReflection_QueryProposalResponse_Proposal) ProtoMethods() *protoifa copy(dAtA[i:], x.Metadata) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Metadata))) i-- - dAtA[i] = 0x32 + dAtA[i] = 0x2a } if len(x.PostActions) > 0 { for iNdEx := len(x.PostActions) - 1; iNdEx >= 0; iNdEx-- { @@ -5013,7 +5005,7 @@ func (x *fastReflection_QueryProposalResponse_Proposal) ProtoMethods() *protoifa copy(dAtA[i:], encoded) i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- - dAtA[i] = 0x2a + dAtA[i] = 0x22 } } if len(x.PreActions) > 0 { @@ -5029,16 +5021,9 @@ func (x *fastReflection_QueryProposalResponse_Proposal) ProtoMethods() *protoifa copy(dAtA[i:], encoded) i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- - dAtA[i] = 0x22 + dAtA[i] = 0x1a } } - if len(x.Agent) > 0 { - i -= len(x.Agent) - copy(dAtA[i:], x.Agent) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Agent))) - i-- - dAtA[i] = 0x1a - } if len(x.Proposer) > 0 { i -= len(x.Proposer) copy(dAtA[i:], x.Proposer) @@ -5046,10 +5031,12 @@ func (x *fastReflection_QueryProposalResponse_Proposal) ProtoMethods() *protoifa i-- dAtA[i] = 0x12 } - if x.Id != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Id)) + if len(x.Agent) > 0 { + i -= len(x.Agent) + copy(dAtA[i:], x.Agent) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Agent))) i-- - dAtA[i] = 0x8 + dAtA[i] = 0xa } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -5101,27 +5088,8 @@ func (x *fastReflection_QueryProposalResponse_Proposal) ProtoMethods() *protoifa } switch fieldNum { case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - x.Id = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.Id |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Proposer", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Agent", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -5149,11 +5117,11 @@ func (x *fastReflection_QueryProposalResponse_Proposal) ProtoMethods() *protoifa if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Proposer = string(dAtA[iNdEx:postIndex]) + x.Agent = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 3: + case 2: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Agent", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Proposer", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -5181,9 +5149,9 @@ func (x *fastReflection_QueryProposalResponse_Proposal) ProtoMethods() *protoifa if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Agent = string(dAtA[iNdEx:postIndex]) + x.Proposer = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 4: + case 3: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PreActions", wireType) } @@ -5217,7 +5185,7 @@ func (x *fastReflection_QueryProposalResponse_Proposal) ProtoMethods() *protoifa return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex - case 5: + case 4: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PostActions", wireType) } @@ -5251,7 +5219,7 @@ func (x *fastReflection_QueryProposalResponse_Proposal) ProtoMethods() *protoifa return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex - case 6: + case 5: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) } @@ -6326,113 +6294,112 @@ func (x *fastReflection_QueryProposalsResponse) ProtoMethods() *protoiface.Metho } } -var _ protoreflect.List = (*_QueryProposalsResponse_Proposal_4_list)(nil) +var _ protoreflect.List = (*_QueryProposalsResponse_Proposal_3_list)(nil) -type _QueryProposalsResponse_Proposal_4_list struct { +type _QueryProposalsResponse_Proposal_3_list struct { list *[]*anypb.Any } -func (x *_QueryProposalsResponse_Proposal_4_list) Len() int { +func (x *_QueryProposalsResponse_Proposal_3_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_QueryProposalsResponse_Proposal_4_list) Get(i int) protoreflect.Value { +func (x *_QueryProposalsResponse_Proposal_3_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } -func (x *_QueryProposalsResponse_Proposal_4_list) Set(i int, value protoreflect.Value) { +func (x *_QueryProposalsResponse_Proposal_3_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*anypb.Any) (*x.list)[i] = concreteValue } -func (x *_QueryProposalsResponse_Proposal_4_list) Append(value protoreflect.Value) { +func (x *_QueryProposalsResponse_Proposal_3_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*anypb.Any) *x.list = append(*x.list, concreteValue) } -func (x *_QueryProposalsResponse_Proposal_4_list) AppendMutable() protoreflect.Value { +func (x *_QueryProposalsResponse_Proposal_3_list) AppendMutable() protoreflect.Value { v := new(anypb.Any) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_QueryProposalsResponse_Proposal_4_list) Truncate(n int) { +func (x *_QueryProposalsResponse_Proposal_3_list) Truncate(n int) { for i := n; i < len(*x.list); i++ { (*x.list)[i] = nil } *x.list = (*x.list)[:n] } -func (x *_QueryProposalsResponse_Proposal_4_list) NewElement() protoreflect.Value { +func (x *_QueryProposalsResponse_Proposal_3_list) NewElement() protoreflect.Value { v := new(anypb.Any) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_QueryProposalsResponse_Proposal_4_list) IsValid() bool { +func (x *_QueryProposalsResponse_Proposal_3_list) IsValid() bool { return x.list != nil } -var _ protoreflect.List = (*_QueryProposalsResponse_Proposal_5_list)(nil) +var _ protoreflect.List = (*_QueryProposalsResponse_Proposal_4_list)(nil) -type _QueryProposalsResponse_Proposal_5_list struct { +type _QueryProposalsResponse_Proposal_4_list struct { list *[]*anypb.Any } -func (x *_QueryProposalsResponse_Proposal_5_list) Len() int { +func (x *_QueryProposalsResponse_Proposal_4_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_QueryProposalsResponse_Proposal_5_list) Get(i int) protoreflect.Value { +func (x *_QueryProposalsResponse_Proposal_4_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } -func (x *_QueryProposalsResponse_Proposal_5_list) Set(i int, value protoreflect.Value) { +func (x *_QueryProposalsResponse_Proposal_4_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*anypb.Any) (*x.list)[i] = concreteValue } -func (x *_QueryProposalsResponse_Proposal_5_list) Append(value protoreflect.Value) { +func (x *_QueryProposalsResponse_Proposal_4_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*anypb.Any) *x.list = append(*x.list, concreteValue) } -func (x *_QueryProposalsResponse_Proposal_5_list) AppendMutable() protoreflect.Value { +func (x *_QueryProposalsResponse_Proposal_4_list) AppendMutable() protoreflect.Value { v := new(anypb.Any) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_QueryProposalsResponse_Proposal_5_list) Truncate(n int) { +func (x *_QueryProposalsResponse_Proposal_4_list) Truncate(n int) { for i := n; i < len(*x.list); i++ { (*x.list)[i] = nil } *x.list = (*x.list)[:n] } -func (x *_QueryProposalsResponse_Proposal_5_list) NewElement() protoreflect.Value { +func (x *_QueryProposalsResponse_Proposal_4_list) NewElement() protoreflect.Value { v := new(anypb.Any) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_QueryProposalsResponse_Proposal_5_list) IsValid() bool { +func (x *_QueryProposalsResponse_Proposal_4_list) IsValid() bool { return x.list != nil } var ( md_QueryProposalsResponse_Proposal protoreflect.MessageDescriptor - fd_QueryProposalsResponse_Proposal_id protoreflect.FieldDescriptor - fd_QueryProposalsResponse_Proposal_proposer protoreflect.FieldDescriptor fd_QueryProposalsResponse_Proposal_agent protoreflect.FieldDescriptor + fd_QueryProposalsResponse_Proposal_proposer protoreflect.FieldDescriptor fd_QueryProposalsResponse_Proposal_pre_actions protoreflect.FieldDescriptor fd_QueryProposalsResponse_Proposal_post_actions protoreflect.FieldDescriptor fd_QueryProposalsResponse_Proposal_metadata protoreflect.FieldDescriptor @@ -6441,9 +6408,8 @@ var ( func init() { file_andromeda_escrow_v1alpha1_query_proto_init() md_QueryProposalsResponse_Proposal = File_andromeda_escrow_v1alpha1_query_proto.Messages().ByName("QueryProposalsResponse").Messages().ByName("Proposal") - fd_QueryProposalsResponse_Proposal_id = md_QueryProposalsResponse_Proposal.Fields().ByName("id") - fd_QueryProposalsResponse_Proposal_proposer = md_QueryProposalsResponse_Proposal.Fields().ByName("proposer") fd_QueryProposalsResponse_Proposal_agent = md_QueryProposalsResponse_Proposal.Fields().ByName("agent") + fd_QueryProposalsResponse_Proposal_proposer = md_QueryProposalsResponse_Proposal.Fields().ByName("proposer") fd_QueryProposalsResponse_Proposal_pre_actions = md_QueryProposalsResponse_Proposal.Fields().ByName("pre_actions") fd_QueryProposalsResponse_Proposal_post_actions = md_QueryProposalsResponse_Proposal.Fields().ByName("post_actions") fd_QueryProposalsResponse_Proposal_metadata = md_QueryProposalsResponse_Proposal.Fields().ByName("metadata") @@ -6514,9 +6480,9 @@ func (x *fastReflection_QueryProposalsResponse_Proposal) Interface() protoreflec // While iterating, mutating operations may only be performed // on the current field descriptor. func (x *fastReflection_QueryProposalsResponse_Proposal) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Id != uint64(0) { - value := protoreflect.ValueOfUint64(x.Id) - if !f(fd_QueryProposalsResponse_Proposal_id, value) { + if x.Agent != "" { + value := protoreflect.ValueOfString(x.Agent) + if !f(fd_QueryProposalsResponse_Proposal_agent, value) { return } } @@ -6526,20 +6492,14 @@ func (x *fastReflection_QueryProposalsResponse_Proposal) Range(f func(protorefle return } } - if x.Agent != "" { - value := protoreflect.ValueOfString(x.Agent) - if !f(fd_QueryProposalsResponse_Proposal_agent, value) { - return - } - } if len(x.PreActions) != 0 { - value := protoreflect.ValueOfList(&_QueryProposalsResponse_Proposal_4_list{list: &x.PreActions}) + value := protoreflect.ValueOfList(&_QueryProposalsResponse_Proposal_3_list{list: &x.PreActions}) if !f(fd_QueryProposalsResponse_Proposal_pre_actions, value) { return } } if len(x.PostActions) != 0 { - value := protoreflect.ValueOfList(&_QueryProposalsResponse_Proposal_5_list{list: &x.PostActions}) + value := protoreflect.ValueOfList(&_QueryProposalsResponse_Proposal_4_list{list: &x.PostActions}) if !f(fd_QueryProposalsResponse_Proposal_post_actions, value) { return } @@ -6565,12 +6525,10 @@ func (x *fastReflection_QueryProposalsResponse_Proposal) Range(f func(protorefle // a repeated field is populated if it is non-empty. func (x *fastReflection_QueryProposalsResponse_Proposal) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.id": - return x.Id != uint64(0) - case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.proposer": - return x.Proposer != "" case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.agent": return x.Agent != "" + case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.proposer": + return x.Proposer != "" case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.pre_actions": return len(x.PreActions) != 0 case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.post_actions": @@ -6593,12 +6551,10 @@ func (x *fastReflection_QueryProposalsResponse_Proposal) Has(fd protoreflect.Fie // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryProposalsResponse_Proposal) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.id": - x.Id = uint64(0) - case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.proposer": - x.Proposer = "" case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.agent": x.Agent = "" + case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.proposer": + x.Proposer = "" case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.pre_actions": x.PreActions = nil case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.post_actions": @@ -6621,26 +6577,23 @@ func (x *fastReflection_QueryProposalsResponse_Proposal) Clear(fd protoreflect.F // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_QueryProposalsResponse_Proposal) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.id": - value := x.Id - return protoreflect.ValueOfUint64(value) - case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.proposer": - value := x.Proposer - return protoreflect.ValueOfString(value) case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.agent": value := x.Agent return protoreflect.ValueOfString(value) + case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.proposer": + value := x.Proposer + return protoreflect.ValueOfString(value) case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.pre_actions": if len(x.PreActions) == 0 { - return protoreflect.ValueOfList(&_QueryProposalsResponse_Proposal_4_list{}) + return protoreflect.ValueOfList(&_QueryProposalsResponse_Proposal_3_list{}) } - listValue := &_QueryProposalsResponse_Proposal_4_list{list: &x.PreActions} + listValue := &_QueryProposalsResponse_Proposal_3_list{list: &x.PreActions} return protoreflect.ValueOfList(listValue) case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.post_actions": if len(x.PostActions) == 0 { - return protoreflect.ValueOfList(&_QueryProposalsResponse_Proposal_5_list{}) + return protoreflect.ValueOfList(&_QueryProposalsResponse_Proposal_4_list{}) } - listValue := &_QueryProposalsResponse_Proposal_5_list{list: &x.PostActions} + listValue := &_QueryProposalsResponse_Proposal_4_list{list: &x.PostActions} return protoreflect.ValueOfList(listValue) case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.metadata": value := x.Metadata @@ -6665,19 +6618,17 @@ func (x *fastReflection_QueryProposalsResponse_Proposal) Get(descriptor protoref // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryProposalsResponse_Proposal) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.id": - x.Id = value.Uint() - case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.proposer": - x.Proposer = value.Interface().(string) case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.agent": x.Agent = value.Interface().(string) + case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.proposer": + x.Proposer = value.Interface().(string) case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.pre_actions": lv := value.List() - clv := lv.(*_QueryProposalsResponse_Proposal_4_list) + clv := lv.(*_QueryProposalsResponse_Proposal_3_list) x.PreActions = *clv.list case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.post_actions": lv := value.List() - clv := lv.(*_QueryProposalsResponse_Proposal_5_list) + clv := lv.(*_QueryProposalsResponse_Proposal_4_list) x.PostActions = *clv.list case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.metadata": x.Metadata = value.Interface().(string) @@ -6705,20 +6656,18 @@ func (x *fastReflection_QueryProposalsResponse_Proposal) Mutable(fd protoreflect if x.PreActions == nil { x.PreActions = []*anypb.Any{} } - value := &_QueryProposalsResponse_Proposal_4_list{list: &x.PreActions} + value := &_QueryProposalsResponse_Proposal_3_list{list: &x.PreActions} return protoreflect.ValueOfList(value) case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.post_actions": if x.PostActions == nil { x.PostActions = []*anypb.Any{} } - value := &_QueryProposalsResponse_Proposal_5_list{list: &x.PostActions} + value := &_QueryProposalsResponse_Proposal_4_list{list: &x.PostActions} return protoreflect.ValueOfList(value) - case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.id": - panic(fmt.Errorf("field id of message andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal is not mutable")) - case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.proposer": - panic(fmt.Errorf("field proposer of message andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal is not mutable")) case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.agent": panic(fmt.Errorf("field agent of message andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal is not mutable")) + case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.proposer": + panic(fmt.Errorf("field proposer of message andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal is not mutable")) case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.metadata": panic(fmt.Errorf("field metadata of message andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal is not mutable")) default: @@ -6734,18 +6683,16 @@ func (x *fastReflection_QueryProposalsResponse_Proposal) Mutable(fd protoreflect // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_QueryProposalsResponse_Proposal) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.id": - return protoreflect.ValueOfUint64(uint64(0)) - case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.proposer": - return protoreflect.ValueOfString("") case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.agent": return protoreflect.ValueOfString("") + case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.proposer": + return protoreflect.ValueOfString("") case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.pre_actions": list := []*anypb.Any{} - return protoreflect.ValueOfList(&_QueryProposalsResponse_Proposal_4_list{list: &list}) + return protoreflect.ValueOfList(&_QueryProposalsResponse_Proposal_3_list{list: &list}) case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.post_actions": list := []*anypb.Any{} - return protoreflect.ValueOfList(&_QueryProposalsResponse_Proposal_5_list{list: &list}) + return protoreflect.ValueOfList(&_QueryProposalsResponse_Proposal_4_list{list: &list}) case "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.metadata": return protoreflect.ValueOfString("") default: @@ -6817,14 +6764,11 @@ func (x *fastReflection_QueryProposalsResponse_Proposal) ProtoMethods() *protoif var n int var l int _ = l - if x.Id != 0 { - n += 1 + runtime.Sov(uint64(x.Id)) - } - l = len(x.Proposer) + l = len(x.Agent) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.Agent) + l = len(x.Proposer) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } @@ -6878,7 +6822,7 @@ func (x *fastReflection_QueryProposalsResponse_Proposal) ProtoMethods() *protoif copy(dAtA[i:], x.Metadata) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Metadata))) i-- - dAtA[i] = 0x32 + dAtA[i] = 0x2a } if len(x.PostActions) > 0 { for iNdEx := len(x.PostActions) - 1; iNdEx >= 0; iNdEx-- { @@ -6893,7 +6837,7 @@ func (x *fastReflection_QueryProposalsResponse_Proposal) ProtoMethods() *protoif copy(dAtA[i:], encoded) i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- - dAtA[i] = 0x2a + dAtA[i] = 0x22 } } if len(x.PreActions) > 0 { @@ -6909,16 +6853,9 @@ func (x *fastReflection_QueryProposalsResponse_Proposal) ProtoMethods() *protoif copy(dAtA[i:], encoded) i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- - dAtA[i] = 0x22 + dAtA[i] = 0x1a } } - if len(x.Agent) > 0 { - i -= len(x.Agent) - copy(dAtA[i:], x.Agent) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Agent))) - i-- - dAtA[i] = 0x1a - } if len(x.Proposer) > 0 { i -= len(x.Proposer) copy(dAtA[i:], x.Proposer) @@ -6926,10 +6863,12 @@ func (x *fastReflection_QueryProposalsResponse_Proposal) ProtoMethods() *protoif i-- dAtA[i] = 0x12 } - if x.Id != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Id)) + if len(x.Agent) > 0 { + i -= len(x.Agent) + copy(dAtA[i:], x.Agent) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Agent))) i-- - dAtA[i] = 0x8 + dAtA[i] = 0xa } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -6981,27 +6920,8 @@ func (x *fastReflection_QueryProposalsResponse_Proposal) ProtoMethods() *protoif } switch fieldNum { case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - x.Id = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.Id |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Proposer", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Agent", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -7029,11 +6949,11 @@ func (x *fastReflection_QueryProposalsResponse_Proposal) ProtoMethods() *protoif if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Proposer = string(dAtA[iNdEx:postIndex]) + x.Agent = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 3: + case 2: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Agent", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Proposer", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -7061,9 +6981,9 @@ func (x *fastReflection_QueryProposalsResponse_Proposal) ProtoMethods() *protoif if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Agent = string(dAtA[iNdEx:postIndex]) + x.Proposer = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 4: + case 3: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PreActions", wireType) } @@ -7097,7 +7017,7 @@ func (x *fastReflection_QueryProposalsResponse_Proposal) ProtoMethods() *protoif return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex - case 5: + case 4: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PostActions", wireType) } @@ -7131,7 +7051,7 @@ func (x *fastReflection_QueryProposalsResponse_Proposal) ProtoMethods() *protoif return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex - case 6: + case 5: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) } @@ -7438,8 +7358,8 @@ type QueryProposalRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // the identifier of a proposal - Proposal uint64 `protobuf:"varint,1,opt,name=proposal,proto3" json:"proposal,omitempty"` + // the address of an agent in charge + Agent string `protobuf:"bytes,1,opt,name=agent,proto3" json:"agent,omitempty"` } func (x *QueryProposalRequest) Reset() { @@ -7462,11 +7382,11 @@ func (*QueryProposalRequest) Descriptor() ([]byte, []int) { return file_andromeda_escrow_v1alpha1_query_proto_rawDescGZIP(), []int{6} } -func (x *QueryProposalRequest) GetProposal() uint64 { +func (x *QueryProposalRequest) GetAgent() string { if x != nil { - return x.Proposal + return x.Agent } - return 0 + return "" } // QueryProposalResponse is the response type for the Query/Proposal RPC method. @@ -7687,18 +7607,16 @@ type QueryProposalResponse_Proposal struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // the unique identifier - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + // the address of the agent in charge + Agent string `protobuf:"bytes,1,opt,name=agent,proto3" json:"agent,omitempty"` // the address of the proposer Proposer string `protobuf:"bytes,2,opt,name=proposer,proto3" json:"proposer,omitempty"` - // the address of the agent in charge - Agent string `protobuf:"bytes,3,opt,name=agent,proto3" json:"agent,omitempty"` // the messages which has been executed on the submission - PreActions []*anypb.Any `protobuf:"bytes,4,rep,name=pre_actions,json=preActions,proto3" json:"pre_actions,omitempty"` + PreActions []*anypb.Any `protobuf:"bytes,3,rep,name=pre_actions,json=preActions,proto3" json:"pre_actions,omitempty"` // the messages which will be executed after the actions included in Msg/Exec - PostActions []*anypb.Any `protobuf:"bytes,5,rep,name=post_actions,json=postActions,proto3" json:"post_actions,omitempty"` + PostActions []*anypb.Any `protobuf:"bytes,4,rep,name=post_actions,json=postActions,proto3" json:"post_actions,omitempty"` // any arbitrary metadata attached to the proposal - Metadata string `protobuf:"bytes,6,opt,name=metadata,proto3" json:"metadata,omitempty"` + Metadata string `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"` } func (x *QueryProposalResponse_Proposal) Reset() { @@ -7721,11 +7639,11 @@ func (*QueryProposalResponse_Proposal) Descriptor() ([]byte, []int) { return file_andromeda_escrow_v1alpha1_query_proto_rawDescGZIP(), []int{7, 0} } -func (x *QueryProposalResponse_Proposal) GetId() uint64 { +func (x *QueryProposalResponse_Proposal) GetAgent() string { if x != nil { - return x.Id + return x.Agent } - return 0 + return "" } func (x *QueryProposalResponse_Proposal) GetProposer() string { @@ -7735,13 +7653,6 @@ func (x *QueryProposalResponse_Proposal) GetProposer() string { return "" } -func (x *QueryProposalResponse_Proposal) GetAgent() string { - if x != nil { - return x.Agent - } - return "" -} - func (x *QueryProposalResponse_Proposal) GetPreActions() []*anypb.Any { if x != nil { return x.PreActions @@ -7769,18 +7680,16 @@ type QueryProposalsResponse_Proposal struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // the unique identifier - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + // the address of the agent in charge + Agent string `protobuf:"bytes,1,opt,name=agent,proto3" json:"agent,omitempty"` // the address of the proposer Proposer string `protobuf:"bytes,2,opt,name=proposer,proto3" json:"proposer,omitempty"` - // the address of the agent of the proposal - Agent string `protobuf:"bytes,3,opt,name=agent,proto3" json:"agent,omitempty"` // the messages which has been executed on the submission - PreActions []*anypb.Any `protobuf:"bytes,4,rep,name=pre_actions,json=preActions,proto3" json:"pre_actions,omitempty"` + PreActions []*anypb.Any `protobuf:"bytes,3,rep,name=pre_actions,json=preActions,proto3" json:"pre_actions,omitempty"` // the messages which will be executed after the actions included in Msg/Exec - PostActions []*anypb.Any `protobuf:"bytes,5,rep,name=post_actions,json=postActions,proto3" json:"post_actions,omitempty"` + PostActions []*anypb.Any `protobuf:"bytes,4,rep,name=post_actions,json=postActions,proto3" json:"post_actions,omitempty"` // any arbitrary metadata attached to the proposal - Metadata string `protobuf:"bytes,6,opt,name=metadata,proto3" json:"metadata,omitempty"` + Metadata string `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"` } func (x *QueryProposalsResponse_Proposal) Reset() { @@ -7803,11 +7712,11 @@ func (*QueryProposalsResponse_Proposal) Descriptor() ([]byte, []int) { return file_andromeda_escrow_v1alpha1_query_proto_rawDescGZIP(), []int{9, 0} } -func (x *QueryProposalsResponse_Proposal) GetId() uint64 { +func (x *QueryProposalsResponse_Proposal) GetAgent() string { if x != nil { - return x.Id + return x.Agent } - return 0 + return "" } func (x *QueryProposalsResponse_Proposal) GetProposer() string { @@ -7817,13 +7726,6 @@ func (x *QueryProposalsResponse_Proposal) GetProposer() string { return "" } -func (x *QueryProposalsResponse_Proposal) GetAgent() string { - if x != nil { - return x.Agent - } - return "" -} - func (x *QueryProposalsResponse_Proposal) GetPreActions() []*anypb.Any { if x != nil { return x.PreActions @@ -7907,133 +7809,131 @@ var file_andromeda_escrow_v1alpha1_query_proto_rawDesc = []byte{ 0x73, 0x12, 0x32, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x63, 0x72, - 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x32, 0x0a, 0x14, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, - 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, - 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x22, 0xfd, 0x02, 0x0a, 0x15, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x55, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, - 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, - 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, - 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x1a, 0x8c, 0x02, 0x0a, 0x08, 0x50, - 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x34, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, - 0x73, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, - 0x69, 0x6e, 0x67, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x12, 0x2e, 0x0a, - 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, - 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x35, 0x0a, - 0x0b, 0x70, 0x72, 0x65, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0a, 0x70, 0x72, 0x65, 0x41, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x37, 0x0a, 0x0c, 0x70, 0x6f, 0x73, 0x74, 0x5f, 0x61, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, - 0x52, 0x0b, 0x70, 0x6f, 0x73, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1a, 0x0a, - 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0x5f, 0x0a, 0x15, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, - 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, - 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xca, 0x03, 0x0a, 0x16, 0x51, + 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x2c, 0x0a, 0x14, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, + 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, + 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x67, + 0x65, 0x6e, 0x74, 0x22, 0xed, 0x02, 0x0a, 0x15, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, + 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x55, 0x0a, + 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x39, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, + 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, + 0x6f, 0x73, 0x61, 0x6c, 0x1a, 0xfc, 0x01, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, + 0x6c, 0x12, 0x2e, 0x0a, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x05, 0x61, 0x67, 0x65, 0x6e, + 0x74, 0x12, 0x34, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, + 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x70, + 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x12, 0x35, 0x0a, 0x0b, 0x70, 0x72, 0x65, 0x5f, 0x61, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, + 0x6e, 0x79, 0x52, 0x0a, 0x70, 0x72, 0x65, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x37, + 0x0a, 0x0c, 0x70, 0x6f, 0x73, 0x74, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, 0x70, 0x6f, 0x73, 0x74, + 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0x22, 0x5f, 0x0a, 0x15, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x70, + 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0a, + 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, + 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xba, 0x03, 0x0a, 0x16, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, + 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x58, 0x0a, 0x09, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, + 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x58, 0x0a, 0x09, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, - 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, - 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, - 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, - 0x61, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x70, - 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x12, - 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, - 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, - 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x8c, 0x02, 0x0a, 0x08, 0x50, 0x72, 0x6f, - 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x34, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, - 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, - 0x67, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x12, 0x2e, 0x0a, 0x05, 0x61, - 0x67, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, - 0x72, 0x69, 0x6e, 0x67, 0x52, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x35, 0x0a, 0x0b, 0x70, - 0x72, 0x65, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0a, 0x70, 0x72, 0x65, 0x41, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x12, 0x37, 0x0a, 0x0c, 0x70, 0x6f, 0x73, 0x74, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, - 0x70, 0x6f, 0x73, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x6d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x32, 0x95, 0x06, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x12, 0x92, 0x01, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x2d, 0x2e, 0x61, - 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, - 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, - 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x61, 0x6e, - 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, - 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, - 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x29, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x23, 0x12, 0x21, 0x2f, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, - 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, - 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x97, 0x01, 0x0a, 0x05, 0x41, 0x67, 0x65, 0x6e, 0x74, - 0x12, 0x2c, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, - 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, - 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, - 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x31, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x12, 0x29, 0x2f, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, - 0x61, 0x2f, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, - 0x31, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x7d, - 0x12, 0x92, 0x01, 0x0a, 0x06, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x2d, 0x2e, 0x61, 0x6e, - 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, - 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x67, 0x65, - 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x61, 0x6e, 0x64, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x09, + 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, + 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x1a, 0xfc, 0x01, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, + 0x2e, 0x0a, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, + 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x12, + 0x34, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x70, 0x72, 0x6f, + 0x70, 0x6f, 0x73, 0x65, 0x72, 0x12, 0x35, 0x0a, 0x0b, 0x70, 0x72, 0x65, 0x5f, 0x61, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, + 0x52, 0x0a, 0x70, 0x72, 0x65, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x37, 0x0a, 0x0c, + 0x70, 0x6f, 0x73, 0x74, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, 0x70, 0x6f, 0x73, 0x74, 0x41, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0x32, 0x98, 0x06, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x92, 0x01, 0x0a, 0x06, + 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x2d, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, + 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, + 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x29, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x23, 0x12, 0x21, 0x2f, + 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, + 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, + 0x12, 0x97, 0x01, 0x0a, 0x05, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x2c, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x67, 0x65, 0x6e, - 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x29, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x23, 0x12, 0x21, 0x2f, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x65, - 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x61, - 0x67, 0x65, 0x6e, 0x74, 0x73, 0x12, 0xa6, 0x01, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, - 0x61, 0x6c, 0x12, 0x2f, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, - 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, - 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x37, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x31, 0x12, 0x2f, 0x2f, - 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, - 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, - 0x61, 0x6c, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x7d, 0x12, 0x9e, - 0x01, 0x0a, 0x09, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x12, 0x30, 0x2e, 0x61, + 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, + 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x31, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x12, + 0x29, 0x2f, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x65, 0x73, 0x63, 0x72, + 0x6f, 0x77, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x61, 0x67, 0x65, 0x6e, + 0x74, 0x73, 0x2f, 0x7b, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x7d, 0x12, 0x92, 0x01, 0x0a, 0x06, 0x41, + 0x67, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x2d, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, + 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, + 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x29, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x23, 0x12, 0x21, 0x2f, 0x61, + 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2f, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x12, + 0xa9, 0x01, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x2f, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, - 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, - 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, - 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x2c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x26, 0x12, 0x24, 0x2f, 0x61, 0x6e, 0x64, 0x72, - 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2f, 0x76, 0x31, 0x61, - 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x42, - 0xdf, 0x01, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, - 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, - 0x31, 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, - 0x2c, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x65, - 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x3b, 0x65, - 0x73, 0x63, 0x72, 0x6f, 0x77, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xa2, 0x02, 0x03, - 0x41, 0x45, 0x58, 0xaa, 0x02, 0x19, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, - 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xca, - 0x02, 0x19, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x5c, 0x45, 0x73, 0x63, 0x72, - 0x6f, 0x77, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xe2, 0x02, 0x25, 0x41, 0x6e, - 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x5c, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x5c, 0x56, - 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0xea, 0x02, 0x1b, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x3a, - 0x3a, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x3a, 0x3a, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, - 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, + 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, + 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x3a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x34, 0x12, 0x32, 0x2f, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, + 0x65, 0x64, 0x61, 0x2f, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x61, 0x67, 0x65, 0x6e, + 0x74, 0x7d, 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x9e, 0x01, 0x0a, 0x09, + 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x12, 0x30, 0x2e, 0x61, 0x6e, 0x64, 0x72, + 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, + 0x73, 0x61, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x61, 0x6e, + 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, + 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2c, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x26, 0x12, 0x24, 0x2f, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, + 0x64, 0x61, 0x2f, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x42, 0xdf, 0x01, 0x0a, + 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, + 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x0a, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2c, 0x61, 0x70, + 0x69, 0x2f, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x65, 0x73, 0x63, 0x72, + 0x6f, 0x77, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x3b, 0x65, 0x73, 0x63, 0x72, + 0x6f, 0x77, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x45, 0x58, + 0xaa, 0x02, 0x19, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x45, 0x73, 0x63, + 0x72, 0x6f, 0x77, 0x2e, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xca, 0x02, 0x19, 0x41, + 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x5c, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x5c, + 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xe2, 0x02, 0x25, 0x41, 0x6e, 0x64, 0x72, 0x6f, + 0x6d, 0x65, 0x64, 0x61, 0x5c, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x5c, 0x56, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0xea, 0x02, 0x1b, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x3a, 0x3a, 0x45, 0x73, + 0x63, 0x72, 0x6f, 0x77, 0x3a, 0x3a, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/x/escrow/api/andromeda/escrow/v1alpha1/tx.pulsar.go b/x/escrow/api/andromeda/escrow/v1alpha1/tx.pulsar.go index 11c9e51..dee2e8d 100644 --- a/x/escrow/api/andromeda/escrow/v1alpha1/tx.pulsar.go +++ b/x/escrow/api/andromeda/escrow/v1alpha1/tx.pulsar.go @@ -2504,14 +2504,12 @@ func (x *fastReflection_MsgSubmitProposal) ProtoMethods() *protoiface.Methods { } var ( - md_MsgSubmitProposalResponse protoreflect.MessageDescriptor - fd_MsgSubmitProposalResponse_proposal protoreflect.FieldDescriptor + md_MsgSubmitProposalResponse protoreflect.MessageDescriptor ) func init() { file_andromeda_escrow_v1alpha1_tx_proto_init() md_MsgSubmitProposalResponse = File_andromeda_escrow_v1alpha1_tx_proto.Messages().ByName("MsgSubmitProposalResponse") - fd_MsgSubmitProposalResponse_proposal = md_MsgSubmitProposalResponse.Fields().ByName("proposal") } var _ protoreflect.Message = (*fastReflection_MsgSubmitProposalResponse)(nil) @@ -2579,12 +2577,6 @@ func (x *fastReflection_MsgSubmitProposalResponse) Interface() protoreflect.Prot // While iterating, mutating operations may only be performed // on the current field descriptor. func (x *fastReflection_MsgSubmitProposalResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Proposal != uint64(0) { - value := protoreflect.ValueOfUint64(x.Proposal) - if !f(fd_MsgSubmitProposalResponse_proposal, value) { - return - } - } } // Has reports whether a field is populated. @@ -2600,8 +2592,6 @@ func (x *fastReflection_MsgSubmitProposalResponse) Range(f func(protoreflect.Fie // a repeated field is populated if it is non-empty. func (x *fastReflection_MsgSubmitProposalResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.MsgSubmitProposalResponse.proposal": - return x.Proposal != uint64(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgSubmitProposalResponse")) @@ -2618,8 +2608,6 @@ func (x *fastReflection_MsgSubmitProposalResponse) Has(fd protoreflect.FieldDesc // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgSubmitProposalResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.MsgSubmitProposalResponse.proposal": - x.Proposal = uint64(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgSubmitProposalResponse")) @@ -2636,9 +2624,6 @@ func (x *fastReflection_MsgSubmitProposalResponse) Clear(fd protoreflect.FieldDe // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_MsgSubmitProposalResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "andromeda.escrow.v1alpha1.MsgSubmitProposalResponse.proposal": - value := x.Proposal - return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgSubmitProposalResponse")) @@ -2659,8 +2644,6 @@ func (x *fastReflection_MsgSubmitProposalResponse) Get(descriptor protoreflect.F // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgSubmitProposalResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.MsgSubmitProposalResponse.proposal": - x.Proposal = value.Uint() default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgSubmitProposalResponse")) @@ -2681,8 +2664,6 @@ func (x *fastReflection_MsgSubmitProposalResponse) Set(fd protoreflect.FieldDesc // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgSubmitProposalResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.MsgSubmitProposalResponse.proposal": - panic(fmt.Errorf("field proposal of message andromeda.escrow.v1alpha1.MsgSubmitProposalResponse is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgSubmitProposalResponse")) @@ -2696,8 +2677,6 @@ func (x *fastReflection_MsgSubmitProposalResponse) Mutable(fd protoreflect.Field // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_MsgSubmitProposalResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.MsgSubmitProposalResponse.proposal": - return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgSubmitProposalResponse")) @@ -2767,9 +2746,6 @@ func (x *fastReflection_MsgSubmitProposalResponse) ProtoMethods() *protoiface.Me var n int var l int _ = l - if x.Proposal != 0 { - n += 1 + runtime.Sov(uint64(x.Proposal)) - } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -2799,11 +2775,6 @@ func (x *fastReflection_MsgSubmitProposalResponse) ProtoMethods() *protoiface.Me i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.Proposal != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Proposal)) - i-- - dAtA[i] = 0x8 - } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) } else { @@ -2853,25 +2824,6 @@ func (x *fastReflection_MsgSubmitProposalResponse) ProtoMethods() *protoiface.Me return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSubmitProposalResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Proposal", wireType) - } - x.Proposal = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.Proposal |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -2907,60 +2859,59 @@ func (x *fastReflection_MsgSubmitProposalResponse) ProtoMethods() *protoiface.Me } } -var _ protoreflect.List = (*_MsgExec_4_list)(nil) +var _ protoreflect.List = (*_MsgExec_3_list)(nil) -type _MsgExec_4_list struct { +type _MsgExec_3_list struct { list *[]*anypb.Any } -func (x *_MsgExec_4_list) Len() int { +func (x *_MsgExec_3_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_MsgExec_4_list) Get(i int) protoreflect.Value { +func (x *_MsgExec_3_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } -func (x *_MsgExec_4_list) Set(i int, value protoreflect.Value) { +func (x *_MsgExec_3_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*anypb.Any) (*x.list)[i] = concreteValue } -func (x *_MsgExec_4_list) Append(value protoreflect.Value) { +func (x *_MsgExec_3_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*anypb.Any) *x.list = append(*x.list, concreteValue) } -func (x *_MsgExec_4_list) AppendMutable() protoreflect.Value { +func (x *_MsgExec_3_list) AppendMutable() protoreflect.Value { v := new(anypb.Any) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_MsgExec_4_list) Truncate(n int) { +func (x *_MsgExec_3_list) Truncate(n int) { for i := n; i < len(*x.list); i++ { (*x.list)[i] = nil } *x.list = (*x.list)[:n] } -func (x *_MsgExec_4_list) NewElement() protoreflect.Value { +func (x *_MsgExec_3_list) NewElement() protoreflect.Value { v := new(anypb.Any) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_MsgExec_4_list) IsValid() bool { +func (x *_MsgExec_3_list) IsValid() bool { return x.list != nil } var ( md_MsgExec protoreflect.MessageDescriptor - fd_MsgExec_proposal protoreflect.FieldDescriptor fd_MsgExec_executor protoreflect.FieldDescriptor fd_MsgExec_agent protoreflect.FieldDescriptor fd_MsgExec_actions protoreflect.FieldDescriptor @@ -2969,7 +2920,6 @@ var ( func init() { file_andromeda_escrow_v1alpha1_tx_proto_init() md_MsgExec = File_andromeda_escrow_v1alpha1_tx_proto.Messages().ByName("MsgExec") - fd_MsgExec_proposal = md_MsgExec.Fields().ByName("proposal") fd_MsgExec_executor = md_MsgExec.Fields().ByName("executor") fd_MsgExec_agent = md_MsgExec.Fields().ByName("agent") fd_MsgExec_actions = md_MsgExec.Fields().ByName("actions") @@ -3040,12 +2990,6 @@ func (x *fastReflection_MsgExec) Interface() protoreflect.ProtoMessage { // While iterating, mutating operations may only be performed // on the current field descriptor. func (x *fastReflection_MsgExec) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Proposal != uint64(0) { - value := protoreflect.ValueOfUint64(x.Proposal) - if !f(fd_MsgExec_proposal, value) { - return - } - } if x.Executor != "" { value := protoreflect.ValueOfString(x.Executor) if !f(fd_MsgExec_executor, value) { @@ -3059,7 +3003,7 @@ func (x *fastReflection_MsgExec) Range(f func(protoreflect.FieldDescriptor, prot } } if len(x.Actions) != 0 { - value := protoreflect.ValueOfList(&_MsgExec_4_list{list: &x.Actions}) + value := protoreflect.ValueOfList(&_MsgExec_3_list{list: &x.Actions}) if !f(fd_MsgExec_actions, value) { return } @@ -3079,8 +3023,6 @@ func (x *fastReflection_MsgExec) Range(f func(protoreflect.FieldDescriptor, prot // a repeated field is populated if it is non-empty. func (x *fastReflection_MsgExec) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.MsgExec.proposal": - return x.Proposal != uint64(0) case "andromeda.escrow.v1alpha1.MsgExec.executor": return x.Executor != "" case "andromeda.escrow.v1alpha1.MsgExec.agent": @@ -3103,8 +3045,6 @@ func (x *fastReflection_MsgExec) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgExec) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.MsgExec.proposal": - x.Proposal = uint64(0) case "andromeda.escrow.v1alpha1.MsgExec.executor": x.Executor = "" case "andromeda.escrow.v1alpha1.MsgExec.agent": @@ -3127,9 +3067,6 @@ func (x *fastReflection_MsgExec) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_MsgExec) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "andromeda.escrow.v1alpha1.MsgExec.proposal": - value := x.Proposal - return protoreflect.ValueOfUint64(value) case "andromeda.escrow.v1alpha1.MsgExec.executor": value := x.Executor return protoreflect.ValueOfString(value) @@ -3138,9 +3075,9 @@ func (x *fastReflection_MsgExec) Get(descriptor protoreflect.FieldDescriptor) pr return protoreflect.ValueOfString(value) case "andromeda.escrow.v1alpha1.MsgExec.actions": if len(x.Actions) == 0 { - return protoreflect.ValueOfList(&_MsgExec_4_list{}) + return protoreflect.ValueOfList(&_MsgExec_3_list{}) } - listValue := &_MsgExec_4_list{list: &x.Actions} + listValue := &_MsgExec_3_list{list: &x.Actions} return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { @@ -3162,15 +3099,13 @@ func (x *fastReflection_MsgExec) Get(descriptor protoreflect.FieldDescriptor) pr // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgExec) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.MsgExec.proposal": - x.Proposal = value.Uint() case "andromeda.escrow.v1alpha1.MsgExec.executor": x.Executor = value.Interface().(string) case "andromeda.escrow.v1alpha1.MsgExec.agent": x.Agent = value.Interface().(string) case "andromeda.escrow.v1alpha1.MsgExec.actions": lv := value.List() - clv := lv.(*_MsgExec_4_list) + clv := lv.(*_MsgExec_3_list) x.Actions = *clv.list default: if fd.IsExtension() { @@ -3196,10 +3131,8 @@ func (x *fastReflection_MsgExec) Mutable(fd protoreflect.FieldDescriptor) protor if x.Actions == nil { x.Actions = []*anypb.Any{} } - value := &_MsgExec_4_list{list: &x.Actions} + value := &_MsgExec_3_list{list: &x.Actions} return protoreflect.ValueOfList(value) - case "andromeda.escrow.v1alpha1.MsgExec.proposal": - panic(fmt.Errorf("field proposal of message andromeda.escrow.v1alpha1.MsgExec is not mutable")) case "andromeda.escrow.v1alpha1.MsgExec.executor": panic(fmt.Errorf("field executor of message andromeda.escrow.v1alpha1.MsgExec is not mutable")) case "andromeda.escrow.v1alpha1.MsgExec.agent": @@ -3217,15 +3150,13 @@ func (x *fastReflection_MsgExec) Mutable(fd protoreflect.FieldDescriptor) protor // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_MsgExec) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.MsgExec.proposal": - return protoreflect.ValueOfUint64(uint64(0)) case "andromeda.escrow.v1alpha1.MsgExec.executor": return protoreflect.ValueOfString("") case "andromeda.escrow.v1alpha1.MsgExec.agent": return protoreflect.ValueOfString("") case "andromeda.escrow.v1alpha1.MsgExec.actions": list := []*anypb.Any{} - return protoreflect.ValueOfList(&_MsgExec_4_list{list: &list}) + return protoreflect.ValueOfList(&_MsgExec_3_list{list: &list}) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgExec")) @@ -3295,9 +3226,6 @@ func (x *fastReflection_MsgExec) ProtoMethods() *protoiface.Methods { var n int var l int _ = l - if x.Proposal != 0 { - n += 1 + runtime.Sov(uint64(x.Proposal)) - } l = len(x.Executor) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) @@ -3354,7 +3282,7 @@ func (x *fastReflection_MsgExec) ProtoMethods() *protoiface.Methods { copy(dAtA[i:], encoded) i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- - dAtA[i] = 0x22 + dAtA[i] = 0x1a } } if len(x.Agent) > 0 { @@ -3362,19 +3290,14 @@ func (x *fastReflection_MsgExec) ProtoMethods() *protoiface.Methods { copy(dAtA[i:], x.Agent) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Agent))) i-- - dAtA[i] = 0x1a + dAtA[i] = 0x12 } if len(x.Executor) > 0 { i -= len(x.Executor) copy(dAtA[i:], x.Executor) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Executor))) i-- - dAtA[i] = 0x12 - } - if x.Proposal != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Proposal)) - i-- - dAtA[i] = 0x8 + dAtA[i] = 0xa } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -3426,25 +3349,6 @@ func (x *fastReflection_MsgExec) ProtoMethods() *protoiface.Methods { } switch fieldNum { case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Proposal", wireType) - } - x.Proposal = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.Proposal |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Executor", wireType) } @@ -3476,7 +3380,7 @@ func (x *fastReflection_MsgExec) ProtoMethods() *protoiface.Methods { } x.Executor = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 3: + case 2: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Agent", wireType) } @@ -3508,7 +3412,7 @@ func (x *fastReflection_MsgExec) ProtoMethods() *protoiface.Methods { } x.Agent = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 4: + case 3: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Actions", wireType) } @@ -4175,9 +4079,6 @@ type MsgSubmitProposalResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - - // the identifier of the submitted proposal - Proposal uint64 `protobuf:"varint,1,opt,name=proposal,proto3" json:"proposal,omitempty"` } func (x *MsgSubmitProposalResponse) Reset() { @@ -4200,28 +4101,19 @@ func (*MsgSubmitProposalResponse) Descriptor() ([]byte, []int) { return file_andromeda_escrow_v1alpha1_tx_proto_rawDescGZIP(), []int{5} } -func (x *MsgSubmitProposalResponse) GetProposal() uint64 { - if x != nil { - return x.Proposal - } - return 0 -} - // MsgExec is the Msg/Exec request type. type MsgExec struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // the identifier of the proposal - Proposal uint64 `protobuf:"varint,1,opt,name=proposal,proto3" json:"proposal,omitempty"` // the address of the account executing the proposal - Executor string `protobuf:"bytes,2,opt,name=executor,proto3" json:"executor,omitempty"` + Executor string `protobuf:"bytes,1,opt,name=executor,proto3" json:"executor,omitempty"` // the address of the agent in charge - Agent string `protobuf:"bytes,3,opt,name=agent,proto3" json:"agent,omitempty"` + Agent string `protobuf:"bytes,2,opt,name=agent,proto3" json:"agent,omitempty"` // the messages which will be executed on the execution // Note: the signer of each message must be either the executor or the agent. - Actions []*anypb.Any `protobuf:"bytes,4,rep,name=actions,proto3" json:"actions,omitempty"` + Actions []*anypb.Any `protobuf:"bytes,3,rep,name=actions,proto3" json:"actions,omitempty"` } func (x *MsgExec) Reset() { @@ -4244,13 +4136,6 @@ func (*MsgExec) Descriptor() ([]byte, []int) { return file_andromeda_escrow_v1alpha1_tx_proto_rawDescGZIP(), []int{6} } -func (x *MsgExec) GetProposal() uint64 { - if x != nil { - return x.Proposal - } - return 0 -} - func (x *MsgExec) GetExecutor() string { if x != nil { return x.Executor @@ -4348,67 +4233,63 @@ var file_andromeda_escrow_v1alpha1_tx_proto_rawDesc = []byte{ 0x6e, 0x79, 0x52, 0x0b, 0x70, 0x6f, 0x73, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x3a, 0x0d, 0x82, 0xe7, 0xb0, - 0x2a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x22, 0x37, 0x0a, 0x19, 0x4d, 0x73, + 0x2a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x22, 0x1b, 0x0a, 0x19, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, - 0x73, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, - 0x73, 0x61, 0x6c, 0x22, 0xca, 0x01, 0x0a, 0x07, 0x4d, 0x73, 0x67, 0x45, 0x78, 0x65, 0x63, 0x12, - 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x34, 0x0a, 0x08, 0x65, - 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, - 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, - 0x72, 0x12, 0x2e, 0x0a, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, - 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x05, 0x61, 0x67, 0x65, 0x6e, - 0x74, 0x12, 0x2e, 0x0a, 0x07, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x07, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x3a, 0x0d, 0x82, 0xe7, 0xb0, 0x2a, 0x08, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, - 0x22, 0x11, 0x0a, 0x0f, 0x4d, 0x73, 0x67, 0x45, 0x78, 0x65, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x32, 0xb7, 0x03, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x6e, 0x0a, 0x0c, 0x55, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x2a, 0x2e, 0x61, 0x6e, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xae, 0x01, 0x0a, 0x07, 0x4d, 0x73, 0x67, 0x45, + 0x78, 0x65, 0x63, 0x12, 0x34, 0x0a, 0x08, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, + 0x08, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x12, 0x2e, 0x0a, 0x05, 0x61, 0x67, 0x65, + 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, + 0x6e, 0x67, 0x52, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x2e, 0x0a, 0x07, 0x61, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, + 0x52, 0x07, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x3a, 0x0d, 0x82, 0xe7, 0xb0, 0x2a, 0x08, + 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x22, 0x11, 0x0a, 0x0f, 0x4d, 0x73, 0x67, 0x45, + 0x78, 0x65, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xb7, 0x03, 0x0a, 0x03, + 0x4d, 0x73, 0x67, 0x12, 0x6e, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, + 0x61, 0x6d, 0x73, 0x12, 0x2a, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, + 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, + 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x1a, + 0x32, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, + 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x6b, 0x0a, 0x0b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x67, 0x65, + 0x6e, 0x74, 0x12, 0x29, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, + 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, + 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x1a, 0x31, 0x2e, + 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x74, 0x0a, 0x0e, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, + 0x61, 0x6c, 0x12, 0x2c, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, + 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, + 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, + 0x1a, 0x34, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, + 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, + 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x56, 0x0a, 0x04, 0x45, 0x78, 0x65, 0x63, 0x12, 0x22, + 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, + 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x45, 0x78, + 0x65, 0x63, 0x1a, 0x2a, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, + 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, + 0x73, 0x67, 0x45, 0x78, 0x65, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x1a, 0x05, + 0x80, 0xe7, 0xb0, 0x2a, 0x01, 0x42, 0xdc, 0x01, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, - 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x1a, 0x32, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, - 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, - 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, - 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6b, 0x0a, 0x0b, 0x43, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x29, 0x2e, 0x61, 0x6e, 0x64, - 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, - 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x41, 0x67, 0x65, 0x6e, 0x74, 0x1a, 0x31, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, - 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, - 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x67, 0x65, 0x6e, 0x74, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x74, 0x0a, 0x0e, 0x53, 0x75, 0x62, 0x6d, - 0x69, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x2c, 0x2e, 0x61, 0x6e, 0x64, - 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, - 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, - 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x1a, 0x34, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, - 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, - 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x50, 0x72, - 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x56, - 0x0a, 0x04, 0x45, 0x78, 0x65, 0x63, 0x12, 0x22, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, - 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, - 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x45, 0x78, 0x65, 0x63, 0x1a, 0x2a, 0x2e, 0x61, 0x6e, 0x64, - 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, - 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x45, 0x78, 0x65, 0x63, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x1a, 0x05, 0x80, 0xe7, 0xb0, 0x2a, 0x01, 0x42, 0xdc, 0x01, - 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, - 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, - 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2c, 0x61, 0x70, 0x69, 0x2f, - 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, - 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x3b, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, - 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x45, 0x58, 0xaa, 0x02, - 0x19, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x45, 0x73, 0x63, 0x72, 0x6f, - 0x77, 0x2e, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xca, 0x02, 0x19, 0x41, 0x6e, 0x64, - 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x5c, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x5c, 0x56, 0x31, - 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xe2, 0x02, 0x25, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, - 0x64, 0x61, 0x5c, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, - 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, - 0x1b, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x3a, 0x3a, 0x45, 0x73, 0x63, 0x72, - 0x6f, 0x77, 0x3a, 0x3a, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x33, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, + 0x50, 0x01, 0x5a, 0x2c, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, + 0x61, 0x2f, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x3b, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0xa2, 0x02, 0x03, 0x41, 0x45, 0x58, 0xaa, 0x02, 0x19, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, + 0x64, 0x61, 0x2e, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0xca, 0x02, 0x19, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x5c, 0x45, + 0x73, 0x63, 0x72, 0x6f, 0x77, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xe2, 0x02, + 0x25, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x5c, 0x45, 0x73, 0x63, 0x72, 0x6f, + 0x77, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1b, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, + 0x64, 0x61, 0x3a, 0x3a, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x3a, 0x3a, 0x56, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/x/escrow/api/andromeda/escrow/v1alpha1/types.pulsar.go b/x/escrow/api/andromeda/escrow/v1alpha1/types.pulsar.go index 47bcf11..f86e477 100644 --- a/x/escrow/api/andromeda/escrow/v1alpha1/types.pulsar.go +++ b/x/escrow/api/andromeda/escrow/v1alpha1/types.pulsar.go @@ -839,112 +839,111 @@ func (x *fastReflection_Agent) ProtoMethods() *protoiface.Methods { } } -var _ protoreflect.List = (*_Proposal_3_list)(nil) +var _ protoreflect.List = (*_Proposal_2_list)(nil) -type _Proposal_3_list struct { +type _Proposal_2_list struct { list *[]*anypb.Any } -func (x *_Proposal_3_list) Len() int { +func (x *_Proposal_2_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_Proposal_3_list) Get(i int) protoreflect.Value { +func (x *_Proposal_2_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } -func (x *_Proposal_3_list) Set(i int, value protoreflect.Value) { +func (x *_Proposal_2_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*anypb.Any) (*x.list)[i] = concreteValue } -func (x *_Proposal_3_list) Append(value protoreflect.Value) { +func (x *_Proposal_2_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*anypb.Any) *x.list = append(*x.list, concreteValue) } -func (x *_Proposal_3_list) AppendMutable() protoreflect.Value { +func (x *_Proposal_2_list) AppendMutable() protoreflect.Value { v := new(anypb.Any) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_Proposal_3_list) Truncate(n int) { +func (x *_Proposal_2_list) Truncate(n int) { for i := n; i < len(*x.list); i++ { (*x.list)[i] = nil } *x.list = (*x.list)[:n] } -func (x *_Proposal_3_list) NewElement() protoreflect.Value { +func (x *_Proposal_2_list) NewElement() protoreflect.Value { v := new(anypb.Any) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_Proposal_3_list) IsValid() bool { +func (x *_Proposal_2_list) IsValid() bool { return x.list != nil } -var _ protoreflect.List = (*_Proposal_4_list)(nil) +var _ protoreflect.List = (*_Proposal_3_list)(nil) -type _Proposal_4_list struct { +type _Proposal_3_list struct { list *[]*anypb.Any } -func (x *_Proposal_4_list) Len() int { +func (x *_Proposal_3_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_Proposal_4_list) Get(i int) protoreflect.Value { +func (x *_Proposal_3_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } -func (x *_Proposal_4_list) Set(i int, value protoreflect.Value) { +func (x *_Proposal_3_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*anypb.Any) (*x.list)[i] = concreteValue } -func (x *_Proposal_4_list) Append(value protoreflect.Value) { +func (x *_Proposal_3_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*anypb.Any) *x.list = append(*x.list, concreteValue) } -func (x *_Proposal_4_list) AppendMutable() protoreflect.Value { +func (x *_Proposal_3_list) AppendMutable() protoreflect.Value { v := new(anypb.Any) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_Proposal_4_list) Truncate(n int) { +func (x *_Proposal_3_list) Truncate(n int) { for i := n; i < len(*x.list); i++ { (*x.list)[i] = nil } *x.list = (*x.list)[:n] } -func (x *_Proposal_4_list) NewElement() protoreflect.Value { +func (x *_Proposal_3_list) NewElement() protoreflect.Value { v := new(anypb.Any) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_Proposal_4_list) IsValid() bool { +func (x *_Proposal_3_list) IsValid() bool { return x.list != nil } var ( md_Proposal protoreflect.MessageDescriptor fd_Proposal_proposer protoreflect.FieldDescriptor - fd_Proposal_agent protoreflect.FieldDescriptor fd_Proposal_pre_actions protoreflect.FieldDescriptor fd_Proposal_post_actions protoreflect.FieldDescriptor fd_Proposal_metadata protoreflect.FieldDescriptor @@ -954,7 +953,6 @@ func init() { file_andromeda_escrow_v1alpha1_types_proto_init() md_Proposal = File_andromeda_escrow_v1alpha1_types_proto.Messages().ByName("Proposal") fd_Proposal_proposer = md_Proposal.Fields().ByName("proposer") - fd_Proposal_agent = md_Proposal.Fields().ByName("agent") fd_Proposal_pre_actions = md_Proposal.Fields().ByName("pre_actions") fd_Proposal_post_actions = md_Proposal.Fields().ByName("post_actions") fd_Proposal_metadata = md_Proposal.Fields().ByName("metadata") @@ -1031,20 +1029,14 @@ func (x *fastReflection_Proposal) Range(f func(protoreflect.FieldDescriptor, pro return } } - if len(x.Agent) != 0 { - value := protoreflect.ValueOfBytes(x.Agent) - if !f(fd_Proposal_agent, value) { - return - } - } if len(x.PreActions) != 0 { - value := protoreflect.ValueOfList(&_Proposal_3_list{list: &x.PreActions}) + value := protoreflect.ValueOfList(&_Proposal_2_list{list: &x.PreActions}) if !f(fd_Proposal_pre_actions, value) { return } } if len(x.PostActions) != 0 { - value := protoreflect.ValueOfList(&_Proposal_4_list{list: &x.PostActions}) + value := protoreflect.ValueOfList(&_Proposal_3_list{list: &x.PostActions}) if !f(fd_Proposal_post_actions, value) { return } @@ -1072,8 +1064,6 @@ func (x *fastReflection_Proposal) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { case "andromeda.escrow.v1alpha1.Proposal.proposer": return len(x.Proposer) != 0 - case "andromeda.escrow.v1alpha1.Proposal.agent": - return len(x.Agent) != 0 case "andromeda.escrow.v1alpha1.Proposal.pre_actions": return len(x.PreActions) != 0 case "andromeda.escrow.v1alpha1.Proposal.post_actions": @@ -1098,8 +1088,6 @@ func (x *fastReflection_Proposal) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { case "andromeda.escrow.v1alpha1.Proposal.proposer": x.Proposer = nil - case "andromeda.escrow.v1alpha1.Proposal.agent": - x.Agent = nil case "andromeda.escrow.v1alpha1.Proposal.pre_actions": x.PreActions = nil case "andromeda.escrow.v1alpha1.Proposal.post_actions": @@ -1125,20 +1113,17 @@ func (x *fastReflection_Proposal) Get(descriptor protoreflect.FieldDescriptor) p case "andromeda.escrow.v1alpha1.Proposal.proposer": value := x.Proposer return protoreflect.ValueOfBytes(value) - case "andromeda.escrow.v1alpha1.Proposal.agent": - value := x.Agent - return protoreflect.ValueOfBytes(value) case "andromeda.escrow.v1alpha1.Proposal.pre_actions": if len(x.PreActions) == 0 { - return protoreflect.ValueOfList(&_Proposal_3_list{}) + return protoreflect.ValueOfList(&_Proposal_2_list{}) } - listValue := &_Proposal_3_list{list: &x.PreActions} + listValue := &_Proposal_2_list{list: &x.PreActions} return protoreflect.ValueOfList(listValue) case "andromeda.escrow.v1alpha1.Proposal.post_actions": if len(x.PostActions) == 0 { - return protoreflect.ValueOfList(&_Proposal_4_list{}) + return protoreflect.ValueOfList(&_Proposal_3_list{}) } - listValue := &_Proposal_4_list{list: &x.PostActions} + listValue := &_Proposal_3_list{list: &x.PostActions} return protoreflect.ValueOfList(listValue) case "andromeda.escrow.v1alpha1.Proposal.metadata": value := x.Metadata @@ -1165,15 +1150,13 @@ func (x *fastReflection_Proposal) Set(fd protoreflect.FieldDescriptor, value pro switch fd.FullName() { case "andromeda.escrow.v1alpha1.Proposal.proposer": x.Proposer = value.Bytes() - case "andromeda.escrow.v1alpha1.Proposal.agent": - x.Agent = value.Bytes() case "andromeda.escrow.v1alpha1.Proposal.pre_actions": lv := value.List() - clv := lv.(*_Proposal_3_list) + clv := lv.(*_Proposal_2_list) x.PreActions = *clv.list case "andromeda.escrow.v1alpha1.Proposal.post_actions": lv := value.List() - clv := lv.(*_Proposal_4_list) + clv := lv.(*_Proposal_3_list) x.PostActions = *clv.list case "andromeda.escrow.v1alpha1.Proposal.metadata": x.Metadata = value.Interface().(string) @@ -1201,18 +1184,16 @@ func (x *fastReflection_Proposal) Mutable(fd protoreflect.FieldDescriptor) proto if x.PreActions == nil { x.PreActions = []*anypb.Any{} } - value := &_Proposal_3_list{list: &x.PreActions} + value := &_Proposal_2_list{list: &x.PreActions} return protoreflect.ValueOfList(value) case "andromeda.escrow.v1alpha1.Proposal.post_actions": if x.PostActions == nil { x.PostActions = []*anypb.Any{} } - value := &_Proposal_4_list{list: &x.PostActions} + value := &_Proposal_3_list{list: &x.PostActions} return protoreflect.ValueOfList(value) case "andromeda.escrow.v1alpha1.Proposal.proposer": panic(fmt.Errorf("field proposer of message andromeda.escrow.v1alpha1.Proposal is not mutable")) - case "andromeda.escrow.v1alpha1.Proposal.agent": - panic(fmt.Errorf("field agent of message andromeda.escrow.v1alpha1.Proposal is not mutable")) case "andromeda.escrow.v1alpha1.Proposal.metadata": panic(fmt.Errorf("field metadata of message andromeda.escrow.v1alpha1.Proposal is not mutable")) default: @@ -1230,14 +1211,12 @@ func (x *fastReflection_Proposal) NewField(fd protoreflect.FieldDescriptor) prot switch fd.FullName() { case "andromeda.escrow.v1alpha1.Proposal.proposer": return protoreflect.ValueOfBytes(nil) - case "andromeda.escrow.v1alpha1.Proposal.agent": - return protoreflect.ValueOfBytes(nil) case "andromeda.escrow.v1alpha1.Proposal.pre_actions": list := []*anypb.Any{} - return protoreflect.ValueOfList(&_Proposal_3_list{list: &list}) + return protoreflect.ValueOfList(&_Proposal_2_list{list: &list}) case "andromeda.escrow.v1alpha1.Proposal.post_actions": list := []*anypb.Any{} - return protoreflect.ValueOfList(&_Proposal_4_list{list: &list}) + return protoreflect.ValueOfList(&_Proposal_3_list{list: &list}) case "andromeda.escrow.v1alpha1.Proposal.metadata": return protoreflect.ValueOfString("") default: @@ -1313,10 +1292,6 @@ func (x *fastReflection_Proposal) ProtoMethods() *protoiface.Methods { if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.Agent) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } if len(x.PreActions) > 0 { for _, e := range x.PreActions { l = options.Size(e) @@ -1367,7 +1342,7 @@ func (x *fastReflection_Proposal) ProtoMethods() *protoiface.Methods { copy(dAtA[i:], x.Metadata) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Metadata))) i-- - dAtA[i] = 0x2a + dAtA[i] = 0x22 } if len(x.PostActions) > 0 { for iNdEx := len(x.PostActions) - 1; iNdEx >= 0; iNdEx-- { @@ -1382,7 +1357,7 @@ func (x *fastReflection_Proposal) ProtoMethods() *protoiface.Methods { copy(dAtA[i:], encoded) i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- - dAtA[i] = 0x22 + dAtA[i] = 0x1a } } if len(x.PreActions) > 0 { @@ -1398,16 +1373,9 @@ func (x *fastReflection_Proposal) ProtoMethods() *protoiface.Methods { copy(dAtA[i:], encoded) i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- - dAtA[i] = 0x1a + dAtA[i] = 0x12 } } - if len(x.Agent) > 0 { - i -= len(x.Agent) - copy(dAtA[i:], x.Agent) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Agent))) - i-- - dAtA[i] = 0x12 - } if len(x.Proposer) > 0 { i -= len(x.Proposer) copy(dAtA[i:], x.Proposer) @@ -1499,40 +1467,6 @@ func (x *fastReflection_Proposal) ProtoMethods() *protoiface.Methods { } iNdEx = postIndex case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Agent", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Agent = append(x.Agent[:0], dAtA[iNdEx:postIndex]...) - if x.Agent == nil { - x.Agent = []byte{} - } - iNdEx = postIndex - case 3: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PreActions", wireType) } @@ -1566,7 +1500,7 @@ func (x *fastReflection_Proposal) ProtoMethods() *protoiface.Methods { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex - case 4: + case 3: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PostActions", wireType) } @@ -1600,7 +1534,7 @@ func (x *fastReflection_Proposal) ProtoMethods() *protoiface.Methods { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex - case 5: + case 4: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) } @@ -1762,14 +1696,12 @@ type Proposal struct { // the address of the proposer Proposer []byte `protobuf:"bytes,1,opt,name=proposer,proto3" json:"proposer,omitempty"` - // the address of the agent in charge - Agent []byte `protobuf:"bytes,2,opt,name=agent,proto3" json:"agent,omitempty"` // the messages which has been executed on the submission - PreActions []*anypb.Any `protobuf:"bytes,3,rep,name=pre_actions,json=preActions,proto3" json:"pre_actions,omitempty"` + PreActions []*anypb.Any `protobuf:"bytes,2,rep,name=pre_actions,json=preActions,proto3" json:"pre_actions,omitempty"` // the messages which will be executed after the actions included in Msg/Exec - PostActions []*anypb.Any `protobuf:"bytes,4,rep,name=post_actions,json=postActions,proto3" json:"post_actions,omitempty"` + PostActions []*anypb.Any `protobuf:"bytes,3,rep,name=post_actions,json=postActions,proto3" json:"post_actions,omitempty"` // any arbitrary metadata attached to the proposal - Metadata string `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"` + Metadata string `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"` } func (x *Proposal) Reset() { @@ -1799,13 +1731,6 @@ func (x *Proposal) GetProposer() []byte { return nil } -func (x *Proposal) GetAgent() []byte { - if x != nil { - return x.Agent - } - return nil -} - func (x *Proposal) GetPreActions() []*anypb.Any { if x != nil { return x.PreActions @@ -1841,34 +1766,33 @@ var file_andromeda_escrow_v1alpha1_types_proto_rawDesc = []byte{ 0x20, 0x01, 0x28, 0x04, 0x52, 0x11, 0x6d, 0x61, 0x78, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x4c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x22, 0x21, 0x0a, 0x05, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0c, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0xc8, 0x01, 0x0a, 0x08, 0x50, + 0x0c, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0xb2, 0x01, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, - 0x73, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0c, 0x52, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x35, 0x0a, 0x0b, 0x70, 0x72, 0x65, - 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0a, 0x70, 0x72, 0x65, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x12, 0x37, 0x0a, 0x0c, 0x70, 0x6f, 0x73, 0x74, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, 0x70, 0x6f, - 0x73, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0x42, 0xdf, 0x01, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x6e, - 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, - 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x0a, 0x54, 0x79, 0x70, 0x65, 0x73, 0x50, 0x72, - 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2c, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x64, 0x72, 0x6f, - 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2f, 0x76, 0x31, 0x61, 0x6c, - 0x70, 0x68, 0x61, 0x31, 0x3b, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x76, 0x31, 0x61, 0x6c, 0x70, - 0x68, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x45, 0x58, 0xaa, 0x02, 0x19, 0x41, 0x6e, 0x64, 0x72, - 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x56, 0x31, 0x61, - 0x6c, 0x70, 0x68, 0x61, 0x31, 0xca, 0x02, 0x19, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, - 0x61, 0x5c, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, - 0x31, 0xe2, 0x02, 0x25, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x5c, 0x45, 0x73, - 0x63, 0x72, 0x6f, 0x77, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x5c, 0x47, 0x50, - 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1b, 0x41, 0x6e, 0x64, 0x72, - 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x3a, 0x3a, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x3a, 0x3a, 0x56, - 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x73, 0x65, 0x72, 0x12, 0x35, 0x0a, 0x0b, 0x70, 0x72, 0x65, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0a, + 0x70, 0x72, 0x65, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x37, 0x0a, 0x0c, 0x70, 0x6f, + 0x73, 0x74, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, 0x70, 0x6f, 0x73, 0x74, 0x41, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x42, + 0xdf, 0x01, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, + 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x42, 0x0a, 0x54, 0x79, 0x70, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, + 0x2c, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x65, + 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x3b, 0x65, + 0x73, 0x63, 0x72, 0x6f, 0x77, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xa2, 0x02, 0x03, + 0x41, 0x45, 0x58, 0xaa, 0x02, 0x19, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, + 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xca, + 0x02, 0x19, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x5c, 0x45, 0x73, 0x63, 0x72, + 0x6f, 0x77, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xe2, 0x02, 0x25, 0x41, 0x6e, + 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x5c, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x5c, 0x56, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0xea, 0x02, 0x1b, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x3a, + 0x3a, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x3a, 0x3a, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/x/escrow/keeper/internal/exec.go b/x/escrow/keeper/internal/exec.go index 68cf233..19915c0 100644 --- a/x/escrow/keeper/internal/exec.go +++ b/x/escrow/keeper/internal/exec.go @@ -11,16 +11,12 @@ import ( escrowv1alpha1 "github.com/0tech/andromeda/x/escrow/andromeda/escrow/v1alpha1" ) -func (k Keeper) Exec(ctx context.Context, id uint64, _, agent sdk.AccAddress, actions []*codectypes.Any) error { - proposal, err := k.GetProposal(ctx, id) +func (k Keeper) Exec(ctx context.Context, _, agent sdk.AccAddress, actions []*codectypes.Any) error { + proposal, err := k.GetProposal(ctx, agent) if err != nil { return err } - if !agent.Equals(sdk.AccAddress(proposal.Agent)) { - return escrowv1alpha1.ErrPermissionDenied.Wrap("agent differs from proposal's") - } - for _, phase := range []struct { name string actions []*codectypes.Any @@ -39,7 +35,7 @@ func (k Keeper) Exec(ctx context.Context, id uint64, _, agent sdk.AccAddress, ac } } - return k.removeProposal(ctx, id) + return k.removeProposal(ctx, agent) } func (k Keeper) executeActions(ctx context.Context, actions []*codectypes.Any) error { diff --git a/x/escrow/keeper/internal/exec_test.go b/x/escrow/keeper/internal/exec_test.go index 9ec1378..d4b7bd1 100644 --- a/x/escrow/keeper/internal/exec_test.go +++ b/x/escrow/keeper/internal/exec_test.go @@ -11,48 +11,31 @@ import ( func (s *KeeperTestSuite) TestExec() { type exec struct { - id uint64 executor sdk.AccAddress agent sdk.AccAddress actions []*codectypes.Any } tester := func(subject exec) error { - s.NotZero(subject.id) s.NotNil(subject.executor) s.NotNil(subject.agent) s.NotNil(subject.actions) ctx, _ := sdk.UnwrapSDKContext(s.ctx).CacheContext() - err := s.keeper.Exec(ctx, subject.id, subject.executor, subject.agent, subject.actions) + err := s.keeper.Exec(ctx, subject.executor, subject.agent, subject.actions) if err != nil { return err } - _, err = s.keeper.GetProposal(s.ctx, subject.id) + _, err = s.keeper.GetProposal(s.ctx, subject.agent) s.Assert().NoError(err) - _, err = s.keeper.GetProposal(ctx, subject.id) + _, err = s.keeper.GetProposal(ctx, subject.agent) s.Require().Error(err) return nil } cases := []map[string]testutil.Case[exec]{ - { - "id already exists": { - Malleate: func(subject *exec) { - subject.id = s.proposalAny - }, - }, - "id not found": { - Malleate: func(subject *exec) { - subject.id = s.proposalLast + 1 - }, - Error: func() error { - return escrowv1alpha1.ErrProposalNotFound - }, - }, - }, { "executor already exists": { Malleate: func(subject *exec) { @@ -66,12 +49,12 @@ func (s *KeeperTestSuite) TestExec() { subject.agent = s.agentAny }, }, - "agent differs from the proposal's": { + "proposal not found": { Malleate: func(subject *exec) { subject.agent = s.agentIdle }, Error: func() error { - return escrowv1alpha1.ErrPermissionDenied + return escrowv1alpha1.ErrProposalNotFound }, }, }, diff --git a/x/escrow/keeper/internal/genesis.go b/x/escrow/keeper/internal/genesis.go index 81e1c71..230dfa4 100644 --- a/x/escrow/keeper/internal/genesis.go +++ b/x/escrow/keeper/internal/genesis.go @@ -12,11 +12,10 @@ import ( func (k Keeper) DefaultGenesis() *escrowv1alpha1.GenesisState { return &escrowv1alpha1.GenesisState{ - Params: DefaultGenesisParams(), - NextAgent: 1, - Agents: []*escrowv1alpha1.GenesisState_Agent{}, - NextProposal: 1, - Proposals: []*escrowv1alpha1.GenesisState_Proposal{}, + Params: DefaultGenesisParams(), + NextAgent: 1, + Agents: []*escrowv1alpha1.GenesisState_Agent{}, + Proposals: []*escrowv1alpha1.GenesisState_Proposal{}, } } @@ -39,10 +38,6 @@ func (k Keeper) ValidateGenesis(gs *escrowv1alpha1.GenesisState) error { return escrowv1alpha1.ErrUnimplemented.Wrap("nil agents") } - if gs.NextProposal == 0 { - return escrowv1alpha1.ErrUnimplemented.Wrap("nil next_proposal") - } - if gs.Proposals == nil { return escrowv1alpha1.ErrUnimplemented.Wrap("nil proposals") } @@ -111,7 +106,7 @@ func (k Keeper) validateGenesisAgent(agent *escrowv1alpha1.GenesisState_Agent) e } func (k Keeper) validateGenesisProposals(proposals []*escrowv1alpha1.GenesisState_Proposal) error { - seen := map[uint64]bool{} + seen := map[string]bool{} for i, proposal := range proposals { if proposal == nil { return indexedError(escrowv1alpha1.ErrUnimplemented.Wrap("nil proposal"), i) @@ -121,28 +116,24 @@ func (k Keeper) validateGenesisProposals(proposals []*escrowv1alpha1.GenesisStat return indexedError(err, i) } - if seen[proposal.Id] { + if seen[proposal.Agent] { return indexedError(escrowv1alpha1.ErrDuplicateEntry, i) } - seen[proposal.Id] = true + seen[proposal.Agent] = true } return nil } func (k Keeper) validateGenesisProposal(proposal *escrowv1alpha1.GenesisState_Proposal) error { - if proposal.Id == 0 { - return escrowv1alpha1.ErrUnimplemented.Wrap("nil id") + if proposal.Agent == "" { + return escrowv1alpha1.ErrUnimplemented.Wrap("nil agent") } if proposal.Proposer == "" { return escrowv1alpha1.ErrUnimplemented.Wrap("nil proposer") } - if proposal.Agent == "" { - return escrowv1alpha1.ErrUnimplemented.Wrap("nil agent") - } - if proposal.PreActions == nil { return escrowv1alpha1.ErrUnimplemented.Wrap("nil pre_actions") } @@ -155,14 +146,14 @@ func (k Keeper) validateGenesisProposal(proposal *escrowv1alpha1.GenesisState_Pr return escrowv1alpha1.ErrUnimplemented.Wrap("nil metadata") } - if _, err := k.addressStringToBytes(proposal.Proposer); err != nil { - return errors.Wrap(err, "proposer") - } - if _, err := k.addressStringToBytes(proposal.Agent); err != nil { return errors.Wrap(err, "agent") } + if _, err := k.addressStringToBytes(proposal.Proposer); err != nil { + return errors.Wrap(err, "proposer") + } + return nil } @@ -179,10 +170,6 @@ func (k Keeper) InitGenesis(ctx context.Context, gs *escrowv1alpha1.GenesisState return errors.Wrap(err, "agents") } - if err := k.nextProposal.Set(ctx, gs.NextProposal); err != nil { - return errors.Wrap(err, "next_proposal") - } - if err := k.initGenesisProposals(ctx, gs.Proposals); err != nil { return errors.Wrap(err, "proposals") } @@ -233,19 +220,18 @@ func (k Keeper) initGenesisProposals(ctx context.Context, proposals []*escrowv1a } func (k Keeper) initGenesisProposal(ctx context.Context, proposal *escrowv1alpha1.GenesisState_Proposal) error { - proposer, err := k.addressStringToBytes(proposal.Proposer) + agent, err := k.addressStringToBytes(proposal.Agent) if err != nil { - return errors.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "proposer") + return errors.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "agent") } - agent, err := k.addressStringToBytes(proposal.Agent) + proposer, err := k.addressStringToBytes(proposal.Proposer) if err != nil { - return errors.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "agent") + return errors.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "proposer") } - return k.setProposal(ctx, proposal.Id, &escrowv1alpha1.Proposal{ + return k.setProposal(ctx, agent, &escrowv1alpha1.Proposal{ Proposer: proposer, - Agent: agent, PreActions: proposal.PreActions, PostActions: proposal.PostActions, Metadata: proposal.Metadata, @@ -268,22 +254,16 @@ func (k Keeper) ExportGenesis(ctx context.Context) (*escrowv1alpha1.GenesisState return nil, errors.Wrap(err, "agents") } - nextProposal, err := k.nextProposal.Peek(ctx) - if err != nil { - return nil, errors.Wrap(err, "next_proposal") - } - proposals, err := k.exportGenesisProposals(ctx) if err != nil { return nil, errors.Wrap(err, "proposals") } return &escrowv1alpha1.GenesisState{ - Params: params, - NextAgent: nextAgent, - Agents: agents, - NextProposal: nextProposal, - Proposals: proposals, + Params: params, + NextAgent: nextAgent, + Agents: agents, + Proposals: proposals, }, nil } @@ -326,21 +306,20 @@ func (k Keeper) exportGenesisAgents(ctx context.Context) ([]*escrowv1alpha1.Gene func (k Keeper) exportGenesisProposals(ctx context.Context) ([]*escrowv1alpha1.GenesisState_Proposal, error) { proposals := []*escrowv1alpha1.GenesisState_Proposal{} - if err := k.iterateProposals(ctx, func(id uint64, proposal escrowv1alpha1.Proposal) error { - proposerStr, err := k.addressBytesToString(proposal.Proposer) + if err := k.iterateProposals(ctx, func(agent sdk.AccAddress, proposal escrowv1alpha1.Proposal) error { + agentStr, err := k.addressBytesToString(agent) if err != nil { - return errors.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "proposer") + return errors.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "agent") } - agentStr, err := k.addressBytesToString(proposal.Agent) + proposerStr, err := k.addressBytesToString(proposal.Proposer) if err != nil { - return errors.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "agent") + return errors.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "proposer") } proposals = append(proposals, &escrowv1alpha1.GenesisState_Proposal{ - Id: id, - Proposer: proposerStr, Agent: agentStr, + Proposer: proposerStr, PreActions: proposal.PreActions, PostActions: proposal.PostActions, Metadata: proposal.Metadata, diff --git a/x/escrow/keeper/internal/genesis_test.go b/x/escrow/keeper/internal/genesis_test.go index 7018803..7421162 100644 --- a/x/escrow/keeper/internal/genesis_test.go +++ b/x/escrow/keeper/internal/genesis_test.go @@ -194,18 +194,8 @@ func TestValidateGenesisProposals(t *testing.T) { return addressStr } - ids := make([]uint64, 2) - for i := range ids { - ids[i] = uint64(i) + 1 - } - - var proposerStr, agentStr string - for _, addrStr := range []*string{ - &proposerStr, - &agentStr, - } { - *addrStr = addressBytesToString(createRandomAccounts(1)[0]) - } + agents := createRandomAccounts(2) + proposerStr := addressBytesToString(createRandomAccounts(1)[0]) tester := func(subject []*escrowv1alpha1.GenesisState_Proposal) error { gs := k.DefaultGenesis() @@ -221,8 +211,8 @@ func TestValidateGenesisProposals(t *testing.T) { }, }, } - for _, id := range ids { - id := id + for _, agent := range agents { + agentStr := addressBytesToString(agent) added := false cases = append(cases, []map[string]testutil.Case[[]*escrowv1alpha1.GenesisState_Proposal]{ @@ -249,25 +239,7 @@ func TestValidateGenesisProposals(t *testing.T) { }, }, { - "nil id": { - Error: func() error { - if !added { - return nil - } - return escrowv1alpha1.ErrUnimplemented - }, - }, - "valid id": { - Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Proposal) { - if !added { - return - } - (*subject)[len(*subject)-1].Id = id - }, - }, - }, - { - "nil proposer": { + "nil agent": { Error: func() error { if !added { return nil @@ -275,20 +247,20 @@ func TestValidateGenesisProposals(t *testing.T) { return escrowv1alpha1.ErrUnimplemented }, }, - "valid proposer": { + "valid agent": { Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Proposal) { if !added { return } - (*subject)[len(*subject)-1].Proposer = proposerStr + (*subject)[len(*subject)-1].Agent = agentStr }, }, - "invalid proposer": { + "invalid agent": { Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Proposal) { if !added { return } - (*subject)[len(*subject)-1].Proposer = notInBech32 + (*subject)[len(*subject)-1].Agent = notInBech32 }, Error: func() error { if !added { @@ -299,7 +271,7 @@ func TestValidateGenesisProposals(t *testing.T) { }, }, { - "nil agent": { + "nil proposer": { Error: func() error { if !added { return nil @@ -307,20 +279,20 @@ func TestValidateGenesisProposals(t *testing.T) { return escrowv1alpha1.ErrUnimplemented }, }, - "valid agent": { + "valid proposer": { Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Proposal) { if !added { return } - (*subject)[len(*subject)-1].Agent = agentStr + (*subject)[len(*subject)-1].Proposer = proposerStr }, }, - "invalid agent": { + "invalid proposer": { Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Proposal) { if !added { return } - (*subject)[len(*subject)-1].Agent = notInBech32 + (*subject)[len(*subject)-1].Proposer = notInBech32 }, Error: func() error { if !added { @@ -395,9 +367,8 @@ func TestValidateGenesisProposals(t *testing.T) { return } *subject = append(*subject, &escrowv1alpha1.GenesisState_Proposal{ - Id: id, - Proposer: proposerStr, Agent: agentStr, + Proposer: proposerStr, PreActions: []*codectypes.Any{}, PostActions: []*codectypes.Any{}, Metadata: randomString(int(k.DefaultGenesis().Params.MaxMetadataLength) - 1), @@ -459,18 +430,6 @@ func TestValidateGenesis(t *testing.T) { }, }, }, - { - "nil next_proposal": { - Error: func() error { - return escrowv1alpha1.ErrUnimplemented - }, - }, - "valid next_proposal": { - Malleate: func(subject *escrowv1alpha1.GenesisState) { - subject.NextProposal = k.DefaultGenesis().NextProposal - }, - }, - }, { "nil proposals": { Error: func() error { @@ -616,19 +575,14 @@ func TestInitExportGenesisProposals(t *testing.T) { assert.NoError(t, err) return addressStr } - - ids := make([]uint64, 4) - for i := range ids { - ids[i] = uint64(i) + 1 + addressStringToBytes := func(address string) sdk.AccAddress { + addressBytes, err := addressCodec.StringToBytes(address) + assert.NoError(t, err) + return addressBytes } - var proposerStr, agentStr string - for _, addrStr := range []*string{ - &proposerStr, - &agentStr, - } { - *addrStr = addressBytesToString(createRandomAccounts(1)[0]) - } + agents := simtestutil.CreateIncrementalAccounts(4) + proposerStr := addressBytesToString(createRandomAccounts(1)[0]) tester := func(subject []*escrowv1alpha1.GenesisState_Proposal) error { gsInput := k.DefaultGenesis() @@ -642,15 +596,16 @@ func TestInitExportGenesisProposals(t *testing.T) { } for i, proposal := range subject { - proposalBefore, err := k.GetProposal(ctxBefore, proposal.Id) + agent := addressStringToBytes(proposal.Agent) + + proposalBefore, err := k.GetProposal(ctxBefore, agent) assert.Error(t, err, i) assert.Nil(t, proposalBefore, i) - proposalAfter, err := k.GetProposal(ctxAfter, proposal.Id) + proposalAfter, err := k.GetProposal(ctxAfter, agent) assert.NoError(t, err, i) assert.NotNil(t, proposalAfter, i) assert.Equal(t, proposal.Proposer, addressBytesToString(proposalAfter.Proposer), i) - assert.Equal(t, proposal.Agent, addressBytesToString(proposalAfter.Agent), i) assert.Equal(t, proposal.PreActions, proposalAfter.PreActions, i) assert.Equal(t, proposal.PostActions, proposalAfter.PostActions, i) assert.Equal(t, proposal.Metadata, proposalAfter.Metadata, i) @@ -672,17 +627,16 @@ func TestInitExportGenesisProposals(t *testing.T) { }, }, } - for i, id := range ids { - id := id + for i, agent := range agents { + agentStr := addressBytesToString(agent) cases = append(cases, map[string]testutil.Case[[]*escrowv1alpha1.GenesisState_Proposal]{ "": {}, fmt.Sprintf("proposal %d", i): { Malleate: func(subject *[]*escrowv1alpha1.GenesisState_Proposal) { *subject = append(*subject, &escrowv1alpha1.GenesisState_Proposal{ - Id: id, - Proposer: proposerStr, Agent: agentStr, + Proposer: proposerStr, PreActions: []*codectypes.Any{}, PostActions: []*codectypes.Any{}, Metadata: "metadata", @@ -736,13 +690,6 @@ func TestInitExportGenesis(t *testing.T) { }, }, }, - { - "valid next_proposal": { - Malleate: func(subject *escrowv1alpha1.GenesisState) { - subject.NextProposal = k.DefaultGenesis().NextProposal - }, - }, - }, { "valid proposals": { Malleate: func(subject *escrowv1alpha1.GenesisState) { diff --git a/x/escrow/keeper/internal/grpc_query.go b/x/escrow/keeper/internal/grpc_query.go index 9ee7f16..573707e 100644 --- a/x/escrow/keeper/internal/grpc_query.go +++ b/x/escrow/keeper/internal/grpc_query.go @@ -113,30 +113,29 @@ func (s queryServer) Proposal(ctx context.Context, req *escrowv1alpha1.QueryProp return nil, errNilRequest } - if req.Proposal == 0 { - return nil, escrowv1alpha1.ErrUnimplemented.Wrap("nil proposal") + if req.Agent == "" { + return nil, escrowv1alpha1.ErrUnimplemented.Wrap("nil agent") } - proposal, err := s.keeper.GetProposal(ctx, req.Proposal) + agent, err := s.keeper.addressStringToBytes(req.Agent) if err != nil { - return nil, err + return nil, errors.Wrap(err, "agent") } - proposerStr, err := s.keeper.addressBytesToString(proposal.Proposer) + proposal, err := s.keeper.GetProposal(ctx, agent) if err != nil { - return nil, errors.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "proposer") + return nil, err } - agentStr, err := s.keeper.addressBytesToString(proposal.Agent) + proposerStr, err := s.keeper.addressBytesToString(proposal.Proposer) if err != nil { - return nil, errors.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "agent") + return nil, errors.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "proposer") } return &escrowv1alpha1.QueryProposalResponse{ Proposal: &escrowv1alpha1.QueryProposalResponse_Proposal{ - Id: req.Proposal, + Agent: req.Agent, Proposer: proposerStr, - Agent: agentStr, PreActions: proposal.PreActions, PostActions: proposal.PostActions, Metadata: proposal.Metadata, @@ -149,26 +148,25 @@ func (s queryServer) Proposals(ctx context.Context, req *escrowv1alpha1.QueryPro return nil, errNilRequest } - proposals, pageRes, err := query.CollectionPaginate(ctx, s.keeper.proposals, req.Pagination, func(key uint64, value escrowv1alpha1.Proposal) (*escrowv1alpha1.QueryProposalsResponse_Proposal, error) { - id := key + proposals, pageRes, err := query.CollectionPaginate(ctx, s.keeper.proposals, req.Pagination, func(key sdk.AccAddress, value escrowv1alpha1.Proposal) (*escrowv1alpha1.QueryProposalsResponse_Proposal, error) { + agent := key proposal := value - proposerStr, err := s.keeper.addressBytesToString(proposal.Proposer) + agentStr, err := s.keeper.addressBytesToString(agent) if err != nil { - return nil, errors.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "proposer") + return nil, errors.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "agent") } - agentStr, err := s.keeper.addressBytesToString(proposal.Agent) + proposerStr, err := s.keeper.addressBytesToString(proposal.Proposer) if err != nil { - return nil, errors.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "agent") + return nil, errors.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "proposer") } s.keeper.fixActions(&proposal) return &escrowv1alpha1.QueryProposalsResponse_Proposal{ - Id: id, - Proposer: proposerStr, Agent: agentStr, + Proposer: proposerStr, PreActions: proposal.PreActions, PostActions: proposal.PostActions, Metadata: proposal.Metadata, diff --git a/x/escrow/keeper/internal/grpc_query_test.go b/x/escrow/keeper/internal/grpc_query_test.go index caf8f5f..116ea1b 100644 --- a/x/escrow/keeper/internal/grpc_query_test.go +++ b/x/escrow/keeper/internal/grpc_query_test.go @@ -109,29 +109,29 @@ func (s *KeeperTestSuite) TestQueryProposal() { s.Require().NotNil(res) s.Require().NotNil(res.Proposal) - s.Require().Equal(subject.Proposal, res.Proposal.Id) + s.Require().Equal(subject.Agent, res.Proposal.Agent) s.Require().NotNil(res.Proposal.Proposer) - s.Require().NotNil(res.Proposal.Agent) s.Require().NotNil(res.Proposal.PreActions) s.Require().NotNil(res.Proposal.PostActions) + s.Require().NotEmpty(res.Proposal.Metadata) return nil } cases := []map[string]testutil.Case[escrowv1alpha1.QueryProposalRequest]{ { - "nil proposal": { + "nil agent": { Error: func() error { return escrowv1alpha1.ErrUnimplemented }, }, - "valid proposal": { + "valid agent": { Malleate: func(subject *escrowv1alpha1.QueryProposalRequest) { - subject.Proposal = s.proposalLast + subject.Agent = s.addressBytesToString(s.agentAny) }, }, "proposal not found": { Malleate: func(subject *escrowv1alpha1.QueryProposalRequest) { - subject.Proposal = s.proposalLast + 1 + subject.Agent = s.addressBytesToString(s.agentIdle) }, Error: func() error { return escrowv1alpha1.ErrProposalNotFound @@ -155,11 +155,11 @@ func (s *KeeperTestSuite) TestQueryProposals() { for i, proposal := range res.Proposals { s.Require().NotNil(proposal, i) - s.Require().NotZero(proposal.Id, i) - s.Require().NotNil(proposal.Proposer, i) s.Require().NotNil(proposal.Agent, i) + s.Require().NotNil(proposal.Proposer, i) s.Require().NotNil(proposal.PreActions, i) s.Require().NotNil(proposal.PostActions, i) + s.Require().NotEmpty(proposal.Metadata, i) } return nil } diff --git a/x/escrow/keeper/internal/keeper.go b/x/escrow/keeper/internal/keeper.go index 9a7d442..a81aaa8 100644 --- a/x/escrow/keeper/internal/keeper.go +++ b/x/escrow/keeper/internal/keeper.go @@ -29,8 +29,7 @@ type Keeper struct { nextAgent collections.Sequence agents *collections.IndexedMap[sdk.AccAddress, escrowv1alpha1.Agent, agentsIndexes] - nextProposal collections.Sequence - proposals *collections.IndexedMap[uint64, escrowv1alpha1.Proposal, proposalsIndexes] + proposals *collections.IndexedMap[sdk.AccAddress, escrowv1alpha1.Proposal, proposalsIndexes] } func NewKeeper( @@ -54,9 +53,8 @@ func NewKeeper( codec.CollValue[escrowv1alpha1.Agent](cdc), newAgentsIndexes(sb), ), - nextProposal: collections.NewSequence(sb, proposalsSeqKey, "next_proposal"), proposals: collections.NewIndexedMap(sb, proposalsKeyPrefix, "proposals", - collections.Uint64Key, + sdk.AccAddressKey, codec.CollValue[escrowv1alpha1.Proposal](cdc), newProposalsIndexes(sb), ), diff --git a/x/escrow/keeper/internal/keeper_test.go b/x/escrow/keeper/internal/keeper_test.go index cd1f40b..df5ac44 100644 --- a/x/escrow/keeper/internal/keeper_test.go +++ b/x/escrow/keeper/internal/keeper_test.go @@ -73,11 +73,6 @@ type KeeperTestSuite struct { agentDedicated sdk.AccAddress agentAny sdk.AccAddress agentIdle sdk.AccAddress - agentLast sdk.AccAddress - - proposalDedicated uint64 - proposalAny uint64 - proposalLast uint64 } func (s *KeeperTestSuite) addressBytesToString(address sdk.AccAddress) string { @@ -171,10 +166,9 @@ func (s *KeeperTestSuite) SetupTest() { *agent, err = s.keeper.CreateAgent(s.ctx, s.seller) s.NoError(err) } - s.agentLast = s.agentIdle // submit proposal for the buyer - s.proposalDedicated, err = s.keeper.SubmitProposal(s.ctx, s.seller, s.agentDedicated, + err = s.keeper.SubmitProposal(s.ctx, s.seller, s.agentDedicated, s.encodeMsgs([]sdk.Msg{ &testv1alpha1.MsgSend{ Sender: s.addressBytesToString(s.seller), @@ -199,7 +193,7 @@ func (s *KeeperTestSuite) SetupTest() { s.NoError(err) // submit proposal for anyone - s.proposalAny, err = s.keeper.SubmitProposal(s.ctx, s.seller, s.agentAny, + err = s.keeper.SubmitProposal(s.ctx, s.seller, s.agentAny, s.encodeMsgs([]sdk.Msg{ &testv1alpha1.MsgSend{ Sender: s.addressBytesToString(s.seller), @@ -217,9 +211,6 @@ func (s *KeeperTestSuite) SetupTest() { "sell a dog for a voucher", ) s.NoError(err) - - // store the last proposal id - s.proposalLast = s.proposalAny } func TestKeeperTestSuite(t *testing.T) { diff --git a/x/escrow/keeper/internal/keys.go b/x/escrow/keeper/internal/keys.go index b4408be..d5242ea 100644 --- a/x/escrow/keeper/internal/keys.go +++ b/x/escrow/keeper/internal/keys.go @@ -16,10 +16,8 @@ var ( agentsKeyPrefix = collections.NewPrefix(0x11) agentsKeyCreatorPrefix = collections.NewPrefix(0x12) - proposalsSeqKey = collections.NewPrefix(0x20) - proposalsKeyPrefix = collections.NewPrefix(0x21) - proposalsKeyProposerPrefix = collections.NewPrefix(0x22) - proposalsKeyAgentPrefix = collections.NewPrefix(0x23) + proposalsKeyPrefix = collections.NewPrefix(0x20) + proposalsKeyProposerPrefix = collections.NewPrefix(0x21) ) func newAgentsIndexes(sb *collections.SchemaBuilder) agentsIndexes { @@ -38,13 +36,11 @@ func newAgentsIndexes(sb *collections.SchemaBuilder) agentsIndexes { type agentsIndexes struct { creator *indexes.Multi[sdk.AccAddress, sdk.AccAddress, escrowv1alpha1.Agent] - agent *indexes.Unique[sdk.AccAddress, sdk.AccAddress, escrowv1alpha1.Agent] } func (a agentsIndexes) IndexesList() []collections.Index[sdk.AccAddress, escrowv1alpha1.Agent] { return []collections.Index[sdk.AccAddress, escrowv1alpha1.Agent]{ a.creator, - a.agent, } } @@ -53,32 +49,21 @@ func newProposalsIndexes(sb *collections.SchemaBuilder) proposalsIndexes { proposer: indexes.NewMulti( sb, proposalsKeyProposerPrefix, "proposals_by_proposer", sdk.AccAddressKey, - collections.Uint64Key, - func(_ uint64, value escrowv1alpha1.Proposal) (sdk.AccAddress, error) { + sdk.AccAddressKey, + func(_ sdk.AccAddress, value escrowv1alpha1.Proposal) (sdk.AccAddress, error) { proposer := value.Proposer return proposer, nil }, ), - agent: indexes.NewUnique( - sb, proposalsKeyAgentPrefix, "proposals_by_agent", - sdk.AccAddressKey, - collections.Uint64Key, - func(_ uint64, value escrowv1alpha1.Proposal) (sdk.AccAddress, error) { - agent := value.Agent - return agent, nil - }, - ), } } type proposalsIndexes struct { - proposer *indexes.Multi[sdk.AccAddress, uint64, escrowv1alpha1.Proposal] - agent *indexes.Unique[sdk.AccAddress, uint64, escrowv1alpha1.Proposal] + proposer *indexes.Multi[sdk.AccAddress, sdk.AccAddress, escrowv1alpha1.Proposal] } -func (a proposalsIndexes) IndexesList() []collections.Index[uint64, escrowv1alpha1.Proposal] { - return []collections.Index[uint64, escrowv1alpha1.Proposal]{ +func (a proposalsIndexes) IndexesList() []collections.Index[sdk.AccAddress, escrowv1alpha1.Proposal] { + return []collections.Index[sdk.AccAddress, escrowv1alpha1.Proposal]{ a.proposer, - a.agent, } } diff --git a/x/escrow/keeper/internal/msg_server.go b/x/escrow/keeper/internal/msg_server.go index a7f6fc1..13b7338 100644 --- a/x/escrow/keeper/internal/msg_server.go +++ b/x/escrow/keeper/internal/msg_server.go @@ -129,13 +129,11 @@ func (s msgServer) SubmitProposal(ctx context.Context, req *escrowv1alpha1.MsgSu return nil, errors.Wrap(err, "post_actions") } - id, err := s.keeper.SubmitProposal(ctx, proposer, agent, req.PreActions, req.PostActions, req.Metadata) - if err != nil { + if err := s.keeper.SubmitProposal(ctx, proposer, agent, req.PreActions, req.PostActions, req.Metadata); err != nil { return nil, err } if err := sdk.UnwrapSDKContext(ctx).EventManager().EmitTypedEvent(&escrowv1alpha1.EventSubmitProposal{ - Proposal: id, Proposer: req.Proposer, Agent: req.Agent, PreActions: req.PreActions, @@ -145,14 +143,10 @@ func (s msgServer) SubmitProposal(ctx context.Context, req *escrowv1alpha1.MsgSu return nil, escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()) } - return &escrowv1alpha1.MsgSubmitProposalResponse{Proposal: id}, nil + return &escrowv1alpha1.MsgSubmitProposalResponse{}, nil } func (s msgServer) Exec(ctx context.Context, req *escrowv1alpha1.MsgExec) (*escrowv1alpha1.MsgExecResponse, error) { - if req.Proposal == 0 { - return nil, escrowv1alpha1.ErrUnimplemented.Wrap("nil proposal") - } - if req.Executor == "" { return nil, escrowv1alpha1.ErrUnimplemented.Wrap("nil executor") } @@ -181,13 +175,13 @@ func (s msgServer) Exec(ctx context.Context, req *escrowv1alpha1.MsgExec) (*escr return nil, errors.Wrap(err, "actions") } - if err := s.keeper.Exec(ctx, req.Proposal, executor, agent, req.Actions); err != nil { + if err := s.keeper.Exec(ctx, executor, agent, req.Actions); err != nil { return nil, err } if err := sdk.UnwrapSDKContext(ctx).EventManager().EmitTypedEvent(&escrowv1alpha1.EventExec{ - Proposal: req.Proposal, Executor: req.Executor, + Agent: req.Agent, Actions: req.Actions, }); err != nil { return nil, escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()) diff --git a/x/escrow/keeper/internal/msg_server_test.go b/x/escrow/keeper/internal/msg_server_test.go index acb8d8d..5415117 100644 --- a/x/escrow/keeper/internal/msg_server_test.go +++ b/x/escrow/keeper/internal/msg_server_test.go @@ -130,7 +130,6 @@ func (s *KeeperTestSuite) TestMsgSubmitProposal() { s.Require().NotEmpty(events) eventExpected, err := sdk.TypedEventToEvent(&escrowv1alpha1.EventSubmitProposal{ - Proposal: s.proposalLast + 1, Proposer: subject.Proposer, Agent: subject.Agent, PreActions: subject.PreActions, @@ -265,8 +264,8 @@ func (s *KeeperTestSuite) TestMsgExec() { s.Require().NotEmpty(events) eventExpected, err := sdk.TypedEventToEvent(&escrowv1alpha1.EventExec{ - Proposal: subject.Proposal, Executor: subject.Executor, + Agent: subject.Agent, Actions: subject.Actions, }) s.Require().NoError(err) @@ -275,26 +274,6 @@ func (s *KeeperTestSuite) TestMsgExec() { return nil } cases := []map[string]testutil.Case[escrowv1alpha1.MsgExec]{ - { - "nil proposal": { - Error: func() error { - return escrowv1alpha1.ErrUnimplemented - }, - }, - "valid proposal": { - Malleate: func(subject *escrowv1alpha1.MsgExec) { - subject.Proposal = s.proposalAny - }, - }, - "proposal not found": { - Malleate: func(subject *escrowv1alpha1.MsgExec) { - subject.Proposal = s.proposalLast + 1 - }, - Error: func() error { - return escrowv1alpha1.ErrProposalNotFound - }, - }, - }, { "nil executor": { Error: func() error { diff --git a/x/escrow/keeper/internal/proposal.go b/x/escrow/keeper/internal/proposal.go index f4dc205..2b30fc6 100644 --- a/x/escrow/keeper/internal/proposal.go +++ b/x/escrow/keeper/internal/proposal.go @@ -12,33 +12,27 @@ import ( escrowv1alpha1 "github.com/0tech/andromeda/x/escrow/andromeda/escrow/v1alpha1" ) -func (k Keeper) SubmitProposal(ctx context.Context, proposer, agent sdk.AccAddress, preActions, postActions []*codectypes.Any, metadata string) (uint64, error) { +func (k Keeper) SubmitProposal(ctx context.Context, proposer, agent sdk.AccAddress, preActions, postActions []*codectypes.Any, metadata string) error { if err := k.validateMetadata(ctx, metadata); err != nil { - return 0, err + return err } agentInfo, err := k.GetAgent(ctx, agent) if err != nil { - return 0, err + return err } if !proposer.Equals(sdk.AccAddress(agentInfo.Creator)) { - return 0, escrowv1alpha1.ErrPermissionDenied.Wrap("proposer differs from creator") + return escrowv1alpha1.ErrPermissionDenied.Wrap("proposer differs from creator") } - id, err := k.nextProposal.Next(ctx) - if err != nil { - return 0, escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()) - } - - if err := k.setProposal(ctx, id, &escrowv1alpha1.Proposal{ + if err := k.setProposal(ctx, agent, &escrowv1alpha1.Proposal{ Proposer: proposer, - Agent: agent, PreActions: preActions, PostActions: postActions, Metadata: metadata, }); err != nil { - return 0, err + return err } for _, phase := range []struct { @@ -51,15 +45,11 @@ func (k Keeper) SubmitProposal(ctx context.Context, proposer, agent sdk.AccAddre }, } { if err := k.executeActions(ctx, phase.actions); err != nil { - return 0, errors.Wrap(err, phase.name) + return errors.Wrap(err, phase.name) } } - if err := k.removeAgent(ctx, agent); err != nil { - return 0, err - } - - return id, nil + return k.removeAgent(ctx, agent) } func (k Keeper) validateActions(actions []*codectypes.Any, signers []sdk.AccAddress) error { @@ -97,8 +87,8 @@ func (k Keeper) validateActions(actions []*codectypes.Any, signers []sdk.AccAddr return nil } -func (k Keeper) GetProposal(ctx context.Context, id uint64) (*escrowv1alpha1.Proposal, error) { - proposal, err := k.proposals.Get(ctx, id) +func (k Keeper) GetProposal(ctx context.Context, agent sdk.AccAddress) (*escrowv1alpha1.Proposal, error) { + proposal, err := k.proposals.Get(ctx, agent) if err != nil { if !errors.IsOf(err, collections.ErrNotFound) { return nil, escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()) @@ -111,16 +101,16 @@ func (k Keeper) GetProposal(ctx context.Context, id uint64) (*escrowv1alpha1.Pro return &proposal, nil } -func (k Keeper) setProposal(ctx context.Context, id uint64, proposal *escrowv1alpha1.Proposal) error { - if err := k.proposals.Set(ctx, id, *proposal); err != nil { +func (k Keeper) setProposal(ctx context.Context, agent sdk.AccAddress, proposal *escrowv1alpha1.Proposal) error { + if err := k.proposals.Set(ctx, agent, *proposal); err != nil { return escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()) } return nil } -func (k Keeper) removeProposal(ctx context.Context, id uint64) error { - if err := k.proposals.Remove(ctx, id); err != nil { +func (k Keeper) removeProposal(ctx context.Context, agent sdk.AccAddress) error { + if err := k.proposals.Remove(ctx, agent); err != nil { return escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()) } @@ -137,7 +127,7 @@ func (k Keeper) fixActions(proposal *escrowv1alpha1.Proposal) { } } -func (k Keeper) iterateProposals(ctx context.Context, fn func(id uint64, proposal escrowv1alpha1.Proposal) error) error { +func (k Keeper) iterateProposals(ctx context.Context, fn func(agent sdk.AccAddress, proposal escrowv1alpha1.Proposal) error) error { iter, err := k.proposals.Iterate(ctx, nil) if err != nil { return escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()) @@ -155,11 +145,11 @@ func (k Keeper) iterateProposals(ctx context.Context, fn func(id uint64, proposa return escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()) } - id := key + agent := key proposal := value k.fixActions(&proposal) - if err := fn(id, proposal); err != nil { + if err := fn(agent, proposal); err != nil { return err } } diff --git a/x/escrow/keeper/internal/proposal_test.go b/x/escrow/keeper/internal/proposal_test.go index 2c1673b..d23b260 100644 --- a/x/escrow/keeper/internal/proposal_test.go +++ b/x/escrow/keeper/internal/proposal_test.go @@ -26,21 +26,19 @@ func (s *KeeperTestSuite) TestSubmitProposal() { s.NotEmpty(subject.metadata) ctx, _ := sdk.UnwrapSDKContext(s.ctx).CacheContext() - id, err := s.keeper.SubmitProposal(ctx, subject.proposer, subject.agent, subject.preActions, subject.postActions, subject.metadata) + err := s.keeper.SubmitProposal(ctx, subject.proposer, subject.agent, subject.preActions, subject.postActions, subject.metadata) if err != nil { return err } - s.NotZero(id) - proposalBefore, err := s.keeper.GetProposal(s.ctx, id) + proposalBefore, err := s.keeper.GetProposal(s.ctx, subject.agent) s.Assert().Error(err) s.Assert().Nil(proposalBefore) - proposalAfter, err := s.keeper.GetProposal(ctx, id) + proposalAfter, err := s.keeper.GetProposal(ctx, subject.agent) s.Require().NoError(err) s.Require().NotNil(proposalAfter) s.Require().Equal(subject.proposer, sdk.AccAddress(proposalAfter.Proposer)) - s.Require().Equal(subject.agent, sdk.AccAddress(proposalAfter.Agent)) s.Require().Equal(subject.preActions, proposalAfter.PreActions) s.Require().Equal(subject.postActions, proposalAfter.PostActions) s.Require().Equal(subject.metadata, proposalAfter.Metadata) @@ -54,6 +52,14 @@ func (s *KeeperTestSuite) TestSubmitProposal() { subject.proposer = s.seller }, }, + "proposer differs from creator": { + Malleate: func(subject *submitProposal) { + subject.proposer = s.stranger + }, + Error: func() error { + return escrowv1alpha1.ErrPermissionDenied + }, + }, }, { "agent already exists": { diff --git a/x/escrow/proto/andromeda/escrow/v1alpha1/event.proto b/x/escrow/proto/andromeda/escrow/v1alpha1/event.proto index b841114..539f153 100644 --- a/x/escrow/proto/andromeda/escrow/v1alpha1/event.proto +++ b/x/escrow/proto/andromeda/escrow/v1alpha1/event.proto @@ -18,38 +18,35 @@ message EventCreateAgent { // the address of the created agent string agent = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; - // the address of the creator + // the address of the account created the agent string creator = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; } // EventSubmitProposal is emitted on Msg/SubmitProposal. message EventSubmitProposal { - // the identifier of the proposal - uint64 proposal = 1; - // the address of the proposer - string proposer = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + string proposer = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; // the address of the agent in charge - string agent = 3 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + string agent = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; // the messages which has been executed on the submission - repeated google.protobuf.Any pre_actions = 4; + repeated google.protobuf.Any pre_actions = 3; // the messages which will be executed after the actions included in Msg/Exec - repeated google.protobuf.Any post_actions = 5; + repeated google.protobuf.Any post_actions = 4; // any arbitrary metadata attached to the proposal - string metadata = 6; + string metadata = 5; } // EventExec is emitted on Msg/Exec. message EventExec { - // the identifier of the proposal - uint64 proposal = 1; - // the address of the account executed the proposal - string executor = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + string executor = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // the address of the agent in charge + string agent = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; // the messages executed on the execution repeated google.protobuf.Any actions = 3; diff --git a/x/escrow/proto/andromeda/escrow/v1alpha1/genesis.proto b/x/escrow/proto/andromeda/escrow/v1alpha1/genesis.proto index 9d9ec58..35af77a 100644 --- a/x/escrow/proto/andromeda/escrow/v1alpha1/genesis.proto +++ b/x/escrow/proto/andromeda/escrow/v1alpha1/genesis.proto @@ -30,30 +30,24 @@ message GenesisState { // all the agents repeated Agent agents = 3; - // the identifier of the next proposal - uint64 next_proposal = 4; - // Proposal defines a proposal. message Proposal { - // the unique identifier - uint64 id = 1; + // the address of the agent in charge + string agent = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; // the address of the proposer string proposer = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; - // the address of the agent in charge - string agent = 3 [(cosmos_proto.scalar) = "cosmos.AddressString"]; - // the messages which has been executed on the submission - repeated google.protobuf.Any pre_actions = 4; + repeated google.protobuf.Any pre_actions = 3; // the messages which will be executed after the actions included in Msg/Exec - repeated google.protobuf.Any post_actions = 5; + repeated google.protobuf.Any post_actions = 4; // any arbitrary metadata attached to the proposal - string metadata = 6; + string metadata = 5; } // all the proposals - repeated Proposal proposals = 5; + repeated Proposal proposals = 4; } diff --git a/x/escrow/proto/andromeda/escrow/v1alpha1/query.proto b/x/escrow/proto/andromeda/escrow/v1alpha1/query.proto index 18470ed..f3972a2 100644 --- a/x/escrow/proto/andromeda/escrow/v1alpha1/query.proto +++ b/x/escrow/proto/andromeda/escrow/v1alpha1/query.proto @@ -25,7 +25,7 @@ service Query { // Proposal queries a proposal. rpc Proposal(QueryProposalRequest) returns (QueryProposalResponse) { - option (google.api.http).get = "/andromeda/escrow/v1alpha1/proposals/{proposal}"; + option (google.api.http).get = "/andromeda/escrow/v1alpha1/agents/{agent}/proposal"; } // Proposals queries all the proposals. @@ -90,31 +90,28 @@ message QueryAgentsResponse { // QueryProposalRequest is the request type for the Query/Proposal RPC method. message QueryProposalRequest { - // the identifier of a proposal - uint64 proposal = 1; + // the address of an agent in charge + string agent = 1; } // QueryProposalResponse is the response type for the Query/Proposal RPC method. message QueryProposalResponse { // Proposal defines a proposal. message Proposal { - // the unique identifier - uint64 id = 1; + // the address of the agent in charge + string agent = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; // the address of the proposer string proposer = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; - // the address of the agent in charge - string agent = 3 [(cosmos_proto.scalar) = "cosmos.AddressString"]; - // the messages which has been executed on the submission - repeated google.protobuf.Any pre_actions = 4; + repeated google.protobuf.Any pre_actions = 3; // the messages which will be executed after the actions included in Msg/Exec - repeated google.protobuf.Any post_actions = 5; + repeated google.protobuf.Any post_actions = 4; // any arbitrary metadata attached to the proposal - string metadata = 6; + string metadata = 5; } // the corresponding proposal @@ -131,23 +128,20 @@ message QueryProposalsRequest { message QueryProposalsResponse { // Proposal defines a proposal. message Proposal { - // the unique identifier - uint64 id = 1; + // the address of the agent in charge + string agent = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; // the address of the proposer string proposer = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; - // the address of the agent of the proposal - string agent = 3 [(cosmos_proto.scalar) = "cosmos.AddressString"]; - // the messages which has been executed on the submission - repeated google.protobuf.Any pre_actions = 4; + repeated google.protobuf.Any pre_actions = 3; // the messages which will be executed after the actions included in Msg/Exec - repeated google.protobuf.Any post_actions = 5; + repeated google.protobuf.Any post_actions = 4; // any arbitrary metadata attached to the proposal - string metadata = 6; + string metadata = 5; } // all the proposals diff --git a/x/escrow/proto/andromeda/escrow/v1alpha1/tx.proto b/x/escrow/proto/andromeda/escrow/v1alpha1/tx.proto index 6da8fd4..a073dbf 100644 --- a/x/escrow/proto/andromeda/escrow/v1alpha1/tx.proto +++ b/x/escrow/proto/andromeda/escrow/v1alpha1/tx.proto @@ -76,26 +76,21 @@ message MsgSubmitProposal { // MsgSubmitProposalResponse is the Msg/SubmitProposal response type. message MsgSubmitProposalResponse { - // the identifier of the submitted proposal - uint64 proposal = 1; } // MsgExec is the Msg/Exec request type. message MsgExec { option (cosmos.msg.v1.signer) = "executor"; - // the identifier of the proposal - uint64 proposal = 1; - // the address of the account executing the proposal - string executor = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + string executor = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; // the address of the agent in charge - string agent = 3 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + string agent = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; // the messages which will be executed on the execution // Note: the signer of each message must be either the executor or the agent. - repeated google.protobuf.Any actions = 4; + repeated google.protobuf.Any actions = 3; } // MsgExecResponse is the Msg/Exec response type. diff --git a/x/escrow/proto/andromeda/escrow/v1alpha1/types.proto b/x/escrow/proto/andromeda/escrow/v1alpha1/types.proto index ae6cd38..622c30a 100644 --- a/x/escrow/proto/andromeda/escrow/v1alpha1/types.proto +++ b/x/escrow/proto/andromeda/escrow/v1alpha1/types.proto @@ -20,15 +20,12 @@ message Proposal { // the address of the proposer bytes proposer = 1; - // the address of the agent in charge - bytes agent = 2; - // the messages which has been executed on the submission - repeated google.protobuf.Any pre_actions = 3; + repeated google.protobuf.Any pre_actions = 2; // the messages which will be executed after the actions included in Msg/Exec - repeated google.protobuf.Any post_actions = 4; + repeated google.protobuf.Any post_actions = 3; // any arbitrary metadata attached to the proposal - string metadata = 5; + string metadata = 4; } From a28bbac5c8ab15483420c4cfb70b6c9e27febeac Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Mon, 29 Jan 2024 13:42:05 +0000 Subject: [PATCH 36/62] Copy MultiIterator for pagination --- x/escrow/ported/indexes/multi.go | 154 ++++++++++++++++++++++++++++++ x/escrow/sonar-project.properties | 2 +- 2 files changed, 155 insertions(+), 1 deletion(-) create mode 100644 x/escrow/ported/indexes/multi.go diff --git a/x/escrow/ported/indexes/multi.go b/x/escrow/ported/indexes/multi.go new file mode 100644 index 0000000..0a22cdf --- /dev/null +++ b/x/escrow/ported/indexes/multi.go @@ -0,0 +1,154 @@ +package indexes + +import ( + "context" + "errors" + + "cosmossdk.io/collections" + "cosmossdk.io/collections/codec" +) + +// Multi defines the most common index. It can be used to create a reference between +// a field of value and its primary key. Multiple primary keys can be mapped to the same +// reference key as the index does not enforce uniqueness constraints. +type Multi[ReferenceKey, PrimaryKey, Value any] struct { + getRefKey func(pk PrimaryKey, value Value) (ReferenceKey, error) + refKeys collections.KeySet[collections.Pair[ReferenceKey, PrimaryKey]] +} + +// NewMulti instantiates a new Multi instance given a schema, +// a Prefix, the humanized name for the index, the reference key key codec +// and the primary key key codec. The getRefKeyFunc is a function that +// given the primary key and value returns the referencing key. +func NewMulti[ReferenceKey, PrimaryKey, Value any]( + schema *collections.SchemaBuilder, + prefix collections.Prefix, + name string, + refCodec codec.KeyCodec[ReferenceKey], + pkCodec codec.KeyCodec[PrimaryKey], + getRefKeyFunc func(pk PrimaryKey, value Value) (ReferenceKey, error), +) *Multi[ReferenceKey, PrimaryKey, Value] { + return &Multi[ReferenceKey, PrimaryKey, Value]{ + getRefKey: getRefKeyFunc, + refKeys: collections.NewKeySet(schema, prefix, name, collections.PairKeyCodec(refCodec, pkCodec)), + } +} + +func (i *Multi[ReferenceKey, PrimaryKey, Value]) Reference(ctx context.Context, pk PrimaryKey, newValue Value, lazyOldValue func() (Value, error)) error { + oldValue, err := lazyOldValue() + switch { + // if no error it means the value existed, and we need to remove the old indexes + case err == nil: + err = i.unreference(ctx, pk, oldValue) + if err != nil { + return err + } + // if error is ErrNotFound, it means that the object does not exist, so we're creating indexes for the first time. + // we do nothing. + case errors.Is(err, collections.ErrNotFound): + // default case means that there was some other error + default: + return err + } + // create new indexes + refKey, err := i.getRefKey(pk, newValue) + if err != nil { + return err + } + return i.refKeys.Set(ctx, collections.Join(refKey, pk)) +} + +func (i *Multi[ReferenceKey, PrimaryKey, Value]) Unreference(ctx context.Context, pk PrimaryKey, getValue func() (Value, error)) error { + value, err := getValue() + if err != nil { + return err + } + return i.unreference(ctx, pk, value) +} + +func (i *Multi[ReferenceKey, PrimaryKey, Value]) unreference(ctx context.Context, pk PrimaryKey, value Value) error { + refKey, err := i.getRefKey(pk, value) + if err != nil { + return err + } + return i.refKeys.Remove(ctx, collections.Join(refKey, pk)) +} + +func (i *Multi[ReferenceKey, PrimaryKey, Value]) Iterate(ctx context.Context, ranger collections.Ranger[collections.Pair[ReferenceKey, PrimaryKey]]) (MultiIterator[ReferenceKey, PrimaryKey], error) { + iter, err := i.refKeys.Iterate(ctx, ranger) + return (MultiIterator[ReferenceKey, PrimaryKey])(iter), err +} + +func (i *Multi[ReferenceKey, PrimaryKey, Value]) Walk( + ctx context.Context, + ranger collections.Ranger[collections.Pair[ReferenceKey, PrimaryKey]], + walkFunc func(indexingKey ReferenceKey, indexedKey PrimaryKey) (stop bool, err error), +) error { + return i.refKeys.Walk(ctx, ranger, func(key collections.Pair[ReferenceKey, PrimaryKey]) (bool, error) { + return walkFunc(key.K1(), key.K2()) + }) +} + +func (i *Multi[ReferenceKey, PrimaryKey, Value]) IterateRaw(ctx context.Context, start, end []byte, order collections.Order) (_ collections.Iterator[collections.Pair[ReferenceKey, PrimaryKey], collections.NoValue], err error) { + iter, err := i.refKeys.IterateRaw(ctx, start, end, order) + if err != nil { + return + } + return iter, nil +} + +// MatchExact returns a MultiIterator containing all the primary keys referenced by the provided reference key. +func (i *Multi[ReferenceKey, PrimaryKey, Value]) MatchExact(ctx context.Context, refKey ReferenceKey) (MultiIterator[ReferenceKey, PrimaryKey], error) { + return i.Iterate(ctx, collections.NewPrefixedPairRange[ReferenceKey, PrimaryKey](refKey)) +} + +func (i *Multi[K1, K2, Value]) KeyCodec() codec.KeyCodec[collections.Pair[K1, K2]] { + return i.refKeys.KeyCodec() +} + +// MultiIterator is just a KeySetIterator with key as Pair[ReferenceKey, PrimaryKey]. +type MultiIterator[ReferenceKey, PrimaryKey any] collections.KeySetIterator[collections.Pair[ReferenceKey, PrimaryKey]] + +// PrimaryKey returns the iterator's current primary key. +func (i MultiIterator[ReferenceKey, PrimaryKey]) PrimaryKey() (PrimaryKey, error) { + fullKey, err := i.FullKey() + return fullKey.K2(), err +} + +// PrimaryKeys fully consumes the iterator and returns the list of primary keys. +func (i MultiIterator[ReferenceKey, PrimaryKey]) PrimaryKeys() ([]PrimaryKey, error) { + fullKeys, err := i.FullKeys() + if err != nil { + return nil, err + } + pks := make([]PrimaryKey, len(fullKeys)) + for i, fullKey := range fullKeys { + pks[i] = fullKey.K2() + } + return pks, nil +} + +// FullKey returns the current full reference key as Pair[ReferenceKey, PrimaryKey]. +func (i MultiIterator[ReferenceKey, PrimaryKey]) FullKey() (collections.Pair[ReferenceKey, PrimaryKey], error) { + return (collections.KeySetIterator[collections.Pair[ReferenceKey, PrimaryKey]])(i).Key() +} + +// FullKeys fully consumes the iterator and returns all the list of full reference keys. +func (i MultiIterator[ReferenceKey, PrimaryKey]) FullKeys() ([]collections.Pair[ReferenceKey, PrimaryKey], error) { + return (collections.KeySetIterator[collections.Pair[ReferenceKey, PrimaryKey]])(i).Keys() +} + +// Next advances the iterator. +func (i MultiIterator[ReferenceKey, PrimaryKey]) Next() { + (collections.KeySetIterator[collections.Pair[ReferenceKey, PrimaryKey]])(i).Next() +} + +// Valid asserts if the iterator is still valid or not. +func (i MultiIterator[ReferenceKey, PrimaryKey]) Valid() bool { + return (collections.KeySetIterator[collections.Pair[ReferenceKey, PrimaryKey]])(i).Valid() +} + +// Close closes the iterator. +func (i MultiIterator[ReferenceKey, PrimaryKey]) Close() error { + return (collections.KeySetIterator[collections.Pair[ReferenceKey, PrimaryKey]])(i).Close() +} diff --git a/x/escrow/sonar-project.properties b/x/escrow/sonar-project.properties index 3e34fe3..9eae90f 100644 --- a/x/escrow/sonar-project.properties +++ b/x/escrow/sonar-project.properties @@ -10,7 +10,7 @@ sonar.project.monorepo.enabled=true # Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows. #sonar.sources=. sonar.inclusions=**/*.go -sonar.exclusions=api/**,testutil/**,**/exported.go,**/*.pb.go,**/*.pb.gw.go,**/*_test.go +sonar.exclusions=ported/**,api/**,testutil/**,**/exported.go,**/*.pb.go,**/*.pb.gw.go,**/*_test.go sonar.test.inclusions=**/*_test.go sonar.go.coverage.reportPaths=cover.out From 821247e30137de23241bb6e68f1862dcf58dff06 Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Mon, 29 Jan 2024 14:06:08 +0000 Subject: [PATCH 37/62] Add queries --- .../andromeda/escrow/v1alpha1/query.pb.go | 2455 ++++++-- .../andromeda/escrow/v1alpha1/query.pb.gw.go | 238 + .../andromeda/escrow/v1alpha1/query.pulsar.go | 5444 ++++++++++++++--- .../escrow/v1alpha1/query_grpc.pb.go | 88 +- x/escrow/keeper/internal/grpc_query.go | 86 +- x/escrow/keeper/internal/grpc_query_test.go | 98 + x/escrow/keeper/internal/keys.go | 2 +- .../andromeda/escrow/v1alpha1/query.proto | 75 +- 8 files changed, 7332 insertions(+), 1154 deletions(-) diff --git a/x/escrow/andromeda/escrow/v1alpha1/query.pb.go b/x/escrow/andromeda/escrow/v1alpha1/query.pb.go index 6e1e863..a7e79d2 100644 --- a/x/escrow/andromeda/escrow/v1alpha1/query.pb.go +++ b/x/escrow/andromeda/escrow/v1alpha1/query.pb.go @@ -261,6 +261,171 @@ func (m *QueryAgentResponse_Agent) GetCreator() string { return "" } +// QueryAgentsByCreatorRequest is the request type for the Query/AgentsByCreator RPC method. +type QueryAgentsByCreatorRequest struct { + // the address of a creator + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + // optional pagination for the request + Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryAgentsByCreatorRequest) Reset() { *m = QueryAgentsByCreatorRequest{} } +func (m *QueryAgentsByCreatorRequest) String() string { return proto.CompactTextString(m) } +func (*QueryAgentsByCreatorRequest) ProtoMessage() {} +func (*QueryAgentsByCreatorRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_84a41d203399b1b7, []int{4} +} +func (m *QueryAgentsByCreatorRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAgentsByCreatorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAgentsByCreatorRequest.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 *QueryAgentsByCreatorRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAgentsByCreatorRequest.Merge(m, src) +} +func (m *QueryAgentsByCreatorRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryAgentsByCreatorRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAgentsByCreatorRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAgentsByCreatorRequest proto.InternalMessageInfo + +func (m *QueryAgentsByCreatorRequest) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *QueryAgentsByCreatorRequest) GetPagination() *query.PageRequest { + if m != nil { + return m.Pagination + } + return nil +} + +// QueryAgentsByCreatorResponse is the response type for the Query/AgentsByCreator RPC method. +type QueryAgentsByCreatorResponse struct { + // all the agents created by the creator + Agents []*QueryAgentsByCreatorResponse_Agent `protobuf:"bytes,1,rep,name=agents,proto3" json:"agents,omitempty"` + // pagination in the response + Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryAgentsByCreatorResponse) Reset() { *m = QueryAgentsByCreatorResponse{} } +func (m *QueryAgentsByCreatorResponse) String() string { return proto.CompactTextString(m) } +func (*QueryAgentsByCreatorResponse) ProtoMessage() {} +func (*QueryAgentsByCreatorResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_84a41d203399b1b7, []int{5} +} +func (m *QueryAgentsByCreatorResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAgentsByCreatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAgentsByCreatorResponse.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 *QueryAgentsByCreatorResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAgentsByCreatorResponse.Merge(m, src) +} +func (m *QueryAgentsByCreatorResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryAgentsByCreatorResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAgentsByCreatorResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAgentsByCreatorResponse proto.InternalMessageInfo + +func (m *QueryAgentsByCreatorResponse) GetAgents() []*QueryAgentsByCreatorResponse_Agent { + if m != nil { + return m.Agents + } + return nil +} + +func (m *QueryAgentsByCreatorResponse) GetPagination() *query.PageResponse { + if m != nil { + return m.Pagination + } + return nil +} + +// Agent defines an account taking charge of a proposal. +type QueryAgentsByCreatorResponse_Agent struct { + // the address of the agent + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + // the address of the creator + Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` +} + +func (m *QueryAgentsByCreatorResponse_Agent) Reset() { *m = QueryAgentsByCreatorResponse_Agent{} } +func (m *QueryAgentsByCreatorResponse_Agent) String() string { return proto.CompactTextString(m) } +func (*QueryAgentsByCreatorResponse_Agent) ProtoMessage() {} +func (*QueryAgentsByCreatorResponse_Agent) Descriptor() ([]byte, []int) { + return fileDescriptor_84a41d203399b1b7, []int{5, 0} +} +func (m *QueryAgentsByCreatorResponse_Agent) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAgentsByCreatorResponse_Agent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAgentsByCreatorResponse_Agent.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 *QueryAgentsByCreatorResponse_Agent) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAgentsByCreatorResponse_Agent.Merge(m, src) +} +func (m *QueryAgentsByCreatorResponse_Agent) XXX_Size() int { + return m.Size() +} +func (m *QueryAgentsByCreatorResponse_Agent) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAgentsByCreatorResponse_Agent.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAgentsByCreatorResponse_Agent proto.InternalMessageInfo + +func (m *QueryAgentsByCreatorResponse_Agent) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +func (m *QueryAgentsByCreatorResponse_Agent) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + // QueryAgentsRequest is the request type for the Query/Agents RPC method. type QueryAgentsRequest struct { // optional pagination for the request @@ -271,7 +436,7 @@ func (m *QueryAgentsRequest) Reset() { *m = QueryAgentsRequest{} } func (m *QueryAgentsRequest) String() string { return proto.CompactTextString(m) } func (*QueryAgentsRequest) ProtoMessage() {} func (*QueryAgentsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_84a41d203399b1b7, []int{4} + return fileDescriptor_84a41d203399b1b7, []int{6} } func (m *QueryAgentsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -319,7 +484,7 @@ func (m *QueryAgentsResponse) Reset() { *m = QueryAgentsResponse{} } func (m *QueryAgentsResponse) String() string { return proto.CompactTextString(m) } func (*QueryAgentsResponse) ProtoMessage() {} func (*QueryAgentsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_84a41d203399b1b7, []int{5} + return fileDescriptor_84a41d203399b1b7, []int{7} } func (m *QueryAgentsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -374,7 +539,7 @@ func (m *QueryAgentsResponse_Agent) Reset() { *m = QueryAgentsResponse_A func (m *QueryAgentsResponse_Agent) String() string { return proto.CompactTextString(m) } func (*QueryAgentsResponse_Agent) ProtoMessage() {} func (*QueryAgentsResponse_Agent) Descriptor() ([]byte, []int) { - return fileDescriptor_84a41d203399b1b7, []int{5, 0} + return fileDescriptor_84a41d203399b1b7, []int{7, 0} } func (m *QueryAgentsResponse_Agent) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -427,7 +592,7 @@ func (m *QueryProposalRequest) Reset() { *m = QueryProposalRequest{} } func (m *QueryProposalRequest) String() string { return proto.CompactTextString(m) } func (*QueryProposalRequest) ProtoMessage() {} func (*QueryProposalRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_84a41d203399b1b7, []int{6} + return fileDescriptor_84a41d203399b1b7, []int{8} } func (m *QueryProposalRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -473,7 +638,7 @@ func (m *QueryProposalResponse) Reset() { *m = QueryProposalResponse{} } func (m *QueryProposalResponse) String() string { return proto.CompactTextString(m) } func (*QueryProposalResponse) ProtoMessage() {} func (*QueryProposalResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_84a41d203399b1b7, []int{7} + return fileDescriptor_84a41d203399b1b7, []int{9} } func (m *QueryProposalResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -527,7 +692,7 @@ func (m *QueryProposalResponse_Proposal) Reset() { *m = QueryProposalRes func (m *QueryProposalResponse_Proposal) String() string { return proto.CompactTextString(m) } func (*QueryProposalResponse_Proposal) ProtoMessage() {} func (*QueryProposalResponse_Proposal) Descriptor() ([]byte, []int) { - return fileDescriptor_84a41d203399b1b7, []int{7, 0} + return fileDescriptor_84a41d203399b1b7, []int{9, 0} } func (m *QueryProposalResponse_Proposal) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -591,24 +756,26 @@ func (m *QueryProposalResponse_Proposal) GetMetadata() string { return "" } -// QueryProposalsRequest is the request type for the Query/Proposals RPC method. -type QueryProposalsRequest struct { +// QueryProposalsByProposerRequest is the request type for the Query/ProposalsByProposer RPC method. +type QueryProposalsByProposerRequest struct { + // the address of a proposer + Proposer string `protobuf:"bytes,1,opt,name=proposer,proto3" json:"proposer,omitempty"` // optional pagination for the request Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (m *QueryProposalsRequest) Reset() { *m = QueryProposalsRequest{} } -func (m *QueryProposalsRequest) String() string { return proto.CompactTextString(m) } -func (*QueryProposalsRequest) ProtoMessage() {} -func (*QueryProposalsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_84a41d203399b1b7, []int{8} +func (m *QueryProposalsByProposerRequest) Reset() { *m = QueryProposalsByProposerRequest{} } +func (m *QueryProposalsByProposerRequest) String() string { return proto.CompactTextString(m) } +func (*QueryProposalsByProposerRequest) ProtoMessage() {} +func (*QueryProposalsByProposerRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_84a41d203399b1b7, []int{10} } -func (m *QueryProposalsRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryProposalsByProposerRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryProposalsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryProposalsByProposerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryProposalsRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryProposalsByProposerRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -618,45 +785,52 @@ func (m *QueryProposalsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byt return b[:n], nil } } -func (m *QueryProposalsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryProposalsRequest.Merge(m, src) +func (m *QueryProposalsByProposerRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryProposalsByProposerRequest.Merge(m, src) } -func (m *QueryProposalsRequest) XXX_Size() int { +func (m *QueryProposalsByProposerRequest) XXX_Size() int { return m.Size() } -func (m *QueryProposalsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryProposalsRequest.DiscardUnknown(m) +func (m *QueryProposalsByProposerRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryProposalsByProposerRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryProposalsRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryProposalsByProposerRequest proto.InternalMessageInfo -func (m *QueryProposalsRequest) GetPagination() *query.PageRequest { +func (m *QueryProposalsByProposerRequest) GetProposer() string { + if m != nil { + return m.Proposer + } + return "" +} + +func (m *QueryProposalsByProposerRequest) GetPagination() *query.PageRequest { if m != nil { return m.Pagination } return nil } -// QueryProposalsResponse is the response type for the Query/Proposals RPC method. -type QueryProposalsResponse struct { - // all the proposals - Proposals []*QueryProposalsResponse_Proposal `protobuf:"bytes,1,rep,name=proposals,proto3" json:"proposals,omitempty"` +// QueryProposalsByProposerResponse is the response type for the Query/ProposalsByProposer RPC method. +type QueryProposalsByProposerResponse struct { + // all the proposals proposed by the proposer + Proposals []*QueryProposalsByProposerResponse_Proposal `protobuf:"bytes,1,rep,name=proposals,proto3" json:"proposals,omitempty"` // pagination in the response Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (m *QueryProposalsResponse) Reset() { *m = QueryProposalsResponse{} } -func (m *QueryProposalsResponse) String() string { return proto.CompactTextString(m) } -func (*QueryProposalsResponse) ProtoMessage() {} -func (*QueryProposalsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_84a41d203399b1b7, []int{9} +func (m *QueryProposalsByProposerResponse) Reset() { *m = QueryProposalsByProposerResponse{} } +func (m *QueryProposalsByProposerResponse) String() string { return proto.CompactTextString(m) } +func (*QueryProposalsByProposerResponse) ProtoMessage() {} +func (*QueryProposalsByProposerResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_84a41d203399b1b7, []int{11} } -func (m *QueryProposalsResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryProposalsByProposerResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryProposalsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryProposalsByProposerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryProposalsResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryProposalsByProposerResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -666,26 +840,26 @@ func (m *QueryProposalsResponse) XXX_Marshal(b []byte, deterministic bool) ([]by return b[:n], nil } } -func (m *QueryProposalsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryProposalsResponse.Merge(m, src) +func (m *QueryProposalsByProposerResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryProposalsByProposerResponse.Merge(m, src) } -func (m *QueryProposalsResponse) XXX_Size() int { +func (m *QueryProposalsByProposerResponse) XXX_Size() int { return m.Size() } -func (m *QueryProposalsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryProposalsResponse.DiscardUnknown(m) +func (m *QueryProposalsByProposerResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryProposalsByProposerResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryProposalsResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryProposalsByProposerResponse proto.InternalMessageInfo -func (m *QueryProposalsResponse) GetProposals() []*QueryProposalsResponse_Proposal { +func (m *QueryProposalsByProposerResponse) GetProposals() []*QueryProposalsByProposerResponse_Proposal { if m != nil { return m.Proposals } return nil } -func (m *QueryProposalsResponse) GetPagination() *query.PageResponse { +func (m *QueryProposalsByProposerResponse) GetPagination() *query.PageResponse { if m != nil { return m.Pagination } @@ -693,7 +867,7 @@ func (m *QueryProposalsResponse) GetPagination() *query.PageResponse { } // Proposal defines a proposal. -type QueryProposalsResponse_Proposal struct { +type QueryProposalsByProposerResponse_Proposal struct { // the address of the agent in charge Agent string `protobuf:"bytes,1,opt,name=agent,proto3" json:"agent,omitempty"` // the address of the proposer @@ -706,18 +880,22 @@ type QueryProposalsResponse_Proposal struct { Metadata string `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"` } -func (m *QueryProposalsResponse_Proposal) Reset() { *m = QueryProposalsResponse_Proposal{} } -func (m *QueryProposalsResponse_Proposal) String() string { return proto.CompactTextString(m) } -func (*QueryProposalsResponse_Proposal) ProtoMessage() {} -func (*QueryProposalsResponse_Proposal) Descriptor() ([]byte, []int) { - return fileDescriptor_84a41d203399b1b7, []int{9, 0} +func (m *QueryProposalsByProposerResponse_Proposal) Reset() { + *m = QueryProposalsByProposerResponse_Proposal{} } -func (m *QueryProposalsResponse_Proposal) XXX_Unmarshal(b []byte) error { +func (m *QueryProposalsByProposerResponse_Proposal) String() string { + return proto.CompactTextString(m) +} +func (*QueryProposalsByProposerResponse_Proposal) ProtoMessage() {} +func (*QueryProposalsByProposerResponse_Proposal) Descriptor() ([]byte, []int) { + return fileDescriptor_84a41d203399b1b7, []int{11, 0} +} +func (m *QueryProposalsByProposerResponse_Proposal) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryProposalsResponse_Proposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryProposalsByProposerResponse_Proposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryProposalsResponse_Proposal.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryProposalsByProposerResponse_Proposal.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -727,150 +905,354 @@ func (m *QueryProposalsResponse_Proposal) XXX_Marshal(b []byte, deterministic bo return b[:n], nil } } -func (m *QueryProposalsResponse_Proposal) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryProposalsResponse_Proposal.Merge(m, src) +func (m *QueryProposalsByProposerResponse_Proposal) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryProposalsByProposerResponse_Proposal.Merge(m, src) } -func (m *QueryProposalsResponse_Proposal) XXX_Size() int { +func (m *QueryProposalsByProposerResponse_Proposal) XXX_Size() int { return m.Size() } -func (m *QueryProposalsResponse_Proposal) XXX_DiscardUnknown() { - xxx_messageInfo_QueryProposalsResponse_Proposal.DiscardUnknown(m) +func (m *QueryProposalsByProposerResponse_Proposal) XXX_DiscardUnknown() { + xxx_messageInfo_QueryProposalsByProposerResponse_Proposal.DiscardUnknown(m) } -var xxx_messageInfo_QueryProposalsResponse_Proposal proto.InternalMessageInfo +var xxx_messageInfo_QueryProposalsByProposerResponse_Proposal proto.InternalMessageInfo -func (m *QueryProposalsResponse_Proposal) GetAgent() string { +func (m *QueryProposalsByProposerResponse_Proposal) GetAgent() string { if m != nil { return m.Agent } return "" } -func (m *QueryProposalsResponse_Proposal) GetProposer() string { +func (m *QueryProposalsByProposerResponse_Proposal) GetProposer() string { if m != nil { return m.Proposer } return "" } -func (m *QueryProposalsResponse_Proposal) GetPreActions() []*types.Any { +func (m *QueryProposalsByProposerResponse_Proposal) GetPreActions() []*types.Any { if m != nil { return m.PreActions } return nil } -func (m *QueryProposalsResponse_Proposal) GetPostActions() []*types.Any { +func (m *QueryProposalsByProposerResponse_Proposal) GetPostActions() []*types.Any { if m != nil { return m.PostActions } return nil } -func (m *QueryProposalsResponse_Proposal) GetMetadata() string { +func (m *QueryProposalsByProposerResponse_Proposal) GetMetadata() string { if m != nil { return m.Metadata } return "" } -func init() { - proto.RegisterType((*QueryParamsRequest)(nil), "andromeda.escrow.v1alpha1.QueryParamsRequest") - proto.RegisterType((*QueryParamsResponse)(nil), "andromeda.escrow.v1alpha1.QueryParamsResponse") - proto.RegisterType((*QueryAgentRequest)(nil), "andromeda.escrow.v1alpha1.QueryAgentRequest") - proto.RegisterType((*QueryAgentResponse)(nil), "andromeda.escrow.v1alpha1.QueryAgentResponse") - proto.RegisterType((*QueryAgentResponse_Agent)(nil), "andromeda.escrow.v1alpha1.QueryAgentResponse.Agent") - proto.RegisterType((*QueryAgentsRequest)(nil), "andromeda.escrow.v1alpha1.QueryAgentsRequest") - proto.RegisterType((*QueryAgentsResponse)(nil), "andromeda.escrow.v1alpha1.QueryAgentsResponse") - proto.RegisterType((*QueryAgentsResponse_Agent)(nil), "andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent") - proto.RegisterType((*QueryProposalRequest)(nil), "andromeda.escrow.v1alpha1.QueryProposalRequest") - proto.RegisterType((*QueryProposalResponse)(nil), "andromeda.escrow.v1alpha1.QueryProposalResponse") - proto.RegisterType((*QueryProposalResponse_Proposal)(nil), "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal") - proto.RegisterType((*QueryProposalsRequest)(nil), "andromeda.escrow.v1alpha1.QueryProposalsRequest") - proto.RegisterType((*QueryProposalsResponse)(nil), "andromeda.escrow.v1alpha1.QueryProposalsResponse") - proto.RegisterType((*QueryProposalsResponse_Proposal)(nil), "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal") +// QueryProposalsRequest is the request type for the Query/Proposals RPC method. +type QueryProposalsRequest struct { + // optional pagination for the request + Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func init() { - proto.RegisterFile("andromeda/escrow/v1alpha1/query.proto", fileDescriptor_84a41d203399b1b7) +func (m *QueryProposalsRequest) Reset() { *m = QueryProposalsRequest{} } +func (m *QueryProposalsRequest) String() string { return proto.CompactTextString(m) } +func (*QueryProposalsRequest) ProtoMessage() {} +func (*QueryProposalsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_84a41d203399b1b7, []int{12} } - -var fileDescriptor_84a41d203399b1b7 = []byte{ - // 832 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x56, 0xcf, 0x6f, 0x12, 0x4d, - 0x18, 0xee, 0x2e, 0x85, 0xaf, 0x1d, 0xbe, 0x4b, 0xa7, 0x7c, 0x5f, 0x00, 0x95, 0xe8, 0x6a, 0x6b, - 0xab, 0x65, 0xb6, 0xd0, 0x1a, 0x23, 0x9e, 0xc0, 0xd4, 0xc6, 0xa4, 0x26, 0x88, 0xd1, 0x34, 0x86, - 0x84, 0x0c, 0x30, 0x52, 0x12, 0xd8, 0xd9, 0xee, 0x6c, 0x6b, 0x1b, 0xe3, 0xc5, 0xbf, 0xc0, 0xe8, - 0x41, 0x2f, 0x7a, 0xf0, 0xa6, 0x67, 0x4f, 0xfe, 0x05, 0xc6, 0x53, 0xa3, 0x17, 0x8f, 0x86, 0x7a, - 0x32, 0xf1, 0xe4, 0xd5, 0x83, 0x61, 0x7e, 0x6c, 0x17, 0x1a, 0xca, 0x62, 0x8c, 0x17, 0x4f, 0xe4, - 0xdd, 0xf7, 0x79, 0x9f, 0x79, 0xe6, 0x99, 0x77, 0xde, 0x01, 0xcc, 0x60, 0xab, 0xee, 0xd0, 0x36, - 0xa9, 0x63, 0x93, 0xb0, 0x9a, 0x43, 0xef, 0x99, 0xdb, 0x19, 0xdc, 0xb2, 0x37, 0x70, 0xc6, 0xdc, - 0xdc, 0x22, 0xce, 0x2e, 0xb2, 0x1d, 0xea, 0x52, 0x98, 0xf0, 0x60, 0x48, 0xc0, 0x90, 0x82, 0x25, - 0xcf, 0xd5, 0x28, 0x6b, 0x53, 0x66, 0x56, 0x31, 0x23, 0xa2, 0xc6, 0xdc, 0xce, 0x54, 0x89, 0x8b, - 0x33, 0xa6, 0x8d, 0x1b, 0x4d, 0x0b, 0xbb, 0x4d, 0x6a, 0x09, 0x9a, 0x64, 0x42, 0x60, 0x2b, 0x3c, - 0x32, 0x45, 0x20, 0x53, 0xc7, 0x1b, 0x94, 0x36, 0x5a, 0xc4, 0xc4, 0x76, 0xd3, 0xc4, 0x96, 0x45, - 0x5d, 0x5e, 0xa7, 0xb2, 0x09, 0x99, 0xe5, 0x51, 0x75, 0xeb, 0xae, 0x89, 0x2d, 0x29, 0xcd, 0x88, - 0x01, 0x78, 0xa3, 0xbb, 0x6a, 0x11, 0x3b, 0xb8, 0xcd, 0x4a, 0x64, 0x73, 0x8b, 0x30, 0xd7, 0x58, - 0x01, 0xd3, 0x3d, 0x5f, 0x99, 0x4d, 0x2d, 0x46, 0x20, 0x02, 0xd3, 0x6d, 0xbc, 0x53, 0x69, 0x13, - 0x17, 0xd7, 0xb1, 0x8b, 0x2b, 0x2d, 0x62, 0x35, 0xdc, 0x8d, 0xb8, 0x76, 0x52, 0x9b, 0x1b, 0x2f, - 0x4d, 0xb5, 0xf1, 0xce, 0x75, 0x99, 0x59, 0xe3, 0x09, 0xe3, 0x0a, 0x98, 0xe2, 0x34, 0xf9, 0x06, - 0xb1, 0x5c, 0xc9, 0x0d, 0x11, 0x08, 0xe3, 0x6e, 0xcc, 0xcb, 0x26, 0x0b, 0xf1, 0x0f, 0x6f, 0xd2, - 0x31, 0xb9, 0x97, 0x7c, 0xbd, 0xee, 0x10, 0xc6, 0x6e, 0xba, 0x4e, 0xd3, 0x6a, 0x94, 0x04, 0xcc, - 0xd8, 0xd3, 0xa4, 0x44, 0xc9, 0x22, 0xb5, 0x5c, 0xf3, 0xd3, 0x44, 0xb3, 0x4b, 0x68, 0xa0, 0xc7, - 0xe8, 0x70, 0x35, 0x12, 0x91, 0x60, 0x48, 0x52, 0x10, 0xe6, 0x31, 0xcc, 0x82, 0x7f, 0xb0, 0x90, - 0x30, 0x54, 0x9c, 0x02, 0x76, 0x6b, 0x6a, 0x0e, 0xc1, 0x2e, 0x75, 0xe2, 0xfa, 0xb0, 0x1a, 0x09, - 0x34, 0xca, 0xfe, 0x1d, 0x29, 0xd3, 0xe1, 0x55, 0x00, 0x0e, 0x8e, 0x5c, 0x6e, 0x6b, 0x16, 0x49, - 0xa6, 0x6e, 0x7f, 0x20, 0xd1, 0x53, 0xb2, 0x3f, 0x50, 0x11, 0x37, 0x88, 0xac, 0x2d, 0xf9, 0x2a, - 0x8d, 0xe7, 0xba, 0x3c, 0x3d, 0x45, 0x2f, 0x1d, 0x5b, 0x03, 0x11, 0xbe, 0xdf, 0xee, 0xe6, 0x42, - 0x73, 0xd1, 0xec, 0x72, 0x20, 0xcb, 0x58, 0x9f, 0x67, 0x92, 0x03, 0xae, 0xf6, 0xa8, 0xd5, 0xb9, - 0xda, 0xb3, 0x43, 0xd5, 0x0a, 0x2a, 0xbf, 0xdc, 0x3f, 0xef, 0xfe, 0x02, 0x88, 0x89, 0xe6, 0x76, - 0xa8, 0x4d, 0x19, 0x6e, 0x29, 0xff, 0x63, 0x3d, 0x8d, 0xa9, 0xda, 0xef, 0x9b, 0x0e, 0xfe, 0xeb, - 0x83, 0x4b, 0x3f, 0x6f, 0x81, 0x09, 0x5b, 0x7e, 0x93, 0xa7, 0x75, 0x69, 0x98, 0xa3, 0xfd, 0x1c, - 0xc8, 0xfb, 0xe0, 0x51, 0x25, 0x7f, 0x68, 0x60, 0x42, 0x7d, 0x1e, 0xf5, 0xb2, 0xc0, 0x65, 0xa5, - 0x89, 0x0c, 0x37, 0xc4, 0x43, 0xc2, 0x0b, 0x20, 0x6a, 0x3b, 0xa4, 0x82, 0x6b, 0x7c, 0x68, 0xc4, - 0x43, 0xbc, 0x3d, 0x62, 0x48, 0x4c, 0x0d, 0xa4, 0xa6, 0x06, 0xca, 0x5b, 0xbb, 0x25, 0x60, 0x3b, - 0x24, 0x2f, 0x70, 0xf0, 0x22, 0xf8, 0xd7, 0xa6, 0xcc, 0xf5, 0xea, 0xc6, 0x8f, 0xa8, 0x8b, 0x76, - 0x91, 0xaa, 0x30, 0x09, 0x26, 0xd4, 0x0c, 0x89, 0x87, 0xb9, 0xd9, 0x5e, 0x6c, 0x54, 0xfa, 0xec, - 0x1e, 0x70, 0x3d, 0xf4, 0x5f, 0xbe, 0x1e, 0x6f, 0x43, 0xe0, 0xff, 0xfe, 0x15, 0xe4, 0x89, 0xae, - 0x83, 0x49, 0x75, 0x0c, 0xea, 0x92, 0xe4, 0x82, 0x1e, 0x29, 0x3b, 0x7c, 0xa6, 0x07, 0x64, 0xbf, - 0xef, 0xb6, 0xfc, 0xdd, 0xdd, 0x91, 0x7d, 0x16, 0x01, 0x61, 0x6e, 0x3b, 0x7c, 0xac, 0x81, 0x88, - 0x78, 0x9e, 0x60, 0x7a, 0xe8, 0x19, 0xf9, 0x1f, 0xb7, 0x24, 0x0a, 0x0a, 0x17, 0xf6, 0x1b, 0xf3, - 0x0f, 0x3f, 0x7e, 0x79, 0xa2, 0x9f, 0x86, 0xa7, 0xcc, 0xc1, 0xaf, 0xbd, 0x2d, 0x94, 0x3c, 0xd5, - 0xd4, 0x30, 0x5b, 0x08, 0xf8, 0x1e, 0x09, 0x49, 0xe9, 0x91, 0x5e, 0x2f, 0x23, 0xc3, 0x15, 0x9d, - 0x87, 0xf3, 0x47, 0x28, 0x12, 0x63, 0xda, 0xbc, 0xcf, 0x7f, 0x1f, 0x70, 0xbb, 0xc4, 0x3c, 0x87, - 0xe9, 0xa0, 0x73, 0x3f, 0xa0, 0x5d, 0xbd, 0xcf, 0x44, 0x20, 0xbb, 0xe4, 0x1b, 0xf2, 0xca, 0xdf, - 0xcc, 0x66, 0xf0, 0xe1, 0x29, 0x84, 0x2d, 0x8e, 0x3a, 0x6d, 0x8d, 0x1c, 0x97, 0xb6, 0x0c, 0xb3, - 0x81, 0x7d, 0x33, 0xd5, 0x15, 0x86, 0x2f, 0x34, 0x30, 0xe9, 0xdd, 0x75, 0xb8, 0x38, 0xc2, 0x58, - 0x10, 0x6a, 0x33, 0x23, 0x0f, 0x12, 0x63, 0x81, 0xcb, 0x9d, 0x85, 0x67, 0x8e, 0x6a, 0x3c, 0x55, - 0x55, 0xf8, 0xae, 0xbd, 0xeb, 0xa4, 0xb4, 0xbd, 0x4e, 0x4a, 0xfb, 0xdc, 0x49, 0x69, 0x8f, 0xf6, - 0x53, 0x63, 0x7b, 0xfb, 0xa9, 0xb1, 0x4f, 0xfb, 0xa9, 0x31, 0x70, 0xa2, 0x46, 0xdb, 0x83, 0x97, - 0x2f, 0x00, 0xb5, 0xbe, 0x4b, 0x8b, 0xda, 0x9d, 0xb9, 0x81, 0x8b, 0x5d, 0x16, 0xb1, 0x0a, 0x5f, - 0xea, 0xa1, 0xfc, 0xca, 0xfa, 0x6b, 0x3d, 0x91, 0xf7, 0x98, 0x57, 0x04, 0xf3, 0x6d, 0x89, 0x78, - 0xef, 0xcb, 0x95, 0x45, 0xae, 0xac, 0x72, 0x1d, 0x7d, 0x66, 0x60, 0xae, 0xbc, 0x5a, 0x2c, 0xa8, - 0xbf, 0x92, 0x5f, 0xf5, 0x63, 0x1e, 0x2e, 0x97, 0x13, 0xc0, 0x5c, 0x4e, 0x21, 0xab, 0x11, 0x3e, - 0x47, 0x96, 0x7e, 0x06, 0x00, 0x00, 0xff, 0xff, 0x9a, 0x6b, 0x40, 0xed, 0x8a, 0x0b, 0x00, 0x00, +func (m *QueryProposalsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryProposalsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryProposalsRequest.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 *QueryProposalsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryProposalsRequest.Merge(m, src) +} +func (m *QueryProposalsRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryProposalsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryProposalsRequest.DiscardUnknown(m) } -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn +var xxx_messageInfo_QueryProposalsRequest proto.InternalMessageInfo -// 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 +func (m *QueryProposalsRequest) GetPagination() *query.PageRequest { + if m != nil { + return m.Pagination + } + return nil +} -// 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 { - // Params queries the module parameters. +// QueryProposalsResponse is the response type for the Query/Proposals RPC method. +type QueryProposalsResponse struct { + // all the proposals + Proposals []*QueryProposalsResponse_Proposal `protobuf:"bytes,1,rep,name=proposals,proto3" json:"proposals,omitempty"` + // pagination in the response + Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryProposalsResponse) Reset() { *m = QueryProposalsResponse{} } +func (m *QueryProposalsResponse) String() string { return proto.CompactTextString(m) } +func (*QueryProposalsResponse) ProtoMessage() {} +func (*QueryProposalsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_84a41d203399b1b7, []int{13} +} +func (m *QueryProposalsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryProposalsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryProposalsResponse.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 *QueryProposalsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryProposalsResponse.Merge(m, src) +} +func (m *QueryProposalsResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryProposalsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryProposalsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryProposalsResponse proto.InternalMessageInfo + +func (m *QueryProposalsResponse) GetProposals() []*QueryProposalsResponse_Proposal { + if m != nil { + return m.Proposals + } + return nil +} + +func (m *QueryProposalsResponse) GetPagination() *query.PageResponse { + if m != nil { + return m.Pagination + } + return nil +} + +// Proposal defines a proposal. +type QueryProposalsResponse_Proposal struct { + // the address of the agent in charge + Agent string `protobuf:"bytes,1,opt,name=agent,proto3" json:"agent,omitempty"` + // the address of the proposer + Proposer string `protobuf:"bytes,2,opt,name=proposer,proto3" json:"proposer,omitempty"` + // the messages which has been executed on the submission + PreActions []*types.Any `protobuf:"bytes,3,rep,name=pre_actions,json=preActions,proto3" json:"pre_actions,omitempty"` + // the messages which will be executed after the actions included in Msg/Exec + PostActions []*types.Any `protobuf:"bytes,4,rep,name=post_actions,json=postActions,proto3" json:"post_actions,omitempty"` + // any arbitrary metadata attached to the proposal + Metadata string `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"` +} + +func (m *QueryProposalsResponse_Proposal) Reset() { *m = QueryProposalsResponse_Proposal{} } +func (m *QueryProposalsResponse_Proposal) String() string { return proto.CompactTextString(m) } +func (*QueryProposalsResponse_Proposal) ProtoMessage() {} +func (*QueryProposalsResponse_Proposal) Descriptor() ([]byte, []int) { + return fileDescriptor_84a41d203399b1b7, []int{13, 0} +} +func (m *QueryProposalsResponse_Proposal) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryProposalsResponse_Proposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryProposalsResponse_Proposal.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 *QueryProposalsResponse_Proposal) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryProposalsResponse_Proposal.Merge(m, src) +} +func (m *QueryProposalsResponse_Proposal) XXX_Size() int { + return m.Size() +} +func (m *QueryProposalsResponse_Proposal) XXX_DiscardUnknown() { + xxx_messageInfo_QueryProposalsResponse_Proposal.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryProposalsResponse_Proposal proto.InternalMessageInfo + +func (m *QueryProposalsResponse_Proposal) GetAgent() string { + if m != nil { + return m.Agent + } + return "" +} + +func (m *QueryProposalsResponse_Proposal) GetProposer() string { + if m != nil { + return m.Proposer + } + return "" +} + +func (m *QueryProposalsResponse_Proposal) GetPreActions() []*types.Any { + if m != nil { + return m.PreActions + } + return nil +} + +func (m *QueryProposalsResponse_Proposal) GetPostActions() []*types.Any { + if m != nil { + return m.PostActions + } + return nil +} + +func (m *QueryProposalsResponse_Proposal) GetMetadata() string { + if m != nil { + return m.Metadata + } + return "" +} + +func init() { + proto.RegisterType((*QueryParamsRequest)(nil), "andromeda.escrow.v1alpha1.QueryParamsRequest") + proto.RegisterType((*QueryParamsResponse)(nil), "andromeda.escrow.v1alpha1.QueryParamsResponse") + proto.RegisterType((*QueryAgentRequest)(nil), "andromeda.escrow.v1alpha1.QueryAgentRequest") + proto.RegisterType((*QueryAgentResponse)(nil), "andromeda.escrow.v1alpha1.QueryAgentResponse") + proto.RegisterType((*QueryAgentResponse_Agent)(nil), "andromeda.escrow.v1alpha1.QueryAgentResponse.Agent") + proto.RegisterType((*QueryAgentsByCreatorRequest)(nil), "andromeda.escrow.v1alpha1.QueryAgentsByCreatorRequest") + proto.RegisterType((*QueryAgentsByCreatorResponse)(nil), "andromeda.escrow.v1alpha1.QueryAgentsByCreatorResponse") + proto.RegisterType((*QueryAgentsByCreatorResponse_Agent)(nil), "andromeda.escrow.v1alpha1.QueryAgentsByCreatorResponse.Agent") + proto.RegisterType((*QueryAgentsRequest)(nil), "andromeda.escrow.v1alpha1.QueryAgentsRequest") + proto.RegisterType((*QueryAgentsResponse)(nil), "andromeda.escrow.v1alpha1.QueryAgentsResponse") + proto.RegisterType((*QueryAgentsResponse_Agent)(nil), "andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent") + proto.RegisterType((*QueryProposalRequest)(nil), "andromeda.escrow.v1alpha1.QueryProposalRequest") + proto.RegisterType((*QueryProposalResponse)(nil), "andromeda.escrow.v1alpha1.QueryProposalResponse") + proto.RegisterType((*QueryProposalResponse_Proposal)(nil), "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal") + proto.RegisterType((*QueryProposalsByProposerRequest)(nil), "andromeda.escrow.v1alpha1.QueryProposalsByProposerRequest") + proto.RegisterType((*QueryProposalsByProposerResponse)(nil), "andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse") + proto.RegisterType((*QueryProposalsByProposerResponse_Proposal)(nil), "andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse.Proposal") + proto.RegisterType((*QueryProposalsRequest)(nil), "andromeda.escrow.v1alpha1.QueryProposalsRequest") + proto.RegisterType((*QueryProposalsResponse)(nil), "andromeda.escrow.v1alpha1.QueryProposalsResponse") + proto.RegisterType((*QueryProposalsResponse_Proposal)(nil), "andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal") +} + +func init() { + proto.RegisterFile("andromeda/escrow/v1alpha1/query.proto", fileDescriptor_84a41d203399b1b7) +} + +var fileDescriptor_84a41d203399b1b7 = []byte{ + // 1000 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x58, 0xbd, 0x8f, 0x1b, 0x45, + 0x14, 0xbf, 0x59, 0xe7, 0x8e, 0xf3, 0x18, 0x09, 0x65, 0xce, 0x20, 0xdb, 0x09, 0x26, 0x2c, 0x24, + 0x5c, 0xe0, 0x3c, 0x13, 0x3b, 0x26, 0x51, 0x7c, 0x50, 0xd8, 0xe1, 0x88, 0x90, 0x82, 0x64, 0x8c, + 0x40, 0x11, 0xb2, 0x64, 0x8d, 0xed, 0xc1, 0xb1, 0x64, 0xef, 0x6c, 0x76, 0xf6, 0x42, 0x4e, 0xa7, + 0x34, 0xfc, 0x05, 0x08, 0x0a, 0x44, 0x01, 0x48, 0x74, 0xd0, 0xa4, 0xa1, 0xa2, 0xa2, 0x44, 0x14, + 0xe8, 0x80, 0x86, 0x12, 0xf9, 0xa8, 0x90, 0xa8, 0x68, 0x29, 0x90, 0xe7, 0x63, 0xbd, 0xf6, 0xf9, + 0x63, 0x7d, 0x1c, 0x14, 0x40, 0x75, 0x3b, 0xf3, 0xde, 0xfb, 0xcd, 0xef, 0x7d, 0xcc, 0x9b, 0x77, + 0x86, 0xe7, 0xa9, 0xd3, 0xf6, 0x78, 0x9f, 0xb5, 0x29, 0x61, 0xa2, 0xe5, 0xf1, 0x77, 0xc8, 0xdd, + 0x3c, 0xed, 0xb9, 0xb7, 0x69, 0x9e, 0xdc, 0xd9, 0x65, 0xde, 0x1e, 0x76, 0x3d, 0xee, 0x73, 0x94, + 0x0e, 0xd4, 0xb0, 0x52, 0xc3, 0x46, 0x2d, 0xf3, 0x6c, 0x8b, 0x8b, 0x3e, 0x17, 0xa4, 0x49, 0x05, + 0x53, 0x36, 0xe4, 0x6e, 0xbe, 0xc9, 0x7c, 0x9a, 0x27, 0x2e, 0xed, 0x74, 0x1d, 0xea, 0x77, 0xb9, + 0xa3, 0x60, 0x32, 0x69, 0xa5, 0xdb, 0x90, 0x2b, 0xa2, 0x16, 0x5a, 0x74, 0xb6, 0xc3, 0x79, 0xa7, + 0xc7, 0x08, 0x75, 0xbb, 0x84, 0x3a, 0x0e, 0xf7, 0xa5, 0x9d, 0x91, 0xa6, 0xb5, 0x54, 0xae, 0x9a, + 0xbb, 0x6f, 0x13, 0xea, 0x68, 0x6a, 0x76, 0x12, 0xa2, 0xd7, 0x86, 0xa7, 0x56, 0xa9, 0x47, 0xfb, + 0xa2, 0xc6, 0xee, 0xec, 0x32, 0xe1, 0xdb, 0x3b, 0x70, 0x63, 0x6c, 0x57, 0xb8, 0xdc, 0x11, 0x0c, + 0x61, 0xb8, 0xd1, 0xa7, 0xf7, 0x1a, 0x7d, 0xe6, 0xd3, 0x36, 0xf5, 0x69, 0xa3, 0xc7, 0x9c, 0x8e, + 0x7f, 0x3b, 0x05, 0xce, 0x81, 0xcd, 0x53, 0xb5, 0xd3, 0x7d, 0x7a, 0xef, 0x55, 0x2d, 0xb9, 0x29, + 0x05, 0xf6, 0x75, 0x78, 0x5a, 0xc2, 0x94, 0x3b, 0xcc, 0xf1, 0x35, 0x36, 0xc2, 0x70, 0x95, 0x0e, + 0xd7, 0xd2, 0x2c, 0x5e, 0x49, 0xfd, 0xf0, 0x65, 0x2e, 0xa9, 0x7d, 0x29, 0xb7, 0xdb, 0x1e, 0x13, + 0xe2, 0x75, 0xdf, 0xeb, 0x3a, 0x9d, 0x9a, 0x52, 0xb3, 0x0f, 0x80, 0xa6, 0xa8, 0x51, 0x34, 0x97, + 0x57, 0xc2, 0x30, 0x89, 0xc2, 0x65, 0x3c, 0x33, 0xc6, 0xf8, 0xa8, 0x35, 0x56, 0x2b, 0x85, 0x90, + 0xe1, 0x70, 0x55, 0xae, 0x51, 0x01, 0x3e, 0x44, 0x15, 0x85, 0x85, 0xe4, 0x8c, 0xe2, 0xd0, 0xa6, + 0xe5, 0x31, 0xea, 0x73, 0x2f, 0x65, 0x2d, 0xb2, 0xd1, 0x8a, 0xf6, 0x47, 0x00, 0x9e, 0x19, 0x91, + 0x12, 0x95, 0xbd, 0xeb, 0x4a, 0x60, 0x42, 0x14, 0xc2, 0x04, 0x11, 0x31, 0xd1, 0xcb, 0x10, 0x8e, + 0x0a, 0x46, 0x52, 0x49, 0x14, 0x2e, 0x60, 0x6d, 0x33, 0xac, 0x2e, 0xac, 0x2a, 0x52, 0x57, 0x17, + 0xae, 0xd2, 0x0e, 0xd3, 0xe7, 0xd5, 0x42, 0x96, 0xf6, 0x03, 0x0b, 0x9e, 0x9d, 0xce, 0x4d, 0x07, + 0xfe, 0x0d, 0xb8, 0x26, 0xc3, 0x36, 0x8c, 0x51, 0x6c, 0x33, 0x51, 0x78, 0x31, 0x52, 0xe4, 0x8f, + 0x02, 0xe9, 0x1c, 0x68, 0x30, 0x74, 0x63, 0x0a, 0xff, 0x67, 0x16, 0xf2, 0x57, 0x50, 0x61, 0x07, + 0xfe, 0xf9, 0x6c, 0xd6, 0xc3, 0xf5, 0x69, 0xae, 0xd0, 0x44, 0x3e, 0xc0, 0xb1, 0xf3, 0xf1, 0xb1, + 0xa5, 0xef, 0xa2, 0x81, 0xd7, 0x69, 0xb8, 0x39, 0x91, 0x86, 0x62, 0xb4, 0x34, 0xfc, 0xeb, 0xa2, + 0xbf, 0x05, 0x93, 0xaa, 0x55, 0x79, 0xdc, 0xe5, 0x82, 0xf6, 0x4c, 0xfc, 0x93, 0x63, 0x6d, 0xc6, + 0x34, 0x93, 0xdf, 0x2c, 0xf8, 0xe8, 0x84, 0x7a, 0x50, 0xd6, 0xeb, 0xae, 0xde, 0xd3, 0xd9, 0xba, + 0xb6, 0x28, 0xa2, 0x93, 0x18, 0x38, 0xd8, 0x08, 0xa0, 0x32, 0x7f, 0x00, 0xb8, 0x6e, 0xb6, 0x97, + 0x6d, 0x7d, 0xa8, 0x68, 0x38, 0xb1, 0xc5, 0x01, 0x09, 0x34, 0xd1, 0xf3, 0x30, 0xe1, 0x7a, 0xac, + 0x41, 0x5b, 0xf2, 0x09, 0x48, 0xc5, 0x64, 0x79, 0x24, 0xb1, 0x7a, 0x03, 0xb0, 0x79, 0x03, 0x70, + 0xd9, 0xd9, 0xab, 0x41, 0xd7, 0x63, 0x65, 0xa5, 0x87, 0xae, 0xc2, 0x87, 0x5d, 0x2e, 0xfc, 0xc0, + 0xee, 0xd4, 0x1c, 0xbb, 0xc4, 0x50, 0xd3, 0x18, 0x66, 0xe0, 0xba, 0x79, 0x11, 0x52, 0xab, 0x32, + 0xd8, 0xc1, 0xda, 0xfe, 0x14, 0xc0, 0x27, 0xc6, 0x62, 0x25, 0x2a, 0xfa, 0x93, 0x05, 0xdd, 0x2e, + 0xec, 0x25, 0x88, 0xec, 0xe5, 0x49, 0xf5, 0xbb, 0xef, 0x62, 0xf0, 0xdc, 0x6c, 0x86, 0xba, 0x38, + 0x9a, 0x30, 0x6e, 0x32, 0x6a, 0xee, 0xdb, 0x4b, 0x51, 0xab, 0x63, 0x0a, 0xde, 0xa8, 0x50, 0x46, + 0xb0, 0x27, 0x77, 0x05, 0xff, 0xe3, 0x25, 0xd7, 0x98, 0xb8, 0xe1, 0x27, 0xde, 0x91, 0xbf, 0x8a, + 0xc1, 0xc7, 0x26, 0x4f, 0xd0, 0x75, 0x72, 0xeb, 0x68, 0x9d, 0x94, 0x22, 0xd7, 0xc9, 0xff, 0xd5, + 0xf1, 0xf7, 0x57, 0x47, 0xe1, 0x41, 0x1c, 0xae, 0xca, 0xb0, 0xa3, 0xf7, 0x01, 0x5c, 0x53, 0xf3, + 0x2d, 0xca, 0x2d, 0xcc, 0x51, 0x78, 0x3a, 0xce, 0xe0, 0xa8, 0xea, 0x2a, 0xfc, 0xf6, 0xc5, 0x77, + 0x7f, 0xfc, 0xe5, 0x03, 0xeb, 0x29, 0xf4, 0x24, 0x99, 0xfd, 0xef, 0x82, 0xab, 0x98, 0x7c, 0x08, + 0xcc, 0xfb, 0xb9, 0x15, 0x71, 0xa0, 0x55, 0x94, 0x72, 0x4b, 0x8d, 0xbf, 0x76, 0x5e, 0x32, 0x7a, + 0x0e, 0x5d, 0x9c, 0xc3, 0x48, 0x4d, 0x06, 0x64, 0x5f, 0xfe, 0xbd, 0x8f, 0xbe, 0x06, 0xf0, 0x91, + 0x89, 0x49, 0x0e, 0x5d, 0x59, 0x7a, 0xf4, 0x53, 0x6c, 0xaf, 0x1e, 0x73, 0x64, 0xb4, 0x5f, 0x90, + 0xbc, 0xaf, 0xa0, 0xe2, 0x1c, 0xde, 0x7a, 0x30, 0x10, 0x64, 0x5f, 0x7f, 0xdd, 0xd7, 0xae, 0xc8, + 0x8c, 0x2b, 0x64, 0x94, 0x8b, 0x3a, 0x2d, 0x45, 0xcc, 0xf8, 0xf8, 0x70, 0x15, 0x29, 0xe3, 0x9a, + 0xd4, 0xe7, 0xe1, 0xfb, 0x48, 0xa2, 0x8f, 0x1c, 0x8a, 0xd8, 0xa5, 0x65, 0x67, 0x14, 0xbb, 0x24, + 0xa9, 0x15, 0x51, 0x21, 0x72, 0xea, 0x89, 0xe9, 0x42, 0xe8, 0x7b, 0x00, 0x37, 0xa6, 0x3c, 0x6b, + 0xa8, 0x74, 0xac, 0xb7, 0x50, 0x79, 0xb0, 0xfd, 0x17, 0xde, 0x51, 0xbb, 0x2c, 0x9d, 0xd9, 0x46, + 0xd7, 0xe6, 0xdd, 0x2c, 0x6d, 0x24, 0xc8, 0xbe, 0xf9, 0x1c, 0xb9, 0x24, 0xd0, 0x27, 0x00, 0xc6, + 0x83, 0x23, 0xd0, 0xa5, 0x25, 0xba, 0xb5, 0xe2, 0x9f, 0x5f, 0xba, 0xbf, 0xdb, 0x5b, 0x92, 0xf5, + 0x05, 0xf4, 0xf4, 0x42, 0xd6, 0x43, 0xaf, 0x7f, 0x07, 0xdf, 0x0c, 0xb2, 0xe0, 0x60, 0x90, 0x05, + 0x3f, 0x0f, 0xb2, 0xe0, 0xbd, 0xc3, 0xec, 0xca, 0xc1, 0x61, 0x76, 0xe5, 0xa7, 0xc3, 0xec, 0x0a, + 0x7c, 0xbc, 0xc5, 0xfb, 0xb3, 0x8f, 0xaf, 0x40, 0x73, 0xbe, 0xcf, 0xab, 0xe0, 0xad, 0xcd, 0x99, + 0x87, 0x6d, 0xab, 0xb5, 0x59, 0x7e, 0x66, 0xc5, 0xca, 0x3b, 0xb7, 0xbe, 0xb0, 0xd2, 0xe5, 0x00, + 0x79, 0x47, 0x21, 0xbf, 0xa9, 0x35, 0xbe, 0x0d, 0xc9, 0xea, 0x4a, 0x56, 0x37, 0xb2, 0x81, 0x75, + 0x7e, 0xa6, 0xac, 0x7e, 0xa3, 0x5a, 0x31, 0x3f, 0x11, 0xfc, 0x6a, 0x9d, 0x09, 0xf4, 0x4a, 0x25, + 0xa5, 0x58, 0x2a, 0x19, 0xcd, 0xe6, 0x9a, 0x6c, 0xef, 0x97, 0xff, 0x0c, 0x00, 0x00, 0xff, 0xff, + 0xdf, 0x8a, 0xf0, 0xf7, 0x62, 0x11, 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 { + // Params queries the module parameters. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) // Agent queries an agent. Agent(ctx context.Context, in *QueryAgentRequest, opts ...grpc.CallOption) (*QueryAgentResponse, error) + // AgentsByCreator queries all the agents by its creator. + AgentsByCreator(ctx context.Context, in *QueryAgentsByCreatorRequest, opts ...grpc.CallOption) (*QueryAgentsByCreatorResponse, error) // Agents queries all the agents. Agents(ctx context.Context, in *QueryAgentsRequest, opts ...grpc.CallOption) (*QueryAgentsResponse, error) // Proposal queries a proposal. Proposal(ctx context.Context, in *QueryProposalRequest, opts ...grpc.CallOption) (*QueryProposalResponse, error) + // ProposalsByProposer queries all the proposals by its proposer. + ProposalsByProposer(ctx context.Context, in *QueryProposalsByProposerRequest, opts ...grpc.CallOption) (*QueryProposalsByProposerResponse, error) // Proposals queries all the proposals. Proposals(ctx context.Context, in *QueryProposalsRequest, opts ...grpc.CallOption) (*QueryProposalsResponse, error) } @@ -901,6 +1283,15 @@ func (c *queryClient) Agent(ctx context.Context, in *QueryAgentRequest, opts ... return out, nil } +func (c *queryClient) AgentsByCreator(ctx context.Context, in *QueryAgentsByCreatorRequest, opts ...grpc.CallOption) (*QueryAgentsByCreatorResponse, error) { + out := new(QueryAgentsByCreatorResponse) + err := c.cc.Invoke(ctx, "/andromeda.escrow.v1alpha1.Query/AgentsByCreator", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *queryClient) Agents(ctx context.Context, in *QueryAgentsRequest, opts ...grpc.CallOption) (*QueryAgentsResponse, error) { out := new(QueryAgentsResponse) err := c.cc.Invoke(ctx, "/andromeda.escrow.v1alpha1.Query/Agents", in, out, opts...) @@ -919,6 +1310,15 @@ func (c *queryClient) Proposal(ctx context.Context, in *QueryProposalRequest, op return out, nil } +func (c *queryClient) ProposalsByProposer(ctx context.Context, in *QueryProposalsByProposerRequest, opts ...grpc.CallOption) (*QueryProposalsByProposerResponse, error) { + out := new(QueryProposalsByProposerResponse) + err := c.cc.Invoke(ctx, "/andromeda.escrow.v1alpha1.Query/ProposalsByProposer", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *queryClient) Proposals(ctx context.Context, in *QueryProposalsRequest, opts ...grpc.CallOption) (*QueryProposalsResponse, error) { out := new(QueryProposalsResponse) err := c.cc.Invoke(ctx, "/andromeda.escrow.v1alpha1.Query/Proposals", in, out, opts...) @@ -934,10 +1334,14 @@ type QueryServer interface { Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) // Agent queries an agent. Agent(context.Context, *QueryAgentRequest) (*QueryAgentResponse, error) + // AgentsByCreator queries all the agents by its creator. + AgentsByCreator(context.Context, *QueryAgentsByCreatorRequest) (*QueryAgentsByCreatorResponse, error) // Agents queries all the agents. Agents(context.Context, *QueryAgentsRequest) (*QueryAgentsResponse, error) // Proposal queries a proposal. Proposal(context.Context, *QueryProposalRequest) (*QueryProposalResponse, error) + // ProposalsByProposer queries all the proposals by its proposer. + ProposalsByProposer(context.Context, *QueryProposalsByProposerRequest) (*QueryProposalsByProposerResponse, error) // Proposals queries all the proposals. Proposals(context.Context, *QueryProposalsRequest) (*QueryProposalsResponse, error) } @@ -952,12 +1356,18 @@ func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsReq func (*UnimplementedQueryServer) Agent(ctx context.Context, req *QueryAgentRequest) (*QueryAgentResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Agent not implemented") } +func (*UnimplementedQueryServer) AgentsByCreator(ctx context.Context, req *QueryAgentsByCreatorRequest) (*QueryAgentsByCreatorResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AgentsByCreator not implemented") +} func (*UnimplementedQueryServer) Agents(ctx context.Context, req *QueryAgentsRequest) (*QueryAgentsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Agents not implemented") } func (*UnimplementedQueryServer) Proposal(ctx context.Context, req *QueryProposalRequest) (*QueryProposalResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Proposal not implemented") } +func (*UnimplementedQueryServer) ProposalsByProposer(ctx context.Context, req *QueryProposalsByProposerRequest) (*QueryProposalsByProposerResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ProposalsByProposer not implemented") +} func (*UnimplementedQueryServer) Proposals(ctx context.Context, req *QueryProposalsRequest) (*QueryProposalsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Proposals not implemented") } @@ -1002,6 +1412,24 @@ func _Query_Agent_Handler(srv interface{}, ctx context.Context, dec func(interfa return interceptor(ctx, in, info, handler) } +func _Query_AgentsByCreator_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryAgentsByCreatorRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).AgentsByCreator(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/andromeda.escrow.v1alpha1.Query/AgentsByCreator", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).AgentsByCreator(ctx, req.(*QueryAgentsByCreatorRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _Query_Agents_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(QueryAgentsRequest) if err := dec(in); err != nil { @@ -1038,6 +1466,24 @@ func _Query_Proposal_Handler(srv interface{}, ctx context.Context, dec func(inte return interceptor(ctx, in, info, handler) } +func _Query_ProposalsByProposer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryProposalsByProposerRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).ProposalsByProposer(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/andromeda.escrow.v1alpha1.Query/ProposalsByProposer", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).ProposalsByProposer(ctx, req.(*QueryProposalsByProposerRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _Query_Proposals_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(QueryProposalsRequest) if err := dec(in); err != nil { @@ -1068,6 +1514,10 @@ var _Query_serviceDesc = grpc.ServiceDesc{ MethodName: "Agent", Handler: _Query_Agent_Handler, }, + { + MethodName: "AgentsByCreator", + Handler: _Query_AgentsByCreator_Handler, + }, { MethodName: "Agents", Handler: _Query_Agents_Handler, @@ -1076,6 +1526,10 @@ var _Query_serviceDesc = grpc.ServiceDesc{ MethodName: "Proposal", Handler: _Query_Proposal_Handler, }, + { + MethodName: "ProposalsByProposer", + Handler: _Query_ProposalsByProposer_Handler, + }, { MethodName: "Proposals", Handler: _Query_Proposals_Handler, @@ -1238,7 +1692,7 @@ func (m *QueryAgentResponse_Agent) MarshalToSizedBuffer(dAtA []byte) (int, error return len(dAtA) - i, nil } -func (m *QueryAgentsRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryAgentsByCreatorRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1248,12 +1702,12 @@ func (m *QueryAgentsRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryAgentsRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryAgentsByCreatorRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryAgentsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryAgentsByCreatorRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1268,12 +1722,19 @@ func (m *QueryAgentsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintQuery(dAtA, i, uint64(size)) } i-- + dAtA[i] = 0x12 + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Creator))) + i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *QueryAgentsResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryAgentsByCreatorResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1283,12 +1744,12 @@ func (m *QueryAgentsResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryAgentsResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryAgentsByCreatorResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryAgentsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryAgentsByCreatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1322,7 +1783,7 @@ func (m *QueryAgentsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *QueryAgentsResponse_Agent) Marshal() (dAtA []byte, err error) { +func (m *QueryAgentsByCreatorResponse_Agent) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1332,12 +1793,12 @@ func (m *QueryAgentsResponse_Agent) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryAgentsResponse_Agent) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryAgentsByCreatorResponse_Agent) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryAgentsResponse_Agent) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryAgentsByCreatorResponse_Agent) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1359,7 +1820,7 @@ func (m *QueryAgentsResponse_Agent) MarshalToSizedBuffer(dAtA []byte) (int, erro return len(dAtA) - i, nil } -func (m *QueryProposalRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryAgentsRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1369,27 +1830,32 @@ func (m *QueryProposalRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryProposalRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryAgentsRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryProposalRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryAgentsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.Agent) > 0 { - i -= len(m.Agent) - copy(dAtA[i:], m.Agent) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Agent))) + 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] = 0xa } return len(dAtA) - i, nil } -func (m *QueryProposalResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryAgentsResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1399,12 +1865,128 @@ func (m *QueryProposalResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryProposalResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryAgentsResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryProposalResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryAgentsResponse) 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.Agents) > 0 { + for iNdEx := len(m.Agents) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Agents[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 *QueryAgentsResponse_Agent) 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 *QueryAgentsResponse_Agent) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAgentsResponse_Agent) 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 = encodeVarintQuery(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0x12 + } + 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 *QueryProposalRequest) 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 *QueryProposalRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryProposalRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Agent) > 0 { + i -= len(m.Agent) + copy(dAtA[i:], m.Agent) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Agent))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryProposalResponse) 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 *QueryProposalResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryProposalResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1496,7 +2078,7 @@ func (m *QueryProposalResponse_Proposal) MarshalToSizedBuffer(dAtA []byte) (int, return len(dAtA) - i, nil } -func (m *QueryProposalsRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryProposalsByProposerRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1506,12 +2088,12 @@ func (m *QueryProposalsRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryProposalsRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryProposalsByProposerRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryProposalsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryProposalsByProposerRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1528,10 +2110,17 @@ func (m *QueryProposalsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x12 } + if len(m.Proposer) > 0 { + i -= len(m.Proposer) + copy(dAtA[i:], m.Proposer) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Proposer))) + i-- + dAtA[i] = 0xa + } return len(dAtA) - i, nil } -func (m *QueryProposalsResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryProposalsByProposerResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1541,12 +2130,12 @@ func (m *QueryProposalsResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryProposalsResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryProposalsByProposerResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryProposalsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryProposalsByProposerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1580,7 +2169,7 @@ func (m *QueryProposalsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *QueryProposalsResponse_Proposal) Marshal() (dAtA []byte, err error) { +func (m *QueryProposalsByProposerResponse_Proposal) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1590,12 +2179,12 @@ func (m *QueryProposalsResponse_Proposal) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryProposalsResponse_Proposal) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryProposalsByProposerResponse_Proposal) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryProposalsResponse_Proposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryProposalsByProposerResponse_Proposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1652,85 +2241,294 @@ func (m *QueryProposalsResponse_Proposal) MarshalToSizedBuffer(dAtA []byte) (int 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++ +func (m *QueryProposalsRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - dAtA[offset] = uint8(v) - return base + return dAtA[:n], nil } -func (m *QueryParamsRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n + +func (m *QueryProposalsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryParamsResponse) Size() (n int) { - if m == nil { - return 0 - } +func (m *QueryProposalsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.MaxMetadataLength != 0 { - n += 1 + sovQuery(uint64(m.MaxMetadataLength)) + 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] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *QueryAgentRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Agent) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) +func (m *QueryProposalsResponse) 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 n + return dAtA[:n], nil } -func (m *QueryAgentResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Agent != nil { - l = m.Agent.Size() - n += 1 + l + sovQuery(uint64(l)) - } - return n +func (m *QueryProposalsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryAgentResponse_Agent) Size() (n int) { - if m == nil { - return 0 - } +func (m *QueryProposalsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = len(m.Address) - if l > 0 { - n += 1 + l + sovQuery(uint64(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 } - l = len(m.Creator) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) + if len(m.Proposals) > 0 { + for iNdEx := len(m.Proposals) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Proposals[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } } - return n + return len(dAtA) - i, nil } -func (m *QueryAgentsRequest) Size() (n int) { - if m == nil { - return 0 - } +func (m *QueryProposalsResponse_Proposal) 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 *QueryProposalsResponse_Proposal) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryProposalsResponse_Proposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Metadata) > 0 { + i -= len(m.Metadata) + copy(dAtA[i:], m.Metadata) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Metadata))) + i-- + dAtA[i] = 0x2a + } + if len(m.PostActions) > 0 { + for iNdEx := len(m.PostActions) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.PostActions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.PreActions) > 0 { + for iNdEx := len(m.PreActions) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.PreActions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.Proposer) > 0 { + i -= len(m.Proposer) + copy(dAtA[i:], m.Proposer) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Proposer))) + i-- + dAtA[i] = 0x12 + } + if len(m.Agent) > 0 { + i -= len(m.Agent) + copy(dAtA[i:], m.Agent) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Agent))) + 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 *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 + if m.MaxMetadataLength != 0 { + n += 1 + sovQuery(uint64(m.MaxMetadataLength)) + } + return n +} + +func (m *QueryAgentRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Agent) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryAgentResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Agent != nil { + l = m.Agent.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryAgentResponse_Agent) 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)) + } + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryAgentsByCreatorRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryAgentsByCreatorResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Agents) > 0 { + for _, e := range m.Agents { + 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 *QueryAgentsByCreatorResponse_Agent) 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)) + } + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryAgentsRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Pagination != nil { @@ -1835,12 +2633,16 @@ func (m *QueryProposalResponse_Proposal) Size() (n int) { return n } -func (m *QueryProposalsRequest) Size() (n int) { +func (m *QueryProposalsByProposerRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l + l = len(m.Proposer) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } if m.Pagination != nil { l = m.Pagination.Size() n += 1 + l + sovQuery(uint64(l)) @@ -1848,7 +2650,7 @@ func (m *QueryProposalsRequest) Size() (n int) { return n } -func (m *QueryProposalsResponse) Size() (n int) { +func (m *QueryProposalsByProposerResponse) Size() (n int) { if m == nil { return 0 } @@ -1867,7 +2669,7 @@ func (m *QueryProposalsResponse) Size() (n int) { return n } -func (m *QueryProposalsResponse_Proposal) Size() (n int) { +func (m *QueryProposalsByProposerResponse_Proposal) Size() (n int) { if m == nil { return 0 } @@ -1900,41 +2702,695 @@ func (m *QueryProposalsResponse_Proposal) Size() (n int) { return n } -func sovQuery(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 +func (m *QueryProposalsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n } -func sozQuery(x uint64) (n int) { - return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) + +func (m *QueryProposalsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Proposals) > 0 { + for _, e := range m.Proposals { + 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 *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 + +func (m *QueryProposalsResponse_Proposal) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Agent) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Proposer) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if len(m.PreActions) > 0 { + for _, e := range m.PreActions { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + if len(m.PostActions) > 0 { + for _, e := range m.PostActions { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + l = len(m.Metadata) + if l > 0 { + 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 *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 != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxMetadataLength", wireType) + } + m.MaxMetadataLength = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MaxMetadataLength |= 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 *QueryAgentRequest) 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: QueryAgentRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAgentRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Agent", 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.Agent = 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 *QueryAgentResponse) 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: QueryAgentResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAgentResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Agent", 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.Agent == nil { + m.Agent = &QueryAgentResponse_Agent{} + } + if err := m.Agent.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 *QueryAgentResponse_Agent) 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: Agent: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Agent: 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 + case 2: + 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 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.Creator = 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 *QueryAgentsByCreatorRequest) 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: QueryAgentsByCreatorRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAgentsByCreatorRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + 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 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.Creator = string(dAtA[iNdEx:postIndex]) + 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.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 *QueryAgentsByCreatorResponse) 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: QueryAgentsByCreatorResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAgentsByCreatorResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Agents", 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.Agents = append(m.Agents, &QueryAgentsByCreatorResponse_Agent{}) + if err := m.Agents[len(m.Agents)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } - if iNdEx >= l { + 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 } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + if m.Pagination == nil { + m.Pagination = &query.PageResponse{} } - } - 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 { + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -1956,7 +3412,7 @@ func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error { +func (m *QueryAgentsByCreatorResponse_Agent) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -1979,17 +3435,17 @@ 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: Agent: 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: Agent: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxMetadataLength", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) } - m.MaxMetadataLength = 0 + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -1999,11 +3455,56 @@ func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MaxMetadataLength |= uint64(b&0x7F) << shift + 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 + case 2: + 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 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.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -2025,7 +3526,7 @@ func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAgentRequest) Unmarshal(dAtA []byte) error { +func (m *QueryAgentsRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2048,17 +3549,17 @@ func (m *QueryAgentRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAgentRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryAgentsRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAgentRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryAgentsRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Agent", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -2068,23 +3569,27 @@ func (m *QueryAgentRequest) 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 ErrInvalidLengthQuery } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - m.Agent = string(dAtA[iNdEx:postIndex]) + 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 @@ -2107,7 +3612,7 @@ func (m *QueryAgentRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAgentResponse) Unmarshal(dAtA []byte) error { +func (m *QueryAgentsResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2130,15 +3635,15 @@ func (m *QueryAgentResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAgentResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryAgentsResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAgentResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryAgentsResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Agent", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Agents", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -2165,10 +3670,44 @@ func (m *QueryAgentResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Agent == nil { - m.Agent = &QueryAgentResponse_Agent{} + m.Agents = append(m.Agents, &QueryAgentsResponse_Agent{}) + if err := m.Agents[len(m.Agents)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } - if err := m.Agent.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + 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 @@ -2193,7 +3732,7 @@ func (m *QueryAgentResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAgentResponse_Agent) Unmarshal(dAtA []byte) error { +func (m *QueryAgentsResponse_Agent) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2252,11 +3791,93 @@ func (m *QueryAgentResponse_Agent) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Address = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: + m.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + 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 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.Creator = 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 *QueryProposalRequest) 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: QueryProposalRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryProposalRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Agent", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -2284,7 +3905,7 @@ func (m *QueryAgentResponse_Agent) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Creator = string(dAtA[iNdEx:postIndex]) + m.Agent = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -2307,7 +3928,7 @@ func (m *QueryAgentResponse_Agent) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAgentsRequest) Unmarshal(dAtA []byte) error { +func (m *QueryProposalResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2330,15 +3951,15 @@ func (m *QueryAgentsRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAgentsRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryProposalResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAgentsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryProposalResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Proposal", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -2365,10 +3986,10 @@ func (m *QueryAgentsRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Pagination == nil { - m.Pagination = &query.PageRequest{} + if m.Proposal == nil { + m.Proposal = &QueryProposalResponse_Proposal{} } - if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Proposal.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -2393,7 +4014,7 @@ func (m *QueryAgentsRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAgentsResponse) Unmarshal(dAtA []byte) error { +func (m *QueryProposalResponse_Proposal) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2416,15 +4037,79 @@ func (m *QueryAgentsResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAgentsResponse: wiretype end group for non-group") + return fmt.Errorf("proto: Proposal: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAgentsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Proposal: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Agents", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Agent", 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.Agent = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Proposer", 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.Proposer = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PreActions", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -2451,14 +4136,14 @@ func (m *QueryAgentsResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Agents = append(m.Agents, &QueryAgentsResponse_Agent{}) - if err := m.Agents[len(m.Agents)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.PreActions = append(m.PreActions, &types.Any{}) + if err := m.PreActions[len(m.PreActions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 2: + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PostActions", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -2485,13 +4170,43 @@ func (m *QueryAgentsResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Pagination == nil { - m.Pagination = &query.PageResponse{} - } - if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.PostActions = append(m.PostActions, &types.Any{}) + if err := m.PostActions[len(m.PostActions)-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 Metadata", 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.Metadata = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -2513,7 +4228,7 @@ func (m *QueryAgentsResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAgentsResponse_Agent) Unmarshal(dAtA []byte) error { +func (m *QueryProposalsByProposerRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2536,15 +4251,15 @@ func (m *QueryAgentsResponse_Agent) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Agent: wiretype end group for non-group") + return fmt.Errorf("proto: QueryProposalsByProposerRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Agent: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryProposalsByProposerRequest: 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) + return fmt.Errorf("proto: wrong wireType = %d for field Proposer", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -2572,13 +4287,13 @@ func (m *QueryAgentsResponse_Agent) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Address = string(dAtA[iNdEx:postIndex]) + m.Proposer = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -2588,23 +4303,27 @@ func (m *QueryAgentsResponse_Agent) 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 ErrInvalidLengthQuery } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - m.Creator = string(dAtA[iNdEx:postIndex]) + 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 @@ -2627,7 +4346,7 @@ func (m *QueryAgentsResponse_Agent) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryProposalRequest) Unmarshal(dAtA []byte) error { +func (m *QueryProposalsByProposerResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2650,17 +4369,17 @@ func (m *QueryProposalRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryProposalRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryProposalsByProposerResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryProposalRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryProposalsByProposerResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Agent", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Proposals", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -2670,77 +4389,29 @@ func (m *QueryProposalRequest) 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 ErrInvalidLengthQuery } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - m.Agent = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { + m.Proposals = append(m.Proposals, &QueryProposalsByProposerResponse_Proposal{}) + if err := m.Proposals[len(m.Proposals)-1].Unmarshal(dAtA[iNdEx:postIndex]); 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 *QueryProposalResponse) 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: QueryProposalResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryProposalResponse: 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 Proposal", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -2767,10 +4438,10 @@ func (m *QueryProposalResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Proposal == nil { - m.Proposal = &QueryProposalResponse_Proposal{} + if m.Pagination == nil { + m.Pagination = &query.PageResponse{} } - if err := m.Proposal.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -2795,7 +4466,7 @@ func (m *QueryProposalResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryProposalResponse_Proposal) Unmarshal(dAtA []byte) error { +func (m *QueryProposalsByProposerResponse_Proposal) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3038,7 +4709,7 @@ func (m *QueryProposalsRequest) Unmarshal(dAtA []byte) error { return fmt.Errorf("proto: QueryProposalsRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 2: + case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) } diff --git a/x/escrow/andromeda/escrow/v1alpha1/query.pb.gw.go b/x/escrow/andromeda/escrow/v1alpha1/query.pb.gw.go index 367e3bd..7867ae3 100644 --- a/x/escrow/andromeda/escrow/v1alpha1/query.pb.gw.go +++ b/x/escrow/andromeda/escrow/v1alpha1/query.pb.gw.go @@ -105,6 +105,78 @@ func local_request_Query_Agent_0(ctx context.Context, marshaler runtime.Marshale } +var ( + filter_Query_AgentsByCreator_0 = &utilities.DoubleArray{Encoding: map[string]int{"creator": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} +) + +func request_Query_AgentsByCreator_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAgentsByCreatorRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["creator"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "creator") + } + + protoReq.Creator, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "creator", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_AgentsByCreator_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.AgentsByCreator(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_AgentsByCreator_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAgentsByCreatorRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["creator"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "creator") + } + + protoReq.Creator, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "creator", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_AgentsByCreator_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.AgentsByCreator(ctx, &protoReq) + return msg, metadata, err + +} + var ( filter_Query_Agents_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} ) @@ -195,6 +267,78 @@ func local_request_Query_Proposal_0(ctx context.Context, marshaler runtime.Marsh } +var ( + filter_Query_ProposalsByProposer_0 = &utilities.DoubleArray{Encoding: map[string]int{"proposer": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} +) + +func request_Query_ProposalsByProposer_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryProposalsByProposerRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["proposer"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "proposer") + } + + protoReq.Proposer, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "proposer", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_ProposalsByProposer_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ProposalsByProposer(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_ProposalsByProposer_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryProposalsByProposerRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["proposer"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "proposer") + } + + protoReq.Proposer, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "proposer", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_ProposalsByProposer_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.ProposalsByProposer(ctx, &protoReq) + return msg, metadata, err + +} + var ( filter_Query_Proposals_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} ) @@ -283,6 +427,29 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) + mux.Handle("GET", pattern_Query_AgentsByCreator_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_AgentsByCreator_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_AgentsByCreator_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + mux.Handle("GET", pattern_Query_Agents_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -329,6 +496,29 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) + mux.Handle("GET", pattern_Query_ProposalsByProposer_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_ProposalsByProposer_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_ProposalsByProposer_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + mux.Handle("GET", pattern_Query_Proposals_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -433,6 +623,26 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) + mux.Handle("GET", pattern_Query_AgentsByCreator_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_AgentsByCreator_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_AgentsByCreator_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + mux.Handle("GET", pattern_Query_Agents_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -473,6 +683,26 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) + mux.Handle("GET", pattern_Query_ProposalsByProposer_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_ProposalsByProposer_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_ProposalsByProposer_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + mux.Handle("GET", pattern_Query_Proposals_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -501,10 +731,14 @@ var ( pattern_Query_Agent_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"andromeda", "escrow", "v1alpha1", "agents", "agent"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_AgentsByCreator_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"andromeda", "escrow", "v1alpha1", "creators", "creator", "agents"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_Agents_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"andromeda", "escrow", "v1alpha1", "agents"}, "", runtime.AssumeColonVerbOpt(true))) pattern_Query_Proposal_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"andromeda", "escrow", "v1alpha1", "agents", "agent", "proposal"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_ProposalsByProposer_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"andromeda", "escrow", "v1alpha1", "proposers", "proposer", "proposals"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_Proposals_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"andromeda", "escrow", "v1alpha1", "proposals"}, "", runtime.AssumeColonVerbOpt(true))) ) @@ -513,9 +747,13 @@ var ( forward_Query_Agent_0 = runtime.ForwardResponseMessage + forward_Query_AgentsByCreator_0 = runtime.ForwardResponseMessage + forward_Query_Agents_0 = runtime.ForwardResponseMessage forward_Query_Proposal_0 = runtime.ForwardResponseMessage + forward_Query_ProposalsByProposer_0 = runtime.ForwardResponseMessage + forward_Query_Proposals_0 = runtime.ForwardResponseMessage ) diff --git a/x/escrow/api/andromeda/escrow/v1alpha1/query.pulsar.go b/x/escrow/api/andromeda/escrow/v1alpha1/query.pulsar.go index 907962c..7b633ea 100644 --- a/x/escrow/api/andromeda/escrow/v1alpha1/query.pulsar.go +++ b/x/escrow/api/andromeda/escrow/v1alpha1/query.pulsar.go @@ -1653,7 +1653,7 @@ func (x *QueryAgentResponse_Agent) ProtoReflect() protoreflect.Message { } func (x *QueryAgentResponse_Agent) slowProtoReflect() protoreflect.Message { - mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[10] + mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2116,25 +2116,27 @@ func (x *fastReflection_QueryAgentResponse_Agent) ProtoMethods() *protoiface.Met } var ( - md_QueryAgentsRequest protoreflect.MessageDescriptor - fd_QueryAgentsRequest_pagination protoreflect.FieldDescriptor + md_QueryAgentsByCreatorRequest protoreflect.MessageDescriptor + fd_QueryAgentsByCreatorRequest_creator protoreflect.FieldDescriptor + fd_QueryAgentsByCreatorRequest_pagination protoreflect.FieldDescriptor ) func init() { file_andromeda_escrow_v1alpha1_query_proto_init() - md_QueryAgentsRequest = File_andromeda_escrow_v1alpha1_query_proto.Messages().ByName("QueryAgentsRequest") - fd_QueryAgentsRequest_pagination = md_QueryAgentsRequest.Fields().ByName("pagination") + md_QueryAgentsByCreatorRequest = File_andromeda_escrow_v1alpha1_query_proto.Messages().ByName("QueryAgentsByCreatorRequest") + fd_QueryAgentsByCreatorRequest_creator = md_QueryAgentsByCreatorRequest.Fields().ByName("creator") + fd_QueryAgentsByCreatorRequest_pagination = md_QueryAgentsByCreatorRequest.Fields().ByName("pagination") } -var _ protoreflect.Message = (*fastReflection_QueryAgentsRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryAgentsByCreatorRequest)(nil) -type fastReflection_QueryAgentsRequest QueryAgentsRequest +type fastReflection_QueryAgentsByCreatorRequest QueryAgentsByCreatorRequest -func (x *QueryAgentsRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryAgentsRequest)(x) +func (x *QueryAgentsByCreatorRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryAgentsByCreatorRequest)(x) } -func (x *QueryAgentsRequest) slowProtoReflect() protoreflect.Message { +func (x *QueryAgentsByCreatorRequest) slowProtoReflect() protoreflect.Message { mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -2146,43 +2148,43 @@ func (x *QueryAgentsRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryAgentsRequest_messageType fastReflection_QueryAgentsRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryAgentsRequest_messageType{} +var _fastReflection_QueryAgentsByCreatorRequest_messageType fastReflection_QueryAgentsByCreatorRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryAgentsByCreatorRequest_messageType{} -type fastReflection_QueryAgentsRequest_messageType struct{} +type fastReflection_QueryAgentsByCreatorRequest_messageType struct{} -func (x fastReflection_QueryAgentsRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryAgentsRequest)(nil) +func (x fastReflection_QueryAgentsByCreatorRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryAgentsByCreatorRequest)(nil) } -func (x fastReflection_QueryAgentsRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryAgentsRequest) +func (x fastReflection_QueryAgentsByCreatorRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryAgentsByCreatorRequest) } -func (x fastReflection_QueryAgentsRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryAgentsRequest +func (x fastReflection_QueryAgentsByCreatorRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAgentsByCreatorRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryAgentsRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryAgentsRequest +func (x *fastReflection_QueryAgentsByCreatorRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAgentsByCreatorRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryAgentsRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryAgentsRequest_messageType +func (x *fastReflection_QueryAgentsByCreatorRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryAgentsByCreatorRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryAgentsRequest) New() protoreflect.Message { - return new(fastReflection_QueryAgentsRequest) +func (x *fastReflection_QueryAgentsByCreatorRequest) New() protoreflect.Message { + return new(fastReflection_QueryAgentsByCreatorRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryAgentsRequest) Interface() protoreflect.ProtoMessage { - return (*QueryAgentsRequest)(x) +func (x *fastReflection_QueryAgentsByCreatorRequest) Interface() protoreflect.ProtoMessage { + return (*QueryAgentsByCreatorRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -2190,10 +2192,16 @@ func (x *fastReflection_QueryAgentsRequest) Interface() protoreflect.ProtoMessag // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryAgentsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryAgentsByCreatorRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Creator != "" { + value := protoreflect.ValueOfString(x.Creator) + if !f(fd_QueryAgentsByCreatorRequest_creator, value) { + return + } + } if x.Pagination != nil { value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_QueryAgentsRequest_pagination, value) { + if !f(fd_QueryAgentsByCreatorRequest_pagination, value) { return } } @@ -2210,15 +2218,17 @@ func (x *fastReflection_QueryAgentsRequest) Range(f func(protoreflect.FieldDescr // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryAgentsRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryAgentsByCreatorRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.QueryAgentsRequest.pagination": + case "andromeda.escrow.v1alpha1.QueryAgentsByCreatorRequest.creator": + return x.Creator != "" + case "andromeda.escrow.v1alpha1.QueryAgentsByCreatorRequest.pagination": return x.Pagination != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentsByCreatorRequest")) } - panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentsRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentsByCreatorRequest does not contain field %s", fd.FullName())) } } @@ -2228,15 +2238,17 @@ func (x *fastReflection_QueryAgentsRequest) Has(fd protoreflect.FieldDescriptor) // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAgentsRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryAgentsByCreatorRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.QueryAgentsRequest.pagination": + case "andromeda.escrow.v1alpha1.QueryAgentsByCreatorRequest.creator": + x.Creator = "" + case "andromeda.escrow.v1alpha1.QueryAgentsByCreatorRequest.pagination": x.Pagination = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentsByCreatorRequest")) } - panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentsRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentsByCreatorRequest does not contain field %s", fd.FullName())) } } @@ -2246,16 +2258,19 @@ func (x *fastReflection_QueryAgentsRequest) Clear(fd protoreflect.FieldDescripto // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryAgentsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryAgentsByCreatorRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "andromeda.escrow.v1alpha1.QueryAgentsRequest.pagination": + case "andromeda.escrow.v1alpha1.QueryAgentsByCreatorRequest.creator": + value := x.Creator + return protoreflect.ValueOfString(value) + case "andromeda.escrow.v1alpha1.QueryAgentsByCreatorRequest.pagination": value := x.Pagination return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentsByCreatorRequest")) } - panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentsRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentsByCreatorRequest does not contain field %s", descriptor.FullName())) } } @@ -2269,15 +2284,17 @@ func (x *fastReflection_QueryAgentsRequest) Get(descriptor protoreflect.FieldDes // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAgentsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryAgentsByCreatorRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.QueryAgentsRequest.pagination": + case "andromeda.escrow.v1alpha1.QueryAgentsByCreatorRequest.creator": + x.Creator = value.Interface().(string) + case "andromeda.escrow.v1alpha1.QueryAgentsByCreatorRequest.pagination": x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentsByCreatorRequest")) } - panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentsRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentsByCreatorRequest does not contain field %s", fd.FullName())) } } @@ -2291,44 +2308,48 @@ func (x *fastReflection_QueryAgentsRequest) Set(fd protoreflect.FieldDescriptor, // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAgentsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryAgentsByCreatorRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.QueryAgentsRequest.pagination": + case "andromeda.escrow.v1alpha1.QueryAgentsByCreatorRequest.pagination": if x.Pagination == nil { x.Pagination = new(v1beta1.PageRequest) } return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + case "andromeda.escrow.v1alpha1.QueryAgentsByCreatorRequest.creator": + panic(fmt.Errorf("field creator of message andromeda.escrow.v1alpha1.QueryAgentsByCreatorRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentsByCreatorRequest")) } - panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentsRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentsByCreatorRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryAgentsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryAgentsByCreatorRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.QueryAgentsRequest.pagination": + case "andromeda.escrow.v1alpha1.QueryAgentsByCreatorRequest.creator": + return protoreflect.ValueOfString("") + case "andromeda.escrow.v1alpha1.QueryAgentsByCreatorRequest.pagination": m := new(v1beta1.PageRequest) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentsByCreatorRequest")) } - panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentsRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentsByCreatorRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryAgentsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryAgentsByCreatorRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in andromeda.escrow.v1alpha1.QueryAgentsRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in andromeda.escrow.v1alpha1.QueryAgentsByCreatorRequest", d.FullName())) } panic("unreachable") } @@ -2336,7 +2357,7 @@ func (x *fastReflection_QueryAgentsRequest) WhichOneof(d protoreflect.OneofDescr // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryAgentsRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryAgentsByCreatorRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -2347,7 +2368,7 @@ func (x *fastReflection_QueryAgentsRequest) GetUnknown() protoreflect.RawFields // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAgentsRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryAgentsByCreatorRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -2359,7 +2380,7 @@ func (x *fastReflection_QueryAgentsRequest) SetUnknown(fields protoreflect.RawFi // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryAgentsRequest) IsValid() bool { +func (x *fastReflection_QueryAgentsByCreatorRequest) IsValid() bool { return x != nil } @@ -2369,9 +2390,9 @@ func (x *fastReflection_QueryAgentsRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryAgentsRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryAgentsByCreatorRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryAgentsRequest) + x := input.Message.Interface().(*QueryAgentsByCreatorRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2383,6 +2404,10 @@ func (x *fastReflection_QueryAgentsRequest) ProtoMethods() *protoiface.Methods { var n int var l int _ = l + l = len(x.Creator) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } if x.Pagination != nil { l = options.Size(x.Pagination) n += 1 + l + runtime.Sov(uint64(l)) @@ -2397,7 +2422,7 @@ func (x *fastReflection_QueryAgentsRequest) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryAgentsRequest) + x := input.Message.Interface().(*QueryAgentsByCreatorRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2428,6 +2453,13 @@ func (x *fastReflection_QueryAgentsRequest) ProtoMethods() *protoiface.Methods { copy(dAtA[i:], encoded) i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- + dAtA[i] = 0x12 + } + if len(x.Creator) > 0 { + i -= len(x.Creator) + copy(dAtA[i:], x.Creator) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) + i-- dAtA[i] = 0xa } if input.Buf != nil { @@ -2441,7 +2473,7 @@ func (x *fastReflection_QueryAgentsRequest) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryAgentsRequest) + x := input.Message.Interface().(*QueryAgentsByCreatorRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2473,13 +2505,45 @@ func (x *fastReflection_QueryAgentsRequest) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAgentsRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAgentsByCreatorRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAgentsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAgentsByCreatorRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) } @@ -2550,79 +2614,79 @@ func (x *fastReflection_QueryAgentsRequest) ProtoMethods() *protoiface.Methods { } } -var _ protoreflect.List = (*_QueryAgentsResponse_1_list)(nil) +var _ protoreflect.List = (*_QueryAgentsByCreatorResponse_1_list)(nil) -type _QueryAgentsResponse_1_list struct { - list *[]*QueryAgentsResponse_Agent +type _QueryAgentsByCreatorResponse_1_list struct { + list *[]*QueryAgentsByCreatorResponse_Agent } -func (x *_QueryAgentsResponse_1_list) Len() int { +func (x *_QueryAgentsByCreatorResponse_1_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_QueryAgentsResponse_1_list) Get(i int) protoreflect.Value { +func (x *_QueryAgentsByCreatorResponse_1_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } -func (x *_QueryAgentsResponse_1_list) Set(i int, value protoreflect.Value) { +func (x *_QueryAgentsByCreatorResponse_1_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*QueryAgentsResponse_Agent) + concreteValue := valueUnwrapped.Interface().(*QueryAgentsByCreatorResponse_Agent) (*x.list)[i] = concreteValue } -func (x *_QueryAgentsResponse_1_list) Append(value protoreflect.Value) { +func (x *_QueryAgentsByCreatorResponse_1_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*QueryAgentsResponse_Agent) + concreteValue := valueUnwrapped.Interface().(*QueryAgentsByCreatorResponse_Agent) *x.list = append(*x.list, concreteValue) } -func (x *_QueryAgentsResponse_1_list) AppendMutable() protoreflect.Value { - v := new(QueryAgentsResponse_Agent) +func (x *_QueryAgentsByCreatorResponse_1_list) AppendMutable() protoreflect.Value { + v := new(QueryAgentsByCreatorResponse_Agent) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_QueryAgentsResponse_1_list) Truncate(n int) { +func (x *_QueryAgentsByCreatorResponse_1_list) Truncate(n int) { for i := n; i < len(*x.list); i++ { (*x.list)[i] = nil } *x.list = (*x.list)[:n] } -func (x *_QueryAgentsResponse_1_list) NewElement() protoreflect.Value { - v := new(QueryAgentsResponse_Agent) +func (x *_QueryAgentsByCreatorResponse_1_list) NewElement() protoreflect.Value { + v := new(QueryAgentsByCreatorResponse_Agent) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_QueryAgentsResponse_1_list) IsValid() bool { +func (x *_QueryAgentsByCreatorResponse_1_list) IsValid() bool { return x.list != nil } var ( - md_QueryAgentsResponse protoreflect.MessageDescriptor - fd_QueryAgentsResponse_agents protoreflect.FieldDescriptor - fd_QueryAgentsResponse_pagination protoreflect.FieldDescriptor + md_QueryAgentsByCreatorResponse protoreflect.MessageDescriptor + fd_QueryAgentsByCreatorResponse_agents protoreflect.FieldDescriptor + fd_QueryAgentsByCreatorResponse_pagination protoreflect.FieldDescriptor ) func init() { file_andromeda_escrow_v1alpha1_query_proto_init() - md_QueryAgentsResponse = File_andromeda_escrow_v1alpha1_query_proto.Messages().ByName("QueryAgentsResponse") - fd_QueryAgentsResponse_agents = md_QueryAgentsResponse.Fields().ByName("agents") - fd_QueryAgentsResponse_pagination = md_QueryAgentsResponse.Fields().ByName("pagination") + md_QueryAgentsByCreatorResponse = File_andromeda_escrow_v1alpha1_query_proto.Messages().ByName("QueryAgentsByCreatorResponse") + fd_QueryAgentsByCreatorResponse_agents = md_QueryAgentsByCreatorResponse.Fields().ByName("agents") + fd_QueryAgentsByCreatorResponse_pagination = md_QueryAgentsByCreatorResponse.Fields().ByName("pagination") } -var _ protoreflect.Message = (*fastReflection_QueryAgentsResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryAgentsByCreatorResponse)(nil) -type fastReflection_QueryAgentsResponse QueryAgentsResponse +type fastReflection_QueryAgentsByCreatorResponse QueryAgentsByCreatorResponse -func (x *QueryAgentsResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryAgentsResponse)(x) +func (x *QueryAgentsByCreatorResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryAgentsByCreatorResponse)(x) } -func (x *QueryAgentsResponse) slowProtoReflect() protoreflect.Message { +func (x *QueryAgentsByCreatorResponse) slowProtoReflect() protoreflect.Message { mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -2634,43 +2698,43 @@ func (x *QueryAgentsResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryAgentsResponse_messageType fastReflection_QueryAgentsResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryAgentsResponse_messageType{} +var _fastReflection_QueryAgentsByCreatorResponse_messageType fastReflection_QueryAgentsByCreatorResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryAgentsByCreatorResponse_messageType{} -type fastReflection_QueryAgentsResponse_messageType struct{} +type fastReflection_QueryAgentsByCreatorResponse_messageType struct{} -func (x fastReflection_QueryAgentsResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryAgentsResponse)(nil) +func (x fastReflection_QueryAgentsByCreatorResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryAgentsByCreatorResponse)(nil) } -func (x fastReflection_QueryAgentsResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryAgentsResponse) +func (x fastReflection_QueryAgentsByCreatorResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryAgentsByCreatorResponse) } -func (x fastReflection_QueryAgentsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryAgentsResponse +func (x fastReflection_QueryAgentsByCreatorResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAgentsByCreatorResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryAgentsResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryAgentsResponse +func (x *fastReflection_QueryAgentsByCreatorResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAgentsByCreatorResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryAgentsResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryAgentsResponse_messageType +func (x *fastReflection_QueryAgentsByCreatorResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryAgentsByCreatorResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryAgentsResponse) New() protoreflect.Message { - return new(fastReflection_QueryAgentsResponse) +func (x *fastReflection_QueryAgentsByCreatorResponse) New() protoreflect.Message { + return new(fastReflection_QueryAgentsByCreatorResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryAgentsResponse) Interface() protoreflect.ProtoMessage { - return (*QueryAgentsResponse)(x) +func (x *fastReflection_QueryAgentsByCreatorResponse) Interface() protoreflect.ProtoMessage { + return (*QueryAgentsByCreatorResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -2678,16 +2742,16 @@ func (x *fastReflection_QueryAgentsResponse) Interface() protoreflect.ProtoMessa // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryAgentsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryAgentsByCreatorResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if len(x.Agents) != 0 { - value := protoreflect.ValueOfList(&_QueryAgentsResponse_1_list{list: &x.Agents}) - if !f(fd_QueryAgentsResponse_agents, value) { + value := protoreflect.ValueOfList(&_QueryAgentsByCreatorResponse_1_list{list: &x.Agents}) + if !f(fd_QueryAgentsByCreatorResponse_agents, value) { return } } if x.Pagination != nil { value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_QueryAgentsResponse_pagination, value) { + if !f(fd_QueryAgentsByCreatorResponse_pagination, value) { return } } @@ -2704,17 +2768,17 @@ func (x *fastReflection_QueryAgentsResponse) Range(f func(protoreflect.FieldDesc // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryAgentsResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryAgentsByCreatorResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.QueryAgentsResponse.agents": + case "andromeda.escrow.v1alpha1.QueryAgentsByCreatorResponse.agents": return len(x.Agents) != 0 - case "andromeda.escrow.v1alpha1.QueryAgentsResponse.pagination": + case "andromeda.escrow.v1alpha1.QueryAgentsByCreatorResponse.pagination": return x.Pagination != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentsByCreatorResponse")) } - panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentsByCreatorResponse does not contain field %s", fd.FullName())) } } @@ -2724,17 +2788,17 @@ func (x *fastReflection_QueryAgentsResponse) Has(fd protoreflect.FieldDescriptor // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAgentsResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryAgentsByCreatorResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.QueryAgentsResponse.agents": + case "andromeda.escrow.v1alpha1.QueryAgentsByCreatorResponse.agents": x.Agents = nil - case "andromeda.escrow.v1alpha1.QueryAgentsResponse.pagination": + case "andromeda.escrow.v1alpha1.QueryAgentsByCreatorResponse.pagination": x.Pagination = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentsByCreatorResponse")) } - panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentsByCreatorResponse does not contain field %s", fd.FullName())) } } @@ -2744,22 +2808,22 @@ func (x *fastReflection_QueryAgentsResponse) Clear(fd protoreflect.FieldDescript // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryAgentsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryAgentsByCreatorResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "andromeda.escrow.v1alpha1.QueryAgentsResponse.agents": + case "andromeda.escrow.v1alpha1.QueryAgentsByCreatorResponse.agents": if len(x.Agents) == 0 { - return protoreflect.ValueOfList(&_QueryAgentsResponse_1_list{}) + return protoreflect.ValueOfList(&_QueryAgentsByCreatorResponse_1_list{}) } - listValue := &_QueryAgentsResponse_1_list{list: &x.Agents} + listValue := &_QueryAgentsByCreatorResponse_1_list{list: &x.Agents} return protoreflect.ValueOfList(listValue) - case "andromeda.escrow.v1alpha1.QueryAgentsResponse.pagination": + case "andromeda.escrow.v1alpha1.QueryAgentsByCreatorResponse.pagination": value := x.Pagination return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentsByCreatorResponse")) } - panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentsResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentsByCreatorResponse does not contain field %s", descriptor.FullName())) } } @@ -2773,19 +2837,19 @@ func (x *fastReflection_QueryAgentsResponse) Get(descriptor protoreflect.FieldDe // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAgentsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryAgentsByCreatorResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.QueryAgentsResponse.agents": + case "andromeda.escrow.v1alpha1.QueryAgentsByCreatorResponse.agents": lv := value.List() - clv := lv.(*_QueryAgentsResponse_1_list) + clv := lv.(*_QueryAgentsByCreatorResponse_1_list) x.Agents = *clv.list - case "andromeda.escrow.v1alpha1.QueryAgentsResponse.pagination": + case "andromeda.escrow.v1alpha1.QueryAgentsByCreatorResponse.pagination": x.Pagination = value.Message().Interface().(*v1beta1.PageResponse) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentsByCreatorResponse")) } - panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentsByCreatorResponse does not contain field %s", fd.FullName())) } } @@ -2799,53 +2863,53 @@ func (x *fastReflection_QueryAgentsResponse) Set(fd protoreflect.FieldDescriptor // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAgentsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryAgentsByCreatorResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.QueryAgentsResponse.agents": + case "andromeda.escrow.v1alpha1.QueryAgentsByCreatorResponse.agents": if x.Agents == nil { - x.Agents = []*QueryAgentsResponse_Agent{} + x.Agents = []*QueryAgentsByCreatorResponse_Agent{} } - value := &_QueryAgentsResponse_1_list{list: &x.Agents} + value := &_QueryAgentsByCreatorResponse_1_list{list: &x.Agents} return protoreflect.ValueOfList(value) - case "andromeda.escrow.v1alpha1.QueryAgentsResponse.pagination": + case "andromeda.escrow.v1alpha1.QueryAgentsByCreatorResponse.pagination": if x.Pagination == nil { x.Pagination = new(v1beta1.PageResponse) } return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentsByCreatorResponse")) } - panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentsByCreatorResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryAgentsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryAgentsByCreatorResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.QueryAgentsResponse.agents": - list := []*QueryAgentsResponse_Agent{} - return protoreflect.ValueOfList(&_QueryAgentsResponse_1_list{list: &list}) - case "andromeda.escrow.v1alpha1.QueryAgentsResponse.pagination": + case "andromeda.escrow.v1alpha1.QueryAgentsByCreatorResponse.agents": + list := []*QueryAgentsByCreatorResponse_Agent{} + return protoreflect.ValueOfList(&_QueryAgentsByCreatorResponse_1_list{list: &list}) + case "andromeda.escrow.v1alpha1.QueryAgentsByCreatorResponse.pagination": m := new(v1beta1.PageResponse) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentsByCreatorResponse")) } - panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentsByCreatorResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryAgentsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryAgentsByCreatorResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in andromeda.escrow.v1alpha1.QueryAgentsResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in andromeda.escrow.v1alpha1.QueryAgentsByCreatorResponse", d.FullName())) } panic("unreachable") } @@ -2853,7 +2917,7 @@ func (x *fastReflection_QueryAgentsResponse) WhichOneof(d protoreflect.OneofDesc // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryAgentsResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryAgentsByCreatorResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -2864,7 +2928,7 @@ func (x *fastReflection_QueryAgentsResponse) GetUnknown() protoreflect.RawFields // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAgentsResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryAgentsByCreatorResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -2876,7 +2940,7 @@ func (x *fastReflection_QueryAgentsResponse) SetUnknown(fields protoreflect.RawF // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryAgentsResponse) IsValid() bool { +func (x *fastReflection_QueryAgentsByCreatorResponse) IsValid() bool { return x != nil } @@ -2886,9 +2950,9 @@ func (x *fastReflection_QueryAgentsResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryAgentsResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryAgentsByCreatorResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryAgentsResponse) + x := input.Message.Interface().(*QueryAgentsByCreatorResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2920,7 +2984,7 @@ func (x *fastReflection_QueryAgentsResponse) ProtoMethods() *protoiface.Methods } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryAgentsResponse) + x := input.Message.Interface().(*QueryAgentsByCreatorResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2980,7 +3044,7 @@ func (x *fastReflection_QueryAgentsResponse) ProtoMethods() *protoiface.Methods }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryAgentsResponse) + x := input.Message.Interface().(*QueryAgentsByCreatorResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3012,10 +3076,10 @@ func (x *fastReflection_QueryAgentsResponse) ProtoMethods() *protoiface.Methods fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAgentsResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAgentsByCreatorResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAgentsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAgentsByCreatorResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -3047,7 +3111,7 @@ func (x *fastReflection_QueryAgentsResponse) ProtoMethods() *protoiface.Methods if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Agents = append(x.Agents, &QueryAgentsResponse_Agent{}) + x.Agents = append(x.Agents, &QueryAgentsByCreatorResponse_Agent{}) if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Agents[len(x.Agents)-1]); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } @@ -3124,28 +3188,28 @@ func (x *fastReflection_QueryAgentsResponse) ProtoMethods() *protoiface.Methods } var ( - md_QueryAgentsResponse_Agent protoreflect.MessageDescriptor - fd_QueryAgentsResponse_Agent_address protoreflect.FieldDescriptor - fd_QueryAgentsResponse_Agent_creator protoreflect.FieldDescriptor + md_QueryAgentsByCreatorResponse_Agent protoreflect.MessageDescriptor + fd_QueryAgentsByCreatorResponse_Agent_address protoreflect.FieldDescriptor + fd_QueryAgentsByCreatorResponse_Agent_creator protoreflect.FieldDescriptor ) func init() { file_andromeda_escrow_v1alpha1_query_proto_init() - md_QueryAgentsResponse_Agent = File_andromeda_escrow_v1alpha1_query_proto.Messages().ByName("QueryAgentsResponse").Messages().ByName("Agent") - fd_QueryAgentsResponse_Agent_address = md_QueryAgentsResponse_Agent.Fields().ByName("address") - fd_QueryAgentsResponse_Agent_creator = md_QueryAgentsResponse_Agent.Fields().ByName("creator") + md_QueryAgentsByCreatorResponse_Agent = File_andromeda_escrow_v1alpha1_query_proto.Messages().ByName("QueryAgentsByCreatorResponse").Messages().ByName("Agent") + fd_QueryAgentsByCreatorResponse_Agent_address = md_QueryAgentsByCreatorResponse_Agent.Fields().ByName("address") + fd_QueryAgentsByCreatorResponse_Agent_creator = md_QueryAgentsByCreatorResponse_Agent.Fields().ByName("creator") } -var _ protoreflect.Message = (*fastReflection_QueryAgentsResponse_Agent)(nil) +var _ protoreflect.Message = (*fastReflection_QueryAgentsByCreatorResponse_Agent)(nil) -type fastReflection_QueryAgentsResponse_Agent QueryAgentsResponse_Agent +type fastReflection_QueryAgentsByCreatorResponse_Agent QueryAgentsByCreatorResponse_Agent -func (x *QueryAgentsResponse_Agent) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryAgentsResponse_Agent)(x) +func (x *QueryAgentsByCreatorResponse_Agent) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryAgentsByCreatorResponse_Agent)(x) } -func (x *QueryAgentsResponse_Agent) slowProtoReflect() protoreflect.Message { - mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[11] +func (x *QueryAgentsByCreatorResponse_Agent) slowProtoReflect() protoreflect.Message { + mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3156,43 +3220,43 @@ func (x *QueryAgentsResponse_Agent) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryAgentsResponse_Agent_messageType fastReflection_QueryAgentsResponse_Agent_messageType -var _ protoreflect.MessageType = fastReflection_QueryAgentsResponse_Agent_messageType{} +var _fastReflection_QueryAgentsByCreatorResponse_Agent_messageType fastReflection_QueryAgentsByCreatorResponse_Agent_messageType +var _ protoreflect.MessageType = fastReflection_QueryAgentsByCreatorResponse_Agent_messageType{} -type fastReflection_QueryAgentsResponse_Agent_messageType struct{} +type fastReflection_QueryAgentsByCreatorResponse_Agent_messageType struct{} -func (x fastReflection_QueryAgentsResponse_Agent_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryAgentsResponse_Agent)(nil) +func (x fastReflection_QueryAgentsByCreatorResponse_Agent_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryAgentsByCreatorResponse_Agent)(nil) } -func (x fastReflection_QueryAgentsResponse_Agent_messageType) New() protoreflect.Message { - return new(fastReflection_QueryAgentsResponse_Agent) +func (x fastReflection_QueryAgentsByCreatorResponse_Agent_messageType) New() protoreflect.Message { + return new(fastReflection_QueryAgentsByCreatorResponse_Agent) } -func (x fastReflection_QueryAgentsResponse_Agent_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryAgentsResponse_Agent +func (x fastReflection_QueryAgentsByCreatorResponse_Agent_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAgentsByCreatorResponse_Agent } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryAgentsResponse_Agent) Descriptor() protoreflect.MessageDescriptor { - return md_QueryAgentsResponse_Agent +func (x *fastReflection_QueryAgentsByCreatorResponse_Agent) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAgentsByCreatorResponse_Agent } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryAgentsResponse_Agent) Type() protoreflect.MessageType { - return _fastReflection_QueryAgentsResponse_Agent_messageType +func (x *fastReflection_QueryAgentsByCreatorResponse_Agent) Type() protoreflect.MessageType { + return _fastReflection_QueryAgentsByCreatorResponse_Agent_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryAgentsResponse_Agent) New() protoreflect.Message { - return new(fastReflection_QueryAgentsResponse_Agent) +func (x *fastReflection_QueryAgentsByCreatorResponse_Agent) New() protoreflect.Message { + return new(fastReflection_QueryAgentsByCreatorResponse_Agent) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryAgentsResponse_Agent) Interface() protoreflect.ProtoMessage { - return (*QueryAgentsResponse_Agent)(x) +func (x *fastReflection_QueryAgentsByCreatorResponse_Agent) Interface() protoreflect.ProtoMessage { + return (*QueryAgentsByCreatorResponse_Agent)(x) } // Range iterates over every populated field in an undefined order, @@ -3200,16 +3264,16 @@ func (x *fastReflection_QueryAgentsResponse_Agent) Interface() protoreflect.Prot // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryAgentsResponse_Agent) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryAgentsByCreatorResponse_Agent) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Address != "" { value := protoreflect.ValueOfString(x.Address) - if !f(fd_QueryAgentsResponse_Agent_address, value) { + if !f(fd_QueryAgentsByCreatorResponse_Agent_address, value) { return } } if x.Creator != "" { value := protoreflect.ValueOfString(x.Creator) - if !f(fd_QueryAgentsResponse_Agent_creator, value) { + if !f(fd_QueryAgentsByCreatorResponse_Agent_creator, value) { return } } @@ -3226,17 +3290,17 @@ func (x *fastReflection_QueryAgentsResponse_Agent) Range(f func(protoreflect.Fie // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryAgentsResponse_Agent) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryAgentsByCreatorResponse_Agent) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent.address": + case "andromeda.escrow.v1alpha1.QueryAgentsByCreatorResponse.Agent.address": return x.Address != "" - case "andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent.creator": + case "andromeda.escrow.v1alpha1.QueryAgentsByCreatorResponse.Agent.creator": return x.Creator != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentsByCreatorResponse.Agent")) } - panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentsByCreatorResponse.Agent does not contain field %s", fd.FullName())) } } @@ -3246,17 +3310,17 @@ func (x *fastReflection_QueryAgentsResponse_Agent) Has(fd protoreflect.FieldDesc // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAgentsResponse_Agent) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryAgentsByCreatorResponse_Agent) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent.address": + case "andromeda.escrow.v1alpha1.QueryAgentsByCreatorResponse.Agent.address": x.Address = "" - case "andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent.creator": + case "andromeda.escrow.v1alpha1.QueryAgentsByCreatorResponse.Agent.creator": x.Creator = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentsByCreatorResponse.Agent")) } - panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentsByCreatorResponse.Agent does not contain field %s", fd.FullName())) } } @@ -3266,19 +3330,19 @@ func (x *fastReflection_QueryAgentsResponse_Agent) Clear(fd protoreflect.FieldDe // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryAgentsResponse_Agent) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryAgentsByCreatorResponse_Agent) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent.address": + case "andromeda.escrow.v1alpha1.QueryAgentsByCreatorResponse.Agent.address": value := x.Address return protoreflect.ValueOfString(value) - case "andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent.creator": + case "andromeda.escrow.v1alpha1.QueryAgentsByCreatorResponse.Agent.creator": value := x.Creator return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentsByCreatorResponse.Agent")) } - panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentsByCreatorResponse.Agent does not contain field %s", descriptor.FullName())) } } @@ -3292,17 +3356,17 @@ func (x *fastReflection_QueryAgentsResponse_Agent) Get(descriptor protoreflect.F // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAgentsResponse_Agent) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryAgentsByCreatorResponse_Agent) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent.address": + case "andromeda.escrow.v1alpha1.QueryAgentsByCreatorResponse.Agent.address": x.Address = value.Interface().(string) - case "andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent.creator": + case "andromeda.escrow.v1alpha1.QueryAgentsByCreatorResponse.Agent.creator": x.Creator = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentsByCreatorResponse.Agent")) } - panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentsByCreatorResponse.Agent does not contain field %s", fd.FullName())) } } @@ -3316,44 +3380,44 @@ func (x *fastReflection_QueryAgentsResponse_Agent) Set(fd protoreflect.FieldDesc // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAgentsResponse_Agent) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryAgentsByCreatorResponse_Agent) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent.address": - panic(fmt.Errorf("field address of message andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent is not mutable")) - case "andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent.creator": - panic(fmt.Errorf("field creator of message andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent is not mutable")) + case "andromeda.escrow.v1alpha1.QueryAgentsByCreatorResponse.Agent.address": + panic(fmt.Errorf("field address of message andromeda.escrow.v1alpha1.QueryAgentsByCreatorResponse.Agent is not mutable")) + case "andromeda.escrow.v1alpha1.QueryAgentsByCreatorResponse.Agent.creator": + panic(fmt.Errorf("field creator of message andromeda.escrow.v1alpha1.QueryAgentsByCreatorResponse.Agent is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentsByCreatorResponse.Agent")) } - panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentsByCreatorResponse.Agent does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryAgentsResponse_Agent) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryAgentsByCreatorResponse_Agent) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent.address": + case "andromeda.escrow.v1alpha1.QueryAgentsByCreatorResponse.Agent.address": return protoreflect.ValueOfString("") - case "andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent.creator": + case "andromeda.escrow.v1alpha1.QueryAgentsByCreatorResponse.Agent.creator": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentsByCreatorResponse.Agent")) } - panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentsByCreatorResponse.Agent does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryAgentsResponse_Agent) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryAgentsByCreatorResponse_Agent) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in andromeda.escrow.v1alpha1.QueryAgentsByCreatorResponse.Agent", d.FullName())) } panic("unreachable") } @@ -3361,7 +3425,7 @@ func (x *fastReflection_QueryAgentsResponse_Agent) WhichOneof(d protoreflect.One // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryAgentsResponse_Agent) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryAgentsByCreatorResponse_Agent) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -3372,7 +3436,7 @@ func (x *fastReflection_QueryAgentsResponse_Agent) GetUnknown() protoreflect.Raw // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAgentsResponse_Agent) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryAgentsByCreatorResponse_Agent) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -3384,7 +3448,7 @@ func (x *fastReflection_QueryAgentsResponse_Agent) SetUnknown(fields protoreflec // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryAgentsResponse_Agent) IsValid() bool { +func (x *fastReflection_QueryAgentsByCreatorResponse_Agent) IsValid() bool { return x != nil } @@ -3394,9 +3458,9 @@ func (x *fastReflection_QueryAgentsResponse_Agent) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryAgentsResponse_Agent) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryAgentsByCreatorResponse_Agent) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryAgentsResponse_Agent) + x := input.Message.Interface().(*QueryAgentsByCreatorResponse_Agent) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3426,7 +3490,7 @@ func (x *fastReflection_QueryAgentsResponse_Agent) ProtoMethods() *protoiface.Me } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryAgentsResponse_Agent) + x := input.Message.Interface().(*QueryAgentsByCreatorResponse_Agent) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3470,7 +3534,7 @@ func (x *fastReflection_QueryAgentsResponse_Agent) ProtoMethods() *protoiface.Me }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryAgentsResponse_Agent) + x := input.Message.Interface().(*QueryAgentsByCreatorResponse_Agent) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3502,10 +3566,10 @@ func (x *fastReflection_QueryAgentsResponse_Agent) ProtoMethods() *protoiface.Me fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAgentsResponse_Agent: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAgentsByCreatorResponse_Agent: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAgentsResponse_Agent: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAgentsByCreatorResponse_Agent: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -3608,25 +3672,25 @@ func (x *fastReflection_QueryAgentsResponse_Agent) ProtoMethods() *protoiface.Me } var ( - md_QueryProposalRequest protoreflect.MessageDescriptor - fd_QueryProposalRequest_agent protoreflect.FieldDescriptor + md_QueryAgentsRequest protoreflect.MessageDescriptor + fd_QueryAgentsRequest_pagination protoreflect.FieldDescriptor ) func init() { file_andromeda_escrow_v1alpha1_query_proto_init() - md_QueryProposalRequest = File_andromeda_escrow_v1alpha1_query_proto.Messages().ByName("QueryProposalRequest") - fd_QueryProposalRequest_agent = md_QueryProposalRequest.Fields().ByName("agent") + md_QueryAgentsRequest = File_andromeda_escrow_v1alpha1_query_proto.Messages().ByName("QueryAgentsRequest") + fd_QueryAgentsRequest_pagination = md_QueryAgentsRequest.Fields().ByName("pagination") } -var _ protoreflect.Message = (*fastReflection_QueryProposalRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryAgentsRequest)(nil) -type fastReflection_QueryProposalRequest QueryProposalRequest +type fastReflection_QueryAgentsRequest QueryAgentsRequest -func (x *QueryProposalRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryProposalRequest)(x) +func (x *QueryAgentsRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryAgentsRequest)(x) } -func (x *QueryProposalRequest) slowProtoReflect() protoreflect.Message { +func (x *QueryAgentsRequest) slowProtoReflect() protoreflect.Message { mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -3638,43 +3702,43 @@ func (x *QueryProposalRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryProposalRequest_messageType fastReflection_QueryProposalRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryProposalRequest_messageType{} +var _fastReflection_QueryAgentsRequest_messageType fastReflection_QueryAgentsRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryAgentsRequest_messageType{} -type fastReflection_QueryProposalRequest_messageType struct{} +type fastReflection_QueryAgentsRequest_messageType struct{} -func (x fastReflection_QueryProposalRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryProposalRequest)(nil) +func (x fastReflection_QueryAgentsRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryAgentsRequest)(nil) } -func (x fastReflection_QueryProposalRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryProposalRequest) +func (x fastReflection_QueryAgentsRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryAgentsRequest) } -func (x fastReflection_QueryProposalRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryProposalRequest +func (x fastReflection_QueryAgentsRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAgentsRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryProposalRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryProposalRequest +func (x *fastReflection_QueryAgentsRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAgentsRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryProposalRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryProposalRequest_messageType +func (x *fastReflection_QueryAgentsRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryAgentsRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryProposalRequest) New() protoreflect.Message { - return new(fastReflection_QueryProposalRequest) +func (x *fastReflection_QueryAgentsRequest) New() protoreflect.Message { + return new(fastReflection_QueryAgentsRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryProposalRequest) Interface() protoreflect.ProtoMessage { - return (*QueryProposalRequest)(x) +func (x *fastReflection_QueryAgentsRequest) Interface() protoreflect.ProtoMessage { + return (*QueryAgentsRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -3682,10 +3746,10 @@ func (x *fastReflection_QueryProposalRequest) Interface() protoreflect.ProtoMess // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryProposalRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Agent != "" { - value := protoreflect.ValueOfString(x.Agent) - if !f(fd_QueryProposalRequest_agent, value) { +func (x *fastReflection_QueryAgentsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryAgentsRequest_pagination, value) { return } } @@ -3702,15 +3766,15 @@ func (x *fastReflection_QueryProposalRequest) Range(f func(protoreflect.FieldDes // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryProposalRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryAgentsRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.QueryProposalRequest.agent": - return x.Agent != "" + case "andromeda.escrow.v1alpha1.QueryAgentsRequest.pagination": + return x.Pagination != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentsRequest")) } - panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentsRequest does not contain field %s", fd.FullName())) } } @@ -3720,15 +3784,15 @@ func (x *fastReflection_QueryProposalRequest) Has(fd protoreflect.FieldDescripto // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryProposalRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryAgentsRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.QueryProposalRequest.agent": - x.Agent = "" + case "andromeda.escrow.v1alpha1.QueryAgentsRequest.pagination": + x.Pagination = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentsRequest")) } - panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentsRequest does not contain field %s", fd.FullName())) } } @@ -3738,16 +3802,16 @@ func (x *fastReflection_QueryProposalRequest) Clear(fd protoreflect.FieldDescrip // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryProposalRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryAgentsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "andromeda.escrow.v1alpha1.QueryProposalRequest.agent": - value := x.Agent - return protoreflect.ValueOfString(value) + case "andromeda.escrow.v1alpha1.QueryAgentsRequest.pagination": + value := x.Pagination + return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentsRequest")) } - panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentsRequest does not contain field %s", descriptor.FullName())) } } @@ -3761,15 +3825,15 @@ func (x *fastReflection_QueryProposalRequest) Get(descriptor protoreflect.FieldD // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryProposalRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryAgentsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.QueryProposalRequest.agent": - x.Agent = value.Interface().(string) + case "andromeda.escrow.v1alpha1.QueryAgentsRequest.pagination": + x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentsRequest")) } - panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentsRequest does not contain field %s", fd.FullName())) } } @@ -3783,40 +3847,44 @@ func (x *fastReflection_QueryProposalRequest) Set(fd protoreflect.FieldDescripto // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryProposalRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryAgentsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.QueryProposalRequest.agent": - panic(fmt.Errorf("field agent of message andromeda.escrow.v1alpha1.QueryProposalRequest is not mutable")) + case "andromeda.escrow.v1alpha1.QueryAgentsRequest.pagination": + if x.Pagination == nil { + x.Pagination = new(v1beta1.PageRequest) + } + return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentsRequest")) } - panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentsRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryProposalRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryAgentsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.QueryProposalRequest.agent": - return protoreflect.ValueOfString("") + case "andromeda.escrow.v1alpha1.QueryAgentsRequest.pagination": + m := new(v1beta1.PageRequest) + return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentsRequest")) } - panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentsRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryProposalRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryAgentsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in andromeda.escrow.v1alpha1.QueryProposalRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in andromeda.escrow.v1alpha1.QueryAgentsRequest", d.FullName())) } panic("unreachable") } @@ -3824,7 +3892,7 @@ func (x *fastReflection_QueryProposalRequest) WhichOneof(d protoreflect.OneofDes // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryProposalRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryAgentsRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -3835,7 +3903,7 @@ func (x *fastReflection_QueryProposalRequest) GetUnknown() protoreflect.RawField // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryProposalRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryAgentsRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -3847,7 +3915,7 @@ func (x *fastReflection_QueryProposalRequest) SetUnknown(fields protoreflect.Raw // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryProposalRequest) IsValid() bool { +func (x *fastReflection_QueryAgentsRequest) IsValid() bool { return x != nil } @@ -3857,9 +3925,9 @@ func (x *fastReflection_QueryProposalRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryProposalRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryAgentsRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryProposalRequest) + x := input.Message.Interface().(*QueryAgentsRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3871,8 +3939,8 @@ func (x *fastReflection_QueryProposalRequest) ProtoMethods() *protoiface.Methods var n int var l int _ = l - l = len(x.Agent) - if l > 0 { + if x.Pagination != nil { + l = options.Size(x.Pagination) n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { @@ -3885,7 +3953,7 @@ func (x *fastReflection_QueryProposalRequest) ProtoMethods() *protoiface.Methods } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryProposalRequest) + x := input.Message.Interface().(*QueryAgentsRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3904,10 +3972,17 @@ func (x *fastReflection_QueryProposalRequest) ProtoMethods() *protoiface.Methods i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Agent) > 0 { - i -= len(x.Agent) - copy(dAtA[i:], x.Agent) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Agent))) + if x.Pagination != nil { + encoded, err := options.Marshal(x.Pagination) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- dAtA[i] = 0xa } @@ -3922,7 +3997,7 @@ func (x *fastReflection_QueryProposalRequest) ProtoMethods() *protoiface.Methods }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryProposalRequest) + x := input.Message.Interface().(*QueryAgentsRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3954,17 +4029,17 @@ func (x *fastReflection_QueryProposalRequest) ProtoMethods() *protoiface.Methods fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryProposalRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAgentsRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryProposalRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAgentsRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Agent", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -3974,23 +4049,27 @@ func (x *fastReflection_QueryProposalRequest) ProtoMethods() *protoiface.Methods } 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Agent = string(dAtA[iNdEx:postIndex]) + if x.Pagination == nil { + x.Pagination = &v1beta1.PageRequest{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } iNdEx = postIndex default: iNdEx = preIndex @@ -4027,74 +4106,3362 @@ func (x *fastReflection_QueryProposalRequest) ProtoMethods() *protoiface.Methods } } -var ( - md_QueryProposalResponse protoreflect.MessageDescriptor - fd_QueryProposalResponse_proposal protoreflect.FieldDescriptor -) +var _ protoreflect.List = (*_QueryAgentsResponse_1_list)(nil) -func init() { - file_andromeda_escrow_v1alpha1_query_proto_init() - md_QueryProposalResponse = File_andromeda_escrow_v1alpha1_query_proto.Messages().ByName("QueryProposalResponse") - fd_QueryProposalResponse_proposal = md_QueryProposalResponse.Fields().ByName("proposal") +type _QueryAgentsResponse_1_list struct { + list *[]*QueryAgentsResponse_Agent } -var _ protoreflect.Message = (*fastReflection_QueryProposalResponse)(nil) - -type fastReflection_QueryProposalResponse QueryProposalResponse +func (x *_QueryAgentsResponse_1_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} -func (x *QueryProposalResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryProposalResponse)(x) +func (x *_QueryAgentsResponse_1_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } -func (x *QueryProposalResponse) slowProtoReflect() protoreflect.Message { - mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (x *_QueryAgentsResponse_1_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*QueryAgentsResponse_Agent) + (*x.list)[i] = concreteValue +} + +func (x *_QueryAgentsResponse_1_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*QueryAgentsResponse_Agent) + *x.list = append(*x.list, concreteValue) +} + +func (x *_QueryAgentsResponse_1_list) AppendMutable() protoreflect.Value { + v := new(QueryAgentsResponse_Agent) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryAgentsResponse_1_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_QueryAgentsResponse_1_list) NewElement() protoreflect.Value { + v := new(QueryAgentsResponse_Agent) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryAgentsResponse_1_list) IsValid() bool { + return x.list != nil +} + +var ( + md_QueryAgentsResponse protoreflect.MessageDescriptor + fd_QueryAgentsResponse_agents protoreflect.FieldDescriptor + fd_QueryAgentsResponse_pagination protoreflect.FieldDescriptor +) + +func init() { + file_andromeda_escrow_v1alpha1_query_proto_init() + md_QueryAgentsResponse = File_andromeda_escrow_v1alpha1_query_proto.Messages().ByName("QueryAgentsResponse") + fd_QueryAgentsResponse_agents = md_QueryAgentsResponse.Fields().ByName("agents") + fd_QueryAgentsResponse_pagination = md_QueryAgentsResponse.Fields().ByName("pagination") +} + +var _ protoreflect.Message = (*fastReflection_QueryAgentsResponse)(nil) + +type fastReflection_QueryAgentsResponse QueryAgentsResponse + +func (x *QueryAgentsResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryAgentsResponse)(x) +} + +func (x *QueryAgentsResponse) slowProtoReflect() protoreflect.Message { + mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_QueryAgentsResponse_messageType fastReflection_QueryAgentsResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryAgentsResponse_messageType{} + +type fastReflection_QueryAgentsResponse_messageType struct{} + +func (x fastReflection_QueryAgentsResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryAgentsResponse)(nil) +} +func (x fastReflection_QueryAgentsResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryAgentsResponse) +} +func (x fastReflection_QueryAgentsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAgentsResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryAgentsResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAgentsResponse +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_QueryAgentsResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryAgentsResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryAgentsResponse) New() protoreflect.Message { + return new(fastReflection_QueryAgentsResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryAgentsResponse) Interface() protoreflect.ProtoMessage { + return (*QueryAgentsResponse)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_QueryAgentsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.Agents) != 0 { + value := protoreflect.ValueOfList(&_QueryAgentsResponse_1_list{list: &x.Agents}) + if !f(fd_QueryAgentsResponse_agents, value) { + return + } + } + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryAgentsResponse_pagination, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_QueryAgentsResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryAgentsResponse.agents": + return len(x.Agents) != 0 + case "andromeda.escrow.v1alpha1.QueryAgentsResponse.pagination": + return x.Pagination != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentsResponse")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentsResponse does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryAgentsResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryAgentsResponse.agents": + x.Agents = nil + case "andromeda.escrow.v1alpha1.QueryAgentsResponse.pagination": + x.Pagination = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentsResponse")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentsResponse does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_QueryAgentsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "andromeda.escrow.v1alpha1.QueryAgentsResponse.agents": + if len(x.Agents) == 0 { + return protoreflect.ValueOfList(&_QueryAgentsResponse_1_list{}) + } + listValue := &_QueryAgentsResponse_1_list{list: &x.Agents} + return protoreflect.ValueOfList(listValue) + case "andromeda.escrow.v1alpha1.QueryAgentsResponse.pagination": + value := x.Pagination + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentsResponse")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentsResponse does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryAgentsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryAgentsResponse.agents": + lv := value.List() + clv := lv.(*_QueryAgentsResponse_1_list) + x.Agents = *clv.list + case "andromeda.escrow.v1alpha1.QueryAgentsResponse.pagination": + x.Pagination = value.Message().Interface().(*v1beta1.PageResponse) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentsResponse")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentsResponse does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryAgentsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryAgentsResponse.agents": + if x.Agents == nil { + x.Agents = []*QueryAgentsResponse_Agent{} + } + value := &_QueryAgentsResponse_1_list{list: &x.Agents} + return protoreflect.ValueOfList(value) + case "andromeda.escrow.v1alpha1.QueryAgentsResponse.pagination": + if x.Pagination == nil { + x.Pagination = new(v1beta1.PageResponse) + } + return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentsResponse")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentsResponse does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_QueryAgentsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryAgentsResponse.agents": + list := []*QueryAgentsResponse_Agent{} + return protoreflect.ValueOfList(&_QueryAgentsResponse_1_list{list: &list}) + case "andromeda.escrow.v1alpha1.QueryAgentsResponse.pagination": + m := new(v1beta1.PageResponse) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentsResponse")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentsResponse does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_QueryAgentsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in andromeda.escrow.v1alpha1.QueryAgentsResponse", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_QueryAgentsResponse) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryAgentsResponse) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_QueryAgentsResponse) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_QueryAgentsResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryAgentsResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if len(x.Agents) > 0 { + for _, e := range x.Agents { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if x.Pagination != nil { + l = options.Size(x.Pagination) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*QueryAgentsResponse) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if x.Pagination != nil { + encoded, err := options.Marshal(x.Pagination) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x12 + } + if len(x.Agents) > 0 { + for iNdEx := len(x.Agents) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Agents[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0xa + } + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*QueryAgentsResponse) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAgentsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAgentsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Agents", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Agents = append(x.Agents, &QueryAgentsResponse_Agent{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Agents[len(x.Agents)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.Pagination == nil { + x.Pagination = &v1beta1.PageResponse{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_QueryAgentsResponse_Agent protoreflect.MessageDescriptor + fd_QueryAgentsResponse_Agent_address protoreflect.FieldDescriptor + fd_QueryAgentsResponse_Agent_creator protoreflect.FieldDescriptor +) + +func init() { + file_andromeda_escrow_v1alpha1_query_proto_init() + md_QueryAgentsResponse_Agent = File_andromeda_escrow_v1alpha1_query_proto.Messages().ByName("QueryAgentsResponse").Messages().ByName("Agent") + fd_QueryAgentsResponse_Agent_address = md_QueryAgentsResponse_Agent.Fields().ByName("address") + fd_QueryAgentsResponse_Agent_creator = md_QueryAgentsResponse_Agent.Fields().ByName("creator") +} + +var _ protoreflect.Message = (*fastReflection_QueryAgentsResponse_Agent)(nil) + +type fastReflection_QueryAgentsResponse_Agent QueryAgentsResponse_Agent + +func (x *QueryAgentsResponse_Agent) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryAgentsResponse_Agent)(x) +} + +func (x *QueryAgentsResponse_Agent) slowProtoReflect() protoreflect.Message { + mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[16] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_QueryAgentsResponse_Agent_messageType fastReflection_QueryAgentsResponse_Agent_messageType +var _ protoreflect.MessageType = fastReflection_QueryAgentsResponse_Agent_messageType{} + +type fastReflection_QueryAgentsResponse_Agent_messageType struct{} + +func (x fastReflection_QueryAgentsResponse_Agent_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryAgentsResponse_Agent)(nil) +} +func (x fastReflection_QueryAgentsResponse_Agent_messageType) New() protoreflect.Message { + return new(fastReflection_QueryAgentsResponse_Agent) +} +func (x fastReflection_QueryAgentsResponse_Agent_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAgentsResponse_Agent +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryAgentsResponse_Agent) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAgentsResponse_Agent +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_QueryAgentsResponse_Agent) Type() protoreflect.MessageType { + return _fastReflection_QueryAgentsResponse_Agent_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryAgentsResponse_Agent) New() protoreflect.Message { + return new(fastReflection_QueryAgentsResponse_Agent) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryAgentsResponse_Agent) Interface() protoreflect.ProtoMessage { + return (*QueryAgentsResponse_Agent)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_QueryAgentsResponse_Agent) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Address != "" { + value := protoreflect.ValueOfString(x.Address) + if !f(fd_QueryAgentsResponse_Agent_address, value) { + return + } + } + if x.Creator != "" { + value := protoreflect.ValueOfString(x.Creator) + if !f(fd_QueryAgentsResponse_Agent_creator, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_QueryAgentsResponse_Agent) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent.address": + return x.Address != "" + case "andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent.creator": + return x.Creator != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryAgentsResponse_Agent) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent.address": + x.Address = "" + case "andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent.creator": + x.Creator = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_QueryAgentsResponse_Agent) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent.address": + value := x.Address + return protoreflect.ValueOfString(value) + case "andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent.creator": + value := x.Creator + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryAgentsResponse_Agent) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent.address": + x.Address = value.Interface().(string) + case "andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent.creator": + x.Creator = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryAgentsResponse_Agent) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent.address": + panic(fmt.Errorf("field address of message andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent is not mutable")) + case "andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent.creator": + panic(fmt.Errorf("field creator of message andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_QueryAgentsResponse_Agent) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent.address": + return protoreflect.ValueOfString("") + case "andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent.creator": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_QueryAgentsResponse_Agent) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_QueryAgentsResponse_Agent) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryAgentsResponse_Agent) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_QueryAgentsResponse_Agent) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_QueryAgentsResponse_Agent) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryAgentsResponse_Agent) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + l = len(x.Address) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Creator) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*QueryAgentsResponse_Agent) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.Creator) > 0 { + i -= len(x.Creator) + copy(dAtA[i:], x.Creator) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) + i-- + dAtA[i] = 0x12 + } + if len(x.Address) > 0 { + i -= len(x.Address) + copy(dAtA[i:], x.Address) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*QueryAgentsResponse_Agent) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAgentsResponse_Agent: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAgentsResponse_Agent: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_QueryProposalRequest protoreflect.MessageDescriptor + fd_QueryProposalRequest_agent protoreflect.FieldDescriptor +) + +func init() { + file_andromeda_escrow_v1alpha1_query_proto_init() + md_QueryProposalRequest = File_andromeda_escrow_v1alpha1_query_proto.Messages().ByName("QueryProposalRequest") + fd_QueryProposalRequest_agent = md_QueryProposalRequest.Fields().ByName("agent") +} + +var _ protoreflect.Message = (*fastReflection_QueryProposalRequest)(nil) + +type fastReflection_QueryProposalRequest QueryProposalRequest + +func (x *QueryProposalRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryProposalRequest)(x) +} + +func (x *QueryProposalRequest) slowProtoReflect() protoreflect.Message { + mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_QueryProposalRequest_messageType fastReflection_QueryProposalRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryProposalRequest_messageType{} + +type fastReflection_QueryProposalRequest_messageType struct{} + +func (x fastReflection_QueryProposalRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryProposalRequest)(nil) +} +func (x fastReflection_QueryProposalRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryProposalRequest) +} +func (x fastReflection_QueryProposalRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryProposalRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryProposalRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryProposalRequest +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_QueryProposalRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryProposalRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryProposalRequest) New() protoreflect.Message { + return new(fastReflection_QueryProposalRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryProposalRequest) Interface() protoreflect.ProtoMessage { + return (*QueryProposalRequest)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_QueryProposalRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Agent != "" { + value := protoreflect.ValueOfString(x.Agent) + if !f(fd_QueryProposalRequest_agent, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_QueryProposalRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryProposalRequest.agent": + return x.Agent != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalRequest")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalRequest does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryProposalRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryProposalRequest.agent": + x.Agent = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalRequest")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalRequest does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_QueryProposalRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "andromeda.escrow.v1alpha1.QueryProposalRequest.agent": + value := x.Agent + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalRequest")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalRequest does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryProposalRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryProposalRequest.agent": + x.Agent = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalRequest")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalRequest does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryProposalRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryProposalRequest.agent": + panic(fmt.Errorf("field agent of message andromeda.escrow.v1alpha1.QueryProposalRequest is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalRequest")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalRequest does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_QueryProposalRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryProposalRequest.agent": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalRequest")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalRequest does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_QueryProposalRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in andromeda.escrow.v1alpha1.QueryProposalRequest", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_QueryProposalRequest) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryProposalRequest) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_QueryProposalRequest) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_QueryProposalRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryProposalRequest) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + l = len(x.Agent) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*QueryProposalRequest) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.Agent) > 0 { + i -= len(x.Agent) + copy(dAtA[i:], x.Agent) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Agent))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*QueryProposalRequest) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryProposalRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryProposalRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Agent", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Agent = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_QueryProposalResponse protoreflect.MessageDescriptor + fd_QueryProposalResponse_proposal protoreflect.FieldDescriptor +) + +func init() { + file_andromeda_escrow_v1alpha1_query_proto_init() + md_QueryProposalResponse = File_andromeda_escrow_v1alpha1_query_proto.Messages().ByName("QueryProposalResponse") + fd_QueryProposalResponse_proposal = md_QueryProposalResponse.Fields().ByName("proposal") +} + +var _ protoreflect.Message = (*fastReflection_QueryProposalResponse)(nil) + +type fastReflection_QueryProposalResponse QueryProposalResponse + +func (x *QueryProposalResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryProposalResponse)(x) +} + +func (x *QueryProposalResponse) slowProtoReflect() protoreflect.Message { + mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } var _fastReflection_QueryProposalResponse_messageType fastReflection_QueryProposalResponse_messageType var _ protoreflect.MessageType = fastReflection_QueryProposalResponse_messageType{} -type fastReflection_QueryProposalResponse_messageType struct{} +type fastReflection_QueryProposalResponse_messageType struct{} + +func (x fastReflection_QueryProposalResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryProposalResponse)(nil) +} +func (x fastReflection_QueryProposalResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryProposalResponse) +} +func (x fastReflection_QueryProposalResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryProposalResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryProposalResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryProposalResponse +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_QueryProposalResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryProposalResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryProposalResponse) New() protoreflect.Message { + return new(fastReflection_QueryProposalResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryProposalResponse) Interface() protoreflect.ProtoMessage { + return (*QueryProposalResponse)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_QueryProposalResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Proposal != nil { + value := protoreflect.ValueOfMessage(x.Proposal.ProtoReflect()) + if !f(fd_QueryProposalResponse_proposal, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_QueryProposalResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryProposalResponse.proposal": + return x.Proposal != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalResponse")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalResponse does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryProposalResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryProposalResponse.proposal": + x.Proposal = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalResponse")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalResponse does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_QueryProposalResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "andromeda.escrow.v1alpha1.QueryProposalResponse.proposal": + value := x.Proposal + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalResponse")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalResponse does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryProposalResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryProposalResponse.proposal": + x.Proposal = value.Message().Interface().(*QueryProposalResponse_Proposal) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalResponse")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalResponse does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryProposalResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryProposalResponse.proposal": + if x.Proposal == nil { + x.Proposal = new(QueryProposalResponse_Proposal) + } + return protoreflect.ValueOfMessage(x.Proposal.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalResponse")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalResponse does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_QueryProposalResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryProposalResponse.proposal": + m := new(QueryProposalResponse_Proposal) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalResponse")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalResponse does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_QueryProposalResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in andromeda.escrow.v1alpha1.QueryProposalResponse", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_QueryProposalResponse) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryProposalResponse) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_QueryProposalResponse) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_QueryProposalResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryProposalResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.Proposal != nil { + l = options.Size(x.Proposal) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*QueryProposalResponse) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if x.Proposal != nil { + encoded, err := options.Marshal(x.Proposal) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*QueryProposalResponse) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryProposalResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryProposalResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Proposal", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.Proposal == nil { + x.Proposal = &QueryProposalResponse_Proposal{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Proposal); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var _ protoreflect.List = (*_QueryProposalResponse_Proposal_3_list)(nil) + +type _QueryProposalResponse_Proposal_3_list struct { + list *[]*anypb.Any +} + +func (x *_QueryProposalResponse_Proposal_3_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_QueryProposalResponse_Proposal_3_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_QueryProposalResponse_Proposal_3_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*anypb.Any) + (*x.list)[i] = concreteValue +} + +func (x *_QueryProposalResponse_Proposal_3_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*anypb.Any) + *x.list = append(*x.list, concreteValue) +} + +func (x *_QueryProposalResponse_Proposal_3_list) AppendMutable() protoreflect.Value { + v := new(anypb.Any) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryProposalResponse_Proposal_3_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_QueryProposalResponse_Proposal_3_list) NewElement() protoreflect.Value { + v := new(anypb.Any) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryProposalResponse_Proposal_3_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_QueryProposalResponse_Proposal_4_list)(nil) + +type _QueryProposalResponse_Proposal_4_list struct { + list *[]*anypb.Any +} + +func (x *_QueryProposalResponse_Proposal_4_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_QueryProposalResponse_Proposal_4_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_QueryProposalResponse_Proposal_4_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*anypb.Any) + (*x.list)[i] = concreteValue +} + +func (x *_QueryProposalResponse_Proposal_4_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*anypb.Any) + *x.list = append(*x.list, concreteValue) +} + +func (x *_QueryProposalResponse_Proposal_4_list) AppendMutable() protoreflect.Value { + v := new(anypb.Any) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryProposalResponse_Proposal_4_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_QueryProposalResponse_Proposal_4_list) NewElement() protoreflect.Value { + v := new(anypb.Any) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryProposalResponse_Proposal_4_list) IsValid() bool { + return x.list != nil +} + +var ( + md_QueryProposalResponse_Proposal protoreflect.MessageDescriptor + fd_QueryProposalResponse_Proposal_agent protoreflect.FieldDescriptor + fd_QueryProposalResponse_Proposal_proposer protoreflect.FieldDescriptor + fd_QueryProposalResponse_Proposal_pre_actions protoreflect.FieldDescriptor + fd_QueryProposalResponse_Proposal_post_actions protoreflect.FieldDescriptor + fd_QueryProposalResponse_Proposal_metadata protoreflect.FieldDescriptor +) + +func init() { + file_andromeda_escrow_v1alpha1_query_proto_init() + md_QueryProposalResponse_Proposal = File_andromeda_escrow_v1alpha1_query_proto.Messages().ByName("QueryProposalResponse").Messages().ByName("Proposal") + fd_QueryProposalResponse_Proposal_agent = md_QueryProposalResponse_Proposal.Fields().ByName("agent") + fd_QueryProposalResponse_Proposal_proposer = md_QueryProposalResponse_Proposal.Fields().ByName("proposer") + fd_QueryProposalResponse_Proposal_pre_actions = md_QueryProposalResponse_Proposal.Fields().ByName("pre_actions") + fd_QueryProposalResponse_Proposal_post_actions = md_QueryProposalResponse_Proposal.Fields().ByName("post_actions") + fd_QueryProposalResponse_Proposal_metadata = md_QueryProposalResponse_Proposal.Fields().ByName("metadata") +} + +var _ protoreflect.Message = (*fastReflection_QueryProposalResponse_Proposal)(nil) + +type fastReflection_QueryProposalResponse_Proposal QueryProposalResponse_Proposal + +func (x *QueryProposalResponse_Proposal) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryProposalResponse_Proposal)(x) +} + +func (x *QueryProposalResponse_Proposal) slowProtoReflect() protoreflect.Message { + mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[17] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_QueryProposalResponse_Proposal_messageType fastReflection_QueryProposalResponse_Proposal_messageType +var _ protoreflect.MessageType = fastReflection_QueryProposalResponse_Proposal_messageType{} + +type fastReflection_QueryProposalResponse_Proposal_messageType struct{} + +func (x fastReflection_QueryProposalResponse_Proposal_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryProposalResponse_Proposal)(nil) +} +func (x fastReflection_QueryProposalResponse_Proposal_messageType) New() protoreflect.Message { + return new(fastReflection_QueryProposalResponse_Proposal) +} +func (x fastReflection_QueryProposalResponse_Proposal_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryProposalResponse_Proposal +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryProposalResponse_Proposal) Descriptor() protoreflect.MessageDescriptor { + return md_QueryProposalResponse_Proposal +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_QueryProposalResponse_Proposal) Type() protoreflect.MessageType { + return _fastReflection_QueryProposalResponse_Proposal_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryProposalResponse_Proposal) New() protoreflect.Message { + return new(fastReflection_QueryProposalResponse_Proposal) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryProposalResponse_Proposal) Interface() protoreflect.ProtoMessage { + return (*QueryProposalResponse_Proposal)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_QueryProposalResponse_Proposal) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Agent != "" { + value := protoreflect.ValueOfString(x.Agent) + if !f(fd_QueryProposalResponse_Proposal_agent, value) { + return + } + } + if x.Proposer != "" { + value := protoreflect.ValueOfString(x.Proposer) + if !f(fd_QueryProposalResponse_Proposal_proposer, value) { + return + } + } + if len(x.PreActions) != 0 { + value := protoreflect.ValueOfList(&_QueryProposalResponse_Proposal_3_list{list: &x.PreActions}) + if !f(fd_QueryProposalResponse_Proposal_pre_actions, value) { + return + } + } + if len(x.PostActions) != 0 { + value := protoreflect.ValueOfList(&_QueryProposalResponse_Proposal_4_list{list: &x.PostActions}) + if !f(fd_QueryProposalResponse_Proposal_post_actions, value) { + return + } + } + if x.Metadata != "" { + value := protoreflect.ValueOfString(x.Metadata) + if !f(fd_QueryProposalResponse_Proposal_metadata, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_QueryProposalResponse_Proposal) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.agent": + return x.Agent != "" + case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.proposer": + return x.Proposer != "" + case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.pre_actions": + return len(x.PreActions) != 0 + case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.post_actions": + return len(x.PostActions) != 0 + case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.metadata": + return x.Metadata != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryProposalResponse_Proposal) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.agent": + x.Agent = "" + case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.proposer": + x.Proposer = "" + case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.pre_actions": + x.PreActions = nil + case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.post_actions": + x.PostActions = nil + case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.metadata": + x.Metadata = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_QueryProposalResponse_Proposal) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.agent": + value := x.Agent + return protoreflect.ValueOfString(value) + case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.proposer": + value := x.Proposer + return protoreflect.ValueOfString(value) + case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.pre_actions": + if len(x.PreActions) == 0 { + return protoreflect.ValueOfList(&_QueryProposalResponse_Proposal_3_list{}) + } + listValue := &_QueryProposalResponse_Proposal_3_list{list: &x.PreActions} + return protoreflect.ValueOfList(listValue) + case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.post_actions": + if len(x.PostActions) == 0 { + return protoreflect.ValueOfList(&_QueryProposalResponse_Proposal_4_list{}) + } + listValue := &_QueryProposalResponse_Proposal_4_list{list: &x.PostActions} + return protoreflect.ValueOfList(listValue) + case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.metadata": + value := x.Metadata + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryProposalResponse_Proposal) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.agent": + x.Agent = value.Interface().(string) + case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.proposer": + x.Proposer = value.Interface().(string) + case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.pre_actions": + lv := value.List() + clv := lv.(*_QueryProposalResponse_Proposal_3_list) + x.PreActions = *clv.list + case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.post_actions": + lv := value.List() + clv := lv.(*_QueryProposalResponse_Proposal_4_list) + x.PostActions = *clv.list + case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.metadata": + x.Metadata = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryProposalResponse_Proposal) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.pre_actions": + if x.PreActions == nil { + x.PreActions = []*anypb.Any{} + } + value := &_QueryProposalResponse_Proposal_3_list{list: &x.PreActions} + return protoreflect.ValueOfList(value) + case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.post_actions": + if x.PostActions == nil { + x.PostActions = []*anypb.Any{} + } + value := &_QueryProposalResponse_Proposal_4_list{list: &x.PostActions} + return protoreflect.ValueOfList(value) + case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.agent": + panic(fmt.Errorf("field agent of message andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal is not mutable")) + case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.proposer": + panic(fmt.Errorf("field proposer of message andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal is not mutable")) + case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.metadata": + panic(fmt.Errorf("field metadata of message andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_QueryProposalResponse_Proposal) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.agent": + return protoreflect.ValueOfString("") + case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.proposer": + return protoreflect.ValueOfString("") + case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.pre_actions": + list := []*anypb.Any{} + return protoreflect.ValueOfList(&_QueryProposalResponse_Proposal_3_list{list: &list}) + case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.post_actions": + list := []*anypb.Any{} + return protoreflect.ValueOfList(&_QueryProposalResponse_Proposal_4_list{list: &list}) + case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.metadata": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_QueryProposalResponse_Proposal) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_QueryProposalResponse_Proposal) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryProposalResponse_Proposal) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_QueryProposalResponse_Proposal) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_QueryProposalResponse_Proposal) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryProposalResponse_Proposal) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + l = len(x.Agent) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Proposer) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if len(x.PreActions) > 0 { + for _, e := range x.PreActions { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if len(x.PostActions) > 0 { + for _, e := range x.PostActions { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + l = len(x.Metadata) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*QueryProposalResponse_Proposal) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.Metadata) > 0 { + i -= len(x.Metadata) + copy(dAtA[i:], x.Metadata) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Metadata))) + i-- + dAtA[i] = 0x2a + } + if len(x.PostActions) > 0 { + for iNdEx := len(x.PostActions) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.PostActions[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x22 + } + } + if len(x.PreActions) > 0 { + for iNdEx := len(x.PreActions) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.PreActions[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x1a + } + } + if len(x.Proposer) > 0 { + i -= len(x.Proposer) + copy(dAtA[i:], x.Proposer) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Proposer))) + i-- + dAtA[i] = 0x12 + } + if len(x.Agent) > 0 { + i -= len(x.Agent) + copy(dAtA[i:], x.Agent) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Agent))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*QueryProposalResponse_Proposal) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryProposalResponse_Proposal: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryProposalResponse_Proposal: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Agent", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Agent = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Proposer", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Proposer = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PreActions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.PreActions = append(x.PreActions, &anypb.Any{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.PreActions[len(x.PreActions)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PostActions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.PostActions = append(x.PostActions, &anypb.Any{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.PostActions[len(x.PostActions)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Metadata = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_QueryProposalsByProposerRequest protoreflect.MessageDescriptor + fd_QueryProposalsByProposerRequest_proposer protoreflect.FieldDescriptor + fd_QueryProposalsByProposerRequest_pagination protoreflect.FieldDescriptor +) + +func init() { + file_andromeda_escrow_v1alpha1_query_proto_init() + md_QueryProposalsByProposerRequest = File_andromeda_escrow_v1alpha1_query_proto.Messages().ByName("QueryProposalsByProposerRequest") + fd_QueryProposalsByProposerRequest_proposer = md_QueryProposalsByProposerRequest.Fields().ByName("proposer") + fd_QueryProposalsByProposerRequest_pagination = md_QueryProposalsByProposerRequest.Fields().ByName("pagination") +} + +var _ protoreflect.Message = (*fastReflection_QueryProposalsByProposerRequest)(nil) + +type fastReflection_QueryProposalsByProposerRequest QueryProposalsByProposerRequest + +func (x *QueryProposalsByProposerRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryProposalsByProposerRequest)(x) +} + +func (x *QueryProposalsByProposerRequest) slowProtoReflect() protoreflect.Message { + mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_QueryProposalsByProposerRequest_messageType fastReflection_QueryProposalsByProposerRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryProposalsByProposerRequest_messageType{} + +type fastReflection_QueryProposalsByProposerRequest_messageType struct{} + +func (x fastReflection_QueryProposalsByProposerRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryProposalsByProposerRequest)(nil) +} +func (x fastReflection_QueryProposalsByProposerRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryProposalsByProposerRequest) +} +func (x fastReflection_QueryProposalsByProposerRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryProposalsByProposerRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryProposalsByProposerRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryProposalsByProposerRequest +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_QueryProposalsByProposerRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryProposalsByProposerRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryProposalsByProposerRequest) New() protoreflect.Message { + return new(fastReflection_QueryProposalsByProposerRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryProposalsByProposerRequest) Interface() protoreflect.ProtoMessage { + return (*QueryProposalsByProposerRequest)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_QueryProposalsByProposerRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Proposer != "" { + value := protoreflect.ValueOfString(x.Proposer) + if !f(fd_QueryProposalsByProposerRequest_proposer, value) { + return + } + } + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryProposalsByProposerRequest_pagination, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_QueryProposalsByProposerRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryProposalsByProposerRequest.proposer": + return x.Proposer != "" + case "andromeda.escrow.v1alpha1.QueryProposalsByProposerRequest.pagination": + return x.Pagination != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalsByProposerRequest")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalsByProposerRequest does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryProposalsByProposerRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryProposalsByProposerRequest.proposer": + x.Proposer = "" + case "andromeda.escrow.v1alpha1.QueryProposalsByProposerRequest.pagination": + x.Pagination = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalsByProposerRequest")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalsByProposerRequest does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_QueryProposalsByProposerRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "andromeda.escrow.v1alpha1.QueryProposalsByProposerRequest.proposer": + value := x.Proposer + return protoreflect.ValueOfString(value) + case "andromeda.escrow.v1alpha1.QueryProposalsByProposerRequest.pagination": + value := x.Pagination + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalsByProposerRequest")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalsByProposerRequest does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryProposalsByProposerRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryProposalsByProposerRequest.proposer": + x.Proposer = value.Interface().(string) + case "andromeda.escrow.v1alpha1.QueryProposalsByProposerRequest.pagination": + x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalsByProposerRequest")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalsByProposerRequest does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryProposalsByProposerRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryProposalsByProposerRequest.pagination": + if x.Pagination == nil { + x.Pagination = new(v1beta1.PageRequest) + } + return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + case "andromeda.escrow.v1alpha1.QueryProposalsByProposerRequest.proposer": + panic(fmt.Errorf("field proposer of message andromeda.escrow.v1alpha1.QueryProposalsByProposerRequest is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalsByProposerRequest")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalsByProposerRequest does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_QueryProposalsByProposerRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "andromeda.escrow.v1alpha1.QueryProposalsByProposerRequest.proposer": + return protoreflect.ValueOfString("") + case "andromeda.escrow.v1alpha1.QueryProposalsByProposerRequest.pagination": + m := new(v1beta1.PageRequest) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalsByProposerRequest")) + } + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalsByProposerRequest does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_QueryProposalsByProposerRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in andromeda.escrow.v1alpha1.QueryProposalsByProposerRequest", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_QueryProposalsByProposerRequest) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryProposalsByProposerRequest) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_QueryProposalsByProposerRequest) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_QueryProposalsByProposerRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryProposalsByProposerRequest) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + l = len(x.Proposer) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Pagination != nil { + l = options.Size(x.Pagination) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*QueryProposalsByProposerRequest) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if x.Pagination != nil { + encoded, err := options.Marshal(x.Pagination) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x12 + } + if len(x.Proposer) > 0 { + i -= len(x.Proposer) + copy(dAtA[i:], x.Proposer) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Proposer))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*QueryProposalsByProposerRequest) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryProposalsByProposerRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryProposalsByProposerRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Proposer", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Proposer = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.Pagination == nil { + x.Pagination = &v1beta1.PageRequest{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var _ protoreflect.List = (*_QueryProposalsByProposerResponse_1_list)(nil) -func (x fastReflection_QueryProposalResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryProposalResponse)(nil) +type _QueryProposalsByProposerResponse_1_list struct { + list *[]*QueryProposalsByProposerResponse_Proposal } -func (x fastReflection_QueryProposalResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryProposalResponse) + +func (x *_QueryProposalsByProposerResponse_1_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) } -func (x fastReflection_QueryProposalResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryProposalResponse + +func (x *_QueryProposalsByProposerResponse_1_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_QueryProposalsByProposerResponse_1_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*QueryProposalsByProposerResponse_Proposal) + (*x.list)[i] = concreteValue +} + +func (x *_QueryProposalsByProposerResponse_1_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*QueryProposalsByProposerResponse_Proposal) + *x.list = append(*x.list, concreteValue) +} + +func (x *_QueryProposalsByProposerResponse_1_list) AppendMutable() protoreflect.Value { + v := new(QueryProposalsByProposerResponse_Proposal) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryProposalsByProposerResponse_1_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_QueryProposalsByProposerResponse_1_list) NewElement() protoreflect.Value { + v := new(QueryProposalsByProposerResponse_Proposal) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryProposalsByProposerResponse_1_list) IsValid() bool { + return x.list != nil +} + +var ( + md_QueryProposalsByProposerResponse protoreflect.MessageDescriptor + fd_QueryProposalsByProposerResponse_proposals protoreflect.FieldDescriptor + fd_QueryProposalsByProposerResponse_pagination protoreflect.FieldDescriptor +) + +func init() { + file_andromeda_escrow_v1alpha1_query_proto_init() + md_QueryProposalsByProposerResponse = File_andromeda_escrow_v1alpha1_query_proto.Messages().ByName("QueryProposalsByProposerResponse") + fd_QueryProposalsByProposerResponse_proposals = md_QueryProposalsByProposerResponse.Fields().ByName("proposals") + fd_QueryProposalsByProposerResponse_pagination = md_QueryProposalsByProposerResponse.Fields().ByName("pagination") +} + +var _ protoreflect.Message = (*fastReflection_QueryProposalsByProposerResponse)(nil) + +type fastReflection_QueryProposalsByProposerResponse QueryProposalsByProposerResponse + +func (x *QueryProposalsByProposerResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryProposalsByProposerResponse)(x) +} + +func (x *QueryProposalsByProposerResponse) slowProtoReflect() protoreflect.Message { + mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_QueryProposalsByProposerResponse_messageType fastReflection_QueryProposalsByProposerResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryProposalsByProposerResponse_messageType{} + +type fastReflection_QueryProposalsByProposerResponse_messageType struct{} + +func (x fastReflection_QueryProposalsByProposerResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryProposalsByProposerResponse)(nil) +} +func (x fastReflection_QueryProposalsByProposerResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryProposalsByProposerResponse) +} +func (x fastReflection_QueryProposalsByProposerResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryProposalsByProposerResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryProposalResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryProposalResponse +func (x *fastReflection_QueryProposalsByProposerResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryProposalsByProposerResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryProposalResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryProposalResponse_messageType +func (x *fastReflection_QueryProposalsByProposerResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryProposalsByProposerResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryProposalResponse) New() protoreflect.Message { - return new(fastReflection_QueryProposalResponse) +func (x *fastReflection_QueryProposalsByProposerResponse) New() protoreflect.Message { + return new(fastReflection_QueryProposalsByProposerResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryProposalResponse) Interface() protoreflect.ProtoMessage { - return (*QueryProposalResponse)(x) +func (x *fastReflection_QueryProposalsByProposerResponse) Interface() protoreflect.ProtoMessage { + return (*QueryProposalsByProposerResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -4102,10 +7469,16 @@ func (x *fastReflection_QueryProposalResponse) Interface() protoreflect.ProtoMes // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryProposalResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Proposal != nil { - value := protoreflect.ValueOfMessage(x.Proposal.ProtoReflect()) - if !f(fd_QueryProposalResponse_proposal, value) { +func (x *fastReflection_QueryProposalsByProposerResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.Proposals) != 0 { + value := protoreflect.ValueOfList(&_QueryProposalsByProposerResponse_1_list{list: &x.Proposals}) + if !f(fd_QueryProposalsByProposerResponse_proposals, value) { + return + } + } + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryProposalsByProposerResponse_pagination, value) { return } } @@ -4122,15 +7495,17 @@ func (x *fastReflection_QueryProposalResponse) Range(f func(protoreflect.FieldDe // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryProposalResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryProposalsByProposerResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.QueryProposalResponse.proposal": - return x.Proposal != nil + case "andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse.proposals": + return len(x.Proposals) != 0 + case "andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse.pagination": + return x.Pagination != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse")) } - panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse does not contain field %s", fd.FullName())) } } @@ -4140,15 +7515,17 @@ func (x *fastReflection_QueryProposalResponse) Has(fd protoreflect.FieldDescript // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryProposalResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryProposalsByProposerResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.QueryProposalResponse.proposal": - x.Proposal = nil + case "andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse.proposals": + x.Proposals = nil + case "andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse.pagination": + x.Pagination = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse")) } - panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse does not contain field %s", fd.FullName())) } } @@ -4158,16 +7535,22 @@ func (x *fastReflection_QueryProposalResponse) Clear(fd protoreflect.FieldDescri // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryProposalResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryProposalsByProposerResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "andromeda.escrow.v1alpha1.QueryProposalResponse.proposal": - value := x.Proposal + case "andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse.proposals": + if len(x.Proposals) == 0 { + return protoreflect.ValueOfList(&_QueryProposalsByProposerResponse_1_list{}) + } + listValue := &_QueryProposalsByProposerResponse_1_list{list: &x.Proposals} + return protoreflect.ValueOfList(listValue) + case "andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse.pagination": + value := x.Pagination return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse")) } - panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse does not contain field %s", descriptor.FullName())) } } @@ -4181,15 +7564,19 @@ func (x *fastReflection_QueryProposalResponse) Get(descriptor protoreflect.Field // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryProposalResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryProposalsByProposerResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.QueryProposalResponse.proposal": - x.Proposal = value.Message().Interface().(*QueryProposalResponse_Proposal) + case "andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse.proposals": + lv := value.List() + clv := lv.(*_QueryProposalsByProposerResponse_1_list) + x.Proposals = *clv.list + case "andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse.pagination": + x.Pagination = value.Message().Interface().(*v1beta1.PageResponse) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse")) } - panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse does not contain field %s", fd.FullName())) } } @@ -4203,44 +7590,53 @@ func (x *fastReflection_QueryProposalResponse) Set(fd protoreflect.FieldDescript // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryProposalResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryProposalsByProposerResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.QueryProposalResponse.proposal": - if x.Proposal == nil { - x.Proposal = new(QueryProposalResponse_Proposal) + case "andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse.proposals": + if x.Proposals == nil { + x.Proposals = []*QueryProposalsByProposerResponse_Proposal{} } - return protoreflect.ValueOfMessage(x.Proposal.ProtoReflect()) + value := &_QueryProposalsByProposerResponse_1_list{list: &x.Proposals} + return protoreflect.ValueOfList(value) + case "andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse.pagination": + if x.Pagination == nil { + x.Pagination = new(v1beta1.PageResponse) + } + return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse")) } - panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryProposalResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryProposalsByProposerResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.QueryProposalResponse.proposal": - m := new(QueryProposalResponse_Proposal) + case "andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse.proposals": + list := []*QueryProposalsByProposerResponse_Proposal{} + return protoreflect.ValueOfList(&_QueryProposalsByProposerResponse_1_list{list: &list}) + case "andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse.pagination": + m := new(v1beta1.PageResponse) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse")) } - panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryProposalResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryProposalsByProposerResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in andromeda.escrow.v1alpha1.QueryProposalResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse", d.FullName())) } panic("unreachable") } @@ -4248,7 +7644,7 @@ func (x *fastReflection_QueryProposalResponse) WhichOneof(d protoreflect.OneofDe // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryProposalResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryProposalsByProposerResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -4259,7 +7655,7 @@ func (x *fastReflection_QueryProposalResponse) GetUnknown() protoreflect.RawFiel // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryProposalResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryProposalsByProposerResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -4271,7 +7667,7 @@ func (x *fastReflection_QueryProposalResponse) SetUnknown(fields protoreflect.Ra // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryProposalResponse) IsValid() bool { +func (x *fastReflection_QueryProposalsByProposerResponse) IsValid() bool { return x != nil } @@ -4281,9 +7677,9 @@ func (x *fastReflection_QueryProposalResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryProposalResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryProposalsByProposerResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryProposalResponse) + x := input.Message.Interface().(*QueryProposalsByProposerResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4295,8 +7691,14 @@ func (x *fastReflection_QueryProposalResponse) ProtoMethods() *protoiface.Method var n int var l int _ = l - if x.Proposal != nil { - l = options.Size(x.Proposal) + if len(x.Proposals) > 0 { + for _, e := range x.Proposals { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if x.Pagination != nil { + l = options.Size(x.Pagination) n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { @@ -4309,7 +7711,7 @@ func (x *fastReflection_QueryProposalResponse) ProtoMethods() *protoiface.Method } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryProposalResponse) + x := input.Message.Interface().(*QueryProposalsByProposerResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4328,8 +7730,8 @@ func (x *fastReflection_QueryProposalResponse) ProtoMethods() *protoiface.Method i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.Proposal != nil { - encoded, err := options.Marshal(x.Proposal) + if x.Pagination != nil { + encoded, err := options.Marshal(x.Pagination) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4340,7 +7742,23 @@ func (x *fastReflection_QueryProposalResponse) ProtoMethods() *protoiface.Method copy(dAtA[i:], encoded) i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- - dAtA[i] = 0xa + dAtA[i] = 0x12 + } + if len(x.Proposals) > 0 { + for iNdEx := len(x.Proposals) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Proposals[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0xa + } } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -4353,7 +7771,7 @@ func (x *fastReflection_QueryProposalResponse) ProtoMethods() *protoiface.Method }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryProposalResponse) + x := input.Message.Interface().(*QueryProposalsByProposerResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4385,15 +7803,15 @@ func (x *fastReflection_QueryProposalResponse) ProtoMethods() *protoiface.Method fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryProposalResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryProposalsByProposerResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryProposalResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryProposalsByProposerResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Proposal", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Proposals", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -4420,10 +7838,44 @@ func (x *fastReflection_QueryProposalResponse) ProtoMethods() *protoiface.Method if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - if x.Proposal == nil { - x.Proposal = &QueryProposalResponse_Proposal{} + x.Proposals = append(x.Proposals, &QueryProposalsByProposerResponse_Proposal{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Proposals[len(x.Proposals)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Proposal); err != nil { + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.Pagination == nil { + x.Pagination = &v1beta1.PageResponse{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex @@ -4462,137 +7914,137 @@ func (x *fastReflection_QueryProposalResponse) ProtoMethods() *protoiface.Method } } -var _ protoreflect.List = (*_QueryProposalResponse_Proposal_3_list)(nil) +var _ protoreflect.List = (*_QueryProposalsByProposerResponse_Proposal_3_list)(nil) -type _QueryProposalResponse_Proposal_3_list struct { +type _QueryProposalsByProposerResponse_Proposal_3_list struct { list *[]*anypb.Any } -func (x *_QueryProposalResponse_Proposal_3_list) Len() int { +func (x *_QueryProposalsByProposerResponse_Proposal_3_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_QueryProposalResponse_Proposal_3_list) Get(i int) protoreflect.Value { +func (x *_QueryProposalsByProposerResponse_Proposal_3_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } -func (x *_QueryProposalResponse_Proposal_3_list) Set(i int, value protoreflect.Value) { +func (x *_QueryProposalsByProposerResponse_Proposal_3_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*anypb.Any) (*x.list)[i] = concreteValue } -func (x *_QueryProposalResponse_Proposal_3_list) Append(value protoreflect.Value) { +func (x *_QueryProposalsByProposerResponse_Proposal_3_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*anypb.Any) *x.list = append(*x.list, concreteValue) } -func (x *_QueryProposalResponse_Proposal_3_list) AppendMutable() protoreflect.Value { +func (x *_QueryProposalsByProposerResponse_Proposal_3_list) AppendMutable() protoreflect.Value { v := new(anypb.Any) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_QueryProposalResponse_Proposal_3_list) Truncate(n int) { +func (x *_QueryProposalsByProposerResponse_Proposal_3_list) Truncate(n int) { for i := n; i < len(*x.list); i++ { (*x.list)[i] = nil } *x.list = (*x.list)[:n] } -func (x *_QueryProposalResponse_Proposal_3_list) NewElement() protoreflect.Value { +func (x *_QueryProposalsByProposerResponse_Proposal_3_list) NewElement() protoreflect.Value { v := new(anypb.Any) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_QueryProposalResponse_Proposal_3_list) IsValid() bool { +func (x *_QueryProposalsByProposerResponse_Proposal_3_list) IsValid() bool { return x.list != nil } -var _ protoreflect.List = (*_QueryProposalResponse_Proposal_4_list)(nil) +var _ protoreflect.List = (*_QueryProposalsByProposerResponse_Proposal_4_list)(nil) -type _QueryProposalResponse_Proposal_4_list struct { +type _QueryProposalsByProposerResponse_Proposal_4_list struct { list *[]*anypb.Any } -func (x *_QueryProposalResponse_Proposal_4_list) Len() int { +func (x *_QueryProposalsByProposerResponse_Proposal_4_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_QueryProposalResponse_Proposal_4_list) Get(i int) protoreflect.Value { +func (x *_QueryProposalsByProposerResponse_Proposal_4_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } -func (x *_QueryProposalResponse_Proposal_4_list) Set(i int, value protoreflect.Value) { +func (x *_QueryProposalsByProposerResponse_Proposal_4_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*anypb.Any) (*x.list)[i] = concreteValue } -func (x *_QueryProposalResponse_Proposal_4_list) Append(value protoreflect.Value) { +func (x *_QueryProposalsByProposerResponse_Proposal_4_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*anypb.Any) *x.list = append(*x.list, concreteValue) } -func (x *_QueryProposalResponse_Proposal_4_list) AppendMutable() protoreflect.Value { +func (x *_QueryProposalsByProposerResponse_Proposal_4_list) AppendMutable() protoreflect.Value { v := new(anypb.Any) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_QueryProposalResponse_Proposal_4_list) Truncate(n int) { +func (x *_QueryProposalsByProposerResponse_Proposal_4_list) Truncate(n int) { for i := n; i < len(*x.list); i++ { (*x.list)[i] = nil } *x.list = (*x.list)[:n] } -func (x *_QueryProposalResponse_Proposal_4_list) NewElement() protoreflect.Value { +func (x *_QueryProposalsByProposerResponse_Proposal_4_list) NewElement() protoreflect.Value { v := new(anypb.Any) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_QueryProposalResponse_Proposal_4_list) IsValid() bool { +func (x *_QueryProposalsByProposerResponse_Proposal_4_list) IsValid() bool { return x.list != nil } var ( - md_QueryProposalResponse_Proposal protoreflect.MessageDescriptor - fd_QueryProposalResponse_Proposal_agent protoreflect.FieldDescriptor - fd_QueryProposalResponse_Proposal_proposer protoreflect.FieldDescriptor - fd_QueryProposalResponse_Proposal_pre_actions protoreflect.FieldDescriptor - fd_QueryProposalResponse_Proposal_post_actions protoreflect.FieldDescriptor - fd_QueryProposalResponse_Proposal_metadata protoreflect.FieldDescriptor + md_QueryProposalsByProposerResponse_Proposal protoreflect.MessageDescriptor + fd_QueryProposalsByProposerResponse_Proposal_agent protoreflect.FieldDescriptor + fd_QueryProposalsByProposerResponse_Proposal_proposer protoreflect.FieldDescriptor + fd_QueryProposalsByProposerResponse_Proposal_pre_actions protoreflect.FieldDescriptor + fd_QueryProposalsByProposerResponse_Proposal_post_actions protoreflect.FieldDescriptor + fd_QueryProposalsByProposerResponse_Proposal_metadata protoreflect.FieldDescriptor ) func init() { file_andromeda_escrow_v1alpha1_query_proto_init() - md_QueryProposalResponse_Proposal = File_andromeda_escrow_v1alpha1_query_proto.Messages().ByName("QueryProposalResponse").Messages().ByName("Proposal") - fd_QueryProposalResponse_Proposal_agent = md_QueryProposalResponse_Proposal.Fields().ByName("agent") - fd_QueryProposalResponse_Proposal_proposer = md_QueryProposalResponse_Proposal.Fields().ByName("proposer") - fd_QueryProposalResponse_Proposal_pre_actions = md_QueryProposalResponse_Proposal.Fields().ByName("pre_actions") - fd_QueryProposalResponse_Proposal_post_actions = md_QueryProposalResponse_Proposal.Fields().ByName("post_actions") - fd_QueryProposalResponse_Proposal_metadata = md_QueryProposalResponse_Proposal.Fields().ByName("metadata") + md_QueryProposalsByProposerResponse_Proposal = File_andromeda_escrow_v1alpha1_query_proto.Messages().ByName("QueryProposalsByProposerResponse").Messages().ByName("Proposal") + fd_QueryProposalsByProposerResponse_Proposal_agent = md_QueryProposalsByProposerResponse_Proposal.Fields().ByName("agent") + fd_QueryProposalsByProposerResponse_Proposal_proposer = md_QueryProposalsByProposerResponse_Proposal.Fields().ByName("proposer") + fd_QueryProposalsByProposerResponse_Proposal_pre_actions = md_QueryProposalsByProposerResponse_Proposal.Fields().ByName("pre_actions") + fd_QueryProposalsByProposerResponse_Proposal_post_actions = md_QueryProposalsByProposerResponse_Proposal.Fields().ByName("post_actions") + fd_QueryProposalsByProposerResponse_Proposal_metadata = md_QueryProposalsByProposerResponse_Proposal.Fields().ByName("metadata") } -var _ protoreflect.Message = (*fastReflection_QueryProposalResponse_Proposal)(nil) +var _ protoreflect.Message = (*fastReflection_QueryProposalsByProposerResponse_Proposal)(nil) -type fastReflection_QueryProposalResponse_Proposal QueryProposalResponse_Proposal +type fastReflection_QueryProposalsByProposerResponse_Proposal QueryProposalsByProposerResponse_Proposal -func (x *QueryProposalResponse_Proposal) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryProposalResponse_Proposal)(x) +func (x *QueryProposalsByProposerResponse_Proposal) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryProposalsByProposerResponse_Proposal)(x) } -func (x *QueryProposalResponse_Proposal) slowProtoReflect() protoreflect.Message { - mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[12] +func (x *QueryProposalsByProposerResponse_Proposal) slowProtoReflect() protoreflect.Message { + mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[18] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4603,43 +8055,43 @@ func (x *QueryProposalResponse_Proposal) slowProtoReflect() protoreflect.Message return mi.MessageOf(x) } -var _fastReflection_QueryProposalResponse_Proposal_messageType fastReflection_QueryProposalResponse_Proposal_messageType -var _ protoreflect.MessageType = fastReflection_QueryProposalResponse_Proposal_messageType{} +var _fastReflection_QueryProposalsByProposerResponse_Proposal_messageType fastReflection_QueryProposalsByProposerResponse_Proposal_messageType +var _ protoreflect.MessageType = fastReflection_QueryProposalsByProposerResponse_Proposal_messageType{} -type fastReflection_QueryProposalResponse_Proposal_messageType struct{} +type fastReflection_QueryProposalsByProposerResponse_Proposal_messageType struct{} -func (x fastReflection_QueryProposalResponse_Proposal_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryProposalResponse_Proposal)(nil) +func (x fastReflection_QueryProposalsByProposerResponse_Proposal_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryProposalsByProposerResponse_Proposal)(nil) } -func (x fastReflection_QueryProposalResponse_Proposal_messageType) New() protoreflect.Message { - return new(fastReflection_QueryProposalResponse_Proposal) +func (x fastReflection_QueryProposalsByProposerResponse_Proposal_messageType) New() protoreflect.Message { + return new(fastReflection_QueryProposalsByProposerResponse_Proposal) } -func (x fastReflection_QueryProposalResponse_Proposal_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryProposalResponse_Proposal +func (x fastReflection_QueryProposalsByProposerResponse_Proposal_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryProposalsByProposerResponse_Proposal } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryProposalResponse_Proposal) Descriptor() protoreflect.MessageDescriptor { - return md_QueryProposalResponse_Proposal +func (x *fastReflection_QueryProposalsByProposerResponse_Proposal) Descriptor() protoreflect.MessageDescriptor { + return md_QueryProposalsByProposerResponse_Proposal } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryProposalResponse_Proposal) Type() protoreflect.MessageType { - return _fastReflection_QueryProposalResponse_Proposal_messageType +func (x *fastReflection_QueryProposalsByProposerResponse_Proposal) Type() protoreflect.MessageType { + return _fastReflection_QueryProposalsByProposerResponse_Proposal_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryProposalResponse_Proposal) New() protoreflect.Message { - return new(fastReflection_QueryProposalResponse_Proposal) +func (x *fastReflection_QueryProposalsByProposerResponse_Proposal) New() protoreflect.Message { + return new(fastReflection_QueryProposalsByProposerResponse_Proposal) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryProposalResponse_Proposal) Interface() protoreflect.ProtoMessage { - return (*QueryProposalResponse_Proposal)(x) +func (x *fastReflection_QueryProposalsByProposerResponse_Proposal) Interface() protoreflect.ProtoMessage { + return (*QueryProposalsByProposerResponse_Proposal)(x) } // Range iterates over every populated field in an undefined order, @@ -4647,34 +8099,34 @@ func (x *fastReflection_QueryProposalResponse_Proposal) Interface() protoreflect // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryProposalResponse_Proposal) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryProposalsByProposerResponse_Proposal) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Agent != "" { value := protoreflect.ValueOfString(x.Agent) - if !f(fd_QueryProposalResponse_Proposal_agent, value) { + if !f(fd_QueryProposalsByProposerResponse_Proposal_agent, value) { return } } if x.Proposer != "" { value := protoreflect.ValueOfString(x.Proposer) - if !f(fd_QueryProposalResponse_Proposal_proposer, value) { + if !f(fd_QueryProposalsByProposerResponse_Proposal_proposer, value) { return } } if len(x.PreActions) != 0 { - value := protoreflect.ValueOfList(&_QueryProposalResponse_Proposal_3_list{list: &x.PreActions}) - if !f(fd_QueryProposalResponse_Proposal_pre_actions, value) { + value := protoreflect.ValueOfList(&_QueryProposalsByProposerResponse_Proposal_3_list{list: &x.PreActions}) + if !f(fd_QueryProposalsByProposerResponse_Proposal_pre_actions, value) { return } } if len(x.PostActions) != 0 { - value := protoreflect.ValueOfList(&_QueryProposalResponse_Proposal_4_list{list: &x.PostActions}) - if !f(fd_QueryProposalResponse_Proposal_post_actions, value) { + value := protoreflect.ValueOfList(&_QueryProposalsByProposerResponse_Proposal_4_list{list: &x.PostActions}) + if !f(fd_QueryProposalsByProposerResponse_Proposal_post_actions, value) { return } } if x.Metadata != "" { value := protoreflect.ValueOfString(x.Metadata) - if !f(fd_QueryProposalResponse_Proposal_metadata, value) { + if !f(fd_QueryProposalsByProposerResponse_Proposal_metadata, value) { return } } @@ -4691,23 +8143,23 @@ func (x *fastReflection_QueryProposalResponse_Proposal) Range(f func(protoreflec // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryProposalResponse_Proposal) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryProposalsByProposerResponse_Proposal) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.agent": + case "andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse.Proposal.agent": return x.Agent != "" - case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.proposer": + case "andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse.Proposal.proposer": return x.Proposer != "" - case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.pre_actions": + case "andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse.Proposal.pre_actions": return len(x.PreActions) != 0 - case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.post_actions": + case "andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse.Proposal.post_actions": return len(x.PostActions) != 0 - case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.metadata": + case "andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse.Proposal.metadata": return x.Metadata != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse.Proposal")) } - panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse.Proposal does not contain field %s", fd.FullName())) } } @@ -4717,23 +8169,23 @@ func (x *fastReflection_QueryProposalResponse_Proposal) Has(fd protoreflect.Fiel // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryProposalResponse_Proposal) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryProposalsByProposerResponse_Proposal) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.agent": + case "andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse.Proposal.agent": x.Agent = "" - case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.proposer": + case "andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse.Proposal.proposer": x.Proposer = "" - case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.pre_actions": + case "andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse.Proposal.pre_actions": x.PreActions = nil - case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.post_actions": + case "andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse.Proposal.post_actions": x.PostActions = nil - case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.metadata": + case "andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse.Proposal.metadata": x.Metadata = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse.Proposal")) } - panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse.Proposal does not contain field %s", fd.FullName())) } } @@ -4743,34 +8195,34 @@ func (x *fastReflection_QueryProposalResponse_Proposal) Clear(fd protoreflect.Fi // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryProposalResponse_Proposal) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryProposalsByProposerResponse_Proposal) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.agent": + case "andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse.Proposal.agent": value := x.Agent return protoreflect.ValueOfString(value) - case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.proposer": + case "andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse.Proposal.proposer": value := x.Proposer return protoreflect.ValueOfString(value) - case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.pre_actions": + case "andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse.Proposal.pre_actions": if len(x.PreActions) == 0 { - return protoreflect.ValueOfList(&_QueryProposalResponse_Proposal_3_list{}) + return protoreflect.ValueOfList(&_QueryProposalsByProposerResponse_Proposal_3_list{}) } - listValue := &_QueryProposalResponse_Proposal_3_list{list: &x.PreActions} + listValue := &_QueryProposalsByProposerResponse_Proposal_3_list{list: &x.PreActions} return protoreflect.ValueOfList(listValue) - case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.post_actions": + case "andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse.Proposal.post_actions": if len(x.PostActions) == 0 { - return protoreflect.ValueOfList(&_QueryProposalResponse_Proposal_4_list{}) + return protoreflect.ValueOfList(&_QueryProposalsByProposerResponse_Proposal_4_list{}) } - listValue := &_QueryProposalResponse_Proposal_4_list{list: &x.PostActions} + listValue := &_QueryProposalsByProposerResponse_Proposal_4_list{list: &x.PostActions} return protoreflect.ValueOfList(listValue) - case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.metadata": + case "andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse.Proposal.metadata": value := x.Metadata return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse.Proposal")) } - panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse.Proposal does not contain field %s", descriptor.FullName())) } } @@ -4784,27 +8236,27 @@ func (x *fastReflection_QueryProposalResponse_Proposal) Get(descriptor protorefl // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryProposalResponse_Proposal) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryProposalsByProposerResponse_Proposal) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.agent": + case "andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse.Proposal.agent": x.Agent = value.Interface().(string) - case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.proposer": + case "andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse.Proposal.proposer": x.Proposer = value.Interface().(string) - case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.pre_actions": + case "andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse.Proposal.pre_actions": lv := value.List() - clv := lv.(*_QueryProposalResponse_Proposal_3_list) + clv := lv.(*_QueryProposalsByProposerResponse_Proposal_3_list) x.PreActions = *clv.list - case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.post_actions": + case "andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse.Proposal.post_actions": lv := value.List() - clv := lv.(*_QueryProposalResponse_Proposal_4_list) + clv := lv.(*_QueryProposalsByProposerResponse_Proposal_4_list) x.PostActions = *clv.list - case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.metadata": + case "andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse.Proposal.metadata": x.Metadata = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse.Proposal")) } - panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse.Proposal does not contain field %s", fd.FullName())) } } @@ -4818,66 +8270,66 @@ func (x *fastReflection_QueryProposalResponse_Proposal) Set(fd protoreflect.Fiel // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryProposalResponse_Proposal) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryProposalsByProposerResponse_Proposal) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.pre_actions": + case "andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse.Proposal.pre_actions": if x.PreActions == nil { x.PreActions = []*anypb.Any{} } - value := &_QueryProposalResponse_Proposal_3_list{list: &x.PreActions} + value := &_QueryProposalsByProposerResponse_Proposal_3_list{list: &x.PreActions} return protoreflect.ValueOfList(value) - case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.post_actions": + case "andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse.Proposal.post_actions": if x.PostActions == nil { x.PostActions = []*anypb.Any{} } - value := &_QueryProposalResponse_Proposal_4_list{list: &x.PostActions} + value := &_QueryProposalsByProposerResponse_Proposal_4_list{list: &x.PostActions} return protoreflect.ValueOfList(value) - case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.agent": - panic(fmt.Errorf("field agent of message andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal is not mutable")) - case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.proposer": - panic(fmt.Errorf("field proposer of message andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal is not mutable")) - case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.metadata": - panic(fmt.Errorf("field metadata of message andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal is not mutable")) + case "andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse.Proposal.agent": + panic(fmt.Errorf("field agent of message andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse.Proposal is not mutable")) + case "andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse.Proposal.proposer": + panic(fmt.Errorf("field proposer of message andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse.Proposal is not mutable")) + case "andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse.Proposal.metadata": + panic(fmt.Errorf("field metadata of message andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse.Proposal is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse.Proposal")) } - panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse.Proposal does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryProposalResponse_Proposal) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryProposalsByProposerResponse_Proposal) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.agent": + case "andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse.Proposal.agent": return protoreflect.ValueOfString("") - case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.proposer": + case "andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse.Proposal.proposer": return protoreflect.ValueOfString("") - case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.pre_actions": + case "andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse.Proposal.pre_actions": list := []*anypb.Any{} - return protoreflect.ValueOfList(&_QueryProposalResponse_Proposal_3_list{list: &list}) - case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.post_actions": + return protoreflect.ValueOfList(&_QueryProposalsByProposerResponse_Proposal_3_list{list: &list}) + case "andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse.Proposal.post_actions": list := []*anypb.Any{} - return protoreflect.ValueOfList(&_QueryProposalResponse_Proposal_4_list{list: &list}) - case "andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.metadata": + return protoreflect.ValueOfList(&_QueryProposalsByProposerResponse_Proposal_4_list{list: &list}) + case "andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse.Proposal.metadata": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse.Proposal")) } - panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse.Proposal does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryProposalResponse_Proposal) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryProposalsByProposerResponse_Proposal) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse.Proposal", d.FullName())) } panic("unreachable") } @@ -4885,7 +8337,7 @@ func (x *fastReflection_QueryProposalResponse_Proposal) WhichOneof(d protoreflec // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryProposalResponse_Proposal) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryProposalsByProposerResponse_Proposal) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -4896,7 +8348,7 @@ func (x *fastReflection_QueryProposalResponse_Proposal) GetUnknown() protoreflec // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryProposalResponse_Proposal) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryProposalsByProposerResponse_Proposal) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -4908,7 +8360,7 @@ func (x *fastReflection_QueryProposalResponse_Proposal) SetUnknown(fields protor // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryProposalResponse_Proposal) IsValid() bool { +func (x *fastReflection_QueryProposalsByProposerResponse_Proposal) IsValid() bool { return x != nil } @@ -4918,9 +8370,9 @@ func (x *fastReflection_QueryProposalResponse_Proposal) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryProposalResponse_Proposal) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryProposalsByProposerResponse_Proposal) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryProposalResponse_Proposal) + x := input.Message.Interface().(*QueryProposalsByProposerResponse_Proposal) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4966,7 +8418,7 @@ func (x *fastReflection_QueryProposalResponse_Proposal) ProtoMethods() *protoifa } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryProposalResponse_Proposal) + x := input.Message.Interface().(*QueryProposalsByProposerResponse_Proposal) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5049,7 +8501,7 @@ func (x *fastReflection_QueryProposalResponse_Proposal) ProtoMethods() *protoifa }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryProposalResponse_Proposal) + x := input.Message.Interface().(*QueryProposalsByProposerResponse_Proposal) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5081,10 +8533,10 @@ func (x *fastReflection_QueryProposalResponse_Proposal) ProtoMethods() *protoifa fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryProposalResponse_Proposal: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryProposalsByProposerResponse_Proposal: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryProposalResponse_Proposal: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryProposalsByProposerResponse_Proposal: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -5306,7 +8758,7 @@ func (x *QueryProposalsRequest) ProtoReflect() protoreflect.Message { } func (x *QueryProposalsRequest) slowProtoReflect() protoreflect.Message { - mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[8] + mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5599,7 +9051,7 @@ func (x *fastReflection_QueryProposalsRequest) ProtoMethods() *protoiface.Method copy(dAtA[i:], encoded) i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- - dAtA[i] = 0x12 + dAtA[i] = 0xa } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -5650,7 +9102,7 @@ func (x *fastReflection_QueryProposalsRequest) ProtoMethods() *protoiface.Method return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryProposalsRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 2: + case 1: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) } @@ -5794,7 +9246,7 @@ func (x *QueryProposalsResponse) ProtoReflect() protoreflect.Message { } func (x *QueryProposalsResponse) slowProtoReflect() protoreflect.Message { - mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[9] + mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6424,7 +9876,7 @@ func (x *QueryProposalsResponse_Proposal) ProtoReflect() protoreflect.Message { } func (x *QueryProposalsResponse_Proposal) slowProtoReflect() protoreflect.Message { - mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[13] + mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[19] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7269,6 +10721,98 @@ func (x *QueryAgentResponse) GetAgent() *QueryAgentResponse_Agent { return nil } +// QueryAgentsByCreatorRequest is the request type for the Query/AgentsByCreator RPC method. +type QueryAgentsByCreatorRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // the address of a creator + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + // optional pagination for the request + Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (x *QueryAgentsByCreatorRequest) Reset() { + *x = QueryAgentsByCreatorRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryAgentsByCreatorRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryAgentsByCreatorRequest) ProtoMessage() {} + +// Deprecated: Use QueryAgentsByCreatorRequest.ProtoReflect.Descriptor instead. +func (*QueryAgentsByCreatorRequest) Descriptor() ([]byte, []int) { + return file_andromeda_escrow_v1alpha1_query_proto_rawDescGZIP(), []int{4} +} + +func (x *QueryAgentsByCreatorRequest) GetCreator() string { + if x != nil { + return x.Creator + } + return "" +} + +func (x *QueryAgentsByCreatorRequest) GetPagination() *v1beta1.PageRequest { + if x != nil { + return x.Pagination + } + return nil +} + +// QueryAgentsByCreatorResponse is the response type for the Query/AgentsByCreator RPC method. +type QueryAgentsByCreatorResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // all the agents created by the creator + Agents []*QueryAgentsByCreatorResponse_Agent `protobuf:"bytes,1,rep,name=agents,proto3" json:"agents,omitempty"` + // pagination in the response + Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (x *QueryAgentsByCreatorResponse) Reset() { + *x = QueryAgentsByCreatorResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryAgentsByCreatorResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryAgentsByCreatorResponse) ProtoMessage() {} + +// Deprecated: Use QueryAgentsByCreatorResponse.ProtoReflect.Descriptor instead. +func (*QueryAgentsByCreatorResponse) Descriptor() ([]byte, []int) { + return file_andromeda_escrow_v1alpha1_query_proto_rawDescGZIP(), []int{5} +} + +func (x *QueryAgentsByCreatorResponse) GetAgents() []*QueryAgentsByCreatorResponse_Agent { + if x != nil { + return x.Agents + } + return nil +} + +func (x *QueryAgentsByCreatorResponse) GetPagination() *v1beta1.PageResponse { + if x != nil { + return x.Pagination + } + return nil +} + // QueryAgentsRequest is the request type for the Query/Agents RPC method. type QueryAgentsRequest struct { state protoimpl.MessageState @@ -7282,7 +10826,7 @@ type QueryAgentsRequest struct { func (x *QueryAgentsRequest) Reset() { *x = QueryAgentsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[4] + mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7296,7 +10840,7 @@ func (*QueryAgentsRequest) ProtoMessage() {} // Deprecated: Use QueryAgentsRequest.ProtoReflect.Descriptor instead. func (*QueryAgentsRequest) Descriptor() ([]byte, []int) { - return file_andromeda_escrow_v1alpha1_query_proto_rawDescGZIP(), []int{4} + return file_andromeda_escrow_v1alpha1_query_proto_rawDescGZIP(), []int{6} } func (x *QueryAgentsRequest) GetPagination() *v1beta1.PageRequest { @@ -7321,7 +10865,7 @@ type QueryAgentsResponse struct { func (x *QueryAgentsResponse) Reset() { *x = QueryAgentsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[5] + mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7335,7 +10879,7 @@ func (*QueryAgentsResponse) ProtoMessage() {} // Deprecated: Use QueryAgentsResponse.ProtoReflect.Descriptor instead. func (*QueryAgentsResponse) Descriptor() ([]byte, []int) { - return file_andromeda_escrow_v1alpha1_query_proto_rawDescGZIP(), []int{5} + return file_andromeda_escrow_v1alpha1_query_proto_rawDescGZIP(), []int{7} } func (x *QueryAgentsResponse) GetAgents() []*QueryAgentsResponse_Agent { @@ -7365,7 +10909,7 @@ type QueryProposalRequest struct { func (x *QueryProposalRequest) Reset() { *x = QueryProposalRequest{} if protoimpl.UnsafeEnabled { - mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[6] + mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7379,7 +10923,7 @@ func (*QueryProposalRequest) ProtoMessage() {} // Deprecated: Use QueryProposalRequest.ProtoReflect.Descriptor instead. func (*QueryProposalRequest) Descriptor() ([]byte, []int) { - return file_andromeda_escrow_v1alpha1_query_proto_rawDescGZIP(), []int{6} + return file_andromeda_escrow_v1alpha1_query_proto_rawDescGZIP(), []int{8} } func (x *QueryProposalRequest) GetAgent() string { @@ -7395,33 +10939,125 @@ type QueryProposalResponse struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // the corresponding proposal - Proposal *QueryProposalResponse_Proposal `protobuf:"bytes,1,opt,name=proposal,proto3" json:"proposal,omitempty"` + // the corresponding proposal + Proposal *QueryProposalResponse_Proposal `protobuf:"bytes,1,opt,name=proposal,proto3" json:"proposal,omitempty"` +} + +func (x *QueryProposalResponse) Reset() { + *x = QueryProposalResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryProposalResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryProposalResponse) ProtoMessage() {} + +// Deprecated: Use QueryProposalResponse.ProtoReflect.Descriptor instead. +func (*QueryProposalResponse) Descriptor() ([]byte, []int) { + return file_andromeda_escrow_v1alpha1_query_proto_rawDescGZIP(), []int{9} +} + +func (x *QueryProposalResponse) GetProposal() *QueryProposalResponse_Proposal { + if x != nil { + return x.Proposal + } + return nil +} + +// QueryProposalsByProposerRequest is the request type for the Query/ProposalsByProposer RPC method. +type QueryProposalsByProposerRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // the address of a proposer + Proposer string `protobuf:"bytes,1,opt,name=proposer,proto3" json:"proposer,omitempty"` + // optional pagination for the request + Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (x *QueryProposalsByProposerRequest) Reset() { + *x = QueryProposalsByProposerRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryProposalsByProposerRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryProposalsByProposerRequest) ProtoMessage() {} + +// Deprecated: Use QueryProposalsByProposerRequest.ProtoReflect.Descriptor instead. +func (*QueryProposalsByProposerRequest) Descriptor() ([]byte, []int) { + return file_andromeda_escrow_v1alpha1_query_proto_rawDescGZIP(), []int{10} +} + +func (x *QueryProposalsByProposerRequest) GetProposer() string { + if x != nil { + return x.Proposer + } + return "" +} + +func (x *QueryProposalsByProposerRequest) GetPagination() *v1beta1.PageRequest { + if x != nil { + return x.Pagination + } + return nil +} + +// QueryProposalsByProposerResponse is the response type for the Query/ProposalsByProposer RPC method. +type QueryProposalsByProposerResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // all the proposals proposed by the proposer + Proposals []*QueryProposalsByProposerResponse_Proposal `protobuf:"bytes,1,rep,name=proposals,proto3" json:"proposals,omitempty"` + // pagination in the response + Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (x *QueryProposalResponse) Reset() { - *x = QueryProposalResponse{} +func (x *QueryProposalsByProposerResponse) Reset() { + *x = QueryProposalsByProposerResponse{} if protoimpl.UnsafeEnabled { - mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[7] + mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *QueryProposalResponse) String() string { +func (x *QueryProposalsByProposerResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryProposalResponse) ProtoMessage() {} +func (*QueryProposalsByProposerResponse) ProtoMessage() {} -// Deprecated: Use QueryProposalResponse.ProtoReflect.Descriptor instead. -func (*QueryProposalResponse) Descriptor() ([]byte, []int) { - return file_andromeda_escrow_v1alpha1_query_proto_rawDescGZIP(), []int{7} +// Deprecated: Use QueryProposalsByProposerResponse.ProtoReflect.Descriptor instead. +func (*QueryProposalsByProposerResponse) Descriptor() ([]byte, []int) { + return file_andromeda_escrow_v1alpha1_query_proto_rawDescGZIP(), []int{11} } -func (x *QueryProposalResponse) GetProposal() *QueryProposalResponse_Proposal { +func (x *QueryProposalsByProposerResponse) GetProposals() []*QueryProposalsByProposerResponse_Proposal { if x != nil { - return x.Proposal + return x.Proposals + } + return nil +} + +func (x *QueryProposalsByProposerResponse) GetPagination() *v1beta1.PageResponse { + if x != nil { + return x.Pagination } return nil } @@ -7433,13 +11069,13 @@ type QueryProposalsRequest struct { unknownFields protoimpl.UnknownFields // optional pagination for the request - Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` + Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` } func (x *QueryProposalsRequest) Reset() { *x = QueryProposalsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[8] + mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7453,7 +11089,7 @@ func (*QueryProposalsRequest) ProtoMessage() {} // Deprecated: Use QueryProposalsRequest.ProtoReflect.Descriptor instead. func (*QueryProposalsRequest) Descriptor() ([]byte, []int) { - return file_andromeda_escrow_v1alpha1_query_proto_rawDescGZIP(), []int{8} + return file_andromeda_escrow_v1alpha1_query_proto_rawDescGZIP(), []int{12} } func (x *QueryProposalsRequest) GetPagination() *v1beta1.PageRequest { @@ -7478,7 +11114,7 @@ type QueryProposalsResponse struct { func (x *QueryProposalsResponse) Reset() { *x = QueryProposalsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[9] + mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7492,7 +11128,7 @@ func (*QueryProposalsResponse) ProtoMessage() {} // Deprecated: Use QueryProposalsResponse.ProtoReflect.Descriptor instead. func (*QueryProposalsResponse) Descriptor() ([]byte, []int) { - return file_andromeda_escrow_v1alpha1_query_proto_rawDescGZIP(), []int{9} + return file_andromeda_escrow_v1alpha1_query_proto_rawDescGZIP(), []int{13} } func (x *QueryProposalsResponse) GetProposals() []*QueryProposalsResponse_Proposal { @@ -7524,7 +11160,7 @@ type QueryAgentResponse_Agent struct { func (x *QueryAgentResponse_Agent) Reset() { *x = QueryAgentResponse_Agent{} if protoimpl.UnsafeEnabled { - mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[10] + mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7555,6 +11191,52 @@ func (x *QueryAgentResponse_Agent) GetCreator() string { return "" } +// Agent defines an account taking charge of a proposal. +type QueryAgentsByCreatorResponse_Agent struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // the address of the agent + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + // the address of the creator + Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` +} + +func (x *QueryAgentsByCreatorResponse_Agent) Reset() { + *x = QueryAgentsByCreatorResponse_Agent{} + if protoimpl.UnsafeEnabled { + mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryAgentsByCreatorResponse_Agent) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryAgentsByCreatorResponse_Agent) ProtoMessage() {} + +// Deprecated: Use QueryAgentsByCreatorResponse_Agent.ProtoReflect.Descriptor instead. +func (*QueryAgentsByCreatorResponse_Agent) Descriptor() ([]byte, []int) { + return file_andromeda_escrow_v1alpha1_query_proto_rawDescGZIP(), []int{5, 0} +} + +func (x *QueryAgentsByCreatorResponse_Agent) GetAddress() string { + if x != nil { + return x.Address + } + return "" +} + +func (x *QueryAgentsByCreatorResponse_Agent) GetCreator() string { + if x != nil { + return x.Creator + } + return "" +} + // Agent defines an account taking charge of a proposal. type QueryAgentsResponse_Agent struct { state protoimpl.MessageState @@ -7570,7 +11252,7 @@ type QueryAgentsResponse_Agent struct { func (x *QueryAgentsResponse_Agent) Reset() { *x = QueryAgentsResponse_Agent{} if protoimpl.UnsafeEnabled { - mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[11] + mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7584,7 +11266,7 @@ func (*QueryAgentsResponse_Agent) ProtoMessage() {} // Deprecated: Use QueryAgentsResponse_Agent.ProtoReflect.Descriptor instead. func (*QueryAgentsResponse_Agent) Descriptor() ([]byte, []int) { - return file_andromeda_escrow_v1alpha1_query_proto_rawDescGZIP(), []int{5, 0} + return file_andromeda_escrow_v1alpha1_query_proto_rawDescGZIP(), []int{7, 0} } func (x *QueryAgentsResponse_Agent) GetAddress() string { @@ -7622,7 +11304,7 @@ type QueryProposalResponse_Proposal struct { func (x *QueryProposalResponse_Proposal) Reset() { *x = QueryProposalResponse_Proposal{} if protoimpl.UnsafeEnabled { - mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[12] + mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7636,7 +11318,7 @@ func (*QueryProposalResponse_Proposal) ProtoMessage() {} // Deprecated: Use QueryProposalResponse_Proposal.ProtoReflect.Descriptor instead. func (*QueryProposalResponse_Proposal) Descriptor() ([]byte, []int) { - return file_andromeda_escrow_v1alpha1_query_proto_rawDescGZIP(), []int{7, 0} + return file_andromeda_escrow_v1alpha1_query_proto_rawDescGZIP(), []int{9, 0} } func (x *QueryProposalResponse_Proposal) GetAgent() string { @@ -7674,6 +11356,79 @@ func (x *QueryProposalResponse_Proposal) GetMetadata() string { return "" } +// Proposal defines a proposal. +type QueryProposalsByProposerResponse_Proposal struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // the address of the agent in charge + Agent string `protobuf:"bytes,1,opt,name=agent,proto3" json:"agent,omitempty"` + // the address of the proposer + Proposer string `protobuf:"bytes,2,opt,name=proposer,proto3" json:"proposer,omitempty"` + // the messages which has been executed on the submission + PreActions []*anypb.Any `protobuf:"bytes,3,rep,name=pre_actions,json=preActions,proto3" json:"pre_actions,omitempty"` + // the messages which will be executed after the actions included in Msg/Exec + PostActions []*anypb.Any `protobuf:"bytes,4,rep,name=post_actions,json=postActions,proto3" json:"post_actions,omitempty"` + // any arbitrary metadata attached to the proposal + Metadata string `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"` +} + +func (x *QueryProposalsByProposerResponse_Proposal) Reset() { + *x = QueryProposalsByProposerResponse_Proposal{} + if protoimpl.UnsafeEnabled { + mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryProposalsByProposerResponse_Proposal) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryProposalsByProposerResponse_Proposal) ProtoMessage() {} + +// Deprecated: Use QueryProposalsByProposerResponse_Proposal.ProtoReflect.Descriptor instead. +func (*QueryProposalsByProposerResponse_Proposal) Descriptor() ([]byte, []int) { + return file_andromeda_escrow_v1alpha1_query_proto_rawDescGZIP(), []int{11, 0} +} + +func (x *QueryProposalsByProposerResponse_Proposal) GetAgent() string { + if x != nil { + return x.Agent + } + return "" +} + +func (x *QueryProposalsByProposerResponse_Proposal) GetProposer() string { + if x != nil { + return x.Proposer + } + return "" +} + +func (x *QueryProposalsByProposerResponse_Proposal) GetPreActions() []*anypb.Any { + if x != nil { + return x.PreActions + } + return nil +} + +func (x *QueryProposalsByProposerResponse_Proposal) GetPostActions() []*anypb.Any { + if x != nil { + return x.PostActions + } + return nil +} + +func (x *QueryProposalsByProposerResponse_Proposal) GetMetadata() string { + if x != nil { + return x.Metadata + } + return "" +} + // Proposal defines a proposal. type QueryProposalsResponse_Proposal struct { state protoimpl.MessageState @@ -7695,7 +11450,7 @@ type QueryProposalsResponse_Proposal struct { func (x *QueryProposalsResponse_Proposal) Reset() { *x = QueryProposalsResponse_Proposal{} if protoimpl.UnsafeEnabled { - mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[13] + mi := &file_andromeda_escrow_v1alpha1_query_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7709,7 +11464,7 @@ func (*QueryProposalsResponse_Proposal) ProtoMessage() {} // Deprecated: Use QueryProposalsResponse_Proposal.ProtoReflect.Descriptor instead. func (*QueryProposalsResponse_Proposal) Descriptor() ([]byte, []int) { - return file_andromeda_escrow_v1alpha1_query_proto_rawDescGZIP(), []int{9, 0} + return file_andromeda_escrow_v1alpha1_query_proto_rawDescGZIP(), []int{13, 0} } func (x *QueryProposalsResponse_Proposal) GetAgent() string { @@ -7785,18 +11540,23 @@ var file_andromeda_escrow_v1alpha1_query_proto_rawDesc = []byte{ 0x65, 0x73, 0x73, 0x12, 0x32, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, - 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x5c, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, - 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, - 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, - 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x9d, 0x02, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, - 0x67, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4c, 0x0a, - 0x06, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x34, 0x2e, - 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, - 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, - 0x67, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x41, 0x67, + 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x99, 0x01, 0x0a, 0x1b, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x42, 0x79, 0x43, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x32, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, + 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, + 0x6e, 0x67, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x46, 0x0a, 0x0a, 0x70, + 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, + 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x22, 0xaf, 0x02, 0x0a, 0x1c, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x67, 0x65, + 0x6e, 0x74, 0x73, 0x42, 0x79, 0x43, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x55, 0x0a, 0x06, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3d, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, + 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x42, 0x79, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, @@ -7809,51 +11569,41 @@ var file_andromeda_escrow_v1alpha1_query_proto_rawDesc = []byte{ 0x73, 0x12, 0x32, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x63, 0x72, - 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x2c, 0x0a, 0x14, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, - 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, - 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x67, - 0x65, 0x6e, 0x74, 0x22, 0xed, 0x02, 0x0a, 0x15, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, - 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x55, 0x0a, - 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x39, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, - 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, - 0x6f, 0x73, 0x61, 0x6c, 0x1a, 0xfc, 0x01, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, - 0x6c, 0x12, 0x2e, 0x0a, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x05, 0x61, 0x67, 0x65, 0x6e, - 0x74, 0x12, 0x34, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, - 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x70, - 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x12, 0x35, 0x0a, 0x0b, 0x70, 0x72, 0x65, 0x5f, 0x61, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, - 0x6e, 0x79, 0x52, 0x0a, 0x70, 0x72, 0x65, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x37, - 0x0a, 0x0c, 0x70, 0x6f, 0x73, 0x74, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, 0x70, 0x6f, 0x73, 0x74, - 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0x22, 0x5f, 0x0a, 0x15, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x70, - 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0a, - 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, - 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xba, 0x03, 0x0a, 0x16, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, - 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x58, 0x0a, 0x09, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, - 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x09, - 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, + 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x5c, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x67, + 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, + 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, + 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x22, 0x9d, 0x02, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x67, 0x65, + 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4c, 0x0a, 0x06, 0x61, + 0x67, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x61, 0x6e, + 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x67, 0x65, + 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x41, 0x67, 0x65, 0x6e, + 0x74, 0x52, 0x06, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x1a, 0xfc, 0x01, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, + 0x6f, 0x6e, 0x1a, 0x6f, 0x0a, 0x05, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x32, 0x0a, 0x07, 0x61, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, + 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, + 0x32, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, + 0x74, 0x6f, 0x72, 0x22, 0x2c, 0x0a, 0x14, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x70, + 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x61, + 0x67, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x67, 0x65, 0x6e, + 0x74, 0x22, 0xed, 0x02, 0x0a, 0x15, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, + 0x73, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x55, 0x0a, 0x08, 0x70, + 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x39, 0x2e, + 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, + 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, + 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, + 0x61, 0x6c, 0x1a, 0xfc, 0x01, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x2e, 0x0a, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x12, @@ -7869,71 +11619,169 @@ var file_andromeda_escrow_v1alpha1_query_proto_rawDesc = []byte{ 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, 0x70, 0x6f, 0x73, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, - 0x61, 0x32, 0x98, 0x06, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x92, 0x01, 0x0a, 0x06, - 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x2d, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, + 0x61, 0x22, 0x9f, 0x01, 0x0a, 0x1f, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, + 0x73, 0x61, 0x6c, 0x73, 0x42, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x34, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, + 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, + 0x67, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x12, 0x46, 0x0a, 0x0a, 0x70, + 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, + 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x22, 0xce, 0x03, 0x0a, 0x20, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, + 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x42, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x62, 0x0a, 0x09, 0x70, 0x72, 0x6f, 0x70, + 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x44, 0x2e, 0x61, 0x6e, + 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, + 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x42, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, + 0x6c, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x12, 0x47, 0x0a, 0x0a, + 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, + 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, + 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0xfc, 0x01, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, + 0x61, 0x6c, 0x12, 0x2e, 0x0a, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x05, 0x61, 0x67, 0x65, + 0x6e, 0x74, 0x12, 0x34, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x08, + 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x12, 0x35, 0x0a, 0x0b, 0x70, 0x72, 0x65, 0x5f, + 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x41, 0x6e, 0x79, 0x52, 0x0a, 0x70, 0x72, 0x65, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, + 0x37, 0x0a, 0x0c, 0x70, 0x6f, 0x73, 0x74, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, + 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, 0x70, 0x6f, 0x73, + 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x22, 0x5f, 0x0a, 0x15, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, + 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, + 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, + 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, + 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xba, 0x03, 0x0a, 0x16, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, + 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x58, 0x0a, 0x09, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, + 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, + 0x09, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, + 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, + 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x1a, 0xfc, 0x01, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, + 0x12, 0x2e, 0x0a, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, + 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, + 0x12, 0x34, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x70, 0x72, + 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x12, 0x35, 0x0a, 0x0b, 0x70, 0x72, 0x65, 0x5f, 0x61, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, + 0x79, 0x52, 0x0a, 0x70, 0x72, 0x65, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x37, 0x0a, + 0x0c, 0x70, 0x6f, 0x73, 0x74, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, 0x70, 0x6f, 0x73, 0x74, 0x41, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0x32, 0xaf, 0x09, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x92, 0x01, 0x0a, + 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x2d, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, + 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, - 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, - 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x29, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x23, 0x12, 0x21, 0x2f, - 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, - 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, - 0x12, 0x97, 0x01, 0x0a, 0x05, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x2c, 0x2e, 0x61, 0x6e, 0x64, - 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, - 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x67, 0x65, 0x6e, - 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x29, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x23, 0x12, 0x21, + 0x2f, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x65, 0x73, 0x63, 0x72, 0x6f, + 0x77, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, + 0x73, 0x12, 0x97, 0x01, 0x0a, 0x05, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x2c, 0x2e, 0x61, 0x6e, + 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x67, 0x65, + 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x61, 0x6e, 0x64, 0x72, + 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x67, 0x65, 0x6e, 0x74, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x31, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, + 0x12, 0x29, 0x2f, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x65, 0x73, 0x63, + 0x72, 0x6f, 0x77, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x61, 0x67, 0x65, + 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x7d, 0x12, 0xc0, 0x01, 0x0a, 0x0f, + 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x42, 0x79, 0x43, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, + 0x36, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, + 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x42, 0x79, 0x43, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x37, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, + 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x42, + 0x79, 0x43, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x3c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x36, 0x12, 0x34, 0x2f, 0x61, 0x6e, 0x64, 0x72, 0x6f, + 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2f, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x2f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x2f, 0x7b, 0x63, + 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x7d, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x92, + 0x01, 0x0a, 0x06, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x2d, 0x2e, 0x61, 0x6e, 0x64, 0x72, + 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x67, 0x65, 0x6e, 0x74, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, - 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x31, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x12, - 0x29, 0x2f, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x65, 0x73, 0x63, 0x72, - 0x6f, 0x77, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x61, 0x67, 0x65, 0x6e, - 0x74, 0x73, 0x2f, 0x7b, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x7d, 0x12, 0x92, 0x01, 0x0a, 0x06, 0x41, - 0x67, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x2d, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, - 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, - 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, - 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, - 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x29, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x23, 0x12, 0x21, 0x2f, 0x61, - 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2f, - 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x12, - 0xa9, 0x01, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x2f, 0x2e, 0x61, - 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, - 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, - 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, - 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, - 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, - 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x3a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x34, 0x12, 0x32, 0x2f, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, + 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x29, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x23, + 0x12, 0x21, 0x2f, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x65, 0x73, 0x63, + 0x72, 0x6f, 0x77, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x61, 0x67, 0x65, + 0x6e, 0x74, 0x73, 0x12, 0xa9, 0x01, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, + 0x12, 0x2f, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, + 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x30, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, + 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x3a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x34, 0x12, 0x32, 0x2f, 0x61, 0x6e, + 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2f, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x7b, + 0x61, 0x67, 0x65, 0x6e, 0x74, 0x7d, 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, + 0xd1, 0x01, 0x0a, 0x13, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x42, 0x79, 0x50, + 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x12, 0x3a, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, + 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, + 0x6c, 0x73, 0x42, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x3b, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, + 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x42, 0x79, + 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x41, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3b, 0x12, 0x39, 0x2f, 0x61, 0x6e, 0x64, 0x72, 0x6f, + 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2f, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x7b, + 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x7d, 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, + 0x61, 0x6c, 0x73, 0x12, 0x9e, 0x01, 0x0a, 0x09, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, + 0x73, 0x12, 0x30, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, + 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, + 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x26, 0x12, 0x24, + 0x2f, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x65, 0x73, 0x63, 0x72, 0x6f, + 0x77, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x6f, + 0x73, 0x61, 0x6c, 0x73, 0x42, 0xdf, 0x01, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x6e, 0x64, + 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, + 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2c, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, - 0x68, 0x61, 0x31, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x61, 0x67, 0x65, 0x6e, - 0x74, 0x7d, 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x9e, 0x01, 0x0a, 0x09, - 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x12, 0x30, 0x2e, 0x61, 0x6e, 0x64, 0x72, - 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, - 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, - 0x73, 0x61, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x61, 0x6e, - 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, - 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, - 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2c, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x26, 0x12, 0x24, 0x2f, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, - 0x64, 0x61, 0x2f, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, - 0x61, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x42, 0xdf, 0x01, 0x0a, - 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, - 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x0a, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2c, 0x61, 0x70, - 0x69, 0x2f, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x65, 0x73, 0x63, 0x72, - 0x6f, 0x77, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x3b, 0x65, 0x73, 0x63, 0x72, - 0x6f, 0x77, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x45, 0x58, - 0xaa, 0x02, 0x19, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x45, 0x73, 0x63, - 0x72, 0x6f, 0x77, 0x2e, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xca, 0x02, 0x19, 0x41, - 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x5c, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x5c, - 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xe2, 0x02, 0x25, 0x41, 0x6e, 0x64, 0x72, 0x6f, - 0x6d, 0x65, 0x64, 0x61, 0x5c, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x5c, 0x56, 0x31, 0x61, 0x6c, - 0x70, 0x68, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0xea, 0x02, 0x1b, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x3a, 0x3a, 0x45, 0x73, - 0x63, 0x72, 0x6f, 0x77, 0x3a, 0x3a, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x68, 0x61, 0x31, 0x3b, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x45, 0x58, 0xaa, 0x02, 0x19, 0x41, 0x6e, 0x64, 0x72, 0x6f, + 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x56, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0xca, 0x02, 0x19, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, + 0x5c, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0xe2, 0x02, 0x25, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x5c, 0x45, 0x73, 0x63, + 0x72, 0x6f, 0x77, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1b, 0x41, 0x6e, 0x64, 0x72, 0x6f, + 0x6d, 0x65, 0x64, 0x61, 0x3a, 0x3a, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x3a, 0x3a, 0x56, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -7948,54 +11796,72 @@ func file_andromeda_escrow_v1alpha1_query_proto_rawDescGZIP() []byte { return file_andromeda_escrow_v1alpha1_query_proto_rawDescData } -var file_andromeda_escrow_v1alpha1_query_proto_msgTypes = make([]protoimpl.MessageInfo, 14) +var file_andromeda_escrow_v1alpha1_query_proto_msgTypes = make([]protoimpl.MessageInfo, 20) var file_andromeda_escrow_v1alpha1_query_proto_goTypes = []interface{}{ - (*QueryParamsRequest)(nil), // 0: andromeda.escrow.v1alpha1.QueryParamsRequest - (*QueryParamsResponse)(nil), // 1: andromeda.escrow.v1alpha1.QueryParamsResponse - (*QueryAgentRequest)(nil), // 2: andromeda.escrow.v1alpha1.QueryAgentRequest - (*QueryAgentResponse)(nil), // 3: andromeda.escrow.v1alpha1.QueryAgentResponse - (*QueryAgentsRequest)(nil), // 4: andromeda.escrow.v1alpha1.QueryAgentsRequest - (*QueryAgentsResponse)(nil), // 5: andromeda.escrow.v1alpha1.QueryAgentsResponse - (*QueryProposalRequest)(nil), // 6: andromeda.escrow.v1alpha1.QueryProposalRequest - (*QueryProposalResponse)(nil), // 7: andromeda.escrow.v1alpha1.QueryProposalResponse - (*QueryProposalsRequest)(nil), // 8: andromeda.escrow.v1alpha1.QueryProposalsRequest - (*QueryProposalsResponse)(nil), // 9: andromeda.escrow.v1alpha1.QueryProposalsResponse - (*QueryAgentResponse_Agent)(nil), // 10: andromeda.escrow.v1alpha1.QueryAgentResponse.Agent - (*QueryAgentsResponse_Agent)(nil), // 11: andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent - (*QueryProposalResponse_Proposal)(nil), // 12: andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal - (*QueryProposalsResponse_Proposal)(nil), // 13: andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal - (*v1beta1.PageRequest)(nil), // 14: cosmos.base.query.v1beta1.PageRequest - (*v1beta1.PageResponse)(nil), // 15: cosmos.base.query.v1beta1.PageResponse - (*anypb.Any)(nil), // 16: google.protobuf.Any + (*QueryParamsRequest)(nil), // 0: andromeda.escrow.v1alpha1.QueryParamsRequest + (*QueryParamsResponse)(nil), // 1: andromeda.escrow.v1alpha1.QueryParamsResponse + (*QueryAgentRequest)(nil), // 2: andromeda.escrow.v1alpha1.QueryAgentRequest + (*QueryAgentResponse)(nil), // 3: andromeda.escrow.v1alpha1.QueryAgentResponse + (*QueryAgentsByCreatorRequest)(nil), // 4: andromeda.escrow.v1alpha1.QueryAgentsByCreatorRequest + (*QueryAgentsByCreatorResponse)(nil), // 5: andromeda.escrow.v1alpha1.QueryAgentsByCreatorResponse + (*QueryAgentsRequest)(nil), // 6: andromeda.escrow.v1alpha1.QueryAgentsRequest + (*QueryAgentsResponse)(nil), // 7: andromeda.escrow.v1alpha1.QueryAgentsResponse + (*QueryProposalRequest)(nil), // 8: andromeda.escrow.v1alpha1.QueryProposalRequest + (*QueryProposalResponse)(nil), // 9: andromeda.escrow.v1alpha1.QueryProposalResponse + (*QueryProposalsByProposerRequest)(nil), // 10: andromeda.escrow.v1alpha1.QueryProposalsByProposerRequest + (*QueryProposalsByProposerResponse)(nil), // 11: andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse + (*QueryProposalsRequest)(nil), // 12: andromeda.escrow.v1alpha1.QueryProposalsRequest + (*QueryProposalsResponse)(nil), // 13: andromeda.escrow.v1alpha1.QueryProposalsResponse + (*QueryAgentResponse_Agent)(nil), // 14: andromeda.escrow.v1alpha1.QueryAgentResponse.Agent + (*QueryAgentsByCreatorResponse_Agent)(nil), // 15: andromeda.escrow.v1alpha1.QueryAgentsByCreatorResponse.Agent + (*QueryAgentsResponse_Agent)(nil), // 16: andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent + (*QueryProposalResponse_Proposal)(nil), // 17: andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal + (*QueryProposalsByProposerResponse_Proposal)(nil), // 18: andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse.Proposal + (*QueryProposalsResponse_Proposal)(nil), // 19: andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal + (*v1beta1.PageRequest)(nil), // 20: cosmos.base.query.v1beta1.PageRequest + (*v1beta1.PageResponse)(nil), // 21: cosmos.base.query.v1beta1.PageResponse + (*anypb.Any)(nil), // 22: google.protobuf.Any } var file_andromeda_escrow_v1alpha1_query_proto_depIdxs = []int32{ - 10, // 0: andromeda.escrow.v1alpha1.QueryAgentResponse.agent:type_name -> andromeda.escrow.v1alpha1.QueryAgentResponse.Agent - 14, // 1: andromeda.escrow.v1alpha1.QueryAgentsRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 11, // 2: andromeda.escrow.v1alpha1.QueryAgentsResponse.agents:type_name -> andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent - 15, // 3: andromeda.escrow.v1alpha1.QueryAgentsResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 12, // 4: andromeda.escrow.v1alpha1.QueryProposalResponse.proposal:type_name -> andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal - 14, // 5: andromeda.escrow.v1alpha1.QueryProposalsRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 13, // 6: andromeda.escrow.v1alpha1.QueryProposalsResponse.proposals:type_name -> andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal - 15, // 7: andromeda.escrow.v1alpha1.QueryProposalsResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 16, // 8: andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.pre_actions:type_name -> google.protobuf.Any - 16, // 9: andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.post_actions:type_name -> google.protobuf.Any - 16, // 10: andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.pre_actions:type_name -> google.protobuf.Any - 16, // 11: andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.post_actions:type_name -> google.protobuf.Any - 0, // 12: andromeda.escrow.v1alpha1.Query.Params:input_type -> andromeda.escrow.v1alpha1.QueryParamsRequest - 2, // 13: andromeda.escrow.v1alpha1.Query.Agent:input_type -> andromeda.escrow.v1alpha1.QueryAgentRequest - 4, // 14: andromeda.escrow.v1alpha1.Query.Agents:input_type -> andromeda.escrow.v1alpha1.QueryAgentsRequest - 6, // 15: andromeda.escrow.v1alpha1.Query.Proposal:input_type -> andromeda.escrow.v1alpha1.QueryProposalRequest - 8, // 16: andromeda.escrow.v1alpha1.Query.Proposals:input_type -> andromeda.escrow.v1alpha1.QueryProposalsRequest - 1, // 17: andromeda.escrow.v1alpha1.Query.Params:output_type -> andromeda.escrow.v1alpha1.QueryParamsResponse - 3, // 18: andromeda.escrow.v1alpha1.Query.Agent:output_type -> andromeda.escrow.v1alpha1.QueryAgentResponse - 5, // 19: andromeda.escrow.v1alpha1.Query.Agents:output_type -> andromeda.escrow.v1alpha1.QueryAgentsResponse - 7, // 20: andromeda.escrow.v1alpha1.Query.Proposal:output_type -> andromeda.escrow.v1alpha1.QueryProposalResponse - 9, // 21: andromeda.escrow.v1alpha1.Query.Proposals:output_type -> andromeda.escrow.v1alpha1.QueryProposalsResponse - 17, // [17:22] is the sub-list for method output_type - 12, // [12:17] is the sub-list for method input_type - 12, // [12:12] is the sub-list for extension type_name - 12, // [12:12] is the sub-list for extension extendee - 0, // [0:12] is the sub-list for field type_name + 14, // 0: andromeda.escrow.v1alpha1.QueryAgentResponse.agent:type_name -> andromeda.escrow.v1alpha1.QueryAgentResponse.Agent + 20, // 1: andromeda.escrow.v1alpha1.QueryAgentsByCreatorRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 15, // 2: andromeda.escrow.v1alpha1.QueryAgentsByCreatorResponse.agents:type_name -> andromeda.escrow.v1alpha1.QueryAgentsByCreatorResponse.Agent + 21, // 3: andromeda.escrow.v1alpha1.QueryAgentsByCreatorResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 20, // 4: andromeda.escrow.v1alpha1.QueryAgentsRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 16, // 5: andromeda.escrow.v1alpha1.QueryAgentsResponse.agents:type_name -> andromeda.escrow.v1alpha1.QueryAgentsResponse.Agent + 21, // 6: andromeda.escrow.v1alpha1.QueryAgentsResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 17, // 7: andromeda.escrow.v1alpha1.QueryProposalResponse.proposal:type_name -> andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal + 20, // 8: andromeda.escrow.v1alpha1.QueryProposalsByProposerRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 18, // 9: andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse.proposals:type_name -> andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse.Proposal + 21, // 10: andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 20, // 11: andromeda.escrow.v1alpha1.QueryProposalsRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 19, // 12: andromeda.escrow.v1alpha1.QueryProposalsResponse.proposals:type_name -> andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal + 21, // 13: andromeda.escrow.v1alpha1.QueryProposalsResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 22, // 14: andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.pre_actions:type_name -> google.protobuf.Any + 22, // 15: andromeda.escrow.v1alpha1.QueryProposalResponse.Proposal.post_actions:type_name -> google.protobuf.Any + 22, // 16: andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse.Proposal.pre_actions:type_name -> google.protobuf.Any + 22, // 17: andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse.Proposal.post_actions:type_name -> google.protobuf.Any + 22, // 18: andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.pre_actions:type_name -> google.protobuf.Any + 22, // 19: andromeda.escrow.v1alpha1.QueryProposalsResponse.Proposal.post_actions:type_name -> google.protobuf.Any + 0, // 20: andromeda.escrow.v1alpha1.Query.Params:input_type -> andromeda.escrow.v1alpha1.QueryParamsRequest + 2, // 21: andromeda.escrow.v1alpha1.Query.Agent:input_type -> andromeda.escrow.v1alpha1.QueryAgentRequest + 4, // 22: andromeda.escrow.v1alpha1.Query.AgentsByCreator:input_type -> andromeda.escrow.v1alpha1.QueryAgentsByCreatorRequest + 6, // 23: andromeda.escrow.v1alpha1.Query.Agents:input_type -> andromeda.escrow.v1alpha1.QueryAgentsRequest + 8, // 24: andromeda.escrow.v1alpha1.Query.Proposal:input_type -> andromeda.escrow.v1alpha1.QueryProposalRequest + 10, // 25: andromeda.escrow.v1alpha1.Query.ProposalsByProposer:input_type -> andromeda.escrow.v1alpha1.QueryProposalsByProposerRequest + 12, // 26: andromeda.escrow.v1alpha1.Query.Proposals:input_type -> andromeda.escrow.v1alpha1.QueryProposalsRequest + 1, // 27: andromeda.escrow.v1alpha1.Query.Params:output_type -> andromeda.escrow.v1alpha1.QueryParamsResponse + 3, // 28: andromeda.escrow.v1alpha1.Query.Agent:output_type -> andromeda.escrow.v1alpha1.QueryAgentResponse + 5, // 29: andromeda.escrow.v1alpha1.Query.AgentsByCreator:output_type -> andromeda.escrow.v1alpha1.QueryAgentsByCreatorResponse + 7, // 30: andromeda.escrow.v1alpha1.Query.Agents:output_type -> andromeda.escrow.v1alpha1.QueryAgentsResponse + 9, // 31: andromeda.escrow.v1alpha1.Query.Proposal:output_type -> andromeda.escrow.v1alpha1.QueryProposalResponse + 11, // 32: andromeda.escrow.v1alpha1.Query.ProposalsByProposer:output_type -> andromeda.escrow.v1alpha1.QueryProposalsByProposerResponse + 13, // 33: andromeda.escrow.v1alpha1.Query.Proposals:output_type -> andromeda.escrow.v1alpha1.QueryProposalsResponse + 27, // [27:34] is the sub-list for method output_type + 20, // [20:27] is the sub-list for method input_type + 20, // [20:20] is the sub-list for extension type_name + 20, // [20:20] is the sub-list for extension extendee + 0, // [0:20] is the sub-list for field type_name } func init() { file_andromeda_escrow_v1alpha1_query_proto_init() } @@ -8053,7 +11919,7 @@ func file_andromeda_escrow_v1alpha1_query_proto_init() { } } file_andromeda_escrow_v1alpha1_query_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryAgentsRequest); i { + switch v := v.(*QueryAgentsByCreatorRequest); i { case 0: return &v.state case 1: @@ -8065,7 +11931,7 @@ func file_andromeda_escrow_v1alpha1_query_proto_init() { } } file_andromeda_escrow_v1alpha1_query_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryAgentsResponse); i { + switch v := v.(*QueryAgentsByCreatorResponse); i { case 0: return &v.state case 1: @@ -8077,7 +11943,7 @@ func file_andromeda_escrow_v1alpha1_query_proto_init() { } } file_andromeda_escrow_v1alpha1_query_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryProposalRequest); i { + switch v := v.(*QueryAgentsRequest); i { case 0: return &v.state case 1: @@ -8089,7 +11955,7 @@ func file_andromeda_escrow_v1alpha1_query_proto_init() { } } file_andromeda_escrow_v1alpha1_query_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryProposalResponse); i { + switch v := v.(*QueryAgentsResponse); i { case 0: return &v.state case 1: @@ -8101,7 +11967,7 @@ func file_andromeda_escrow_v1alpha1_query_proto_init() { } } file_andromeda_escrow_v1alpha1_query_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryProposalsRequest); i { + switch v := v.(*QueryProposalRequest); i { case 0: return &v.state case 1: @@ -8113,7 +11979,7 @@ func file_andromeda_escrow_v1alpha1_query_proto_init() { } } file_andromeda_escrow_v1alpha1_query_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryProposalsResponse); i { + switch v := v.(*QueryProposalResponse); i { case 0: return &v.state case 1: @@ -8125,7 +11991,7 @@ func file_andromeda_escrow_v1alpha1_query_proto_init() { } } file_andromeda_escrow_v1alpha1_query_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryAgentResponse_Agent); i { + switch v := v.(*QueryProposalsByProposerRequest); i { case 0: return &v.state case 1: @@ -8137,7 +12003,7 @@ func file_andromeda_escrow_v1alpha1_query_proto_init() { } } file_andromeda_escrow_v1alpha1_query_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryAgentsResponse_Agent); i { + switch v := v.(*QueryProposalsByProposerResponse); i { case 0: return &v.state case 1: @@ -8149,7 +12015,7 @@ func file_andromeda_escrow_v1alpha1_query_proto_init() { } } file_andromeda_escrow_v1alpha1_query_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryProposalResponse_Proposal); i { + switch v := v.(*QueryProposalsRequest); i { case 0: return &v.state case 1: @@ -8161,6 +12027,78 @@ func file_andromeda_escrow_v1alpha1_query_proto_init() { } } file_andromeda_escrow_v1alpha1_query_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryProposalsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_andromeda_escrow_v1alpha1_query_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryAgentResponse_Agent); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_andromeda_escrow_v1alpha1_query_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryAgentsByCreatorResponse_Agent); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_andromeda_escrow_v1alpha1_query_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryAgentsResponse_Agent); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_andromeda_escrow_v1alpha1_query_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryProposalResponse_Proposal); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_andromeda_escrow_v1alpha1_query_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryProposalsByProposerResponse_Proposal); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_andromeda_escrow_v1alpha1_query_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryProposalsResponse_Proposal); i { case 0: return &v.state @@ -8179,7 +12117,7 @@ func file_andromeda_escrow_v1alpha1_query_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_andromeda_escrow_v1alpha1_query_proto_rawDesc, NumEnums: 0, - NumMessages: 14, + NumMessages: 20, NumExtensions: 0, NumServices: 1, }, diff --git a/x/escrow/api/andromeda/escrow/v1alpha1/query_grpc.pb.go b/x/escrow/api/andromeda/escrow/v1alpha1/query_grpc.pb.go index 8ae9373..5306998 100644 --- a/x/escrow/api/andromeda/escrow/v1alpha1/query_grpc.pb.go +++ b/x/escrow/api/andromeda/escrow/v1alpha1/query_grpc.pb.go @@ -19,11 +19,13 @@ import ( const _ = grpc.SupportPackageIsVersion7 const ( - Query_Params_FullMethodName = "/andromeda.escrow.v1alpha1.Query/Params" - Query_Agent_FullMethodName = "/andromeda.escrow.v1alpha1.Query/Agent" - Query_Agents_FullMethodName = "/andromeda.escrow.v1alpha1.Query/Agents" - Query_Proposal_FullMethodName = "/andromeda.escrow.v1alpha1.Query/Proposal" - Query_Proposals_FullMethodName = "/andromeda.escrow.v1alpha1.Query/Proposals" + Query_Params_FullMethodName = "/andromeda.escrow.v1alpha1.Query/Params" + Query_Agent_FullMethodName = "/andromeda.escrow.v1alpha1.Query/Agent" + Query_AgentsByCreator_FullMethodName = "/andromeda.escrow.v1alpha1.Query/AgentsByCreator" + Query_Agents_FullMethodName = "/andromeda.escrow.v1alpha1.Query/Agents" + Query_Proposal_FullMethodName = "/andromeda.escrow.v1alpha1.Query/Proposal" + Query_ProposalsByProposer_FullMethodName = "/andromeda.escrow.v1alpha1.Query/ProposalsByProposer" + Query_Proposals_FullMethodName = "/andromeda.escrow.v1alpha1.Query/Proposals" ) // QueryClient is the client API for Query service. @@ -34,10 +36,14 @@ type QueryClient interface { Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) // Agent queries an agent. Agent(ctx context.Context, in *QueryAgentRequest, opts ...grpc.CallOption) (*QueryAgentResponse, error) + // AgentsByCreator queries all the agents by its creator. + AgentsByCreator(ctx context.Context, in *QueryAgentsByCreatorRequest, opts ...grpc.CallOption) (*QueryAgentsByCreatorResponse, error) // Agents queries all the agents. Agents(ctx context.Context, in *QueryAgentsRequest, opts ...grpc.CallOption) (*QueryAgentsResponse, error) // Proposal queries a proposal. Proposal(ctx context.Context, in *QueryProposalRequest, opts ...grpc.CallOption) (*QueryProposalResponse, error) + // ProposalsByProposer queries all the proposals by its proposer. + ProposalsByProposer(ctx context.Context, in *QueryProposalsByProposerRequest, opts ...grpc.CallOption) (*QueryProposalsByProposerResponse, error) // Proposals queries all the proposals. Proposals(ctx context.Context, in *QueryProposalsRequest, opts ...grpc.CallOption) (*QueryProposalsResponse, error) } @@ -68,6 +74,15 @@ func (c *queryClient) Agent(ctx context.Context, in *QueryAgentRequest, opts ... return out, nil } +func (c *queryClient) AgentsByCreator(ctx context.Context, in *QueryAgentsByCreatorRequest, opts ...grpc.CallOption) (*QueryAgentsByCreatorResponse, error) { + out := new(QueryAgentsByCreatorResponse) + err := c.cc.Invoke(ctx, Query_AgentsByCreator_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *queryClient) Agents(ctx context.Context, in *QueryAgentsRequest, opts ...grpc.CallOption) (*QueryAgentsResponse, error) { out := new(QueryAgentsResponse) err := c.cc.Invoke(ctx, Query_Agents_FullMethodName, in, out, opts...) @@ -86,6 +101,15 @@ func (c *queryClient) Proposal(ctx context.Context, in *QueryProposalRequest, op return out, nil } +func (c *queryClient) ProposalsByProposer(ctx context.Context, in *QueryProposalsByProposerRequest, opts ...grpc.CallOption) (*QueryProposalsByProposerResponse, error) { + out := new(QueryProposalsByProposerResponse) + err := c.cc.Invoke(ctx, Query_ProposalsByProposer_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *queryClient) Proposals(ctx context.Context, in *QueryProposalsRequest, opts ...grpc.CallOption) (*QueryProposalsResponse, error) { out := new(QueryProposalsResponse) err := c.cc.Invoke(ctx, Query_Proposals_FullMethodName, in, out, opts...) @@ -103,10 +127,14 @@ type QueryServer interface { Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) // Agent queries an agent. Agent(context.Context, *QueryAgentRequest) (*QueryAgentResponse, error) + // AgentsByCreator queries all the agents by its creator. + AgentsByCreator(context.Context, *QueryAgentsByCreatorRequest) (*QueryAgentsByCreatorResponse, error) // Agents queries all the agents. Agents(context.Context, *QueryAgentsRequest) (*QueryAgentsResponse, error) // Proposal queries a proposal. Proposal(context.Context, *QueryProposalRequest) (*QueryProposalResponse, error) + // ProposalsByProposer queries all the proposals by its proposer. + ProposalsByProposer(context.Context, *QueryProposalsByProposerRequest) (*QueryProposalsByProposerResponse, error) // Proposals queries all the proposals. Proposals(context.Context, *QueryProposalsRequest) (*QueryProposalsResponse, error) mustEmbedUnimplementedQueryServer() @@ -122,12 +150,18 @@ func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*Q func (UnimplementedQueryServer) Agent(context.Context, *QueryAgentRequest) (*QueryAgentResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Agent not implemented") } +func (UnimplementedQueryServer) AgentsByCreator(context.Context, *QueryAgentsByCreatorRequest) (*QueryAgentsByCreatorResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AgentsByCreator not implemented") +} func (UnimplementedQueryServer) Agents(context.Context, *QueryAgentsRequest) (*QueryAgentsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Agents not implemented") } func (UnimplementedQueryServer) Proposal(context.Context, *QueryProposalRequest) (*QueryProposalResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Proposal not implemented") } +func (UnimplementedQueryServer) ProposalsByProposer(context.Context, *QueryProposalsByProposerRequest) (*QueryProposalsByProposerResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ProposalsByProposer not implemented") +} func (UnimplementedQueryServer) Proposals(context.Context, *QueryProposalsRequest) (*QueryProposalsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Proposals not implemented") } @@ -180,6 +214,24 @@ func _Query_Agent_Handler(srv interface{}, ctx context.Context, dec func(interfa return interceptor(ctx, in, info, handler) } +func _Query_AgentsByCreator_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryAgentsByCreatorRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).AgentsByCreator(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_AgentsByCreator_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).AgentsByCreator(ctx, req.(*QueryAgentsByCreatorRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _Query_Agents_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(QueryAgentsRequest) if err := dec(in); err != nil { @@ -216,6 +268,24 @@ func _Query_Proposal_Handler(srv interface{}, ctx context.Context, dec func(inte return interceptor(ctx, in, info, handler) } +func _Query_ProposalsByProposer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryProposalsByProposerRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).ProposalsByProposer(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_ProposalsByProposer_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).ProposalsByProposer(ctx, req.(*QueryProposalsByProposerRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _Query_Proposals_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(QueryProposalsRequest) if err := dec(in); err != nil { @@ -249,6 +319,10 @@ var Query_ServiceDesc = grpc.ServiceDesc{ MethodName: "Agent", Handler: _Query_Agent_Handler, }, + { + MethodName: "AgentsByCreator", + Handler: _Query_AgentsByCreator_Handler, + }, { MethodName: "Agents", Handler: _Query_Agents_Handler, @@ -257,6 +331,10 @@ var Query_ServiceDesc = grpc.ServiceDesc{ MethodName: "Proposal", Handler: _Query_Proposal_Handler, }, + { + MethodName: "ProposalsByProposer", + Handler: _Query_ProposalsByProposer_Handler, + }, { MethodName: "Proposals", Handler: _Query_Proposals_Handler, diff --git a/x/escrow/keeper/internal/grpc_query.go b/x/escrow/keeper/internal/grpc_query.go index 573707e..344c6f9 100644 --- a/x/escrow/keeper/internal/grpc_query.go +++ b/x/escrow/keeper/internal/grpc_query.go @@ -3,6 +3,7 @@ package internal import ( "context" + "cosmossdk.io/collections" "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" @@ -74,6 +75,43 @@ func (s queryServer) Agent(ctx context.Context, req *escrowv1alpha1.QueryAgentRe }, nil } +func (s queryServer) AgentsByCreator(ctx context.Context, req *escrowv1alpha1.QueryAgentsByCreatorRequest) (*escrowv1alpha1.QueryAgentsByCreatorResponse, error) { + if req == nil { + return nil, errNilRequest + } + + if req.Creator == "" { + return nil, escrowv1alpha1.ErrUnimplemented.Wrap("nil creator") + } + + creator, err := s.keeper.addressStringToBytes(req.Creator) + if err != nil { + return nil, errors.Wrap(err, "creator") + } + + agents, pageRes, err := query.CollectionPaginate(ctx, s.keeper.agents.Indexes.creator, req.Pagination, func(key collections.Pair[sdk.AccAddress, sdk.AccAddress], _ collections.NoValue) (*escrowv1alpha1.QueryAgentsByCreatorResponse_Agent, error) { + address := key.K2() + + addressStr, err := s.keeper.addressBytesToString(address) + if err != nil { + return nil, errors.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "address") + } + + return &escrowv1alpha1.QueryAgentsByCreatorResponse_Agent{ + Address: addressStr, + Creator: req.Creator, + }, nil + }, query.WithCollectionPaginationPairPrefix[sdk.AccAddress, sdk.AccAddress](creator)) + if err != nil { + return nil, err + } + + return &escrowv1alpha1.QueryAgentsByCreatorResponse{ + Agents: agents, + Pagination: pageRes, + }, nil +} + func (s queryServer) Agents(ctx context.Context, req *escrowv1alpha1.QueryAgentsRequest) (*escrowv1alpha1.QueryAgentsResponse, error) { if req == nil { return nil, errNilRequest @@ -143,6 +181,51 @@ func (s queryServer) Proposal(ctx context.Context, req *escrowv1alpha1.QueryProp }, nil } +func (s queryServer) ProposalsByProposer(ctx context.Context, req *escrowv1alpha1.QueryProposalsByProposerRequest) (*escrowv1alpha1.QueryProposalsByProposerResponse, error) { + if req == nil { + return nil, errNilRequest + } + + if req.Proposer == "" { + return nil, escrowv1alpha1.ErrUnimplemented.Wrap("nil proposer") + } + + proposer, err := s.keeper.addressStringToBytes(req.Proposer) + if err != nil { + return nil, errors.Wrap(err, "proposer") + } + + proposals, pageRes, err := query.CollectionPaginate(ctx, s.keeper.proposals.Indexes.proposer, req.Pagination, func(key collections.Pair[sdk.AccAddress, sdk.AccAddress], _ collections.NoValue) (*escrowv1alpha1.QueryProposalsByProposerResponse_Proposal, error) { + agent := key.K2() + proposal, err := s.keeper.proposals.Get(ctx, agent) + if err != nil { + return nil, escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()) + } + s.keeper.fixActions(&proposal) + + agentStr, err := s.keeper.addressBytesToString(agent) + if err != nil { + return nil, errors.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "agent") + } + + return &escrowv1alpha1.QueryProposalsByProposerResponse_Proposal{ + Agent: agentStr, + Proposer: req.Proposer, + PreActions: proposal.PreActions, + PostActions: proposal.PostActions, + Metadata: proposal.Metadata, + }, nil + }, query.WithCollectionPaginationPairPrefix[sdk.AccAddress, sdk.AccAddress](proposer)) + if err != nil { + return nil, err + } + + return &escrowv1alpha1.QueryProposalsByProposerResponse{ + Proposals: proposals, + Pagination: pageRes, + }, nil +} + func (s queryServer) Proposals(ctx context.Context, req *escrowv1alpha1.QueryProposalsRequest) (*escrowv1alpha1.QueryProposalsResponse, error) { if req == nil { return nil, errNilRequest @@ -151,6 +234,7 @@ func (s queryServer) Proposals(ctx context.Context, req *escrowv1alpha1.QueryPro proposals, pageRes, err := query.CollectionPaginate(ctx, s.keeper.proposals, req.Pagination, func(key sdk.AccAddress, value escrowv1alpha1.Proposal) (*escrowv1alpha1.QueryProposalsResponse_Proposal, error) { agent := key proposal := value + s.keeper.fixActions(&proposal) agentStr, err := s.keeper.addressBytesToString(agent) if err != nil { @@ -162,8 +246,6 @@ func (s queryServer) Proposals(ctx context.Context, req *escrowv1alpha1.QueryPro return nil, errors.Wrap(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), "proposer") } - s.keeper.fixActions(&proposal) - return &escrowv1alpha1.QueryProposalsResponse_Proposal{ Agent: agentStr, Proposer: proposerStr, diff --git a/x/escrow/keeper/internal/grpc_query_test.go b/x/escrow/keeper/internal/grpc_query_test.go index 116ea1b..8229546 100644 --- a/x/escrow/keeper/internal/grpc_query_test.go +++ b/x/escrow/keeper/internal/grpc_query_test.go @@ -100,6 +100,50 @@ func (s *KeeperTestSuite) TestQueryAgents() { testutil.DoTest(s.T(), tester, cases) } +func (s *KeeperTestSuite) TestQueryAgentsByCreator() { + tester := func(subject escrowv1alpha1.QueryAgentsByCreatorRequest) error { + res, err := s.queryServer.AgentsByCreator(s.ctx, &subject) + if err != nil { + return err + } + s.Require().NotNil(res) + + s.Require().Len(res.Agents, 1) + for i, agent := range res.Agents { + s.Require().NotNil(agent, i) + + s.Require().NotNil(agent.Address, i) + s.Require().Equal(subject.Creator, agent.Creator, i) + } + + return nil + } + cases := []map[string]testutil.Case[escrowv1alpha1.QueryAgentsByCreatorRequest]{ + { + "nil creator": { + Error: func() error { + return escrowv1alpha1.ErrUnimplemented + }, + }, + "valid creator": { + Malleate: func(subject *escrowv1alpha1.QueryAgentsByCreatorRequest) { + subject.Creator = s.addressBytesToString(s.seller) + }, + }, + "invalid creator": { + Malleate: func(subject *escrowv1alpha1.QueryAgentsByCreatorRequest) { + subject.Creator = notInBech32 + }, + Error: func() error { + return escrowv1alpha1.ErrInvalidAddress + }, + }, + }, + } + + testutil.DoTest(s.T(), tester, cases) +} + func (s *KeeperTestSuite) TestQueryProposal() { tester := func(subject escrowv1alpha1.QueryProposalRequest) error { res, err := s.queryServer.Proposal(s.ctx, &subject) @@ -129,6 +173,14 @@ func (s *KeeperTestSuite) TestQueryProposal() { subject.Agent = s.addressBytesToString(s.agentAny) }, }, + "invalid agent": { + Malleate: func(subject *escrowv1alpha1.QueryProposalRequest) { + subject.Agent = notInBech32 + }, + Error: func() error { + return escrowv1alpha1.ErrInvalidAddress + }, + }, "proposal not found": { Malleate: func(subject *escrowv1alpha1.QueryProposalRequest) { subject.Agent = s.addressBytesToString(s.agentIdle) @@ -143,6 +195,52 @@ func (s *KeeperTestSuite) TestQueryProposal() { testutil.DoTest(s.T(), tester, cases) } +func (s *KeeperTestSuite) TestQueryProposalsByProposer() { + tester := func(subject escrowv1alpha1.QueryProposalsByProposerRequest) error { + res, err := s.queryServer.ProposalsByProposer(s.ctx, &subject) + if err != nil { + return err + } + s.Require().NotNil(res) + + s.Require().Len(res.Proposals, 2) + for i, proposal := range res.Proposals { + s.Require().NotNil(proposal, i) + + s.Require().NotNil(proposal.Agent, i) + s.Require().Equal(subject.Proposer, proposal.Proposer, i) + s.Require().NotNil(proposal.PreActions, i) + s.Require().NotNil(proposal.PostActions, i) + s.Require().NotEmpty(proposal.Metadata, i) + } + return nil + } + cases := []map[string]testutil.Case[escrowv1alpha1.QueryProposalsByProposerRequest]{ + { + "nil proposer": { + Error: func() error { + return escrowv1alpha1.ErrUnimplemented + }, + }, + "valid proposer": { + Malleate: func(subject *escrowv1alpha1.QueryProposalsByProposerRequest) { + subject.Proposer = s.addressBytesToString(s.seller) + }, + }, + "invalid proposer": { + Malleate: func(subject *escrowv1alpha1.QueryProposalsByProposerRequest) { + subject.Proposer = notInBech32 + }, + Error: func() error { + return escrowv1alpha1.ErrInvalidAddress + }, + }, + }, + } + + testutil.DoTest(s.T(), tester, cases) +} + func (s *KeeperTestSuite) TestQueryProposals() { tester := func(subject escrowv1alpha1.QueryProposalsRequest) error { res, err := s.queryServer.Proposals(s.ctx, &subject) diff --git a/x/escrow/keeper/internal/keys.go b/x/escrow/keeper/internal/keys.go index d5242ea..33d41fc 100644 --- a/x/escrow/keeper/internal/keys.go +++ b/x/escrow/keeper/internal/keys.go @@ -2,11 +2,11 @@ package internal import ( "cosmossdk.io/collections" - "cosmossdk.io/collections/indexes" sdk "github.com/cosmos/cosmos-sdk/types" escrowv1alpha1 "github.com/0tech/andromeda/x/escrow/andromeda/escrow/v1alpha1" + "github.com/0tech/andromeda/x/escrow/ported/indexes" ) var ( diff --git a/x/escrow/proto/andromeda/escrow/v1alpha1/query.proto b/x/escrow/proto/andromeda/escrow/v1alpha1/query.proto index f3972a2..be8c763 100644 --- a/x/escrow/proto/andromeda/escrow/v1alpha1/query.proto +++ b/x/escrow/proto/andromeda/escrow/v1alpha1/query.proto @@ -18,6 +18,11 @@ service Query { option (google.api.http).get = "/andromeda/escrow/v1alpha1/agents/{agent}"; } + // AgentsByCreator queries all the agents by its creator. + rpc AgentsByCreator(QueryAgentsByCreatorRequest) returns (QueryAgentsByCreatorResponse) { + option (google.api.http).get = "/andromeda/escrow/v1alpha1/creators/{creator}/agents"; + } + // Agents queries all the agents. rpc Agents(QueryAgentsRequest) returns (QueryAgentsResponse) { option (google.api.http).get = "/andromeda/escrow/v1alpha1/agents"; @@ -28,6 +33,11 @@ service Query { option (google.api.http).get = "/andromeda/escrow/v1alpha1/agents/{agent}/proposal"; } + // ProposalsByProposer queries all the proposals by its proposer. + rpc ProposalsByProposer(QueryProposalsByProposerRequest) returns (QueryProposalsByProposerResponse) { + option (google.api.http).get = "/andromeda/escrow/v1alpha1/proposers/{proposer}/proposals"; + } + // Proposals queries all the proposals. rpc Proposals(QueryProposalsRequest) returns (QueryProposalsResponse) { option (google.api.http).get = "/andromeda/escrow/v1alpha1/proposals"; @@ -64,6 +74,33 @@ message QueryAgentResponse { Agent agent = 1; } +// QueryAgentsByCreatorRequest is the request type for the Query/AgentsByCreator RPC method. +message QueryAgentsByCreatorRequest { + // the address of a creator + string creator = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // optional pagination for the request + cosmos.base.query.v1beta1.PageRequest pagination = 2; +} + +// QueryAgentsByCreatorResponse is the response type for the Query/AgentsByCreator RPC method. +message QueryAgentsByCreatorResponse { + // Agent defines an account taking charge of a proposal. + message Agent { + // the address of the agent + string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // the address of the creator + string creator = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + } + + // all the agents created by the creator + repeated Agent agents = 1; + + // pagination in the response + cosmos.base.query.v1beta1.PageResponse pagination = 2; +} + // QueryAgentsRequest is the request type for the Query/Agents RPC method. message QueryAgentsRequest { // optional pagination for the request @@ -118,10 +155,46 @@ message QueryProposalResponse { Proposal proposal = 1; } +// QueryProposalsByProposerRequest is the request type for the Query/ProposalsByProposer RPC method. +message QueryProposalsByProposerRequest { + // the address of a proposer + string proposer = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // optional pagination for the request + cosmos.base.query.v1beta1.PageRequest pagination = 2; +} + +// QueryProposalsByProposerResponse is the response type for the Query/ProposalsByProposer RPC method. +message QueryProposalsByProposerResponse { + // Proposal defines a proposal. + message Proposal { + // the address of the agent in charge + string agent = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // the address of the proposer + string proposer = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // the messages which has been executed on the submission + repeated google.protobuf.Any pre_actions = 3; + + // the messages which will be executed after the actions included in Msg/Exec + repeated google.protobuf.Any post_actions = 4; + + // any arbitrary metadata attached to the proposal + string metadata = 5; + } + + // all the proposals proposed by the proposer + repeated Proposal proposals = 1; + + // pagination in the response + cosmos.base.query.v1beta1.PageResponse pagination = 2; +} + // QueryProposalsRequest is the request type for the Query/Proposals RPC method. message QueryProposalsRequest { // optional pagination for the request - cosmos.base.query.v1beta1.PageRequest pagination = 2; + cosmos.base.query.v1beta1.PageRequest pagination = 1; } // QueryProposalsResponse is the response type for the Query/Proposals RPC method. From 87e48970c2ff67945fd3142f65112b33b09415e4 Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Wed, 31 Jan 2024 13:45:34 +0000 Subject: [PATCH 38/62] Add target for installing prerequisites --- CMakeLists.txt | 2 + install-proto-tools.sh | 7 ---- install/CMakeLists.txt | 14 +++++++ install/bare/CMakeLists.txt | 40 +++++++++++++++++++ install/bare/install-buf.cmake | 25 ++++++++++++ install/bare/install-golangci-lint.cmake | 27 +++++++++++++ install/bare/install-protoc-gen-go-grpc.cmake | 27 +++++++++++++ .../bare/install-protoc-gen-go-pulsar.cmake | 20 ++++++++++ install/bare/install-protoc-gen-go.cmake | 27 +++++++++++++ .../bare/install-protoc-gen-gocosmos.cmake | 20 ++++++++++ .../install-protoc-gen-grpc-gateway.cmake | 20 ++++++++++ 11 files changed, 222 insertions(+), 7 deletions(-) delete mode 100755 install-proto-tools.sh create mode 100644 install/CMakeLists.txt create mode 100644 install/bare/CMakeLists.txt create mode 100644 install/bare/install-buf.cmake create mode 100644 install/bare/install-golangci-lint.cmake create mode 100644 install/bare/install-protoc-gen-go-grpc.cmake create mode 100644 install/bare/install-protoc-gen-go-pulsar.cmake create mode 100644 install/bare/install-protoc-gen-go.cmake create mode 100644 install/bare/install-protoc-gen-gocosmos.cmake create mode 100644 install/bare/install-protoc-gen-grpc-gateway.cmake diff --git a/CMakeLists.txt b/CMakeLists.txt index d15bff7..f386d6b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -19,6 +19,8 @@ add_custom_target(buf_build) add_custom_target(buf_lint) add_custom_target(buf_generate) +add_subdirectory(install) + add_subdirectory(app) add_subdirectory(cmd/and) diff --git a/install-proto-tools.sh b/install-proto-tools.sh deleted file mode 100755 index 7689b85..0000000 --- a/install-proto-tools.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh - -go install github.com/bufbuild/buf/cmd/buf@latest -go install github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway@latest -go install github.com/cosmos/gogoproto/protoc-gen-gocosmos@latest -go install github.com/cosmos/cosmos-proto/cmd/protoc-gen-go-pulsar@latest -go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest diff --git a/install/CMakeLists.txt b/install/CMakeLists.txt new file mode 100644 index 0000000..266e7a7 --- /dev/null +++ b/install/CMakeLists.txt @@ -0,0 +1,14 @@ +set(GO_VERSION 1.21 CACHE STRING "go version") +set(GO_LINT_VERSION 1.55.2 CACHE STRING "golangci-lint version") + +set(BUF_VERSION 1.29.0 CACHE STRING "buf version") + +set(PROTOC_GEN_GO_VERSION 1.32 CACHE STRING "protoc-gen-go version") +set(PROTOC_GEN_GO_GRPC_VERSION 1.3.0 CACHE STRING "protoc-gen-go-grpc version") +set(PROTOC_GEN_GRPC_GATEWAY_VERSION 1.16.0 CACHE STRING "protoc-gen-grpc-gateway version") +set(PROTOC_GEN_GOCOSMOS_VERSION 1.4.11 CACHE STRING "protoc-gen-gocosmos version") +set(PROTOC_GEN_GO_PULSAR_VERSION 1.0.0-beta.3 CACHE STRING "protoc-gen-go-pulsar version") + + +add_subdirectory(bare) +# add_subdirectory(docker) # TODO diff --git a/install/bare/CMakeLists.txt b/install/bare/CMakeLists.txt new file mode 100644 index 0000000..f95d384 --- /dev/null +++ b/install/bare/CMakeLists.txt @@ -0,0 +1,40 @@ +add_custom_target(install_prerequisites_dev + DEPENDS install_golangci-lint install_buf install_protoc-gen-gocosmos install_protoc-gen-go-pulsar install_protoc-gen-grpc-gateway +) + +add_custom_target(install_buf + COMMAND cmake -D VERSION=${BUF_VERSION} -P ${CMAKE_CURRENT_SOURCE_DIR}/install-buf.cmake + VERBATIM +) + +add_custom_target(install_golangci-lint + COMMAND cmake -D VERSION=${GO_LINT_VERSION} -P ${CMAKE_CURRENT_SOURCE_DIR}/install-golangci-lint.cmake + VERBATIM +) + +add_custom_target(install_protoc-gen-gocosmos + COMMAND cmake -D VERSION=${PROTOC_GEN_GOCOSMOS_VERSION} -P ${CMAKE_CURRENT_SOURCE_DIR}/install-protoc-gen-gocosmos.cmake + VERBATIM +) + +add_custom_target(install_protoc-gen-go-pulsar + COMMAND cmake -D VERSION=${PROTOC_GEN_GO_PULSAR_VERSION} -P ${CMAKE_CURRENT_SOURCE_DIR}/install-protoc-gen-go-pulsar.cmake + VERBATIM +) + +add_custom_target(install_protoc-gen-grpc-gateway + DEPENDS install_protoc-gen-go-grpc + COMMAND cmake -D VERSION=${PROTOC_GEN_GRPC_GATEWAY_VERSION} -P ${CMAKE_CURRENT_SOURCE_DIR}/install-protoc-gen-grpc-gateway.cmake + VERBATIM +) + +add_custom_target(install_protoc-gen-go-grpc + DEPENDS install_protoc-gen-go + COMMAND cmake -D VERSION=${PROTOC_GEN_GO_GRPC_VERSION} -P ${CMAKE_CURRENT_SOURCE_DIR}/install-protoc-gen-go-grpc.cmake + VERBATIM +) + +add_custom_target(install_protoc-gen-go + COMMAND cmake -D VERSION=${PROTOC_GEN_GO_VERSION} -P ${CMAKE_CURRENT_SOURCE_DIR}/install-protoc-gen-go.cmake + VERBATIM +) diff --git a/install/bare/install-buf.cmake b/install/bare/install-buf.cmake new file mode 100644 index 0000000..aed3055 --- /dev/null +++ b/install/bare/install-buf.cmake @@ -0,0 +1,25 @@ +#!/usr/bin/env cmake -P + +cmake_policy(SET CMP0140 NEW) + +function(get_version _version) + set(${_version} 0) + + execute_process( + COMMAND buf --version + OUTPUT_VARIABLE ${_version} + ) + return(PROPAGATE ${_version}) +endfunction() + +get_version(version) +if(VERSION VERSION_EQUAL version) + return() +endif() + +execute_process( + COMMAND go install github.com/bufbuild/buf/cmd/buf@v${VERSION} + COMMAND_ERROR_IS_FATAL ANY +) + +message(STATUS "Installed ${VERSION}") diff --git a/install/bare/install-golangci-lint.cmake b/install/bare/install-golangci-lint.cmake new file mode 100644 index 0000000..f250613 --- /dev/null +++ b/install/bare/install-golangci-lint.cmake @@ -0,0 +1,27 @@ +#!/usr/bin/env cmake -P + +cmake_policy(SET CMP0140 NEW) + +function(get_version _version) + set(${_version} 0) + + execute_process( + COMMAND golangci-lint version --format short + OUTPUT_VARIABLE ${_version} + ) + string(LENGTH "v" _begin) + string(SUBSTRING ${${_version}} ${_begin} -1 ${_version}) + return(PROPAGATE ${_version}) +endfunction() + +get_version(version) +if(VERSION VERSION_EQUAL version) + return() +endif() + +execute_process( + COMMAND go install github.com/golangci/golangci-lint/cmd/golangci-lint@v${VERSION} + COMMAND_ERROR_IS_FATAL ANY +) + +message(STATUS "Installed ${VERSION}") diff --git a/install/bare/install-protoc-gen-go-grpc.cmake b/install/bare/install-protoc-gen-go-grpc.cmake new file mode 100644 index 0000000..4228b23 --- /dev/null +++ b/install/bare/install-protoc-gen-go-grpc.cmake @@ -0,0 +1,27 @@ +#!/usr/bin/env cmake -P + +cmake_policy(SET CMP0140 NEW) + +function(get_version _version) + set(${_version} 0) + + execute_process( + COMMAND protoc-gen-go-grpc -version + OUTPUT_VARIABLE ${_version} + ) + string(LENGTH "protoc-gen-go-grpc " _begin) + string(SUBSTRING ${${_version}} ${_begin} -1 ${_version}) + return(PROPAGATE ${_version}) +endfunction() + +get_version(version) +if(VERSION VERSION_EQUAL version) + return() +endif() + +execute_process( + COMMAND go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v${VERSION} + COMMAND_ERROR_IS_FATAL ANY +) + +message(STATUS "Installed ${VERSION}") diff --git a/install/bare/install-protoc-gen-go-pulsar.cmake b/install/bare/install-protoc-gen-go-pulsar.cmake new file mode 100644 index 0000000..c90facc --- /dev/null +++ b/install/bare/install-protoc-gen-go-pulsar.cmake @@ -0,0 +1,20 @@ +#!/usr/bin/env cmake -P + +cmake_policy(SET CMP0140 NEW) + +function(get_version _version) + set(${_version} 0) + return(PROPAGATE ${_version}) +endfunction() + +get_version(version) +if(VERSION VERSION_EQUAL version) + return() +endif() + +execute_process( + COMMAND go install github.com/cosmos/cosmos-proto/cmd/protoc-gen-go-pulsar@v${VERSION} + COMMAND_ERROR_IS_FATAL ANY +) + +message(STATUS "Installed ${VERSION}") diff --git a/install/bare/install-protoc-gen-go.cmake b/install/bare/install-protoc-gen-go.cmake new file mode 100644 index 0000000..f2f3c7d --- /dev/null +++ b/install/bare/install-protoc-gen-go.cmake @@ -0,0 +1,27 @@ +#!/usr/bin/env cmake -P + +cmake_policy(SET CMP0140 NEW) + +function(get_version _version) + set(${_version} 0) + + execute_process( + COMMAND protoc-gen-go --version + OUTPUT_VARIABLE ${_version} + ) + string(LENGTH "protoc-gen-go v" _begin) + string(SUBSTRING ${${_version}} ${_begin} -1 ${_version}) + return(PROPAGATE ${_version}) +endfunction() + +get_version(version) +if(VERSION VERSION_EQUAL version) + return() +endif() + +execute_process( + COMMAND go install google.golang.org/protobuf/cmd/protoc-gen-go@v${VERSION} + COMMAND_ERROR_IS_FATAL ANY +) + +message(STATUS "Installed ${VERSION}") diff --git a/install/bare/install-protoc-gen-gocosmos.cmake b/install/bare/install-protoc-gen-gocosmos.cmake new file mode 100644 index 0000000..efc7af9 --- /dev/null +++ b/install/bare/install-protoc-gen-gocosmos.cmake @@ -0,0 +1,20 @@ +#!/usr/bin/env cmake -P + +cmake_policy(SET CMP0140 NEW) + +function(get_version _version) + set(${_version} 0) + return(PROPAGATE ${_version}) +endfunction() + +get_version(version) +if(VERSION VERSION_EQUAL version) + return() +endif() + +execute_process( + COMMAND go install github.com/cosmos/gogoproto/protoc-gen-gocosmos@v${VERSION} + COMMAND_ERROR_IS_FATAL ANY +) + +message(STATUS "Installed ${VERSION}") diff --git a/install/bare/install-protoc-gen-grpc-gateway.cmake b/install/bare/install-protoc-gen-grpc-gateway.cmake new file mode 100644 index 0000000..72221be --- /dev/null +++ b/install/bare/install-protoc-gen-grpc-gateway.cmake @@ -0,0 +1,20 @@ +#!/usr/bin/env cmake -P + +cmake_policy(SET CMP0140 NEW) + +function(get_version _version) + set(${_version} 0) + return(PROPAGATE ${_version}) +endfunction() + +get_version(version) +if(VERSION VERSION_EQUAL version) + return() +endif() + +execute_process( + COMMAND go install github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway@v${VERSION} + COMMAND_ERROR_IS_FATAL ANY +) + +message(STATUS "Installed ${VERSION}") From b164721bc6b97093aa31b76ad04863a557aa9805 Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Wed, 31 Jan 2024 14:13:27 +0000 Subject: [PATCH 39/62] Add build folder to gitignore --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index 66fd13c..551bacf 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,6 @@ # Dependency directories (remove the comment below to include it) # vendor/ + +# Build +/build From feff202ce8330d4705a1f96896ce461f20e9464f Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Thu, 1 Feb 2024 07:16:26 +0000 Subject: [PATCH 40/62] Add docker runners --- CMakeLists.txt | 15 +- app/CMakeLists.txt | 46 +----- cmd/and/CMakeLists.txt | 46 +----- {install => runners}/CMakeLists.txt | 9 +- runners/bare/CMakeLists.txt | 2 + .../bare/install}/CMakeLists.txt | 21 ++- .../bare/install/buf.cmake | 0 runners/bare/install/go.cmake | 21 +++ .../bare/install/golangci-lint.cmake | 6 +- .../bare/install/protoc-gen-go-grpc.cmake | 5 +- .../bare/install/protoc-gen-go-pulsar.cmake | 0 .../bare/install/protoc-gen-go.cmake | 5 +- .../bare/install/protoc-gen-gocosmos.cmake | 0 .../install/protoc-gen-grpc-gateway.cmake | 0 runners/bare/targets/CMakeLists.txt | 137 ++++++++++++++++++ runners/docker/CMakeLists.txt | 2 + runners/docker/install/CMakeLists.txt | 23 +++ runners/docker/install/Dockerfile.in | 34 +++++ runners/docker/targets/CMakeLists.txt | 70 +++++++++ x/escrow/CMakeLists.txt | 77 +--------- x/test/CMakeLists.txt | 77 +--------- 21 files changed, 345 insertions(+), 251 deletions(-) rename {install => runners}/CMakeLists.txt (77%) create mode 100644 runners/bare/CMakeLists.txt rename {install/bare => runners/bare/install}/CMakeLists.txt (69%) rename install/bare/install-buf.cmake => runners/bare/install/buf.cmake (100%) create mode 100644 runners/bare/install/go.cmake rename install/bare/install-golangci-lint.cmake => runners/bare/install/golangci-lint.cmake (80%) rename install/bare/install-protoc-gen-go-grpc.cmake => runners/bare/install/protoc-gen-go-grpc.cmake (77%) rename install/bare/install-protoc-gen-go-pulsar.cmake => runners/bare/install/protoc-gen-go-pulsar.cmake (100%) rename install/bare/install-protoc-gen-go.cmake => runners/bare/install/protoc-gen-go.cmake (77%) rename install/bare/install-protoc-gen-gocosmos.cmake => runners/bare/install/protoc-gen-gocosmos.cmake (100%) rename install/bare/install-protoc-gen-grpc-gateway.cmake => runners/bare/install/protoc-gen-grpc-gateway.cmake (100%) create mode 100644 runners/bare/targets/CMakeLists.txt create mode 100644 runners/docker/CMakeLists.txt create mode 100644 runners/docker/install/CMakeLists.txt create mode 100644 runners/docker/install/Dockerfile.in create mode 100644 runners/docker/targets/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index f386d6b..21cd5b5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,7 @@ cmake_minimum_required(VERSION 3.25.1) +cmake_policy(SET CMP0140 NEW) + option(CMAKE_COLOR_DIAGNOSTICS "Enable/Disable color output during build.") @@ -8,18 +10,7 @@ project(andromeda ) enable_testing() -# go -add_custom_target(tidy) -add_custom_target(lint_fix) -add_custom_target(build ALL) -add_custom_target(lint) - -# buf -add_custom_target(buf_build) -add_custom_target(buf_lint) -add_custom_target(buf_generate) - -add_subdirectory(install) +add_subdirectory(runners) add_subdirectory(app) add_subdirectory(cmd/and) diff --git a/app/CMakeLists.txt b/app/CMakeLists.txt index af2179b..188ad53 100644 --- a/app/CMakeLists.txt +++ b/app/CMakeLists.txt @@ -2,44 +2,8 @@ project(app LANGUAGES NONE ) -add_custom_target(tidy_app - COMMAND go mod tidy - WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} - VERBATIM -) -add_dependencies(tidy - tidy_app -) - -add_custom_target(lint_fix_app - COMMAND golangci-lint run --fix - WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} - VERBATIM -) -add_dependencies(lint_fix - lint_fix_app -) - -add_custom_target(build_app - COMMAND go build ./... - WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} - VERBATIM -) -add_dependencies(build - build_app -) - -add_custom_target(lint_app - COMMAND golangci-lint run - WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} - VERBATIM -) -add_dependencies(lint - lint_app -) - -add_test( - NAME app - COMMAND go test ./... - WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} -) +add_go_tidy() +add_go_lint_fix() +add_go_build() +add_go_lint() +add_go_test() diff --git a/cmd/and/CMakeLists.txt b/cmd/and/CMakeLists.txt index ab120cd..173c3d0 100644 --- a/cmd/and/CMakeLists.txt +++ b/cmd/and/CMakeLists.txt @@ -2,44 +2,8 @@ project(and LANGUAGES NONE ) -add_custom_target(tidy_and - COMMAND go mod tidy - WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} - VERBATIM -) -add_dependencies(tidy - tidy_and -) - -add_custom_target(lint_fix_and - COMMAND golangci-lint run --fix - WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} - VERBATIM -) -add_dependencies(lint_fix - lint_fix_and -) - -add_custom_target(build_and - COMMAND go build -o ${andromeda_BINARY_DIR} ./... - WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} - VERBATIM -) -add_dependencies(build - build_and -) - -add_custom_target(lint_and - COMMAND golangci-lint run - WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} - VERBATIM -) -add_dependencies(lint - lint_and -) - -add_test( - NAME and - COMMAND go test ./... - WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} -) +add_go_tidy() +add_go_lint_fix() +add_go_build_executable() +add_go_lint() +add_go_test() diff --git a/install/CMakeLists.txt b/runners/CMakeLists.txt similarity index 77% rename from install/CMakeLists.txt rename to runners/CMakeLists.txt index 266e7a7..c2226a0 100644 --- a/install/CMakeLists.txt +++ b/runners/CMakeLists.txt @@ -9,6 +9,11 @@ set(PROTOC_GEN_GRPC_GATEWAY_VERSION 1.16.0 CACHE STRING "protoc-gen-grpc-gateway set(PROTOC_GEN_GOCOSMOS_VERSION 1.4.11 CACHE STRING "protoc-gen-gocosmos version") set(PROTOC_GEN_GO_PULSAR_VERSION 1.0.0-beta.3 CACHE STRING "protoc-gen-go-pulsar version") +set(USE_DOCKER TRUE CACHE BOOL "use docker to run binaries") +mark_as_advanced(USE_DOCKER) -add_subdirectory(bare) -# add_subdirectory(docker) # TODO +if(USE_DOCKER) + add_subdirectory(docker) +else() + add_subdirectory(bare) +endif() diff --git a/runners/bare/CMakeLists.txt b/runners/bare/CMakeLists.txt new file mode 100644 index 0000000..49227d0 --- /dev/null +++ b/runners/bare/CMakeLists.txt @@ -0,0 +1,2 @@ +add_subdirectory(install) +add_subdirectory(targets) diff --git a/install/bare/CMakeLists.txt b/runners/bare/install/CMakeLists.txt similarity index 69% rename from install/bare/CMakeLists.txt rename to runners/bare/install/CMakeLists.txt index f95d384..7931699 100644 --- a/install/bare/CMakeLists.txt +++ b/runners/bare/install/CMakeLists.txt @@ -1,40 +1,45 @@ -add_custom_target(install_prerequisites_dev +add_custom_target(install_builder_bare DEPENDS install_golangci-lint install_buf install_protoc-gen-gocosmos install_protoc-gen-go-pulsar install_protoc-gen-grpc-gateway ) +add_custom_target(install_go + COMMAND cmake -D VERSION=${GO_VERSION} -P ${CMAKE_CURRENT_SOURCE_DIR}/go.cmake + VERBATIM +) + add_custom_target(install_buf - COMMAND cmake -D VERSION=${BUF_VERSION} -P ${CMAKE_CURRENT_SOURCE_DIR}/install-buf.cmake + COMMAND cmake -D VERSION=${BUF_VERSION} -P ${CMAKE_CURRENT_SOURCE_DIR}/buf.cmake VERBATIM ) add_custom_target(install_golangci-lint - COMMAND cmake -D VERSION=${GO_LINT_VERSION} -P ${CMAKE_CURRENT_SOURCE_DIR}/install-golangci-lint.cmake + COMMAND cmake -D VERSION=${GO_LINT_VERSION} -P ${CMAKE_CURRENT_SOURCE_DIR}/golangci-lint.cmake VERBATIM ) add_custom_target(install_protoc-gen-gocosmos - COMMAND cmake -D VERSION=${PROTOC_GEN_GOCOSMOS_VERSION} -P ${CMAKE_CURRENT_SOURCE_DIR}/install-protoc-gen-gocosmos.cmake + COMMAND cmake -D VERSION=${PROTOC_GEN_GOCOSMOS_VERSION} -P ${CMAKE_CURRENT_SOURCE_DIR}/protoc-gen-gocosmos.cmake VERBATIM ) add_custom_target(install_protoc-gen-go-pulsar - COMMAND cmake -D VERSION=${PROTOC_GEN_GO_PULSAR_VERSION} -P ${CMAKE_CURRENT_SOURCE_DIR}/install-protoc-gen-go-pulsar.cmake + COMMAND cmake -D VERSION=${PROTOC_GEN_GO_PULSAR_VERSION} -P ${CMAKE_CURRENT_SOURCE_DIR}/protoc-gen-go-pulsar.cmake VERBATIM ) add_custom_target(install_protoc-gen-grpc-gateway DEPENDS install_protoc-gen-go-grpc - COMMAND cmake -D VERSION=${PROTOC_GEN_GRPC_GATEWAY_VERSION} -P ${CMAKE_CURRENT_SOURCE_DIR}/install-protoc-gen-grpc-gateway.cmake + COMMAND cmake -D VERSION=${PROTOC_GEN_GRPC_GATEWAY_VERSION} -P ${CMAKE_CURRENT_SOURCE_DIR}/protoc-gen-grpc-gateway.cmake VERBATIM ) add_custom_target(install_protoc-gen-go-grpc DEPENDS install_protoc-gen-go - COMMAND cmake -D VERSION=${PROTOC_GEN_GO_GRPC_VERSION} -P ${CMAKE_CURRENT_SOURCE_DIR}/install-protoc-gen-go-grpc.cmake + COMMAND cmake -D VERSION=${PROTOC_GEN_GO_GRPC_VERSION} -P ${CMAKE_CURRENT_SOURCE_DIR}/protoc-gen-go-grpc.cmake VERBATIM ) add_custom_target(install_protoc-gen-go - COMMAND cmake -D VERSION=${PROTOC_GEN_GO_VERSION} -P ${CMAKE_CURRENT_SOURCE_DIR}/install-protoc-gen-go.cmake + COMMAND cmake -D VERSION=${PROTOC_GEN_GO_VERSION} -P ${CMAKE_CURRENT_SOURCE_DIR}/protoc-gen-go.cmake VERBATIM ) diff --git a/install/bare/install-buf.cmake b/runners/bare/install/buf.cmake similarity index 100% rename from install/bare/install-buf.cmake rename to runners/bare/install/buf.cmake diff --git a/runners/bare/install/go.cmake b/runners/bare/install/go.cmake new file mode 100644 index 0000000..ceef75e --- /dev/null +++ b/runners/bare/install/go.cmake @@ -0,0 +1,21 @@ +#!/usr/bin/env cmake -P + +cmake_policy(SET CMP0140 NEW) + +function(get_version _version) + set(${_version} 0) + + execute_process( + COMMAND go version + OUTPUT_VARIABLE _output + ) + string(REGEX MATCH "[0-9]\\.[0-9]+" ${_version} "${_output}") + return(PROPAGATE ${_version}) +endfunction() + +get_version(version) +if(VERSION VERSION_EQUAL version) + return() +endif() + +message(FATAL_ERROR "go ${VERSION} not found") diff --git a/install/bare/install-golangci-lint.cmake b/runners/bare/install/golangci-lint.cmake similarity index 80% rename from install/bare/install-golangci-lint.cmake rename to runners/bare/install/golangci-lint.cmake index f250613..9752011 100644 --- a/install/bare/install-golangci-lint.cmake +++ b/runners/bare/install/golangci-lint.cmake @@ -7,10 +7,10 @@ function(get_version _version) execute_process( COMMAND golangci-lint version --format short - OUTPUT_VARIABLE ${_version} + OUTPUT_VARIABLE _output ) - string(LENGTH "v" _begin) - string(SUBSTRING ${${_version}} ${_begin} -1 ${_version}) + + string(REGEX MATCH "[0-9](\\.[0-9]+)*" ${_version} "${_output}") return(PROPAGATE ${_version}) endfunction() diff --git a/install/bare/install-protoc-gen-go-grpc.cmake b/runners/bare/install/protoc-gen-go-grpc.cmake similarity index 77% rename from install/bare/install-protoc-gen-go-grpc.cmake rename to runners/bare/install/protoc-gen-go-grpc.cmake index 4228b23..f987dce 100644 --- a/install/bare/install-protoc-gen-go-grpc.cmake +++ b/runners/bare/install/protoc-gen-go-grpc.cmake @@ -7,10 +7,9 @@ function(get_version _version) execute_process( COMMAND protoc-gen-go-grpc -version - OUTPUT_VARIABLE ${_version} + OUTPUT_VARIABLE _output ) - string(LENGTH "protoc-gen-go-grpc " _begin) - string(SUBSTRING ${${_version}} ${_begin} -1 ${_version}) + string(REGEX MATCH "[0-9](\\.[0-9]+)*" ${_version} "${_output}") return(PROPAGATE ${_version}) endfunction() diff --git a/install/bare/install-protoc-gen-go-pulsar.cmake b/runners/bare/install/protoc-gen-go-pulsar.cmake similarity index 100% rename from install/bare/install-protoc-gen-go-pulsar.cmake rename to runners/bare/install/protoc-gen-go-pulsar.cmake diff --git a/install/bare/install-protoc-gen-go.cmake b/runners/bare/install/protoc-gen-go.cmake similarity index 77% rename from install/bare/install-protoc-gen-go.cmake rename to runners/bare/install/protoc-gen-go.cmake index f2f3c7d..9dbc2a9 100644 --- a/install/bare/install-protoc-gen-go.cmake +++ b/runners/bare/install/protoc-gen-go.cmake @@ -7,10 +7,9 @@ function(get_version _version) execute_process( COMMAND protoc-gen-go --version - OUTPUT_VARIABLE ${_version} + OUTPUT_VARIABLE _output ) - string(LENGTH "protoc-gen-go v" _begin) - string(SUBSTRING ${${_version}} ${_begin} -1 ${_version}) + string(REGEX MATCH "[0-9](\\.[0-9]+)*" ${_version} "${_output}") return(PROPAGATE ${_version}) endfunction() diff --git a/install/bare/install-protoc-gen-gocosmos.cmake b/runners/bare/install/protoc-gen-gocosmos.cmake similarity index 100% rename from install/bare/install-protoc-gen-gocosmos.cmake rename to runners/bare/install/protoc-gen-gocosmos.cmake diff --git a/install/bare/install-protoc-gen-grpc-gateway.cmake b/runners/bare/install/protoc-gen-grpc-gateway.cmake similarity index 100% rename from install/bare/install-protoc-gen-grpc-gateway.cmake rename to runners/bare/install/protoc-gen-grpc-gateway.cmake diff --git a/runners/bare/targets/CMakeLists.txt b/runners/bare/targets/CMakeLists.txt new file mode 100644 index 0000000..8720492 --- /dev/null +++ b/runners/bare/targets/CMakeLists.txt @@ -0,0 +1,137 @@ +add_custom_target(go_tidy) +function(add_go_tidy) + set(_target go_tidy_${PROJECT_NAME}) + add_custom_target(${_target} + COMMAND go mod tidy + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} + VERBATIM + ) + add_dependencies(${_target} + install_go + ) + add_dependencies(go_tidy + ${_target} + ) +endfunction() + +add_custom_target(go_lint_fix) +function(add_go_lint_fix) + set(_target go_lint_fix_${PROJECT_NAME}) + add_custom_target(${_target} + COMMAND golangci-lint run --fix + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} + VERBATIM + ) + add_dependencies(${_target} + install_golangci-lint + ) + add_dependencies(go_lint_fix + ${_target} + ) +endfunction() + +add_custom_target(go_build) +function(add_go_build) + set(_target go_build_${PROJECT_NAME}) + add_custom_target(${_target} + COMMAND go build ./... + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} + VERBATIM + ) + add_dependencies(${_target} + install_go + ) + add_dependencies(go_build + ${_target} + ) +endfunction() + +function(add_go_build_executable) + set(_target go_build_${PROJECT_NAME}) + add_custom_target(${_target} + COMMAND go build -o ${CMAKE_BINARY_DIR} ./... + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} + VERBATIM + ) + add_dependencies(${_target} + install_go + ) + add_dependencies(go_build + ${_target} + ) +endfunction() + +add_custom_target(go_lint) +function(add_go_lint) + set(_target go_lint_${PROJECT_NAME}) + add_custom_target(${_target} + COMMAND golangci-lint run + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} + VERBATIM + ) + add_dependencies(${_target} + install_golangci-lint + ) + add_dependencies(go_lint + ${_target} + ) +endfunction() + +function(add_go_test) + add_test( + NAME ${PROJECT_NAME} + COMMAND go test -coverprofile ${CMAKE_CURRENT_BINARY_DIR}/cover.out ./... + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} + ) +endfunction() + +add_custom_target(buf_build) +function(add_buf_build) + set(_target buf_build_${PROJECT_NAME}) + add_custom_target(${_target} + COMMAND buf build + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/proto + VERBATIM + ) + add_dependencies(${_target} + install_buf + ) + add_dependencies(buf_build + ${_target} + ) +endfunction() + +add_custom_target(buf_lint) +function(add_buf_lint) + set(_target buf_lint_${PROJECT_NAME}) + add_custom_target(${_target} + COMMAND buf lint + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/proto + VERBATIM + ) + add_dependencies(${_target} + install_buf + ) + add_dependencies(buf_lint + ${_target} + ) +endfunction() + +add_custom_target(buf_generate) +function(add_buf_generate) + set(_target buf_generate_${PROJECT_NAME}) + add_custom_target(${_target} + COMMAND buf generate --template buf.gen.gogo.yaml + COMMAND buf generate --template buf.gen.pulsar.yaml + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/proto + VERBATIM + ) + add_dependencies(${_target} + install_buf + install_protoc-gen-go + install_protoc-gen-go-grpc + ) + add_dependencies(buf_generate + ${_target} + ) +endfunction() diff --git a/runners/docker/CMakeLists.txt b/runners/docker/CMakeLists.txt new file mode 100644 index 0000000..49227d0 --- /dev/null +++ b/runners/docker/CMakeLists.txt @@ -0,0 +1,2 @@ +add_subdirectory(install) +add_subdirectory(targets) diff --git a/runners/docker/install/CMakeLists.txt b/runners/docker/install/CMakeLists.txt new file mode 100644 index 0000000..58a07ee --- /dev/null +++ b/runners/docker/install/CMakeLists.txt @@ -0,0 +1,23 @@ +configure_file(Dockerfile.in Dockerfile + @ONLY +) + +function(_get_builder_working_dir _output) + set(${_output} /workspace) + return(PROPAGATE ${_output}) +endfunction() + +function(_get_builder_image _output) + _get_builder_working_dir(_builder_working_dir) + + file(RELATIVE_PATH _rel_builder_source_dir ${CMAKE_SOURCE_DIR} ${CMAKE_CURRENT_FUNCTION_LIST_DIR}) + file(REAL_PATH ${_rel_builder_source_dir} _builder_binary_dir BASE_DIRECTORY ${CMAKE_BINARY_DIR}) + + execute_process( + COMMAND docker build -q --build-arg workdir=${_builder_working_dir} ${_builder_binary_dir} + OUTPUT_VARIABLE ${_output} + ) + string(STRIP ${${_output}} ${_output}) + + return(PROPAGATE ${_output}) +endfunction() diff --git a/runners/docker/install/Dockerfile.in b/runners/docker/install/Dockerfile.in new file mode 100644 index 0000000..3651834 --- /dev/null +++ b/runners/docker/install/Dockerfile.in @@ -0,0 +1,34 @@ +FROM golang:@GO_VERSION@-bookworm + +ARG uid=1000 +ARG gid=1000 +ARG workdir + +ARG go_lint_version=@GO_LINT_VERSION@ +ARG buf_version=@BUF_VERSION@ +ARG protoc_gen_go_version=@PROTOC_GEN_GO_VERSION@ +ARG protoc_gen_go_grpc_version=@PROTOC_GEN_GO_GRPC_VERSION@ +ARG protoc_gen_grpc_gateway_version=@PROTOC_GEN_GRPC_GATEWAY_VERSION@ +ARG protoc_gen_gocosmos_version=@PROTOC_GEN_GOCOSMOS_VERSION@ +ARG protoc_gen_go_pulsar_version=@PROTOC_GEN_GO_PULSAR_VERSION@ + +RUN apt-get update && apt-get upgrade -y && apt-get install -y cmake + +RUN mkdir -p ${workdir} + +RUN addgroup --gid ${gid} builder +RUN adduser --uid ${uid} --gid ${gid} builder +USER ${uid}:${gid} + +RUN go install github.com/golangci/golangci-lint/cmd/golangci-lint@v${go_lint_version} + +RUN go install github.com/bufbuild/buf/cmd/buf@v${buf_version} + +RUN go install google.golang.org/protobuf/cmd/protoc-gen-go@v${protoc_gen_go_version} +RUN go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v${protoc_gen_go_grpc_version} +RUN go install github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway@v${protoc_gen_grpc_gateway_version} + +RUN go install github.com/cosmos/gogoproto/protoc-gen-gocosmos@v${protoc_gen_gocosmos_version} +RUN go install github.com/cosmos/cosmos-proto/cmd/protoc-gen-go-pulsar@v${protoc_gen_go_pulsar_version} + +WORKDIR ${workdir} diff --git a/runners/docker/targets/CMakeLists.txt b/runners/docker/targets/CMakeLists.txt new file mode 100644 index 0000000..84cec64 --- /dev/null +++ b/runners/docker/targets/CMakeLists.txt @@ -0,0 +1,70 @@ +function(add_docker_target _type _project) + _get_builder_working_dir(_builder_working_dir) + _get_builder_image(_builder_image) + + set(_target ${_type}) + if(_project) + string(APPEND _target _${_project}) + endif() + + add_custom_target(${_target} + COMMAND docker run --rm --mount type=bind,src=${CMAKE_SOURCE_DIR},dst=${_builder_working_dir} ${_builder_image} sh -c "cmake -S . -B /tmp/build -D USE_DOCKER=NO && cmake --build /tmp/build --target ${_target}" + VERBATIM + ) +endfunction() + +function(add_docker_test _project) + _get_builder_working_dir(_builder_working_dir) + _get_builder_image(_builder_image) + + set(_target ${_project}) + + add_test( + NAME ${_target} + COMMAND docker run --rm --mount type=bind,src=${CMAKE_SOURCE_DIR},dst=${_builder_working_dir} ${_builder_image} sh -c "cmake -S . -B /tmp/build -D USE_DOCKER=NO && ctest --test-dir /tmp/build -R ${_target}" + ) +endfunction() + +function(add_go_tidy) + add_docker_target(go_tidy ${PROJECT_NAME}) +endfunction() +add_docker_target(go_tidy "") + +function(add_go_lint_fix) + add_docker_target(go_lint_fix ${PROJECT_NAME}) +endfunction() +add_docker_target(go_lint_fix "") + +function(add_go_build) + add_docker_target(go_build ${PROJECT_NAME}) +endfunction() +add_docker_target(go_build "") + +function(add_go_build_executable) + add_docker_target(go_build_executable ${PROJECT_NAME}) +endfunction() +add_docker_target(go_build_executable "") + +function(add_go_lint) + add_docker_target(go_lint ${PROJECT_NAME}) +endfunction() +add_docker_target(go_lint "") + +function(add_go_test) + add_docker_test(${PROJECT_NAME}) +endfunction() + +function(add_buf_build) + add_docker_target(buf_build ${PROJECT_NAME}) +endfunction() +add_docker_target(buf_build "") + +function(add_buf_lint) + add_docker_target(buf_lint ${PROJECT_NAME}) +endfunction() +add_docker_target(buf_lint "") + +function(add_buf_generate) + add_docker_target(buf_generate ${PROJECT_NAME}) +endfunction() +add_docker_target(buf_generate "") diff --git a/x/escrow/CMakeLists.txt b/x/escrow/CMakeLists.txt index 14957fb..f9a28e6 100644 --- a/x/escrow/CMakeLists.txt +++ b/x/escrow/CMakeLists.txt @@ -2,72 +2,11 @@ project(x-escrow LANGUAGES NONE ) -add_custom_target(tidy_x-escrow - COMMAND go mod tidy - WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} - VERBATIM -) -add_dependencies(tidy - tidy_x-escrow -) - -add_custom_target(lint_fix_x-escrow - COMMAND golangci-lint run --fix - WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} - VERBATIM -) -add_dependencies(lint_fix - lint_fix_x-escrow -) - -add_custom_target(build_x-escrow - COMMAND go build ./... - WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} - VERBATIM -) -add_dependencies(build - build_x-escrow -) - -add_custom_target(lint_x-escrow - COMMAND golangci-lint run - WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} - VERBATIM -) -add_dependencies(lint - lint_x-escrow -) - -add_test( - NAME x-escrow - COMMAND go test -coverprofile ${CMAKE_CURRENT_BINARY_DIR}/cover.out ./... - WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} -) - -add_custom_target(buf_build_x-escrow - COMMAND buf build - WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/proto - VERBATIM -) -add_dependencies(buf_build - buf_build_x-escrow -) - -add_custom_target(buf_lint_x-escrow - COMMAND buf lint - WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/proto - VERBATIM -) -add_dependencies(buf_lint - buf_lint_x-escrow -) - -add_custom_target(buf_generate_x-escrow - COMMAND buf generate --template buf.gen.gogo.yaml - COMMAND buf generate --template buf.gen.pulsar.yaml - WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/proto - VERBATIM -) -add_dependencies(buf_generate - buf_generate_x-escrow -) +add_go_tidy() +add_go_lint_fix() +add_go_build() +add_go_lint() +add_go_test() +add_buf_build() +add_buf_lint() +add_buf_generate() diff --git a/x/test/CMakeLists.txt b/x/test/CMakeLists.txt index 92b5900..03eb9a7 100644 --- a/x/test/CMakeLists.txt +++ b/x/test/CMakeLists.txt @@ -2,72 +2,11 @@ project(x-test LANGUAGES NONE ) -add_custom_target(tidy_x-test - COMMAND go mod tidy - WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} - VERBATIM -) -add_dependencies(tidy - tidy_x-test -) - -add_custom_target(lint_fix_x-test - COMMAND golangci-lint run --fix - WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} - VERBATIM -) -add_dependencies(lint_fix - lint_fix_x-test -) - -add_custom_target(build_x-test - COMMAND go build ./... - WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} - VERBATIM -) -add_dependencies(build - build_x-test -) - -add_custom_target(lint_x-test - COMMAND golangci-lint run - WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} - VERBATIM -) -add_dependencies(lint - lint_x-test -) - -add_test( - NAME x-test - COMMAND go test -coverprofile ${CMAKE_CURRENT_BINARY_DIR}/cover.out ./... - WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} -) - -add_custom_target(buf_build_x-test - COMMAND buf build - WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/proto - VERBATIM -) -add_dependencies(buf_build - buf_build_x-test -) - -add_custom_target(buf_lint_x-test - COMMAND buf lint - WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/proto - VERBATIM -) -add_dependencies(buf_lint - buf_lint_x-test -) - -add_custom_target(buf_generate_x-test - COMMAND buf generate --template buf.gen.gogo.yaml - COMMAND buf generate --template buf.gen.pulsar.yaml - WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/proto - VERBATIM -) -add_dependencies(buf_generate - buf_generate_x-test -) +add_go_tidy() +add_go_lint_fix() +add_go_build() +add_go_lint() +add_go_test() +add_buf_build() +add_buf_lint() +add_buf_generate() From a17fd1c93ff178f6bfe0c43ea9512826e71b07f4 Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Thu, 1 Feb 2024 13:11:31 +0000 Subject: [PATCH 41/62] Use bare runners in workflows for now --- .github/workflows/module.yml | 33 ++++++++++++++------------------- 1 file changed, 14 insertions(+), 19 deletions(-) diff --git a/.github/workflows/module.yml b/.github/workflows/module.yml index d43a3a5..75ccd08 100644 --- a/.github/workflows/module.yml +++ b/.github/workflows/module.yml @@ -12,25 +12,21 @@ env: id: x-${{ inputs.name }} path: x/${{ inputs.name }} go-version: '1.21' - go-lint-version: '1.54' - buf-version: '1.29.0' jobs: - lint: - name: lint + go-lint: + name: go lint runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: go-version: ${{ env.go-version }} - - name: Install linter - run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@v${{ env.go-lint-version }} - name: Configure - run: cmake -S . -B build + run: cmake -S . -B build -D USE_DOCKER=NO - name: Lint - run: cmake --build build --target lint_${{ env.id }} - build: - name: build + run: cmake --build build --target go_lint_${{ env.id }} + go-build: + name: go build runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -38,11 +34,11 @@ jobs: with: go-version: ${{ env.go-version }} - name: Configure - run: cmake -S . -B build + run: cmake -S . -B build -D USE_DOCKER=NO - name: Build - run: cmake --build build --target build_${{ env.id }} - test: - name: test + run: cmake --build build --target go_build_${{ env.id }} + go-test: + name: go test runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -52,7 +48,7 @@ jobs: with: go-version: ${{ env.go-version }} - name: Configure - run: cmake -S . -B build + run: cmake -S . -B build -D USE_DOCKER=NO - name: Test run: | VERBOSE=1 ctest --test-dir build --output-on-failure --stop-on-failure -R ${{ env.id }} @@ -69,11 +65,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: bufbuild/buf-setup-action@v1 + - uses: actions/setup-go@v5 with: - version: ${{ env.buf-version }} - github_token: ${{ secrets.GITHUB_TOKEN }} + go-version: ${{ env.go-version }} - name: Configure - run: cmake -S . -B build + run: cmake -S . -B build -D USE_DOCKER=NO - name: Lint run: cmake --build build --target buf_lint_${{ env.id }} From 7253cbbdf589a1eca924e421eb4b2cc25bdc90fb Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Thu, 8 Feb 2024 10:49:41 +0000 Subject: [PATCH 42/62] Lint dogsled --- x/escrow/keeper/internal/genesis_test.go | 16 ++++++++-------- x/escrow/keeper/internal/keeper_test.go | 21 +++++++++++++++------ 2 files changed, 23 insertions(+), 14 deletions(-) diff --git a/x/escrow/keeper/internal/genesis_test.go b/x/escrow/keeper/internal/genesis_test.go index 7421162..7f3082b 100644 --- a/x/escrow/keeper/internal/genesis_test.go +++ b/x/escrow/keeper/internal/genesis_test.go @@ -15,7 +15,7 @@ import ( ) func TestValidateGenesisParams(t *testing.T) { - _, _, k, _, _ := setupKeepers(t) //nolint:dogsled + _, _, k := setupEscrowKeeper(t) tester := func(subject escrowv1alpha1.GenesisState_Params) error { gs := k.DefaultGenesis() @@ -41,7 +41,7 @@ func TestValidateGenesisParams(t *testing.T) { } func TestValidateGenesisAgents(t *testing.T) { - cdc, _, k, _, _ := setupKeepers(t) //nolint:dogsled + cdc, _, k := setupEscrowKeeper(t) addressCodec := cdc.InterfaceRegistry().SigningContext().AddressCodec() addressBytesToString := func(address []byte) string { addressStr, err := addressCodec.BytesToString(address) @@ -186,7 +186,7 @@ func TestValidateGenesisAgents(t *testing.T) { } func TestValidateGenesisProposals(t *testing.T) { - cdc, _, k, _, _ := setupKeepers(t) //nolint:dogsled + cdc, _, k := setupEscrowKeeper(t) addressCodec := cdc.InterfaceRegistry().SigningContext().AddressCodec() addressBytesToString := func(address []byte) string { addressStr, err := addressCodec.BytesToString(address) @@ -388,7 +388,7 @@ func TestValidateGenesisProposals(t *testing.T) { } func TestValidateGenesis(t *testing.T) { - _, _, k, _, _ := setupKeepers(t) //nolint:dogsled + _, _, k := setupEscrowKeeper(t) tester := func(subject escrowv1alpha1.GenesisState) error { return k.ValidateGenesis(&subject) @@ -448,7 +448,7 @@ func TestValidateGenesis(t *testing.T) { } func TestInitExportGenesisParams(t *testing.T) { - _, ctxBefore, k, _, _ := setupKeepers(t) //nolint:dogsled + _, ctxBefore, k := setupEscrowKeeper(t) tester := func(subject escrowv1alpha1.GenesisState_Params) error { gsInput := k.DefaultGenesis() @@ -491,7 +491,7 @@ func TestInitExportGenesisParams(t *testing.T) { } func TestInitExportGenesisAgents(t *testing.T) { - cdc, ctxBefore, k, _, _ := setupKeepers(t) + cdc, ctxBefore, k := setupEscrowKeeper(t) addressCodec := cdc.InterfaceRegistry().SigningContext().AddressCodec() addressBytesToString := func(address []byte) string { addressStr, err := addressCodec.BytesToString(address) @@ -568,7 +568,7 @@ func TestInitExportGenesisAgents(t *testing.T) { } func TestInitExportGenesisProposals(t *testing.T) { - cdc, ctxBefore, k, _, _ := setupKeepers(t) + cdc, ctxBefore, k := setupEscrowKeeper(t) addressCodec := cdc.InterfaceRegistry().SigningContext().AddressCodec() addressBytesToString := func(address []byte) string { addressStr, err := addressCodec.BytesToString(address) @@ -650,7 +650,7 @@ func TestInitExportGenesisProposals(t *testing.T) { } func TestInitExportGenesis(t *testing.T) { - _, ctxBefore, k, _, _ := setupKeepers(t) //nolint:dogsled + _, ctxBefore, k := setupEscrowKeeper(t) tester := func(subject escrowv1alpha1.GenesisState) error { assert.NoError(t, k.ValidateGenesis(&subject)) diff --git a/x/escrow/keeper/internal/keeper_test.go b/x/escrow/keeper/internal/keeper_test.go index df5ac44..06dab16 100644 --- a/x/escrow/keeper/internal/keeper_test.go +++ b/x/escrow/keeper/internal/keeper_test.go @@ -217,6 +217,15 @@ func TestKeeperTestSuite(t *testing.T) { suite.Run(t, new(KeeperTestSuite)) } +func setupEscrowKeeper(t *testing.T) ( + codec.Codec, + context.Context, + *keeper.Keeper, +) { + cdc, ctx, keeper, _, _ := setupKeepers(t) + return cdc, ctx, keeper +} + func setupKeepers(t *testing.T) ( codec.Codec, context.Context, @@ -246,16 +255,16 @@ func setupKeepers(t *testing.T) ( bapp.SetInterfaceRegistry(ir) ctrl := gomock.NewController(t) - authKeeper := setupAuthKeeper(t, ctrl, encCfg.Codec, key) + authKeeper := newAuthKeeper(t, ctrl, encCfg.Codec, key) - escrowKeeper := setupEscrowKeeper(t, bapp, encCfg.Codec, key, authKeeper) - testKeeper := setupTestKeeper(t, bapp, encCfg.Codec, key) // register test keeper + escrowKeeper := newEscrowKeeper(t, bapp, encCfg.Codec, key, authKeeper) + testKeeper := newTestKeeper(t, bapp, encCfg.Codec, key) // register test keeper return encCfg.Codec, testCtx.Ctx, escrowKeeper, authKeeper, testKeeper } // mock auth keeper -func setupAuthKeeper(t *testing.T, ctrl *gomock.Controller, cdc codec.Codec, key *storetypes.KVStoreKey) expected.AuthKeeper { +func newAuthKeeper(t *testing.T, ctrl *gomock.Controller, cdc codec.Codec, key *storetypes.KVStoreKey) expected.AuthKeeper { authKeeper := escrowtestutil.NewMockAuthKeeper(ctrl) authPrefix := []byte{0xff, 0x00} @@ -320,7 +329,7 @@ func setupAuthKeeper(t *testing.T, ctrl *gomock.Controller, cdc codec.Codec, key return authKeeper } -func setupEscrowKeeper(t *testing.T, bapp *baseapp.BaseApp, cdc codec.Codec, key *storetypes.KVStoreKey, authKeeper expected.AuthKeeper) *keeper.Keeper { +func newEscrowKeeper(t *testing.T, bapp *baseapp.BaseApp, cdc codec.Codec, key *storetypes.KVStoreKey, authKeeper expected.AuthKeeper) *keeper.Keeper { authority := authtypes.NewModuleAddress(govtypes.ModuleName) escrowKeeper, err := keeper.NewKeeper(cdc, runtime.NewKVStoreService(key), authority, bapp.MsgServiceRouter(), authKeeper) @@ -336,7 +345,7 @@ func setupEscrowKeeper(t *testing.T, bapp *baseapp.BaseApp, cdc codec.Codec, key return escrowKeeper } -func setupTestKeeper(t *testing.T, bapp *baseapp.BaseApp, cdc codec.Codec, key *storetypes.KVStoreKey) *testkeeper.Keeper { +func newTestKeeper(t *testing.T, bapp *baseapp.BaseApp, cdc codec.Codec, key *storetypes.KVStoreKey) *testkeeper.Keeper { testKeeper, err := testkeeper.NewKeeper(cdc, runtime.NewKVStoreService(key), nil) assert.NoError(t, err) From d68ee0d67f09d4113e486c24b058fb7e138577ab Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Thu, 8 Feb 2024 11:40:36 +0000 Subject: [PATCH 43/62] Cache mod --- runners/docker/install/CMakeLists.txt | 10 +++++++--- runners/docker/install/Dockerfile.in | 8 ++++++-- runners/docker/targets/CMakeLists.txt | 14 ++++++++++++++ 3 files changed, 27 insertions(+), 5 deletions(-) diff --git a/runners/docker/install/CMakeLists.txt b/runners/docker/install/CMakeLists.txt index 58a07ee..ae270d7 100644 --- a/runners/docker/install/CMakeLists.txt +++ b/runners/docker/install/CMakeLists.txt @@ -7,11 +7,15 @@ function(_get_builder_working_dir _output) return(PROPAGATE ${_output}) endfunction() +function(_get_builder_binary_dir _output) + file(RELATIVE_PATH _rel_builder_source_dir ${CMAKE_SOURCE_DIR} ${CMAKE_CURRENT_FUNCTION_LIST_DIR}) + file(REAL_PATH ${_rel_builder_source_dir} ${_output} BASE_DIRECTORY ${CMAKE_BINARY_DIR}) + return(PROPAGATE ${_output}) +endfunction() + function(_get_builder_image _output) _get_builder_working_dir(_builder_working_dir) - - file(RELATIVE_PATH _rel_builder_source_dir ${CMAKE_SOURCE_DIR} ${CMAKE_CURRENT_FUNCTION_LIST_DIR}) - file(REAL_PATH ${_rel_builder_source_dir} _builder_binary_dir BASE_DIRECTORY ${CMAKE_BINARY_DIR}) + _get_builder_binary_dir(_builder_binary_dir) execute_process( COMMAND docker build -q --build-arg workdir=${_builder_working_dir} ${_builder_binary_dir} diff --git a/runners/docker/install/Dockerfile.in b/runners/docker/install/Dockerfile.in index 3651834..0a1f22e 100644 --- a/runners/docker/install/Dockerfile.in +++ b/runners/docker/install/Dockerfile.in @@ -14,10 +14,11 @@ ARG protoc_gen_go_pulsar_version=@PROTOC_GEN_GO_PULSAR_VERSION@ RUN apt-get update && apt-get upgrade -y && apt-get install -y cmake -RUN mkdir -p ${workdir} - RUN addgroup --gid ${gid} builder RUN adduser --uid ${uid} --gid ${gid} builder + +RUN mkdir -p ${workdir} && chown ${uid}:${gid} ${workdir} + USER ${uid}:${gid} RUN go install github.com/golangci/golangci-lint/cmd/golangci-lint@v${go_lint_version} @@ -32,3 +33,6 @@ RUN go install github.com/cosmos/gogoproto/protoc-gen-gocosmos@v${protoc_gen_goc RUN go install github.com/cosmos/cosmos-proto/cmd/protoc-gen-go-pulsar@v${protoc_gen_go_pulsar_version} WORKDIR ${workdir} + +COPY --chown=${uid}:${gid} mods . +RUN go mod download diff --git a/runners/docker/targets/CMakeLists.txt b/runners/docker/targets/CMakeLists.txt index 84cec64..6e7fd5f 100644 --- a/runners/docker/targets/CMakeLists.txt +++ b/runners/docker/targets/CMakeLists.txt @@ -25,7 +25,21 @@ function(add_docker_test _project) ) endfunction() +function(cache_go_mod) + _get_builder_binary_dir(_builder_binary_dir) + + file(RELATIVE_PATH _rel_source_dir ${CMAKE_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}) + + configure_file(go.mod ${_builder_binary_dir}/mods/${_rel_source_dir}/go.mod + COPYONLY + ) + configure_file(go.sum ${_builder_binary_dir}/mods/${_rel_source_dir}/go.sum + COPYONLY + ) +endfunction() + function(add_go_tidy) + cache_go_mod() add_docker_target(go_tidy ${PROJECT_NAME}) endfunction() add_docker_target(go_tidy "") From 9fbb43272e5507a780494cd72dae0d61516ae33f Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Mon, 12 Feb 2024 07:00:04 +0000 Subject: [PATCH 44/62] Install packages using CMake --- .github/workflows/module.yml | 21 +++++------ runners/CMakeLists.txt | 19 ++++------ runners/bare/install/CMakeLists.txt | 28 ++++++++++++--- runners/bare/install/go.cmake | 36 ++++++++++++++++--- runners/docker/install/CMakeLists.txt | 25 +++++++------ runners/docker/install/Dockerfile.in | 43 +++++++++-------------- runners/docker/install/docker-build.cmake | 6 ++++ runners/docker/targets/CMakeLists.txt | 23 +++--------- runners/docker/targets/docker-run.cmake | 6 ++++ 9 files changed, 116 insertions(+), 91 deletions(-) create mode 100644 runners/docker/install/docker-build.cmake create mode 100644 runners/docker/targets/docker-run.cmake diff --git a/.github/workflows/module.yml b/.github/workflows/module.yml index 75ccd08..4540a4a 100644 --- a/.github/workflows/module.yml +++ b/.github/workflows/module.yml @@ -11,18 +11,16 @@ on: env: id: x-${{ inputs.name }} path: x/${{ inputs.name }} - go-version: '1.21' jobs: go-lint: name: go lint runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: actions/setup-go@v5 - with: - go-version: ${{ env.go-version }} - name: Configure run: cmake -S . -B build -D USE_DOCKER=NO + - name: Install builders + run: cmake --build build --target install_builders - name: Lint run: cmake --build build --target go_lint_${{ env.id }} go-build: @@ -30,11 +28,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: actions/setup-go@v5 - with: - go-version: ${{ env.go-version }} - name: Configure run: cmake -S . -B build -D USE_DOCKER=NO + - name: Install builders + run: cmake --build build --target install_builders - name: Build run: cmake --build build --target go_build_${{ env.id }} go-test: @@ -44,11 +41,10 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis - - uses: actions/setup-go@v5 - with: - go-version: ${{ env.go-version }} - name: Configure run: cmake -S . -B build -D USE_DOCKER=NO + - name: Install builders + run: cmake --build build --target install_builders - name: Test run: | VERBOSE=1 ctest --test-dir build --output-on-failure --stop-on-failure -R ${{ env.id }} @@ -65,10 +61,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: actions/setup-go@v5 - with: - go-version: ${{ env.go-version }} - name: Configure run: cmake -S . -B build -D USE_DOCKER=NO + - name: Install builders + run: cmake --build build --target install_builders - name: Lint run: cmake --build build --target buf_lint_${{ env.id }} diff --git a/runners/CMakeLists.txt b/runners/CMakeLists.txt index c2226a0..f054074 100644 --- a/runners/CMakeLists.txt +++ b/runners/CMakeLists.txt @@ -1,19 +1,14 @@ -set(GO_VERSION 1.21 CACHE STRING "go version") -set(GO_LINT_VERSION 1.55.2 CACHE STRING "golangci-lint version") - -set(BUF_VERSION 1.29.0 CACHE STRING "buf version") - -set(PROTOC_GEN_GO_VERSION 1.32 CACHE STRING "protoc-gen-go version") -set(PROTOC_GEN_GO_GRPC_VERSION 1.3.0 CACHE STRING "protoc-gen-go-grpc version") -set(PROTOC_GEN_GRPC_GATEWAY_VERSION 1.16.0 CACHE STRING "protoc-gen-grpc-gateway version") -set(PROTOC_GEN_GOCOSMOS_VERSION 1.4.11 CACHE STRING "protoc-gen-gocosmos version") -set(PROTOC_GEN_GO_PULSAR_VERSION 1.0.0-beta.3 CACHE STRING "protoc-gen-go-pulsar version") - set(USE_DOCKER TRUE CACHE BOOL "use docker to run binaries") -mark_as_advanced(USE_DOCKER) if(USE_DOCKER) add_subdirectory(docker) + + block() + _get_builder_binary_dir(_builder_binary_dir) + file(COPY bare/install + DESTINATION ${_builder_binary_dir} + ) + endblock() else() add_subdirectory(bare) endif() diff --git a/runners/bare/install/CMakeLists.txt b/runners/bare/install/CMakeLists.txt index 7931699..7e4e060 100644 --- a/runners/bare/install/CMakeLists.txt +++ b/runners/bare/install/CMakeLists.txt @@ -1,5 +1,20 @@ -add_custom_target(install_builder_bare - DEPENDS install_golangci-lint install_buf install_protoc-gen-gocosmos install_protoc-gen-go-pulsar install_protoc-gen-grpc-gateway +project(install + LANGUAGES NONE +) + +set(GO_VERSION 1.21.6 CACHE STRING "go version") +set(GO_LINT_VERSION 1.55.2 CACHE STRING "golangci-lint version") + +set(BUF_VERSION 1.29.0 CACHE STRING "buf version") + +set(PROTOC_GEN_GO_VERSION 1.32 CACHE STRING "protoc-gen-go version") +set(PROTOC_GEN_GO_GRPC_VERSION 1.3.0 CACHE STRING "protoc-gen-go-grpc version") +set(PROTOC_GEN_GRPC_GATEWAY_VERSION 1.16.0 CACHE STRING "protoc-gen-grpc-gateway version") +set(PROTOC_GEN_GOCOSMOS_VERSION 1.4.11 CACHE STRING "protoc-gen-gocosmos version") +set(PROTOC_GEN_GO_PULSAR_VERSION 1.0.0-beta.3 CACHE STRING "protoc-gen-go-pulsar version") + +add_custom_target(install_builders + DEPENDS install_go install_golangci-lint install_buf install_protoc-gen-gocosmos install_protoc-gen-go-pulsar install_protoc-gen-grpc-gateway ) add_custom_target(install_go @@ -8,38 +23,43 @@ add_custom_target(install_go ) add_custom_target(install_buf + DEPENDS install_go COMMAND cmake -D VERSION=${BUF_VERSION} -P ${CMAKE_CURRENT_SOURCE_DIR}/buf.cmake VERBATIM ) add_custom_target(install_golangci-lint + DEPENDS install_go COMMAND cmake -D VERSION=${GO_LINT_VERSION} -P ${CMAKE_CURRENT_SOURCE_DIR}/golangci-lint.cmake VERBATIM ) add_custom_target(install_protoc-gen-gocosmos + DEPENDS install_go COMMAND cmake -D VERSION=${PROTOC_GEN_GOCOSMOS_VERSION} -P ${CMAKE_CURRENT_SOURCE_DIR}/protoc-gen-gocosmos.cmake VERBATIM ) add_custom_target(install_protoc-gen-go-pulsar + DEPENDS install_go COMMAND cmake -D VERSION=${PROTOC_GEN_GO_PULSAR_VERSION} -P ${CMAKE_CURRENT_SOURCE_DIR}/protoc-gen-go-pulsar.cmake VERBATIM ) add_custom_target(install_protoc-gen-grpc-gateway - DEPENDS install_protoc-gen-go-grpc + DEPENDS install_go install_protoc-gen-go-grpc COMMAND cmake -D VERSION=${PROTOC_GEN_GRPC_GATEWAY_VERSION} -P ${CMAKE_CURRENT_SOURCE_DIR}/protoc-gen-grpc-gateway.cmake VERBATIM ) add_custom_target(install_protoc-gen-go-grpc - DEPENDS install_protoc-gen-go + DEPENDS install_go install_protoc-gen-go COMMAND cmake -D VERSION=${PROTOC_GEN_GO_GRPC_VERSION} -P ${CMAKE_CURRENT_SOURCE_DIR}/protoc-gen-go-grpc.cmake VERBATIM ) add_custom_target(install_protoc-gen-go + DEPENDS install_go COMMAND cmake -D VERSION=${PROTOC_GEN_GO_VERSION} -P ${CMAKE_CURRENT_SOURCE_DIR}/protoc-gen-go.cmake VERBATIM ) diff --git a/runners/bare/install/go.cmake b/runners/bare/install/go.cmake index ceef75e..9fa81be 100644 --- a/runners/bare/install/go.cmake +++ b/runners/bare/install/go.cmake @@ -9,13 +9,41 @@ function(get_version _version) COMMAND go version OUTPUT_VARIABLE _output ) - string(REGEX MATCH "[0-9]\\.[0-9]+" ${_version} "${_output}") + string(REGEX MATCH "[0-9](\\.[0-9]+)*" ${_version} "${_output}") return(PROPAGATE ${_version}) endfunction() +function(coerce _input _output) + string(REGEX MATCH "[0-9]\\.[0-9]+" ${_output} "${_input}") + return(PROPAGATE ${_output}) +endfunction() + get_version(version) -if(VERSION VERSION_EQUAL version) - return() +block() + coerce(${VERSION} expecting) + coerce("${version}" actual) + if(actual VERSION_EQUAL expecting) + return() + endif() +endblock() + +message(WARNING "No go ${VERSION} found. Automatic installation is destructive and requires write permission on your filesystem. Manual installation is highly recommended.") + +# TODO: fix hard coding +file(DOWNLOAD https://go.dev/dl/go${VERSION}.linux-amd64.tar.gz go.tar.gz) + +# libarchive bug +if(NOT DEFINED ENV{LANG}) + set(ENV{LANG} C.UTF-8) endif() +file(ARCHIVE_EXTRACT + INPUT ${CMAKE_CURRENT_BINARY_DIR}/go.tar.gz + TOUCH +) + +file(INSTALL ${CMAKE_CURRENT_BINARY_DIR}/go/ + DESTINATION /usr/local + USE_SOURCE_PERMISSIONS +) -message(FATAL_ERROR "go ${VERSION} not found") +message(STATUS "Installed ${VERSION}") diff --git a/runners/docker/install/CMakeLists.txt b/runners/docker/install/CMakeLists.txt index ae270d7..132edf7 100644 --- a/runners/docker/install/CMakeLists.txt +++ b/runners/docker/install/CMakeLists.txt @@ -2,26 +2,25 @@ configure_file(Dockerfile.in Dockerfile @ONLY ) -function(_get_builder_working_dir _output) - set(${_output} /workspace) - return(PROPAGATE ${_output}) -endfunction() - function(_get_builder_binary_dir _output) file(RELATIVE_PATH _rel_builder_source_dir ${CMAKE_SOURCE_DIR} ${CMAKE_CURRENT_FUNCTION_LIST_DIR}) file(REAL_PATH ${_rel_builder_source_dir} ${_output} BASE_DIRECTORY ${CMAKE_BINARY_DIR}) return(PROPAGATE ${_output}) endfunction() -function(_get_builder_image _output) - _get_builder_working_dir(_builder_working_dir) +add_custom_target(install_builders + COMMAND cmake -D IDFILE=id.txt -P ${CMAKE_CURRENT_SOURCE_DIR}/docker-build.cmake +) + +file(COPY ${CMAKE_SOURCE_DIR}/go.work ${CMAKE_SOURCE_DIR}/go.work.sum + DESTINATION mods/ +) +function(cache_go_mod) _get_builder_binary_dir(_builder_binary_dir) - execute_process( - COMMAND docker build -q --build-arg workdir=${_builder_working_dir} ${_builder_binary_dir} - OUTPUT_VARIABLE ${_output} - ) - string(STRIP ${${_output}} ${_output}) + file(RELATIVE_PATH _rel_source_dir ${CMAKE_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}) - return(PROPAGATE ${_output}) + file(COPY go.mod go.sum + DESTINATION ${_builder_binary_dir}/mods/${_rel_source_dir}/ + ) endfunction() diff --git a/runners/docker/install/Dockerfile.in b/runners/docker/install/Dockerfile.in index 0a1f22e..0b6d7c6 100644 --- a/runners/docker/install/Dockerfile.in +++ b/runners/docker/install/Dockerfile.in @@ -1,38 +1,29 @@ -FROM golang:@GO_VERSION@-bookworm - -ARG uid=1000 -ARG gid=1000 -ARG workdir - -ARG go_lint_version=@GO_LINT_VERSION@ -ARG buf_version=@BUF_VERSION@ -ARG protoc_gen_go_version=@PROTOC_GEN_GO_VERSION@ -ARG protoc_gen_go_grpc_version=@PROTOC_GEN_GO_GRPC_VERSION@ -ARG protoc_gen_grpc_gateway_version=@PROTOC_GEN_GRPC_GATEWAY_VERSION@ -ARG protoc_gen_gocosmos_version=@PROTOC_GEN_GOCOSMOS_VERSION@ -ARG protoc_gen_go_pulsar_version=@PROTOC_GEN_GO_PULSAR_VERSION@ +FROM debian:bookworm AS platform RUN apt-get update && apt-get upgrade -y && apt-get install -y cmake -RUN addgroup --gid ${gid} builder -RUN adduser --uid ${uid} --gid ${gid} builder - -RUN mkdir -p ${workdir} && chown ${uid}:${gid} ${workdir} +FROM platform AS builders -USER ${uid}:${gid} +WORKDIR /tmp/builders +COPY install . +RUN cmake -S . -B build -Wno-dev && cmake --build build --target install_builders -RUN go install github.com/golangci/golangci-lint/cmd/golangci-lint@v${go_lint_version} +FROM platform AS final -RUN go install github.com/bufbuild/buf/cmd/buf@v${buf_version} +ARG uid=1000 +ARG gid=1000 -RUN go install google.golang.org/protobuf/cmd/protoc-gen-go@v${protoc_gen_go_version} -RUN go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v${protoc_gen_go_grpc_version} -RUN go install github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway@v${protoc_gen_grpc_gateway_version} +RUN addgroup --system --gid ${gid} builder +RUN adduser --system --uid ${uid} --gid ${gid} builder --home /home/builder -RUN go install github.com/cosmos/gogoproto/protoc-gen-gocosmos@v${protoc_gen_gocosmos_version} -RUN go install github.com/cosmos/cosmos-proto/cmd/protoc-gen-go-pulsar@v${protoc_gen_go_pulsar_version} +COPY --from=builders /usr/local /usr/local/ +COPY --from=builders --chown=${uid}:${gid} /root/go /home/builder/go/ -WORKDIR ${workdir} +ENV PATH /home/builder/go/bin:/usr/local/bin:/usr/bin +WORKDIR /tmp/mods +RUN chown ${uid}:${gid} . COPY --chown=${uid}:${gid} mods . + +USER ${uid}:${gid} RUN go mod download diff --git a/runners/docker/install/docker-build.cmake b/runners/docker/install/docker-build.cmake new file mode 100644 index 0000000..ad5178d --- /dev/null +++ b/runners/docker/install/docker-build.cmake @@ -0,0 +1,6 @@ +execute_process( + COMMAND docker build -q . + OUTPUT_VARIABLE id +) +string(STRIP ${id} id) +file(WRITE ${IDFILE} ${id}) diff --git a/runners/docker/targets/CMakeLists.txt b/runners/docker/targets/CMakeLists.txt index 6e7fd5f..0a3350b 100644 --- a/runners/docker/targets/CMakeLists.txt +++ b/runners/docker/targets/CMakeLists.txt @@ -1,6 +1,5 @@ function(add_docker_target _type _project) - _get_builder_working_dir(_builder_working_dir) - _get_builder_image(_builder_image) + _get_builder_binary_dir(_builder_binary_dir) set(_target ${_type}) if(_project) @@ -8,33 +7,19 @@ function(add_docker_target _type _project) endif() add_custom_target(${_target} - COMMAND docker run --rm --mount type=bind,src=${CMAKE_SOURCE_DIR},dst=${_builder_working_dir} ${_builder_image} sh -c "cmake -S . -B /tmp/build -D USE_DOCKER=NO && cmake --build /tmp/build --target ${_target}" + COMMAND cmake -D IDFILE=${_builder_binary_dir}/id.txt -D BIND_DIR=${CMAKE_SOURCE_DIR} -D "COMMAND=cmake -S . -B /tmp/build -D USE_DOCKER=NO && cmake --build /tmp/build --target ${_target}" -P ${CMAKE_CURRENT_FUNCTION_LIST_DIR}/docker-run.cmake VERBATIM ) endfunction() function(add_docker_test _project) - _get_builder_working_dir(_builder_working_dir) - _get_builder_image(_builder_image) + _get_builder_binary_dir(_builder_binary_dir) set(_target ${_project}) add_test( NAME ${_target} - COMMAND docker run --rm --mount type=bind,src=${CMAKE_SOURCE_DIR},dst=${_builder_working_dir} ${_builder_image} sh -c "cmake -S . -B /tmp/build -D USE_DOCKER=NO && ctest --test-dir /tmp/build -R ${_target}" - ) -endfunction() - -function(cache_go_mod) - _get_builder_binary_dir(_builder_binary_dir) - - file(RELATIVE_PATH _rel_source_dir ${CMAKE_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}) - - configure_file(go.mod ${_builder_binary_dir}/mods/${_rel_source_dir}/go.mod - COPYONLY - ) - configure_file(go.sum ${_builder_binary_dir}/mods/${_rel_source_dir}/go.sum - COPYONLY + COMMAND cmake -D IDFILE=${_builder_binary_dir}/id.txt -D BIND_DIR=${CMAKE_SOURCE_DIR} -D "COMMAND=cmake -S . -B /tmp/build -D USE_DOCKER=NO && ctest --test-dir /tmp/build --output-on-failure -R ${_target}" -P ${CMAKE_CURRENT_FUNCTION_LIST_DIR}/docker-run.cmake ) endfunction() diff --git a/runners/docker/targets/docker-run.cmake b/runners/docker/targets/docker-run.cmake new file mode 100644 index 0000000..9a76c62 --- /dev/null +++ b/runners/docker/targets/docker-run.cmake @@ -0,0 +1,6 @@ +file(READ ${IDFILE} id) +message(STATUS "Running target on Docker ${id}") +execute_process( + COMMAND docker run --rm --mount type=bind,src=${BIND_DIR},dst=/workspace --workdir /workspace ${id} sh -c ${COMMAND} + COMMAND_ERROR_IS_FATAL ANY +) From 9138a04fae205a7d1fb547c15e2010e98c60ab0c Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Mon, 12 Feb 2024 07:45:16 +0000 Subject: [PATCH 45/62] Refactor target dependencies --- runners/CMakeLists.txt | 9 +++++ runners/bare/targets/CMakeLists.txt | 7 ---- runners/docker/targets/CMakeLists.txt | 48 +++++++++++++-------------- 3 files changed, 33 insertions(+), 31 deletions(-) diff --git a/runners/CMakeLists.txt b/runners/CMakeLists.txt index f054074..e25ec9e 100644 --- a/runners/CMakeLists.txt +++ b/runners/CMakeLists.txt @@ -1,5 +1,14 @@ set(USE_DOCKER TRUE CACHE BOOL "use docker to run binaries") +add_custom_target(go_tidy) +add_custom_target(go_lint_fix) +add_custom_target(go_build) +add_custom_target(go_lint) + +add_custom_target(buf_build) +add_custom_target(buf_lint) +add_custom_target(buf_generate) + if(USE_DOCKER) add_subdirectory(docker) diff --git a/runners/bare/targets/CMakeLists.txt b/runners/bare/targets/CMakeLists.txt index 8720492..39580b8 100644 --- a/runners/bare/targets/CMakeLists.txt +++ b/runners/bare/targets/CMakeLists.txt @@ -1,4 +1,3 @@ -add_custom_target(go_tidy) function(add_go_tidy) set(_target go_tidy_${PROJECT_NAME}) add_custom_target(${_target} @@ -14,7 +13,6 @@ function(add_go_tidy) ) endfunction() -add_custom_target(go_lint_fix) function(add_go_lint_fix) set(_target go_lint_fix_${PROJECT_NAME}) add_custom_target(${_target} @@ -30,7 +28,6 @@ function(add_go_lint_fix) ) endfunction() -add_custom_target(go_build) function(add_go_build) set(_target go_build_${PROJECT_NAME}) add_custom_target(${_target} @@ -61,7 +58,6 @@ function(add_go_build_executable) ) endfunction() -add_custom_target(go_lint) function(add_go_lint) set(_target go_lint_${PROJECT_NAME}) add_custom_target(${_target} @@ -85,7 +81,6 @@ function(add_go_test) ) endfunction() -add_custom_target(buf_build) function(add_buf_build) set(_target buf_build_${PROJECT_NAME}) add_custom_target(${_target} @@ -101,7 +96,6 @@ function(add_buf_build) ) endfunction() -add_custom_target(buf_lint) function(add_buf_lint) set(_target buf_lint_${PROJECT_NAME}) add_custom_target(${_target} @@ -117,7 +111,6 @@ function(add_buf_lint) ) endfunction() -add_custom_target(buf_generate) function(add_buf_generate) set(_target buf_generate_${PROJECT_NAME}) add_custom_target(${_target} diff --git a/runners/docker/targets/CMakeLists.txt b/runners/docker/targets/CMakeLists.txt index 0a3350b..970cf07 100644 --- a/runners/docker/targets/CMakeLists.txt +++ b/runners/docker/targets/CMakeLists.txt @@ -1,21 +1,29 @@ -function(add_docker_target _type _project) +function(add_docker_target _type) _get_builder_binary_dir(_builder_binary_dir) - set(_target ${_type}) - if(_project) - string(APPEND _target _${_project}) - endif() + set(_target ${_type}_${PROJECT_NAME}) add_custom_target(${_target} COMMAND cmake -D IDFILE=${_builder_binary_dir}/id.txt -D BIND_DIR=${CMAKE_SOURCE_DIR} -D "COMMAND=cmake -S . -B /tmp/build -D USE_DOCKER=NO && cmake --build /tmp/build --target ${_target}" -P ${CMAKE_CURRENT_FUNCTION_LIST_DIR}/docker-run.cmake VERBATIM ) + add_dependencies(${_target} + install_builders + ) + + set(_root ${_type}) + if(_type STREQUAL go_build_executable) + set(_root go_build) + endif() + add_dependencies(${_root} + ${_target} + ) endfunction() -function(add_docker_test _project) +function(add_docker_test) _get_builder_binary_dir(_builder_binary_dir) - set(_target ${_project}) + set(_target ${PROJECT_NAME}) add_test( NAME ${_target} @@ -25,45 +33,37 @@ endfunction() function(add_go_tidy) cache_go_mod() - add_docker_target(go_tidy ${PROJECT_NAME}) + add_docker_target(go_tidy) endfunction() -add_docker_target(go_tidy "") function(add_go_lint_fix) - add_docker_target(go_lint_fix ${PROJECT_NAME}) + add_docker_target(go_lint_fix) endfunction() -add_docker_target(go_lint_fix "") function(add_go_build) - add_docker_target(go_build ${PROJECT_NAME}) + add_docker_target(go_build) endfunction() -add_docker_target(go_build "") function(add_go_build_executable) - add_docker_target(go_build_executable ${PROJECT_NAME}) + add_docker_target(go_build_executable) endfunction() -add_docker_target(go_build_executable "") function(add_go_lint) - add_docker_target(go_lint ${PROJECT_NAME}) + add_docker_target(go_lint) endfunction() -add_docker_target(go_lint "") function(add_go_test) - add_docker_test(${PROJECT_NAME}) + add_docker_test() endfunction() function(add_buf_build) - add_docker_target(buf_build ${PROJECT_NAME}) + add_docker_target(buf_build) endfunction() -add_docker_target(buf_build "") function(add_buf_lint) - add_docker_target(buf_lint ${PROJECT_NAME}) + add_docker_target(buf_lint) endfunction() -add_docker_target(buf_lint "") function(add_buf_generate) - add_docker_target(buf_generate ${PROJECT_NAME}) + add_docker_target(buf_generate) endfunction() -add_docker_target(buf_generate "") From 95a1f0a6418ac699bf1d24e3133e5b7694402153 Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Mon, 12 Feb 2024 08:47:51 +0000 Subject: [PATCH 46/62] Expand Msg/Exec --- .../andromeda/escrow/v1alpha1/event.pb.go | 102 ++++---- x/escrow/andromeda/escrow/v1alpha1/tx.pb.go | 124 +++++----- .../andromeda/escrow/v1alpha1/event.pulsar.go | 174 ++++++++----- .../andromeda/escrow/v1alpha1/tx.pulsar.go | 229 +++++++++++------- x/escrow/keeper/internal/exec.go | 21 +- x/escrow/keeper/internal/exec_test.go | 33 +-- x/escrow/keeper/internal/msg_server.go | 20 +- x/escrow/keeper/internal/msg_server_test.go | 16 +- x/escrow/keeper/internal/proposal.go | 12 +- .../andromeda/escrow/v1alpha1/event.proto | 4 +- .../proto/andromeda/escrow/v1alpha1/tx.proto | 8 +- 11 files changed, 438 insertions(+), 305 deletions(-) diff --git a/x/escrow/andromeda/escrow/v1alpha1/event.pb.go b/x/escrow/andromeda/escrow/v1alpha1/event.pb.go index 70ee915..1b18f1a 100644 --- a/x/escrow/andromeda/escrow/v1alpha1/event.pb.go +++ b/x/escrow/andromeda/escrow/v1alpha1/event.pb.go @@ -220,8 +220,8 @@ func (m *EventSubmitProposal) GetMetadata() string { type EventExec struct { // the address of the account executed the proposal Executor string `protobuf:"bytes,1,opt,name=executor,proto3" json:"executor,omitempty"` - // the address of the agent in charge - Agent string `protobuf:"bytes,2,opt,name=agent,proto3" json:"agent,omitempty"` + // the addresses of the agents in charge + Agents []string `protobuf:"bytes,2,rep,name=agents,proto3" json:"agents,omitempty"` // the messages executed on the execution Actions []*types.Any `protobuf:"bytes,3,rep,name=actions,proto3" json:"actions,omitempty"` } @@ -266,11 +266,11 @@ func (m *EventExec) GetExecutor() string { return "" } -func (m *EventExec) GetAgent() string { +func (m *EventExec) GetAgents() []string { if m != nil { - return m.Agent + return m.Agents } - return "" + return nil } func (m *EventExec) GetActions() []*types.Any { @@ -292,39 +292,39 @@ func init() { } var fileDescriptor_499596c4087ad6c5 = []byte{ - // 499 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x93, 0xcf, 0x8a, 0x13, 0x41, - 0x10, 0xc6, 0x33, 0x93, 0x5d, 0x77, 0xd3, 0xf1, 0xe0, 0xce, 0xee, 0x61, 0x12, 0x71, 0x08, 0x81, - 0x85, 0x5c, 0xec, 0x61, 0xd7, 0x7f, 0x10, 0x4f, 0x13, 0x09, 0x5e, 0x14, 0x86, 0x2c, 0x8a, 0x48, - 0x20, 0x54, 0x66, 0xca, 0x49, 0x20, 0x33, 0x3d, 0xf4, 0x74, 0x62, 0x82, 0x0f, 0xe0, 0xd5, 0x57, - 0xd0, 0xa3, 0x67, 0x1f, 0x42, 0x3c, 0x2d, 0x9e, 0x3c, 0x4a, 0x72, 0xf3, 0xea, 0x0b, 0xc8, 0x74, - 0xa7, 0x67, 0xbd, 0x64, 0x93, 0xbd, 0x75, 0xf1, 0xfd, 0xbe, 0xaa, 0xae, 0x2a, 0x8a, 0x9c, 0x42, - 0x12, 0x72, 0x16, 0x63, 0x08, 0x2e, 0x66, 0x01, 0x67, 0xef, 0xdd, 0xd9, 0x19, 0x4c, 0xd2, 0x11, - 0x9c, 0xb9, 0x38, 0xc3, 0x44, 0xd0, 0x94, 0x33, 0xc1, 0xac, 0x5a, 0x81, 0x51, 0x85, 0x51, 0x8d, - 0xd5, 0x6b, 0x01, 0xcb, 0x62, 0x96, 0x0d, 0x24, 0xe8, 0xaa, 0x40, 0xb9, 0xea, 0xb5, 0x88, 0xb1, - 0x68, 0x82, 0xae, 0x8c, 0x86, 0xd3, 0x77, 0x2e, 0x24, 0x0b, 0x25, 0x35, 0x3f, 0x90, 0xa3, 0x6e, - 0x9e, 0xff, 0x55, 0x1a, 0x82, 0x40, 0x1f, 0x38, 0xc4, 0x99, 0xf5, 0x98, 0x54, 0x60, 0x2a, 0x46, - 0x8c, 0x8f, 0xc5, 0xc2, 0x36, 0x1a, 0x46, 0xab, 0xd2, 0xb1, 0x7f, 0x7e, 0xbb, 0x7f, 0xb2, 0x4e, - 0xea, 0x85, 0x21, 0xc7, 0x2c, 0xbb, 0x10, 0x7c, 0x9c, 0x44, 0xbd, 0x2b, 0xd4, 0xa2, 0xe4, 0x38, - 0x86, 0xf9, 0x20, 0x46, 0x01, 0x21, 0x08, 0x18, 0x4c, 0x30, 0x89, 0xc4, 0xc8, 0x36, 0x1b, 0x46, - 0x6b, 0xaf, 0x77, 0x14, 0xc3, 0xfc, 0xe5, 0x5a, 0x79, 0x21, 0x85, 0xe6, 0x8c, 0xdc, 0x91, 0xc5, - 0x9f, 0x71, 0x04, 0x81, 0x5e, 0x84, 0x89, 0xb0, 0x28, 0xd9, 0x87, 0xfc, 0xb1, 0xb5, 0xae, 0xc2, - 0xac, 0x73, 0x72, 0x10, 0xe4, 0x76, 0xc6, 0x65, 0x9d, 0xeb, 0x1c, 0x1a, 0x6c, 0x7e, 0x34, 0xc9, - 0xb1, 0x2c, 0x7c, 0x31, 0x1d, 0xc6, 0x63, 0xe1, 0x73, 0x96, 0xb2, 0x0c, 0x26, 0xd6, 0x43, 0x72, - 0x98, 0xca, 0x37, 0xf2, 0xad, 0xe5, 0x0b, 0xf2, 0xea, 0xc7, 0xe6, 0x6e, 0x3f, 0x7e, 0x44, 0xaa, - 0x29, 0xc7, 0x01, 0x04, 0x62, 0xcc, 0x92, 0xcc, 0x2e, 0x37, 0xca, 0xad, 0xea, 0xf9, 0x09, 0x55, - 0x3b, 0xa2, 0x7a, 0x47, 0xd4, 0x4b, 0x16, 0x3d, 0x92, 0x72, 0xf4, 0x14, 0x67, 0x3d, 0x21, 0xb7, - 0x53, 0x96, 0x89, 0xc2, 0xb7, 0x77, 0x8d, 0xaf, 0x9a, 0x93, 0xda, 0x58, 0x27, 0x87, 0x7a, 0x23, - 0xf6, 0x7e, 0xfe, 0xc5, 0x5e, 0x11, 0x37, 0x3f, 0x1b, 0xa4, 0x22, 0x27, 0xd1, 0x9d, 0x63, 0x90, - 0xf7, 0x8f, 0x73, 0x0c, 0xa6, 0xf9, 0x30, 0xb7, 0xf6, 0xaf, 0xc9, 0x1b, 0xf7, 0x4f, 0xc9, 0xc1, - 0x2e, 0xbd, 0x6b, 0xa8, 0xf3, 0xd7, 0xf8, 0xbe, 0x74, 0x8c, 0xcb, 0xa5, 0x63, 0xfc, 0x5e, 0x3a, - 0xc6, 0xa7, 0x95, 0x53, 0xba, 0x5c, 0x39, 0xa5, 0x5f, 0x2b, 0xa7, 0x44, 0xee, 0x05, 0x2c, 0xa6, - 0x1b, 0x4f, 0xa2, 0x43, 0x64, 0x6b, 0x7e, 0x9e, 0xd5, 0x37, 0xde, 0xb6, 0x36, 0x9e, 0xd8, 0x53, - 0x15, 0xeb, 0xf0, 0x8b, 0x59, 0xf6, 0xba, 0x6f, 0xbe, 0x9a, 0x35, 0xaf, 0xc8, 0xdc, 0x55, 0x99, - 0x5f, 0xaf, 0x89, 0x1f, 0xff, 0x69, 0x7d, 0xa5, 0xf5, 0xb5, 0xb6, 0x34, 0x4f, 0x37, 0x6a, 0xfd, - 0xe7, 0x7e, 0x47, 0xdf, 0xc0, 0x1f, 0xf3, 0x6e, 0xc1, 0xb5, 0xdb, 0x0a, 0x6c, 0xb7, 0x35, 0x39, - 0xbc, 0x25, 0x87, 0xf1, 0xe0, 0x5f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xc7, 0x1f, 0xbb, 0x29, 0x19, - 0x04, 0x00, 0x00, + // 508 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0xcd, 0x8a, 0x13, 0x41, + 0x10, 0xc7, 0x33, 0x93, 0xfd, 0x4a, 0xc7, 0x83, 0xdb, 0xbb, 0x87, 0x49, 0xc4, 0x21, 0x04, 0x16, + 0x72, 0xb1, 0xc7, 0x5d, 0xbf, 0x20, 0x9e, 0x26, 0x12, 0xbc, 0x28, 0x0c, 0x59, 0x14, 0x91, 0x40, + 0xe8, 0xcc, 0x94, 0x93, 0x40, 0x66, 0x7a, 0xe8, 0xee, 0xc4, 0x04, 0x1f, 0xc0, 0xab, 0xcf, 0xa0, + 0x37, 0xcf, 0x3e, 0x84, 0x78, 0x5a, 0x3c, 0x79, 0x94, 0xe4, 0xe6, 0xd5, 0x17, 0x90, 0xe9, 0x4e, + 0xcf, 0x7a, 0x49, 0xb2, 0xb7, 0x2e, 0xfe, 0xbf, 0x7f, 0x55, 0x57, 0x15, 0x85, 0xce, 0x68, 0x1a, + 0x71, 0x96, 0x40, 0x44, 0x3d, 0x10, 0x21, 0x67, 0xef, 0xbd, 0xd9, 0x39, 0x9d, 0x64, 0x23, 0x7a, + 0xee, 0xc1, 0x0c, 0x52, 0x49, 0x32, 0xce, 0x24, 0xc3, 0xb5, 0x02, 0x23, 0x1a, 0x23, 0x06, 0xab, + 0xd7, 0x42, 0x26, 0x12, 0x26, 0x06, 0x0a, 0xf4, 0x74, 0xa0, 0x5d, 0xf5, 0x5a, 0xcc, 0x58, 0x3c, + 0x01, 0x4f, 0x45, 0xc3, 0xe9, 0x3b, 0x8f, 0xa6, 0x0b, 0x2d, 0x35, 0x3f, 0xa0, 0xe3, 0x6e, 0x9e, + 0xff, 0x55, 0x16, 0x51, 0x09, 0x01, 0xe5, 0x34, 0x11, 0xf8, 0x31, 0xaa, 0xd0, 0xa9, 0x1c, 0x31, + 0x3e, 0x96, 0x0b, 0xc7, 0x6a, 0x58, 0xad, 0x4a, 0xc7, 0xf9, 0xf9, 0xed, 0xde, 0xe9, 0x3a, 0xa9, + 0x1f, 0x45, 0x1c, 0x84, 0xb8, 0x94, 0x7c, 0x9c, 0xc6, 0xbd, 0x6b, 0x14, 0x13, 0x74, 0x92, 0xd0, + 0xf9, 0x20, 0x01, 0x49, 0x23, 0x2a, 0xe9, 0x60, 0x02, 0x69, 0x2c, 0x47, 0x8e, 0xdd, 0xb0, 0x5a, + 0x7b, 0xbd, 0xe3, 0x84, 0xce, 0x5f, 0xae, 0x95, 0x17, 0x4a, 0x68, 0xce, 0xd0, 0x6d, 0x55, 0xfc, + 0x19, 0x07, 0x2a, 0xc1, 0x8f, 0x21, 0x95, 0x98, 0xa0, 0x7d, 0x9a, 0x3f, 0x76, 0xd6, 0xd5, 0x18, + 0xbe, 0x40, 0x87, 0x61, 0x6e, 0x67, 0x5c, 0xd5, 0xd9, 0xe6, 0x30, 0x60, 0xf3, 0xa3, 0x8d, 0x4e, + 0x54, 0xe1, 0xcb, 0xe9, 0x30, 0x19, 0xcb, 0x80, 0xb3, 0x8c, 0x09, 0x3a, 0xc1, 0x0f, 0xd1, 0x51, + 0xa6, 0xde, 0xc0, 0x77, 0x96, 0x2f, 0xc8, 0xeb, 0x1f, 0xdb, 0x37, 0xfb, 0xf1, 0x23, 0x54, 0xcd, + 0x38, 0x0c, 0x68, 0x28, 0xc7, 0x2c, 0x15, 0x4e, 0xb9, 0x51, 0x6e, 0x55, 0x2f, 0x4e, 0x89, 0xde, + 0x11, 0x31, 0x3b, 0x22, 0x7e, 0xba, 0xe8, 0xa1, 0x8c, 0x83, 0xaf, 0x39, 0xfc, 0x04, 0xdd, 0xca, + 0x98, 0x90, 0x85, 0x6f, 0x6f, 0x8b, 0xaf, 0x9a, 0x93, 0xc6, 0x58, 0x47, 0x47, 0x66, 0x23, 0xce, + 0x7e, 0xfe, 0xc5, 0x5e, 0x11, 0x37, 0xbf, 0x58, 0xa8, 0xa2, 0x26, 0xd1, 0x9d, 0x43, 0x98, 0xf7, + 0x0f, 0x73, 0x08, 0xa7, 0xf9, 0x30, 0x77, 0xf6, 0x6f, 0x48, 0x7c, 0x1f, 0x1d, 0xa8, 0xc6, 0x84, + 0x63, 0x37, 0xca, 0x5b, 0x3d, 0x6b, 0x0e, 0x13, 0x74, 0x78, 0x93, 0xee, 0x0d, 0xd4, 0xf9, 0x6b, + 0x7d, 0x5f, 0xba, 0xd6, 0xd5, 0xd2, 0xb5, 0x7e, 0x2f, 0x5d, 0xeb, 0xd3, 0xca, 0x2d, 0x5d, 0xad, + 0xdc, 0xd2, 0xaf, 0x95, 0x5b, 0x42, 0x77, 0x43, 0x96, 0x90, 0x8d, 0x47, 0xd1, 0x41, 0xaa, 0xb9, + 0x20, 0xcf, 0x1a, 0x58, 0x6f, 0x5b, 0x1b, 0x8f, 0xec, 0xa9, 0x8e, 0x4d, 0xf8, 0xd9, 0x2e, 0xfb, + 0xdd, 0x37, 0x5f, 0xed, 0x9a, 0x5f, 0x64, 0xee, 0xea, 0xcc, 0xaf, 0xd7, 0xc4, 0x8f, 0xff, 0xb4, + 0xbe, 0xd6, 0xfa, 0x46, 0x5b, 0xda, 0x67, 0x1b, 0xb5, 0xfe, 0xf3, 0xa0, 0x63, 0xae, 0xe0, 0x8f, + 0x7d, 0xa7, 0xe0, 0xda, 0x6d, 0x0d, 0xb6, 0xdb, 0x86, 0x1c, 0x1e, 0xa8, 0x61, 0x3c, 0xf8, 0x17, + 0x00, 0x00, 0xff, 0xff, 0xa4, 0xab, 0x98, 0x5d, 0x1b, 0x04, 0x00, 0x00, } func (m *EventUpdateParams) Marshal() (dAtA []byte, err error) { @@ -505,12 +505,14 @@ func (m *EventExec) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA[i] = 0x1a } } - if len(m.Agent) > 0 { - i -= len(m.Agent) - copy(dAtA[i:], m.Agent) - i = encodeVarintEvent(dAtA, i, uint64(len(m.Agent))) - i-- - dAtA[i] = 0x12 + if len(m.Agents) > 0 { + for iNdEx := len(m.Agents) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Agents[iNdEx]) + copy(dAtA[i:], m.Agents[iNdEx]) + i = encodeVarintEvent(dAtA, i, uint64(len(m.Agents[iNdEx]))) + i-- + dAtA[i] = 0x12 + } } if len(m.Executor) > 0 { i -= len(m.Executor) @@ -609,9 +611,11 @@ func (m *EventExec) Size() (n int) { if l > 0 { n += 1 + l + sovEvent(uint64(l)) } - l = len(m.Agent) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) + if len(m.Agents) > 0 { + for _, s := range m.Agents { + l = len(s) + n += 1 + l + sovEvent(uint64(l)) + } } if len(m.Actions) > 0 { for _, e := range m.Actions { @@ -1120,7 +1124,7 @@ func (m *EventExec) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Agent", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Agents", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -1148,7 +1152,7 @@ func (m *EventExec) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Agent = string(dAtA[iNdEx:postIndex]) + m.Agents = append(m.Agents, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex case 3: if wireType != 2 { diff --git a/x/escrow/andromeda/escrow/v1alpha1/tx.pb.go b/x/escrow/andromeda/escrow/v1alpha1/tx.pb.go index 02a6500..e460a34 100644 --- a/x/escrow/andromeda/escrow/v1alpha1/tx.pb.go +++ b/x/escrow/andromeda/escrow/v1alpha1/tx.pb.go @@ -341,10 +341,11 @@ var xxx_messageInfo_MsgSubmitProposalResponse proto.InternalMessageInfo type MsgExec struct { // the address of the account executing the proposal Executor string `protobuf:"bytes,1,opt,name=executor,proto3" json:"executor,omitempty"` - // the address of the agent in charge - Agent string `protobuf:"bytes,2,opt,name=agent,proto3" json:"agent,omitempty"` + // the addresses of the agents in charge + Agents []string `protobuf:"bytes,2,rep,name=agents,proto3" json:"agents,omitempty"` // the messages which will be executed on the execution - // Note: the signer of each message must be either the executor or the agent. + // Note: the signer of each message must be either the executor or one of the + // agents. Actions []*types.Any `protobuf:"bytes,3,rep,name=actions,proto3" json:"actions,omitempty"` } @@ -388,11 +389,11 @@ func (m *MsgExec) GetExecutor() string { return "" } -func (m *MsgExec) GetAgent() string { +func (m *MsgExec) GetAgents() []string { if m != nil { - return m.Agent + return m.Agents } - return "" + return nil } func (m *MsgExec) GetActions() []*types.Any { @@ -455,48 +456,49 @@ func init() { } var fileDescriptor_78c48d1f0ffd37da = []byte{ - // 655 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x94, 0x4d, 0x6f, 0xd3, 0x4c, - 0x10, 0xc7, 0x6b, 0xa7, 0x7d, 0xd2, 0x4e, 0xfa, 0x14, 0xd5, 0x54, 0x34, 0x71, 0x45, 0x54, 0x59, - 0x42, 0x0a, 0x11, 0xd8, 0x4a, 0x28, 0x20, 0x99, 0x53, 0x82, 0x2a, 0x38, 0x10, 0x29, 0x4a, 0xa1, - 0x42, 0xa8, 0x52, 0xb4, 0x75, 0x16, 0x37, 0x22, 0xf6, 0x5a, 0xbb, 0x9b, 0xe2, 0xde, 0x10, 0x37, - 0x6e, 0x1c, 0xf8, 0x04, 0x1c, 0x39, 0xa0, 0x1e, 0x90, 0xf8, 0x0a, 0x88, 0x53, 0xc5, 0x89, 0x23, - 0x4a, 0x0f, 0x95, 0x38, 0xf1, 0x11, 0x90, 0xbd, 0xd9, 0xed, 0x0b, 0xca, 0x4b, 0x4f, 0xc9, 0x78, - 0x7e, 0xf3, 0x9f, 0xd9, 0x99, 0xd9, 0x05, 0x0b, 0x85, 0x1d, 0x4a, 0x02, 0xdc, 0x41, 0x0e, 0x66, - 0x1e, 0x25, 0xaf, 0x9d, 0xfd, 0x0a, 0xea, 0x45, 0x7b, 0xa8, 0xe2, 0xf0, 0xd8, 0x8e, 0x28, 0xe1, - 0xc4, 0x28, 0x28, 0xc6, 0x16, 0x8c, 0x2d, 0x19, 0x73, 0xd5, 0x23, 0x2c, 0x20, 0xcc, 0x09, 0x98, - 0xef, 0xec, 0x57, 0x92, 0x1f, 0x11, 0x63, 0x16, 0x84, 0xa3, 0x9d, 0x5a, 0x8e, 0x30, 0xa4, 0xcb, - 0x27, 0xc4, 0xef, 0x61, 0x27, 0xb5, 0x76, 0xfb, 0x2f, 0x1d, 0x14, 0x1e, 0x08, 0x97, 0xf5, 0x4e, - 0x83, 0x2b, 0x0d, 0xe6, 0x3f, 0x8b, 0x3a, 0x88, 0xe3, 0x26, 0xa2, 0x28, 0x60, 0xc6, 0x3d, 0x58, - 0x40, 0x7d, 0xbe, 0x47, 0x68, 0x97, 0x1f, 0xe4, 0xb5, 0x75, 0xad, 0xb4, 0x50, 0xcf, 0xff, 0xf8, - 0x72, 0x7b, 0x65, 0xa8, 0x59, 0xeb, 0x74, 0x28, 0x66, 0x6c, 0x8b, 0xd3, 0x6e, 0xe8, 0xb7, 0x4e, - 0x51, 0xc3, 0x86, 0xab, 0x01, 0x8a, 0xdb, 0x01, 0xe6, 0xa8, 0x83, 0x38, 0x6a, 0xf7, 0x70, 0xe8, - 0xf3, 0xbd, 0xbc, 0xbe, 0xae, 0x95, 0x66, 0x5b, 0xcb, 0x01, 0x8a, 0x1b, 0x43, 0xcf, 0x93, 0xd4, - 0xe1, 0x2e, 0xbd, 0x3d, 0x39, 0x2c, 0x9f, 0xc6, 0x5b, 0x05, 0x58, 0xbd, 0x50, 0x4a, 0x0b, 0xb3, - 0x88, 0x84, 0x0c, 0x5b, 0x2d, 0x58, 0x6a, 0x30, 0xff, 0x21, 0xc5, 0x88, 0xe3, 0x9a, 0x8f, 0x43, - 0x6e, 0x54, 0x21, 0xeb, 0x25, 0x26, 0xa1, 0x13, 0x4b, 0x94, 0xa0, 0xbb, 0x98, 0x24, 0x94, 0x96, - 0xf5, 0x18, 0xae, 0x9d, 0xd7, 0x94, 0xd9, 0x0c, 0x1b, 0xe6, 0x50, 0xf2, 0x61, 0xa2, 0xb2, 0xc0, - 0xac, 0x0f, 0x3a, 0x2c, 0x37, 0x98, 0xbf, 0xd5, 0xdf, 0x0d, 0xba, 0xbc, 0x49, 0x49, 0x44, 0x18, - 0xea, 0x19, 0x1b, 0x30, 0x1f, 0xa5, 0xff, 0xf1, 0xe4, 0x12, 0x15, 0x79, 0x9a, 0x5b, 0x9f, 0x2a, - 0xb7, 0x71, 0x17, 0x72, 0x11, 0xc5, 0x6d, 0xe4, 0xf1, 0x2e, 0x09, 0x59, 0x3e, 0xb3, 0x9e, 0x29, - 0xe5, 0xaa, 0x2b, 0xb6, 0x98, 0xb8, 0x2d, 0x27, 0x6e, 0xd7, 0xc2, 0x83, 0x16, 0x44, 0x14, 0xd7, - 0x04, 0x67, 0xdc, 0x87, 0xc5, 0x88, 0x30, 0xae, 0xe2, 0x66, 0xc7, 0xc4, 0xe5, 0x12, 0x52, 0x06, - 0x9a, 0x30, 0x2f, 0x07, 0x9c, 0x9f, 0x4b, 0x4a, 0x6c, 0x29, 0xdb, 0xfd, 0x3f, 0xe9, 0xaf, 0x3a, - 0x8a, 0xb5, 0x06, 0x85, 0x7f, 0xba, 0xa2, 0x26, 0xfa, 0x59, 0x83, 0x6c, 0x83, 0xf9, 0x9b, 0x31, - 0xf6, 0x92, 0x4e, 0xe1, 0x18, 0x7b, 0xfd, 0x69, 0x86, 0xa9, 0xc8, 0x4b, 0x77, 0xca, 0x86, 0xec, - 0x34, 0x5d, 0x92, 0xd0, 0xf0, 0x34, 0x32, 0x9d, 0xb5, 0x9c, 0x5e, 0x94, 0xa4, 0x5e, 0x79, 0x86, - 0xea, 0xd7, 0x0c, 0x64, 0x1a, 0xcc, 0x37, 0x42, 0x58, 0x3c, 0x77, 0x81, 0xca, 0xf6, 0xc8, 0xfb, - 0x6b, 0x5f, 0xd8, 0x70, 0xb3, 0x3a, 0x3d, 0xab, 0xf6, 0xf3, 0x15, 0xe4, 0xce, 0x5e, 0x85, 0x9b, - 0xe3, 0x25, 0xce, 0xa0, 0x66, 0x65, 0x6a, 0x54, 0x25, 0xe3, 0xb0, 0x74, 0x61, 0xb1, 0x6f, 0x8d, - 0x17, 0x39, 0x4f, 0x9b, 0x1b, 0x97, 0xa1, 0x55, 0xd6, 0x6d, 0x98, 0x4d, 0x57, 0xc3, 0x1a, 0x1f, - 0x9d, 0x30, 0x66, 0x79, 0x32, 0x23, 0x75, 0xcd, 0xb9, 0x37, 0x27, 0x87, 0x65, 0xad, 0xfe, 0x47, - 0xfb, 0x36, 0x28, 0x6a, 0x47, 0x83, 0xa2, 0xf6, 0x6b, 0x50, 0xd4, 0xde, 0x1f, 0x17, 0x67, 0x8e, - 0x8e, 0x8b, 0x33, 0x3f, 0x8f, 0x8b, 0x33, 0x70, 0xdd, 0x23, 0xc1, 0x68, 0xc1, 0x7a, 0xf6, 0x69, - 0xdc, 0x4c, 0xd6, 0xa5, 0xa9, 0xbd, 0x28, 0x8d, 0x7c, 0xc9, 0x1f, 0x08, 0x5b, 0x9a, 0x1f, 0xf5, - 0x4c, 0x6d, 0xf3, 0xf9, 0x27, 0xbd, 0x50, 0x53, 0xb2, 0x9b, 0x42, 0x76, 0x7b, 0x48, 0x7c, 0x3f, - 0xe3, 0xdb, 0x11, 0xbe, 0x1d, 0xe9, 0x1b, 0xe8, 0x37, 0x46, 0xfa, 0x76, 0x1e, 0x35, 0xeb, 0xf2, - 0x55, 0xfd, 0xad, 0xaf, 0x29, 0xce, 0x75, 0x05, 0xe8, 0xba, 0x92, 0xdc, 0xfd, 0x2f, 0xdd, 0xf2, - 0x3b, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x75, 0xda, 0xcb, 0x9f, 0x80, 0x06, 0x00, 0x00, + // 665 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x94, 0xcf, 0x6e, 0xd3, 0x4e, + 0x10, 0xc7, 0x6b, 0xa7, 0x6d, 0xda, 0x49, 0x7f, 0xfd, 0xa9, 0xa6, 0xa2, 0x89, 0x2b, 0xa2, 0xc8, + 0x12, 0x52, 0x88, 0xc0, 0x26, 0xa1, 0x80, 0x64, 0x4e, 0x09, 0xaa, 0xe0, 0x40, 0xa4, 0x28, 0x85, + 0x0a, 0xa1, 0x4a, 0xd1, 0xd6, 0x59, 0xdc, 0x88, 0xd8, 0x6b, 0xed, 0x6e, 0x4a, 0x7a, 0x43, 0xdc, + 0xb8, 0x71, 0xe0, 0x09, 0x38, 0x72, 0xea, 0x01, 0x89, 0x57, 0x40, 0x9c, 0x2a, 0x4e, 0x1c, 0x51, + 0x7a, 0xa8, 0xc4, 0x89, 0x47, 0x40, 0xf6, 0x66, 0xb7, 0x6d, 0x50, 0xfe, 0x70, 0x4a, 0xc6, 0xf3, + 0x99, 0xef, 0xcc, 0xce, 0xcc, 0x2e, 0x58, 0x28, 0x6c, 0x53, 0x12, 0xe0, 0x36, 0x72, 0x30, 0xf3, + 0x28, 0x79, 0xed, 0x1c, 0x96, 0x51, 0x37, 0x3a, 0x40, 0x65, 0x87, 0xf7, 0xed, 0x88, 0x12, 0x4e, + 0x8c, 0x9c, 0x62, 0x6c, 0xc1, 0xd8, 0x92, 0x31, 0x37, 0x3c, 0xc2, 0x02, 0xc2, 0x9c, 0x80, 0xf9, + 0xce, 0x61, 0x39, 0xfe, 0x11, 0x31, 0x66, 0x4e, 0x38, 0x5a, 0x89, 0xe5, 0x08, 0x43, 0xba, 0x7c, + 0x42, 0xfc, 0x2e, 0x76, 0x12, 0x6b, 0xbf, 0xf7, 0xd2, 0x41, 0xe1, 0x91, 0x70, 0x59, 0xef, 0x34, + 0xf8, 0xbf, 0xce, 0xfc, 0x67, 0x51, 0x1b, 0x71, 0xdc, 0x40, 0x14, 0x05, 0xcc, 0xb8, 0x07, 0xcb, + 0xa8, 0xc7, 0x0f, 0x08, 0xed, 0xf0, 0xa3, 0xac, 0x56, 0xd0, 0x8a, 0xcb, 0xb5, 0xec, 0xf7, 0xcf, + 0xb7, 0xd6, 0x87, 0x9a, 0xd5, 0x76, 0x9b, 0x62, 0xc6, 0x76, 0x38, 0xed, 0x84, 0x7e, 0xf3, 0x1c, + 0x35, 0x6c, 0xb8, 0x12, 0xa0, 0x7e, 0x2b, 0xc0, 0x1c, 0xb5, 0x11, 0x47, 0xad, 0x2e, 0x0e, 0x7d, + 0x7e, 0x90, 0xd5, 0x0b, 0x5a, 0x71, 0xbe, 0xb9, 0x16, 0xa0, 0x7e, 0x7d, 0xe8, 0x79, 0x92, 0x38, + 0xdc, 0xd5, 0xb7, 0x67, 0xc7, 0xa5, 0xf3, 0x78, 0x2b, 0x07, 0x1b, 0x23, 0xa5, 0x34, 0x31, 0x8b, + 0x48, 0xc8, 0xb0, 0xd5, 0x84, 0xd5, 0x3a, 0xf3, 0x1f, 0x52, 0x8c, 0x38, 0xae, 0xfa, 0x38, 0xe4, + 0x46, 0x05, 0xd2, 0x5e, 0x6c, 0x12, 0x3a, 0xb5, 0x44, 0x09, 0xba, 0x2b, 0x71, 0x42, 0x69, 0x59, + 0x8f, 0xe1, 0xea, 0x65, 0x4d, 0x99, 0xcd, 0xb0, 0x61, 0x01, 0xc5, 0x1f, 0xa6, 0x2a, 0x0b, 0xcc, + 0xfa, 0xa0, 0xc3, 0x5a, 0x9d, 0xf9, 0x3b, 0xbd, 0xfd, 0xa0, 0xc3, 0x1b, 0x94, 0x44, 0x84, 0xa1, + 0xae, 0xb1, 0x05, 0x4b, 0x51, 0xf2, 0x1f, 0x4f, 0x2f, 0x51, 0x91, 0xe7, 0xb9, 0xf5, 0x99, 0x72, + 0x1b, 0x77, 0x21, 0x13, 0x51, 0xdc, 0x42, 0x1e, 0xef, 0x90, 0x90, 0x65, 0x53, 0x85, 0x54, 0x31, + 0x53, 0x59, 0xb7, 0xc5, 0xc4, 0x6d, 0x39, 0x71, 0xbb, 0x1a, 0x1e, 0x35, 0x21, 0xa2, 0xb8, 0x2a, + 0x38, 0xe3, 0x3e, 0xac, 0x44, 0x84, 0x71, 0x15, 0x37, 0x3f, 0x21, 0x2e, 0x13, 0x93, 0x32, 0xd0, + 0x84, 0x25, 0x39, 0xe0, 0xec, 0x42, 0x5c, 0x62, 0x53, 0xd9, 0xee, 0x7f, 0x71, 0x7f, 0xd5, 0x51, + 0xac, 0x4d, 0xc8, 0xfd, 0xd5, 0x15, 0x35, 0xd1, 0x63, 0x0d, 0xd2, 0x75, 0xe6, 0x6f, 0xf7, 0xb1, + 0x17, 0x77, 0x0a, 0xf7, 0xb1, 0xd7, 0x9b, 0x65, 0x98, 0x8a, 0x34, 0x6e, 0xc3, 0x62, 0xd2, 0x02, + 0x96, 0xd5, 0x0b, 0xa9, 0x89, 0x31, 0x43, 0xce, 0xb0, 0x21, 0x3d, 0x4b, 0x9f, 0x24, 0x34, 0x3c, + 0x8f, 0x4c, 0x68, 0xad, 0x25, 0x57, 0x25, 0xae, 0x58, 0x9e, 0xa2, 0xf2, 0x25, 0x05, 0xa9, 0x3a, + 0xf3, 0x8d, 0x10, 0x56, 0x2e, 0x5d, 0xa1, 0x92, 0x3d, 0xf6, 0x06, 0xdb, 0x23, 0x3b, 0x6e, 0x56, + 0x66, 0x67, 0xd5, 0x86, 0xbe, 0x82, 0xcc, 0xc5, 0xcb, 0x70, 0x63, 0xb2, 0xc4, 0x05, 0xd4, 0x2c, + 0xcf, 0x8c, 0xaa, 0x64, 0x1c, 0x56, 0x47, 0x56, 0xfb, 0xe6, 0x64, 0x91, 0xcb, 0xb4, 0xb9, 0xf5, + 0x2f, 0xb4, 0xca, 0xba, 0x0b, 0xf3, 0xc9, 0x72, 0x58, 0x93, 0xa3, 0x63, 0xc6, 0x2c, 0x4d, 0x67, + 0xa4, 0xae, 0xb9, 0xf0, 0xe6, 0xec, 0xb8, 0xa4, 0xd5, 0x7e, 0x6b, 0x5f, 0x07, 0x79, 0xed, 0x64, + 0x90, 0xd7, 0x7e, 0x0e, 0xf2, 0xda, 0xfb, 0xd3, 0xfc, 0xdc, 0xc9, 0x69, 0x7e, 0xee, 0xc7, 0x69, + 0x7e, 0x0e, 0xae, 0x79, 0x24, 0x18, 0x2f, 0x58, 0x4b, 0x3f, 0xed, 0x37, 0xe2, 0x75, 0x69, 0x68, + 0x2f, 0x8a, 0x63, 0xdf, 0xf2, 0x07, 0xc2, 0x96, 0xe6, 0x47, 0x3d, 0x55, 0xdd, 0x7e, 0xfe, 0x49, + 0xcf, 0x55, 0x95, 0xec, 0xb6, 0x90, 0xdd, 0x1d, 0x12, 0xdf, 0x2e, 0xf8, 0xf6, 0x84, 0x6f, 0x4f, + 0xfa, 0x06, 0xfa, 0xf5, 0xb1, 0xbe, 0xbd, 0x47, 0x8d, 0x9a, 0x7c, 0x57, 0x7f, 0xe9, 0x9b, 0x8a, + 0x73, 0x5d, 0x01, 0xba, 0xae, 0x24, 0xf7, 0x17, 0x93, 0x2d, 0xbf, 0xf3, 0x27, 0x00, 0x00, 0xff, + 0xff, 0xa0, 0xfc, 0xba, 0xe0, 0x82, 0x06, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -942,12 +944,14 @@ func (m *MsgExec) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA[i] = 0x1a } } - if len(m.Agent) > 0 { - i -= len(m.Agent) - copy(dAtA[i:], m.Agent) - i = encodeVarintTx(dAtA, i, uint64(len(m.Agent))) - i-- - dAtA[i] = 0x12 + if len(m.Agents) > 0 { + for iNdEx := len(m.Agents) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Agents[iNdEx]) + copy(dAtA[i:], m.Agents[iNdEx]) + i = encodeVarintTx(dAtA, i, uint64(len(m.Agents[iNdEx]))) + i-- + dAtA[i] = 0x12 + } } if len(m.Executor) > 0 { i -= len(m.Executor) @@ -1096,9 +1100,11 @@ func (m *MsgExec) Size() (n int) { if l > 0 { n += 1 + l + sovTx(uint64(l)) } - l = len(m.Agent) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) + if len(m.Agents) > 0 { + for _, s := range m.Agents { + l = len(s) + n += 1 + l + sovTx(uint64(l)) + } } if len(m.Actions) > 0 { for _, e := range m.Actions { @@ -1766,7 +1772,7 @@ func (m *MsgExec) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Agent", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Agents", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -1794,7 +1800,7 @@ func (m *MsgExec) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Agent = string(dAtA[iNdEx:postIndex]) + m.Agents = append(m.Agents, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex case 3: if wireType != 2 { diff --git a/x/escrow/api/andromeda/escrow/v1alpha1/event.pulsar.go b/x/escrow/api/andromeda/escrow/v1alpha1/event.pulsar.go index 280037f..0413399 100644 --- a/x/escrow/api/andromeda/escrow/v1alpha1/event.pulsar.go +++ b/x/escrow/api/andromeda/escrow/v1alpha1/event.pulsar.go @@ -1790,6 +1790,52 @@ func (x *fastReflection_EventSubmitProposal) ProtoMethods() *protoiface.Methods } } +var _ protoreflect.List = (*_EventExec_2_list)(nil) + +type _EventExec_2_list struct { + list *[]string +} + +func (x *_EventExec_2_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_EventExec_2_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfString((*x.list)[i]) +} + +func (x *_EventExec_2_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped + (*x.list)[i] = concreteValue +} + +func (x *_EventExec_2_list) Append(value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped + *x.list = append(*x.list, concreteValue) +} + +func (x *_EventExec_2_list) AppendMutable() protoreflect.Value { + panic(fmt.Errorf("AppendMutable can not be called on message EventExec at list field Agents as it is not of Message kind")) +} + +func (x *_EventExec_2_list) Truncate(n int) { + *x.list = (*x.list)[:n] +} + +func (x *_EventExec_2_list) NewElement() protoreflect.Value { + v := "" + return protoreflect.ValueOfString(v) +} + +func (x *_EventExec_2_list) IsValid() bool { + return x.list != nil +} + var _ protoreflect.List = (*_EventExec_3_list)(nil) type _EventExec_3_list struct { @@ -1844,7 +1890,7 @@ func (x *_EventExec_3_list) IsValid() bool { var ( md_EventExec protoreflect.MessageDescriptor fd_EventExec_executor protoreflect.FieldDescriptor - fd_EventExec_agent protoreflect.FieldDescriptor + fd_EventExec_agents protoreflect.FieldDescriptor fd_EventExec_actions protoreflect.FieldDescriptor ) @@ -1852,7 +1898,7 @@ func init() { file_andromeda_escrow_v1alpha1_event_proto_init() md_EventExec = File_andromeda_escrow_v1alpha1_event_proto.Messages().ByName("EventExec") fd_EventExec_executor = md_EventExec.Fields().ByName("executor") - fd_EventExec_agent = md_EventExec.Fields().ByName("agent") + fd_EventExec_agents = md_EventExec.Fields().ByName("agents") fd_EventExec_actions = md_EventExec.Fields().ByName("actions") } @@ -1927,9 +1973,9 @@ func (x *fastReflection_EventExec) Range(f func(protoreflect.FieldDescriptor, pr return } } - if x.Agent != "" { - value := protoreflect.ValueOfString(x.Agent) - if !f(fd_EventExec_agent, value) { + if len(x.Agents) != 0 { + value := protoreflect.ValueOfList(&_EventExec_2_list{list: &x.Agents}) + if !f(fd_EventExec_agents, value) { return } } @@ -1956,8 +2002,8 @@ func (x *fastReflection_EventExec) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { case "andromeda.escrow.v1alpha1.EventExec.executor": return x.Executor != "" - case "andromeda.escrow.v1alpha1.EventExec.agent": - return x.Agent != "" + case "andromeda.escrow.v1alpha1.EventExec.agents": + return len(x.Agents) != 0 case "andromeda.escrow.v1alpha1.EventExec.actions": return len(x.Actions) != 0 default: @@ -1978,8 +2024,8 @@ func (x *fastReflection_EventExec) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { case "andromeda.escrow.v1alpha1.EventExec.executor": x.Executor = "" - case "andromeda.escrow.v1alpha1.EventExec.agent": - x.Agent = "" + case "andromeda.escrow.v1alpha1.EventExec.agents": + x.Agents = nil case "andromeda.escrow.v1alpha1.EventExec.actions": x.Actions = nil default: @@ -2001,9 +2047,12 @@ func (x *fastReflection_EventExec) Get(descriptor protoreflect.FieldDescriptor) case "andromeda.escrow.v1alpha1.EventExec.executor": value := x.Executor return protoreflect.ValueOfString(value) - case "andromeda.escrow.v1alpha1.EventExec.agent": - value := x.Agent - return protoreflect.ValueOfString(value) + case "andromeda.escrow.v1alpha1.EventExec.agents": + if len(x.Agents) == 0 { + return protoreflect.ValueOfList(&_EventExec_2_list{}) + } + listValue := &_EventExec_2_list{list: &x.Agents} + return protoreflect.ValueOfList(listValue) case "andromeda.escrow.v1alpha1.EventExec.actions": if len(x.Actions) == 0 { return protoreflect.ValueOfList(&_EventExec_3_list{}) @@ -2032,8 +2081,10 @@ func (x *fastReflection_EventExec) Set(fd protoreflect.FieldDescriptor, value pr switch fd.FullName() { case "andromeda.escrow.v1alpha1.EventExec.executor": x.Executor = value.Interface().(string) - case "andromeda.escrow.v1alpha1.EventExec.agent": - x.Agent = value.Interface().(string) + case "andromeda.escrow.v1alpha1.EventExec.agents": + lv := value.List() + clv := lv.(*_EventExec_2_list) + x.Agents = *clv.list case "andromeda.escrow.v1alpha1.EventExec.actions": lv := value.List() clv := lv.(*_EventExec_3_list) @@ -2058,6 +2109,12 @@ func (x *fastReflection_EventExec) Set(fd protoreflect.FieldDescriptor, value pr // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_EventExec) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { + case "andromeda.escrow.v1alpha1.EventExec.agents": + if x.Agents == nil { + x.Agents = []string{} + } + value := &_EventExec_2_list{list: &x.Agents} + return protoreflect.ValueOfList(value) case "andromeda.escrow.v1alpha1.EventExec.actions": if x.Actions == nil { x.Actions = []*anypb.Any{} @@ -2066,8 +2123,6 @@ func (x *fastReflection_EventExec) Mutable(fd protoreflect.FieldDescriptor) prot return protoreflect.ValueOfList(value) case "andromeda.escrow.v1alpha1.EventExec.executor": panic(fmt.Errorf("field executor of message andromeda.escrow.v1alpha1.EventExec is not mutable")) - case "andromeda.escrow.v1alpha1.EventExec.agent": - panic(fmt.Errorf("field agent of message andromeda.escrow.v1alpha1.EventExec is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.EventExec")) @@ -2083,8 +2138,9 @@ func (x *fastReflection_EventExec) NewField(fd protoreflect.FieldDescriptor) pro switch fd.FullName() { case "andromeda.escrow.v1alpha1.EventExec.executor": return protoreflect.ValueOfString("") - case "andromeda.escrow.v1alpha1.EventExec.agent": - return protoreflect.ValueOfString("") + case "andromeda.escrow.v1alpha1.EventExec.agents": + list := []string{} + return protoreflect.ValueOfList(&_EventExec_2_list{list: &list}) case "andromeda.escrow.v1alpha1.EventExec.actions": list := []*anypb.Any{} return protoreflect.ValueOfList(&_EventExec_3_list{list: &list}) @@ -2161,9 +2217,11 @@ func (x *fastReflection_EventExec) ProtoMethods() *protoiface.Methods { if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.Agent) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) + if len(x.Agents) > 0 { + for _, s := range x.Agents { + l = len(s) + n += 1 + l + runtime.Sov(uint64(l)) + } } if len(x.Actions) > 0 { for _, e := range x.Actions { @@ -2216,12 +2274,14 @@ func (x *fastReflection_EventExec) ProtoMethods() *protoiface.Methods { dAtA[i] = 0x1a } } - if len(x.Agent) > 0 { - i -= len(x.Agent) - copy(dAtA[i:], x.Agent) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Agent))) - i-- - dAtA[i] = 0x12 + if len(x.Agents) > 0 { + for iNdEx := len(x.Agents) - 1; iNdEx >= 0; iNdEx-- { + i -= len(x.Agents[iNdEx]) + copy(dAtA[i:], x.Agents[iNdEx]) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Agents[iNdEx]))) + i-- + dAtA[i] = 0x12 + } } if len(x.Executor) > 0 { i -= len(x.Executor) @@ -2313,7 +2373,7 @@ func (x *fastReflection_EventExec) ProtoMethods() *protoiface.Methods { iNdEx = postIndex case 2: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Agent", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Agents", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -2341,7 +2401,7 @@ func (x *fastReflection_EventExec) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Agent = string(dAtA[iNdEx:postIndex]) + x.Agents = append(x.Agents, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex case 3: if wireType != 2 { @@ -2598,8 +2658,8 @@ type EventExec struct { // the address of the account executed the proposal Executor string `protobuf:"bytes,1,opt,name=executor,proto3" json:"executor,omitempty"` - // the address of the agent in charge - Agent string `protobuf:"bytes,2,opt,name=agent,proto3" json:"agent,omitempty"` + // the addresses of the agents in charge + Agents []string `protobuf:"bytes,2,rep,name=agents,proto3" json:"agents,omitempty"` // the messages executed on the execution Actions []*anypb.Any `protobuf:"bytes,3,rep,name=actions,proto3" json:"actions,omitempty"` } @@ -2631,11 +2691,11 @@ func (x *EventExec) GetExecutor() string { return "" } -func (x *EventExec) GetAgent() string { +func (x *EventExec) GetAgents() []string { if x != nil { - return x.Agent + return x.Agents } - return "" + return nil } func (x *EventExec) GetActions() []*anypb.Any { @@ -2687,32 +2747,32 @@ var file_andromeda_escrow_v1alpha1_event_proto_rawDesc = []byte{ 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, 0x70, 0x6f, 0x73, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0xa1, 0x01, 0x0a, 0x09, 0x45, 0x76, 0x65, 0x6e, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0xa3, 0x01, 0x0a, 0x09, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x45, 0x78, 0x65, 0x63, 0x12, 0x34, 0x0a, 0x08, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, - 0x67, 0x52, 0x08, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x12, 0x2e, 0x0a, 0x05, 0x61, - 0x67, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, - 0x72, 0x69, 0x6e, 0x67, 0x52, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x2e, 0x0a, 0x07, 0x61, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, - 0x6e, 0x79, 0x52, 0x07, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0xdf, 0x01, 0x0a, 0x1d, - 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, - 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x0a, 0x45, - 0x76, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2c, 0x61, 0x70, 0x69, - 0x2f, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x65, 0x73, 0x63, 0x72, 0x6f, - 0x77, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x3b, 0x65, 0x73, 0x63, 0x72, 0x6f, - 0x77, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x45, 0x58, 0xaa, - 0x02, 0x19, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x45, 0x73, 0x63, 0x72, - 0x6f, 0x77, 0x2e, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xca, 0x02, 0x19, 0x41, 0x6e, - 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x5c, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x5c, 0x56, - 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xe2, 0x02, 0x25, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, - 0x65, 0x64, 0x61, 0x5c, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, - 0x68, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, - 0x02, 0x1b, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x3a, 0x3a, 0x45, 0x73, 0x63, - 0x72, 0x6f, 0x77, 0x3a, 0x3a, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x67, 0x52, 0x08, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x12, 0x30, 0x0a, 0x06, 0x61, + 0x67, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, + 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, + 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x06, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x2e, 0x0a, + 0x07, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x07, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0xdf, 0x01, + 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, + 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, + 0x0a, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2c, 0x61, + 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2f, 0x65, 0x73, 0x63, + 0x72, 0x6f, 0x77, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x3b, 0x65, 0x73, 0x63, + 0x72, 0x6f, 0x77, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x45, + 0x58, 0xaa, 0x02, 0x19, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x45, 0x73, + 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xca, 0x02, 0x19, + 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x5c, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, + 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xe2, 0x02, 0x25, 0x41, 0x6e, 0x64, 0x72, + 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x5c, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x5c, 0x56, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0xea, 0x02, 0x1b, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x3a, 0x3a, 0x45, + 0x73, 0x63, 0x72, 0x6f, 0x77, 0x3a, 0x3a, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/x/escrow/api/andromeda/escrow/v1alpha1/tx.pulsar.go b/x/escrow/api/andromeda/escrow/v1alpha1/tx.pulsar.go index dee2e8d..3e44ac5 100644 --- a/x/escrow/api/andromeda/escrow/v1alpha1/tx.pulsar.go +++ b/x/escrow/api/andromeda/escrow/v1alpha1/tx.pulsar.go @@ -2859,6 +2859,52 @@ func (x *fastReflection_MsgSubmitProposalResponse) ProtoMethods() *protoiface.Me } } +var _ protoreflect.List = (*_MsgExec_2_list)(nil) + +type _MsgExec_2_list struct { + list *[]string +} + +func (x *_MsgExec_2_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_MsgExec_2_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfString((*x.list)[i]) +} + +func (x *_MsgExec_2_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped + (*x.list)[i] = concreteValue +} + +func (x *_MsgExec_2_list) Append(value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped + *x.list = append(*x.list, concreteValue) +} + +func (x *_MsgExec_2_list) AppendMutable() protoreflect.Value { + panic(fmt.Errorf("AppendMutable can not be called on message MsgExec at list field Agents as it is not of Message kind")) +} + +func (x *_MsgExec_2_list) Truncate(n int) { + *x.list = (*x.list)[:n] +} + +func (x *_MsgExec_2_list) NewElement() protoreflect.Value { + v := "" + return protoreflect.ValueOfString(v) +} + +func (x *_MsgExec_2_list) IsValid() bool { + return x.list != nil +} + var _ protoreflect.List = (*_MsgExec_3_list)(nil) type _MsgExec_3_list struct { @@ -2913,7 +2959,7 @@ func (x *_MsgExec_3_list) IsValid() bool { var ( md_MsgExec protoreflect.MessageDescriptor fd_MsgExec_executor protoreflect.FieldDescriptor - fd_MsgExec_agent protoreflect.FieldDescriptor + fd_MsgExec_agents protoreflect.FieldDescriptor fd_MsgExec_actions protoreflect.FieldDescriptor ) @@ -2921,7 +2967,7 @@ func init() { file_andromeda_escrow_v1alpha1_tx_proto_init() md_MsgExec = File_andromeda_escrow_v1alpha1_tx_proto.Messages().ByName("MsgExec") fd_MsgExec_executor = md_MsgExec.Fields().ByName("executor") - fd_MsgExec_agent = md_MsgExec.Fields().ByName("agent") + fd_MsgExec_agents = md_MsgExec.Fields().ByName("agents") fd_MsgExec_actions = md_MsgExec.Fields().ByName("actions") } @@ -2996,9 +3042,9 @@ func (x *fastReflection_MsgExec) Range(f func(protoreflect.FieldDescriptor, prot return } } - if x.Agent != "" { - value := protoreflect.ValueOfString(x.Agent) - if !f(fd_MsgExec_agent, value) { + if len(x.Agents) != 0 { + value := protoreflect.ValueOfList(&_MsgExec_2_list{list: &x.Agents}) + if !f(fd_MsgExec_agents, value) { return } } @@ -3025,8 +3071,8 @@ func (x *fastReflection_MsgExec) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { case "andromeda.escrow.v1alpha1.MsgExec.executor": return x.Executor != "" - case "andromeda.escrow.v1alpha1.MsgExec.agent": - return x.Agent != "" + case "andromeda.escrow.v1alpha1.MsgExec.agents": + return len(x.Agents) != 0 case "andromeda.escrow.v1alpha1.MsgExec.actions": return len(x.Actions) != 0 default: @@ -3047,8 +3093,8 @@ func (x *fastReflection_MsgExec) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { case "andromeda.escrow.v1alpha1.MsgExec.executor": x.Executor = "" - case "andromeda.escrow.v1alpha1.MsgExec.agent": - x.Agent = "" + case "andromeda.escrow.v1alpha1.MsgExec.agents": + x.Agents = nil case "andromeda.escrow.v1alpha1.MsgExec.actions": x.Actions = nil default: @@ -3070,9 +3116,12 @@ func (x *fastReflection_MsgExec) Get(descriptor protoreflect.FieldDescriptor) pr case "andromeda.escrow.v1alpha1.MsgExec.executor": value := x.Executor return protoreflect.ValueOfString(value) - case "andromeda.escrow.v1alpha1.MsgExec.agent": - value := x.Agent - return protoreflect.ValueOfString(value) + case "andromeda.escrow.v1alpha1.MsgExec.agents": + if len(x.Agents) == 0 { + return protoreflect.ValueOfList(&_MsgExec_2_list{}) + } + listValue := &_MsgExec_2_list{list: &x.Agents} + return protoreflect.ValueOfList(listValue) case "andromeda.escrow.v1alpha1.MsgExec.actions": if len(x.Actions) == 0 { return protoreflect.ValueOfList(&_MsgExec_3_list{}) @@ -3101,8 +3150,10 @@ func (x *fastReflection_MsgExec) Set(fd protoreflect.FieldDescriptor, value prot switch fd.FullName() { case "andromeda.escrow.v1alpha1.MsgExec.executor": x.Executor = value.Interface().(string) - case "andromeda.escrow.v1alpha1.MsgExec.agent": - x.Agent = value.Interface().(string) + case "andromeda.escrow.v1alpha1.MsgExec.agents": + lv := value.List() + clv := lv.(*_MsgExec_2_list) + x.Agents = *clv.list case "andromeda.escrow.v1alpha1.MsgExec.actions": lv := value.List() clv := lv.(*_MsgExec_3_list) @@ -3127,6 +3178,12 @@ func (x *fastReflection_MsgExec) Set(fd protoreflect.FieldDescriptor, value prot // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgExec) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { + case "andromeda.escrow.v1alpha1.MsgExec.agents": + if x.Agents == nil { + x.Agents = []string{} + } + value := &_MsgExec_2_list{list: &x.Agents} + return protoreflect.ValueOfList(value) case "andromeda.escrow.v1alpha1.MsgExec.actions": if x.Actions == nil { x.Actions = []*anypb.Any{} @@ -3135,8 +3192,6 @@ func (x *fastReflection_MsgExec) Mutable(fd protoreflect.FieldDescriptor) protor return protoreflect.ValueOfList(value) case "andromeda.escrow.v1alpha1.MsgExec.executor": panic(fmt.Errorf("field executor of message andromeda.escrow.v1alpha1.MsgExec is not mutable")) - case "andromeda.escrow.v1alpha1.MsgExec.agent": - panic(fmt.Errorf("field agent of message andromeda.escrow.v1alpha1.MsgExec is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: andromeda.escrow.v1alpha1.MsgExec")) @@ -3152,8 +3207,9 @@ func (x *fastReflection_MsgExec) NewField(fd protoreflect.FieldDescriptor) proto switch fd.FullName() { case "andromeda.escrow.v1alpha1.MsgExec.executor": return protoreflect.ValueOfString("") - case "andromeda.escrow.v1alpha1.MsgExec.agent": - return protoreflect.ValueOfString("") + case "andromeda.escrow.v1alpha1.MsgExec.agents": + list := []string{} + return protoreflect.ValueOfList(&_MsgExec_2_list{list: &list}) case "andromeda.escrow.v1alpha1.MsgExec.actions": list := []*anypb.Any{} return protoreflect.ValueOfList(&_MsgExec_3_list{list: &list}) @@ -3230,9 +3286,11 @@ func (x *fastReflection_MsgExec) ProtoMethods() *protoiface.Methods { if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.Agent) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) + if len(x.Agents) > 0 { + for _, s := range x.Agents { + l = len(s) + n += 1 + l + runtime.Sov(uint64(l)) + } } if len(x.Actions) > 0 { for _, e := range x.Actions { @@ -3285,12 +3343,14 @@ func (x *fastReflection_MsgExec) ProtoMethods() *protoiface.Methods { dAtA[i] = 0x1a } } - if len(x.Agent) > 0 { - i -= len(x.Agent) - copy(dAtA[i:], x.Agent) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Agent))) - i-- - dAtA[i] = 0x12 + if len(x.Agents) > 0 { + for iNdEx := len(x.Agents) - 1; iNdEx >= 0; iNdEx-- { + i -= len(x.Agents[iNdEx]) + copy(dAtA[i:], x.Agents[iNdEx]) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Agents[iNdEx]))) + i-- + dAtA[i] = 0x12 + } } if len(x.Executor) > 0 { i -= len(x.Executor) @@ -3382,7 +3442,7 @@ func (x *fastReflection_MsgExec) ProtoMethods() *protoiface.Methods { iNdEx = postIndex case 2: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Agent", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Agents", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -3410,7 +3470,7 @@ func (x *fastReflection_MsgExec) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Agent = string(dAtA[iNdEx:postIndex]) + x.Agents = append(x.Agents, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex case 3: if wireType != 2 { @@ -4109,10 +4169,11 @@ type MsgExec struct { // the address of the account executing the proposal Executor string `protobuf:"bytes,1,opt,name=executor,proto3" json:"executor,omitempty"` - // the address of the agent in charge - Agent string `protobuf:"bytes,2,opt,name=agent,proto3" json:"agent,omitempty"` + // the addresses of the agents in charge + Agents []string `protobuf:"bytes,2,rep,name=agents,proto3" json:"agents,omitempty"` // the messages which will be executed on the execution - // Note: the signer of each message must be either the executor or the agent. + // Note: the signer of each message must be either the executor or one of the + // agents. Actions []*anypb.Any `protobuf:"bytes,3,rep,name=actions,proto3" json:"actions,omitempty"` } @@ -4143,11 +4204,11 @@ func (x *MsgExec) GetExecutor() string { return "" } -func (x *MsgExec) GetAgent() string { +func (x *MsgExec) GetAgents() []string { if x != nil { - return x.Agent + return x.Agents } - return "" + return nil } func (x *MsgExec) GetActions() []*anypb.Any { @@ -4235,61 +4296,61 @@ var file_andromeda_escrow_v1alpha1_tx_proto_rawDesc = []byte{ 0x09, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x3a, 0x0d, 0x82, 0xe7, 0xb0, 0x2a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x72, 0x22, 0x1b, 0x0a, 0x19, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xae, 0x01, 0x0a, 0x07, 0x4d, 0x73, 0x67, 0x45, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xb0, 0x01, 0x0a, 0x07, 0x4d, 0x73, 0x67, 0x45, 0x78, 0x65, 0x63, 0x12, 0x34, 0x0a, 0x08, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, - 0x08, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x12, 0x2e, 0x0a, 0x05, 0x61, 0x67, 0x65, - 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, - 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, - 0x6e, 0x67, 0x52, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x2e, 0x0a, 0x07, 0x61, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, - 0x52, 0x07, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x3a, 0x0d, 0x82, 0xe7, 0xb0, 0x2a, 0x08, - 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x22, 0x11, 0x0a, 0x0f, 0x4d, 0x73, 0x67, 0x45, - 0x78, 0x65, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xb7, 0x03, 0x0a, 0x03, - 0x4d, 0x73, 0x67, 0x12, 0x6e, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, - 0x61, 0x6d, 0x73, 0x12, 0x2a, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, - 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, - 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x1a, - 0x32, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, - 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x6b, 0x0a, 0x0b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x67, 0x65, - 0x6e, 0x74, 0x12, 0x29, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, - 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, - 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x1a, 0x31, 0x2e, - 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, - 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x74, 0x0a, 0x0e, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, - 0x61, 0x6c, 0x12, 0x2c, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, + 0x08, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x12, 0x30, 0x0a, 0x06, 0x61, 0x67, 0x65, + 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, + 0x69, 0x6e, 0x67, 0x52, 0x06, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x2e, 0x0a, 0x07, 0x61, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, + 0x6e, 0x79, 0x52, 0x07, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x3a, 0x0d, 0x82, 0xe7, 0xb0, + 0x2a, 0x08, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x22, 0x11, 0x0a, 0x0f, 0x4d, 0x73, + 0x67, 0x45, 0x78, 0x65, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xb7, 0x03, + 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x6e, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, + 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x2a, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, + 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, + 0x73, 0x1a, 0x32, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, + 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x73, + 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6b, 0x0a, 0x0b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, + 0x67, 0x65, 0x6e, 0x74, 0x12, 0x29, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, + 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x1a, + 0x31, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, + 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x74, 0x0a, 0x0e, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x50, 0x72, 0x6f, 0x70, + 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x2c, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, + 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, + 0x61, 0x6c, 0x1a, 0x34, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, - 0x1a, 0x34, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x56, 0x0a, 0x04, 0x45, 0x78, 0x65, 0x63, + 0x12, 0x22, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, - 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x56, 0x0a, 0x04, 0x45, 0x78, 0x65, 0x63, 0x12, 0x22, - 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, - 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x45, 0x78, - 0x65, 0x63, 0x1a, 0x2a, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, - 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, - 0x73, 0x67, 0x45, 0x78, 0x65, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x1a, 0x05, - 0x80, 0xe7, 0xb0, 0x2a, 0x01, 0x42, 0xdc, 0x01, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x6e, - 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, - 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, - 0x50, 0x01, 0x5a, 0x2c, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, - 0x61, 0x2f, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, - 0x31, 0x3b, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, - 0xa2, 0x02, 0x03, 0x41, 0x45, 0x58, 0xaa, 0x02, 0x19, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, - 0x64, 0x61, 0x2e, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, - 0x61, 0x31, 0xca, 0x02, 0x19, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x5c, 0x45, - 0x73, 0x63, 0x72, 0x6f, 0x77, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xe2, 0x02, - 0x25, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x5c, 0x45, 0x73, 0x63, 0x72, 0x6f, - 0x77, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1b, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, - 0x64, 0x61, 0x3a, 0x3a, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x3a, 0x3a, 0x56, 0x31, 0x61, 0x6c, - 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x45, 0x78, 0x65, 0x63, 0x1a, 0x2a, 0x2e, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, + 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x2e, 0x4d, 0x73, 0x67, 0x45, 0x78, 0x65, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x1a, 0x05, 0x80, 0xe7, 0xb0, 0x2a, 0x01, 0x42, 0xdc, 0x01, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x2e, + 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, + 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2c, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x6d, + 0x65, 0x64, 0x61, 0x2f, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x3b, 0x65, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x45, 0x58, 0xaa, 0x02, 0x19, 0x41, 0x6e, 0x64, 0x72, 0x6f, + 0x6d, 0x65, 0x64, 0x61, 0x2e, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x2e, 0x56, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0xca, 0x02, 0x19, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, + 0x5c, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0xe2, 0x02, 0x25, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x6d, 0x65, 0x64, 0x61, 0x5c, 0x45, 0x73, 0x63, + 0x72, 0x6f, 0x77, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1b, 0x41, 0x6e, 0x64, 0x72, 0x6f, + 0x6d, 0x65, 0x64, 0x61, 0x3a, 0x3a, 0x45, 0x73, 0x63, 0x72, 0x6f, 0x77, 0x3a, 0x3a, 0x56, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/x/escrow/keeper/internal/exec.go b/x/escrow/keeper/internal/exec.go index 19915c0..71efd8f 100644 --- a/x/escrow/keeper/internal/exec.go +++ b/x/escrow/keeper/internal/exec.go @@ -11,10 +11,19 @@ import ( escrowv1alpha1 "github.com/0tech/andromeda/x/escrow/andromeda/escrow/v1alpha1" ) -func (k Keeper) Exec(ctx context.Context, _, agent sdk.AccAddress, actions []*codectypes.Any) error { - proposal, err := k.GetProposal(ctx, agent) - if err != nil { - return err +func (k Keeper) Exec(ctx context.Context, agents []sdk.AccAddress, actions []*codectypes.Any) error { + var postActions []*codectypes.Any + for _, agent := range agents { + proposal, err := k.GetProposal(ctx, agent) + if err != nil { + return err + } + + postActions = append(postActions, proposal.PostActions...) + + if err := k.removeProposal(ctx, agent); err != nil { + return err + } } for _, phase := range []struct { @@ -27,7 +36,7 @@ func (k Keeper) Exec(ctx context.Context, _, agent sdk.AccAddress, actions []*co }, { name: "post_actions", - actions: proposal.PostActions, + actions: postActions, }, } { if err := k.executeActions(ctx, phase.actions); err != nil { @@ -35,7 +44,7 @@ func (k Keeper) Exec(ctx context.Context, _, agent sdk.AccAddress, actions []*co } } - return k.removeProposal(ctx, agent) + return nil } func (k Keeper) executeActions(ctx context.Context, actions []*codectypes.Any) error { diff --git a/x/escrow/keeper/internal/exec_test.go b/x/escrow/keeper/internal/exec_test.go index d4b7bd1..ca5a248 100644 --- a/x/escrow/keeper/internal/exec_test.go +++ b/x/escrow/keeper/internal/exec_test.go @@ -11,47 +11,40 @@ import ( func (s *KeeperTestSuite) TestExec() { type exec struct { - executor sdk.AccAddress - agent sdk.AccAddress - actions []*codectypes.Any + agents []sdk.AccAddress + actions []*codectypes.Any } tester := func(subject exec) error { - s.NotNil(subject.executor) - s.NotNil(subject.agent) + s.NotNil(subject.agents) s.NotNil(subject.actions) ctx, _ := sdk.UnwrapSDKContext(s.ctx).CacheContext() - err := s.keeper.Exec(ctx, subject.executor, subject.agent, subject.actions) + err := s.keeper.Exec(ctx, subject.agents, subject.actions) if err != nil { return err } - _, err = s.keeper.GetProposal(s.ctx, subject.agent) - s.Assert().NoError(err) + for i, agent := range subject.agents { + _, err = s.keeper.GetProposal(s.ctx, agent) + s.Assert().NoError(err, i) - _, err = s.keeper.GetProposal(ctx, subject.agent) - s.Require().Error(err) + _, err = s.keeper.GetProposal(ctx, agent) + s.Require().Error(err, i) + } return nil } cases := []map[string]testutil.Case[exec]{ { - "executor already exists": { - Malleate: func(subject *exec) { - subject.executor = s.stranger - }, - }, - }, - { - "agent already exists": { + "proposals already exist": { Malleate: func(subject *exec) { - subject.agent = s.agentAny + subject.agents = []sdk.AccAddress{s.agentAny} }, }, "proposal not found": { Malleate: func(subject *exec) { - subject.agent = s.agentIdle + subject.agents = []sdk.AccAddress{s.agentIdle} }, Error: func() error { return escrowv1alpha1.ErrProposalNotFound diff --git a/x/escrow/keeper/internal/msg_server.go b/x/escrow/keeper/internal/msg_server.go index 13b7338..ec106c2 100644 --- a/x/escrow/keeper/internal/msg_server.go +++ b/x/escrow/keeper/internal/msg_server.go @@ -151,8 +151,8 @@ func (s msgServer) Exec(ctx context.Context, req *escrowv1alpha1.MsgExec) (*escr return nil, escrowv1alpha1.ErrUnimplemented.Wrap("nil executor") } - if req.Agent == "" { - return nil, escrowv1alpha1.ErrUnimplemented.Wrap("nil agent") + if req.Agents == nil { + return nil, escrowv1alpha1.ErrUnimplemented.Wrap("nil agents") } if req.Actions == nil { @@ -164,24 +164,28 @@ func (s msgServer) Exec(ctx context.Context, req *escrowv1alpha1.MsgExec) (*escr return nil, errors.Wrap(err, "executor") } - agent, err := s.keeper.addressStringToBytes(req.Agent) - if err != nil { - return nil, errors.Wrap(err, "agent") + agents := make([]sdk.AccAddress, len(req.Agents)) + for i, agent := range req.Agents { + var err error + agents[i], err = s.keeper.addressStringToBytes(agent) + if err != nil { + return nil, errors.Wrap(indexedError(err, i), "agents") + } } - signers := []sdk.AccAddress{executor, agent} + signers := append([]sdk.AccAddress{executor}, agents...) if err := s.keeper.validateActions(req.Actions, signers); err != nil { return nil, errors.Wrap(err, "actions") } - if err := s.keeper.Exec(ctx, executor, agent, req.Actions); err != nil { + if err := s.keeper.Exec(ctx, agents, req.Actions); err != nil { return nil, err } if err := sdk.UnwrapSDKContext(ctx).EventManager().EmitTypedEvent(&escrowv1alpha1.EventExec{ Executor: req.Executor, - Agent: req.Agent, + Agents: req.Agents, Actions: req.Actions, }); err != nil { return nil, escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()) diff --git a/x/escrow/keeper/internal/msg_server_test.go b/x/escrow/keeper/internal/msg_server_test.go index 5415117..7029ecb 100644 --- a/x/escrow/keeper/internal/msg_server_test.go +++ b/x/escrow/keeper/internal/msg_server_test.go @@ -265,7 +265,7 @@ func (s *KeeperTestSuite) TestMsgExec() { eventExpected, err := sdk.TypedEventToEvent(&escrowv1alpha1.EventExec{ Executor: subject.Executor, - Agent: subject.Agent, + Agents: subject.Agents, Actions: subject.Actions, }) s.Require().NoError(err) @@ -303,27 +303,27 @@ func (s *KeeperTestSuite) TestMsgExec() { }, }, { - "nil agent": { + "nil agents": { Error: func() error { return escrowv1alpha1.ErrUnimplemented }, }, - "valid agent": { + "valid agents": { Malleate: func(subject *escrowv1alpha1.MsgExec) { - subject.Agent = s.addressBytesToString(s.agentAny) + subject.Agents = []string{s.addressBytesToString(s.agentAny)} }, }, - "invalid agent": { + "invalid agents": { Malleate: func(subject *escrowv1alpha1.MsgExec) { - subject.Agent = notInBech32 + subject.Agents = []string{notInBech32} }, Error: func() error { return escrowv1alpha1.ErrInvalidAddress }, }, - "agent not actions signer": { + "agents not actions signer": { Malleate: func(subject *escrowv1alpha1.MsgExec) { - subject.Agent = s.addressBytesToString(createRandomAccounts(1)[0]) + subject.Agents = []string{s.addressBytesToString(createRandomAccounts(1)[0])} }, Error: func() error { return escrowv1alpha1.ErrPermissionDenied diff --git a/x/escrow/keeper/internal/proposal.go b/x/escrow/keeper/internal/proposal.go index 2b30fc6..0e6759f 100644 --- a/x/escrow/keeper/internal/proposal.go +++ b/x/escrow/keeper/internal/proposal.go @@ -59,27 +59,23 @@ func (k Keeper) validateActions(actions []*codectypes.Any, signers []sdk.AccAddr } for i, action := range actions { - addIndex := func(err error) error { - return errors.Wrapf(err, "index %d", i) - } - msg, err := k.anyToMsg(*action) if err != nil { - return addIndex(err) + return indexedError(err, i) } actionSigners, _, err := k.cdc.GetMsgV1Signers(msg) if err != nil { - return addIndex(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error())) + return indexedError(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), i) } for _, signer := range actionSigners { if !signerMap[string(signer)] { signerStr, err := k.addressBytesToString(signer) if err != nil { - return addIndex(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error())) + return indexedError(escrowv1alpha1.ErrInvariantBroken.Wrap(err.Error()), i) } - return addIndex(errors.Wrap(escrowv1alpha1.ErrPermissionDenied.Wrap("wrong signer"), signerStr)) + return indexedError(errors.Wrap(escrowv1alpha1.ErrPermissionDenied.Wrap("wrong signer"), signerStr), i) } } } diff --git a/x/escrow/proto/andromeda/escrow/v1alpha1/event.proto b/x/escrow/proto/andromeda/escrow/v1alpha1/event.proto index 539f153..ca63d67 100644 --- a/x/escrow/proto/andromeda/escrow/v1alpha1/event.proto +++ b/x/escrow/proto/andromeda/escrow/v1alpha1/event.proto @@ -45,8 +45,8 @@ message EventExec { // the address of the account executed the proposal string executor = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; - // the address of the agent in charge - string agent = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + // the addresses of the agents in charge + repeated string agents = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; // the messages executed on the execution repeated google.protobuf.Any actions = 3; diff --git a/x/escrow/proto/andromeda/escrow/v1alpha1/tx.proto b/x/escrow/proto/andromeda/escrow/v1alpha1/tx.proto index a073dbf..cd9989a 100644 --- a/x/escrow/proto/andromeda/escrow/v1alpha1/tx.proto +++ b/x/escrow/proto/andromeda/escrow/v1alpha1/tx.proto @@ -30,7 +30,6 @@ message MsgUpdateParams { string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; // the maximum length allowed for metadata - // Note: it must be greater than or equal to the current's. uint64 max_metadata_length = 2; } @@ -85,11 +84,12 @@ message MsgExec { // the address of the account executing the proposal string executor = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; - // the address of the agent in charge - string agent = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + // the addresses of the agents in charge + repeated string agents = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; // the messages which will be executed on the execution - // Note: the signer of each message must be either the executor or the agent. + // Note: the signer of each message must be either the executor or one of the + // agents. repeated google.protobuf.Any actions = 3; } From 222858b8f79710af6ffb870bb7382beb34e77a83 Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Mon, 12 Feb 2024 11:59:50 +0000 Subject: [PATCH 47/62] Update documents and autocli --- README.md | 5 +- x/README.md | 6 +- x/escrow/README.md | 489 ++++++++++++++++-- x/escrow/andromeda/escrow/v1alpha1/tx.pb.go | 1 - .../andromeda/escrow/v1alpha1/tx.pulsar.go | 1 - x/escrow/module/autocli.go | 111 ++-- 6 files changed, 525 insertions(+), 88 deletions(-) diff --git a/README.md b/README.md index 8399cca..4440930 100644 --- a/README.md +++ b/README.md @@ -1 +1,4 @@ -# andromeda \ No newline at end of file +# andromeda + +This project provides several [modules](x/README.md) based on +[Cosmos SDK](https://github.com/cosmos/cosmos-sdk). diff --git a/x/README.md b/x/README.md index 1d367bf..a94b965 100644 --- a/x/README.md +++ b/x/README.md @@ -2,9 +2,9 @@ Here are some testing-grade modules, along with their respective documentation: -* [Escrow](./escrow/README.md) - Supports generalized transaction between accounts -* [Test](./test/README.md) - Helps testing other modules. You should not use it in applications. +* [Escrow](escrow/README.md) - Supports generalized transaction between accounts +* [Test](test/README.md) - Helps testing other modules. You should not use it in applications. ## Cosmos SDK -You can always use modules from [Cosmos SDK](https://github.com/cosmos/cosmos-sdk) applications. +You can always use modules from [Cosmos SDK](https://github.com/cosmos/cosmos-sdk) for your applications. diff --git a/x/escrow/README.md b/x/escrow/README.md index 4430240..644ea0c 100644 --- a/x/escrow/README.md +++ b/x/escrow/README.md @@ -30,6 +30,7 @@ reduce such efforts on common use cases. * [Client](#client) * [CLI](#cli) * [gRPC](#grpc) +* [Examples](#examples) ## Concepts @@ -74,9 +75,9 @@ A transaction begins with a certain proposer submitting a proposal. It is triggered by broadcasting `Msg/SubmitProposal`. The message has information of the proposer, the agent, the pre-actions and post-actions. An agent MUST be prepared by the proposer, in prior to the submission. The -signers included in the pre-actions and post-actions MUST be either the -proposer or the agent. As mentioned above, pre-actions will be executed in this -step. +signer of each message included in the pre-actions and post-actions MUST be +either the proposer or the agent. As mentioned above, pre-actions will be +executed in this step. After successful submission of the proposal, the agent would be pruned from the state. @@ -85,9 +86,10 @@ state. A proposal would be executed by a certain executor who is interested in. It is triggered by broadcasting `Msg/Exec`. The message has information of the -executor, the agent and the actions. The agent MUST be indentical with that of -the proposal. The signers included in the actions MUST be either the executor -or the agent. +executor, the agents and the actions. Each agent MUST have the corresponding +proposal. The signer of each message included in the actions MUST be either the +executor or one of the agents. The execution order of the post-actions is same +as the inclusion order of the agents. After successful execution of the proposal, the proposal would be pruned from the state. @@ -109,19 +111,17 @@ https://github.com/0tech/andromeda/blob/main/x/escrow/proto/andromeda/escrow/v1a ### Agents -* Agents: `0x11 | creator_address | agent_address -> ProtocolBuffer(Agent)` +* Agents: `0x11 | agent_address -> ProtocolBuffer(Agent)` +* AgentsByCreator: `0x12 | creator_address | agent_address` ```protobuf reference https://github.com/0tech/andromeda/blob/main/x/escrow/proto/andromeda/escrow/v1alpha1/types.proto#L9-L11 ``` -### NextProposal - -* NextProposal: `0x20 -> uint64` - ### Proposals -* Proposals: `0x21 | proposer_address | proposal_id -> ProtocolBuffer(Proposal)` +* Proposals: `0x20 | agent_address -> ProtocolBuffer(Proposal)` +* ProposalsByProposer: `0x21 | proposer_address | agent_address` ```protobuf reference https://github.com/0tech/andromeda/blob/main/x/escrow/proto/andromeda/escrow/v1alpha1/types.proto#L13-L23 @@ -200,11 +200,13 @@ Usage: and query escrow [command] Available Commands: - agent queries an agent. - agents queries all the agents. - params queries the module parameters. - proposal queries a proposal. - proposals queries all the proposals. + agent queries an agent. + agents queries all the agents. + agents-by-creator queries all the agents by its creator. + params queries the module parameters. + proposal queries a proposal. + proposals queries all the proposals. + proposals-by-proposer queries all the proposals by its proposer. ``` ##### params @@ -234,15 +236,38 @@ and query escrow agent --help queries an agent. Usage: - and query escrow agent --address [address] [flags] + and query escrow agent --agent [agent] [flags] Examples: -$ and query escrow agent --address cosmos1aaa... +$ and query escrow agent --agent cosmos1aaa... agent: address: cosmos1aaa... creator: cosmos1... ``` +##### agents-by-creator + +```bash +and query escrow agents-by-creator --help +``` + +```bash +queries all the agents by its creator. + +Usage: + and query escrow agents-by-creator --creator [creator] [flags] + +Examples: +$ and query escrow agents-by-creator --creator cosmos1ccc... +agents: +- address: cosmos1... + creator: cosmos1ccc... +- address: cosmos1... + creator: cosmos1ccc... +pagination: + total: "2" +``` + ##### agents ```bash @@ -278,13 +303,12 @@ and query escrow proposal --help queries a proposal. Usage: - and query escrow proposal --id [id] [flags] + and query escrow proposal --agent [agent] [flags] Examples: -$ and query escrow proposal --id 3 +$ and query escrow proposal --agent cosmos1aaa... proposal: - agent: cosmos1... - id: "3" + agent: cosmos1aaa... metadata: very good deal post_actions: - type: cosmos-sdk/MsgSend @@ -304,6 +328,49 @@ proposal: proposer: cosmos1... ``` +##### proposals-by-proposer + +```bash +and query escrow proposals-by-proposer --help +``` + +```bash +queries all the proposals by its proposer. + +Usage: + and query escrow proposals-by-proposer --proposer [proposer] [flags] + +Examples: +$ and query escrow proposals-by-proposer --proposer cosmos1ppp... +pagination: + total: "1" +proposals: +- agent: cosmos1... + metadata: limited time offer for you + post_actions: + - type: cosmos-sdk/MsgSend + value: + amount: + - amount: "42" + denom: stake + from_address: cosmos1... + to_address: cosmos1... + - type: /cosmos.nft.v1beta1.MsgSend + value: + class_id: ... + id: ... + receiver: cosmos1... + sender: cosmos1... + pre_actions: + - type: /cosmos.nft.v1beta1.MsgSend + value: + class_id: ... + id: ... + receiver: cosmos1... + sender: cosmos1... + proposer: cosmos1ppp... +``` + ##### proposals ```bash @@ -322,7 +389,6 @@ pagination: total: "2" proposals: - agent: cosmos1... - id: "3" metadata: very good deal post_actions: - type: cosmos-sdk/MsgSend @@ -341,7 +407,6 @@ proposals: sender: cosmos1... proposer: cosmos1... - agent: cosmos1... - id: "4" metadata: limited time offer for you post_actions: - type: cosmos-sdk/MsgSend @@ -396,10 +461,6 @@ and tx escrow update-params --help ```bash updates the module parameters. -Note: - max-metadata-length: - it must be greater than or equal to the current's. - Usage: and tx escrow update-params --from [authority] --max-metadata-length [max-metadata-length] [flags] @@ -478,20 +539,20 @@ Note: the signer of each message must be either the proposer or the agent. Usage: - and tx escrow submit-proposal --from [proposer] --agent [agent] --pre-actions [pre-actions] --post-actions [post-actions] [flags] + and tx escrow submit-proposal --from [proposer] --agent [agent] --pre-actions [pre-actions] --post-actions [post-actions] --metadata [metadata] [flags] Examples: $ and tx escrow submit-proposal --from cosmos1ppp... --agent cosmos1aaa... \ --pre-actions '{"@type": "/cosmos.nft.v1beta1.MsgSend", "class_id": "cat", - "id": "octocat", + "id": "leopardcat", "sender": "cosmos1ppp...", "receiver": "cosmos1aaa..."}' \ --post-actions '{"@type": "/cosmos.bank.v1beta1.MsgSend", "from_address": "cosmos1aaa", "to_address": "cosmos1ppp...", "amount": [{"amount": "42", "denom": "stake"}]}' \ - --metadata "sell octocat for 42stake" + --metadata "sell leopardcat for 42stake" auth_info: fee: amount: [] @@ -506,7 +567,7 @@ body: messages: - '@type': /andromeda.escrow.v1alpha1.MsgSubmitProposal agent: cosmos1aaa... - metadata: sell octocat for 42stake + metadata: sell leopardcat for 42stake post_actions: - '@type': /cosmos.bank.v1beta1.MsgSend amount: @@ -518,7 +579,7 @@ body: - '@type': /cosmos.nft.v1beta1.MsgSend value: class_id: cat - id: octocat + id: leopardcat receiver: cosmos1aaa... sender: cosmos1ppp... proposer: cosmos1ppp... @@ -539,16 +600,16 @@ executes a proposal. Note: actions: - the signer of each message must be either the executor or the agent. + the signer of each message must be either the executor or one of the agents. Usage: - and tx escrow exec --proposal [proposal] --from [executor] --agent [agent] --actions [actions] [flags] + and tx escrow exec --from [executor] --agents [agents] --actions [actions] [flags] Examples: -$ and tx escrow exec --proposal 2 --from cosmos1eee... --agent cosmos1... \ +$ and tx escrow exec --from cosmos1eee... --agents cosmos1aaa... \ --actions '{"@type": "/cosmos.nft.v1beta1.MsgSend", "class_id": "cat", - "id": "octocat", + "id": "leopardcat", "sender": "cosmos1aaa...", "receiver": "cosmos1eee..."}' \ --actions '{"@type": "/cosmos.bank.v1beta1.MsgSend", @@ -571,7 +632,7 @@ body: actions: - '@type': /cosmos.nft.v1beta1.MsgSend class_id: cat - id: octocat + id: leopardcat receiver: cosmos1eee... sender: cosmos1aaa... - '@type': /cosmos.bank.v1beta1.MsgSend @@ -580,9 +641,9 @@ body: denom: stake from_address: cosmos1eee... to_address: cosmos1aaa... - agent: cosmos1aaa... + agents: + - cosmos1aaa... executor: cosmos1eee... - proposal: "2" non_critical_extension_options: [] timeout_height: "0" signatures: [] @@ -599,9 +660,11 @@ grpcurl -plaintext \ ```bash andromeda.escrow.v1alpha1.Query.Agent andromeda.escrow.v1alpha1.Query.Agents +andromeda.escrow.v1alpha1.Query.AgentsByCreator andromeda.escrow.v1alpha1.Query.Params andromeda.escrow.v1alpha1.Query.Proposal andromeda.escrow.v1alpha1.Query.Proposals +andromeda.escrow.v1alpha1.Query.ProposalsByProposer ``` #### andromeda.escrow.v1alpha1.Query.Params @@ -637,7 +700,7 @@ Example: ```bash grpcurl -plaintext \ - -d '{"address": "cosmos1aaa..."}' \ + -d '{"agent": "cosmos1aaa..."}' \ localhost:9090 andromeda.escrow.v1alpha1.Query.Agent ``` @@ -652,6 +715,41 @@ Example Output: } ``` +### andromeda.escrow.v1alpha1.Query.AgentsByCreator + +```bash +grpcurl -plaintext \ + localhost:9090 describe andromeda.escrow.v1alpha1.Query.AgentsByCreator +``` + +Example: + +```bash +grpcurl -plaintext \ + -d '{"creator": "cosmos1ccc..."}' \ + localhost:9090 andromeda.escrow.v1alpha1.Query.AgentsByCreator +``` + +Example Output: + +```bash +{ + "agents": [ + { + "address": "cosmos1...", + "creator": "cosmos1ccc..." + }, + { + "address": "cosmos1...", + "creator": "cosmos1ccc..." + } + ], + "pagination": { + "total": "2" + } +} +``` + ### andromeda.escrow.v1alpha1.Query.Agents ```bash @@ -701,7 +799,7 @@ Example: ```bash grpcurl -plaintext \ - -d '{"id": "3"}' \ + -d '{"agent": "cosmos1aaa..."}' \ localhost:9090 andromeda.escrow.v1alpha1.Query.Proposal ``` @@ -710,9 +808,8 @@ Example Output: ```bash { "proposal": { - "id": "3", + "agent": "cosmos1aaa...", "proposer": "cosmos1...", - "agent": "cosmos1...", "preActions": [ { "@type": "/cosmos.nft.v1beta1.MsgSend", @@ -740,6 +837,67 @@ Example Output: } ``` +### andromeda.escrow.v1alpha1.Query.ProposalsByProposer + +```bash +grpcurl -plaintext \ + localhost:9090 describe andromeda.escrow.v1alpha1.Query.ProposalsByProposer +``` + +Example: + +```bash +grpcurl -plaintext \ + -d '{"proposer": "cosmos1ppp..."}' \ + localhost:9090 andromeda.escrow.v1alpha1.Query.ProposalsByProposer +``` + +Example Output: + +```bash +{ + "proposals": [ + { + "agent": "cosmos1...", + "proposer": "cosmos1ppp...", + "preActions": [ + { + "@type": "/cosmos.nft.v1beta1.MsgSend", + "classId": "...", + "id": "...", + "sender": "cosmos1...", + "receiver": "cosmos1..." + } + ], + "postActions": [ + { + "@type": "/cosmos.bank.v1beta1.MsgSend", + "amount": [ + { + "denom": "stake", + "amount": "42" + } + ], + "fromAddress": "cosmos1...", + "toAddress": "cosmos1..." + }, + { + "@type": "/cosmos.nft.v1beta1.MsgSend", + "classId": "...", + "id": "...", + "sender": "cosmos1...", + "receiver": "cosmos1..." + } + ], + "metadata": "limited time offer for you" + }, + ], + "pagination": { + "total": "1" + } +} +``` + ### andromeda.escrow.v1alpha1.Query.Proposals ```bash @@ -760,9 +918,8 @@ Example Output: { "proposals": [ { - "id": "3", - "proposer": "cosmos1...", "agent": "cosmos1...", + "proposer": "cosmos1...", "preActions": [ { "@type": "/cosmos.nft.v1beta1.MsgSend", @@ -788,9 +945,8 @@ Example Output: "metadata": "very good deal" }, { - "id": "4", - "proposer": "cosmos1...", "agent": "cosmos1...", + "proposer": "cosmos1...", "preActions": [ { "@type": "/cosmos.nft.v1beta1.MsgSend", @@ -828,3 +984,238 @@ Example Output: } } ``` + + +## Examples + +### Selling an NFT for coins + +It would be the most trivial usage of this module. In this example, a proposer +`cosmos1ppp...` sells an x/nft token `cat:leopardcat` for x/bank coins +`42stake`. + +```yaml +agent: cosmos1aaa... +metadata: sell leopardcat for 42stake +post_actions: +- '@type': /cosmos.bank.v1beta1.MsgSend + amount: + - amount: "42" + denom: stake + from_address: cosmos1aaa... + to_address: cosmos1ppp... +pre_actions: +- '@type': /cosmos.nft.v1beta1.MsgSend + value: + class_id: cat + id: leopardcat + receiver: cosmos1aaa... + sender: cosmos1ppp... +proposer: cosmos1ppp... +``` + +The proposal would be executed by `cosmos1eee...`, who is willing to pay +`42stake` for `cat:leopardcat`. + +```yaml +actions: +- '@type': /cosmos.nft.v1beta1.MsgSend + class_id: cat + id: leopardcat + receiver: cosmos1eee... + sender: cosmos1aaa... +- '@type': /cosmos.bank.v1beta1.MsgSend + amount: + - amount: "42" + denom: stake + from_address: cosmos1eee... + to_address: cosmos1aaa... +agents: +- cosmos1aaa... +executor: cosmos1eee... +``` + +### Selling coins for an NFT + +It may sound strange, but one can sell coins for a certain NFT. In this +example, a proposer `cosmos1ppp...` sells x/bank coins `42stake` for an x/nft +token `cat:leopardcat`. + +```yaml +agent: cosmos1aaa... +metadata: sell 42stake for leopardcat +post_actions: +- '@type': /cosmos.nft.v1beta1.MsgSend + value: + class_id: cat + id: leopardcat + receiver: cosmos1ppp... + sender: cosmos1aaa... +pre_actions: +- '@type': /cosmos.bank.v1beta1.MsgSend + amount: + - amount: "42" + denom: stake + from_address: cosmos1ppp... + to_address: cosmos1aaa... +proposer: cosmos1ppp... +``` + +The proposal would be executed by `cosmos1eee...`, who is willing to pay +`cat:leopardcat` for `42stake`. + +```yaml +actions: +- '@type': /cosmos.bank.v1beta1.MsgSend + amount: + - amount: "42" + denom: stake + from_address: cosmos1aaa... + to_address: cosmos1eee... +- '@type': /cosmos.nft.v1beta1.MsgSend + class_id: cat + id: leopardcat + receiver: cosmos1aaa... + sender: cosmos1eee... +agents: +- cosmos1aaa... +executor: cosmos1eee... +``` + +### Selling an NFT to a specific account + +One may want to offer deals to a specific account. In this example, a proposer +`cosmos1ppp...` sells an x/nft token `cat:leopardcat` for x/bank coins +`42stake` to `cosmos1eee...`. + +```yaml +agent: cosmos1aaa... +metadata: sell leopardcat for 42stake +post_actions: +- '@type': /cosmos.bank.v1beta1.MsgSend + amount: + - amount: "42" + denom: stake + from_address: cosmos1aaa... + to_address: cosmos1ppp... +- '@type': /cosmos.nft.v1beta1.MsgSend + value: + class_id: cat + id: leopardcat + receiver: cosmos1eee... + sender: cosmos1aaa... +pre_actions: +- '@type': /cosmos.nft.v1beta1.MsgSend + value: + class_id: cat + id: leopardcat + receiver: cosmos1aaa... + sender: cosmos1ppp... +proposer: cosmos1ppp... +``` + +Technically, the proposal could be executed by anyone. However, it would not be +a wise choice executing this proposal for the others, because the messages +included in the pre-actions, actions and post-actions are all-or-none. And +this proposal has a specific receipient of the NFT, so the proposer can assure +the designated recipient will receive the NFT eventually. + +The recipient, `cosmos1eee...`, who has an interest on this deal, will execute +the proposal. + +```yaml +actions: +- '@type': /cosmos.bank.v1beta1.MsgSend + amount: + - amount: "42" + denom: stake + from_address: cosmos1eee... + to_address: cosmos1aaa... +agents: +- cosmos1aaa... +executor: cosmos1eee... +``` + +#### Mediating sellings + +One can mediate multiple proposals. In this example, one proposer +`cosmos1ppp...` sells x/bank coins `1notscam` for x/bank coins `42stake`. + +```yaml +agent: cosmos1aaa... +metadata: sell 1notscam for 42stake +post_actions: +- '@type': /cosmos.bank.v1beta1.MsgSend + amount: + - amount: "42" + denom: stake + from_address: cosmos1aaa... + to_address: cosmos1ppp... +pre_actions: +- '@type': /cosmos.bank.v1beta1.MsgSend + amount: + - amount: "1" + denom: notscam + from_address: cosmos1ppp... + to_address: cosmos1aaa... +proposer: cosmos1ppp... +``` + +The other proposer `cosmos1qqq...` sells x/bank coins `4242stake` for x/bank +coins `1notscam`. + +```yaml +agent: cosmos1bbb... +metadata: sell 1notscam for 4242stake +post_actions: +- '@type': /cosmos.bank.v1beta1.MsgSend + amount: + - amount: "1" + denom: notscam + from_address: cosmos1bbb... + to_address: cosmos1qqq... +pre_actions: +- '@type': /cosmos.bank.v1beta1.MsgSend + amount: + - amount: "4242" + denom: stake + from_address: cosmos1qqq... + to_address: cosmos1bbb... +proposer: cosmos1qqq... +``` + +In real life, this is a typical type of scam. If you execute the first proposal +to buy `1notscam`, hoping to sell it to `cosmos1qqq...` to earn the difference +`4200stake`, they will execute the second proposal immediately. But on a cosmos +chain, it won't work, because you can send multiple messages in a tx, ensuring +they would be executed in all-or-none manner. + +Or, you can mediate the proposals, meaning executing multiple proposals in a +one `Msg/Exec`. In this way, you don't even need to prepare `42stake` to +trigger the first proposal. + +```yaml +actions: +- '@type': /cosmos.bank.v1beta1.MsgSend + amount: + - amount: "4200" + denom: stake + from_address: cosmos1bbb... + to_address: cosmos1eee... +- '@type': /cosmos.bank.v1beta1.MsgSend + amount: + - amount: "42" + denom: stake + from_address: cosmos1bbb... + to_address: cosmos1aaa... +- '@type': /cosmos.bank.v1beta1.MsgSend + amount: + - amount: "1" + denom: notscam + from_address: cosmos1aaa... + to_address: cosmos1bbb... +agents: +- cosmos1aaa... +- cosmos1bbb... +executor: cosmos1eee... +``` diff --git a/x/escrow/andromeda/escrow/v1alpha1/tx.pb.go b/x/escrow/andromeda/escrow/v1alpha1/tx.pb.go index e460a34..d480661 100644 --- a/x/escrow/andromeda/escrow/v1alpha1/tx.pb.go +++ b/x/escrow/andromeda/escrow/v1alpha1/tx.pb.go @@ -35,7 +35,6 @@ type MsgUpdateParams struct { // the address of the module authority Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // the maximum length allowed for metadata - // Note: it must be greater than or equal to the current's. MaxMetadataLength uint64 `protobuf:"varint,2,opt,name=max_metadata_length,json=maxMetadataLength,proto3" json:"max_metadata_length,omitempty"` } diff --git a/x/escrow/api/andromeda/escrow/v1alpha1/tx.pulsar.go b/x/escrow/api/andromeda/escrow/v1alpha1/tx.pulsar.go index 3e44ac5..457e8b7 100644 --- a/x/escrow/api/andromeda/escrow/v1alpha1/tx.pulsar.go +++ b/x/escrow/api/andromeda/escrow/v1alpha1/tx.pulsar.go @@ -3919,7 +3919,6 @@ type MsgUpdateParams struct { // the address of the module authority Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // the maximum length allowed for metadata - // Note: it must be greater than or equal to the current's. MaxMetadataLength uint64 `protobuf:"varint,2,opt,name=max_metadata_length,json=maxMetadataLength,proto3" json:"max_metadata_length,omitempty"` } diff --git a/x/escrow/module/autocli.go b/x/escrow/module/autocli.go index 399ea8b..8ca9a39 100644 --- a/x/escrow/module/autocli.go +++ b/x/escrow/module/autocli.go @@ -24,16 +24,34 @@ max_metadata_length: "42"`, { RpcMethod: "Agent", Short: "queries an agent.", - Use: "agent --address [address]", + Use: "agent --agent [agent]", FlagOptions: map[string]*autocliv1.FlagOptions{ - "address": { + "agent": { Usage: "the address of an agent", }, }, - Example: `$ and query escrow agent --address cosmos1aaa... + Example: `$ and query escrow agent --agent cosmos1aaa... agent: address: cosmos1aaa... creator: cosmos1...`, + }, + { + RpcMethod: "AgentsByCreator", + Short: "queries all the agents by its creator.", + Use: "agents-by-creator --creator [creator]", + FlagOptions: map[string]*autocliv1.FlagOptions{ + "creator": { + Usage: "the address of a creator", + }, + }, + Example: `$ and query escrow agents-by-creator --creator cosmos1ccc... +agents: +- address: cosmos1... + creator: cosmos1ccc... +- address: cosmos1... + creator: cosmos1ccc... +pagination: + total: "2"`, }, { RpcMethod: "Agents", @@ -52,16 +70,15 @@ pagination: { RpcMethod: "Proposal", Short: "queries a proposal.", - Use: "proposal --id [id]", + Use: "proposal --agent [agent]", FlagOptions: map[string]*autocliv1.FlagOptions{ - "id": { - Usage: "the identifier of a proposal", + "agent": { + Usage: "the address of an agent in charge", }, }, - Example: `$ and query escrow proposal --id 3 + Example: `$ and query escrow proposal --agent cosmos1aaa... proposal: - agent: cosmos1... - id: "3" + agent: cosmos1aaa... metadata: very good deal post_actions: - type: cosmos-sdk/MsgSend @@ -79,6 +96,44 @@ proposal: receiver: cosmos1... sender: cosmos1... proposer: cosmos1...`, + }, + { + RpcMethod: "ProposalsByProposer", + Short: "queries all the proposals by its proposer.", + Use: "proposals-by-proposer --proposer [proposer]", + FlagOptions: map[string]*autocliv1.FlagOptions{ + "proposer": { + Usage: "the address of a proposer", + }, + }, + Example: `$ and query escrow proposals-by-proposer --proposer cosmos1ppp... +pagination: + total: "1" +proposals: +- agent: cosmos1... + metadata: limited time offer for you + post_actions: + - type: cosmos-sdk/MsgSend + value: + amount: + - amount: "42" + denom: stake + from_address: cosmos1... + to_address: cosmos1... + - type: /cosmos.nft.v1beta1.MsgSend + value: + class_id: ... + id: ... + receiver: cosmos1... + sender: cosmos1... + pre_actions: + - type: /cosmos.nft.v1beta1.MsgSend + value: + class_id: ... + id: ... + receiver: cosmos1... + sender: cosmos1... + proposer: cosmos1ppp...`, }, { RpcMethod: "Proposals", @@ -88,7 +143,6 @@ pagination: total: "2" proposals: - agent: cosmos1... - id: "3" metadata: very good deal post_actions: - type: cosmos-sdk/MsgSend @@ -107,7 +161,6 @@ proposals: sender: cosmos1... proposer: cosmos1... - agent: cosmos1... - id: "4" metadata: limited time offer for you post_actions: - type: cosmos-sdk/MsgSend @@ -140,12 +193,7 @@ proposals: { RpcMethod: "UpdateParams", Short: "updates the module parameters.", - Long: `updates the module parameters. - -Note: - max-metadata-length: - it must be greater than or equal to the current's.`, - Use: "update-params --from [authority] --max-metadata-length [max-metadata-length]", + Use: "update-params --from [authority] --max-metadata-length [max-metadata-length]", FlagOptions: map[string]*autocliv1.FlagOptions{ "max_metadata_length": { Usage: "the maximum length allowed for metadata", @@ -226,14 +274,14 @@ Note: Example: `$ and tx escrow submit-proposal --from cosmos1ppp... --agent cosmos1aaa... \ --pre-actions '{"@type": "/cosmos.nft.v1beta1.MsgSend", "class_id": "cat", - "id": "octocat", + "id": "leopardcat", "sender": "cosmos1ppp...", "receiver": "cosmos1aaa..."}' \ --post-actions '{"@type": "/cosmos.bank.v1beta1.MsgSend", "from_address": "cosmos1aaa", "to_address": "cosmos1ppp...", "amount": [{"amount": "42", "denom": "stake"}]}' \ - --metadata "sell octocat for 42stake" + --metadata "sell leopardcat for 42stake" auth_info: fee: amount: [] @@ -248,7 +296,7 @@ body: messages: - '@type': /andromeda.escrow.v1alpha1.MsgSubmitProposal agent: cosmos1aaa... - metadata: sell octocat for 42stake + metadata: sell leopardcat for 42stake post_actions: - '@type': /cosmos.bank.v1beta1.MsgSend amount: @@ -260,7 +308,7 @@ body: - '@type': /cosmos.nft.v1beta1.MsgSend value: class_id: cat - id: octocat + id: leopardcat receiver: cosmos1aaa... sender: cosmos1ppp... proposer: cosmos1ppp... @@ -276,23 +324,20 @@ confirm transaction before signing and broadcasting [y/N]:`, Note: actions: - the signer of each message must be either the executor or the agent.`, - Use: "exec --proposal [proposal] --from [executor] --agent [agent] --actions [actions]", + the signer of each message must be either the executor or one of the agents.`, + Use: "exec --from [executor] --agents [agents] --actions [actions]", FlagOptions: map[string]*autocliv1.FlagOptions{ - "proposal": { - Usage: "the identifier of the proposal", - }, - "agent": { - Usage: "the address of the agent in charge", + "agents": { + Usage: "the addresses of the agents in charge", }, "actions": { Usage: "the messages which will be executed on the execution", }, }, - Example: `$ and tx escrow exec --proposal 2 --from cosmos1eee... --agent cosmos1... \ + Example: `$ and tx escrow exec --from cosmos1eee... --agents cosmos1aaa... \ --actions '{"@type": "/cosmos.nft.v1beta1.MsgSend", "class_id": "cat", - "id": "octocat", + "id": "leopardcat", "sender": "cosmos1aaa...", "receiver": "cosmos1eee..."}' \ --actions '{"@type": "/cosmos.bank.v1beta1.MsgSend", @@ -315,7 +360,7 @@ body: actions: - '@type': /cosmos.nft.v1beta1.MsgSend class_id: cat - id: octocat + id: leopardcat receiver: cosmos1eee... sender: cosmos1aaa... - '@type': /cosmos.bank.v1beta1.MsgSend @@ -324,9 +369,9 @@ body: denom: stake from_address: cosmos1eee... to_address: cosmos1aaa... - agent: cosmos1aaa... + agents: + - cosmos1aaa... executor: cosmos1eee... - proposal: "2" non_critical_extension_options: [] timeout_height: "0" signatures: [] From e48c3771e5faac40bcb680ae18541aa1011dadc7 Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Mon, 12 Feb 2024 12:28:37 +0000 Subject: [PATCH 48/62] Refactor builder setups --- .github/workflows/module.yml | 25 ++++--- CMakeLists.txt | 2 - app/CMakeLists.txt | 3 +- cmd/and/CMakeLists.txt | 3 +- runners/CMakeLists.txt | 6 +- runners/bare/install/CMakeLists.txt | 30 +++++--- .../bare/install/protoc-gen-go-pulsar.cmake | 7 +- .../bare/install/protoc-gen-gocosmos.cmake | 7 +- .../install/protoc-gen-grpc-gateway.cmake | 7 +- runners/bare/install/version.cmake | 13 ++++ runners/bare/targets/CMakeLists.txt | 71 +++++++++++++------ runners/docker/targets/CMakeLists.txt | 16 ++--- x/escrow/CMakeLists.txt | 5 +- x/test/CMakeLists.txt | 5 +- 14 files changed, 119 insertions(+), 81 deletions(-) create mode 100644 runners/bare/install/version.cmake diff --git a/.github/workflows/module.yml b/.github/workflows/module.yml index 4540a4a..37dea64 100644 --- a/.github/workflows/module.yml +++ b/.github/workflows/module.yml @@ -18,9 +18,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Configure - run: cmake -S . -B build -D USE_DOCKER=NO - - name: Install builders - run: cmake --build build --target install_builders + run: cmake -S . -B build -D FIX_IS_ERROR=ON - name: Lint run: cmake --build build --target go_lint_${{ env.id }} go-build: @@ -29,9 +27,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Configure - run: cmake -S . -B build -D USE_DOCKER=NO - - name: Install builders - run: cmake --build build --target install_builders + run: cmake -S . -B build -D FIX_IS_ERROR=ON - name: Build run: cmake --build build --target go_build_${{ env.id }} go-test: @@ -42,9 +38,9 @@ jobs: with: fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis - name: Configure - run: cmake -S . -B build -D USE_DOCKER=NO + run: cmake -S . -B build -D FIX_IS_ERROR=ON - name: Install builders - run: cmake --build build --target install_builders + run: cmake --build build --target install_go - name: Test run: | VERBOSE=1 ctest --test-dir build --output-on-failure --stop-on-failure -R ${{ env.id }} @@ -56,14 +52,21 @@ jobs: SONAR_TOKEN: ${{ secrets.sonar-token }} with: projectBaseDir: ${{ env.path }}/ + buf-format: + name: buf format + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Configure + run: cmake -S . -B build -D FIX_IS_ERROR=ON + - name: Lint + run: cmake --build build --target buf_format_${{ env.id }} buf-lint: name: buf lint runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Configure - run: cmake -S . -B build -D USE_DOCKER=NO - - name: Install builders - run: cmake --build build --target install_builders + run: cmake -S . -B build -D FIX_IS_ERROR=ON - name: Lint run: cmake --build build --target buf_lint_${{ env.id }} diff --git a/CMakeLists.txt b/CMakeLists.txt index 21cd5b5..42c48d5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,5 @@ cmake_minimum_required(VERSION 3.25.1) -cmake_policy(SET CMP0140 NEW) - option(CMAKE_COLOR_DIAGNOSTICS "Enable/Disable color output during build.") diff --git a/app/CMakeLists.txt b/app/CMakeLists.txt index 188ad53..509bb9e 100644 --- a/app/CMakeLists.txt +++ b/app/CMakeLists.txt @@ -3,7 +3,6 @@ project(app ) add_go_tidy() -add_go_lint_fix() -add_go_build() add_go_lint() +add_go_build() add_go_test() diff --git a/cmd/and/CMakeLists.txt b/cmd/and/CMakeLists.txt index 173c3d0..be0f8c1 100644 --- a/cmd/and/CMakeLists.txt +++ b/cmd/and/CMakeLists.txt @@ -3,7 +3,6 @@ project(and ) add_go_tidy() -add_go_lint_fix() -add_go_build_executable() add_go_lint() +add_go_build_executable() add_go_test() diff --git a/runners/CMakeLists.txt b/runners/CMakeLists.txt index e25ec9e..cebc234 100644 --- a/runners/CMakeLists.txt +++ b/runners/CMakeLists.txt @@ -1,11 +1,11 @@ -set(USE_DOCKER TRUE CACHE BOOL "use docker to run binaries") +option(USE_DOCKER "use docker to run binaries") add_custom_target(go_tidy) -add_custom_target(go_lint_fix) -add_custom_target(go_build) add_custom_target(go_lint) +add_custom_target(go_build) add_custom_target(buf_build) +add_custom_target(buf_format) add_custom_target(buf_lint) add_custom_target(buf_generate) diff --git a/runners/bare/install/CMakeLists.txt b/runners/bare/install/CMakeLists.txt index 7e4e060..5c957ec 100644 --- a/runners/bare/install/CMakeLists.txt +++ b/runners/bare/install/CMakeLists.txt @@ -14,52 +14,60 @@ set(PROTOC_GEN_GOCOSMOS_VERSION 1.4.11 CACHE STRING "protoc-gen-gocosmos version set(PROTOC_GEN_GO_PULSAR_VERSION 1.0.0-beta.3 CACHE STRING "protoc-gen-go-pulsar version") add_custom_target(install_builders - DEPENDS install_go install_golangci-lint install_buf install_protoc-gen-gocosmos install_protoc-gen-go-pulsar install_protoc-gen-grpc-gateway + DEPENDS install_go install_golangci-lint install_buf install_protoc-gen-go install_protoc-gen-go-grpc install_protoc-gen-gocosmos install_protoc-gen-go-pulsar install_protoc-gen-grpc-gateway ) add_custom_target(install_go - COMMAND cmake -D VERSION=${GO_VERSION} -P ${CMAKE_CURRENT_SOURCE_DIR}/go.cmake + COMMAND cmake -D VERSION=${GO_VERSION} -P go.cmake + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} VERBATIM ) add_custom_target(install_buf DEPENDS install_go - COMMAND cmake -D VERSION=${BUF_VERSION} -P ${CMAKE_CURRENT_SOURCE_DIR}/buf.cmake + COMMAND cmake -D VERSION=${BUF_VERSION} -P buf.cmake + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} VERBATIM ) add_custom_target(install_golangci-lint DEPENDS install_go - COMMAND cmake -D VERSION=${GO_LINT_VERSION} -P ${CMAKE_CURRENT_SOURCE_DIR}/golangci-lint.cmake + COMMAND cmake -D VERSION=${GO_LINT_VERSION} -P golangci-lint.cmake + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} VERBATIM ) add_custom_target(install_protoc-gen-gocosmos DEPENDS install_go - COMMAND cmake -D VERSION=${PROTOC_GEN_GOCOSMOS_VERSION} -P ${CMAKE_CURRENT_SOURCE_DIR}/protoc-gen-gocosmos.cmake + COMMAND cmake -D VERSION=${PROTOC_GEN_GOCOSMOS_VERSION} -P protoc-gen-gocosmos.cmake + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} VERBATIM ) add_custom_target(install_protoc-gen-go-pulsar DEPENDS install_go - COMMAND cmake -D VERSION=${PROTOC_GEN_GO_PULSAR_VERSION} -P ${CMAKE_CURRENT_SOURCE_DIR}/protoc-gen-go-pulsar.cmake + COMMAND cmake -D VERSION=${PROTOC_GEN_GO_PULSAR_VERSION} -P protoc-gen-go-pulsar.cmake + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} VERBATIM ) add_custom_target(install_protoc-gen-grpc-gateway - DEPENDS install_go install_protoc-gen-go-grpc - COMMAND cmake -D VERSION=${PROTOC_GEN_GRPC_GATEWAY_VERSION} -P ${CMAKE_CURRENT_SOURCE_DIR}/protoc-gen-grpc-gateway.cmake + DEPENDS install_go + COMMAND cmake -D VERSION=${PROTOC_GEN_GRPC_GATEWAY_VERSION} -P protoc-gen-grpc-gateway.cmake + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} VERBATIM ) add_custom_target(install_protoc-gen-go-grpc - DEPENDS install_go install_protoc-gen-go - COMMAND cmake -D VERSION=${PROTOC_GEN_GO_GRPC_VERSION} -P ${CMAKE_CURRENT_SOURCE_DIR}/protoc-gen-go-grpc.cmake + DEPENDS install_go + COMMAND cmake -D VERSION=${PROTOC_GEN_GO_GRPC_VERSION} -P protoc-gen-go-grpc.cmake + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} VERBATIM ) add_custom_target(install_protoc-gen-go DEPENDS install_go - COMMAND cmake -D VERSION=${PROTOC_GEN_GO_VERSION} -P ${CMAKE_CURRENT_SOURCE_DIR}/protoc-gen-go.cmake + COMMAND cmake -D VERSION=${PROTOC_GEN_GO_VERSION} -P protoc-gen-go.cmake + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} VERBATIM ) diff --git a/runners/bare/install/protoc-gen-go-pulsar.cmake b/runners/bare/install/protoc-gen-go-pulsar.cmake index c90facc..6dacbad 100644 --- a/runners/bare/install/protoc-gen-go-pulsar.cmake +++ b/runners/bare/install/protoc-gen-go-pulsar.cmake @@ -2,12 +2,9 @@ cmake_policy(SET CMP0140 NEW) -function(get_version _version) - set(${_version} 0) - return(PROPAGATE ${_version}) -endfunction() +include(version.cmake) -get_version(version) +get_version(version protoc-gen-go-pulsar github.com/cosmos/cosmos-proto) if(VERSION VERSION_EQUAL version) return() endif() diff --git a/runners/bare/install/protoc-gen-gocosmos.cmake b/runners/bare/install/protoc-gen-gocosmos.cmake index efc7af9..7f274ff 100644 --- a/runners/bare/install/protoc-gen-gocosmos.cmake +++ b/runners/bare/install/protoc-gen-gocosmos.cmake @@ -2,12 +2,9 @@ cmake_policy(SET CMP0140 NEW) -function(get_version _version) - set(${_version} 0) - return(PROPAGATE ${_version}) -endfunction() +include(version.cmake) -get_version(version) +get_version(version protoc-gen-gocosmos github.com/cosmos/gogoproto) if(VERSION VERSION_EQUAL version) return() endif() diff --git a/runners/bare/install/protoc-gen-grpc-gateway.cmake b/runners/bare/install/protoc-gen-grpc-gateway.cmake index 72221be..75a36de 100644 --- a/runners/bare/install/protoc-gen-grpc-gateway.cmake +++ b/runners/bare/install/protoc-gen-grpc-gateway.cmake @@ -2,12 +2,9 @@ cmake_policy(SET CMP0140 NEW) -function(get_version _version) - set(${_version} 0) - return(PROPAGATE ${_version}) -endfunction() +include(version.cmake) -get_version(version) +get_version(version protoc-gen-grpc-gateway github.com/grpc-ecosystem/grpc-gateway) if(VERSION VERSION_EQUAL version) return() endif() diff --git a/runners/bare/install/version.cmake b/runners/bare/install/version.cmake new file mode 100644 index 0000000..24655c0 --- /dev/null +++ b/runners/bare/install/version.cmake @@ -0,0 +1,13 @@ +function(get_version _version _binary _module) + find_file(_binary_path ${_binary}) + execute_process( + COMMAND go version -m ${_binary_path} + OUTPUT_VARIABLE _output + ) + + string(REGEX MATCH "[ \t]*mod[ \t]*${_module}[ \t]*v[^ \t]*" _grep "${_output}") + string(REGEX MATCH "v[^ \t]*$" _tag ${_grep}) + string(SUBSTRING ${_tag} 1 -1 ${_version}) + + return(PROPAGATE ${_version}) +endfunction() diff --git a/runners/bare/targets/CMakeLists.txt b/runners/bare/targets/CMakeLists.txt index 39580b8..552379f 100644 --- a/runners/bare/targets/CMakeLists.txt +++ b/runners/bare/targets/CMakeLists.txt @@ -1,3 +1,5 @@ +option(FIX_IS_ERROR "") + function(add_go_tidy) set(_target go_tidy_${PROJECT_NAME}) add_custom_target(${_target} @@ -13,17 +15,27 @@ function(add_go_tidy) ) endfunction() -function(add_go_lint_fix) - set(_target go_lint_fix_${PROJECT_NAME}) - add_custom_target(${_target} - COMMAND golangci-lint run --fix - WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} - VERBATIM - ) +function(add_go_lint) + set(_target go_lint_${PROJECT_NAME}) + + if(FIX_IS_ERROR) + add_custom_target(${_target} + COMMAND golangci-lint run + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} + VERBATIM + ) + else() + add_custom_target(${_target} + COMMAND golangci-lint run --fix + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} + VERBATIM + ) + endif() + add_dependencies(${_target} install_golangci-lint ) - add_dependencies(go_lint_fix + add_dependencies(go_lint ${_target} ) endfunction() @@ -58,21 +70,6 @@ function(add_go_build_executable) ) endfunction() -function(add_go_lint) - set(_target go_lint_${PROJECT_NAME}) - add_custom_target(${_target} - COMMAND golangci-lint run - WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} - VERBATIM - ) - add_dependencies(${_target} - install_golangci-lint - ) - add_dependencies(go_lint - ${_target} - ) -endfunction() - function(add_go_test) add_test( NAME ${PROJECT_NAME} @@ -96,6 +93,31 @@ function(add_buf_build) ) endfunction() +function(add_buf_format) + set(_target buf_format_${PROJECT_NAME}) + + if(FIX_IS_ERROR) + add_custom_target(${_target} + COMMAND buf format --diff --exit-code + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/proto + VERBATIM + ) + else() + add_custom_target(${_target} + COMMAND buf format --write + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/proto + VERBATIM + ) + endif() + + add_dependencies(${_target} + install_buf + ) + add_dependencies(buf_format + ${_target} + ) +endfunction() + function(add_buf_lint) set(_target buf_lint_${PROJECT_NAME}) add_custom_target(${_target} @@ -123,6 +145,9 @@ function(add_buf_generate) install_buf install_protoc-gen-go install_protoc-gen-go-grpc + install_protoc-gen-gocosmos + install_protoc-gen-go-pulsar + install_protoc-gen-grpc-gateway ) add_dependencies(buf_generate ${_target} diff --git a/runners/docker/targets/CMakeLists.txt b/runners/docker/targets/CMakeLists.txt index 970cf07..2f4bf54 100644 --- a/runners/docker/targets/CMakeLists.txt +++ b/runners/docker/targets/CMakeLists.txt @@ -4,7 +4,7 @@ function(add_docker_target _type) set(_target ${_type}_${PROJECT_NAME}) add_custom_target(${_target} - COMMAND cmake -D IDFILE=${_builder_binary_dir}/id.txt -D BIND_DIR=${CMAKE_SOURCE_DIR} -D "COMMAND=cmake -S . -B /tmp/build -D USE_DOCKER=NO && cmake --build /tmp/build --target ${_target}" -P ${CMAKE_CURRENT_FUNCTION_LIST_DIR}/docker-run.cmake + COMMAND cmake -D IDFILE=${_builder_binary_dir}/id.txt -D BIND_DIR=${CMAKE_SOURCE_DIR} -D "COMMAND=cmake -S . -B /tmp/build -D FIX_IS_ERROR=${FIX_IS_ERROR} && cmake --build /tmp/build --target ${_target}" -P ${CMAKE_CURRENT_FUNCTION_LIST_DIR}/docker-run.cmake VERBATIM ) add_dependencies(${_target} @@ -27,7 +27,7 @@ function(add_docker_test) add_test( NAME ${_target} - COMMAND cmake -D IDFILE=${_builder_binary_dir}/id.txt -D BIND_DIR=${CMAKE_SOURCE_DIR} -D "COMMAND=cmake -S . -B /tmp/build -D USE_DOCKER=NO && ctest --test-dir /tmp/build --output-on-failure -R ${_target}" -P ${CMAKE_CURRENT_FUNCTION_LIST_DIR}/docker-run.cmake + COMMAND cmake -D IDFILE=${_builder_binary_dir}/id.txt -D BIND_DIR=${CMAKE_SOURCE_DIR} -D "COMMAND=cmake -S . -B /tmp/build -D FIX_IS_ERROR=${FIX_IS_ERROR} && ctest --test-dir /tmp/build --output-on-failure -R ${_target}" -P ${CMAKE_CURRENT_FUNCTION_LIST_DIR}/docker-run.cmake ) endfunction() @@ -36,8 +36,8 @@ function(add_go_tidy) add_docker_target(go_tidy) endfunction() -function(add_go_lint_fix) - add_docker_target(go_lint_fix) +function(add_go_lint) + add_docker_target(go_lint) endfunction() function(add_go_build) @@ -48,10 +48,6 @@ function(add_go_build_executable) add_docker_target(go_build_executable) endfunction() -function(add_go_lint) - add_docker_target(go_lint) -endfunction() - function(add_go_test) add_docker_test() endfunction() @@ -60,6 +56,10 @@ function(add_buf_build) add_docker_target(buf_build) endfunction() +function(add_buf_format) + add_docker_target(buf_format) +endfunction() + function(add_buf_lint) add_docker_target(buf_lint) endfunction() diff --git a/x/escrow/CMakeLists.txt b/x/escrow/CMakeLists.txt index f9a28e6..c40c8c6 100644 --- a/x/escrow/CMakeLists.txt +++ b/x/escrow/CMakeLists.txt @@ -3,10 +3,11 @@ project(x-escrow ) add_go_tidy() -add_go_lint_fix() -add_go_build() add_go_lint() +add_go_build() add_go_test() + add_buf_build() +add_buf_format() add_buf_lint() add_buf_generate() diff --git a/x/test/CMakeLists.txt b/x/test/CMakeLists.txt index 03eb9a7..c7a5eec 100644 --- a/x/test/CMakeLists.txt +++ b/x/test/CMakeLists.txt @@ -3,10 +3,11 @@ project(x-test ) add_go_tidy() -add_go_lint_fix() -add_go_build() add_go_lint() +add_go_build() add_go_test() + add_buf_build() +add_buf_format() add_buf_lint() add_buf_generate() From ea8ef4e10e12f958bad2487e8eee21b74ee9e28b Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Mon, 12 Feb 2024 12:29:04 +0000 Subject: [PATCH 49/62] Buf format --- .../andromeda/escrow/v1alpha1/genesis.proto | 32 +++---- .../andromeda/escrow/v1alpha1/query.proto | 86 +++++++++---------- .../proto/andromeda/escrow/v1alpha1/tx.proto | 3 +- .../proto/andromeda/test/v1alpha1/query.proto | 8 +- x/test/proto/andromeda/test/v1alpha1/tx.proto | 3 +- .../proto/andromeda/test/v1alpha1/types.proto | 3 +- 6 files changed, 66 insertions(+), 69 deletions(-) diff --git a/x/escrow/proto/andromeda/escrow/v1alpha1/genesis.proto b/x/escrow/proto/andromeda/escrow/v1alpha1/genesis.proto index 35af77a..2b42e85 100644 --- a/x/escrow/proto/andromeda/escrow/v1alpha1/genesis.proto +++ b/x/escrow/proto/andromeda/escrow/v1alpha1/genesis.proto @@ -8,8 +8,8 @@ import "google/protobuf/any.proto"; message GenesisState { // Params defines the parameters for the module. message Params { - // the maximum length allowed for metadata - uint64 max_metadata_length = 1; + // the maximum length allowed for metadata + uint64 max_metadata_length = 1; } // all the paramaters of the module @@ -20,11 +20,11 @@ message GenesisState { // Agent defines an account taking charge of a proposal. message Agent { - // the address of the agent - string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + // the address of the agent + string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; - // the address of the creator - string creator = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + // the address of the creator + string creator = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; } // all the agents @@ -32,20 +32,20 @@ message GenesisState { // Proposal defines a proposal. message Proposal { - // the address of the agent in charge - string agent = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + // the address of the agent in charge + string agent = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; - // the address of the proposer - string proposer = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + // the address of the proposer + string proposer = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; - // the messages which has been executed on the submission - repeated google.protobuf.Any pre_actions = 3; + // the messages which has been executed on the submission + repeated google.protobuf.Any pre_actions = 3; - // the messages which will be executed after the actions included in Msg/Exec - repeated google.protobuf.Any post_actions = 4; + // the messages which will be executed after the actions included in Msg/Exec + repeated google.protobuf.Any post_actions = 4; - // any arbitrary metadata attached to the proposal - string metadata = 5; + // any arbitrary metadata attached to the proposal + string metadata = 5; } // all the proposals diff --git a/x/escrow/proto/andromeda/escrow/v1alpha1/query.proto b/x/escrow/proto/andromeda/escrow/v1alpha1/query.proto index be8c763..869f2b3 100644 --- a/x/escrow/proto/andromeda/escrow/v1alpha1/query.proto +++ b/x/escrow/proto/andromeda/escrow/v1alpha1/query.proto @@ -63,11 +63,11 @@ message QueryAgentRequest { message QueryAgentResponse { // Agent defines an account taking charge of a proposal. message Agent { - // the address of the agent - string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + // the address of the agent + string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; - // the address of the creator - string creator = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + // the address of the creator + string creator = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; } // the corresponding agent @@ -87,11 +87,11 @@ message QueryAgentsByCreatorRequest { message QueryAgentsByCreatorResponse { // Agent defines an account taking charge of a proposal. message Agent { - // the address of the agent - string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + // the address of the agent + string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; - // the address of the creator - string creator = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + // the address of the creator + string creator = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; } // all the agents created by the creator @@ -111,11 +111,11 @@ message QueryAgentsRequest { message QueryAgentsResponse { // Agent defines an account taking charge of a proposal. message Agent { - // the address of the agent - string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + // the address of the agent + string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; - // the address of the creator - string creator = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + // the address of the creator + string creator = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; } // all the agents @@ -135,20 +135,20 @@ message QueryProposalRequest { message QueryProposalResponse { // Proposal defines a proposal. message Proposal { - // the address of the agent in charge - string agent = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + // the address of the agent in charge + string agent = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; - // the address of the proposer - string proposer = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + // the address of the proposer + string proposer = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; - // the messages which has been executed on the submission - repeated google.protobuf.Any pre_actions = 3; + // the messages which has been executed on the submission + repeated google.protobuf.Any pre_actions = 3; - // the messages which will be executed after the actions included in Msg/Exec - repeated google.protobuf.Any post_actions = 4; + // the messages which will be executed after the actions included in Msg/Exec + repeated google.protobuf.Any post_actions = 4; - // any arbitrary metadata attached to the proposal - string metadata = 5; + // any arbitrary metadata attached to the proposal + string metadata = 5; } // the corresponding proposal @@ -159,7 +159,7 @@ message QueryProposalResponse { message QueryProposalsByProposerRequest { // the address of a proposer string proposer = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; - + // optional pagination for the request cosmos.base.query.v1beta1.PageRequest pagination = 2; } @@ -168,20 +168,20 @@ message QueryProposalsByProposerRequest { message QueryProposalsByProposerResponse { // Proposal defines a proposal. message Proposal { - // the address of the agent in charge - string agent = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + // the address of the agent in charge + string agent = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; - // the address of the proposer - string proposer = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + // the address of the proposer + string proposer = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; - // the messages which has been executed on the submission - repeated google.protobuf.Any pre_actions = 3; + // the messages which has been executed on the submission + repeated google.protobuf.Any pre_actions = 3; - // the messages which will be executed after the actions included in Msg/Exec - repeated google.protobuf.Any post_actions = 4; + // the messages which will be executed after the actions included in Msg/Exec + repeated google.protobuf.Any post_actions = 4; - // any arbitrary metadata attached to the proposal - string metadata = 5; + // any arbitrary metadata attached to the proposal + string metadata = 5; } // all the proposals proposed by the proposer @@ -201,20 +201,20 @@ message QueryProposalsRequest { message QueryProposalsResponse { // Proposal defines a proposal. message Proposal { - // the address of the agent in charge - string agent = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + // the address of the agent in charge + string agent = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; - // the address of the proposer - string proposer = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + // the address of the proposer + string proposer = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; - // the messages which has been executed on the submission - repeated google.protobuf.Any pre_actions = 3; + // the messages which has been executed on the submission + repeated google.protobuf.Any pre_actions = 3; - // the messages which will be executed after the actions included in Msg/Exec - repeated google.protobuf.Any post_actions = 4; + // the messages which will be executed after the actions included in Msg/Exec + repeated google.protobuf.Any post_actions = 4; - // any arbitrary metadata attached to the proposal - string metadata = 5; + // any arbitrary metadata attached to the proposal + string metadata = 5; } // all the proposals diff --git a/x/escrow/proto/andromeda/escrow/v1alpha1/tx.proto b/x/escrow/proto/andromeda/escrow/v1alpha1/tx.proto index cd9989a..08ef02c 100644 --- a/x/escrow/proto/andromeda/escrow/v1alpha1/tx.proto +++ b/x/escrow/proto/andromeda/escrow/v1alpha1/tx.proto @@ -74,8 +74,7 @@ message MsgSubmitProposal { } // MsgSubmitProposalResponse is the Msg/SubmitProposal response type. -message MsgSubmitProposalResponse { -} +message MsgSubmitProposalResponse {} // MsgExec is the Msg/Exec request type. message MsgExec { diff --git a/x/test/proto/andromeda/test/v1alpha1/query.proto b/x/test/proto/andromeda/test/v1alpha1/query.proto index 8f48159..19c541f 100644 --- a/x/test/proto/andromeda/test/v1alpha1/query.proto +++ b/x/test/proto/andromeda/test/v1alpha1/query.proto @@ -31,8 +31,8 @@ message QueryAssetRequest { message QueryAssetResponse { // Asset defines an asset identified by its name. message Asset { - // the name of the asset - string name = 1; + // the name of the asset + string name = 1; } // the corresponding asset @@ -52,8 +52,8 @@ message QueryAssetsRequest { message QueryAssetsResponse { // Asset defines an asset identified by its name. message Asset { - // the name of the asset - string name = 1; + // the name of the asset + string name = 1; } // all the assets owned by the account diff --git a/x/test/proto/andromeda/test/v1alpha1/tx.proto b/x/test/proto/andromeda/test/v1alpha1/tx.proto index bcff235..d4abe80 100644 --- a/x/test/proto/andromeda/test/v1alpha1/tx.proto +++ b/x/test/proto/andromeda/test/v1alpha1/tx.proto @@ -46,5 +46,4 @@ message MsgSend { } // MsgSendResponse is the Msg/Send response type. -message MsgSendResponse { -} +message MsgSendResponse {} diff --git a/x/test/proto/andromeda/test/v1alpha1/types.proto b/x/test/proto/andromeda/test/v1alpha1/types.proto index b918095..8fe51d0 100644 --- a/x/test/proto/andromeda/test/v1alpha1/types.proto +++ b/x/test/proto/andromeda/test/v1alpha1/types.proto @@ -2,5 +2,4 @@ syntax = "proto3"; package andromeda.test.v1alpha1; // Asset defines an asset identified by its name. -message Asset { -} +message Asset {} From 15bdc936763e839a57f66fe01a1b15e4d57c4761 Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Mon, 12 Feb 2024 13:57:49 +0000 Subject: [PATCH 50/62] Fix builder setups --- .github/workflows/module.yml | 36 ++++++++++++++++--------- runners/bare/install/version.cmake | 6 +++++ runners/docker/targets/CMakeLists.txt | 13 +++------ runners/docker/targets/docker-run.cmake | 2 +- 4 files changed, 34 insertions(+), 23 deletions(-) diff --git a/.github/workflows/module.yml b/.github/workflows/module.yml index 37dea64..d7270b6 100644 --- a/.github/workflows/module.yml +++ b/.github/workflows/module.yml @@ -1,50 +1,58 @@ name: Check Module +run-name: Check x/${{ inputs.name }} on: workflow_call: inputs: name: required: true type: string + timeout-minutes: + required: false + type: number + default: 30 secrets: sonar-token: required: true env: - id: x-${{ inputs.name }} + target: x-${{ inputs.name }} path: x/${{ inputs.name }} jobs: go-lint: name: go lint runs-on: ubuntu-latest + timeout-minutes: ${{ inputs.timeout_minutes }} steps: - uses: actions/checkout@v4 - name: Configure - run: cmake -S . -B build -D FIX_IS_ERROR=ON + run: cmake -S . -B build -D USE_DOCKER=ON -D FIX_IS_ERROR=ON - name: Lint - run: cmake --build build --target go_lint_${{ env.id }} + run: cmake --build build --target go_lint_${{ env.target }} go-build: name: go build runs-on: ubuntu-latest + timeout-minutes: ${{ inputs.timeout_minutes }} steps: - uses: actions/checkout@v4 - name: Configure - run: cmake -S . -B build -D FIX_IS_ERROR=ON + run: cmake -S . -B build -D USE_DOCKER=ON -D FIX_IS_ERROR=ON - name: Build - run: cmake --build build --target go_build_${{ env.id }} + run: cmake --build build --target go_build_${{ env.target }} go-test: name: go test runs-on: ubuntu-latest + timeout-minutes: ${{ inputs.timeout_minutes }} steps: - uses: actions/checkout@v4 with: fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis - name: Configure - run: cmake -S . -B build -D FIX_IS_ERROR=ON + run: cmake -S . -B build -D USE_DOCKER=ON -D FIX_IS_ERROR=ON - name: Install builders - run: cmake --build build --target install_go + run: cmake --build build --target install_builders - name: Test run: | - VERBOSE=1 ctest --test-dir build --output-on-failure --stop-on-failure -R ${{ env.id }} - mv build/${{ env.path }}/cover.out ${{ env.path }}/ + VERBOSE=1 ctest --test-dir build --output-on-failure --stop-on-failure -R ${{ env.target }} + mv build/${{ env.path }}/docker/${{ env.path }}/cover.out ${{ env.path }}/ - name: SonarCloud Scan uses: SonarSource/sonarcloud-github-action@master env: @@ -55,18 +63,20 @@ jobs: buf-format: name: buf format runs-on: ubuntu-latest + timeout-minutes: ${{ inputs.timeout_minutes }} steps: - uses: actions/checkout@v4 - name: Configure - run: cmake -S . -B build -D FIX_IS_ERROR=ON + run: cmake -S . -B build -D USE_DOCKER=ON -D FIX_IS_ERROR=ON - name: Lint - run: cmake --build build --target buf_format_${{ env.id }} + run: cmake --build build --target buf_format_${{ env.target }} buf-lint: name: buf lint runs-on: ubuntu-latest + timeout-minutes: ${{ inputs.timeout_minutes }} steps: - uses: actions/checkout@v4 - name: Configure - run: cmake -S . -B build -D FIX_IS_ERROR=ON + run: cmake -S . -B build -D USE_DOCKER=ON -D FIX_IS_ERROR=ON - name: Lint - run: cmake --build build --target buf_lint_${{ env.id }} + run: cmake --build build --target buf_lint_${{ env.target }} diff --git a/runners/bare/install/version.cmake b/runners/bare/install/version.cmake index 24655c0..d9362bd 100644 --- a/runners/bare/install/version.cmake +++ b/runners/bare/install/version.cmake @@ -1,5 +1,11 @@ function(get_version _version _binary _module) + set(${_version} 0) + find_file(_binary_path ${_binary}) + if(_binary_path STREQUAL _binary_path-NOTFOUND) + return(PROPAGATE ${_version}) + endif() + execute_process( COMMAND go version -m ${_binary_path} OUTPUT_VARIABLE _output diff --git a/runners/docker/targets/CMakeLists.txt b/runners/docker/targets/CMakeLists.txt index 2f4bf54..fa6b0be 100644 --- a/runners/docker/targets/CMakeLists.txt +++ b/runners/docker/targets/CMakeLists.txt @@ -4,18 +4,13 @@ function(add_docker_target _type) set(_target ${_type}_${PROJECT_NAME}) add_custom_target(${_target} - COMMAND cmake -D IDFILE=${_builder_binary_dir}/id.txt -D BIND_DIR=${CMAKE_SOURCE_DIR} -D "COMMAND=cmake -S . -B /tmp/build -D FIX_IS_ERROR=${FIX_IS_ERROR} && cmake --build /tmp/build --target ${_target}" -P ${CMAKE_CURRENT_FUNCTION_LIST_DIR}/docker-run.cmake + COMMAND cmake -D IDFILE=${_builder_binary_dir}/id.txt -D SOURCE_DIR_SRC=${CMAKE_SOURCE_DIR} -D SOURCE_DIR_DST=/workspace/source -D BINARY_DIR_SRC=${CMAKE_CURRENT_BINARY_DIR} -D BINARY_DIR_DST=/workspace/binary -D "COMMAND=rm -rf /workspace/binary/docker && cmake -S /workspace/source -B /workspace/binary/docker -D FIX_IS_ERROR=${FIX_IS_ERROR} && cmake --build /workspace/binary/docker --target ${_target}" -P ${CMAKE_CURRENT_FUNCTION_LIST_DIR}/docker-run.cmake VERBATIM ) add_dependencies(${_target} install_builders ) - - set(_root ${_type}) - if(_type STREQUAL go_build_executable) - set(_root go_build) - endif() - add_dependencies(${_root} + add_dependencies(${_type} ${_target} ) endfunction() @@ -27,7 +22,7 @@ function(add_docker_test) add_test( NAME ${_target} - COMMAND cmake -D IDFILE=${_builder_binary_dir}/id.txt -D BIND_DIR=${CMAKE_SOURCE_DIR} -D "COMMAND=cmake -S . -B /tmp/build -D FIX_IS_ERROR=${FIX_IS_ERROR} && ctest --test-dir /tmp/build --output-on-failure -R ${_target}" -P ${CMAKE_CURRENT_FUNCTION_LIST_DIR}/docker-run.cmake + COMMAND cmake -D IDFILE=${_builder_binary_dir}/id.txt -D SOURCE_DIR_SRC=${CMAKE_SOURCE_DIR} -D SOURCE_DIR_DST=/workspace/source -D BINARY_DIR_SRC=${CMAKE_CURRENT_BINARY_DIR} -D BINARY_DIR_DST=/workspace/binary -D "COMMAND=rm -rf /workspace/binary/docker && cmake -S /workspace/source -B /workspace/binary/docker -D FIX_IS_ERROR=${FIX_IS_ERROR} && ctest --test-dir /workspace/binary/docker --output-on-failure -R ${_target}" -P ${CMAKE_CURRENT_FUNCTION_LIST_DIR}/docker-run.cmake ) endfunction() @@ -45,7 +40,7 @@ function(add_go_build) endfunction() function(add_go_build_executable) - add_docker_target(go_build_executable) + add_docker_target(go_build) endfunction() function(add_go_test) diff --git a/runners/docker/targets/docker-run.cmake b/runners/docker/targets/docker-run.cmake index 9a76c62..e1c8195 100644 --- a/runners/docker/targets/docker-run.cmake +++ b/runners/docker/targets/docker-run.cmake @@ -1,6 +1,6 @@ file(READ ${IDFILE} id) message(STATUS "Running target on Docker ${id}") execute_process( - COMMAND docker run --rm --mount type=bind,src=${BIND_DIR},dst=/workspace --workdir /workspace ${id} sh -c ${COMMAND} + COMMAND docker run --rm --mount type=bind,src=${SOURCE_DIR_SRC},dst=${SOURCE_DIR_DST} --mount type=bind,src=${BINARY_DIR_SRC},dst=${BINARY_DIR_DST} ${id} sh -c ${COMMAND} COMMAND_ERROR_IS_FATAL ANY ) From 2fa70d7066406c25ce5573cd4940625e55b2aa50 Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Tue, 13 Feb 2024 12:13:52 +0000 Subject: [PATCH 51/62] Check inputs in scripts --- runners/bare/install/buf.cmake | 4 ++++ runners/bare/install/{version.cmake => common.cmake} | 8 ++++++++ runners/bare/install/go.cmake | 4 ++++ runners/bare/install/golangci-lint.cmake | 4 ++++ runners/bare/install/protoc-gen-go-grpc.cmake | 4 ++++ runners/bare/install/protoc-gen-go-pulsar.cmake | 4 +++- runners/bare/install/protoc-gen-go.cmake | 4 ++++ runners/bare/install/protoc-gen-gocosmos.cmake | 4 +++- runners/bare/install/protoc-gen-grpc-gateway.cmake | 4 +++- 9 files changed, 37 insertions(+), 3 deletions(-) rename runners/bare/install/{version.cmake => common.cmake} (73%) diff --git a/runners/bare/install/buf.cmake b/runners/bare/install/buf.cmake index aed3055..84dae71 100644 --- a/runners/bare/install/buf.cmake +++ b/runners/bare/install/buf.cmake @@ -2,6 +2,8 @@ cmake_policy(SET CMP0140 NEW) +include(common.cmake) + function(get_version _version) set(${_version} 0) @@ -12,6 +14,8 @@ function(get_version _version) return(PROPAGATE ${_version}) endfunction() +require_variables(VERSION) + get_version(version) if(VERSION VERSION_EQUAL version) return() diff --git a/runners/bare/install/version.cmake b/runners/bare/install/common.cmake similarity index 73% rename from runners/bare/install/version.cmake rename to runners/bare/install/common.cmake index d9362bd..70de2b6 100644 --- a/runners/bare/install/version.cmake +++ b/runners/bare/install/common.cmake @@ -1,3 +1,11 @@ +function(require_variables) + foreach(_var ${ARGV}) + if(NOT DEFINED ${_var}) + message(FATAL_ERROR "required variable `${_var}` not found") + endif() + endforeach() +endfunction() + function(get_version _version _binary _module) set(${_version} 0) diff --git a/runners/bare/install/go.cmake b/runners/bare/install/go.cmake index 9fa81be..793c5a6 100644 --- a/runners/bare/install/go.cmake +++ b/runners/bare/install/go.cmake @@ -2,6 +2,8 @@ cmake_policy(SET CMP0140 NEW) +include(common.cmake) + function(get_version _version) set(${_version} 0) @@ -18,6 +20,8 @@ function(coerce _input _output) return(PROPAGATE ${_output}) endfunction() +require_variables(VERSION) + get_version(version) block() coerce(${VERSION} expecting) diff --git a/runners/bare/install/golangci-lint.cmake b/runners/bare/install/golangci-lint.cmake index 9752011..323cf65 100644 --- a/runners/bare/install/golangci-lint.cmake +++ b/runners/bare/install/golangci-lint.cmake @@ -2,6 +2,8 @@ cmake_policy(SET CMP0140 NEW) +include(common.cmake) + function(get_version _version) set(${_version} 0) @@ -14,6 +16,8 @@ function(get_version _version) return(PROPAGATE ${_version}) endfunction() +require_variables(VERSION) + get_version(version) if(VERSION VERSION_EQUAL version) return() diff --git a/runners/bare/install/protoc-gen-go-grpc.cmake b/runners/bare/install/protoc-gen-go-grpc.cmake index f987dce..5ef211f 100644 --- a/runners/bare/install/protoc-gen-go-grpc.cmake +++ b/runners/bare/install/protoc-gen-go-grpc.cmake @@ -2,6 +2,8 @@ cmake_policy(SET CMP0140 NEW) +include(common.cmake) + function(get_version _version) set(${_version} 0) @@ -13,6 +15,8 @@ function(get_version _version) return(PROPAGATE ${_version}) endfunction() +require_variables(VERSION) + get_version(version) if(VERSION VERSION_EQUAL version) return() diff --git a/runners/bare/install/protoc-gen-go-pulsar.cmake b/runners/bare/install/protoc-gen-go-pulsar.cmake index 6dacbad..7713b10 100644 --- a/runners/bare/install/protoc-gen-go-pulsar.cmake +++ b/runners/bare/install/protoc-gen-go-pulsar.cmake @@ -2,7 +2,9 @@ cmake_policy(SET CMP0140 NEW) -include(version.cmake) +include(common.cmake) + +require_variables(VERSION) get_version(version protoc-gen-go-pulsar github.com/cosmos/cosmos-proto) if(VERSION VERSION_EQUAL version) diff --git a/runners/bare/install/protoc-gen-go.cmake b/runners/bare/install/protoc-gen-go.cmake index 9dbc2a9..fb37586 100644 --- a/runners/bare/install/protoc-gen-go.cmake +++ b/runners/bare/install/protoc-gen-go.cmake @@ -2,6 +2,8 @@ cmake_policy(SET CMP0140 NEW) +include(common.cmake) + function(get_version _version) set(${_version} 0) @@ -13,6 +15,8 @@ function(get_version _version) return(PROPAGATE ${_version}) endfunction() +require_variables(VERSION) + get_version(version) if(VERSION VERSION_EQUAL version) return() diff --git a/runners/bare/install/protoc-gen-gocosmos.cmake b/runners/bare/install/protoc-gen-gocosmos.cmake index 7f274ff..4c02d6f 100644 --- a/runners/bare/install/protoc-gen-gocosmos.cmake +++ b/runners/bare/install/protoc-gen-gocosmos.cmake @@ -2,7 +2,9 @@ cmake_policy(SET CMP0140 NEW) -include(version.cmake) +include(common.cmake) + +require_variables(VERSION) get_version(version protoc-gen-gocosmos github.com/cosmos/gogoproto) if(VERSION VERSION_EQUAL version) diff --git a/runners/bare/install/protoc-gen-grpc-gateway.cmake b/runners/bare/install/protoc-gen-grpc-gateway.cmake index 75a36de..cc1a6f8 100644 --- a/runners/bare/install/protoc-gen-grpc-gateway.cmake +++ b/runners/bare/install/protoc-gen-grpc-gateway.cmake @@ -2,7 +2,9 @@ cmake_policy(SET CMP0140 NEW) -include(version.cmake) +include(common.cmake) + +require_variables(VERSION) get_version(version protoc-gen-grpc-gateway github.com/grpc-ecosystem/grpc-gateway) if(VERSION VERSION_EQUAL version) From dc34becd89365da006127deda0ffcea58433ef8d Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Tue, 13 Feb 2024 12:14:31 +0000 Subject: [PATCH 52/62] Rename builder folder --- CMakeLists.txt | 2 +- {runners => builders}/CMakeLists.txt | 0 {runners => builders}/bare/CMakeLists.txt | 0 {runners => builders}/bare/install/CMakeLists.txt | 0 {runners => builders}/bare/install/buf.cmake | 0 {runners => builders}/bare/install/common.cmake | 0 {runners => builders}/bare/install/go.cmake | 0 {runners => builders}/bare/install/golangci-lint.cmake | 0 {runners => builders}/bare/install/protoc-gen-go-grpc.cmake | 0 {runners => builders}/bare/install/protoc-gen-go-pulsar.cmake | 0 {runners => builders}/bare/install/protoc-gen-go.cmake | 0 {runners => builders}/bare/install/protoc-gen-gocosmos.cmake | 0 .../bare/install/protoc-gen-grpc-gateway.cmake | 0 {runners => builders}/bare/targets/CMakeLists.txt | 0 {runners => builders}/docker/CMakeLists.txt | 0 {runners => builders}/docker/install/CMakeLists.txt | 0 {runners => builders}/docker/install/Dockerfile.in | 0 {runners => builders}/docker/install/docker-build.cmake | 0 {runners => builders}/docker/targets/CMakeLists.txt | 0 {runners => builders}/docker/targets/docker-run.cmake | 0 20 files changed, 1 insertion(+), 1 deletion(-) rename {runners => builders}/CMakeLists.txt (100%) rename {runners => builders}/bare/CMakeLists.txt (100%) rename {runners => builders}/bare/install/CMakeLists.txt (100%) rename {runners => builders}/bare/install/buf.cmake (100%) rename {runners => builders}/bare/install/common.cmake (100%) rename {runners => builders}/bare/install/go.cmake (100%) rename {runners => builders}/bare/install/golangci-lint.cmake (100%) rename {runners => builders}/bare/install/protoc-gen-go-grpc.cmake (100%) rename {runners => builders}/bare/install/protoc-gen-go-pulsar.cmake (100%) rename {runners => builders}/bare/install/protoc-gen-go.cmake (100%) rename {runners => builders}/bare/install/protoc-gen-gocosmos.cmake (100%) rename {runners => builders}/bare/install/protoc-gen-grpc-gateway.cmake (100%) rename {runners => builders}/bare/targets/CMakeLists.txt (100%) rename {runners => builders}/docker/CMakeLists.txt (100%) rename {runners => builders}/docker/install/CMakeLists.txt (100%) rename {runners => builders}/docker/install/Dockerfile.in (100%) rename {runners => builders}/docker/install/docker-build.cmake (100%) rename {runners => builders}/docker/targets/CMakeLists.txt (100%) rename {runners => builders}/docker/targets/docker-run.cmake (100%) diff --git a/CMakeLists.txt b/CMakeLists.txt index 42c48d5..c3225be 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,7 +8,7 @@ project(andromeda ) enable_testing() -add_subdirectory(runners) +add_subdirectory(builders) add_subdirectory(app) add_subdirectory(cmd/and) diff --git a/runners/CMakeLists.txt b/builders/CMakeLists.txt similarity index 100% rename from runners/CMakeLists.txt rename to builders/CMakeLists.txt diff --git a/runners/bare/CMakeLists.txt b/builders/bare/CMakeLists.txt similarity index 100% rename from runners/bare/CMakeLists.txt rename to builders/bare/CMakeLists.txt diff --git a/runners/bare/install/CMakeLists.txt b/builders/bare/install/CMakeLists.txt similarity index 100% rename from runners/bare/install/CMakeLists.txt rename to builders/bare/install/CMakeLists.txt diff --git a/runners/bare/install/buf.cmake b/builders/bare/install/buf.cmake similarity index 100% rename from runners/bare/install/buf.cmake rename to builders/bare/install/buf.cmake diff --git a/runners/bare/install/common.cmake b/builders/bare/install/common.cmake similarity index 100% rename from runners/bare/install/common.cmake rename to builders/bare/install/common.cmake diff --git a/runners/bare/install/go.cmake b/builders/bare/install/go.cmake similarity index 100% rename from runners/bare/install/go.cmake rename to builders/bare/install/go.cmake diff --git a/runners/bare/install/golangci-lint.cmake b/builders/bare/install/golangci-lint.cmake similarity index 100% rename from runners/bare/install/golangci-lint.cmake rename to builders/bare/install/golangci-lint.cmake diff --git a/runners/bare/install/protoc-gen-go-grpc.cmake b/builders/bare/install/protoc-gen-go-grpc.cmake similarity index 100% rename from runners/bare/install/protoc-gen-go-grpc.cmake rename to builders/bare/install/protoc-gen-go-grpc.cmake diff --git a/runners/bare/install/protoc-gen-go-pulsar.cmake b/builders/bare/install/protoc-gen-go-pulsar.cmake similarity index 100% rename from runners/bare/install/protoc-gen-go-pulsar.cmake rename to builders/bare/install/protoc-gen-go-pulsar.cmake diff --git a/runners/bare/install/protoc-gen-go.cmake b/builders/bare/install/protoc-gen-go.cmake similarity index 100% rename from runners/bare/install/protoc-gen-go.cmake rename to builders/bare/install/protoc-gen-go.cmake diff --git a/runners/bare/install/protoc-gen-gocosmos.cmake b/builders/bare/install/protoc-gen-gocosmos.cmake similarity index 100% rename from runners/bare/install/protoc-gen-gocosmos.cmake rename to builders/bare/install/protoc-gen-gocosmos.cmake diff --git a/runners/bare/install/protoc-gen-grpc-gateway.cmake b/builders/bare/install/protoc-gen-grpc-gateway.cmake similarity index 100% rename from runners/bare/install/protoc-gen-grpc-gateway.cmake rename to builders/bare/install/protoc-gen-grpc-gateway.cmake diff --git a/runners/bare/targets/CMakeLists.txt b/builders/bare/targets/CMakeLists.txt similarity index 100% rename from runners/bare/targets/CMakeLists.txt rename to builders/bare/targets/CMakeLists.txt diff --git a/runners/docker/CMakeLists.txt b/builders/docker/CMakeLists.txt similarity index 100% rename from runners/docker/CMakeLists.txt rename to builders/docker/CMakeLists.txt diff --git a/runners/docker/install/CMakeLists.txt b/builders/docker/install/CMakeLists.txt similarity index 100% rename from runners/docker/install/CMakeLists.txt rename to builders/docker/install/CMakeLists.txt diff --git a/runners/docker/install/Dockerfile.in b/builders/docker/install/Dockerfile.in similarity index 100% rename from runners/docker/install/Dockerfile.in rename to builders/docker/install/Dockerfile.in diff --git a/runners/docker/install/docker-build.cmake b/builders/docker/install/docker-build.cmake similarity index 100% rename from runners/docker/install/docker-build.cmake rename to builders/docker/install/docker-build.cmake diff --git a/runners/docker/targets/CMakeLists.txt b/builders/docker/targets/CMakeLists.txt similarity index 100% rename from runners/docker/targets/CMakeLists.txt rename to builders/docker/targets/CMakeLists.txt diff --git a/runners/docker/targets/docker-run.cmake b/builders/docker/targets/docker-run.cmake similarity index 100% rename from runners/docker/targets/docker-run.cmake rename to builders/docker/targets/docker-run.cmake From 3bcc9b230fcf5ce4149529b4161668db6461a971 Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Tue, 13 Feb 2024 12:29:55 +0000 Subject: [PATCH 53/62] Document the function for the temporary solution --- x/escrow/keeper/internal/proposal.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/x/escrow/keeper/internal/proposal.go b/x/escrow/keeper/internal/proposal.go index 0e6759f..91b9c65 100644 --- a/x/escrow/keeper/internal/proposal.go +++ b/x/escrow/keeper/internal/proposal.go @@ -113,8 +113,11 @@ func (k Keeper) removeProposal(ctx context.Context, agent sdk.AccAddress) error return nil } +// fixActions replace nil array of actions into empty array. +// It must be used for unmarshalled proposals from the state. +// Do NOT use this for proposals from untrusted source. +// TODO: find better solution func (k Keeper) fixActions(proposal *escrowv1alpha1.Proposal) { - // TODO: find better solution if proposal.PreActions == nil { proposal.PreActions = []*codectypes.Any{} } From 81e51b4447a2a7229ced1ed21f814d6e388cb363 Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Tue, 13 Feb 2024 13:08:33 +0000 Subject: [PATCH 54/62] Use crypto/rand --- x/escrow/keeper/internal/keeper_test.go | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/x/escrow/keeper/internal/keeper_test.go b/x/escrow/keeper/internal/keeper_test.go index 06dab16..67618d8 100644 --- a/x/escrow/keeper/internal/keeper_test.go +++ b/x/escrow/keeper/internal/keeper_test.go @@ -2,7 +2,7 @@ package internal_test import ( "context" - "math/rand" + "crypto/rand" "testing" "github.com/golang/mock/gomock" @@ -38,13 +38,16 @@ import ( const notInBech32 = "addresslverygoodtestingaddress" // does not include the separator -//nolint:gosec func randomString(size int) string { - res := make([]rune, size) + res := make([]byte, size) + _, err := rand.Read(res) + if err != nil { + panic(err) + } - letters := []rune("0123456789abcdef") + const letters = "0123456789abcdef" for i := range res { - res[i] = letters[rand.Intn(len(letters))] + res[i] = letters[res[i]%byte(len(letters))] } return string(res) From 14e8a4333547375f1af18c2039d1c26ef2a71cea Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Wed, 14 Feb 2024 12:02:33 +0000 Subject: [PATCH 55/62] Update buf lint config --- x/escrow/proto/buf.yaml | 3 --- x/test/proto/buf.yaml | 3 --- 2 files changed, 6 deletions(-) diff --git a/x/escrow/proto/buf.yaml b/x/escrow/proto/buf.yaml index 6b1d005..ad2d0b7 100644 --- a/x/escrow/proto/buf.yaml +++ b/x/escrow/proto/buf.yaml @@ -11,10 +11,7 @@ lint: use: - DEFAULT - COMMENTS - - FILE_LOWER_SNAKE_CASE except: - UNARY_RPC - - COMMENT_FIELD - SERVICE_SUFFIX - - PACKAGE_VERSION_SUFFIX - RPC_REQUEST_STANDARD_NAME diff --git a/x/test/proto/buf.yaml b/x/test/proto/buf.yaml index 00975bb..6fcf89a 100644 --- a/x/test/proto/buf.yaml +++ b/x/test/proto/buf.yaml @@ -11,10 +11,7 @@ lint: use: - DEFAULT - COMMENTS - - FILE_LOWER_SNAKE_CASE except: - UNARY_RPC - - COMMENT_FIELD - SERVICE_SUFFIX - - PACKAGE_VERSION_SUFFIX - RPC_REQUEST_STANDARD_NAME From d2870ff814aeacc69cd38a9a597420431f14f6a3 Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Tue, 13 Feb 2024 13:21:19 +0000 Subject: [PATCH 56/62] Fix workflow --- .github/workflows/module.yml | 21 +++++++++---------- .github/workflows/modules.yml | 2 +- builders/docker/install/CMakeLists.txt | 9 +++++--- .../install/{Dockerfile.in => Dockerfile} | 16 +++++++------- builders/docker/install/docker-build.cmake | 2 +- 5 files changed, 26 insertions(+), 24 deletions(-) rename builders/docker/install/{Dockerfile.in => Dockerfile} (61%) diff --git a/.github/workflows/module.yml b/.github/workflows/module.yml index d7270b6..6563a56 100644 --- a/.github/workflows/module.yml +++ b/.github/workflows/module.yml @@ -1,5 +1,4 @@ name: Check Module -run-name: Check x/${{ inputs.name }} on: workflow_call: inputs: @@ -20,33 +19,33 @@ jobs: go-lint: name: go lint runs-on: ubuntu-latest - timeout-minutes: ${{ inputs.timeout_minutes }} + timeout-minutes: ${{ inputs.timeout-minutes }} steps: - uses: actions/checkout@v4 - name: Configure - run: cmake -S . -B build -D USE_DOCKER=ON -D FIX_IS_ERROR=ON + run: cmake -S . -B build -D USE_DOCKER=ON -D UID=$(id -u) -D GID=$(id -g) -D FIX_IS_ERROR=ON - name: Lint run: cmake --build build --target go_lint_${{ env.target }} go-build: name: go build runs-on: ubuntu-latest - timeout-minutes: ${{ inputs.timeout_minutes }} + timeout-minutes: ${{ inputs.timeout-minutes }} steps: - uses: actions/checkout@v4 - name: Configure - run: cmake -S . -B build -D USE_DOCKER=ON -D FIX_IS_ERROR=ON + run: cmake -S . -B build -D USE_DOCKER=ON -D UID=$(id -u) -D GID=$(id -g) -D FIX_IS_ERROR=ON - name: Build run: cmake --build build --target go_build_${{ env.target }} go-test: name: go test runs-on: ubuntu-latest - timeout-minutes: ${{ inputs.timeout_minutes }} + timeout-minutes: ${{ inputs.timeout-minutes }} steps: - uses: actions/checkout@v4 with: fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis - name: Configure - run: cmake -S . -B build -D USE_DOCKER=ON -D FIX_IS_ERROR=ON + run: cmake -S . -B build -D USE_DOCKER=ON -D UID=$(id -u) -D GID=$(id -g) -D FIX_IS_ERROR=ON - name: Install builders run: cmake --build build --target install_builders - name: Test @@ -63,20 +62,20 @@ jobs: buf-format: name: buf format runs-on: ubuntu-latest - timeout-minutes: ${{ inputs.timeout_minutes }} + timeout-minutes: ${{ inputs.timeout-minutes }} steps: - uses: actions/checkout@v4 - name: Configure - run: cmake -S . -B build -D USE_DOCKER=ON -D FIX_IS_ERROR=ON + run: cmake -S . -B build -D USE_DOCKER=ON -D UID=$(id -u) -D GID=$(id -g) -D FIX_IS_ERROR=ON - name: Lint run: cmake --build build --target buf_format_${{ env.target }} buf-lint: name: buf lint runs-on: ubuntu-latest - timeout-minutes: ${{ inputs.timeout_minutes }} + timeout-minutes: ${{ inputs.timeout-minutes }} steps: - uses: actions/checkout@v4 - name: Configure - run: cmake -S . -B build -D USE_DOCKER=ON -D FIX_IS_ERROR=ON + run: cmake -S . -B build -D USE_DOCKER=ON -D UID=$(id -u) -D GID=$(id -g) -D FIX_IS_ERROR=ON - name: Lint run: cmake --build build --target buf_lint_${{ env.target }} diff --git a/.github/workflows/modules.yml b/.github/workflows/modules.yml index e58fdcd..2639a64 100644 --- a/.github/workflows/modules.yml +++ b/.github/workflows/modules.yml @@ -6,7 +6,7 @@ on: pull_request: jobs: check-modules: - name: check modules + name: x-${{ matrix.name }} strategy: matrix: include: diff --git a/builders/docker/install/CMakeLists.txt b/builders/docker/install/CMakeLists.txt index 132edf7..f388c09 100644 --- a/builders/docker/install/CMakeLists.txt +++ b/builders/docker/install/CMakeLists.txt @@ -1,7 +1,10 @@ -configure_file(Dockerfile.in Dockerfile - @ONLY +configure_file(Dockerfile Dockerfile + COPYONLY ) +set(UID 1000 CACHE STRING "uid of the user") +set(GID 1000 CACHE STRING "gid of the user") + function(_get_builder_binary_dir _output) file(RELATIVE_PATH _rel_builder_source_dir ${CMAKE_SOURCE_DIR} ${CMAKE_CURRENT_FUNCTION_LIST_DIR}) file(REAL_PATH ${_rel_builder_source_dir} ${_output} BASE_DIRECTORY ${CMAKE_BINARY_DIR}) @@ -9,7 +12,7 @@ function(_get_builder_binary_dir _output) endfunction() add_custom_target(install_builders - COMMAND cmake -D IDFILE=id.txt -P ${CMAKE_CURRENT_SOURCE_DIR}/docker-build.cmake + COMMAND cmake -D IDFILE=id.txt -D UID=${UID} -D GID=${GID} -P ${CMAKE_CURRENT_SOURCE_DIR}/docker-build.cmake ) file(COPY ${CMAKE_SOURCE_DIR}/go.work ${CMAKE_SOURCE_DIR}/go.work.sum diff --git a/builders/docker/install/Dockerfile.in b/builders/docker/install/Dockerfile similarity index 61% rename from builders/docker/install/Dockerfile.in rename to builders/docker/install/Dockerfile index 0b6d7c6..d051a3f 100644 --- a/builders/docker/install/Dockerfile.in +++ b/builders/docker/install/Dockerfile @@ -10,20 +10,20 @@ RUN cmake -S . -B build -Wno-dev && cmake --build build --target install_builder FROM platform AS final -ARG uid=1000 -ARG gid=1000 +ARG UID +ARG GID -RUN addgroup --system --gid ${gid} builder -RUN adduser --system --uid ${uid} --gid ${gid} builder --home /home/builder +RUN addgroup --system --gid ${GID} builder +RUN adduser --system --uid ${UID} --gid ${GID} builder --home /home/builder COPY --from=builders /usr/local /usr/local/ -COPY --from=builders --chown=${uid}:${gid} /root/go /home/builder/go/ +COPY --from=builders --chown=${UID}:${GID} /root/go /home/builder/go/ ENV PATH /home/builder/go/bin:/usr/local/bin:/usr/bin WORKDIR /tmp/mods -RUN chown ${uid}:${gid} . -COPY --chown=${uid}:${gid} mods . +RUN chown ${UID}:${GID} . +COPY --chown=${UID}:${GID} mods . -USER ${uid}:${gid} +USER ${UID}:${GID} RUN go mod download diff --git a/builders/docker/install/docker-build.cmake b/builders/docker/install/docker-build.cmake index ad5178d..5d929ca 100644 --- a/builders/docker/install/docker-build.cmake +++ b/builders/docker/install/docker-build.cmake @@ -1,5 +1,5 @@ execute_process( - COMMAND docker build -q . + COMMAND docker build --build-arg UID=${UID} --build-arg GID=${GID} -q . OUTPUT_VARIABLE id ) string(STRIP ${id} id) From df29a9598229e6e402b31e14663d177b376321b6 Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Wed, 14 Feb 2024 13:04:25 +0000 Subject: [PATCH 57/62] Update address creations --- x/escrow/keeper/internal/genesis_test.go | 17 ++++++++--------- x/escrow/keeper/internal/grpc_query_test.go | 2 +- x/escrow/keeper/internal/keeper_test.go | 16 ++++++++++++---- x/escrow/keeper/internal/msg_server_test.go | 8 ++++---- x/escrow/keeper/internal/proposal_test.go | 2 +- 5 files changed, 26 insertions(+), 19 deletions(-) diff --git a/x/escrow/keeper/internal/genesis_test.go b/x/escrow/keeper/internal/genesis_test.go index 7f3082b..7c404d5 100644 --- a/x/escrow/keeper/internal/genesis_test.go +++ b/x/escrow/keeper/internal/genesis_test.go @@ -7,7 +7,6 @@ import ( "github.com/stretchr/testify/assert" codectypes "github.com/cosmos/cosmos-sdk/codec/types" - simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims" sdk "github.com/cosmos/cosmos-sdk/types" escrowv1alpha1 "github.com/0tech/andromeda/x/escrow/andromeda/escrow/v1alpha1" @@ -49,8 +48,8 @@ func TestValidateGenesisAgents(t *testing.T) { return addressStr } - addresses := simtestutil.CreateIncrementalAccounts(2) - creatorStr := addressBytesToString(createRandomAccounts(1)[0]) + addresses := createRandomAddresses(2) + creatorStr := addressBytesToString(createRandomAddress()) tester := func(subject []*escrowv1alpha1.GenesisState_Agent) error { gs := k.DefaultGenesis() @@ -194,8 +193,8 @@ func TestValidateGenesisProposals(t *testing.T) { return addressStr } - agents := createRandomAccounts(2) - proposerStr := addressBytesToString(createRandomAccounts(1)[0]) + agents := createRandomAddresses(2) + proposerStr := addressBytesToString(createRandomAddress()) tester := func(subject []*escrowv1alpha1.GenesisState_Proposal) error { gs := k.DefaultGenesis() @@ -504,8 +503,8 @@ func TestInitExportGenesisAgents(t *testing.T) { return addressBytes } - addresses := simtestutil.CreateIncrementalAccounts(4) - creatorStr := addressBytesToString(createRandomAccounts(1)[0]) + addresses := createIncrementalAddresses(4) + creatorStr := addressBytesToString(createRandomAddress()) tester := func(subject []*escrowv1alpha1.GenesisState_Agent) error { gsInput := k.DefaultGenesis() @@ -581,8 +580,8 @@ func TestInitExportGenesisProposals(t *testing.T) { return addressBytes } - agents := simtestutil.CreateIncrementalAccounts(4) - proposerStr := addressBytesToString(createRandomAccounts(1)[0]) + agents := createIncrementalAddresses(4) + proposerStr := addressBytesToString(createRandomAddress()) tester := func(subject []*escrowv1alpha1.GenesisState_Proposal) error { gsInput := k.DefaultGenesis() diff --git a/x/escrow/keeper/internal/grpc_query_test.go b/x/escrow/keeper/internal/grpc_query_test.go index 8229546..86ddd2d 100644 --- a/x/escrow/keeper/internal/grpc_query_test.go +++ b/x/escrow/keeper/internal/grpc_query_test.go @@ -61,7 +61,7 @@ func (s *KeeperTestSuite) TestQueryAgent() { }, "agent not found": { Malleate: func(subject *escrowv1alpha1.QueryAgentRequest) { - subject.Agent = s.addressBytesToString(createRandomAccounts(1)[0]) + subject.Agent = s.addressBytesToString(createRandomAddress()) }, Error: func() error { return escrowv1alpha1.ErrAgentNotFound diff --git a/x/escrow/keeper/internal/keeper_test.go b/x/escrow/keeper/internal/keeper_test.go index 67618d8..94901a0 100644 --- a/x/escrow/keeper/internal/keeper_test.go +++ b/x/escrow/keeper/internal/keeper_test.go @@ -53,10 +53,18 @@ func randomString(size int) string { return string(res) } -func createRandomAccounts(size int) []sdk.AccAddress { +func createIncrementalAddresses(size int) []sdk.AccAddress { + return simtestutil.CreateIncrementalAccounts(size) +} + +func createRandomAddresses(size int) []sdk.AccAddress { return simtestutil.CreateRandomAccounts(size) } +func createRandomAddress() sdk.AccAddress { + return createRandomAddresses(1)[0] +} + type KeeperTestSuite struct { suite.Suite @@ -121,11 +129,11 @@ func (s *KeeperTestSuite) SetupTest() { &s.buyer, &s.stranger, } - for i, account := range createRandomAccounts(len(accounts)) { - *accounts[i] = account + for _, account := range accounts { + *account = createRandomAddress() account := &authtypes.BaseAccount{ - Address: s.addressBytesToString(account), + Address: s.addressBytesToString(*account), } authKeeper.SetAccount(s.ctx, authKeeper.NewAccount(s.ctx, account)) } diff --git a/x/escrow/keeper/internal/msg_server_test.go b/x/escrow/keeper/internal/msg_server_test.go index 7029ecb..3e49196 100644 --- a/x/escrow/keeper/internal/msg_server_test.go +++ b/x/escrow/keeper/internal/msg_server_test.go @@ -163,7 +163,7 @@ func (s *KeeperTestSuite) TestMsgSubmitProposal() { }, "proposer not actions signer": { Malleate: func(subject *escrowv1alpha1.MsgSubmitProposal) { - subject.Proposer = s.addressBytesToString(createRandomAccounts(1)[0]) + subject.Proposer = s.addressBytesToString(createRandomAddress()) }, Error: func() error { return escrowv1alpha1.ErrPermissionDenied @@ -191,7 +191,7 @@ func (s *KeeperTestSuite) TestMsgSubmitProposal() { }, "agent not actions signer": { Malleate: func(subject *escrowv1alpha1.MsgSubmitProposal) { - subject.Agent = s.addressBytesToString(createRandomAccounts(1)[0]) + subject.Agent = s.addressBytesToString(createRandomAddress()) }, Error: func() error { return escrowv1alpha1.ErrPermissionDenied @@ -295,7 +295,7 @@ func (s *KeeperTestSuite) TestMsgExec() { }, "executor not actions signer": { Malleate: func(subject *escrowv1alpha1.MsgExec) { - subject.Executor = s.addressBytesToString(createRandomAccounts(1)[0]) + subject.Executor = s.addressBytesToString(createRandomAddress()) }, Error: func() error { return escrowv1alpha1.ErrPermissionDenied @@ -323,7 +323,7 @@ func (s *KeeperTestSuite) TestMsgExec() { }, "agents not actions signer": { Malleate: func(subject *escrowv1alpha1.MsgExec) { - subject.Agents = []string{s.addressBytesToString(createRandomAccounts(1)[0])} + subject.Agents = []string{s.addressBytesToString(createRandomAddress())} }, Error: func() error { return escrowv1alpha1.ErrPermissionDenied diff --git a/x/escrow/keeper/internal/proposal_test.go b/x/escrow/keeper/internal/proposal_test.go index d23b260..51c55fa 100644 --- a/x/escrow/keeper/internal/proposal_test.go +++ b/x/escrow/keeper/internal/proposal_test.go @@ -69,7 +69,7 @@ func (s *KeeperTestSuite) TestSubmitProposal() { }, "agent not found": { Malleate: func(subject *submitProposal) { - subject.agent = createRandomAccounts(1)[0] + subject.agent = createRandomAddress() }, Error: func() error { return escrowv1alpha1.ErrAgentNotFound From 57ba7783cc75416ade3837b6ff19e1ee396ca17e Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Wed, 14 Feb 2024 14:22:45 +0000 Subject: [PATCH 58/62] Refactor AutoCLIOptions --- x/escrow/module/autocli.go | 294 ++++++++++++++++++++++--------------- 1 file changed, 173 insertions(+), 121 deletions(-) diff --git a/x/escrow/module/autocli.go b/x/escrow/module/autocli.go index 8ca9a39..f3327b4 100644 --- a/x/escrow/module/autocli.go +++ b/x/escrow/module/autocli.go @@ -11,40 +11,64 @@ var _ autocli.HasAutoCLIConfig = (*AppModule)(nil) func (AppModule) AutoCLIOptions() *autocliv1.ModuleOptions { return &autocliv1.ModuleOptions{ - Query: &autocliv1.ServiceCommandDescriptor{ - Service: escrowv1alpha1.Query_ServiceDesc.ServiceName, - RpcCommandOptions: []*autocliv1.RpcCommandOptions{ - { - RpcMethod: "Params", - Short: "queries the module parameters.", - Use: "params", - Example: `$ and query escrow params + Query: autoCLIQuery(), + Tx: autoCLITx(), + } +} + +func autoCLIQuery() *autocliv1.ServiceCommandDescriptor { + return &autocliv1.ServiceCommandDescriptor{ + Service: escrowv1alpha1.Query_ServiceDesc.ServiceName, + RpcCommandOptions: []*autocliv1.RpcCommandOptions{ + autoCLIQueryParams(), + autoCLIQueryAgent(), + autoCLIQueryAgentsByCreator(), + autoCLIQueryAgents(), + autoCLIQueryProposal(), + autoCLIQueryProposalsByProposer(), + autoCLIQueryProposals(), + }, + } +} + +func autoCLIQueryParams() *autocliv1.RpcCommandOptions { + return &autocliv1.RpcCommandOptions{ + RpcMethod: "Params", + Short: "queries the module parameters.", + Use: "params", + Example: `$ and query escrow params max_metadata_length: "42"`, - }, - { - RpcMethod: "Agent", - Short: "queries an agent.", - Use: "agent --agent [agent]", - FlagOptions: map[string]*autocliv1.FlagOptions{ - "agent": { - Usage: "the address of an agent", - }, - }, - Example: `$ and query escrow agent --agent cosmos1aaa... + } +} + +func autoCLIQueryAgent() *autocliv1.RpcCommandOptions { + return &autocliv1.RpcCommandOptions{ + RpcMethod: "Agent", + Short: "queries an agent.", + Use: "agent --agent [agent]", + FlagOptions: map[string]*autocliv1.FlagOptions{ + "agent": { + Usage: "the address of an agent", + }, + }, + Example: `$ and query escrow agent --agent cosmos1aaa... agent: address: cosmos1aaa... creator: cosmos1...`, - }, - { - RpcMethod: "AgentsByCreator", - Short: "queries all the agents by its creator.", - Use: "agents-by-creator --creator [creator]", - FlagOptions: map[string]*autocliv1.FlagOptions{ - "creator": { - Usage: "the address of a creator", - }, - }, - Example: `$ and query escrow agents-by-creator --creator cosmos1ccc... + } +} + +func autoCLIQueryAgentsByCreator() *autocliv1.RpcCommandOptions { + return &autocliv1.RpcCommandOptions{ + RpcMethod: "AgentsByCreator", + Short: "queries all the agents by its creator.", + Use: "agents-by-creator --creator [creator]", + FlagOptions: map[string]*autocliv1.FlagOptions{ + "creator": { + Usage: "the address of a creator", + }, + }, + Example: `$ and query escrow agents-by-creator --creator cosmos1ccc... agents: - address: cosmos1... creator: cosmos1ccc... @@ -52,11 +76,14 @@ agents: creator: cosmos1ccc... pagination: total: "2"`, - }, - { - RpcMethod: "Agents", - Short: "queries all the agents.", - Example: `$ and query escrow agents + } +} + +func autoCLIQueryAgents() *autocliv1.RpcCommandOptions { + return &autocliv1.RpcCommandOptions{ + RpcMethod: "Agents", + Short: "queries all the agents.", + Example: `$ and query escrow agents agents: - address: cosmos1... creator: cosmos1... @@ -66,17 +93,20 @@ agents: creator: cosmos1... pagination: total: "3"`, - }, - { - RpcMethod: "Proposal", - Short: "queries a proposal.", - Use: "proposal --agent [agent]", - FlagOptions: map[string]*autocliv1.FlagOptions{ - "agent": { - Usage: "the address of an agent in charge", - }, - }, - Example: `$ and query escrow proposal --agent cosmos1aaa... + } +} + +func autoCLIQueryProposal() *autocliv1.RpcCommandOptions { + return &autocliv1.RpcCommandOptions{ + RpcMethod: "Proposal", + Short: "queries a proposal.", + Use: "proposal --agent [agent]", + FlagOptions: map[string]*autocliv1.FlagOptions{ + "agent": { + Usage: "the address of an agent in charge", + }, + }, + Example: `$ and query escrow proposal --agent cosmos1aaa... proposal: agent: cosmos1aaa... metadata: very good deal @@ -96,17 +126,20 @@ proposal: receiver: cosmos1... sender: cosmos1... proposer: cosmos1...`, - }, - { - RpcMethod: "ProposalsByProposer", - Short: "queries all the proposals by its proposer.", - Use: "proposals-by-proposer --proposer [proposer]", - FlagOptions: map[string]*autocliv1.FlagOptions{ - "proposer": { - Usage: "the address of a proposer", - }, - }, - Example: `$ and query escrow proposals-by-proposer --proposer cosmos1ppp... + } +} + +func autoCLIQueryProposalsByProposer() *autocliv1.RpcCommandOptions { + return &autocliv1.RpcCommandOptions{ + RpcMethod: "ProposalsByProposer", + Short: "queries all the proposals by its proposer.", + Use: "proposals-by-proposer --proposer [proposer]", + FlagOptions: map[string]*autocliv1.FlagOptions{ + "proposer": { + Usage: "the address of a proposer", + }, + }, + Example: `$ and query escrow proposals-by-proposer --proposer cosmos1ppp... pagination: total: "1" proposals: @@ -134,11 +167,14 @@ proposals: receiver: cosmos1... sender: cosmos1... proposer: cosmos1ppp...`, - }, - { - RpcMethod: "Proposals", - Short: "queries all the proposals.", - Example: `$ and query escrow proposals + } +} + +func autoCLIQueryProposals() *autocliv1.RpcCommandOptions { + return &autocliv1.RpcCommandOptions{ + RpcMethod: "Proposals", + Short: "queries all the proposals.", + Example: `$ and query escrow proposals pagination: total: "2" proposals: @@ -184,22 +220,32 @@ proposals: receiver: cosmos1... sender: cosmos1... proposer: cosmos1...`, - }, + } +} + +func autoCLITx() *autocliv1.ServiceCommandDescriptor { + return &autocliv1.ServiceCommandDescriptor{ + Service: escrowv1alpha1.Msg_ServiceDesc.ServiceName, + RpcCommandOptions: []*autocliv1.RpcCommandOptions{ + autoCLITxUpdateParams(), + autoCLITxCreateAgent(), + autoCLITxSubmitProposal(), + autoCLITxExec(), + }, + } +} + +func autoCLITxUpdateParams() *autocliv1.RpcCommandOptions { + return &autocliv1.RpcCommandOptions{ + RpcMethod: "UpdateParams", + Short: "updates the module parameters.", + Use: "update-params --from [authority] --max-metadata-length [max-metadata-length]", + FlagOptions: map[string]*autocliv1.FlagOptions{ + "max_metadata_length": { + Usage: "the maximum length allowed for metadata", }, }, - Tx: &autocliv1.ServiceCommandDescriptor{ - Service: escrowv1alpha1.Msg_ServiceDesc.ServiceName, - RpcCommandOptions: []*autocliv1.RpcCommandOptions{ - { - RpcMethod: "UpdateParams", - Short: "updates the module parameters.", - Use: "update-params --from [authority] --max-metadata-length [max-metadata-length]", - FlagOptions: map[string]*autocliv1.FlagOptions{ - "max_metadata_length": { - Usage: "the maximum length allowed for metadata", - }, - }, - Example: `$ and tx escrow update-params --from cosmos1aaa... --max-metadata-length 42 + Example: `$ and tx escrow update-params --from cosmos1aaa... --max-metadata-length 42 auth_info: fee: amount: [] @@ -219,12 +265,15 @@ body: timeout_height: "0" signatures: [] confirm transaction before signing and broadcasting [y/N]:`, - }, - { - RpcMethod: "CreateAgent", - Short: "creates an escrow agent for a proposal.", - Use: "create-agent --from [creator]", - Example: `$ and tx escrow create-agent --from cosmos1ccc... + } +} + +func autoCLITxCreateAgent() *autocliv1.RpcCommandOptions { + return &autocliv1.RpcCommandOptions{ + RpcMethod: "CreateAgent", + Short: "creates an escrow agent for a proposal.", + Use: "create-agent --from [creator]", + Example: `$ and tx escrow create-agent --from cosmos1ccc... auth_info: fee: amount: [] @@ -243,11 +292,14 @@ body: timeout_height: "0" signatures: [] confirm transaction before signing and broadcasting [y/N]:`, - }, - { - RpcMethod: "SubmitProposal", - Short: "submits a proposal.", - Long: `submits a proposal. + } +} + +func autoCLITxSubmitProposal() *autocliv1.RpcCommandOptions { + return &autocliv1.RpcCommandOptions{ + RpcMethod: "SubmitProposal", + Short: "submits a proposal.", + Long: `submits a proposal. Note: agent: @@ -256,22 +308,22 @@ Note: the signer of each message must be either the proposer or the agent. post-actions: the signer of each message must be either the proposer or the agent.`, - Use: "submit-proposal --from [proposer] --agent [agent] --pre-actions [pre-actions] --post-actions [post-actions] --metadata [metadata]", - FlagOptions: map[string]*autocliv1.FlagOptions{ - "agent": { - Usage: "the address of the agent in charge", - }, - "pre_actions": { - Usage: "the messages which will be executed on the submission", - }, - "post_actions": { - Usage: "the messages which will be executed after the actions included in Msg/Exec", - }, - "metadata": { - Usage: "any arbitrary metadata attached to the proposal", - }, - }, - Example: `$ and tx escrow submit-proposal --from cosmos1ppp... --agent cosmos1aaa... \ + Use: "submit-proposal --from [proposer] --agent [agent] --pre-actions [pre-actions] --post-actions [post-actions] --metadata [metadata]", + FlagOptions: map[string]*autocliv1.FlagOptions{ + "agent": { + Usage: "the address of the agent in charge", + }, + "pre_actions": { + Usage: "the messages which will be executed on the submission", + }, + "post_actions": { + Usage: "the messages which will be executed after the actions included in Msg/Exec", + }, + "metadata": { + Usage: "any arbitrary metadata attached to the proposal", + }, + }, + Example: `$ and tx escrow submit-proposal --from cosmos1ppp... --agent cosmos1aaa... \ --pre-actions '{"@type": "/cosmos.nft.v1beta1.MsgSend", "class_id": "cat", "id": "leopardcat", @@ -316,25 +368,28 @@ body: timeout_height: "0" signatures: [] confirm transaction before signing and broadcasting [y/N]:`, - }, - { - RpcMethod: "Exec", - Short: "executes a proposal.", - Long: `executes a proposal. + } +} + +func autoCLITxExec() *autocliv1.RpcCommandOptions { + return &autocliv1.RpcCommandOptions{ + RpcMethod: "Exec", + Short: "executes a proposal.", + Long: `executes a proposal. Note: actions: the signer of each message must be either the executor or one of the agents.`, - Use: "exec --from [executor] --agents [agents] --actions [actions]", - FlagOptions: map[string]*autocliv1.FlagOptions{ - "agents": { - Usage: "the addresses of the agents in charge", - }, - "actions": { - Usage: "the messages which will be executed on the execution", - }, - }, - Example: `$ and tx escrow exec --from cosmos1eee... --agents cosmos1aaa... \ + Use: "exec --from [executor] --agents [agents] --actions [actions]", + FlagOptions: map[string]*autocliv1.FlagOptions{ + "agents": { + Usage: "the addresses of the agents in charge", + }, + "actions": { + Usage: "the messages which will be executed on the execution", + }, + }, + Example: `$ and tx escrow exec --from cosmos1eee... --agents cosmos1aaa... \ --actions '{"@type": "/cosmos.nft.v1beta1.MsgSend", "class_id": "cat", "id": "leopardcat", @@ -376,8 +431,5 @@ body: timeout_height: "0" signatures: [] confirm transaction before signing and broadcasting [y/N]:`, - }, - }, - }, } } From b6f7d64ccd81e255bf78ea0c38126498964c542d Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Thu, 15 Feb 2024 03:14:59 +0000 Subject: [PATCH 59/62] Update go lint config --- app/.golangci.yaml | 2 +- cmd/and/.golangci.yaml | 3 +-- x/escrow/.golangci.yaml | 16 +++++++++++++++- x/test/.golangci.yaml | 15 ++++++++++++++- 4 files changed, 31 insertions(+), 5 deletions(-) diff --git a/app/.golangci.yaml b/app/.golangci.yaml index 898577f..2a60405 100644 --- a/app/.golangci.yaml +++ b/app/.golangci.yaml @@ -27,7 +27,7 @@ linters-settings: - prefix(github.com/0tech/andromeda) depguard: rules: - main: + all: allow: - $gostd - github.com/stretchr/testify diff --git a/cmd/and/.golangci.yaml b/cmd/and/.golangci.yaml index 4f185f1..64a199a 100644 --- a/cmd/and/.golangci.yaml +++ b/cmd/and/.golangci.yaml @@ -27,10 +27,9 @@ linters-settings: - prefix(github.com/0tech/andromeda) depguard: rules: - main: + all: allow: - $gostd - - github.com/stretchr/testify - github.com/spf13/cobra - github.com/spf13/pflag - github.com/spf13/viper diff --git a/x/escrow/.golangci.yaml b/x/escrow/.golangci.yaml index a4d657b..19b1a86 100644 --- a/x/escrow/.golangci.yaml +++ b/x/escrow/.golangci.yaml @@ -34,11 +34,25 @@ linters-settings: depguard: rules: main: + files: + - $all + - "!$test" + - "!**/testutil/*.go" + allow: + - $gostd + - github.com/grpc-ecosystem/grpc-gateway/runtime + - cosmossdk.io + - github.com/cosmos/gogoproto + - github.com/cosmos/cosmos-sdk + - github.com/0tech/andromeda + test: + files: + - $test + - "**/testutil/*.go" allow: - $gostd - github.com/golang/mock/gomock - github.com/stretchr/testify - - github.com/grpc-ecosystem/grpc-gateway/runtime - cosmossdk.io - github.com/cosmos/gogoproto - github.com/cosmos/cosmos-sdk diff --git a/x/test/.golangci.yaml b/x/test/.golangci.yaml index f04b99d..2452725 100644 --- a/x/test/.golangci.yaml +++ b/x/test/.golangci.yaml @@ -34,10 +34,23 @@ linters-settings: depguard: rules: main: + files: + - $all + - "!$test" + - "!**/testutil/*.go" allow: - $gostd - - github.com/stretchr/testify - github.com/grpc-ecosystem/grpc-gateway/runtime - cosmossdk.io - github.com/cosmos/cosmos-sdk - github.com/0tech/andromeda + test: + files: + - $test + - "**/testutil/*.go" + allow: + - $gostd + - github.com/stretchr/testify + - cosmossdk.io + - github.com/cosmos/cosmos-sdk + - github.com/0tech/andromeda From c5bde2e900ba68a4ddc67792e67b7754eb1939cc Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Thu, 15 Feb 2024 03:30:01 +0000 Subject: [PATCH 60/62] Don't check the return value in case of error --- x/escrow/keeper/internal/agent_test.go | 3 +-- x/escrow/keeper/internal/genesis_test.go | 9 +++------ x/escrow/keeper/internal/proposal_test.go | 3 +-- 3 files changed, 5 insertions(+), 10 deletions(-) diff --git a/x/escrow/keeper/internal/agent_test.go b/x/escrow/keeper/internal/agent_test.go index 4681e85..c67ecee 100644 --- a/x/escrow/keeper/internal/agent_test.go +++ b/x/escrow/keeper/internal/agent_test.go @@ -21,9 +21,8 @@ func (s *KeeperTestSuite) TestCreateAgent() { } s.NotNil(agent) - agentBefore, err := s.keeper.GetAgent(s.ctx, agent) + _, err = s.keeper.GetAgent(s.ctx, agent) s.Assert().Error(err) - s.Assert().Nil(agentBefore) agentAfter, err := s.keeper.GetAgent(ctx, agent) s.Require().NoError(err) diff --git a/x/escrow/keeper/internal/genesis_test.go b/x/escrow/keeper/internal/genesis_test.go index 7c404d5..109a93e 100644 --- a/x/escrow/keeper/internal/genesis_test.go +++ b/x/escrow/keeper/internal/genesis_test.go @@ -460,9 +460,8 @@ func TestInitExportGenesisParams(t *testing.T) { return err } - paramsBefore, err := k.GetParams(ctxBefore) + _, err = k.GetParams(ctxBefore) assert.Error(t, err) - assert.Nil(t, paramsBefore) paramsAfter, err := k.GetParams(ctxAfter) assert.NoError(t, err) @@ -521,9 +520,8 @@ func TestInitExportGenesisAgents(t *testing.T) { address := addressStringToBytes(agent.Address) creator := addressStringToBytes(agent.Creator) - agentBefore, err := k.GetAgent(ctxBefore, address) + _, err := k.GetAgent(ctxBefore, address) assert.Error(t, err, i) - assert.Nil(t, agentBefore, i) agentAfter, err := k.GetAgent(ctxAfter, address) assert.NoError(t, err, i) @@ -597,9 +595,8 @@ func TestInitExportGenesisProposals(t *testing.T) { for i, proposal := range subject { agent := addressStringToBytes(proposal.Agent) - proposalBefore, err := k.GetProposal(ctxBefore, agent) + _, err := k.GetProposal(ctxBefore, agent) assert.Error(t, err, i) - assert.Nil(t, proposalBefore, i) proposalAfter, err := k.GetProposal(ctxAfter, agent) assert.NoError(t, err, i) diff --git a/x/escrow/keeper/internal/proposal_test.go b/x/escrow/keeper/internal/proposal_test.go index 51c55fa..d71a4ad 100644 --- a/x/escrow/keeper/internal/proposal_test.go +++ b/x/escrow/keeper/internal/proposal_test.go @@ -31,9 +31,8 @@ func (s *KeeperTestSuite) TestSubmitProposal() { return err } - proposalBefore, err := s.keeper.GetProposal(s.ctx, subject.agent) + _, err = s.keeper.GetProposal(s.ctx, subject.agent) s.Assert().Error(err) - s.Assert().Nil(proposalBefore) proposalAfter, err := s.keeper.GetProposal(ctx, subject.agent) s.Require().NoError(err) From 4fc5ea969cae39ba68b4dd805d2975697bd09256 Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Thu, 15 Feb 2024 03:56:12 +0000 Subject: [PATCH 61/62] Fix hard coded download url --- builders/bare/install/CMakeLists.txt | 2 +- builders/bare/install/go.cmake | 27 ++++++++++++++++++++++++--- 2 files changed, 25 insertions(+), 4 deletions(-) diff --git a/builders/bare/install/CMakeLists.txt b/builders/bare/install/CMakeLists.txt index 5c957ec..cace089 100644 --- a/builders/bare/install/CMakeLists.txt +++ b/builders/bare/install/CMakeLists.txt @@ -18,7 +18,7 @@ add_custom_target(install_builders ) add_custom_target(install_go - COMMAND cmake -D VERSION=${GO_VERSION} -P go.cmake + COMMAND cmake -D VERSION=${GO_VERSION} -D CMAKE_SYSTEM_NAME=${CMAKE_SYSTEM_NAME} -D CMAKE_SYSTEM_PROCESSOR=${CMAKE_SYSTEM_PROCESSOR} -P go.cmake WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} VERBATIM ) diff --git a/builders/bare/install/go.cmake b/builders/bare/install/go.cmake index 793c5a6..8083e8f 100644 --- a/builders/bare/install/go.cmake +++ b/builders/bare/install/go.cmake @@ -20,7 +20,7 @@ function(coerce _input _output) return(PROPAGATE ${_output}) endfunction() -require_variables(VERSION) +require_variables(VERSION CMAKE_SYSTEM_NAME CMAKE_SYSTEM_PROCESSOR) get_version(version) block() @@ -33,8 +33,29 @@ endblock() message(WARNING "No go ${VERSION} found. Automatic installation is destructive and requires write permission on your filesystem. Manual installation is highly recommended.") -# TODO: fix hard coding -file(DOWNLOAD https://go.dev/dl/go${VERSION}.linux-amd64.tar.gz go.tar.gz) +# Determine Operating System +if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux") + set(OS "linux") +elseif(${CMAKE_SYSTEM_NAME} STREQUAL "Windows") + set(OS "windows") +elseif(${CMAKE_SYSTEM_NAME} STREQUAL "Darwin") + set(OS "darwin") +else() + message(FATAL_ERROR "Unsupported operating system.") +endif() + +# Determine Architecture +if(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64") + set(ARCH "amd64") +elseif(${CMAKE_SYSTEM_PROCESSOR} MATCHES "arm") + set(ARCH "arm64") +else() + message(FATAL_ERROR "Unsupported architecture.") +endif() + +set(GO_BINARY_URL "https://dl.google.com/go/go${VERSION}.${OS}-${ARCH}.tar.gz") + +file(DOWNLOAD ${GO_BINARY_URL} go.tar.gz) # libarchive bug if(NOT DEFINED ENV{LANG}) From fcc9900eeaf77b5f4c913bb8505e91f535393099 Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Thu, 15 Feb 2024 10:49:18 +0000 Subject: [PATCH 62/62] Ensure input validness right before the test --- x/escrow/keeper/internal/keeper_test.go | 4 +++ x/escrow/keeper/internal/proposal_test.go | 34 +++++++++++++++++++---- 2 files changed, 33 insertions(+), 5 deletions(-) diff --git a/x/escrow/keeper/internal/keeper_test.go b/x/escrow/keeper/internal/keeper_test.go index 94901a0..468be08 100644 --- a/x/escrow/keeper/internal/keeper_test.go +++ b/x/escrow/keeper/internal/keeper_test.go @@ -77,6 +77,8 @@ type KeeperTestSuite struct { queryServer escrowv1alpha1.QueryServer msgServer escrowv1alpha1.MsgServer + testQueryServer testv1alpha1.QueryServer + seller sdk.AccAddress buyer sdk.AccAddress stranger sdk.AccAddress @@ -120,6 +122,8 @@ func (s *KeeperTestSuite) SetupTest() { s.queryServer = keeper.NewQueryServer(*s.keeper) s.msgServer = keeper.NewMsgServer(*s.keeper) + s.testQueryServer = testkeeper.NewQueryServer(*testKeeper) + err := s.keeper.InitGenesis(s.ctx, s.keeper.DefaultGenesis()) s.NoError(err) diff --git a/x/escrow/keeper/internal/proposal_test.go b/x/escrow/keeper/internal/proposal_test.go index d71a4ad..b51cb20 100644 --- a/x/escrow/keeper/internal/proposal_test.go +++ b/x/escrow/keeper/internal/proposal_test.go @@ -44,11 +44,35 @@ func (s *KeeperTestSuite) TestSubmitProposal() { return nil } + + proposer := s.seller + agent := s.agentIdle + agentInfo, err := s.keeper.GetAgent(s.ctx, agent) + s.NoError(err) + s.Equal(proposer, sdk.AccAddress(agentInfo.Creator)) + + validAsset := "snake" + _, err = s.testQueryServer.Asset(s.ctx, &testv1alpha1.QueryAssetRequest{ + Account: s.addressBytesToString(proposer), + Asset: validAsset, + }) + s.NoError(err) + + invalidAsset := "whale" + _, err = s.testQueryServer.Asset(s.ctx, &testv1alpha1.QueryAssetRequest{ + Account: s.addressBytesToString(proposer), + Asset: invalidAsset, + }) + s.Error(err) + + param, err := s.keeper.GetParams(s.ctx) + s.NoError(err) + cases := []map[string]testutil.Case[submitProposal]{ { "proposer already exists": { Malleate: func(subject *submitProposal) { - subject.proposer = s.seller + subject.proposer = proposer }, }, "proposer differs from creator": { @@ -63,7 +87,7 @@ func (s *KeeperTestSuite) TestSubmitProposal() { { "agent already exists": { Malleate: func(subject *submitProposal) { - subject.agent = s.agentIdle + subject.agent = agent }, }, "agent not found": { @@ -82,7 +106,7 @@ func (s *KeeperTestSuite) TestSubmitProposal() { &testv1alpha1.MsgSend{ Sender: s.addressBytesToString(s.seller), Recipient: s.addressBytesToString(s.agentIdle), - Asset: "snake", + Asset: validAsset, }, }) }, @@ -93,7 +117,7 @@ func (s *KeeperTestSuite) TestSubmitProposal() { &testv1alpha1.MsgSend{ Sender: s.addressBytesToString(s.seller), Recipient: s.addressBytesToString(s.agentIdle), - Asset: "whale", // proposer does not have "whale" + Asset: invalidAsset, }, }) }, @@ -123,7 +147,7 @@ func (s *KeeperTestSuite) TestSubmitProposal() { }, "large metadata": { Malleate: func(subject *submitProposal) { - subject.metadata = string(make([]rune, s.keeper.DefaultGenesis().Params.MaxMetadataLength+1)) + subject.metadata = string(make([]rune, param.MaxMetadataLength+1)) }, Error: func() error { return escrowv1alpha1.ErrLargeMetadata