From 71c5c649d9c0b67a3a1bc0f80828f634a20af5b7 Mon Sep 17 00:00:00 2001
From: Jayden Lee <41176085+tkxkd0159@users.noreply.github.com>
Date: Mon, 29 Apr 2024 11:38:33 +0900
Subject: [PATCH] modify UpdateRole feature
---
client/docs/config.json | 4 +-
client/docs/swagger-ui/swagger.yaml | 556 ++++++--
docs/core/proto-docs.md | 295 ++--
proto/lbm/fbridge/v1/fbridge.proto | 19 +
proto/lbm/fbridge/v1/query.proto | 111 +-
proto/lbm/fbridge/v1/tx.proto | 25 +-
x/fbridge/keeper/grpc_query.go | 28 +-
x/fbridge/keeper/msg_server.go | 6 +-
x/fbridge/types/codec.go | 6 +-
x/fbridge/types/fbridge.pb.go | 444 +++++-
x/fbridge/types/msgs.go | 19 +-
x/fbridge/types/query.pb.go | 2033 +++++++++++++++++++--------
x/fbridge/types/query.pb.gw.go | 218 ++-
x/fbridge/types/tx.pb.go | 637 +++++++--
14 files changed, 3361 insertions(+), 1040 deletions(-)
diff --git a/client/docs/config.json b/client/docs/config.json
index 05239a6e53..4a1968c6ee 100644
--- a/client/docs/config.json
+++ b/client/docs/config.json
@@ -173,7 +173,9 @@
"Commitments": "FBridgeCommitments",
"Guardians": "FBridgeGuardians",
"Operators": "FBridgeOperators",
- "Judges": "FBridgeJudges"
+ "Judges": "FBridgeJudges",
+ "Proposals": "FBridgeProposals",
+ "Proposal": "FBridgeProposal"
}
}
}
diff --git a/client/docs/swagger-ui/swagger.yaml b/client/docs/swagger-ui/swagger.yaml
index 9b9f13627e..c56e21d150 100644
--- a/client/docs/swagger-ui/swagger.yaml
+++ b/client/docs/swagger-ui/swagger.yaml
@@ -29801,7 +29801,7 @@ paths:
- Service
'/lbm/fbridge/v1/commitments/{seq}':
get:
- summary: Get commitments of a specific sequence number
+ summary: Commitments queries commitments of a specific sequence number
operationId: FBridgeCommitments
responses:
'200':
@@ -29846,7 +29846,9 @@ paths:
- Query
/lbm/fbridge/v1/greatest_confirmed_seq:
get:
- summary: Get a greatest consecutive sequence number confirmed by n-of-m operators
+ summary: >-
+ GreatestConsecutiveConfirmedSeq queries a greatest consecutive sequence
+ number confirmed by n-of-m operators
operationId: GreatestConsecutiveConfirmedSeq
responses:
'200':
@@ -29883,7 +29885,7 @@ paths:
- Query
/lbm/fbridge/v1/guardians:
get:
- summary: Get a list of Guardians registered on the bridge
+ summary: Guardians queries a list of Guardians registered on the bridge
operationId: FBridgeGuardians
responses:
'200':
@@ -29921,7 +29923,7 @@ paths:
- Query
/lbm/fbridge/v1/judges:
get:
- summary: Get a list of Judges registered on the bridge
+ summary: Judges queries a list of Judges registered on the bridge
operationId: FBridgeJudges
responses:
'200':
@@ -29959,7 +29961,7 @@ paths:
- Query
/lbm/fbridge/v1/nextseq_send:
get:
- summary: NextSeqSend to be used when the next bridge request is made
+ summary: NextSeqSend queries the sequence of next bridge request
operationId: NextSeqSend
responses:
'200':
@@ -29996,7 +29998,7 @@ paths:
- Query
/lbm/fbridge/v1/operators:
get:
- summary: Get a list of Operators registered on the bridge
+ summary: Operators queries a list of Operators registered on the bridge
operationId: FBridgeOperators
responses:
'200':
@@ -30035,8 +30037,8 @@ paths:
'/lbm/fbridge/v1/operators/{operator}/needed_submission_seqs':
get:
summary: >-
- Get a list of sequence numbers that need to be submitted by a particular
- operator
+ NeededSubmissionSeqs queries a list of sequence numbers that need to be
+ submitted by a particular operator
The search scope is [greatest_consecutive_seq_by_operator,
min(greatest_consecutive_seq_by_operator + range,
@@ -30095,7 +30097,9 @@ paths:
- Query
'/lbm/fbridge/v1/operators/{operator}/provision/{seq}':
get:
- summary: Get a provision submitted by a particular operator
+ summary: >-
+ SubmittedProvision queries a provision submitted by a particular
+ operator
operationId: SubmittedProvision
responses:
'200':
@@ -30183,7 +30187,9 @@ paths:
- Query
'/lbm/fbridge/v1/operators/{operator}/seq':
get:
- summary: Get a greatest sequence number confirmed by a particular operator
+ summary: >-
+ GreatestSeqByOperator queries a greatest sequence number confirmed by a
+ particular operator
operationId: GreatestSeqByOperator
responses:
'200':
@@ -30279,6 +30285,10 @@ paths:
title: >-
default timelock period for each provision (unix
timestamp)
+ proposal_period:
+ type: string
+ format: uint64
+ title: default period of the proposal to update the role
default:
description: An unexpected error response
schema:
@@ -30305,7 +30315,7 @@ paths:
- Query
'/lbm/fbridge/v1/provision/{seq}':
get:
- summary: Get a particular sequence of confirmed provisions
+ summary: ConfirmedProvision queries a particular sequence of confirmed provisions
operationId: ConfirmedProvision
responses:
'200':
@@ -30386,6 +30396,216 @@ paths:
format: uint64
tags:
- Query
+ /lbm/fbridge/v1/role/proposals:
+ get:
+ summary: Proposals queries a list of SuggestRole Proposals
+ operationId: FBridgeProposals
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ proposals:
+ type: array
+ items:
+ type: object
+ properties:
+ id:
+ type: string
+ format: uint64
+ proposer:
+ type: string
+ title: the proposer address
+ target:
+ type: string
+ title: the address to update the role
+ role:
+ title: >-
+ the role to be updated
+
+ - unspecified : 0, used to remove the address from a
+ group
+
+ - guardian : 1
+
+ - operator : 2
+
+ - judge : 3
+ type: string
+ enum:
+ - UNSPECIFIED
+ - GUARDIAN
+ - OPERATOR
+ - JUDGE
+ default: UNSPECIFIED
+ description: >-
+ Role defines the role of the operator, guardian, and
+ judge.
+ expired_at:
+ type: string
+ format: uint64
+ title: >-
+ the unix timestamp the proposal will be expired (unix
+ timestamp)
+ default:
+ description: An unexpected error response
+ schema:
+ type: object
+ properties:
+ error:
+ type: string
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ type_url:
+ type: string
+ value:
+ type: string
+ format: byte
+ parameters:
+ - name: pagination.key
+ description: |-
+ key is a value returned in PageResponse.next_key to begin
+ querying the next page most efficiently. Only one of offset or key
+ should be set.
+ in: query
+ required: false
+ type: string
+ format: byte
+ - name: pagination.offset
+ description: >-
+ offset is a numeric offset that can be used when key is unavailable.
+
+ It is less efficient than using key. Only one of offset or key
+ should
+
+ be set.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.limit
+ description: >-
+ limit is the total number of results to be returned in the result
+ page.
+
+ If left empty it will default to a value to be set by each app.
+ in: query
+ required: false
+ type: string
+ format: uint64
+ - name: pagination.count_total
+ description: >-
+ count_total is set to true to indicate that the result set should
+ include
+
+ a count of the total number of items available for pagination in
+ UIs.
+
+ count_total is only respected when offset is used. It is ignored
+ when key
+
+ is set.
+ in: query
+ required: false
+ type: boolean
+ format: boolean
+ - name: pagination.reverse
+ description: >-
+ reverse is set to true if results are to be returned in the
+ descending order.
+
+
+ Since: cosmos-sdk 0.43
+ in: query
+ required: false
+ type: boolean
+ format: boolean
+ tags:
+ - Query
+ '/lbm/fbridge/v1/role/proposals/{proposal_id}':
+ get:
+ summary: Proposal queries a SuggestRole Proposal
+ operationId: FBridgeProposal
+ responses:
+ '200':
+ description: A successful response.
+ schema:
+ type: object
+ properties:
+ proposal:
+ type: object
+ properties:
+ id:
+ type: string
+ format: uint64
+ proposer:
+ type: string
+ title: the proposer address
+ target:
+ type: string
+ title: the address to update the role
+ role:
+ title: |-
+ the role to be updated
+ - unspecified : 0, used to remove the address from a group
+ - guardian : 1
+ - operator : 2
+ - judge : 3
+ type: string
+ enum:
+ - UNSPECIFIED
+ - GUARDIAN
+ - OPERATOR
+ - JUDGE
+ default: UNSPECIFIED
+ description: >-
+ Role defines the role of the operator, guardian, and
+ judge.
+ expired_at:
+ type: string
+ format: uint64
+ title: >-
+ the unix timestamp the proposal will be expired (unix
+ timestamp)
+ default:
+ description: An unexpected error response
+ schema:
+ type: object
+ properties:
+ error:
+ type: string
+ code:
+ type: integer
+ format: int32
+ message:
+ type: string
+ details:
+ type: array
+ items:
+ type: object
+ properties:
+ type_url:
+ type: string
+ value:
+ type: string
+ format: byte
+ parameters:
+ - name: proposal_id
+ description: the proposal id
+ in: path
+ required: true
+ type: string
+ tags:
+ - Query
definitions:
cosmos.auth.v1beta1.Params:
type: object
@@ -49931,14 +50151,106 @@ definitions:
minimum_gas_price:
type: string
description: ConfigResponse defines the response structure for the Config gRPC query.
- lbm.fbridge.v1.CommitmentsResponse:
+ lbm.fbridge.v1.Fraction:
+ type: object
+ properties:
+ numerator:
+ type: string
+ format: uint64
+ denominator:
+ type: string
+ format: uint64
+ description: |-
+ Fraction defines the protobuf message type for tmmath.Fraction that only
+ supports positive values.
+ lbm.fbridge.v1.Params:
+ type: object
+ properties:
+ operator_trust_level:
+ description: ratio of how many operators' confirmations are needed to be valid.
+ type: object
+ properties:
+ numerator:
+ type: string
+ format: uint64
+ denominator:
+ type: string
+ format: uint64
+ guardian_trust_level:
+ description: ratio of how many guardians' confirmations are needed to be valid.
+ type: object
+ properties:
+ numerator:
+ type: string
+ format: uint64
+ denominator:
+ type: string
+ format: uint64
+ judge_trust_level:
+ description: ratio of how many judges' confirmations are needed to be valid.
+ type: object
+ properties:
+ numerator:
+ type: string
+ format: uint64
+ denominator:
+ type: string
+ format: uint64
+ timelock_period:
+ type: string
+ format: uint64
+ title: default timelock period for each provision (unix timestamp)
+ proposal_period:
+ type: string
+ format: uint64
+ title: default period of the proposal to update the role
+ lbm.fbridge.v1.ProvisionData:
+ type: object
+ properties:
+ seq:
+ type: string
+ format: uint64
+ title: the sequence number of the bridge request
+ amount:
+ type: string
+ title: the amount of token to be claimed
+ sender:
+ type: string
+ title: the sender address on the source chain
+ receiver:
+ type: string
+ title: the recipient address on the destination chain
+ description: Provision is a struct that represents a provision internally.
+ lbm.fbridge.v1.ProvisionStatus:
+ type: object
+ properties:
+ timelock_end:
+ type: string
+ format: uint64
+ title: >-
+ the unix timestamp the provision will be able to be claimed (unix
+ timestamp)
+ confirm_counts:
+ type: integer
+ format: int32
+ title: a value that tells how many operators have submitted this provision
+ is_claimed:
+ type: boolean
+ format: boolean
+ title: whether the provision has been claimed
+ description: >-
+ ProvisionStatus is a struct that represents the status of a provision.
+
+ To optimize computational cost, we have collected frequently changing
+ values from provision.
+ lbm.fbridge.v1.QueryCommitmentsResponse:
type: object
properties:
commitments:
type: array
items:
type: string
- lbm.fbridge.v1.ConfirmedProvisionResponse:
+ lbm.fbridge.v1.QueryConfirmedProvisionResponse:
type: object
properties:
data:
@@ -49982,45 +50294,33 @@ definitions:
To optimize computational cost, we have collected frequently changing
values from provision.
- lbm.fbridge.v1.Fraction:
- type: object
- properties:
- numerator:
- type: string
- format: uint64
- denominator:
- type: string
- format: uint64
- description: |-
- Fraction defines the protobuf message type for tmmath.Fraction that only
- supports positive values.
- lbm.fbridge.v1.GreatestConsecutiveConfirmedSeqResponse:
+ lbm.fbridge.v1.QueryGreatestConsecutiveConfirmedSeqResponse:
type: object
properties:
seq:
type: string
format: uint64
- lbm.fbridge.v1.GreatestSeqByOperatorResponse:
+ lbm.fbridge.v1.QueryGreatestSeqByOperatorResponse:
type: object
properties:
seq:
type: string
format: uint64
- lbm.fbridge.v1.GuardiansResponse:
+ lbm.fbridge.v1.QueryGuardiansResponse:
type: object
properties:
guardians:
type: array
items:
type: string
- lbm.fbridge.v1.JudgesResponse:
+ lbm.fbridge.v1.QueryJudgesResponse:
type: object
properties:
judges:
type: array
items:
type: string
- lbm.fbridge.v1.NeededSubmissionSeqsResponse:
+ lbm.fbridge.v1.QueryNeededSubmissionSeqsResponse:
type: object
properties:
seqs:
@@ -50028,95 +50328,19 @@ definitions:
items:
type: string
format: uint64
- lbm.fbridge.v1.NextSeqSendResponse:
+ lbm.fbridge.v1.QueryNextSeqSendResponse:
type: object
properties:
seq:
type: string
format: uint64
- lbm.fbridge.v1.OperatorsResponse:
+ lbm.fbridge.v1.QueryOperatorsResponse:
type: object
properties:
operators:
type: array
items:
type: string
- lbm.fbridge.v1.Params:
- type: object
- properties:
- operator_trust_level:
- description: ratio of how many operators' confirmations are needed to be valid.
- type: object
- properties:
- numerator:
- type: string
- format: uint64
- denominator:
- type: string
- format: uint64
- guardian_trust_level:
- description: ratio of how many guardians' confirmations are needed to be valid.
- type: object
- properties:
- numerator:
- type: string
- format: uint64
- denominator:
- type: string
- format: uint64
- judge_trust_level:
- description: ratio of how many judges' confirmations are needed to be valid.
- type: object
- properties:
- numerator:
- type: string
- format: uint64
- denominator:
- type: string
- format: uint64
- timelock_period:
- type: string
- format: uint64
- title: default timelock period for each provision (unix timestamp)
- lbm.fbridge.v1.ProvisionData:
- type: object
- properties:
- seq:
- type: string
- format: uint64
- title: the sequence number of the bridge request
- amount:
- type: string
- title: the amount of token to be claimed
- sender:
- type: string
- title: the sender address on the source chain
- receiver:
- type: string
- title: the recipient address on the destination chain
- description: Provision is a struct that represents a provision internally.
- lbm.fbridge.v1.ProvisionStatus:
- type: object
- properties:
- timelock_end:
- type: string
- format: uint64
- title: >-
- the unix timestamp the provision will be able to be claimed (unix
- timestamp)
- confirm_counts:
- type: integer
- format: int32
- title: a value that tells how many operators have submitted this provision
- is_claimed:
- type: boolean
- format: boolean
- title: whether the provision has been claimed
- description: >-
- ProvisionStatus is a struct that represents the status of a provision.
-
- To optimize computational cost, we have collected frequently changing
- values from provision.
lbm.fbridge.v1.QueryParamsResponse:
type: object
properties:
@@ -50157,7 +50381,81 @@ definitions:
type: string
format: uint64
title: default timelock period for each provision (unix timestamp)
- lbm.fbridge.v1.SubmittedProvisionResponse:
+ proposal_period:
+ type: string
+ format: uint64
+ title: default period of the proposal to update the role
+ lbm.fbridge.v1.QueryProposalResponse:
+ type: object
+ properties:
+ proposal:
+ type: object
+ properties:
+ id:
+ type: string
+ format: uint64
+ proposer:
+ type: string
+ title: the proposer address
+ target:
+ type: string
+ title: the address to update the role
+ role:
+ title: |-
+ the role to be updated
+ - unspecified : 0, used to remove the address from a group
+ - guardian : 1
+ - operator : 2
+ - judge : 3
+ type: string
+ enum:
+ - UNSPECIFIED
+ - GUARDIAN
+ - OPERATOR
+ - JUDGE
+ default: UNSPECIFIED
+ description: 'Role defines the role of the operator, guardian, and judge.'
+ expired_at:
+ type: string
+ format: uint64
+ title: the unix timestamp the proposal will be expired (unix timestamp)
+ lbm.fbridge.v1.QueryProposalsResponse:
+ type: object
+ properties:
+ proposals:
+ type: array
+ items:
+ type: object
+ properties:
+ id:
+ type: string
+ format: uint64
+ proposer:
+ type: string
+ title: the proposer address
+ target:
+ type: string
+ title: the address to update the role
+ role:
+ title: |-
+ the role to be updated
+ - unspecified : 0, used to remove the address from a group
+ - guardian : 1
+ - operator : 2
+ - judge : 3
+ type: string
+ enum:
+ - UNSPECIFIED
+ - GUARDIAN
+ - OPERATOR
+ - JUDGE
+ default: UNSPECIFIED
+ description: 'Role defines the role of the operator, guardian, and judge.'
+ expired_at:
+ type: string
+ format: uint64
+ title: the unix timestamp the proposal will be expired (unix timestamp)
+ lbm.fbridge.v1.QuerySubmittedProvisionResponse:
type: object
properties:
data:
@@ -50201,3 +50499,43 @@ definitions:
To optimize computational cost, we have collected frequently changing
values from provision.
+ lbm.fbridge.v1.Role:
+ type: string
+ enum:
+ - UNSPECIFIED
+ - GUARDIAN
+ - OPERATOR
+ - JUDGE
+ default: UNSPECIFIED
+ description: 'Role defines the role of the operator, guardian, and judge.'
+ lbm.fbridge.v1.RoleProposal:
+ type: object
+ properties:
+ id:
+ type: string
+ format: uint64
+ proposer:
+ type: string
+ title: the proposer address
+ target:
+ type: string
+ title: the address to update the role
+ role:
+ title: |-
+ the role to be updated
+ - unspecified : 0, used to remove the address from a group
+ - guardian : 1
+ - operator : 2
+ - judge : 3
+ type: string
+ enum:
+ - UNSPECIFIED
+ - GUARDIAN
+ - OPERATOR
+ - JUDGE
+ default: UNSPECIFIED
+ description: 'Role defines the role of the operator, guardian, and judge.'
+ expired_at:
+ type: string
+ format: uint64
+ title: the unix timestamp the proposal will be expired (unix timestamp)
diff --git a/docs/core/proto-docs.md b/docs/core/proto-docs.md
index f37c7698c7..8982d795db 100644
--- a/docs/core/proto-docs.md
+++ b/docs/core/proto-docs.md
@@ -765,6 +765,7 @@
- [Params](#lbm.fbridge.v1.Params)
- [ProvisionData](#lbm.fbridge.v1.ProvisionData)
- [ProvisionStatus](#lbm.fbridge.v1.ProvisionStatus)
+ - [RoleProposal](#lbm.fbridge.v1.RoleProposal)
- [Role](#lbm.fbridge.v1.Role)
@@ -779,32 +780,38 @@
- [SendingState](#lbm.fbridge.v1.SendingState)
- [lbm/fbridge/v1/query.proto](#lbm/fbridge/v1/query.proto)
- - [CommitmentsRequest](#lbm.fbridge.v1.CommitmentsRequest)
- - [CommitmentsResponse](#lbm.fbridge.v1.CommitmentsResponse)
- - [ConfirmedProvisionRequest](#lbm.fbridge.v1.ConfirmedProvisionRequest)
- - [ConfirmedProvisionResponse](#lbm.fbridge.v1.ConfirmedProvisionResponse)
- - [GreatestConsecutiveConfirmedSeqRequest](#lbm.fbridge.v1.GreatestConsecutiveConfirmedSeqRequest)
- - [GreatestConsecutiveConfirmedSeqResponse](#lbm.fbridge.v1.GreatestConsecutiveConfirmedSeqResponse)
- - [GreatestSeqByOperatorRequest](#lbm.fbridge.v1.GreatestSeqByOperatorRequest)
- - [GreatestSeqByOperatorResponse](#lbm.fbridge.v1.GreatestSeqByOperatorResponse)
- - [GuardiansRequest](#lbm.fbridge.v1.GuardiansRequest)
- - [GuardiansResponse](#lbm.fbridge.v1.GuardiansResponse)
- - [JudgesRequest](#lbm.fbridge.v1.JudgesRequest)
- - [JudgesResponse](#lbm.fbridge.v1.JudgesResponse)
- - [NeededSubmissionSeqsRequest](#lbm.fbridge.v1.NeededSubmissionSeqsRequest)
- - [NeededSubmissionSeqsResponse](#lbm.fbridge.v1.NeededSubmissionSeqsResponse)
- - [NextSeqSendRequest](#lbm.fbridge.v1.NextSeqSendRequest)
- - [NextSeqSendResponse](#lbm.fbridge.v1.NextSeqSendResponse)
- - [OperatorsRequest](#lbm.fbridge.v1.OperatorsRequest)
- - [OperatorsResponse](#lbm.fbridge.v1.OperatorsResponse)
+ - [QueryCommitmentsRequest](#lbm.fbridge.v1.QueryCommitmentsRequest)
+ - [QueryCommitmentsResponse](#lbm.fbridge.v1.QueryCommitmentsResponse)
+ - [QueryConfirmedProvisionRequest](#lbm.fbridge.v1.QueryConfirmedProvisionRequest)
+ - [QueryConfirmedProvisionResponse](#lbm.fbridge.v1.QueryConfirmedProvisionResponse)
+ - [QueryGreatestConsecutiveConfirmedSeqRequest](#lbm.fbridge.v1.QueryGreatestConsecutiveConfirmedSeqRequest)
+ - [QueryGreatestConsecutiveConfirmedSeqResponse](#lbm.fbridge.v1.QueryGreatestConsecutiveConfirmedSeqResponse)
+ - [QueryGreatestSeqByOperatorRequest](#lbm.fbridge.v1.QueryGreatestSeqByOperatorRequest)
+ - [QueryGreatestSeqByOperatorResponse](#lbm.fbridge.v1.QueryGreatestSeqByOperatorResponse)
+ - [QueryGuardiansRequest](#lbm.fbridge.v1.QueryGuardiansRequest)
+ - [QueryGuardiansResponse](#lbm.fbridge.v1.QueryGuardiansResponse)
+ - [QueryJudgesRequest](#lbm.fbridge.v1.QueryJudgesRequest)
+ - [QueryJudgesResponse](#lbm.fbridge.v1.QueryJudgesResponse)
+ - [QueryNeededSubmissionSeqsRequest](#lbm.fbridge.v1.QueryNeededSubmissionSeqsRequest)
+ - [QueryNeededSubmissionSeqsResponse](#lbm.fbridge.v1.QueryNeededSubmissionSeqsResponse)
+ - [QueryNextSeqSendRequest](#lbm.fbridge.v1.QueryNextSeqSendRequest)
+ - [QueryNextSeqSendResponse](#lbm.fbridge.v1.QueryNextSeqSendResponse)
+ - [QueryOperatorsRequest](#lbm.fbridge.v1.QueryOperatorsRequest)
+ - [QueryOperatorsResponse](#lbm.fbridge.v1.QueryOperatorsResponse)
- [QueryParamsRequest](#lbm.fbridge.v1.QueryParamsRequest)
- [QueryParamsResponse](#lbm.fbridge.v1.QueryParamsResponse)
- - [SubmittedProvisionRequest](#lbm.fbridge.v1.SubmittedProvisionRequest)
- - [SubmittedProvisionResponse](#lbm.fbridge.v1.SubmittedProvisionResponse)
+ - [QueryProposalRequest](#lbm.fbridge.v1.QueryProposalRequest)
+ - [QueryProposalResponse](#lbm.fbridge.v1.QueryProposalResponse)
+ - [QueryProposalsRequest](#lbm.fbridge.v1.QueryProposalsRequest)
+ - [QueryProposalsResponse](#lbm.fbridge.v1.QueryProposalsResponse)
+ - [QuerySubmittedProvisionRequest](#lbm.fbridge.v1.QuerySubmittedProvisionRequest)
+ - [QuerySubmittedProvisionResponse](#lbm.fbridge.v1.QuerySubmittedProvisionResponse)
- [Query](#lbm.fbridge.v1.Query)
- [lbm/fbridge/v1/tx.proto](#lbm/fbridge/v1/tx.proto)
+ - [MsgAddVoteForRole](#lbm.fbridge.v1.MsgAddVoteForRole)
+ - [MsgAddVoteForRoleResponse](#lbm.fbridge.v1.MsgAddVoteForRoleResponse)
- [MsgClaim](#lbm.fbridge.v1.MsgClaim)
- [MsgClaimBatch](#lbm.fbridge.v1.MsgClaimBatch)
- [MsgClaimBatchResponse](#lbm.fbridge.v1.MsgClaimBatchResponse)
@@ -821,10 +828,10 @@
- [MsgRemoveProvisionResponse](#lbm.fbridge.v1.MsgRemoveProvisionResponse)
- [MsgResume](#lbm.fbridge.v1.MsgResume)
- [MsgResumeResponse](#lbm.fbridge.v1.MsgResumeResponse)
+ - [MsgSuggestRole](#lbm.fbridge.v1.MsgSuggestRole)
+ - [MsgSuggestRoleResponse](#lbm.fbridge.v1.MsgSuggestRoleResponse)
- [MsgTransfer](#lbm.fbridge.v1.MsgTransfer)
- [MsgTransferResponse](#lbm.fbridge.v1.MsgTransferResponse)
- - [MsgUpdateRole](#lbm.fbridge.v1.MsgUpdateRole)
- - [MsgUpdateRoleResponse](#lbm.fbridge.v1.MsgUpdateRoleResponse)
- [Msg](#lbm.fbridge.v1.Msg)
@@ -11496,6 +11503,7 @@ supports positive values.
| `guardian_trust_level` | [Fraction](#lbm.fbridge.v1.Fraction) | | ratio of how many guardians' confirmations are needed to be valid. |
| `judge_trust_level` | [Fraction](#lbm.fbridge.v1.Fraction) | | ratio of how many judges' confirmations are needed to be valid. |
| `timelock_period` | [uint64](#uint64) | | default timelock period for each provision (unix timestamp) |
+| `proposal_period` | [uint64](#uint64) | | default period of the proposal to update the role |
@@ -11537,6 +11545,25 @@ To optimize computational cost, we have collected frequently changing values fro
+
+
+
+### RoleProposal
+
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| `id` | [uint64](#uint64) | | |
+| `proposer` | [string](#string) | | the proposer address |
+| `target` | [string](#string) | | the address to update the role |
+| `role` | [Role](#lbm.fbridge.v1.Role) | | the role to be updated - unspecified : 0, used to remove the address from a group - guardian : 1 - operator : 2 - judge : 3 |
+| `expired_at` | [uint64](#uint64) | | the unix timestamp the proposal will be expired (unix timestamp) |
+
+
+
+
+
@@ -11720,9 +11747,9 @@ GenesisState defines the fbridge module's genesis state.
-
+
-### CommitmentsRequest
+### QueryCommitmentsRequest
@@ -11735,9 +11762,9 @@ GenesisState defines the fbridge module's genesis state.
-
+
-### CommitmentsResponse
+### QueryCommitmentsResponse
@@ -11750,9 +11777,9 @@ GenesisState defines the fbridge module's genesis state.
-
+
-### ConfirmedProvisionRequest
+### QueryConfirmedProvisionRequest
@@ -11765,9 +11792,9 @@ GenesisState defines the fbridge module's genesis state.
-
+
-### ConfirmedProvisionResponse
+### QueryConfirmedProvisionResponse
@@ -11781,9 +11808,9 @@ GenesisState defines the fbridge module's genesis state.
-
+
-### GreatestConsecutiveConfirmedSeqRequest
+### QueryGreatestConsecutiveConfirmedSeqRequest
@@ -11791,9 +11818,9 @@ GenesisState defines the fbridge module's genesis state.
-
+
-### GreatestConsecutiveConfirmedSeqResponse
+### QueryGreatestConsecutiveConfirmedSeqResponse
@@ -11806,9 +11833,9 @@ GenesisState defines the fbridge module's genesis state.
-
+
-### GreatestSeqByOperatorRequest
+### QueryGreatestSeqByOperatorRequest
@@ -11821,9 +11848,9 @@ GenesisState defines the fbridge module's genesis state.
-
+
-### GreatestSeqByOperatorResponse
+### QueryGreatestSeqByOperatorResponse
@@ -11836,9 +11863,9 @@ GenesisState defines the fbridge module's genesis state.
-
+
-### GuardiansRequest
+### QueryGuardiansRequest
@@ -11846,9 +11873,9 @@ GenesisState defines the fbridge module's genesis state.
-
+
-### GuardiansResponse
+### QueryGuardiansResponse
@@ -11861,9 +11888,9 @@ GenesisState defines the fbridge module's genesis state.
-
+
-### JudgesRequest
+### QueryJudgesRequest
@@ -11871,9 +11898,9 @@ GenesisState defines the fbridge module's genesis state.
-
+
-### JudgesResponse
+### QueryJudgesResponse
@@ -11886,9 +11913,9 @@ GenesisState defines the fbridge module's genesis state.
-
+
-### NeededSubmissionSeqsRequest
+### QueryNeededSubmissionSeqsRequest
@@ -11902,9 +11929,9 @@ GenesisState defines the fbridge module's genesis state.
-
+
-### NeededSubmissionSeqsResponse
+### QueryNeededSubmissionSeqsResponse
@@ -11917,9 +11944,9 @@ GenesisState defines the fbridge module's genesis state.
-
+
-### NextSeqSendRequest
+### QueryNextSeqSendRequest
@@ -11927,9 +11954,9 @@ GenesisState defines the fbridge module's genesis state.
-
+
-### NextSeqSendResponse
+### QueryNextSeqSendResponse
@@ -11942,9 +11969,9 @@ GenesisState defines the fbridge module's genesis state.
-
+
-### OperatorsRequest
+### QueryOperatorsRequest
@@ -11952,9 +11979,9 @@ GenesisState defines the fbridge module's genesis state.
-
+
-### OperatorsResponse
+### QueryOperatorsResponse
@@ -11992,9 +12019,69 @@ GenesisState defines the fbridge module's genesis state.
-
+
+
+### QueryProposalRequest
+
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| `proposal_id` | [string](#string) | | the proposal id |
+
+
+
+
+
+
+
+
+### QueryProposalResponse
+
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| `proposal` | [RoleProposal](#lbm.fbridge.v1.RoleProposal) | | |
+
+
+
+
+
+
+
+
+### QueryProposalsRequest
+
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| `pagination` | [cosmos.base.query.v1beta1.PageRequest](#cosmos.base.query.v1beta1.PageRequest) | | pagination defines an optional pagination for the request. |
+
+
+
+
+
+
+
+
+### QueryProposalsResponse
+
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| `proposals` | [RoleProposal](#lbm.fbridge.v1.RoleProposal) | repeated | |
+
+
-### SubmittedProvisionRequest
+
+
+
+
+
+### QuerySubmittedProvisionRequest
@@ -12008,9 +12095,9 @@ GenesisState defines the fbridge module's genesis state.
-
+
-### SubmittedProvisionResponse
+### QuerySubmittedProvisionResponse
@@ -12038,16 +12125,18 @@ GenesisState defines the fbridge module's genesis state.
| Method Name | Request Type | Response Type | Description | HTTP Verb | Endpoint |
| ----------- | ------------ | ------------- | ------------| ------- | -------- |
| `Params` | [QueryParamsRequest](#lbm.fbridge.v1.QueryParamsRequest) | [QueryParamsResponse](#lbm.fbridge.v1.QueryParamsResponse) | Params queries the parameters of x/fbridge module. | GET|/lbm/fbridge/v1/params|
-| `NextSeqSend` | [NextSeqSendRequest](#lbm.fbridge.v1.NextSeqSendRequest) | [NextSeqSendResponse](#lbm.fbridge.v1.NextSeqSendResponse) | NextSeqSend to be used when the next bridge request is made | GET|/lbm/fbridge/v1/nextseq_send|
-| `GreatestSeqByOperator` | [GreatestSeqByOperatorRequest](#lbm.fbridge.v1.GreatestSeqByOperatorRequest) | [GreatestSeqByOperatorResponse](#lbm.fbridge.v1.GreatestSeqByOperatorResponse) | Get a greatest sequence number confirmed by a particular operator | GET|/lbm/fbridge/v1/operators/{operator}/seq|
-| `GreatestConsecutiveConfirmedSeq` | [GreatestConsecutiveConfirmedSeqRequest](#lbm.fbridge.v1.GreatestConsecutiveConfirmedSeqRequest) | [GreatestConsecutiveConfirmedSeqResponse](#lbm.fbridge.v1.GreatestConsecutiveConfirmedSeqResponse) | Get a greatest consecutive sequence number confirmed by n-of-m operators | GET|/lbm/fbridge/v1/greatest_confirmed_seq|
-| `SubmittedProvision` | [SubmittedProvisionRequest](#lbm.fbridge.v1.SubmittedProvisionRequest) | [SubmittedProvisionResponse](#lbm.fbridge.v1.SubmittedProvisionResponse) | Get a provision submitted by a particular operator | GET|/lbm/fbridge/v1/operators/{operator}/provision/{seq}|
-| `ConfirmedProvision` | [ConfirmedProvisionRequest](#lbm.fbridge.v1.ConfirmedProvisionRequest) | [ConfirmedProvisionResponse](#lbm.fbridge.v1.ConfirmedProvisionResponse) | Get a particular sequence of confirmed provisions | GET|/lbm/fbridge/v1/provision/{seq}|
-| `NeededSubmissionSeqs` | [NeededSubmissionSeqsRequest](#lbm.fbridge.v1.NeededSubmissionSeqsRequest) | [NeededSubmissionSeqsResponse](#lbm.fbridge.v1.NeededSubmissionSeqsResponse) | Get a list of sequence numbers that need to be submitted by a particular operator The search scope is [greatest_consecutive_seq_by_operator, min(greatest_consecutive_seq_by_operator + range, greatest_seq_by_operator)] greatest_consecutive_seq_by_operator can be replaced with greatest_consecutive_seq if the operator is newly added | GET|/lbm/fbridge/v1/operators/{operator}/needed_submission_seqs|
-| `Commitments` | [CommitmentsRequest](#lbm.fbridge.v1.CommitmentsRequest) | [CommitmentsResponse](#lbm.fbridge.v1.CommitmentsResponse) | Get commitments of a specific sequence number | GET|/lbm/fbridge/v1/commitments/{seq}|
-| `Guardians` | [GuardiansRequest](#lbm.fbridge.v1.GuardiansRequest) | [GuardiansResponse](#lbm.fbridge.v1.GuardiansResponse) | Get a list of Guardians registered on the bridge | GET|/lbm/fbridge/v1/guardians|
-| `Operators` | [OperatorsRequest](#lbm.fbridge.v1.OperatorsRequest) | [OperatorsResponse](#lbm.fbridge.v1.OperatorsResponse) | Get a list of Operators registered on the bridge | GET|/lbm/fbridge/v1/operators|
-| `Judges` | [JudgesRequest](#lbm.fbridge.v1.JudgesRequest) | [JudgesResponse](#lbm.fbridge.v1.JudgesResponse) | Get a list of Judges registered on the bridge | GET|/lbm/fbridge/v1/judges|
+| `NextSeqSend` | [QueryNextSeqSendRequest](#lbm.fbridge.v1.QueryNextSeqSendRequest) | [QueryNextSeqSendResponse](#lbm.fbridge.v1.QueryNextSeqSendResponse) | NextSeqSend queries the sequence of next bridge request | GET|/lbm/fbridge/v1/nextseq_send|
+| `GreatestSeqByOperator` | [QueryGreatestSeqByOperatorRequest](#lbm.fbridge.v1.QueryGreatestSeqByOperatorRequest) | [QueryGreatestSeqByOperatorResponse](#lbm.fbridge.v1.QueryGreatestSeqByOperatorResponse) | GreatestSeqByOperator queries a greatest sequence number confirmed by a particular operator | GET|/lbm/fbridge/v1/operators/{operator}/seq|
+| `GreatestConsecutiveConfirmedSeq` | [QueryGreatestConsecutiveConfirmedSeqRequest](#lbm.fbridge.v1.QueryGreatestConsecutiveConfirmedSeqRequest) | [QueryGreatestConsecutiveConfirmedSeqResponse](#lbm.fbridge.v1.QueryGreatestConsecutiveConfirmedSeqResponse) | GreatestConsecutiveConfirmedSeq queries a greatest consecutive sequence number confirmed by n-of-m operators | GET|/lbm/fbridge/v1/greatest_confirmed_seq|
+| `SubmittedProvision` | [QuerySubmittedProvisionRequest](#lbm.fbridge.v1.QuerySubmittedProvisionRequest) | [QuerySubmittedProvisionResponse](#lbm.fbridge.v1.QuerySubmittedProvisionResponse) | SubmittedProvision queries a provision submitted by a particular operator | GET|/lbm/fbridge/v1/operators/{operator}/provision/{seq}|
+| `ConfirmedProvision` | [QueryConfirmedProvisionRequest](#lbm.fbridge.v1.QueryConfirmedProvisionRequest) | [QueryConfirmedProvisionResponse](#lbm.fbridge.v1.QueryConfirmedProvisionResponse) | ConfirmedProvision queries a particular sequence of confirmed provisions | GET|/lbm/fbridge/v1/provision/{seq}|
+| `NeededSubmissionSeqs` | [QueryNeededSubmissionSeqsRequest](#lbm.fbridge.v1.QueryNeededSubmissionSeqsRequest) | [QueryNeededSubmissionSeqsResponse](#lbm.fbridge.v1.QueryNeededSubmissionSeqsResponse) | NeededSubmissionSeqs queries a list of sequence numbers that need to be submitted by a particular operator The search scope is [greatest_consecutive_seq_by_operator, min(greatest_consecutive_seq_by_operator + range, greatest_seq_by_operator)] greatest_consecutive_seq_by_operator can be replaced with greatest_consecutive_seq if the operator is newly added | GET|/lbm/fbridge/v1/operators/{operator}/needed_submission_seqs|
+| `Commitments` | [QueryCommitmentsRequest](#lbm.fbridge.v1.QueryCommitmentsRequest) | [QueryCommitmentsResponse](#lbm.fbridge.v1.QueryCommitmentsResponse) | Commitments queries commitments of a specific sequence number | GET|/lbm/fbridge/v1/commitments/{seq}|
+| `Guardians` | [QueryGuardiansRequest](#lbm.fbridge.v1.QueryGuardiansRequest) | [QueryGuardiansResponse](#lbm.fbridge.v1.QueryGuardiansResponse) | Guardians queries a list of Guardians registered on the bridge | GET|/lbm/fbridge/v1/guardians|
+| `Operators` | [QueryOperatorsRequest](#lbm.fbridge.v1.QueryOperatorsRequest) | [QueryOperatorsResponse](#lbm.fbridge.v1.QueryOperatorsResponse) | Operators queries a list of Operators registered on the bridge | GET|/lbm/fbridge/v1/operators|
+| `Judges` | [QueryJudgesRequest](#lbm.fbridge.v1.QueryJudgesRequest) | [QueryJudgesResponse](#lbm.fbridge.v1.QueryJudgesResponse) | Judges queries a list of Judges registered on the bridge | GET|/lbm/fbridge/v1/judges|
+| `Proposals` | [QueryProposalsRequest](#lbm.fbridge.v1.QueryProposalsRequest) | [QueryProposalsResponse](#lbm.fbridge.v1.QueryProposalsResponse) | Proposals queries a list of SuggestRole Proposals | GET|/lbm/fbridge/v1/role/proposals|
+| `Proposal` | [QueryProposalRequest](#lbm.fbridge.v1.QueryProposalRequest) | [QueryProposalResponse](#lbm.fbridge.v1.QueryProposalResponse) | Proposal queries a SuggestRole Proposal | GET|/lbm/fbridge/v1/role/proposals/{proposal_id}|
@@ -12060,6 +12149,33 @@ GenesisState defines the fbridge module's genesis state.
+
+
+### MsgAddVoteForRole
+
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| `from` | [string](#string) | | the guardian address |
+| `proposal_id` | [uint64](#uint64) | | the proposal ID |
+| `option` | [bool](#bool) | | the vote option - yes : true - no : false |
+
+
+
+
+
+
+
+
+### MsgAddVoteForRoleResponse
+
+
+
+
+
+
+
### MsgClaim
@@ -12269,26 +12385,26 @@ MsgResume is input values required for resuming the bridge module
-
+
-### MsgTransfer
-MsgTransfer is input values required for bridge transfer
+### MsgSuggestRole
+MsgUpdateRole is input values required for updating the role of an address
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| `sender` | [string](#string) | | the sender address on the source chain |
-| `receiver` | [string](#string) | | the recipient address on the destination chain |
-| `amount` | [string](#string) | | the amount of token to be transferred |
+| `from` | [string](#string) | | the guardian address |
+| `target` | [string](#string) | | the address to update the role |
+| `role` | [Role](#lbm.fbridge.v1.Role) | | the role to be updated - unspecified : 0, used to remove the address from a group - guardian : 1 - operator : 2 - judge : 3 |
-
+
-### MsgTransferResponse
+### MsgSuggestRoleResponse
@@ -12296,26 +12412,26 @@ MsgTransfer is input values required for bridge transfer
-
+
-### MsgUpdateRole
-MsgUpdateRole is input values required for updating the role of an address
+### MsgTransfer
+MsgTransfer is input values required for bridge transfer
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| `from` | [string](#string) | | the guardian address |
-| `target` | [string](#string) | | the address to update the role |
-| `role` | [Role](#lbm.fbridge.v1.Role) | | the role to be updated - unspecified : 0, used to remove the address from a group - guardian : 1 - operator : 2 - judge : 3 |
+| `sender` | [string](#string) | | the sender address on the source chain |
+| `receiver` | [string](#string) | | the recipient address on the destination chain |
+| `amount` | [string](#string) | | the amount of token to be transferred |
-
+
-### MsgUpdateRoleResponse
+### MsgTransferResponse
@@ -12343,7 +12459,8 @@ MsgUpdateRole is input values required for updating the role of an address
| `RemoveProvision` | [MsgRemoveProvision](#lbm.fbridge.v1.MsgRemoveProvision) | [MsgRemoveProvisionResponse](#lbm.fbridge.v1.MsgRemoveProvisionResponse) | Remove a specific confirmed provision (reset for specific sequence number). | |
| `ClaimBatch` | [MsgClaimBatch](#lbm.fbridge.v1.MsgClaimBatch) | [MsgClaimBatchResponse](#lbm.fbridge.v1.MsgClaimBatchResponse) | ClaimBatch processes the claiming of multiple claimable provisions in a single operation | |
| `Claim` | [MsgClaim](#lbm.fbridge.v1.MsgClaim) | [MsgClaimResponse](#lbm.fbridge.v1.MsgClaimResponse) | Claim processes the claiming of a provision with a specific sequence number | |
-| `UpdateRole` | [MsgUpdateRole](#lbm.fbridge.v1.MsgUpdateRole) | [MsgUpdateRoleResponse](#lbm.fbridge.v1.MsgUpdateRoleResponse) | UpdateRole updates the role of an address in the bridge module. The role can be one of the following: guardian, operator, judge. | |
+| `SuggestRole` | [MsgSuggestRole](#lbm.fbridge.v1.MsgSuggestRole) | [MsgSuggestRoleResponse](#lbm.fbridge.v1.MsgSuggestRoleResponse) | SuggestRole suggests updating the role of an address in the bridge module. The role can be one of the following: guardian, operator, judge. The proposal will be passed only with the consent of +2/3 Guardian members. | |
+| `AddVoteForRole` | [MsgAddVoteForRole](#lbm.fbridge.v1.MsgAddVoteForRole) | [MsgAddVoteForRoleResponse](#lbm.fbridge.v1.MsgAddVoteForRoleResponse) | AddVoteForRole adds a vote for a role change proposal. | |
| `Halt` | [MsgHalt](#lbm.fbridge.v1.MsgHalt) | [MsgHaltResponse](#lbm.fbridge.v1.MsgHaltResponse) | Halt the bridge module. | |
| `Resume` | [MsgResume](#lbm.fbridge.v1.MsgResume) | [MsgResumeResponse](#lbm.fbridge.v1.MsgResumeResponse) | Resume the bridge module. | |
diff --git a/proto/lbm/fbridge/v1/fbridge.proto b/proto/lbm/fbridge/v1/fbridge.proto
index e5e8c4f211..58b1054ef3 100644
--- a/proto/lbm/fbridge/v1/fbridge.proto
+++ b/proto/lbm/fbridge/v1/fbridge.proto
@@ -14,6 +14,8 @@ message Params {
Fraction judge_trust_level = 3;
// default timelock period for each provision (unix timestamp)
uint64 timelock_period = 4;
+ // default period of the proposal to update the role
+ uint64 proposal_period = 5;
}
// Provision is a struct that represents a provision internally.
@@ -54,3 +56,20 @@ enum Role {
OPERATOR = 2;
JUDGE = 3;
}
+
+message RoleProposal {
+ uint64 id = 1;
+ // the proposer address
+ string proposer = 2;
+ // the address to update the role
+ string target = 3;
+ // the role to be updated
+ // - unspecified : 0, used to remove the address from a group
+ // - guardian : 1
+ // - operator : 2
+ // - judge : 3
+ Role role = 4;
+
+ // the unix timestamp the proposal will be expired (unix timestamp)
+ uint64 expired_at = 5;
+}
\ No newline at end of file
diff --git a/proto/lbm/fbridge/v1/query.proto b/proto/lbm/fbridge/v1/query.proto
index dbcd3f51cc..900aac4e8b 100644
--- a/proto/lbm/fbridge/v1/query.proto
+++ b/proto/lbm/fbridge/v1/query.proto
@@ -5,6 +5,7 @@ option go_package = "github.com/Finschia/finschia-sdk/x/fbridge/types";
import "google/api/annotations.proto";
import "gogoproto/gogo.proto";
+import "cosmos/base/query/v1beta1/pagination.proto";
import "lbm/fbridge/v1/fbridge.proto";
service Query {
@@ -13,59 +14,69 @@ service Query {
option (google.api.http).get = "/lbm/fbridge/v1/params";
}
- // NextSeqSend to be used when the next bridge request is made
- rpc NextSeqSend(NextSeqSendRequest) returns (NextSeqSendResponse) {
+ // NextSeqSend queries the sequence of next bridge request
+ rpc NextSeqSend(QueryNextSeqSendRequest) returns (QueryNextSeqSendResponse) {
option (google.api.http).get = "/lbm/fbridge/v1/nextseq_send";
}
- // Get a greatest sequence number confirmed by a particular operator
- rpc GreatestSeqByOperator(GreatestSeqByOperatorRequest) returns (GreatestSeqByOperatorResponse) {
+ // GreatestSeqByOperator queries a greatest sequence number confirmed by a particular operator
+ rpc GreatestSeqByOperator(QueryGreatestSeqByOperatorRequest) returns (QueryGreatestSeqByOperatorResponse) {
option (google.api.http).get = "/lbm/fbridge/v1/operators/{operator}/seq";
}
- // Get a greatest consecutive sequence number confirmed by n-of-m operators
- rpc GreatestConsecutiveConfirmedSeq(GreatestConsecutiveConfirmedSeqRequest)
- returns (GreatestConsecutiveConfirmedSeqResponse) {
+ // GreatestConsecutiveConfirmedSeq queries a greatest consecutive sequence number confirmed by n-of-m operators
+ rpc GreatestConsecutiveConfirmedSeq(QueryGreatestConsecutiveConfirmedSeqRequest)
+ returns (QueryGreatestConsecutiveConfirmedSeqResponse) {
option (google.api.http).get = "/lbm/fbridge/v1/greatest_confirmed_seq";
}
- // Get a provision submitted by a particular operator
- rpc SubmittedProvision(SubmittedProvisionRequest) returns (SubmittedProvisionResponse) {
+ // SubmittedProvision queries a provision submitted by a particular operator
+ rpc SubmittedProvision(QuerySubmittedProvisionRequest) returns (QuerySubmittedProvisionResponse) {
option (google.api.http).get = "/lbm/fbridge/v1/operators/{operator}/provision/{seq}";
}
- // Get a particular sequence of confirmed provisions
- rpc ConfirmedProvision(ConfirmedProvisionRequest) returns (ConfirmedProvisionResponse) {
+ // ConfirmedProvision queries a particular sequence of confirmed provisions
+ rpc ConfirmedProvision(QueryConfirmedProvisionRequest) returns (QueryConfirmedProvisionResponse) {
option (google.api.http).get = "/lbm/fbridge/v1/provision/{seq}";
}
- // Get a list of sequence numbers that need to be submitted by a particular operator
+ // NeededSubmissionSeqs queries a list of sequence numbers that need to be submitted by a particular operator
// The search scope is [greatest_consecutive_seq_by_operator, min(greatest_consecutive_seq_by_operator + range,
// greatest_seq_by_operator)] greatest_consecutive_seq_by_operator can be replaced with greatest_consecutive_seq if
// the operator is newly added
- rpc NeededSubmissionSeqs(NeededSubmissionSeqsRequest) returns (NeededSubmissionSeqsResponse) {
+ rpc NeededSubmissionSeqs(QueryNeededSubmissionSeqsRequest) returns (QueryNeededSubmissionSeqsResponse) {
option (google.api.http).get = "/lbm/fbridge/v1/operators/{operator}/needed_submission_seqs";
}
- // Get commitments of a specific sequence number
- rpc Commitments(CommitmentsRequest) returns (CommitmentsResponse) {
+ // Commitments queries commitments of a specific sequence number
+ rpc Commitments(QueryCommitmentsRequest) returns (QueryCommitmentsResponse) {
option (google.api.http).get = "/lbm/fbridge/v1/commitments/{seq}";
}
- // Get a list of Guardians registered on the bridge
- rpc Guardians(GuardiansRequest) returns (GuardiansResponse) {
+ // Guardians queries a list of Guardians registered on the bridge
+ rpc Guardians(QueryGuardiansRequest) returns (QueryGuardiansResponse) {
option (google.api.http).get = "/lbm/fbridge/v1/guardians";
}
- // Get a list of Operators registered on the bridge
- rpc Operators(OperatorsRequest) returns (OperatorsResponse) {
+ // Operators queries a list of Operators registered on the bridge
+ rpc Operators(QueryOperatorsRequest) returns (QueryOperatorsResponse) {
option (google.api.http).get = "/lbm/fbridge/v1/operators";
}
- // Get a list of Judges registered on the bridge
- rpc Judges(JudgesRequest) returns (JudgesResponse) {
+ // Judges queries a list of Judges registered on the bridge
+ rpc Judges(QueryJudgesRequest) returns (QueryJudgesResponse) {
option (google.api.http).get = "/lbm/fbridge/v1/judges";
}
+
+ // Proposals queries a list of SuggestRole Proposals
+ rpc Proposals(QueryProposalsRequest) returns (QueryProposalsResponse) {
+ option (google.api.http).get = "/lbm/fbridge/v1/role/proposals";
+ }
+
+ // Proposal queries a SuggestRole Proposal
+ rpc Proposal(QueryProposalRequest) returns (QueryProposalResponse) {
+ option (google.api.http).get = "/lbm/fbridge/v1/role/proposals/{proposal_id}";
+ }
}
message QueryParamsRequest {}
@@ -74,83 +85,101 @@ message QueryParamsResponse {
Params params = 1 [(gogoproto.nullable) = false];
}
-message NextSeqSendRequest {}
+message QueryNextSeqSendRequest {}
-message NextSeqSendResponse {
+message QueryNextSeqSendResponse {
uint64 seq = 1;
}
-message GreatestSeqByOperatorRequest {
+message QueryGreatestSeqByOperatorRequest {
// the address of the operator
string operator = 1;
}
-message GreatestSeqByOperatorResponse {
+message QueryGreatestSeqByOperatorResponse {
uint64 seq = 1;
}
-message GreatestConsecutiveConfirmedSeqRequest {}
+message QueryGreatestConsecutiveConfirmedSeqRequest {}
-message GreatestConsecutiveConfirmedSeqResponse {
+message QueryGreatestConsecutiveConfirmedSeqResponse {
uint64 seq = 1;
}
-message SubmittedProvisionRequest {
+message QuerySubmittedProvisionRequest {
// the address of the operator
string operator = 1;
// the sequence number of the bridge request
uint64 seq = 2;
}
-message SubmittedProvisionResponse {
+message QuerySubmittedProvisionResponse {
ProvisionData data = 1 [(gogoproto.nullable) = false];
ProvisionStatus status = 2 [(gogoproto.nullable) = false];
}
-message NeededSubmissionSeqsRequest {
+message QueryNeededSubmissionSeqsRequest {
// the address of the operator
string operator = 1;
// range specifies the size of the range to search
uint64 range = 2;
}
-message NeededSubmissionSeqsResponse {
+message QueryNeededSubmissionSeqsResponse {
repeated uint64 seqs = 1;
}
-message ConfirmedProvisionRequest {
+message QueryConfirmedProvisionRequest {
// the sequence number of the bridge request
uint64 seq = 1;
}
-message ConfirmedProvisionResponse {
+message QueryConfirmedProvisionResponse {
ProvisionData data = 1 [(gogoproto.nullable) = false];
ProvisionStatus status = 2 [(gogoproto.nullable) = false];
}
-message CommitmentsRequest {
+message QueryCommitmentsRequest {
// the sequence number of the bridge request
uint64 seq = 1;
}
-message CommitmentsResponse {
+message QueryCommitmentsResponse {
repeated string commitments = 1;
}
-message GuardiansRequest {}
+message QueryGuardiansRequest {}
-message GuardiansResponse {
+message QueryGuardiansResponse {
repeated string guardians = 1;
}
-message OperatorsRequest {}
+message QueryOperatorsRequest {}
-message OperatorsResponse {
+message QueryOperatorsResponse {
repeated string operators = 1;
}
-message JudgesRequest {}
+message QueryJudgesRequest {}
-message JudgesResponse {
+message QueryJudgesResponse {
repeated string judges = 1;
}
+
+message QueryProposalsRequest {
+ // pagination defines an optional pagination for the request.
+ cosmos.base.query.v1beta1.PageRequest pagination = 1;
+}
+
+message QueryProposalsResponse {
+ repeated RoleProposal proposals = 1;
+}
+
+message QueryProposalRequest {
+ // the proposal id
+ string proposal_id = 1;
+}
+
+message QueryProposalResponse {
+ RoleProposal proposal = 1;
+}
\ No newline at end of file
diff --git a/proto/lbm/fbridge/v1/tx.proto b/proto/lbm/fbridge/v1/tx.proto
index 27f6b5fc9c..8b114a8645 100644
--- a/proto/lbm/fbridge/v1/tx.proto
+++ b/proto/lbm/fbridge/v1/tx.proto
@@ -28,9 +28,13 @@ service Msg {
// Claim processes the claiming of a provision with a specific sequence number
rpc Claim(MsgClaim) returns (MsgClaimResponse);
- // UpdateRole updates the role of an address in the bridge module.
+ // SuggestRole suggests updating the role of an address in the bridge module.
// The role can be one of the following: guardian, operator, judge.
- rpc UpdateRole(MsgUpdateRole) returns (MsgUpdateRoleResponse);
+ // The proposal will be passed only with the consent of +2/3 Guardian members.
+ rpc SuggestRole(MsgSuggestRole) returns (MsgSuggestRoleResponse);
+
+ // AddVoteForRole adds a vote for a role change proposal.
+ rpc AddVoteForRole(MsgAddVoteForRole) returns (MsgAddVoteForRoleResponse);
// Halt the bridge module.
rpc Halt(MsgHalt) returns (MsgHaltResponse);
@@ -120,7 +124,7 @@ message MsgClaim {
message MsgClaimResponse {}
// MsgUpdateRole is input values required for updating the role of an address
-message MsgUpdateRole {
+message MsgSuggestRole {
// the guardian address
string from = 1;
// the address to update the role
@@ -133,7 +137,20 @@ message MsgUpdateRole {
Role role = 3;
}
-message MsgUpdateRoleResponse {}
+message MsgSuggestRoleResponse {}
+
+message MsgAddVoteForRole {
+ // the guardian address
+ string from = 1;
+ // the proposal ID
+ uint64 proposal_id = 2;
+ // the vote option
+ // - yes : true
+ // - no : false
+ bool option = 3;
+}
+
+message MsgAddVoteForRoleResponse {}
// MsgHalt is input values required for halting the bridge module
message MsgHalt {
diff --git a/x/fbridge/keeper/grpc_query.go b/x/fbridge/keeper/grpc_query.go
index 1cf16fbdda..c157e03e30 100644
--- a/x/fbridge/keeper/grpc_query.go
+++ b/x/fbridge/keeper/grpc_query.go
@@ -12,42 +12,50 @@ func (k Keeper) Params(ctx context.Context, request *types.QueryParamsRequest) (
panic("implement me")
}
-func (k Keeper) NextSeqSend(ctx context.Context, request *types.NextSeqSendRequest) (*types.NextSeqSendResponse, error) {
+func (k Keeper) NextSeqSend(ctx context.Context, request *types.QueryNextSeqSendRequest) (*types.QueryNextSeqSendResponse, error) {
panic("implement me")
}
-func (k Keeper) GreatestSeqByOperator(ctx context.Context, request *types.GreatestSeqByOperatorRequest) (*types.GreatestSeqByOperatorResponse, error) {
+func (k Keeper) GreatestSeqByOperator(ctx context.Context, request *types.QueryGreatestSeqByOperatorRequest) (*types.QueryGreatestSeqByOperatorResponse, error) {
panic("implement me")
}
-func (k Keeper) GreatestConsecutiveConfirmedSeq(ctx context.Context, request *types.GreatestConsecutiveConfirmedSeqRequest) (*types.GreatestConsecutiveConfirmedSeqResponse, error) {
+func (k Keeper) GreatestConsecutiveConfirmedSeq(ctx context.Context, request *types.QueryGreatestConsecutiveConfirmedSeqRequest) (*types.QueryGreatestConsecutiveConfirmedSeqResponse, error) {
panic("implement me")
}
-func (k Keeper) SubmittedProvision(ctx context.Context, request *types.SubmittedProvisionRequest) (*types.SubmittedProvisionResponse, error) {
+func (k Keeper) SubmittedProvision(ctx context.Context, request *types.QuerySubmittedProvisionRequest) (*types.QuerySubmittedProvisionResponse, error) {
panic("implement me")
}
-func (k Keeper) ConfirmedProvision(ctx context.Context, request *types.ConfirmedProvisionRequest) (*types.ConfirmedProvisionResponse, error) {
+func (k Keeper) ConfirmedProvision(ctx context.Context, request *types.QueryConfirmedProvisionRequest) (*types.QueryConfirmedProvisionResponse, error) {
panic("implement me")
}
-func (k Keeper) NeededSubmissionSeqs(ctx context.Context, request *types.NeededSubmissionSeqsRequest) (*types.NeededSubmissionSeqsResponse, error) {
+func (k Keeper) NeededSubmissionSeqs(ctx context.Context, request *types.QueryNeededSubmissionSeqsRequest) (*types.QueryNeededSubmissionSeqsResponse, error) {
panic("implement me")
}
-func (k Keeper) Commitments(ctx context.Context, request *types.CommitmentsRequest) (*types.CommitmentsResponse, error) {
+func (k Keeper) Commitments(ctx context.Context, request *types.QueryCommitmentsRequest) (*types.QueryCommitmentsResponse, error) {
panic("implement me")
}
-func (k Keeper) Guardians(ctx context.Context, request *types.GuardiansRequest) (*types.GuardiansResponse, error) {
+func (k Keeper) Guardians(ctx context.Context, request *types.QueryGuardiansRequest) (*types.QueryGuardiansResponse, error) {
panic("implement me")
}
-func (k Keeper) Operators(ctx context.Context, request *types.OperatorsRequest) (*types.OperatorsResponse, error) {
+func (k Keeper) Operators(ctx context.Context, request *types.QueryOperatorsRequest) (*types.QueryOperatorsResponse, error) {
panic("implement me")
}
-func (k Keeper) Judges(ctx context.Context, request *types.JudgesRequest) (*types.JudgesResponse, error) {
+func (k Keeper) Judges(ctx context.Context, request *types.QueryJudgesRequest) (*types.QueryJudgesResponse, error) {
+ panic("implement me")
+}
+
+func (k Keeper) Proposals(ctx context.Context, request *types.QueryProposalsRequest) (*types.QueryProposalsResponse, error) {
+ panic("implement me")
+}
+
+func (k Keeper) Proposal(ctx context.Context, request *types.QueryProposalRequest) (*types.QueryProposalResponse, error) {
panic("implement me")
}
diff --git a/x/fbridge/keeper/msg_server.go b/x/fbridge/keeper/msg_server.go
index d70b67d41d..58d79ed1b1 100644
--- a/x/fbridge/keeper/msg_server.go
+++ b/x/fbridge/keeper/msg_server.go
@@ -44,7 +44,11 @@ func (m msgServer) Claim(ctx context.Context, claim *types.MsgClaim) (*types.Msg
panic("implement me")
}
-func (m msgServer) UpdateRole(ctx context.Context, role *types.MsgUpdateRole) (*types.MsgUpdateRoleResponse, error) {
+func (m msgServer) SuggestRole(ctx context.Context, role *types.MsgSuggestRole) (*types.MsgSuggestRoleResponse, error) {
+ panic("implement me")
+}
+
+func (m msgServer) AddVoteForRole(ctx context.Context, role *types.MsgAddVoteForRole) (*types.MsgAddVoteForRoleResponse, error) {
panic("implement me")
}
diff --git a/x/fbridge/types/codec.go b/x/fbridge/types/codec.go
index 6e166c6c0f..c2edd215be 100644
--- a/x/fbridge/types/codec.go
+++ b/x/fbridge/types/codec.go
@@ -20,7 +20,8 @@ func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
legacy.RegisterAminoMsg(cdc, &MsgRemoveProvision{}, "lbm-sdk/MsgRemoveProvision")
legacy.RegisterAminoMsg(cdc, &MsgClaimBatch{}, "lbm-sdk/MsgClaimBatch")
legacy.RegisterAminoMsg(cdc, &MsgClaim{}, "lbm-sdk/MsgClaim")
- legacy.RegisterAminoMsg(cdc, &MsgUpdateRole{}, "lbm-sdk/MsgUpdateRole")
+ legacy.RegisterAminoMsg(cdc, &MsgSuggestRole{}, "lbm-sdk/MsgSuggestRole")
+ legacy.RegisterAminoMsg(cdc, &MsgAddVoteForRole{}, "lbm-sdk/MsgAddVoteForRole")
legacy.RegisterAminoMsg(cdc, &MsgHalt{}, "lbm-sdk/MsgHalt")
legacy.RegisterAminoMsg(cdc, &MsgResume{}, "lbm-sdk/MsgResume")
}
@@ -35,7 +36,8 @@ func RegisterInterfaces(registrar types.InterfaceRegistry) {
&MsgRemoveProvision{},
&MsgClaimBatch{},
&MsgClaim{},
- &MsgUpdateRole{},
+ &MsgSuggestRole{},
+ &MsgAddVoteForRole{},
&MsgHalt{},
&MsgResume{},
)
diff --git a/x/fbridge/types/fbridge.pb.go b/x/fbridge/types/fbridge.pb.go
index 4f06967485..9ca2c7a57a 100644
--- a/x/fbridge/types/fbridge.pb.go
+++ b/x/fbridge/types/fbridge.pb.go
@@ -65,6 +65,8 @@ type Params struct {
JudgeTrustLevel *Fraction `protobuf:"bytes,3,opt,name=judge_trust_level,json=judgeTrustLevel,proto3" json:"judge_trust_level,omitempty"`
// default timelock period for each provision (unix timestamp)
TimelockPeriod uint64 `protobuf:"varint,4,opt,name=timelock_period,json=timelockPeriod,proto3" json:"timelock_period,omitempty"`
+ // default period of the proposal to update the role
+ ProposalPeriod uint64 `protobuf:"varint,5,opt,name=proposal_period,json=proposalPeriod,proto3" json:"proposal_period,omitempty"`
}
func (m *Params) Reset() { *m = Params{} }
@@ -128,6 +130,13 @@ func (m *Params) GetTimelockPeriod() uint64 {
return 0
}
+func (m *Params) GetProposalPeriod() uint64 {
+ if m != nil {
+ return m.ProposalPeriod
+ }
+ return 0
+}
+
// Provision is a struct that represents a provision internally.
type ProvisionData struct {
// the sequence number of the bridge request
@@ -313,51 +322,142 @@ func (m *Fraction) GetDenominator() uint64 {
return 0
}
+type RoleProposal struct {
+ Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
+ // the proposer address
+ Proposer string `protobuf:"bytes,2,opt,name=proposer,proto3" json:"proposer,omitempty"`
+ // the address to update the role
+ Target string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"`
+ // the role to be updated
+ // - unspecified : 0, used to remove the address from a group
+ // - guardian : 1
+ // - operator : 2
+ // - judge : 3
+ Role Role `protobuf:"varint,4,opt,name=role,proto3,enum=lbm.fbridge.v1.Role" json:"role,omitempty"`
+ // the unix timestamp the proposal will be expired (unix timestamp)
+ ExpiredAt uint64 `protobuf:"varint,5,opt,name=expired_at,json=expiredAt,proto3" json:"expired_at,omitempty"`
+}
+
+func (m *RoleProposal) Reset() { *m = RoleProposal{} }
+func (m *RoleProposal) String() string { return proto.CompactTextString(m) }
+func (*RoleProposal) ProtoMessage() {}
+func (*RoleProposal) Descriptor() ([]byte, []int) {
+ return fileDescriptor_62374d75fc6aa1ba, []int{4}
+}
+func (m *RoleProposal) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *RoleProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ if deterministic {
+ return xxx_messageInfo_RoleProposal.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 *RoleProposal) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_RoleProposal.Merge(m, src)
+}
+func (m *RoleProposal) XXX_Size() int {
+ return m.Size()
+}
+func (m *RoleProposal) XXX_DiscardUnknown() {
+ xxx_messageInfo_RoleProposal.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_RoleProposal proto.InternalMessageInfo
+
+func (m *RoleProposal) GetId() uint64 {
+ if m != nil {
+ return m.Id
+ }
+ return 0
+}
+
+func (m *RoleProposal) GetProposer() string {
+ if m != nil {
+ return m.Proposer
+ }
+ return ""
+}
+
+func (m *RoleProposal) GetTarget() string {
+ if m != nil {
+ return m.Target
+ }
+ return ""
+}
+
+func (m *RoleProposal) GetRole() Role {
+ if m != nil {
+ return m.Role
+ }
+ return Role_UNSPECIFIED
+}
+
+func (m *RoleProposal) GetExpiredAt() uint64 {
+ if m != nil {
+ return m.ExpiredAt
+ }
+ return 0
+}
+
func init() {
proto.RegisterEnum("lbm.fbridge.v1.Role", Role_name, Role_value)
proto.RegisterType((*Params)(nil), "lbm.fbridge.v1.Params")
proto.RegisterType((*ProvisionData)(nil), "lbm.fbridge.v1.ProvisionData")
proto.RegisterType((*ProvisionStatus)(nil), "lbm.fbridge.v1.ProvisionStatus")
proto.RegisterType((*Fraction)(nil), "lbm.fbridge.v1.Fraction")
+ proto.RegisterType((*RoleProposal)(nil), "lbm.fbridge.v1.RoleProposal")
}
func init() { proto.RegisterFile("lbm/fbridge/v1/fbridge.proto", fileDescriptor_62374d75fc6aa1ba) }
var fileDescriptor_62374d75fc6aa1ba = []byte{
- // 523 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x93, 0xdf, 0x6e, 0xda, 0x3c,
- 0x18, 0xc6, 0x09, 0x50, 0x44, 0x4c, 0x0b, 0x7c, 0x56, 0xf5, 0x09, 0x55, 0x5d, 0xca, 0x90, 0xa6,
- 0x55, 0x95, 0x96, 0xac, 0xdd, 0xf9, 0x24, 0xca, 0x9f, 0x0a, 0x34, 0xb5, 0xc8, 0x2d, 0x27, 0x3b,
- 0x41, 0x26, 0x31, 0xa9, 0xd7, 0xc4, 0x66, 0xb6, 0x13, 0x6d, 0xbb, 0x89, 0xed, 0x16, 0x76, 0x37,
- 0x3d, 0xec, 0xe1, 0xb4, 0x83, 0x6a, 0x82, 0x1b, 0x99, 0x62, 0x12, 0x06, 0x47, 0x9c, 0xbd, 0xef,
- 0x93, 0x3c, 0x3f, 0x3f, 0xaf, 0x5f, 0x19, 0x1c, 0x07, 0xd3, 0xd0, 0x99, 0x4d, 0x05, 0xf5, 0x7c,
- 0xe2, 0xc4, 0xe7, 0x59, 0x69, 0xcf, 0x05, 0x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35, 0xad,
+ 0xb1, 0xbb, 0xf2, 0xff, 0x2e, 0x99, 0xfb, 0xb0, 0x65, 0x98, 0x49, 0xe9, 0x55, 0xc2, 0x24, 0x0d,
+ 0x3c, 0xa2, 0xf3, 0x75, 0x70, 0x73, 0xa4, 0xaf, 0xb7, 0xdf, 0x43, 0xc5, 0x90, 0x51, 0x13, 0xea,
+ 0x67, 0x47, 0x27, 0x93, 0xe1, 0xfe, 0xe8, 0x60, 0x34, 0x1c, 0xb4, 0x4a, 0x68, 0x09, 0x6a, 0x87,
+ 0x67, 0x7d, 0x3c, 0x18, 0xf5, 0x8f, 0x5a, 0x8e, 0xc9, 0x8e, 0x27, 0x43, 0xdc, 0x3f, 0x3d, 0xc6,
+ 0xad, 0x32, 0x72, 0x61, 0x71, 0x7c, 0x36, 0x38, 0x1c, 0xb6, 0x16, 0xf6, 0xc6, 0xd7, 0x77, 0x6d,
+ 0xe7, 0xe6, 0xae, 0xed, 0xfc, 0xb9, 0x6b, 0x3b, 0xdf, 0xee, 0xdb, 0xa5, 0x9b, 0xfb, 0x76, 0xe9,
+ 0xd7, 0x7d, 0xbb, 0xf4, 0xf1, 0xed, 0x93, 0x7b, 0x72, 0x35, 0xff, 0x03, 0xd8, 0x8d, 0x99, 0x56,
+ 0xed, 0x77, 0xfd, 0xee, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x61, 0x80, 0x22, 0x79, 0x1d, 0x04,
+ 0x00, 0x00,
}
func (m *Params) Marshal() (dAtA []byte, err error) {
@@ -380,6 +480,11 @@ func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) {
_ = i
var l int
_ = l
+ if m.ProposalPeriod != 0 {
+ i = encodeVarintFbridge(dAtA, i, uint64(m.ProposalPeriod))
+ i--
+ dAtA[i] = 0x28
+ }
if m.TimelockPeriod != 0 {
i = encodeVarintFbridge(dAtA, i, uint64(m.TimelockPeriod))
i--
@@ -552,6 +657,58 @@ func (m *Fraction) MarshalToSizedBuffer(dAtA []byte) (int, error) {
return len(dAtA) - i, nil
}
+func (m *RoleProposal) 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 *RoleProposal) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *RoleProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if m.ExpiredAt != 0 {
+ i = encodeVarintFbridge(dAtA, i, uint64(m.ExpiredAt))
+ i--
+ dAtA[i] = 0x28
+ }
+ if m.Role != 0 {
+ i = encodeVarintFbridge(dAtA, i, uint64(m.Role))
+ i--
+ dAtA[i] = 0x20
+ }
+ if len(m.Target) > 0 {
+ i -= len(m.Target)
+ copy(dAtA[i:], m.Target)
+ i = encodeVarintFbridge(dAtA, i, uint64(len(m.Target)))
+ i--
+ dAtA[i] = 0x1a
+ }
+ if len(m.Proposer) > 0 {
+ i -= len(m.Proposer)
+ copy(dAtA[i:], m.Proposer)
+ i = encodeVarintFbridge(dAtA, i, uint64(len(m.Proposer)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if m.Id != 0 {
+ i = encodeVarintFbridge(dAtA, i, uint64(m.Id))
+ i--
+ dAtA[i] = 0x8
+ }
+ return len(dAtA) - i, nil
+}
+
func encodeVarintFbridge(dAtA []byte, offset int, v uint64) int {
offset -= sovFbridge(v)
base := offset
@@ -584,6 +741,9 @@ func (m *Params) Size() (n int) {
if m.TimelockPeriod != 0 {
n += 1 + sovFbridge(uint64(m.TimelockPeriod))
}
+ if m.ProposalPeriod != 0 {
+ n += 1 + sovFbridge(uint64(m.ProposalPeriod))
+ }
return n
}
@@ -642,6 +802,32 @@ func (m *Fraction) Size() (n int) {
return n
}
+func (m *RoleProposal) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if m.Id != 0 {
+ n += 1 + sovFbridge(uint64(m.Id))
+ }
+ l = len(m.Proposer)
+ if l > 0 {
+ n += 1 + l + sovFbridge(uint64(l))
+ }
+ l = len(m.Target)
+ if l > 0 {
+ n += 1 + l + sovFbridge(uint64(l))
+ }
+ if m.Role != 0 {
+ n += 1 + sovFbridge(uint64(m.Role))
+ }
+ if m.ExpiredAt != 0 {
+ n += 1 + sovFbridge(uint64(m.ExpiredAt))
+ }
+ return n
+}
+
func sovFbridge(x uint64) (n int) {
return (math_bits.Len64(x|1) + 6) / 7
}
@@ -804,6 +990,25 @@ func (m *Params) Unmarshal(dAtA []byte) error {
break
}
}
+ case 5:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ProposalPeriod", wireType)
+ }
+ m.ProposalPeriod = 0
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowFbridge
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ m.ProposalPeriod |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
default:
iNdEx = preIndex
skippy, err := skipFbridge(dAtA[iNdEx:])
@@ -1188,6 +1393,177 @@ func (m *Fraction) Unmarshal(dAtA []byte) error {
}
return nil
}
+func (m *RoleProposal) 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 ErrIntOverflowFbridge
+ }
+ 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: RoleProposal: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: RoleProposal: 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 ErrIntOverflowFbridge
+ }
+ 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 ErrIntOverflowFbridge
+ }
+ 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 ErrInvalidLengthFbridge
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthFbridge
+ }
+ 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 Target", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowFbridge
+ }
+ 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 ErrInvalidLengthFbridge
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthFbridge
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Target = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 4:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Role", wireType)
+ }
+ m.Role = 0
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowFbridge
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ m.Role |= Role(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ case 5:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ExpiredAt", wireType)
+ }
+ m.ExpiredAt = 0
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowFbridge
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ m.ExpiredAt |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ default:
+ iNdEx = preIndex
+ skippy, err := skipFbridge(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return ErrInvalidLengthFbridge
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
func skipFbridge(dAtA []byte) (n int, err error) {
l := len(dAtA)
iNdEx := 0
diff --git a/x/fbridge/types/msgs.go b/x/fbridge/types/msgs.go
index c121625868..fce2320548 100644
--- a/x/fbridge/types/msgs.go
+++ b/x/fbridge/types/msgs.go
@@ -10,7 +10,8 @@ var (
_ sdk.Msg = &MsgRemoveProvision{}
_ sdk.Msg = &MsgClaimBatch{}
_ sdk.Msg = &MsgClaim{}
- _ sdk.Msg = &MsgUpdateRole{}
+ _ sdk.Msg = &MsgSuggestRole{}
+ _ sdk.Msg = &MsgAddVoteForRole{}
_ sdk.Msg = &MsgHalt{}
_ sdk.Msg = &MsgResume{}
)
@@ -85,13 +86,23 @@ func (m MsgClaim) GetSignBytes() []byte {
return sdk.MustSortJSON(ModuleCdc.MustMarshalJSON(&m))
}
-func (m MsgUpdateRole) ValidateBasic() error { return nil }
+func (m MsgSuggestRole) ValidateBasic() error { return nil }
-func (m MsgUpdateRole) GetSigners() []sdk.AccAddress {
+func (m MsgSuggestRole) GetSigners() []sdk.AccAddress {
return []sdk.AccAddress{sdk.MustAccAddressFromBech32(m.From)}
}
-func (m MsgUpdateRole) GetSignBytes() []byte {
+func (m MsgSuggestRole) GetSignBytes() []byte {
+ return sdk.MustSortJSON(ModuleCdc.MustMarshalJSON(&m))
+}
+
+func (m MsgAddVoteForRole) ValidateBasic() error { return nil }
+
+func (m MsgAddVoteForRole) GetSigners() []sdk.AccAddress {
+ return []sdk.AccAddress{sdk.MustAccAddressFromBech32(m.From)}
+}
+
+func (m MsgAddVoteForRole) GetSignBytes() []byte {
return sdk.MustSortJSON(ModuleCdc.MustMarshalJSON(&m))
}
diff --git a/x/fbridge/types/query.pb.go b/x/fbridge/types/query.pb.go
index 5c73bf5bb4..d43ba5168b 100644
--- a/x/fbridge/types/query.pb.go
+++ b/x/fbridge/types/query.pb.go
@@ -6,6 +6,7 @@ package types
import (
context "context"
fmt "fmt"
+ query "github.com/Finschia/finschia-sdk/types/query"
_ "github.com/gogo/protobuf/gogoproto"
grpc1 "github.com/gogo/protobuf/grpc"
proto "github.com/gogo/protobuf/proto"
@@ -109,21 +110,21 @@ func (m *QueryParamsResponse) GetParams() Params {
return Params{}
}
-type NextSeqSendRequest struct {
+type QueryNextSeqSendRequest struct {
}
-func (m *NextSeqSendRequest) Reset() { *m = NextSeqSendRequest{} }
-func (m *NextSeqSendRequest) String() string { return proto.CompactTextString(m) }
-func (*NextSeqSendRequest) ProtoMessage() {}
-func (*NextSeqSendRequest) Descriptor() ([]byte, []int) {
+func (m *QueryNextSeqSendRequest) Reset() { *m = QueryNextSeqSendRequest{} }
+func (m *QueryNextSeqSendRequest) String() string { return proto.CompactTextString(m) }
+func (*QueryNextSeqSendRequest) ProtoMessage() {}
+func (*QueryNextSeqSendRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_5e7780f9db9d346e, []int{2}
}
-func (m *NextSeqSendRequest) XXX_Unmarshal(b []byte) error {
+func (m *QueryNextSeqSendRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
-func (m *NextSeqSendRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+func (m *QueryNextSeqSendRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
- return xxx_messageInfo_NextSeqSendRequest.Marshal(b, m, deterministic)
+ return xxx_messageInfo_QueryNextSeqSendRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
@@ -133,34 +134,34 @@ func (m *NextSeqSendRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte,
return b[:n], nil
}
}
-func (m *NextSeqSendRequest) XXX_Merge(src proto.Message) {
- xxx_messageInfo_NextSeqSendRequest.Merge(m, src)
+func (m *QueryNextSeqSendRequest) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_QueryNextSeqSendRequest.Merge(m, src)
}
-func (m *NextSeqSendRequest) XXX_Size() int {
+func (m *QueryNextSeqSendRequest) XXX_Size() int {
return m.Size()
}
-func (m *NextSeqSendRequest) XXX_DiscardUnknown() {
- xxx_messageInfo_NextSeqSendRequest.DiscardUnknown(m)
+func (m *QueryNextSeqSendRequest) XXX_DiscardUnknown() {
+ xxx_messageInfo_QueryNextSeqSendRequest.DiscardUnknown(m)
}
-var xxx_messageInfo_NextSeqSendRequest proto.InternalMessageInfo
+var xxx_messageInfo_QueryNextSeqSendRequest proto.InternalMessageInfo
-type NextSeqSendResponse struct {
+type QueryNextSeqSendResponse struct {
Seq uint64 `protobuf:"varint,1,opt,name=seq,proto3" json:"seq,omitempty"`
}
-func (m *NextSeqSendResponse) Reset() { *m = NextSeqSendResponse{} }
-func (m *NextSeqSendResponse) String() string { return proto.CompactTextString(m) }
-func (*NextSeqSendResponse) ProtoMessage() {}
-func (*NextSeqSendResponse) Descriptor() ([]byte, []int) {
+func (m *QueryNextSeqSendResponse) Reset() { *m = QueryNextSeqSendResponse{} }
+func (m *QueryNextSeqSendResponse) String() string { return proto.CompactTextString(m) }
+func (*QueryNextSeqSendResponse) ProtoMessage() {}
+func (*QueryNextSeqSendResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_5e7780f9db9d346e, []int{3}
}
-func (m *NextSeqSendResponse) XXX_Unmarshal(b []byte) error {
+func (m *QueryNextSeqSendResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
-func (m *NextSeqSendResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+func (m *QueryNextSeqSendResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
- return xxx_messageInfo_NextSeqSendResponse.Marshal(b, m, deterministic)
+ return xxx_messageInfo_QueryNextSeqSendResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
@@ -170,42 +171,42 @@ func (m *NextSeqSendResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte,
return b[:n], nil
}
}
-func (m *NextSeqSendResponse) XXX_Merge(src proto.Message) {
- xxx_messageInfo_NextSeqSendResponse.Merge(m, src)
+func (m *QueryNextSeqSendResponse) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_QueryNextSeqSendResponse.Merge(m, src)
}
-func (m *NextSeqSendResponse) XXX_Size() int {
+func (m *QueryNextSeqSendResponse) XXX_Size() int {
return m.Size()
}
-func (m *NextSeqSendResponse) XXX_DiscardUnknown() {
- xxx_messageInfo_NextSeqSendResponse.DiscardUnknown(m)
+func (m *QueryNextSeqSendResponse) XXX_DiscardUnknown() {
+ xxx_messageInfo_QueryNextSeqSendResponse.DiscardUnknown(m)
}
-var xxx_messageInfo_NextSeqSendResponse proto.InternalMessageInfo
+var xxx_messageInfo_QueryNextSeqSendResponse proto.InternalMessageInfo
-func (m *NextSeqSendResponse) GetSeq() uint64 {
+func (m *QueryNextSeqSendResponse) GetSeq() uint64 {
if m != nil {
return m.Seq
}
return 0
}
-type GreatestSeqByOperatorRequest struct {
+type QueryGreatestSeqByOperatorRequest struct {
// the address of the operator
Operator string `protobuf:"bytes,1,opt,name=operator,proto3" json:"operator,omitempty"`
}
-func (m *GreatestSeqByOperatorRequest) Reset() { *m = GreatestSeqByOperatorRequest{} }
-func (m *GreatestSeqByOperatorRequest) String() string { return proto.CompactTextString(m) }
-func (*GreatestSeqByOperatorRequest) ProtoMessage() {}
-func (*GreatestSeqByOperatorRequest) Descriptor() ([]byte, []int) {
+func (m *QueryGreatestSeqByOperatorRequest) Reset() { *m = QueryGreatestSeqByOperatorRequest{} }
+func (m *QueryGreatestSeqByOperatorRequest) String() string { return proto.CompactTextString(m) }
+func (*QueryGreatestSeqByOperatorRequest) ProtoMessage() {}
+func (*QueryGreatestSeqByOperatorRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_5e7780f9db9d346e, []int{4}
}
-func (m *GreatestSeqByOperatorRequest) XXX_Unmarshal(b []byte) error {
+func (m *QueryGreatestSeqByOperatorRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
-func (m *GreatestSeqByOperatorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+func (m *QueryGreatestSeqByOperatorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
- return xxx_messageInfo_GreatestSeqByOperatorRequest.Marshal(b, m, deterministic)
+ return xxx_messageInfo_QueryGreatestSeqByOperatorRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
@@ -215,41 +216,41 @@ func (m *GreatestSeqByOperatorRequest) XXX_Marshal(b []byte, deterministic bool)
return b[:n], nil
}
}
-func (m *GreatestSeqByOperatorRequest) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GreatestSeqByOperatorRequest.Merge(m, src)
+func (m *QueryGreatestSeqByOperatorRequest) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_QueryGreatestSeqByOperatorRequest.Merge(m, src)
}
-func (m *GreatestSeqByOperatorRequest) XXX_Size() int {
+func (m *QueryGreatestSeqByOperatorRequest) XXX_Size() int {
return m.Size()
}
-func (m *GreatestSeqByOperatorRequest) XXX_DiscardUnknown() {
- xxx_messageInfo_GreatestSeqByOperatorRequest.DiscardUnknown(m)
+func (m *QueryGreatestSeqByOperatorRequest) XXX_DiscardUnknown() {
+ xxx_messageInfo_QueryGreatestSeqByOperatorRequest.DiscardUnknown(m)
}
-var xxx_messageInfo_GreatestSeqByOperatorRequest proto.InternalMessageInfo
+var xxx_messageInfo_QueryGreatestSeqByOperatorRequest proto.InternalMessageInfo
-func (m *GreatestSeqByOperatorRequest) GetOperator() string {
+func (m *QueryGreatestSeqByOperatorRequest) GetOperator() string {
if m != nil {
return m.Operator
}
return ""
}
-type GreatestSeqByOperatorResponse struct {
+type QueryGreatestSeqByOperatorResponse struct {
Seq uint64 `protobuf:"varint,1,opt,name=seq,proto3" json:"seq,omitempty"`
}
-func (m *GreatestSeqByOperatorResponse) Reset() { *m = GreatestSeqByOperatorResponse{} }
-func (m *GreatestSeqByOperatorResponse) String() string { return proto.CompactTextString(m) }
-func (*GreatestSeqByOperatorResponse) ProtoMessage() {}
-func (*GreatestSeqByOperatorResponse) Descriptor() ([]byte, []int) {
+func (m *QueryGreatestSeqByOperatorResponse) Reset() { *m = QueryGreatestSeqByOperatorResponse{} }
+func (m *QueryGreatestSeqByOperatorResponse) String() string { return proto.CompactTextString(m) }
+func (*QueryGreatestSeqByOperatorResponse) ProtoMessage() {}
+func (*QueryGreatestSeqByOperatorResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_5e7780f9db9d346e, []int{5}
}
-func (m *GreatestSeqByOperatorResponse) XXX_Unmarshal(b []byte) error {
+func (m *QueryGreatestSeqByOperatorResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
-func (m *GreatestSeqByOperatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+func (m *QueryGreatestSeqByOperatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
- return xxx_messageInfo_GreatestSeqByOperatorResponse.Marshal(b, m, deterministic)
+ return xxx_messageInfo_QueryGreatestSeqByOperatorResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
@@ -259,42 +260,44 @@ func (m *GreatestSeqByOperatorResponse) XXX_Marshal(b []byte, deterministic bool
return b[:n], nil
}
}
-func (m *GreatestSeqByOperatorResponse) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GreatestSeqByOperatorResponse.Merge(m, src)
+func (m *QueryGreatestSeqByOperatorResponse) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_QueryGreatestSeqByOperatorResponse.Merge(m, src)
}
-func (m *GreatestSeqByOperatorResponse) XXX_Size() int {
+func (m *QueryGreatestSeqByOperatorResponse) XXX_Size() int {
return m.Size()
}
-func (m *GreatestSeqByOperatorResponse) XXX_DiscardUnknown() {
- xxx_messageInfo_GreatestSeqByOperatorResponse.DiscardUnknown(m)
+func (m *QueryGreatestSeqByOperatorResponse) XXX_DiscardUnknown() {
+ xxx_messageInfo_QueryGreatestSeqByOperatorResponse.DiscardUnknown(m)
}
-var xxx_messageInfo_GreatestSeqByOperatorResponse proto.InternalMessageInfo
+var xxx_messageInfo_QueryGreatestSeqByOperatorResponse proto.InternalMessageInfo
-func (m *GreatestSeqByOperatorResponse) GetSeq() uint64 {
+func (m *QueryGreatestSeqByOperatorResponse) GetSeq() uint64 {
if m != nil {
return m.Seq
}
return 0
}
-type GreatestConsecutiveConfirmedSeqRequest struct {
+type QueryGreatestConsecutiveConfirmedSeqRequest struct {
}
-func (m *GreatestConsecutiveConfirmedSeqRequest) Reset() {
- *m = GreatestConsecutiveConfirmedSeqRequest{}
+func (m *QueryGreatestConsecutiveConfirmedSeqRequest) Reset() {
+ *m = QueryGreatestConsecutiveConfirmedSeqRequest{}
}
-func (m *GreatestConsecutiveConfirmedSeqRequest) String() string { return proto.CompactTextString(m) }
-func (*GreatestConsecutiveConfirmedSeqRequest) ProtoMessage() {}
-func (*GreatestConsecutiveConfirmedSeqRequest) Descriptor() ([]byte, []int) {
+func (m *QueryGreatestConsecutiveConfirmedSeqRequest) String() string {
+ return proto.CompactTextString(m)
+}
+func (*QueryGreatestConsecutiveConfirmedSeqRequest) ProtoMessage() {}
+func (*QueryGreatestConsecutiveConfirmedSeqRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_5e7780f9db9d346e, []int{6}
}
-func (m *GreatestConsecutiveConfirmedSeqRequest) XXX_Unmarshal(b []byte) error {
+func (m *QueryGreatestConsecutiveConfirmedSeqRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
-func (m *GreatestConsecutiveConfirmedSeqRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+func (m *QueryGreatestConsecutiveConfirmedSeqRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
- return xxx_messageInfo_GreatestConsecutiveConfirmedSeqRequest.Marshal(b, m, deterministic)
+ return xxx_messageInfo_QueryGreatestConsecutiveConfirmedSeqRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
@@ -304,36 +307,38 @@ func (m *GreatestConsecutiveConfirmedSeqRequest) XXX_Marshal(b []byte, determini
return b[:n], nil
}
}
-func (m *GreatestConsecutiveConfirmedSeqRequest) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GreatestConsecutiveConfirmedSeqRequest.Merge(m, src)
+func (m *QueryGreatestConsecutiveConfirmedSeqRequest) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_QueryGreatestConsecutiveConfirmedSeqRequest.Merge(m, src)
}
-func (m *GreatestConsecutiveConfirmedSeqRequest) XXX_Size() int {
+func (m *QueryGreatestConsecutiveConfirmedSeqRequest) XXX_Size() int {
return m.Size()
}
-func (m *GreatestConsecutiveConfirmedSeqRequest) XXX_DiscardUnknown() {
- xxx_messageInfo_GreatestConsecutiveConfirmedSeqRequest.DiscardUnknown(m)
+func (m *QueryGreatestConsecutiveConfirmedSeqRequest) XXX_DiscardUnknown() {
+ xxx_messageInfo_QueryGreatestConsecutiveConfirmedSeqRequest.DiscardUnknown(m)
}
-var xxx_messageInfo_GreatestConsecutiveConfirmedSeqRequest proto.InternalMessageInfo
+var xxx_messageInfo_QueryGreatestConsecutiveConfirmedSeqRequest proto.InternalMessageInfo
-type GreatestConsecutiveConfirmedSeqResponse struct {
+type QueryGreatestConsecutiveConfirmedSeqResponse struct {
Seq uint64 `protobuf:"varint,1,opt,name=seq,proto3" json:"seq,omitempty"`
}
-func (m *GreatestConsecutiveConfirmedSeqResponse) Reset() {
- *m = GreatestConsecutiveConfirmedSeqResponse{}
+func (m *QueryGreatestConsecutiveConfirmedSeqResponse) Reset() {
+ *m = QueryGreatestConsecutiveConfirmedSeqResponse{}
+}
+func (m *QueryGreatestConsecutiveConfirmedSeqResponse) String() string {
+ return proto.CompactTextString(m)
}
-func (m *GreatestConsecutiveConfirmedSeqResponse) String() string { return proto.CompactTextString(m) }
-func (*GreatestConsecutiveConfirmedSeqResponse) ProtoMessage() {}
-func (*GreatestConsecutiveConfirmedSeqResponse) Descriptor() ([]byte, []int) {
+func (*QueryGreatestConsecutiveConfirmedSeqResponse) ProtoMessage() {}
+func (*QueryGreatestConsecutiveConfirmedSeqResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_5e7780f9db9d346e, []int{7}
}
-func (m *GreatestConsecutiveConfirmedSeqResponse) XXX_Unmarshal(b []byte) error {
+func (m *QueryGreatestConsecutiveConfirmedSeqResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
-func (m *GreatestConsecutiveConfirmedSeqResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+func (m *QueryGreatestConsecutiveConfirmedSeqResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
- return xxx_messageInfo_GreatestConsecutiveConfirmedSeqResponse.Marshal(b, m, deterministic)
+ return xxx_messageInfo_QueryGreatestConsecutiveConfirmedSeqResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
@@ -343,44 +348,44 @@ func (m *GreatestConsecutiveConfirmedSeqResponse) XXX_Marshal(b []byte, determin
return b[:n], nil
}
}
-func (m *GreatestConsecutiveConfirmedSeqResponse) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GreatestConsecutiveConfirmedSeqResponse.Merge(m, src)
+func (m *QueryGreatestConsecutiveConfirmedSeqResponse) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_QueryGreatestConsecutiveConfirmedSeqResponse.Merge(m, src)
}
-func (m *GreatestConsecutiveConfirmedSeqResponse) XXX_Size() int {
+func (m *QueryGreatestConsecutiveConfirmedSeqResponse) XXX_Size() int {
return m.Size()
}
-func (m *GreatestConsecutiveConfirmedSeqResponse) XXX_DiscardUnknown() {
- xxx_messageInfo_GreatestConsecutiveConfirmedSeqResponse.DiscardUnknown(m)
+func (m *QueryGreatestConsecutiveConfirmedSeqResponse) XXX_DiscardUnknown() {
+ xxx_messageInfo_QueryGreatestConsecutiveConfirmedSeqResponse.DiscardUnknown(m)
}
-var xxx_messageInfo_GreatestConsecutiveConfirmedSeqResponse proto.InternalMessageInfo
+var xxx_messageInfo_QueryGreatestConsecutiveConfirmedSeqResponse proto.InternalMessageInfo
-func (m *GreatestConsecutiveConfirmedSeqResponse) GetSeq() uint64 {
+func (m *QueryGreatestConsecutiveConfirmedSeqResponse) GetSeq() uint64 {
if m != nil {
return m.Seq
}
return 0
}
-type SubmittedProvisionRequest struct {
+type QuerySubmittedProvisionRequest struct {
// the address of the operator
Operator string `protobuf:"bytes,1,opt,name=operator,proto3" json:"operator,omitempty"`
// the sequence number of the bridge request
Seq uint64 `protobuf:"varint,2,opt,name=seq,proto3" json:"seq,omitempty"`
}
-func (m *SubmittedProvisionRequest) Reset() { *m = SubmittedProvisionRequest{} }
-func (m *SubmittedProvisionRequest) String() string { return proto.CompactTextString(m) }
-func (*SubmittedProvisionRequest) ProtoMessage() {}
-func (*SubmittedProvisionRequest) Descriptor() ([]byte, []int) {
+func (m *QuerySubmittedProvisionRequest) Reset() { *m = QuerySubmittedProvisionRequest{} }
+func (m *QuerySubmittedProvisionRequest) String() string { return proto.CompactTextString(m) }
+func (*QuerySubmittedProvisionRequest) ProtoMessage() {}
+func (*QuerySubmittedProvisionRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_5e7780f9db9d346e, []int{8}
}
-func (m *SubmittedProvisionRequest) XXX_Unmarshal(b []byte) error {
+func (m *QuerySubmittedProvisionRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
-func (m *SubmittedProvisionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+func (m *QuerySubmittedProvisionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
- return xxx_messageInfo_SubmittedProvisionRequest.Marshal(b, m, deterministic)
+ return xxx_messageInfo_QuerySubmittedProvisionRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
@@ -390,49 +395,49 @@ func (m *SubmittedProvisionRequest) XXX_Marshal(b []byte, deterministic bool) ([
return b[:n], nil
}
}
-func (m *SubmittedProvisionRequest) XXX_Merge(src proto.Message) {
- xxx_messageInfo_SubmittedProvisionRequest.Merge(m, src)
+func (m *QuerySubmittedProvisionRequest) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_QuerySubmittedProvisionRequest.Merge(m, src)
}
-func (m *SubmittedProvisionRequest) XXX_Size() int {
+func (m *QuerySubmittedProvisionRequest) XXX_Size() int {
return m.Size()
}
-func (m *SubmittedProvisionRequest) XXX_DiscardUnknown() {
- xxx_messageInfo_SubmittedProvisionRequest.DiscardUnknown(m)
+func (m *QuerySubmittedProvisionRequest) XXX_DiscardUnknown() {
+ xxx_messageInfo_QuerySubmittedProvisionRequest.DiscardUnknown(m)
}
-var xxx_messageInfo_SubmittedProvisionRequest proto.InternalMessageInfo
+var xxx_messageInfo_QuerySubmittedProvisionRequest proto.InternalMessageInfo
-func (m *SubmittedProvisionRequest) GetOperator() string {
+func (m *QuerySubmittedProvisionRequest) GetOperator() string {
if m != nil {
return m.Operator
}
return ""
}
-func (m *SubmittedProvisionRequest) GetSeq() uint64 {
+func (m *QuerySubmittedProvisionRequest) GetSeq() uint64 {
if m != nil {
return m.Seq
}
return 0
}
-type SubmittedProvisionResponse struct {
+type QuerySubmittedProvisionResponse struct {
Data ProvisionData `protobuf:"bytes,1,opt,name=data,proto3" json:"data"`
Status ProvisionStatus `protobuf:"bytes,2,opt,name=status,proto3" json:"status"`
}
-func (m *SubmittedProvisionResponse) Reset() { *m = SubmittedProvisionResponse{} }
-func (m *SubmittedProvisionResponse) String() string { return proto.CompactTextString(m) }
-func (*SubmittedProvisionResponse) ProtoMessage() {}
-func (*SubmittedProvisionResponse) Descriptor() ([]byte, []int) {
+func (m *QuerySubmittedProvisionResponse) Reset() { *m = QuerySubmittedProvisionResponse{} }
+func (m *QuerySubmittedProvisionResponse) String() string { return proto.CompactTextString(m) }
+func (*QuerySubmittedProvisionResponse) ProtoMessage() {}
+func (*QuerySubmittedProvisionResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_5e7780f9db9d346e, []int{9}
}
-func (m *SubmittedProvisionResponse) XXX_Unmarshal(b []byte) error {
+func (m *QuerySubmittedProvisionResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
-func (m *SubmittedProvisionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+func (m *QuerySubmittedProvisionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
- return xxx_messageInfo_SubmittedProvisionResponse.Marshal(b, m, deterministic)
+ return xxx_messageInfo_QuerySubmittedProvisionResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
@@ -442,51 +447,51 @@ func (m *SubmittedProvisionResponse) XXX_Marshal(b []byte, deterministic bool) (
return b[:n], nil
}
}
-func (m *SubmittedProvisionResponse) XXX_Merge(src proto.Message) {
- xxx_messageInfo_SubmittedProvisionResponse.Merge(m, src)
+func (m *QuerySubmittedProvisionResponse) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_QuerySubmittedProvisionResponse.Merge(m, src)
}
-func (m *SubmittedProvisionResponse) XXX_Size() int {
+func (m *QuerySubmittedProvisionResponse) XXX_Size() int {
return m.Size()
}
-func (m *SubmittedProvisionResponse) XXX_DiscardUnknown() {
- xxx_messageInfo_SubmittedProvisionResponse.DiscardUnknown(m)
+func (m *QuerySubmittedProvisionResponse) XXX_DiscardUnknown() {
+ xxx_messageInfo_QuerySubmittedProvisionResponse.DiscardUnknown(m)
}
-var xxx_messageInfo_SubmittedProvisionResponse proto.InternalMessageInfo
+var xxx_messageInfo_QuerySubmittedProvisionResponse proto.InternalMessageInfo
-func (m *SubmittedProvisionResponse) GetData() ProvisionData {
+func (m *QuerySubmittedProvisionResponse) GetData() ProvisionData {
if m != nil {
return m.Data
}
return ProvisionData{}
}
-func (m *SubmittedProvisionResponse) GetStatus() ProvisionStatus {
+func (m *QuerySubmittedProvisionResponse) GetStatus() ProvisionStatus {
if m != nil {
return m.Status
}
return ProvisionStatus{}
}
-type NeededSubmissionSeqsRequest struct {
+type QueryNeededSubmissionSeqsRequest struct {
// the address of the operator
Operator string `protobuf:"bytes,1,opt,name=operator,proto3" json:"operator,omitempty"`
// range specifies the size of the range to search
Range uint64 `protobuf:"varint,2,opt,name=range,proto3" json:"range,omitempty"`
}
-func (m *NeededSubmissionSeqsRequest) Reset() { *m = NeededSubmissionSeqsRequest{} }
-func (m *NeededSubmissionSeqsRequest) String() string { return proto.CompactTextString(m) }
-func (*NeededSubmissionSeqsRequest) ProtoMessage() {}
-func (*NeededSubmissionSeqsRequest) Descriptor() ([]byte, []int) {
+func (m *QueryNeededSubmissionSeqsRequest) Reset() { *m = QueryNeededSubmissionSeqsRequest{} }
+func (m *QueryNeededSubmissionSeqsRequest) String() string { return proto.CompactTextString(m) }
+func (*QueryNeededSubmissionSeqsRequest) ProtoMessage() {}
+func (*QueryNeededSubmissionSeqsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_5e7780f9db9d346e, []int{10}
}
-func (m *NeededSubmissionSeqsRequest) XXX_Unmarshal(b []byte) error {
+func (m *QueryNeededSubmissionSeqsRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
-func (m *NeededSubmissionSeqsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+func (m *QueryNeededSubmissionSeqsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
- return xxx_messageInfo_NeededSubmissionSeqsRequest.Marshal(b, m, deterministic)
+ return xxx_messageInfo_QueryNeededSubmissionSeqsRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
@@ -496,48 +501,48 @@ func (m *NeededSubmissionSeqsRequest) XXX_Marshal(b []byte, deterministic bool)
return b[:n], nil
}
}
-func (m *NeededSubmissionSeqsRequest) XXX_Merge(src proto.Message) {
- xxx_messageInfo_NeededSubmissionSeqsRequest.Merge(m, src)
+func (m *QueryNeededSubmissionSeqsRequest) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_QueryNeededSubmissionSeqsRequest.Merge(m, src)
}
-func (m *NeededSubmissionSeqsRequest) XXX_Size() int {
+func (m *QueryNeededSubmissionSeqsRequest) XXX_Size() int {
return m.Size()
}
-func (m *NeededSubmissionSeqsRequest) XXX_DiscardUnknown() {
- xxx_messageInfo_NeededSubmissionSeqsRequest.DiscardUnknown(m)
+func (m *QueryNeededSubmissionSeqsRequest) XXX_DiscardUnknown() {
+ xxx_messageInfo_QueryNeededSubmissionSeqsRequest.DiscardUnknown(m)
}
-var xxx_messageInfo_NeededSubmissionSeqsRequest proto.InternalMessageInfo
+var xxx_messageInfo_QueryNeededSubmissionSeqsRequest proto.InternalMessageInfo
-func (m *NeededSubmissionSeqsRequest) GetOperator() string {
+func (m *QueryNeededSubmissionSeqsRequest) GetOperator() string {
if m != nil {
return m.Operator
}
return ""
}
-func (m *NeededSubmissionSeqsRequest) GetRange() uint64 {
+func (m *QueryNeededSubmissionSeqsRequest) GetRange() uint64 {
if m != nil {
return m.Range
}
return 0
}
-type NeededSubmissionSeqsResponse struct {
+type QueryNeededSubmissionSeqsResponse struct {
Seqs []uint64 `protobuf:"varint,1,rep,packed,name=seqs,proto3" json:"seqs,omitempty"`
}
-func (m *NeededSubmissionSeqsResponse) Reset() { *m = NeededSubmissionSeqsResponse{} }
-func (m *NeededSubmissionSeqsResponse) String() string { return proto.CompactTextString(m) }
-func (*NeededSubmissionSeqsResponse) ProtoMessage() {}
-func (*NeededSubmissionSeqsResponse) Descriptor() ([]byte, []int) {
+func (m *QueryNeededSubmissionSeqsResponse) Reset() { *m = QueryNeededSubmissionSeqsResponse{} }
+func (m *QueryNeededSubmissionSeqsResponse) String() string { return proto.CompactTextString(m) }
+func (*QueryNeededSubmissionSeqsResponse) ProtoMessage() {}
+func (*QueryNeededSubmissionSeqsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_5e7780f9db9d346e, []int{11}
}
-func (m *NeededSubmissionSeqsResponse) XXX_Unmarshal(b []byte) error {
+func (m *QueryNeededSubmissionSeqsResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
-func (m *NeededSubmissionSeqsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+func (m *QueryNeededSubmissionSeqsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
- return xxx_messageInfo_NeededSubmissionSeqsResponse.Marshal(b, m, deterministic)
+ return xxx_messageInfo_QueryNeededSubmissionSeqsResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
@@ -547,42 +552,42 @@ func (m *NeededSubmissionSeqsResponse) XXX_Marshal(b []byte, deterministic bool)
return b[:n], nil
}
}
-func (m *NeededSubmissionSeqsResponse) XXX_Merge(src proto.Message) {
- xxx_messageInfo_NeededSubmissionSeqsResponse.Merge(m, src)
+func (m *QueryNeededSubmissionSeqsResponse) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_QueryNeededSubmissionSeqsResponse.Merge(m, src)
}
-func (m *NeededSubmissionSeqsResponse) XXX_Size() int {
+func (m *QueryNeededSubmissionSeqsResponse) XXX_Size() int {
return m.Size()
}
-func (m *NeededSubmissionSeqsResponse) XXX_DiscardUnknown() {
- xxx_messageInfo_NeededSubmissionSeqsResponse.DiscardUnknown(m)
+func (m *QueryNeededSubmissionSeqsResponse) XXX_DiscardUnknown() {
+ xxx_messageInfo_QueryNeededSubmissionSeqsResponse.DiscardUnknown(m)
}
-var xxx_messageInfo_NeededSubmissionSeqsResponse proto.InternalMessageInfo
+var xxx_messageInfo_QueryNeededSubmissionSeqsResponse proto.InternalMessageInfo
-func (m *NeededSubmissionSeqsResponse) GetSeqs() []uint64 {
+func (m *QueryNeededSubmissionSeqsResponse) GetSeqs() []uint64 {
if m != nil {
return m.Seqs
}
return nil
}
-type ConfirmedProvisionRequest struct {
+type QueryConfirmedProvisionRequest struct {
// the sequence number of the bridge request
Seq uint64 `protobuf:"varint,1,opt,name=seq,proto3" json:"seq,omitempty"`
}
-func (m *ConfirmedProvisionRequest) Reset() { *m = ConfirmedProvisionRequest{} }
-func (m *ConfirmedProvisionRequest) String() string { return proto.CompactTextString(m) }
-func (*ConfirmedProvisionRequest) ProtoMessage() {}
-func (*ConfirmedProvisionRequest) Descriptor() ([]byte, []int) {
+func (m *QueryConfirmedProvisionRequest) Reset() { *m = QueryConfirmedProvisionRequest{} }
+func (m *QueryConfirmedProvisionRequest) String() string { return proto.CompactTextString(m) }
+func (*QueryConfirmedProvisionRequest) ProtoMessage() {}
+func (*QueryConfirmedProvisionRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_5e7780f9db9d346e, []int{12}
}
-func (m *ConfirmedProvisionRequest) XXX_Unmarshal(b []byte) error {
+func (m *QueryConfirmedProvisionRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
-func (m *ConfirmedProvisionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+func (m *QueryConfirmedProvisionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
- return xxx_messageInfo_ConfirmedProvisionRequest.Marshal(b, m, deterministic)
+ return xxx_messageInfo_QueryConfirmedProvisionRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
@@ -592,42 +597,42 @@ func (m *ConfirmedProvisionRequest) XXX_Marshal(b []byte, deterministic bool) ([
return b[:n], nil
}
}
-func (m *ConfirmedProvisionRequest) XXX_Merge(src proto.Message) {
- xxx_messageInfo_ConfirmedProvisionRequest.Merge(m, src)
+func (m *QueryConfirmedProvisionRequest) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_QueryConfirmedProvisionRequest.Merge(m, src)
}
-func (m *ConfirmedProvisionRequest) XXX_Size() int {
+func (m *QueryConfirmedProvisionRequest) XXX_Size() int {
return m.Size()
}
-func (m *ConfirmedProvisionRequest) XXX_DiscardUnknown() {
- xxx_messageInfo_ConfirmedProvisionRequest.DiscardUnknown(m)
+func (m *QueryConfirmedProvisionRequest) XXX_DiscardUnknown() {
+ xxx_messageInfo_QueryConfirmedProvisionRequest.DiscardUnknown(m)
}
-var xxx_messageInfo_ConfirmedProvisionRequest proto.InternalMessageInfo
+var xxx_messageInfo_QueryConfirmedProvisionRequest proto.InternalMessageInfo
-func (m *ConfirmedProvisionRequest) GetSeq() uint64 {
+func (m *QueryConfirmedProvisionRequest) GetSeq() uint64 {
if m != nil {
return m.Seq
}
return 0
}
-type ConfirmedProvisionResponse struct {
+type QueryConfirmedProvisionResponse struct {
Data ProvisionData `protobuf:"bytes,1,opt,name=data,proto3" json:"data"`
Status ProvisionStatus `protobuf:"bytes,2,opt,name=status,proto3" json:"status"`
}
-func (m *ConfirmedProvisionResponse) Reset() { *m = ConfirmedProvisionResponse{} }
-func (m *ConfirmedProvisionResponse) String() string { return proto.CompactTextString(m) }
-func (*ConfirmedProvisionResponse) ProtoMessage() {}
-func (*ConfirmedProvisionResponse) Descriptor() ([]byte, []int) {
+func (m *QueryConfirmedProvisionResponse) Reset() { *m = QueryConfirmedProvisionResponse{} }
+func (m *QueryConfirmedProvisionResponse) String() string { return proto.CompactTextString(m) }
+func (*QueryConfirmedProvisionResponse) ProtoMessage() {}
+func (*QueryConfirmedProvisionResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_5e7780f9db9d346e, []int{13}
}
-func (m *ConfirmedProvisionResponse) XXX_Unmarshal(b []byte) error {
+func (m *QueryConfirmedProvisionResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
-func (m *ConfirmedProvisionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+func (m *QueryConfirmedProvisionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
- return xxx_messageInfo_ConfirmedProvisionResponse.Marshal(b, m, deterministic)
+ return xxx_messageInfo_QueryConfirmedProvisionResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
@@ -637,49 +642,49 @@ func (m *ConfirmedProvisionResponse) XXX_Marshal(b []byte, deterministic bool) (
return b[:n], nil
}
}
-func (m *ConfirmedProvisionResponse) XXX_Merge(src proto.Message) {
- xxx_messageInfo_ConfirmedProvisionResponse.Merge(m, src)
+func (m *QueryConfirmedProvisionResponse) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_QueryConfirmedProvisionResponse.Merge(m, src)
}
-func (m *ConfirmedProvisionResponse) XXX_Size() int {
+func (m *QueryConfirmedProvisionResponse) XXX_Size() int {
return m.Size()
}
-func (m *ConfirmedProvisionResponse) XXX_DiscardUnknown() {
- xxx_messageInfo_ConfirmedProvisionResponse.DiscardUnknown(m)
+func (m *QueryConfirmedProvisionResponse) XXX_DiscardUnknown() {
+ xxx_messageInfo_QueryConfirmedProvisionResponse.DiscardUnknown(m)
}
-var xxx_messageInfo_ConfirmedProvisionResponse proto.InternalMessageInfo
+var xxx_messageInfo_QueryConfirmedProvisionResponse proto.InternalMessageInfo
-func (m *ConfirmedProvisionResponse) GetData() ProvisionData {
+func (m *QueryConfirmedProvisionResponse) GetData() ProvisionData {
if m != nil {
return m.Data
}
return ProvisionData{}
}
-func (m *ConfirmedProvisionResponse) GetStatus() ProvisionStatus {
+func (m *QueryConfirmedProvisionResponse) GetStatus() ProvisionStatus {
if m != nil {
return m.Status
}
return ProvisionStatus{}
}
-type CommitmentsRequest struct {
+type QueryCommitmentsRequest struct {
// the sequence number of the bridge request
Seq uint64 `protobuf:"varint,1,opt,name=seq,proto3" json:"seq,omitempty"`
}
-func (m *CommitmentsRequest) Reset() { *m = CommitmentsRequest{} }
-func (m *CommitmentsRequest) String() string { return proto.CompactTextString(m) }
-func (*CommitmentsRequest) ProtoMessage() {}
-func (*CommitmentsRequest) Descriptor() ([]byte, []int) {
+func (m *QueryCommitmentsRequest) Reset() { *m = QueryCommitmentsRequest{} }
+func (m *QueryCommitmentsRequest) String() string { return proto.CompactTextString(m) }
+func (*QueryCommitmentsRequest) ProtoMessage() {}
+func (*QueryCommitmentsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_5e7780f9db9d346e, []int{14}
}
-func (m *CommitmentsRequest) XXX_Unmarshal(b []byte) error {
+func (m *QueryCommitmentsRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
-func (m *CommitmentsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+func (m *QueryCommitmentsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
- return xxx_messageInfo_CommitmentsRequest.Marshal(b, m, deterministic)
+ return xxx_messageInfo_QueryCommitmentsRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
@@ -689,41 +694,41 @@ func (m *CommitmentsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte,
return b[:n], nil
}
}
-func (m *CommitmentsRequest) XXX_Merge(src proto.Message) {
- xxx_messageInfo_CommitmentsRequest.Merge(m, src)
+func (m *QueryCommitmentsRequest) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_QueryCommitmentsRequest.Merge(m, src)
}
-func (m *CommitmentsRequest) XXX_Size() int {
+func (m *QueryCommitmentsRequest) XXX_Size() int {
return m.Size()
}
-func (m *CommitmentsRequest) XXX_DiscardUnknown() {
- xxx_messageInfo_CommitmentsRequest.DiscardUnknown(m)
+func (m *QueryCommitmentsRequest) XXX_DiscardUnknown() {
+ xxx_messageInfo_QueryCommitmentsRequest.DiscardUnknown(m)
}
-var xxx_messageInfo_CommitmentsRequest proto.InternalMessageInfo
+var xxx_messageInfo_QueryCommitmentsRequest proto.InternalMessageInfo
-func (m *CommitmentsRequest) GetSeq() uint64 {
+func (m *QueryCommitmentsRequest) GetSeq() uint64 {
if m != nil {
return m.Seq
}
return 0
}
-type CommitmentsResponse struct {
+type QueryCommitmentsResponse struct {
Commitments []string `protobuf:"bytes,1,rep,name=commitments,proto3" json:"commitments,omitempty"`
}
-func (m *CommitmentsResponse) Reset() { *m = CommitmentsResponse{} }
-func (m *CommitmentsResponse) String() string { return proto.CompactTextString(m) }
-func (*CommitmentsResponse) ProtoMessage() {}
-func (*CommitmentsResponse) Descriptor() ([]byte, []int) {
+func (m *QueryCommitmentsResponse) Reset() { *m = QueryCommitmentsResponse{} }
+func (m *QueryCommitmentsResponse) String() string { return proto.CompactTextString(m) }
+func (*QueryCommitmentsResponse) ProtoMessage() {}
+func (*QueryCommitmentsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_5e7780f9db9d346e, []int{15}
}
-func (m *CommitmentsResponse) XXX_Unmarshal(b []byte) error {
+func (m *QueryCommitmentsResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
-func (m *CommitmentsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+func (m *QueryCommitmentsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
- return xxx_messageInfo_CommitmentsResponse.Marshal(b, m, deterministic)
+ return xxx_messageInfo_QueryCommitmentsResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
@@ -733,40 +738,40 @@ func (m *CommitmentsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte,
return b[:n], nil
}
}
-func (m *CommitmentsResponse) XXX_Merge(src proto.Message) {
- xxx_messageInfo_CommitmentsResponse.Merge(m, src)
+func (m *QueryCommitmentsResponse) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_QueryCommitmentsResponse.Merge(m, src)
}
-func (m *CommitmentsResponse) XXX_Size() int {
+func (m *QueryCommitmentsResponse) XXX_Size() int {
return m.Size()
}
-func (m *CommitmentsResponse) XXX_DiscardUnknown() {
- xxx_messageInfo_CommitmentsResponse.DiscardUnknown(m)
+func (m *QueryCommitmentsResponse) XXX_DiscardUnknown() {
+ xxx_messageInfo_QueryCommitmentsResponse.DiscardUnknown(m)
}
-var xxx_messageInfo_CommitmentsResponse proto.InternalMessageInfo
+var xxx_messageInfo_QueryCommitmentsResponse proto.InternalMessageInfo
-func (m *CommitmentsResponse) GetCommitments() []string {
+func (m *QueryCommitmentsResponse) GetCommitments() []string {
if m != nil {
return m.Commitments
}
return nil
}
-type GuardiansRequest struct {
+type QueryGuardiansRequest struct {
}
-func (m *GuardiansRequest) Reset() { *m = GuardiansRequest{} }
-func (m *GuardiansRequest) String() string { return proto.CompactTextString(m) }
-func (*GuardiansRequest) ProtoMessage() {}
-func (*GuardiansRequest) Descriptor() ([]byte, []int) {
+func (m *QueryGuardiansRequest) Reset() { *m = QueryGuardiansRequest{} }
+func (m *QueryGuardiansRequest) String() string { return proto.CompactTextString(m) }
+func (*QueryGuardiansRequest) ProtoMessage() {}
+func (*QueryGuardiansRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_5e7780f9db9d346e, []int{16}
}
-func (m *GuardiansRequest) XXX_Unmarshal(b []byte) error {
+func (m *QueryGuardiansRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
-func (m *GuardiansRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+func (m *QueryGuardiansRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
- return xxx_messageInfo_GuardiansRequest.Marshal(b, m, deterministic)
+ return xxx_messageInfo_QueryGuardiansRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
@@ -776,34 +781,34 @@ func (m *GuardiansRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, er
return b[:n], nil
}
}
-func (m *GuardiansRequest) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GuardiansRequest.Merge(m, src)
+func (m *QueryGuardiansRequest) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_QueryGuardiansRequest.Merge(m, src)
}
-func (m *GuardiansRequest) XXX_Size() int {
+func (m *QueryGuardiansRequest) XXX_Size() int {
return m.Size()
}
-func (m *GuardiansRequest) XXX_DiscardUnknown() {
- xxx_messageInfo_GuardiansRequest.DiscardUnknown(m)
+func (m *QueryGuardiansRequest) XXX_DiscardUnknown() {
+ xxx_messageInfo_QueryGuardiansRequest.DiscardUnknown(m)
}
-var xxx_messageInfo_GuardiansRequest proto.InternalMessageInfo
+var xxx_messageInfo_QueryGuardiansRequest proto.InternalMessageInfo
-type GuardiansResponse struct {
+type QueryGuardiansResponse struct {
Guardians []string `protobuf:"bytes,1,rep,name=guardians,proto3" json:"guardians,omitempty"`
}
-func (m *GuardiansResponse) Reset() { *m = GuardiansResponse{} }
-func (m *GuardiansResponse) String() string { return proto.CompactTextString(m) }
-func (*GuardiansResponse) ProtoMessage() {}
-func (*GuardiansResponse) Descriptor() ([]byte, []int) {
+func (m *QueryGuardiansResponse) Reset() { *m = QueryGuardiansResponse{} }
+func (m *QueryGuardiansResponse) String() string { return proto.CompactTextString(m) }
+func (*QueryGuardiansResponse) ProtoMessage() {}
+func (*QueryGuardiansResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_5e7780f9db9d346e, []int{17}
}
-func (m *GuardiansResponse) XXX_Unmarshal(b []byte) error {
+func (m *QueryGuardiansResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
-func (m *GuardiansResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+func (m *QueryGuardiansResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
- return xxx_messageInfo_GuardiansResponse.Marshal(b, m, deterministic)
+ return xxx_messageInfo_QueryGuardiansResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
@@ -813,40 +818,40 @@ func (m *GuardiansResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, e
return b[:n], nil
}
}
-func (m *GuardiansResponse) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GuardiansResponse.Merge(m, src)
+func (m *QueryGuardiansResponse) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_QueryGuardiansResponse.Merge(m, src)
}
-func (m *GuardiansResponse) XXX_Size() int {
+func (m *QueryGuardiansResponse) XXX_Size() int {
return m.Size()
}
-func (m *GuardiansResponse) XXX_DiscardUnknown() {
- xxx_messageInfo_GuardiansResponse.DiscardUnknown(m)
+func (m *QueryGuardiansResponse) XXX_DiscardUnknown() {
+ xxx_messageInfo_QueryGuardiansResponse.DiscardUnknown(m)
}
-var xxx_messageInfo_GuardiansResponse proto.InternalMessageInfo
+var xxx_messageInfo_QueryGuardiansResponse proto.InternalMessageInfo
-func (m *GuardiansResponse) GetGuardians() []string {
+func (m *QueryGuardiansResponse) GetGuardians() []string {
if m != nil {
return m.Guardians
}
return nil
}
-type OperatorsRequest struct {
+type QueryOperatorsRequest struct {
}
-func (m *OperatorsRequest) Reset() { *m = OperatorsRequest{} }
-func (m *OperatorsRequest) String() string { return proto.CompactTextString(m) }
-func (*OperatorsRequest) ProtoMessage() {}
-func (*OperatorsRequest) Descriptor() ([]byte, []int) {
+func (m *QueryOperatorsRequest) Reset() { *m = QueryOperatorsRequest{} }
+func (m *QueryOperatorsRequest) String() string { return proto.CompactTextString(m) }
+func (*QueryOperatorsRequest) ProtoMessage() {}
+func (*QueryOperatorsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_5e7780f9db9d346e, []int{18}
}
-func (m *OperatorsRequest) XXX_Unmarshal(b []byte) error {
+func (m *QueryOperatorsRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
-func (m *OperatorsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+func (m *QueryOperatorsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
- return xxx_messageInfo_OperatorsRequest.Marshal(b, m, deterministic)
+ return xxx_messageInfo_QueryOperatorsRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
@@ -856,34 +861,34 @@ func (m *OperatorsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, er
return b[:n], nil
}
}
-func (m *OperatorsRequest) XXX_Merge(src proto.Message) {
- xxx_messageInfo_OperatorsRequest.Merge(m, src)
+func (m *QueryOperatorsRequest) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_QueryOperatorsRequest.Merge(m, src)
}
-func (m *OperatorsRequest) XXX_Size() int {
+func (m *QueryOperatorsRequest) XXX_Size() int {
return m.Size()
}
-func (m *OperatorsRequest) XXX_DiscardUnknown() {
- xxx_messageInfo_OperatorsRequest.DiscardUnknown(m)
+func (m *QueryOperatorsRequest) XXX_DiscardUnknown() {
+ xxx_messageInfo_QueryOperatorsRequest.DiscardUnknown(m)
}
-var xxx_messageInfo_OperatorsRequest proto.InternalMessageInfo
+var xxx_messageInfo_QueryOperatorsRequest proto.InternalMessageInfo
-type OperatorsResponse struct {
+type QueryOperatorsResponse struct {
Operators []string `protobuf:"bytes,1,rep,name=operators,proto3" json:"operators,omitempty"`
}
-func (m *OperatorsResponse) Reset() { *m = OperatorsResponse{} }
-func (m *OperatorsResponse) String() string { return proto.CompactTextString(m) }
-func (*OperatorsResponse) ProtoMessage() {}
-func (*OperatorsResponse) Descriptor() ([]byte, []int) {
+func (m *QueryOperatorsResponse) Reset() { *m = QueryOperatorsResponse{} }
+func (m *QueryOperatorsResponse) String() string { return proto.CompactTextString(m) }
+func (*QueryOperatorsResponse) ProtoMessage() {}
+func (*QueryOperatorsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_5e7780f9db9d346e, []int{19}
}
-func (m *OperatorsResponse) XXX_Unmarshal(b []byte) error {
+func (m *QueryOperatorsResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
-func (m *OperatorsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+func (m *QueryOperatorsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
- return xxx_messageInfo_OperatorsResponse.Marshal(b, m, deterministic)
+ return xxx_messageInfo_QueryOperatorsResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
@@ -893,40 +898,40 @@ func (m *OperatorsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, e
return b[:n], nil
}
}
-func (m *OperatorsResponse) XXX_Merge(src proto.Message) {
- xxx_messageInfo_OperatorsResponse.Merge(m, src)
+func (m *QueryOperatorsResponse) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_QueryOperatorsResponse.Merge(m, src)
}
-func (m *OperatorsResponse) XXX_Size() int {
+func (m *QueryOperatorsResponse) XXX_Size() int {
return m.Size()
}
-func (m *OperatorsResponse) XXX_DiscardUnknown() {
- xxx_messageInfo_OperatorsResponse.DiscardUnknown(m)
+func (m *QueryOperatorsResponse) XXX_DiscardUnknown() {
+ xxx_messageInfo_QueryOperatorsResponse.DiscardUnknown(m)
}
-var xxx_messageInfo_OperatorsResponse proto.InternalMessageInfo
+var xxx_messageInfo_QueryOperatorsResponse proto.InternalMessageInfo
-func (m *OperatorsResponse) GetOperators() []string {
+func (m *QueryOperatorsResponse) GetOperators() []string {
if m != nil {
return m.Operators
}
return nil
}
-type JudgesRequest struct {
+type QueryJudgesRequest struct {
}
-func (m *JudgesRequest) Reset() { *m = JudgesRequest{} }
-func (m *JudgesRequest) String() string { return proto.CompactTextString(m) }
-func (*JudgesRequest) ProtoMessage() {}
-func (*JudgesRequest) Descriptor() ([]byte, []int) {
+func (m *QueryJudgesRequest) Reset() { *m = QueryJudgesRequest{} }
+func (m *QueryJudgesRequest) String() string { return proto.CompactTextString(m) }
+func (*QueryJudgesRequest) ProtoMessage() {}
+func (*QueryJudgesRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_5e7780f9db9d346e, []int{20}
}
-func (m *JudgesRequest) XXX_Unmarshal(b []byte) error {
+func (m *QueryJudgesRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
-func (m *JudgesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+func (m *QueryJudgesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
- return xxx_messageInfo_JudgesRequest.Marshal(b, m, deterministic)
+ return xxx_messageInfo_QueryJudgesRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
@@ -936,34 +941,34 @@ func (m *JudgesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error
return b[:n], nil
}
}
-func (m *JudgesRequest) XXX_Merge(src proto.Message) {
- xxx_messageInfo_JudgesRequest.Merge(m, src)
+func (m *QueryJudgesRequest) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_QueryJudgesRequest.Merge(m, src)
}
-func (m *JudgesRequest) XXX_Size() int {
+func (m *QueryJudgesRequest) XXX_Size() int {
return m.Size()
}
-func (m *JudgesRequest) XXX_DiscardUnknown() {
- xxx_messageInfo_JudgesRequest.DiscardUnknown(m)
+func (m *QueryJudgesRequest) XXX_DiscardUnknown() {
+ xxx_messageInfo_QueryJudgesRequest.DiscardUnknown(m)
}
-var xxx_messageInfo_JudgesRequest proto.InternalMessageInfo
+var xxx_messageInfo_QueryJudgesRequest proto.InternalMessageInfo
-type JudgesResponse struct {
+type QueryJudgesResponse struct {
Judges []string `protobuf:"bytes,1,rep,name=judges,proto3" json:"judges,omitempty"`
}
-func (m *JudgesResponse) Reset() { *m = JudgesResponse{} }
-func (m *JudgesResponse) String() string { return proto.CompactTextString(m) }
-func (*JudgesResponse) ProtoMessage() {}
-func (*JudgesResponse) Descriptor() ([]byte, []int) {
+func (m *QueryJudgesResponse) Reset() { *m = QueryJudgesResponse{} }
+func (m *QueryJudgesResponse) String() string { return proto.CompactTextString(m) }
+func (*QueryJudgesResponse) ProtoMessage() {}
+func (*QueryJudgesResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_5e7780f9db9d346e, []int{21}
}
-func (m *JudgesResponse) XXX_Unmarshal(b []byte) error {
+func (m *QueryJudgesResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
-func (m *JudgesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+func (m *QueryJudgesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
- return xxx_messageInfo_JudgesResponse.Marshal(b, m, deterministic)
+ return xxx_messageInfo_QueryJudgesResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
@@ -973,113 +978,308 @@ func (m *JudgesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, erro
return b[:n], nil
}
}
-func (m *JudgesResponse) XXX_Merge(src proto.Message) {
- xxx_messageInfo_JudgesResponse.Merge(m, src)
+func (m *QueryJudgesResponse) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_QueryJudgesResponse.Merge(m, src)
}
-func (m *JudgesResponse) XXX_Size() int {
+func (m *QueryJudgesResponse) XXX_Size() int {
return m.Size()
}
-func (m *JudgesResponse) XXX_DiscardUnknown() {
- xxx_messageInfo_JudgesResponse.DiscardUnknown(m)
+func (m *QueryJudgesResponse) XXX_DiscardUnknown() {
+ xxx_messageInfo_QueryJudgesResponse.DiscardUnknown(m)
}
-var xxx_messageInfo_JudgesResponse proto.InternalMessageInfo
+var xxx_messageInfo_QueryJudgesResponse proto.InternalMessageInfo
-func (m *JudgesResponse) GetJudges() []string {
+func (m *QueryJudgesResponse) GetJudges() []string {
if m != nil {
return m.Judges
}
return nil
}
+type QueryProposalsRequest struct {
+ // pagination defines an optional pagination for the request.
+ Pagination *query.PageRequest `protobuf:"bytes,1,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_5e7780f9db9d346e, []int{22}
+}
+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
+}
+
+type QueryProposalsResponse struct {
+ Proposals []*RoleProposal `protobuf:"bytes,1,rep,name=proposals,proto3" json:"proposals,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_5e7780f9db9d346e, []int{23}
+}
+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() []*RoleProposal {
+ if m != nil {
+ return m.Proposals
+ }
+ return nil
+}
+
+type QueryProposalRequest struct {
+ // the proposal id
+ ProposalId string `protobuf:"bytes,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_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_5e7780f9db9d346e, []int{24}
+}
+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) GetProposalId() string {
+ if m != nil {
+ return m.ProposalId
+ }
+ return ""
+}
+
+type QueryProposalResponse struct {
+ Proposal *RoleProposal `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_5e7780f9db9d346e, []int{25}
+}
+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() *RoleProposal {
+ if m != nil {
+ return m.Proposal
+ }
+ return nil
+}
+
func init() {
proto.RegisterType((*QueryParamsRequest)(nil), "lbm.fbridge.v1.QueryParamsRequest")
proto.RegisterType((*QueryParamsResponse)(nil), "lbm.fbridge.v1.QueryParamsResponse")
- proto.RegisterType((*NextSeqSendRequest)(nil), "lbm.fbridge.v1.NextSeqSendRequest")
- proto.RegisterType((*NextSeqSendResponse)(nil), "lbm.fbridge.v1.NextSeqSendResponse")
- proto.RegisterType((*GreatestSeqByOperatorRequest)(nil), "lbm.fbridge.v1.GreatestSeqByOperatorRequest")
- proto.RegisterType((*GreatestSeqByOperatorResponse)(nil), "lbm.fbridge.v1.GreatestSeqByOperatorResponse")
- proto.RegisterType((*GreatestConsecutiveConfirmedSeqRequest)(nil), "lbm.fbridge.v1.GreatestConsecutiveConfirmedSeqRequest")
- proto.RegisterType((*GreatestConsecutiveConfirmedSeqResponse)(nil), "lbm.fbridge.v1.GreatestConsecutiveConfirmedSeqResponse")
- proto.RegisterType((*SubmittedProvisionRequest)(nil), "lbm.fbridge.v1.SubmittedProvisionRequest")
- proto.RegisterType((*SubmittedProvisionResponse)(nil), "lbm.fbridge.v1.SubmittedProvisionResponse")
- proto.RegisterType((*NeededSubmissionSeqsRequest)(nil), "lbm.fbridge.v1.NeededSubmissionSeqsRequest")
- proto.RegisterType((*NeededSubmissionSeqsResponse)(nil), "lbm.fbridge.v1.NeededSubmissionSeqsResponse")
- proto.RegisterType((*ConfirmedProvisionRequest)(nil), "lbm.fbridge.v1.ConfirmedProvisionRequest")
- proto.RegisterType((*ConfirmedProvisionResponse)(nil), "lbm.fbridge.v1.ConfirmedProvisionResponse")
- proto.RegisterType((*CommitmentsRequest)(nil), "lbm.fbridge.v1.CommitmentsRequest")
- proto.RegisterType((*CommitmentsResponse)(nil), "lbm.fbridge.v1.CommitmentsResponse")
- proto.RegisterType((*GuardiansRequest)(nil), "lbm.fbridge.v1.GuardiansRequest")
- proto.RegisterType((*GuardiansResponse)(nil), "lbm.fbridge.v1.GuardiansResponse")
- proto.RegisterType((*OperatorsRequest)(nil), "lbm.fbridge.v1.OperatorsRequest")
- proto.RegisterType((*OperatorsResponse)(nil), "lbm.fbridge.v1.OperatorsResponse")
- proto.RegisterType((*JudgesRequest)(nil), "lbm.fbridge.v1.JudgesRequest")
- proto.RegisterType((*JudgesResponse)(nil), "lbm.fbridge.v1.JudgesResponse")
+ proto.RegisterType((*QueryNextSeqSendRequest)(nil), "lbm.fbridge.v1.QueryNextSeqSendRequest")
+ proto.RegisterType((*QueryNextSeqSendResponse)(nil), "lbm.fbridge.v1.QueryNextSeqSendResponse")
+ proto.RegisterType((*QueryGreatestSeqByOperatorRequest)(nil), "lbm.fbridge.v1.QueryGreatestSeqByOperatorRequest")
+ proto.RegisterType((*QueryGreatestSeqByOperatorResponse)(nil), "lbm.fbridge.v1.QueryGreatestSeqByOperatorResponse")
+ proto.RegisterType((*QueryGreatestConsecutiveConfirmedSeqRequest)(nil), "lbm.fbridge.v1.QueryGreatestConsecutiveConfirmedSeqRequest")
+ proto.RegisterType((*QueryGreatestConsecutiveConfirmedSeqResponse)(nil), "lbm.fbridge.v1.QueryGreatestConsecutiveConfirmedSeqResponse")
+ proto.RegisterType((*QuerySubmittedProvisionRequest)(nil), "lbm.fbridge.v1.QuerySubmittedProvisionRequest")
+ proto.RegisterType((*QuerySubmittedProvisionResponse)(nil), "lbm.fbridge.v1.QuerySubmittedProvisionResponse")
+ proto.RegisterType((*QueryNeededSubmissionSeqsRequest)(nil), "lbm.fbridge.v1.QueryNeededSubmissionSeqsRequest")
+ proto.RegisterType((*QueryNeededSubmissionSeqsResponse)(nil), "lbm.fbridge.v1.QueryNeededSubmissionSeqsResponse")
+ proto.RegisterType((*QueryConfirmedProvisionRequest)(nil), "lbm.fbridge.v1.QueryConfirmedProvisionRequest")
+ proto.RegisterType((*QueryConfirmedProvisionResponse)(nil), "lbm.fbridge.v1.QueryConfirmedProvisionResponse")
+ proto.RegisterType((*QueryCommitmentsRequest)(nil), "lbm.fbridge.v1.QueryCommitmentsRequest")
+ proto.RegisterType((*QueryCommitmentsResponse)(nil), "lbm.fbridge.v1.QueryCommitmentsResponse")
+ proto.RegisterType((*QueryGuardiansRequest)(nil), "lbm.fbridge.v1.QueryGuardiansRequest")
+ proto.RegisterType((*QueryGuardiansResponse)(nil), "lbm.fbridge.v1.QueryGuardiansResponse")
+ proto.RegisterType((*QueryOperatorsRequest)(nil), "lbm.fbridge.v1.QueryOperatorsRequest")
+ proto.RegisterType((*QueryOperatorsResponse)(nil), "lbm.fbridge.v1.QueryOperatorsResponse")
+ proto.RegisterType((*QueryJudgesRequest)(nil), "lbm.fbridge.v1.QueryJudgesRequest")
+ proto.RegisterType((*QueryJudgesResponse)(nil), "lbm.fbridge.v1.QueryJudgesResponse")
+ proto.RegisterType((*QueryProposalsRequest)(nil), "lbm.fbridge.v1.QueryProposalsRequest")
+ proto.RegisterType((*QueryProposalsResponse)(nil), "lbm.fbridge.v1.QueryProposalsResponse")
+ proto.RegisterType((*QueryProposalRequest)(nil), "lbm.fbridge.v1.QueryProposalRequest")
+ proto.RegisterType((*QueryProposalResponse)(nil), "lbm.fbridge.v1.QueryProposalResponse")
}
func init() { proto.RegisterFile("lbm/fbridge/v1/query.proto", fileDescriptor_5e7780f9db9d346e) }
var fileDescriptor_5e7780f9db9d346e = []byte{
- // 943 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x56, 0x41, 0x8f, 0xdb, 0x44,
- 0x14, 0x5e, 0xb7, 0x69, 0x44, 0x5e, 0xa0, 0x94, 0xd9, 0x65, 0xd5, 0x75, 0x53, 0x67, 0xe3, 0xa2,
- 0xdd, 0xb4, 0x74, 0xe3, 0x26, 0x54, 0x5d, 0x89, 0xd2, 0xcb, 0x06, 0x51, 0x51, 0xa4, 0xb6, 0x24,
- 0x37, 0x2e, 0xd1, 0x24, 0x9e, 0x75, 0x0d, 0x6b, 0x4f, 0xec, 0x19, 0x47, 0xbb, 0x2a, 0x3d, 0xc0,
- 0x2f, 0x40, 0xa2, 0xbf, 0x01, 0x89, 0x3f, 0x80, 0xc4, 0x95, 0x53, 0x8f, 0x2b, 0x71, 0xe1, 0x84,
- 0xd0, 0x2e, 0x3f, 0x04, 0x79, 0x3c, 0x76, 0x12, 0x4f, 0x9c, 0x0d, 0xa7, 0xde, 0xc6, 0xcf, 0xef,
- 0x7d, 0xdf, 0xf7, 0xde, 0xcb, 0x7c, 0x0e, 0xe8, 0x47, 0x43, 0xcf, 0x3a, 0x1c, 0x86, 0xae, 0xed,
- 0x10, 0x6b, 0xd2, 0xb6, 0x82, 0x88, 0x84, 0x27, 0xad, 0x71, 0x48, 0x39, 0x45, 0x57, 0x8f, 0x86,
- 0x5e, 0x4b, 0xbe, 0x6b, 0x4d, 0xda, 0x7a, 0xcd, 0xa1, 0xd4, 0x39, 0x22, 0x16, 0x1e, 0xbb, 0x16,
- 0x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 0xca, 0xe7, 0x0c,
+ 0x5b, 0x5f, 0x5e, 0xed, 0x56, 0xe2, 0x11, 0xa9, 0x35, 0x6b, 0x3c, 0x62, 0xc8, 0xcd, 0x35, 0x1e,
+ 0x31, 0xec, 0xed, 0x7a, 0x8f, 0x48, 0x3d, 0x9e, 0xbc, 0x30, 0xa0, 0xa0, 0xec, 0x57, 0xd3, 0x72,
+ 0xd6, 0xff, 0x35, 0x2d, 0xe7, 0x5c, 0xdc, 0x5c, 0x11, 0xc5, 0x97, 0x48, 0x39, 0x5b, 0x3c, 0x62,
+ 0x6d, 0x6a, 0x2b, 0xc7, 0x26, 0x3f, 0x18, 0x30, 0x2b, 0xd1, 0xe4, 0xf6, 0x58, 0x72, 0x29, 0xe1,
+ 0xce, 0x25, 0x59, 0xa8, 0x60, 0x53, 0x28, 0xb0, 0xc8, 0xda, 0x78, 0x05, 0xf6, 0xe9, 0xc0, 0x2f,
+ 0x83, 0xb3, 0xdd, 0xc7, 0xaf, 0xce, 0xcb, 0xc6, 0xeb, 0xf3, 0xb2, 0xf1, 0xf7, 0x79, 0xd9, 0xf8,
+ 0xf1, 0xa2, 0x3c, 0xf5, 0xfa, 0xa2, 0x3c, 0xf5, 0xe7, 0x45, 0x79, 0xea, 0xeb, 0x0d, 0xcf, 0x8f,
+ 0x9f, 0xf7, 0x9a, 0x56, 0x8b, 0x75, 0xec, 0x47, 0x7e, 0xc0, 0x5b, 0xcf, 0x7d, 0xc7, 0x3e, 0xc4,
+ 0xc1, 0x3a, 0x77, 0xbf, 0xb5, 0x8f, 0x55, 0x95, 0xf8, 0xa4, 0x4b, 0x79, 0x73, 0x46, 0xfc, 0xfd,
+ 0xfc, 0xf0, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x46, 0xe7, 0x3d, 0x95, 0x2a, 0x0f, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
@@ -1096,29 +1296,33 @@ const _ = grpc.SupportPackageIsVersion4
type QueryClient interface {
// Params queries the parameters of x/fbridge module.
Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
- // NextSeqSend to be used when the next bridge request is made
- NextSeqSend(ctx context.Context, in *NextSeqSendRequest, opts ...grpc.CallOption) (*NextSeqSendResponse, error)
- // Get a greatest sequence number confirmed by a particular operator
- GreatestSeqByOperator(ctx context.Context, in *GreatestSeqByOperatorRequest, opts ...grpc.CallOption) (*GreatestSeqByOperatorResponse, error)
- // Get a greatest consecutive sequence number confirmed by n-of-m operators
- GreatestConsecutiveConfirmedSeq(ctx context.Context, in *GreatestConsecutiveConfirmedSeqRequest, opts ...grpc.CallOption) (*GreatestConsecutiveConfirmedSeqResponse, error)
- // Get a provision submitted by a particular operator
- SubmittedProvision(ctx context.Context, in *SubmittedProvisionRequest, opts ...grpc.CallOption) (*SubmittedProvisionResponse, error)
- // Get a particular sequence of confirmed provisions
- ConfirmedProvision(ctx context.Context, in *ConfirmedProvisionRequest, opts ...grpc.CallOption) (*ConfirmedProvisionResponse, error)
- // Get a list of sequence numbers that need to be submitted by a particular operator
+ // NextSeqSend queries the sequence of next bridge request
+ NextSeqSend(ctx context.Context, in *QueryNextSeqSendRequest, opts ...grpc.CallOption) (*QueryNextSeqSendResponse, error)
+ // GreatestSeqByOperator queries a greatest sequence number confirmed by a particular operator
+ GreatestSeqByOperator(ctx context.Context, in *QueryGreatestSeqByOperatorRequest, opts ...grpc.CallOption) (*QueryGreatestSeqByOperatorResponse, error)
+ // GreatestConsecutiveConfirmedSeq queries a greatest consecutive sequence number confirmed by n-of-m operators
+ GreatestConsecutiveConfirmedSeq(ctx context.Context, in *QueryGreatestConsecutiveConfirmedSeqRequest, opts ...grpc.CallOption) (*QueryGreatestConsecutiveConfirmedSeqResponse, error)
+ // SubmittedProvision queries a provision submitted by a particular operator
+ SubmittedProvision(ctx context.Context, in *QuerySubmittedProvisionRequest, opts ...grpc.CallOption) (*QuerySubmittedProvisionResponse, error)
+ // ConfirmedProvision queries a particular sequence of confirmed provisions
+ ConfirmedProvision(ctx context.Context, in *QueryConfirmedProvisionRequest, opts ...grpc.CallOption) (*QueryConfirmedProvisionResponse, error)
+ // NeededSubmissionSeqs queries a list of sequence numbers that need to be submitted by a particular operator
// The search scope is [greatest_consecutive_seq_by_operator, min(greatest_consecutive_seq_by_operator + range,
// greatest_seq_by_operator)] greatest_consecutive_seq_by_operator can be replaced with greatest_consecutive_seq if
// the operator is newly added
- NeededSubmissionSeqs(ctx context.Context, in *NeededSubmissionSeqsRequest, opts ...grpc.CallOption) (*NeededSubmissionSeqsResponse, error)
- // Get commitments of a specific sequence number
- Commitments(ctx context.Context, in *CommitmentsRequest, opts ...grpc.CallOption) (*CommitmentsResponse, error)
- // Get a list of Guardians registered on the bridge
- Guardians(ctx context.Context, in *GuardiansRequest, opts ...grpc.CallOption) (*GuardiansResponse, error)
- // Get a list of Operators registered on the bridge
- Operators(ctx context.Context, in *OperatorsRequest, opts ...grpc.CallOption) (*OperatorsResponse, error)
- // Get a list of Judges registered on the bridge
- Judges(ctx context.Context, in *JudgesRequest, opts ...grpc.CallOption) (*JudgesResponse, error)
+ NeededSubmissionSeqs(ctx context.Context, in *QueryNeededSubmissionSeqsRequest, opts ...grpc.CallOption) (*QueryNeededSubmissionSeqsResponse, error)
+ // Commitments queries commitments of a specific sequence number
+ Commitments(ctx context.Context, in *QueryCommitmentsRequest, opts ...grpc.CallOption) (*QueryCommitmentsResponse, error)
+ // Guardians queries a list of Guardians registered on the bridge
+ Guardians(ctx context.Context, in *QueryGuardiansRequest, opts ...grpc.CallOption) (*QueryGuardiansResponse, error)
+ // Operators queries a list of Operators registered on the bridge
+ Operators(ctx context.Context, in *QueryOperatorsRequest, opts ...grpc.CallOption) (*QueryOperatorsResponse, error)
+ // Judges queries a list of Judges registered on the bridge
+ Judges(ctx context.Context, in *QueryJudgesRequest, opts ...grpc.CallOption) (*QueryJudgesResponse, error)
+ // Proposals queries a list of SuggestRole Proposals
+ Proposals(ctx context.Context, in *QueryProposalsRequest, opts ...grpc.CallOption) (*QueryProposalsResponse, error)
+ // Proposal queries a SuggestRole Proposal
+ Proposal(ctx context.Context, in *QueryProposalRequest, opts ...grpc.CallOption) (*QueryProposalResponse, error)
}
type queryClient struct {
@@ -1138,8 +1342,8 @@ func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts .
return out, nil
}
-func (c *queryClient) NextSeqSend(ctx context.Context, in *NextSeqSendRequest, opts ...grpc.CallOption) (*NextSeqSendResponse, error) {
- out := new(NextSeqSendResponse)
+func (c *queryClient) NextSeqSend(ctx context.Context, in *QueryNextSeqSendRequest, opts ...grpc.CallOption) (*QueryNextSeqSendResponse, error) {
+ out := new(QueryNextSeqSendResponse)
err := c.cc.Invoke(ctx, "/lbm.fbridge.v1.Query/NextSeqSend", in, out, opts...)
if err != nil {
return nil, err
@@ -1147,8 +1351,8 @@ func (c *queryClient) NextSeqSend(ctx context.Context, in *NextSeqSendRequest, o
return out, nil
}
-func (c *queryClient) GreatestSeqByOperator(ctx context.Context, in *GreatestSeqByOperatorRequest, opts ...grpc.CallOption) (*GreatestSeqByOperatorResponse, error) {
- out := new(GreatestSeqByOperatorResponse)
+func (c *queryClient) GreatestSeqByOperator(ctx context.Context, in *QueryGreatestSeqByOperatorRequest, opts ...grpc.CallOption) (*QueryGreatestSeqByOperatorResponse, error) {
+ out := new(QueryGreatestSeqByOperatorResponse)
err := c.cc.Invoke(ctx, "/lbm.fbridge.v1.Query/GreatestSeqByOperator", in, out, opts...)
if err != nil {
return nil, err
@@ -1156,8 +1360,8 @@ func (c *queryClient) GreatestSeqByOperator(ctx context.Context, in *GreatestSeq
return out, nil
}
-func (c *queryClient) GreatestConsecutiveConfirmedSeq(ctx context.Context, in *GreatestConsecutiveConfirmedSeqRequest, opts ...grpc.CallOption) (*GreatestConsecutiveConfirmedSeqResponse, error) {
- out := new(GreatestConsecutiveConfirmedSeqResponse)
+func (c *queryClient) GreatestConsecutiveConfirmedSeq(ctx context.Context, in *QueryGreatestConsecutiveConfirmedSeqRequest, opts ...grpc.CallOption) (*QueryGreatestConsecutiveConfirmedSeqResponse, error) {
+ out := new(QueryGreatestConsecutiveConfirmedSeqResponse)
err := c.cc.Invoke(ctx, "/lbm.fbridge.v1.Query/GreatestConsecutiveConfirmedSeq", in, out, opts...)
if err != nil {
return nil, err
@@ -1165,8 +1369,8 @@ func (c *queryClient) GreatestConsecutiveConfirmedSeq(ctx context.Context, in *G
return out, nil
}
-func (c *queryClient) SubmittedProvision(ctx context.Context, in *SubmittedProvisionRequest, opts ...grpc.CallOption) (*SubmittedProvisionResponse, error) {
- out := new(SubmittedProvisionResponse)
+func (c *queryClient) SubmittedProvision(ctx context.Context, in *QuerySubmittedProvisionRequest, opts ...grpc.CallOption) (*QuerySubmittedProvisionResponse, error) {
+ out := new(QuerySubmittedProvisionResponse)
err := c.cc.Invoke(ctx, "/lbm.fbridge.v1.Query/SubmittedProvision", in, out, opts...)
if err != nil {
return nil, err
@@ -1174,8 +1378,8 @@ func (c *queryClient) SubmittedProvision(ctx context.Context, in *SubmittedProvi
return out, nil
}
-func (c *queryClient) ConfirmedProvision(ctx context.Context, in *ConfirmedProvisionRequest, opts ...grpc.CallOption) (*ConfirmedProvisionResponse, error) {
- out := new(ConfirmedProvisionResponse)
+func (c *queryClient) ConfirmedProvision(ctx context.Context, in *QueryConfirmedProvisionRequest, opts ...grpc.CallOption) (*QueryConfirmedProvisionResponse, error) {
+ out := new(QueryConfirmedProvisionResponse)
err := c.cc.Invoke(ctx, "/lbm.fbridge.v1.Query/ConfirmedProvision", in, out, opts...)
if err != nil {
return nil, err
@@ -1183,8 +1387,8 @@ func (c *queryClient) ConfirmedProvision(ctx context.Context, in *ConfirmedProvi
return out, nil
}
-func (c *queryClient) NeededSubmissionSeqs(ctx context.Context, in *NeededSubmissionSeqsRequest, opts ...grpc.CallOption) (*NeededSubmissionSeqsResponse, error) {
- out := new(NeededSubmissionSeqsResponse)
+func (c *queryClient) NeededSubmissionSeqs(ctx context.Context, in *QueryNeededSubmissionSeqsRequest, opts ...grpc.CallOption) (*QueryNeededSubmissionSeqsResponse, error) {
+ out := new(QueryNeededSubmissionSeqsResponse)
err := c.cc.Invoke(ctx, "/lbm.fbridge.v1.Query/NeededSubmissionSeqs", in, out, opts...)
if err != nil {
return nil, err
@@ -1192,8 +1396,8 @@ func (c *queryClient) NeededSubmissionSeqs(ctx context.Context, in *NeededSubmis
return out, nil
}
-func (c *queryClient) Commitments(ctx context.Context, in *CommitmentsRequest, opts ...grpc.CallOption) (*CommitmentsResponse, error) {
- out := new(CommitmentsResponse)
+func (c *queryClient) Commitments(ctx context.Context, in *QueryCommitmentsRequest, opts ...grpc.CallOption) (*QueryCommitmentsResponse, error) {
+ out := new(QueryCommitmentsResponse)
err := c.cc.Invoke(ctx, "/lbm.fbridge.v1.Query/Commitments", in, out, opts...)
if err != nil {
return nil, err
@@ -1201,8 +1405,8 @@ func (c *queryClient) Commitments(ctx context.Context, in *CommitmentsRequest, o
return out, nil
}
-func (c *queryClient) Guardians(ctx context.Context, in *GuardiansRequest, opts ...grpc.CallOption) (*GuardiansResponse, error) {
- out := new(GuardiansResponse)
+func (c *queryClient) Guardians(ctx context.Context, in *QueryGuardiansRequest, opts ...grpc.CallOption) (*QueryGuardiansResponse, error) {
+ out := new(QueryGuardiansResponse)
err := c.cc.Invoke(ctx, "/lbm.fbridge.v1.Query/Guardians", in, out, opts...)
if err != nil {
return nil, err
@@ -1210,8 +1414,8 @@ func (c *queryClient) Guardians(ctx context.Context, in *GuardiansRequest, opts
return out, nil
}
-func (c *queryClient) Operators(ctx context.Context, in *OperatorsRequest, opts ...grpc.CallOption) (*OperatorsResponse, error) {
- out := new(OperatorsResponse)
+func (c *queryClient) Operators(ctx context.Context, in *QueryOperatorsRequest, opts ...grpc.CallOption) (*QueryOperatorsResponse, error) {
+ out := new(QueryOperatorsResponse)
err := c.cc.Invoke(ctx, "/lbm.fbridge.v1.Query/Operators", in, out, opts...)
if err != nil {
return nil, err
@@ -1219,8 +1423,8 @@ func (c *queryClient) Operators(ctx context.Context, in *OperatorsRequest, opts
return out, nil
}
-func (c *queryClient) Judges(ctx context.Context, in *JudgesRequest, opts ...grpc.CallOption) (*JudgesResponse, error) {
- out := new(JudgesResponse)
+func (c *queryClient) Judges(ctx context.Context, in *QueryJudgesRequest, opts ...grpc.CallOption) (*QueryJudgesResponse, error) {
+ out := new(QueryJudgesResponse)
err := c.cc.Invoke(ctx, "/lbm.fbridge.v1.Query/Judges", in, out, opts...)
if err != nil {
return nil, err
@@ -1228,33 +1432,55 @@ func (c *queryClient) Judges(ctx context.Context, in *JudgesRequest, opts ...grp
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, "/lbm.fbridge.v1.Query/Proposals", 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, "/lbm.fbridge.v1.Query/Proposal", 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 parameters of x/fbridge module.
Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
- // NextSeqSend to be used when the next bridge request is made
- NextSeqSend(context.Context, *NextSeqSendRequest) (*NextSeqSendResponse, error)
- // Get a greatest sequence number confirmed by a particular operator
- GreatestSeqByOperator(context.Context, *GreatestSeqByOperatorRequest) (*GreatestSeqByOperatorResponse, error)
- // Get a greatest consecutive sequence number confirmed by n-of-m operators
- GreatestConsecutiveConfirmedSeq(context.Context, *GreatestConsecutiveConfirmedSeqRequest) (*GreatestConsecutiveConfirmedSeqResponse, error)
- // Get a provision submitted by a particular operator
- SubmittedProvision(context.Context, *SubmittedProvisionRequest) (*SubmittedProvisionResponse, error)
- // Get a particular sequence of confirmed provisions
- ConfirmedProvision(context.Context, *ConfirmedProvisionRequest) (*ConfirmedProvisionResponse, error)
- // Get a list of sequence numbers that need to be submitted by a particular operator
+ // NextSeqSend queries the sequence of next bridge request
+ NextSeqSend(context.Context, *QueryNextSeqSendRequest) (*QueryNextSeqSendResponse, error)
+ // GreatestSeqByOperator queries a greatest sequence number confirmed by a particular operator
+ GreatestSeqByOperator(context.Context, *QueryGreatestSeqByOperatorRequest) (*QueryGreatestSeqByOperatorResponse, error)
+ // GreatestConsecutiveConfirmedSeq queries a greatest consecutive sequence number confirmed by n-of-m operators
+ GreatestConsecutiveConfirmedSeq(context.Context, *QueryGreatestConsecutiveConfirmedSeqRequest) (*QueryGreatestConsecutiveConfirmedSeqResponse, error)
+ // SubmittedProvision queries a provision submitted by a particular operator
+ SubmittedProvision(context.Context, *QuerySubmittedProvisionRequest) (*QuerySubmittedProvisionResponse, error)
+ // ConfirmedProvision queries a particular sequence of confirmed provisions
+ ConfirmedProvision(context.Context, *QueryConfirmedProvisionRequest) (*QueryConfirmedProvisionResponse, error)
+ // NeededSubmissionSeqs queries a list of sequence numbers that need to be submitted by a particular operator
// The search scope is [greatest_consecutive_seq_by_operator, min(greatest_consecutive_seq_by_operator + range,
// greatest_seq_by_operator)] greatest_consecutive_seq_by_operator can be replaced with greatest_consecutive_seq if
// the operator is newly added
- NeededSubmissionSeqs(context.Context, *NeededSubmissionSeqsRequest) (*NeededSubmissionSeqsResponse, error)
- // Get commitments of a specific sequence number
- Commitments(context.Context, *CommitmentsRequest) (*CommitmentsResponse, error)
- // Get a list of Guardians registered on the bridge
- Guardians(context.Context, *GuardiansRequest) (*GuardiansResponse, error)
- // Get a list of Operators registered on the bridge
- Operators(context.Context, *OperatorsRequest) (*OperatorsResponse, error)
- // Get a list of Judges registered on the bridge
- Judges(context.Context, *JudgesRequest) (*JudgesResponse, error)
+ NeededSubmissionSeqs(context.Context, *QueryNeededSubmissionSeqsRequest) (*QueryNeededSubmissionSeqsResponse, error)
+ // Commitments queries commitments of a specific sequence number
+ Commitments(context.Context, *QueryCommitmentsRequest) (*QueryCommitmentsResponse, error)
+ // Guardians queries a list of Guardians registered on the bridge
+ Guardians(context.Context, *QueryGuardiansRequest) (*QueryGuardiansResponse, error)
+ // Operators queries a list of Operators registered on the bridge
+ Operators(context.Context, *QueryOperatorsRequest) (*QueryOperatorsResponse, error)
+ // Judges queries a list of Judges registered on the bridge
+ Judges(context.Context, *QueryJudgesRequest) (*QueryJudgesResponse, error)
+ // Proposals queries a list of SuggestRole Proposals
+ Proposals(context.Context, *QueryProposalsRequest) (*QueryProposalsResponse, error)
+ // Proposal queries a SuggestRole Proposal
+ Proposal(context.Context, *QueryProposalRequest) (*QueryProposalResponse, error)
}
// UnimplementedQueryServer can be embedded to have forward compatible implementations.
@@ -1264,36 +1490,42 @@ 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) NextSeqSend(ctx context.Context, req *NextSeqSendRequest) (*NextSeqSendResponse, error) {
+func (*UnimplementedQueryServer) NextSeqSend(ctx context.Context, req *QueryNextSeqSendRequest) (*QueryNextSeqSendResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method NextSeqSend not implemented")
}
-func (*UnimplementedQueryServer) GreatestSeqByOperator(ctx context.Context, req *GreatestSeqByOperatorRequest) (*GreatestSeqByOperatorResponse, error) {
+func (*UnimplementedQueryServer) GreatestSeqByOperator(ctx context.Context, req *QueryGreatestSeqByOperatorRequest) (*QueryGreatestSeqByOperatorResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GreatestSeqByOperator not implemented")
}
-func (*UnimplementedQueryServer) GreatestConsecutiveConfirmedSeq(ctx context.Context, req *GreatestConsecutiveConfirmedSeqRequest) (*GreatestConsecutiveConfirmedSeqResponse, error) {
+func (*UnimplementedQueryServer) GreatestConsecutiveConfirmedSeq(ctx context.Context, req *QueryGreatestConsecutiveConfirmedSeqRequest) (*QueryGreatestConsecutiveConfirmedSeqResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GreatestConsecutiveConfirmedSeq not implemented")
}
-func (*UnimplementedQueryServer) SubmittedProvision(ctx context.Context, req *SubmittedProvisionRequest) (*SubmittedProvisionResponse, error) {
+func (*UnimplementedQueryServer) SubmittedProvision(ctx context.Context, req *QuerySubmittedProvisionRequest) (*QuerySubmittedProvisionResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method SubmittedProvision not implemented")
}
-func (*UnimplementedQueryServer) ConfirmedProvision(ctx context.Context, req *ConfirmedProvisionRequest) (*ConfirmedProvisionResponse, error) {
+func (*UnimplementedQueryServer) ConfirmedProvision(ctx context.Context, req *QueryConfirmedProvisionRequest) (*QueryConfirmedProvisionResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ConfirmedProvision not implemented")
}
-func (*UnimplementedQueryServer) NeededSubmissionSeqs(ctx context.Context, req *NeededSubmissionSeqsRequest) (*NeededSubmissionSeqsResponse, error) {
+func (*UnimplementedQueryServer) NeededSubmissionSeqs(ctx context.Context, req *QueryNeededSubmissionSeqsRequest) (*QueryNeededSubmissionSeqsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method NeededSubmissionSeqs not implemented")
}
-func (*UnimplementedQueryServer) Commitments(ctx context.Context, req *CommitmentsRequest) (*CommitmentsResponse, error) {
+func (*UnimplementedQueryServer) Commitments(ctx context.Context, req *QueryCommitmentsRequest) (*QueryCommitmentsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Commitments not implemented")
}
-func (*UnimplementedQueryServer) Guardians(ctx context.Context, req *GuardiansRequest) (*GuardiansResponse, error) {
+func (*UnimplementedQueryServer) Guardians(ctx context.Context, req *QueryGuardiansRequest) (*QueryGuardiansResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Guardians not implemented")
}
-func (*UnimplementedQueryServer) Operators(ctx context.Context, req *OperatorsRequest) (*OperatorsResponse, error) {
+func (*UnimplementedQueryServer) Operators(ctx context.Context, req *QueryOperatorsRequest) (*QueryOperatorsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Operators not implemented")
}
-func (*UnimplementedQueryServer) Judges(ctx context.Context, req *JudgesRequest) (*JudgesResponse, error) {
+func (*UnimplementedQueryServer) Judges(ctx context.Context, req *QueryJudgesRequest) (*QueryJudgesResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Judges not implemented")
}
+func (*UnimplementedQueryServer) Proposals(ctx context.Context, req *QueryProposalsRequest) (*QueryProposalsResponse, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method Proposals not implemented")
+}
+func (*UnimplementedQueryServer) Proposal(ctx context.Context, req *QueryProposalRequest) (*QueryProposalResponse, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method Proposal not implemented")
+}
func RegisterQueryServer(s grpc1.Server, srv QueryServer) {
s.RegisterService(&_Query_serviceDesc, srv)
@@ -1318,7 +1550,7 @@ func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interf
}
func _Query_NextSeqSend_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(NextSeqSendRequest)
+ in := new(QueryNextSeqSendRequest)
if err := dec(in); err != nil {
return nil, err
}
@@ -1330,13 +1562,13 @@ func _Query_NextSeqSend_Handler(srv interface{}, ctx context.Context, dec func(i
FullMethod: "/lbm.fbridge.v1.Query/NextSeqSend",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(QueryServer).NextSeqSend(ctx, req.(*NextSeqSendRequest))
+ return srv.(QueryServer).NextSeqSend(ctx, req.(*QueryNextSeqSendRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Query_GreatestSeqByOperator_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(GreatestSeqByOperatorRequest)
+ in := new(QueryGreatestSeqByOperatorRequest)
if err := dec(in); err != nil {
return nil, err
}
@@ -1348,13 +1580,13 @@ func _Query_GreatestSeqByOperator_Handler(srv interface{}, ctx context.Context,
FullMethod: "/lbm.fbridge.v1.Query/GreatestSeqByOperator",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(QueryServer).GreatestSeqByOperator(ctx, req.(*GreatestSeqByOperatorRequest))
+ return srv.(QueryServer).GreatestSeqByOperator(ctx, req.(*QueryGreatestSeqByOperatorRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Query_GreatestConsecutiveConfirmedSeq_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(GreatestConsecutiveConfirmedSeqRequest)
+ in := new(QueryGreatestConsecutiveConfirmedSeqRequest)
if err := dec(in); err != nil {
return nil, err
}
@@ -1366,13 +1598,13 @@ func _Query_GreatestConsecutiveConfirmedSeq_Handler(srv interface{}, ctx context
FullMethod: "/lbm.fbridge.v1.Query/GreatestConsecutiveConfirmedSeq",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(QueryServer).GreatestConsecutiveConfirmedSeq(ctx, req.(*GreatestConsecutiveConfirmedSeqRequest))
+ return srv.(QueryServer).GreatestConsecutiveConfirmedSeq(ctx, req.(*QueryGreatestConsecutiveConfirmedSeqRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Query_SubmittedProvision_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(SubmittedProvisionRequest)
+ in := new(QuerySubmittedProvisionRequest)
if err := dec(in); err != nil {
return nil, err
}
@@ -1384,13 +1616,13 @@ func _Query_SubmittedProvision_Handler(srv interface{}, ctx context.Context, dec
FullMethod: "/lbm.fbridge.v1.Query/SubmittedProvision",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(QueryServer).SubmittedProvision(ctx, req.(*SubmittedProvisionRequest))
+ return srv.(QueryServer).SubmittedProvision(ctx, req.(*QuerySubmittedProvisionRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Query_ConfirmedProvision_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(ConfirmedProvisionRequest)
+ in := new(QueryConfirmedProvisionRequest)
if err := dec(in); err != nil {
return nil, err
}
@@ -1402,13 +1634,13 @@ func _Query_ConfirmedProvision_Handler(srv interface{}, ctx context.Context, dec
FullMethod: "/lbm.fbridge.v1.Query/ConfirmedProvision",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(QueryServer).ConfirmedProvision(ctx, req.(*ConfirmedProvisionRequest))
+ return srv.(QueryServer).ConfirmedProvision(ctx, req.(*QueryConfirmedProvisionRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Query_NeededSubmissionSeqs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(NeededSubmissionSeqsRequest)
+ in := new(QueryNeededSubmissionSeqsRequest)
if err := dec(in); err != nil {
return nil, err
}
@@ -1420,13 +1652,13 @@ func _Query_NeededSubmissionSeqs_Handler(srv interface{}, ctx context.Context, d
FullMethod: "/lbm.fbridge.v1.Query/NeededSubmissionSeqs",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(QueryServer).NeededSubmissionSeqs(ctx, req.(*NeededSubmissionSeqsRequest))
+ return srv.(QueryServer).NeededSubmissionSeqs(ctx, req.(*QueryNeededSubmissionSeqsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Query_Commitments_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(CommitmentsRequest)
+ in := new(QueryCommitmentsRequest)
if err := dec(in); err != nil {
return nil, err
}
@@ -1438,13 +1670,13 @@ func _Query_Commitments_Handler(srv interface{}, ctx context.Context, dec func(i
FullMethod: "/lbm.fbridge.v1.Query/Commitments",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(QueryServer).Commitments(ctx, req.(*CommitmentsRequest))
+ return srv.(QueryServer).Commitments(ctx, req.(*QueryCommitmentsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Query_Guardians_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(GuardiansRequest)
+ in := new(QueryGuardiansRequest)
if err := dec(in); err != nil {
return nil, err
}
@@ -1456,13 +1688,13 @@ func _Query_Guardians_Handler(srv interface{}, ctx context.Context, dec func(int
FullMethod: "/lbm.fbridge.v1.Query/Guardians",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(QueryServer).Guardians(ctx, req.(*GuardiansRequest))
+ return srv.(QueryServer).Guardians(ctx, req.(*QueryGuardiansRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Query_Operators_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(OperatorsRequest)
+ in := new(QueryOperatorsRequest)
if err := dec(in); err != nil {
return nil, err
}
@@ -1474,13 +1706,13 @@ func _Query_Operators_Handler(srv interface{}, ctx context.Context, dec func(int
FullMethod: "/lbm.fbridge.v1.Query/Operators",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(QueryServer).Operators(ctx, req.(*OperatorsRequest))
+ return srv.(QueryServer).Operators(ctx, req.(*QueryOperatorsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Query_Judges_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(JudgesRequest)
+ in := new(QueryJudgesRequest)
if err := dec(in); err != nil {
return nil, err
}
@@ -1492,7 +1724,43 @@ func _Query_Judges_Handler(srv interface{}, ctx context.Context, dec func(interf
FullMethod: "/lbm.fbridge.v1.Query/Judges",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(QueryServer).Judges(ctx, req.(*JudgesRequest))
+ return srv.(QueryServer).Judges(ctx, req.(*QueryJudgesRequest))
+ }
+ 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: "/lbm.fbridge.v1.Query/Proposals",
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(QueryServer).Proposals(ctx, req.(*QueryProposalsRequest))
+ }
+ 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: "/lbm.fbridge.v1.Query/Proposal",
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(QueryServer).Proposal(ctx, req.(*QueryProposalRequest))
}
return interceptor(ctx, in, info, handler)
}
@@ -1545,6 +1813,14 @@ var _Query_serviceDesc = grpc.ServiceDesc{
MethodName: "Judges",
Handler: _Query_Judges_Handler,
},
+ {
+ MethodName: "Proposals",
+ Handler: _Query_Proposals_Handler,
+ },
+ {
+ MethodName: "Proposal",
+ Handler: _Query_Proposal_Handler,
+ },
},
Streams: []grpc.StreamDesc{},
Metadata: "lbm/fbridge/v1/query.proto",
@@ -1606,7 +1882,7 @@ func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
return len(dAtA) - i, nil
}
-func (m *NextSeqSendRequest) Marshal() (dAtA []byte, err error) {
+func (m *QueryNextSeqSendRequest) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
@@ -1616,12 +1892,12 @@ func (m *NextSeqSendRequest) Marshal() (dAtA []byte, err error) {
return dAtA[:n], nil
}
-func (m *NextSeqSendRequest) MarshalTo(dAtA []byte) (int, error) {
+func (m *QueryNextSeqSendRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
-func (m *NextSeqSendRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+func (m *QueryNextSeqSendRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
@@ -1629,7 +1905,7 @@ func (m *NextSeqSendRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
return len(dAtA) - i, nil
}
-func (m *NextSeqSendResponse) Marshal() (dAtA []byte, err error) {
+func (m *QueryNextSeqSendResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
@@ -1639,12 +1915,12 @@ func (m *NextSeqSendResponse) Marshal() (dAtA []byte, err error) {
return dAtA[:n], nil
}
-func (m *NextSeqSendResponse) MarshalTo(dAtA []byte) (int, error) {
+func (m *QueryNextSeqSendResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
-func (m *NextSeqSendResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+func (m *QueryNextSeqSendResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
@@ -1657,7 +1933,7 @@ func (m *NextSeqSendResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
return len(dAtA) - i, nil
}
-func (m *GreatestSeqByOperatorRequest) Marshal() (dAtA []byte, err error) {
+func (m *QueryGreatestSeqByOperatorRequest) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
@@ -1667,12 +1943,12 @@ func (m *GreatestSeqByOperatorRequest) Marshal() (dAtA []byte, err error) {
return dAtA[:n], nil
}
-func (m *GreatestSeqByOperatorRequest) MarshalTo(dAtA []byte) (int, error) {
+func (m *QueryGreatestSeqByOperatorRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
-func (m *GreatestSeqByOperatorRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+func (m *QueryGreatestSeqByOperatorRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
@@ -1687,7 +1963,7 @@ func (m *GreatestSeqByOperatorRequest) MarshalToSizedBuffer(dAtA []byte) (int, e
return len(dAtA) - i, nil
}
-func (m *GreatestSeqByOperatorResponse) Marshal() (dAtA []byte, err error) {
+func (m *QueryGreatestSeqByOperatorResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
@@ -1697,12 +1973,12 @@ func (m *GreatestSeqByOperatorResponse) Marshal() (dAtA []byte, err error) {
return dAtA[:n], nil
}
-func (m *GreatestSeqByOperatorResponse) MarshalTo(dAtA []byte) (int, error) {
+func (m *QueryGreatestSeqByOperatorResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
-func (m *GreatestSeqByOperatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+func (m *QueryGreatestSeqByOperatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
@@ -1715,7 +1991,7 @@ func (m *GreatestSeqByOperatorResponse) MarshalToSizedBuffer(dAtA []byte) (int,
return len(dAtA) - i, nil
}
-func (m *GreatestConsecutiveConfirmedSeqRequest) Marshal() (dAtA []byte, err error) {
+func (m *QueryGreatestConsecutiveConfirmedSeqRequest) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
@@ -1725,12 +2001,12 @@ func (m *GreatestConsecutiveConfirmedSeqRequest) Marshal() (dAtA []byte, err err
return dAtA[:n], nil
}
-func (m *GreatestConsecutiveConfirmedSeqRequest) MarshalTo(dAtA []byte) (int, error) {
+func (m *QueryGreatestConsecutiveConfirmedSeqRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
-func (m *GreatestConsecutiveConfirmedSeqRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+func (m *QueryGreatestConsecutiveConfirmedSeqRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
@@ -1738,7 +2014,7 @@ func (m *GreatestConsecutiveConfirmedSeqRequest) MarshalToSizedBuffer(dAtA []byt
return len(dAtA) - i, nil
}
-func (m *GreatestConsecutiveConfirmedSeqResponse) Marshal() (dAtA []byte, err error) {
+func (m *QueryGreatestConsecutiveConfirmedSeqResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
@@ -1748,12 +2024,12 @@ func (m *GreatestConsecutiveConfirmedSeqResponse) Marshal() (dAtA []byte, err er
return dAtA[:n], nil
}
-func (m *GreatestConsecutiveConfirmedSeqResponse) MarshalTo(dAtA []byte) (int, error) {
+func (m *QueryGreatestConsecutiveConfirmedSeqResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
-func (m *GreatestConsecutiveConfirmedSeqResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+func (m *QueryGreatestConsecutiveConfirmedSeqResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
@@ -1766,7 +2042,7 @@ func (m *GreatestConsecutiveConfirmedSeqResponse) MarshalToSizedBuffer(dAtA []by
return len(dAtA) - i, nil
}
-func (m *SubmittedProvisionRequest) Marshal() (dAtA []byte, err error) {
+func (m *QuerySubmittedProvisionRequest) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
@@ -1776,12 +2052,12 @@ func (m *SubmittedProvisionRequest) Marshal() (dAtA []byte, err error) {
return dAtA[:n], nil
}
-func (m *SubmittedProvisionRequest) MarshalTo(dAtA []byte) (int, error) {
+func (m *QuerySubmittedProvisionRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
-func (m *SubmittedProvisionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+func (m *QuerySubmittedProvisionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
@@ -1801,7 +2077,7 @@ func (m *SubmittedProvisionRequest) MarshalToSizedBuffer(dAtA []byte) (int, erro
return len(dAtA) - i, nil
}
-func (m *SubmittedProvisionResponse) Marshal() (dAtA []byte, err error) {
+func (m *QuerySubmittedProvisionResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
@@ -1811,12 +2087,12 @@ func (m *SubmittedProvisionResponse) Marshal() (dAtA []byte, err error) {
return dAtA[:n], nil
}
-func (m *SubmittedProvisionResponse) MarshalTo(dAtA []byte) (int, error) {
+func (m *QuerySubmittedProvisionResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
-func (m *SubmittedProvisionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+func (m *QuerySubmittedProvisionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
@@ -1844,7 +2120,7 @@ func (m *SubmittedProvisionResponse) MarshalToSizedBuffer(dAtA []byte) (int, err
return len(dAtA) - i, nil
}
-func (m *NeededSubmissionSeqsRequest) Marshal() (dAtA []byte, err error) {
+func (m *QueryNeededSubmissionSeqsRequest) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
@@ -1854,12 +2130,12 @@ func (m *NeededSubmissionSeqsRequest) Marshal() (dAtA []byte, err error) {
return dAtA[:n], nil
}
-func (m *NeededSubmissionSeqsRequest) MarshalTo(dAtA []byte) (int, error) {
+func (m *QueryNeededSubmissionSeqsRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
-func (m *NeededSubmissionSeqsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+func (m *QueryNeededSubmissionSeqsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
@@ -1879,7 +2155,7 @@ func (m *NeededSubmissionSeqsRequest) MarshalToSizedBuffer(dAtA []byte) (int, er
return len(dAtA) - i, nil
}
-func (m *NeededSubmissionSeqsResponse) Marshal() (dAtA []byte, err error) {
+func (m *QueryNeededSubmissionSeqsResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
@@ -1889,12 +2165,12 @@ func (m *NeededSubmissionSeqsResponse) Marshal() (dAtA []byte, err error) {
return dAtA[:n], nil
}
-func (m *NeededSubmissionSeqsResponse) MarshalTo(dAtA []byte) (int, error) {
+func (m *QueryNeededSubmissionSeqsResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
-func (m *NeededSubmissionSeqsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+func (m *QueryNeededSubmissionSeqsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
@@ -1920,7 +2196,7 @@ func (m *NeededSubmissionSeqsResponse) MarshalToSizedBuffer(dAtA []byte) (int, e
return len(dAtA) - i, nil
}
-func (m *ConfirmedProvisionRequest) Marshal() (dAtA []byte, err error) {
+func (m *QueryConfirmedProvisionRequest) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
@@ -1930,12 +2206,12 @@ func (m *ConfirmedProvisionRequest) Marshal() (dAtA []byte, err error) {
return dAtA[:n], nil
}
-func (m *ConfirmedProvisionRequest) MarshalTo(dAtA []byte) (int, error) {
+func (m *QueryConfirmedProvisionRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
-func (m *ConfirmedProvisionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+func (m *QueryConfirmedProvisionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
@@ -1948,7 +2224,7 @@ func (m *ConfirmedProvisionRequest) MarshalToSizedBuffer(dAtA []byte) (int, erro
return len(dAtA) - i, nil
}
-func (m *ConfirmedProvisionResponse) Marshal() (dAtA []byte, err error) {
+func (m *QueryConfirmedProvisionResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
@@ -1958,12 +2234,12 @@ func (m *ConfirmedProvisionResponse) Marshal() (dAtA []byte, err error) {
return dAtA[:n], nil
}
-func (m *ConfirmedProvisionResponse) MarshalTo(dAtA []byte) (int, error) {
+func (m *QueryConfirmedProvisionResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
-func (m *ConfirmedProvisionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+func (m *QueryConfirmedProvisionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
@@ -1991,7 +2267,7 @@ func (m *ConfirmedProvisionResponse) MarshalToSizedBuffer(dAtA []byte) (int, err
return len(dAtA) - i, nil
}
-func (m *CommitmentsRequest) Marshal() (dAtA []byte, err error) {
+func (m *QueryCommitmentsRequest) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
@@ -2001,12 +2277,12 @@ func (m *CommitmentsRequest) Marshal() (dAtA []byte, err error) {
return dAtA[:n], nil
}
-func (m *CommitmentsRequest) MarshalTo(dAtA []byte) (int, error) {
+func (m *QueryCommitmentsRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
-func (m *CommitmentsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+func (m *QueryCommitmentsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
@@ -2019,7 +2295,7 @@ func (m *CommitmentsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
return len(dAtA) - i, nil
}
-func (m *CommitmentsResponse) Marshal() (dAtA []byte, err error) {
+func (m *QueryCommitmentsResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
@@ -2029,12 +2305,12 @@ func (m *CommitmentsResponse) Marshal() (dAtA []byte, err error) {
return dAtA[:n], nil
}
-func (m *CommitmentsResponse) MarshalTo(dAtA []byte) (int, error) {
+func (m *QueryCommitmentsResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
-func (m *CommitmentsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+func (m *QueryCommitmentsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
@@ -2051,7 +2327,7 @@ func (m *CommitmentsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
return len(dAtA) - i, nil
}
-func (m *GuardiansRequest) Marshal() (dAtA []byte, err error) {
+func (m *QueryGuardiansRequest) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
@@ -2061,12 +2337,12 @@ func (m *GuardiansRequest) Marshal() (dAtA []byte, err error) {
return dAtA[:n], nil
}
-func (m *GuardiansRequest) MarshalTo(dAtA []byte) (int, error) {
+func (m *QueryGuardiansRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
-func (m *GuardiansRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+func (m *QueryGuardiansRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
@@ -2074,7 +2350,7 @@ func (m *GuardiansRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
return len(dAtA) - i, nil
}
-func (m *GuardiansResponse) Marshal() (dAtA []byte, err error) {
+func (m *QueryGuardiansResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
@@ -2084,12 +2360,12 @@ func (m *GuardiansResponse) Marshal() (dAtA []byte, err error) {
return dAtA[:n], nil
}
-func (m *GuardiansResponse) MarshalTo(dAtA []byte) (int, error) {
+func (m *QueryGuardiansResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
-func (m *GuardiansResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+func (m *QueryGuardiansResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
@@ -2106,7 +2382,7 @@ func (m *GuardiansResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
return len(dAtA) - i, nil
}
-func (m *OperatorsRequest) Marshal() (dAtA []byte, err error) {
+func (m *QueryOperatorsRequest) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
@@ -2116,12 +2392,12 @@ func (m *OperatorsRequest) Marshal() (dAtA []byte, err error) {
return dAtA[:n], nil
}
-func (m *OperatorsRequest) MarshalTo(dAtA []byte) (int, error) {
+func (m *QueryOperatorsRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
-func (m *OperatorsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+func (m *QueryOperatorsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
@@ -2129,7 +2405,7 @@ func (m *OperatorsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
return len(dAtA) - i, nil
}
-func (m *OperatorsResponse) Marshal() (dAtA []byte, err error) {
+func (m *QueryOperatorsResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
@@ -2139,12 +2415,12 @@ func (m *OperatorsResponse) Marshal() (dAtA []byte, err error) {
return dAtA[:n], nil
}
-func (m *OperatorsResponse) MarshalTo(dAtA []byte) (int, error) {
+func (m *QueryOperatorsResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
-func (m *OperatorsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+func (m *QueryOperatorsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
@@ -2161,7 +2437,7 @@ func (m *OperatorsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
return len(dAtA) - i, nil
}
-func (m *JudgesRequest) Marshal() (dAtA []byte, err error) {
+func (m *QueryJudgesRequest) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
@@ -2171,12 +2447,12 @@ func (m *JudgesRequest) Marshal() (dAtA []byte, err error) {
return dAtA[:n], nil
}
-func (m *JudgesRequest) MarshalTo(dAtA []byte) (int, error) {
+func (m *QueryJudgesRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
-func (m *JudgesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+func (m *QueryJudgesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
@@ -2184,7 +2460,7 @@ func (m *JudgesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
return len(dAtA) - i, nil
}
-func (m *JudgesResponse) Marshal() (dAtA []byte, err error) {
+func (m *QueryJudgesResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
@@ -2194,12 +2470,12 @@ func (m *JudgesResponse) Marshal() (dAtA []byte, err error) {
return dAtA[:n], nil
}
-func (m *JudgesResponse) MarshalTo(dAtA []byte) (int, error) {
+func (m *QueryJudgesResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
-func (m *JudgesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+func (m *QueryJudgesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
@@ -2216,6 +2492,143 @@ func (m *JudgesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
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] = 0xa
+ }
+ 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 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 *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.ProposalId) > 0 {
+ i -= len(m.ProposalId)
+ copy(dAtA[i:], m.ProposalId)
+ i = encodeVarintQuery(dAtA, i, uint64(len(m.ProposalId)))
+ 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
+ _ = 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 encodeVarintQuery(dAtA []byte, offset int, v uint64) int {
offset -= sovQuery(v)
base := offset
@@ -2247,7 +2660,7 @@ func (m *QueryParamsResponse) Size() (n int) {
return n
}
-func (m *NextSeqSendRequest) Size() (n int) {
+func (m *QueryNextSeqSendRequest) Size() (n int) {
if m == nil {
return 0
}
@@ -2256,7 +2669,7 @@ func (m *NextSeqSendRequest) Size() (n int) {
return n
}
-func (m *NextSeqSendResponse) Size() (n int) {
+func (m *QueryNextSeqSendResponse) Size() (n int) {
if m == nil {
return 0
}
@@ -2268,7 +2681,7 @@ func (m *NextSeqSendResponse) Size() (n int) {
return n
}
-func (m *GreatestSeqByOperatorRequest) Size() (n int) {
+func (m *QueryGreatestSeqByOperatorRequest) Size() (n int) {
if m == nil {
return 0
}
@@ -2281,7 +2694,7 @@ func (m *GreatestSeqByOperatorRequest) Size() (n int) {
return n
}
-func (m *GreatestSeqByOperatorResponse) Size() (n int) {
+func (m *QueryGreatestSeqByOperatorResponse) Size() (n int) {
if m == nil {
return 0
}
@@ -2293,7 +2706,7 @@ func (m *GreatestSeqByOperatorResponse) Size() (n int) {
return n
}
-func (m *GreatestConsecutiveConfirmedSeqRequest) Size() (n int) {
+func (m *QueryGreatestConsecutiveConfirmedSeqRequest) Size() (n int) {
if m == nil {
return 0
}
@@ -2302,7 +2715,7 @@ func (m *GreatestConsecutiveConfirmedSeqRequest) Size() (n int) {
return n
}
-func (m *GreatestConsecutiveConfirmedSeqResponse) Size() (n int) {
+func (m *QueryGreatestConsecutiveConfirmedSeqResponse) Size() (n int) {
if m == nil {
return 0
}
@@ -2314,7 +2727,7 @@ func (m *GreatestConsecutiveConfirmedSeqResponse) Size() (n int) {
return n
}
-func (m *SubmittedProvisionRequest) Size() (n int) {
+func (m *QuerySubmittedProvisionRequest) Size() (n int) {
if m == nil {
return 0
}
@@ -2330,7 +2743,7 @@ func (m *SubmittedProvisionRequest) Size() (n int) {
return n
}
-func (m *SubmittedProvisionResponse) Size() (n int) {
+func (m *QuerySubmittedProvisionResponse) Size() (n int) {
if m == nil {
return 0
}
@@ -2343,7 +2756,7 @@ func (m *SubmittedProvisionResponse) Size() (n int) {
return n
}
-func (m *NeededSubmissionSeqsRequest) Size() (n int) {
+func (m *QueryNeededSubmissionSeqsRequest) Size() (n int) {
if m == nil {
return 0
}
@@ -2359,7 +2772,7 @@ func (m *NeededSubmissionSeqsRequest) Size() (n int) {
return n
}
-func (m *NeededSubmissionSeqsResponse) Size() (n int) {
+func (m *QueryNeededSubmissionSeqsResponse) Size() (n int) {
if m == nil {
return 0
}
@@ -2375,7 +2788,7 @@ func (m *NeededSubmissionSeqsResponse) Size() (n int) {
return n
}
-func (m *ConfirmedProvisionRequest) Size() (n int) {
+func (m *QueryConfirmedProvisionRequest) Size() (n int) {
if m == nil {
return 0
}
@@ -2387,7 +2800,7 @@ func (m *ConfirmedProvisionRequest) Size() (n int) {
return n
}
-func (m *ConfirmedProvisionResponse) Size() (n int) {
+func (m *QueryConfirmedProvisionResponse) Size() (n int) {
if m == nil {
return 0
}
@@ -2400,7 +2813,7 @@ func (m *ConfirmedProvisionResponse) Size() (n int) {
return n
}
-func (m *CommitmentsRequest) Size() (n int) {
+func (m *QueryCommitmentsRequest) Size() (n int) {
if m == nil {
return 0
}
@@ -2412,7 +2825,7 @@ func (m *CommitmentsRequest) Size() (n int) {
return n
}
-func (m *CommitmentsResponse) Size() (n int) {
+func (m *QueryCommitmentsResponse) Size() (n int) {
if m == nil {
return 0
}
@@ -2427,7 +2840,7 @@ func (m *CommitmentsResponse) Size() (n int) {
return n
}
-func (m *GuardiansRequest) Size() (n int) {
+func (m *QueryGuardiansRequest) Size() (n int) {
if m == nil {
return 0
}
@@ -2436,7 +2849,7 @@ func (m *GuardiansRequest) Size() (n int) {
return n
}
-func (m *GuardiansResponse) Size() (n int) {
+func (m *QueryGuardiansResponse) Size() (n int) {
if m == nil {
return 0
}
@@ -2451,7 +2864,7 @@ func (m *GuardiansResponse) Size() (n int) {
return n
}
-func (m *OperatorsRequest) Size() (n int) {
+func (m *QueryOperatorsRequest) Size() (n int) {
if m == nil {
return 0
}
@@ -2460,7 +2873,7 @@ func (m *OperatorsRequest) Size() (n int) {
return n
}
-func (m *OperatorsResponse) Size() (n int) {
+func (m *QueryOperatorsResponse) Size() (n int) {
if m == nil {
return 0
}
@@ -2475,7 +2888,7 @@ func (m *OperatorsResponse) Size() (n int) {
return n
}
-func (m *JudgesRequest) Size() (n int) {
+func (m *QueryJudgesRequest) Size() (n int) {
if m == nil {
return 0
}
@@ -2484,7 +2897,7 @@ func (m *JudgesRequest) Size() (n int) {
return n
}
-func (m *JudgesResponse) Size() (n int) {
+func (m *QueryJudgesResponse) Size() (n int) {
if m == nil {
return 0
}
@@ -2499,9 +2912,63 @@ func (m *JudgesResponse) 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 (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))
+ }
+ }
+ return n
+}
+
+func (m *QueryProposalRequest) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.ProposalId)
+ if l > 0 {
+ n += 1 + l + sovQuery(uint64(l))
+ }
+ 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 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))))
}
@@ -2638,7 +3105,7 @@ func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error {
}
return nil
}
-func (m *NextSeqSendRequest) Unmarshal(dAtA []byte) error {
+func (m *QueryNextSeqSendRequest) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
@@ -2661,10 +3128,10 @@ func (m *NextSeqSendRequest) Unmarshal(dAtA []byte) error {
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
- return fmt.Errorf("proto: NextSeqSendRequest: wiretype end group for non-group")
+ return fmt.Errorf("proto: QueryNextSeqSendRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
- return fmt.Errorf("proto: NextSeqSendRequest: illegal tag %d (wire type %d)", fieldNum, wire)
+ return fmt.Errorf("proto: QueryNextSeqSendRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
@@ -2688,7 +3155,7 @@ func (m *NextSeqSendRequest) Unmarshal(dAtA []byte) error {
}
return nil
}
-func (m *NextSeqSendResponse) Unmarshal(dAtA []byte) error {
+func (m *QueryNextSeqSendResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
@@ -2711,10 +3178,10 @@ func (m *NextSeqSendResponse) Unmarshal(dAtA []byte) error {
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
- return fmt.Errorf("proto: NextSeqSendResponse: wiretype end group for non-group")
+ return fmt.Errorf("proto: QueryNextSeqSendResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
- return fmt.Errorf("proto: NextSeqSendResponse: illegal tag %d (wire type %d)", fieldNum, wire)
+ return fmt.Errorf("proto: QueryNextSeqSendResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
@@ -2757,7 +3224,7 @@ func (m *NextSeqSendResponse) Unmarshal(dAtA []byte) error {
}
return nil
}
-func (m *GreatestSeqByOperatorRequest) Unmarshal(dAtA []byte) error {
+func (m *QueryGreatestSeqByOperatorRequest) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
@@ -2780,10 +3247,10 @@ func (m *GreatestSeqByOperatorRequest) Unmarshal(dAtA []byte) error {
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
- return fmt.Errorf("proto: GreatestSeqByOperatorRequest: wiretype end group for non-group")
+ return fmt.Errorf("proto: QueryGreatestSeqByOperatorRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
- return fmt.Errorf("proto: GreatestSeqByOperatorRequest: illegal tag %d (wire type %d)", fieldNum, wire)
+ return fmt.Errorf("proto: QueryGreatestSeqByOperatorRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
@@ -2839,7 +3306,7 @@ func (m *GreatestSeqByOperatorRequest) Unmarshal(dAtA []byte) error {
}
return nil
}
-func (m *GreatestSeqByOperatorResponse) Unmarshal(dAtA []byte) error {
+func (m *QueryGreatestSeqByOperatorResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
@@ -2862,10 +3329,10 @@ func (m *GreatestSeqByOperatorResponse) Unmarshal(dAtA []byte) error {
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
- return fmt.Errorf("proto: GreatestSeqByOperatorResponse: wiretype end group for non-group")
+ return fmt.Errorf("proto: QueryGreatestSeqByOperatorResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
- return fmt.Errorf("proto: GreatestSeqByOperatorResponse: illegal tag %d (wire type %d)", fieldNum, wire)
+ return fmt.Errorf("proto: QueryGreatestSeqByOperatorResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
@@ -2908,7 +3375,7 @@ func (m *GreatestSeqByOperatorResponse) Unmarshal(dAtA []byte) error {
}
return nil
}
-func (m *GreatestConsecutiveConfirmedSeqRequest) Unmarshal(dAtA []byte) error {
+func (m *QueryGreatestConsecutiveConfirmedSeqRequest) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
@@ -2931,10 +3398,10 @@ func (m *GreatestConsecutiveConfirmedSeqRequest) Unmarshal(dAtA []byte) error {
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
- return fmt.Errorf("proto: GreatestConsecutiveConfirmedSeqRequest: wiretype end group for non-group")
+ return fmt.Errorf("proto: QueryGreatestConsecutiveConfirmedSeqRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
- return fmt.Errorf("proto: GreatestConsecutiveConfirmedSeqRequest: illegal tag %d (wire type %d)", fieldNum, wire)
+ return fmt.Errorf("proto: QueryGreatestConsecutiveConfirmedSeqRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
@@ -2958,7 +3425,7 @@ func (m *GreatestConsecutiveConfirmedSeqRequest) Unmarshal(dAtA []byte) error {
}
return nil
}
-func (m *GreatestConsecutiveConfirmedSeqResponse) Unmarshal(dAtA []byte) error {
+func (m *QueryGreatestConsecutiveConfirmedSeqResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
@@ -2981,10 +3448,10 @@ func (m *GreatestConsecutiveConfirmedSeqResponse) Unmarshal(dAtA []byte) error {
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
- return fmt.Errorf("proto: GreatestConsecutiveConfirmedSeqResponse: wiretype end group for non-group")
+ return fmt.Errorf("proto: QueryGreatestConsecutiveConfirmedSeqResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
- return fmt.Errorf("proto: GreatestConsecutiveConfirmedSeqResponse: illegal tag %d (wire type %d)", fieldNum, wire)
+ return fmt.Errorf("proto: QueryGreatestConsecutiveConfirmedSeqResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
@@ -3027,7 +3494,7 @@ func (m *GreatestConsecutiveConfirmedSeqResponse) Unmarshal(dAtA []byte) error {
}
return nil
}
-func (m *SubmittedProvisionRequest) Unmarshal(dAtA []byte) error {
+func (m *QuerySubmittedProvisionRequest) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
@@ -3050,10 +3517,10 @@ func (m *SubmittedProvisionRequest) Unmarshal(dAtA []byte) error {
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
- return fmt.Errorf("proto: SubmittedProvisionRequest: wiretype end group for non-group")
+ return fmt.Errorf("proto: QuerySubmittedProvisionRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
- return fmt.Errorf("proto: SubmittedProvisionRequest: illegal tag %d (wire type %d)", fieldNum, wire)
+ return fmt.Errorf("proto: QuerySubmittedProvisionRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
@@ -3128,7 +3595,7 @@ func (m *SubmittedProvisionRequest) Unmarshal(dAtA []byte) error {
}
return nil
}
-func (m *SubmittedProvisionResponse) Unmarshal(dAtA []byte) error {
+func (m *QuerySubmittedProvisionResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
@@ -3151,10 +3618,10 @@ func (m *SubmittedProvisionResponse) Unmarshal(dAtA []byte) error {
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
- return fmt.Errorf("proto: SubmittedProvisionResponse: wiretype end group for non-group")
+ return fmt.Errorf("proto: QuerySubmittedProvisionResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
- return fmt.Errorf("proto: SubmittedProvisionResponse: illegal tag %d (wire type %d)", fieldNum, wire)
+ return fmt.Errorf("proto: QuerySubmittedProvisionResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
@@ -3244,7 +3711,7 @@ func (m *SubmittedProvisionResponse) Unmarshal(dAtA []byte) error {
}
return nil
}
-func (m *NeededSubmissionSeqsRequest) Unmarshal(dAtA []byte) error {
+func (m *QueryNeededSubmissionSeqsRequest) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
@@ -3267,10 +3734,10 @@ func (m *NeededSubmissionSeqsRequest) Unmarshal(dAtA []byte) error {
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
- return fmt.Errorf("proto: NeededSubmissionSeqsRequest: wiretype end group for non-group")
+ return fmt.Errorf("proto: QueryNeededSubmissionSeqsRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
- return fmt.Errorf("proto: NeededSubmissionSeqsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
+ return fmt.Errorf("proto: QueryNeededSubmissionSeqsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
@@ -3345,7 +3812,7 @@ func (m *NeededSubmissionSeqsRequest) Unmarshal(dAtA []byte) error {
}
return nil
}
-func (m *NeededSubmissionSeqsResponse) Unmarshal(dAtA []byte) error {
+func (m *QueryNeededSubmissionSeqsResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
@@ -3368,10 +3835,10 @@ func (m *NeededSubmissionSeqsResponse) Unmarshal(dAtA []byte) error {
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
- return fmt.Errorf("proto: NeededSubmissionSeqsResponse: wiretype end group for non-group")
+ return fmt.Errorf("proto: QueryNeededSubmissionSeqsResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
- return fmt.Errorf("proto: NeededSubmissionSeqsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
+ return fmt.Errorf("proto: QueryNeededSubmissionSeqsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
@@ -3471,7 +3938,7 @@ func (m *NeededSubmissionSeqsResponse) Unmarshal(dAtA []byte) error {
}
return nil
}
-func (m *ConfirmedProvisionRequest) Unmarshal(dAtA []byte) error {
+func (m *QueryConfirmedProvisionRequest) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
@@ -3494,10 +3961,10 @@ func (m *ConfirmedProvisionRequest) Unmarshal(dAtA []byte) error {
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
- return fmt.Errorf("proto: ConfirmedProvisionRequest: wiretype end group for non-group")
+ return fmt.Errorf("proto: QueryConfirmedProvisionRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
- return fmt.Errorf("proto: ConfirmedProvisionRequest: illegal tag %d (wire type %d)", fieldNum, wire)
+ return fmt.Errorf("proto: QueryConfirmedProvisionRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
@@ -3540,7 +4007,7 @@ func (m *ConfirmedProvisionRequest) Unmarshal(dAtA []byte) error {
}
return nil
}
-func (m *ConfirmedProvisionResponse) Unmarshal(dAtA []byte) error {
+func (m *QueryConfirmedProvisionResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
@@ -3563,10 +4030,10 @@ func (m *ConfirmedProvisionResponse) Unmarshal(dAtA []byte) error {
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
- return fmt.Errorf("proto: ConfirmedProvisionResponse: wiretype end group for non-group")
+ return fmt.Errorf("proto: QueryConfirmedProvisionResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
- return fmt.Errorf("proto: ConfirmedProvisionResponse: illegal tag %d (wire type %d)", fieldNum, wire)
+ return fmt.Errorf("proto: QueryConfirmedProvisionResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
@@ -3656,7 +4123,7 @@ func (m *ConfirmedProvisionResponse) Unmarshal(dAtA []byte) error {
}
return nil
}
-func (m *CommitmentsRequest) Unmarshal(dAtA []byte) error {
+func (m *QueryCommitmentsRequest) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
@@ -3679,10 +4146,10 @@ func (m *CommitmentsRequest) Unmarshal(dAtA []byte) error {
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
- return fmt.Errorf("proto: CommitmentsRequest: wiretype end group for non-group")
+ return fmt.Errorf("proto: QueryCommitmentsRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
- return fmt.Errorf("proto: CommitmentsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
+ return fmt.Errorf("proto: QueryCommitmentsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
@@ -3725,7 +4192,7 @@ func (m *CommitmentsRequest) Unmarshal(dAtA []byte) error {
}
return nil
}
-func (m *CommitmentsResponse) Unmarshal(dAtA []byte) error {
+func (m *QueryCommitmentsResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
@@ -3748,10 +4215,10 @@ func (m *CommitmentsResponse) Unmarshal(dAtA []byte) error {
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
- return fmt.Errorf("proto: CommitmentsResponse: wiretype end group for non-group")
+ return fmt.Errorf("proto: QueryCommitmentsResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
- return fmt.Errorf("proto: CommitmentsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
+ return fmt.Errorf("proto: QueryCommitmentsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
@@ -3807,7 +4274,7 @@ func (m *CommitmentsResponse) Unmarshal(dAtA []byte) error {
}
return nil
}
-func (m *GuardiansRequest) Unmarshal(dAtA []byte) error {
+func (m *QueryGuardiansRequest) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
@@ -3830,10 +4297,10 @@ func (m *GuardiansRequest) Unmarshal(dAtA []byte) error {
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
- return fmt.Errorf("proto: GuardiansRequest: wiretype end group for non-group")
+ return fmt.Errorf("proto: QueryGuardiansRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
- return fmt.Errorf("proto: GuardiansRequest: illegal tag %d (wire type %d)", fieldNum, wire)
+ return fmt.Errorf("proto: QueryGuardiansRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
@@ -3857,7 +4324,7 @@ func (m *GuardiansRequest) Unmarshal(dAtA []byte) error {
}
return nil
}
-func (m *GuardiansResponse) Unmarshal(dAtA []byte) error {
+func (m *QueryGuardiansResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
@@ -3880,10 +4347,10 @@ func (m *GuardiansResponse) Unmarshal(dAtA []byte) error {
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
- return fmt.Errorf("proto: GuardiansResponse: wiretype end group for non-group")
+ return fmt.Errorf("proto: QueryGuardiansResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
- return fmt.Errorf("proto: GuardiansResponse: illegal tag %d (wire type %d)", fieldNum, wire)
+ return fmt.Errorf("proto: QueryGuardiansResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
@@ -3939,7 +4406,7 @@ func (m *GuardiansResponse) Unmarshal(dAtA []byte) error {
}
return nil
}
-func (m *OperatorsRequest) Unmarshal(dAtA []byte) error {
+func (m *QueryOperatorsRequest) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
@@ -3962,10 +4429,10 @@ func (m *OperatorsRequest) Unmarshal(dAtA []byte) error {
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
- return fmt.Errorf("proto: OperatorsRequest: wiretype end group for non-group")
+ return fmt.Errorf("proto: QueryOperatorsRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
- return fmt.Errorf("proto: OperatorsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
+ return fmt.Errorf("proto: QueryOperatorsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
@@ -3989,7 +4456,7 @@ func (m *OperatorsRequest) Unmarshal(dAtA []byte) error {
}
return nil
}
-func (m *OperatorsResponse) Unmarshal(dAtA []byte) error {
+func (m *QueryOperatorsResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
@@ -4012,10 +4479,10 @@ func (m *OperatorsResponse) Unmarshal(dAtA []byte) error {
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
- return fmt.Errorf("proto: OperatorsResponse: wiretype end group for non-group")
+ return fmt.Errorf("proto: QueryOperatorsResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
- return fmt.Errorf("proto: OperatorsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
+ return fmt.Errorf("proto: QueryOperatorsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
@@ -4071,7 +4538,7 @@ func (m *OperatorsResponse) Unmarshal(dAtA []byte) error {
}
return nil
}
-func (m *JudgesRequest) Unmarshal(dAtA []byte) error {
+func (m *QueryJudgesRequest) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
@@ -4094,10 +4561,10 @@ func (m *JudgesRequest) Unmarshal(dAtA []byte) error {
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
- return fmt.Errorf("proto: JudgesRequest: wiretype end group for non-group")
+ return fmt.Errorf("proto: QueryJudgesRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
- return fmt.Errorf("proto: JudgesRequest: illegal tag %d (wire type %d)", fieldNum, wire)
+ return fmt.Errorf("proto: QueryJudgesRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
@@ -4121,7 +4588,7 @@ func (m *JudgesRequest) Unmarshal(dAtA []byte) error {
}
return nil
}
-func (m *JudgesResponse) Unmarshal(dAtA []byte) error {
+func (m *QueryJudgesResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
@@ -4144,10 +4611,10 @@ func (m *JudgesResponse) Unmarshal(dAtA []byte) error {
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
- return fmt.Errorf("proto: JudgesResponse: wiretype end group for non-group")
+ return fmt.Errorf("proto: QueryJudgesResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
- return fmt.Errorf("proto: JudgesResponse: illegal tag %d (wire type %d)", fieldNum, wire)
+ return fmt.Errorf("proto: QueryJudgesResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
@@ -4203,6 +4670,344 @@ func (m *JudgesResponse) Unmarshal(dAtA []byte) error {
}
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 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 *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, &RoleProposal{})
+ if err := m.Proposals[len(m.Proposals)-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 *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 ProposalId", 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.ProposalId = 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 *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 = &RoleProposal{}
+ }
+ 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 skipQuery(dAtA []byte) (n int, err error) {
l := len(dAtA)
iNdEx := 0
diff --git a/x/fbridge/types/query.pb.gw.go b/x/fbridge/types/query.pb.gw.go
index 380319a8a8..8de3ab8ffe 100644
--- a/x/fbridge/types/query.pb.gw.go
+++ b/x/fbridge/types/query.pb.gw.go
@@ -50,7 +50,7 @@ func local_request_Query_Params_0(ctx context.Context, marshaler runtime.Marshal
}
func request_Query_NextSeqSend_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
- var protoReq NextSeqSendRequest
+ var protoReq QueryNextSeqSendRequest
var metadata runtime.ServerMetadata
msg, err := client.NextSeqSend(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
@@ -59,7 +59,7 @@ func request_Query_NextSeqSend_0(ctx context.Context, marshaler runtime.Marshale
}
func local_request_Query_NextSeqSend_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
- var protoReq NextSeqSendRequest
+ var protoReq QueryNextSeqSendRequest
var metadata runtime.ServerMetadata
msg, err := server.NextSeqSend(ctx, &protoReq)
@@ -68,7 +68,7 @@ func local_request_Query_NextSeqSend_0(ctx context.Context, marshaler runtime.Ma
}
func request_Query_GreatestSeqByOperator_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
- var protoReq GreatestSeqByOperatorRequest
+ var protoReq QueryGreatestSeqByOperatorRequest
var metadata runtime.ServerMetadata
var (
@@ -95,7 +95,7 @@ func request_Query_GreatestSeqByOperator_0(ctx context.Context, marshaler runtim
}
func local_request_Query_GreatestSeqByOperator_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
- var protoReq GreatestSeqByOperatorRequest
+ var protoReq QueryGreatestSeqByOperatorRequest
var metadata runtime.ServerMetadata
var (
@@ -122,7 +122,7 @@ func local_request_Query_GreatestSeqByOperator_0(ctx context.Context, marshaler
}
func request_Query_GreatestConsecutiveConfirmedSeq_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
- var protoReq GreatestConsecutiveConfirmedSeqRequest
+ var protoReq QueryGreatestConsecutiveConfirmedSeqRequest
var metadata runtime.ServerMetadata
msg, err := client.GreatestConsecutiveConfirmedSeq(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
@@ -131,7 +131,7 @@ func request_Query_GreatestConsecutiveConfirmedSeq_0(ctx context.Context, marsha
}
func local_request_Query_GreatestConsecutiveConfirmedSeq_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
- var protoReq GreatestConsecutiveConfirmedSeqRequest
+ var protoReq QueryGreatestConsecutiveConfirmedSeqRequest
var metadata runtime.ServerMetadata
msg, err := server.GreatestConsecutiveConfirmedSeq(ctx, &protoReq)
@@ -140,7 +140,7 @@ func local_request_Query_GreatestConsecutiveConfirmedSeq_0(ctx context.Context,
}
func request_Query_SubmittedProvision_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
- var protoReq SubmittedProvisionRequest
+ var protoReq QuerySubmittedProvisionRequest
var metadata runtime.ServerMetadata
var (
@@ -178,7 +178,7 @@ func request_Query_SubmittedProvision_0(ctx context.Context, marshaler runtime.M
}
func local_request_Query_SubmittedProvision_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
- var protoReq SubmittedProvisionRequest
+ var protoReq QuerySubmittedProvisionRequest
var metadata runtime.ServerMetadata
var (
@@ -216,7 +216,7 @@ func local_request_Query_SubmittedProvision_0(ctx context.Context, marshaler run
}
func request_Query_ConfirmedProvision_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
- var protoReq ConfirmedProvisionRequest
+ var protoReq QueryConfirmedProvisionRequest
var metadata runtime.ServerMetadata
var (
@@ -243,7 +243,7 @@ func request_Query_ConfirmedProvision_0(ctx context.Context, marshaler runtime.M
}
func local_request_Query_ConfirmedProvision_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
- var protoReq ConfirmedProvisionRequest
+ var protoReq QueryConfirmedProvisionRequest
var metadata runtime.ServerMetadata
var (
@@ -274,7 +274,7 @@ var (
)
func request_Query_NeededSubmissionSeqs_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
- var protoReq NeededSubmissionSeqsRequest
+ var protoReq QueryNeededSubmissionSeqsRequest
var metadata runtime.ServerMetadata
var (
@@ -308,7 +308,7 @@ func request_Query_NeededSubmissionSeqs_0(ctx context.Context, marshaler runtime
}
func local_request_Query_NeededSubmissionSeqs_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
- var protoReq NeededSubmissionSeqsRequest
+ var protoReq QueryNeededSubmissionSeqsRequest
var metadata runtime.ServerMetadata
var (
@@ -342,7 +342,7 @@ func local_request_Query_NeededSubmissionSeqs_0(ctx context.Context, marshaler r
}
func request_Query_Commitments_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
- var protoReq CommitmentsRequest
+ var protoReq QueryCommitmentsRequest
var metadata runtime.ServerMetadata
var (
@@ -369,7 +369,7 @@ func request_Query_Commitments_0(ctx context.Context, marshaler runtime.Marshale
}
func local_request_Query_Commitments_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
- var protoReq CommitmentsRequest
+ var protoReq QueryCommitmentsRequest
var metadata runtime.ServerMetadata
var (
@@ -396,7 +396,7 @@ func local_request_Query_Commitments_0(ctx context.Context, marshaler runtime.Ma
}
func request_Query_Guardians_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
- var protoReq GuardiansRequest
+ var protoReq QueryGuardiansRequest
var metadata runtime.ServerMetadata
msg, err := client.Guardians(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
@@ -405,7 +405,7 @@ func request_Query_Guardians_0(ctx context.Context, marshaler runtime.Marshaler,
}
func local_request_Query_Guardians_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
- var protoReq GuardiansRequest
+ var protoReq QueryGuardiansRequest
var metadata runtime.ServerMetadata
msg, err := server.Guardians(ctx, &protoReq)
@@ -414,7 +414,7 @@ func local_request_Query_Guardians_0(ctx context.Context, marshaler runtime.Mars
}
func request_Query_Operators_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
- var protoReq OperatorsRequest
+ var protoReq QueryOperatorsRequest
var metadata runtime.ServerMetadata
msg, err := client.Operators(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
@@ -423,7 +423,7 @@ func request_Query_Operators_0(ctx context.Context, marshaler runtime.Marshaler,
}
func local_request_Query_Operators_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
- var protoReq OperatorsRequest
+ var protoReq QueryOperatorsRequest
var metadata runtime.ServerMetadata
msg, err := server.Operators(ctx, &protoReq)
@@ -432,7 +432,7 @@ func local_request_Query_Operators_0(ctx context.Context, marshaler runtime.Mars
}
func request_Query_Judges_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
- var protoReq JudgesRequest
+ var protoReq QueryJudgesRequest
var metadata runtime.ServerMetadata
msg, err := client.Judges(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
@@ -441,7 +441,7 @@ func request_Query_Judges_0(ctx context.Context, marshaler runtime.Marshaler, cl
}
func local_request_Query_Judges_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
- var protoReq JudgesRequest
+ var protoReq QueryJudgesRequest
var metadata runtime.ServerMetadata
msg, err := server.Judges(ctx, &protoReq)
@@ -449,6 +449,96 @@ func local_request_Query_Judges_0(ctx context.Context, marshaler runtime.Marshal
}
+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
+
+}
+
+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["proposal_id"]
+ if !ok {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "proposal_id")
+ }
+
+ protoReq.ProposalId, err = runtime.String(val)
+
+ if err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "proposal_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["proposal_id"]
+ if !ok {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "proposal_id")
+ }
+
+ protoReq.ProposalId, err = runtime.String(val)
+
+ if err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "proposal_id", err)
+ }
+
+ msg, err := server.Proposal(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.
@@ -675,6 +765,46 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv
})
+ 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.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)
+ 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()...)
+
+ })
+
+ 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.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)
+ 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()...)
+
+ })
+
return nil
}
@@ -936,6 +1066,46 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie
})
+ 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()...)
+
+ })
+
+ 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()...)
+
+ })
+
return nil
}
@@ -961,6 +1131,10 @@ var (
pattern_Query_Operators_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"lbm", "fbridge", "v1", "operators"}, "", runtime.AssumeColonVerbOpt(false)))
pattern_Query_Judges_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"lbm", "fbridge", "v1", "judges"}, "", runtime.AssumeColonVerbOpt(false)))
+
+ pattern_Query_Proposals_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"lbm", "fbridge", "v1", "role", "proposals"}, "", runtime.AssumeColonVerbOpt(false)))
+
+ pattern_Query_Proposal_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 1, 0, 4, 1, 5, 5}, []string{"lbm", "fbridge", "v1", "role", "proposals", "proposal_id"}, "", runtime.AssumeColonVerbOpt(false)))
)
var (
@@ -985,4 +1159,8 @@ var (
forward_Query_Operators_0 = runtime.ForwardResponseMessage
forward_Query_Judges_0 = runtime.ForwardResponseMessage
+
+ forward_Query_Proposals_0 = runtime.ForwardResponseMessage
+
+ forward_Query_Proposal_0 = runtime.ForwardResponseMessage
)
diff --git a/x/fbridge/types/tx.pb.go b/x/fbridge/types/tx.pb.go
index 6c0f55d96e..91346052d5 100644
--- a/x/fbridge/types/tx.pb.go
+++ b/x/fbridge/types/tx.pb.go
@@ -689,7 +689,7 @@ func (m *MsgClaimResponse) XXX_DiscardUnknown() {
var xxx_messageInfo_MsgClaimResponse proto.InternalMessageInfo
// MsgUpdateRole is input values required for updating the role of an address
-type MsgUpdateRole struct {
+type MsgSuggestRole struct {
// the guardian address
From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
// the address to update the role
@@ -702,18 +702,18 @@ type MsgUpdateRole struct {
Role Role `protobuf:"varint,3,opt,name=role,proto3,enum=lbm.fbridge.v1.Role" json:"role,omitempty"`
}
-func (m *MsgUpdateRole) Reset() { *m = MsgUpdateRole{} }
-func (m *MsgUpdateRole) String() string { return proto.CompactTextString(m) }
-func (*MsgUpdateRole) ProtoMessage() {}
-func (*MsgUpdateRole) Descriptor() ([]byte, []int) {
+func (m *MsgSuggestRole) Reset() { *m = MsgSuggestRole{} }
+func (m *MsgSuggestRole) String() string { return proto.CompactTextString(m) }
+func (*MsgSuggestRole) ProtoMessage() {}
+func (*MsgSuggestRole) Descriptor() ([]byte, []int) {
return fileDescriptor_54a336bc5ea063bb, []int{14}
}
-func (m *MsgUpdateRole) XXX_Unmarshal(b []byte) error {
+func (m *MsgSuggestRole) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
-func (m *MsgUpdateRole) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+func (m *MsgSuggestRole) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
- return xxx_messageInfo_MsgUpdateRole.Marshal(b, m, deterministic)
+ return xxx_messageInfo_MsgSuggestRole.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
@@ -723,54 +723,54 @@ func (m *MsgUpdateRole) XXX_Marshal(b []byte, deterministic bool) ([]byte, error
return b[:n], nil
}
}
-func (m *MsgUpdateRole) XXX_Merge(src proto.Message) {
- xxx_messageInfo_MsgUpdateRole.Merge(m, src)
+func (m *MsgSuggestRole) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_MsgSuggestRole.Merge(m, src)
}
-func (m *MsgUpdateRole) XXX_Size() int {
+func (m *MsgSuggestRole) XXX_Size() int {
return m.Size()
}
-func (m *MsgUpdateRole) XXX_DiscardUnknown() {
- xxx_messageInfo_MsgUpdateRole.DiscardUnknown(m)
+func (m *MsgSuggestRole) XXX_DiscardUnknown() {
+ xxx_messageInfo_MsgSuggestRole.DiscardUnknown(m)
}
-var xxx_messageInfo_MsgUpdateRole proto.InternalMessageInfo
+var xxx_messageInfo_MsgSuggestRole proto.InternalMessageInfo
-func (m *MsgUpdateRole) GetFrom() string {
+func (m *MsgSuggestRole) GetFrom() string {
if m != nil {
return m.From
}
return ""
}
-func (m *MsgUpdateRole) GetTarget() string {
+func (m *MsgSuggestRole) GetTarget() string {
if m != nil {
return m.Target
}
return ""
}
-func (m *MsgUpdateRole) GetRole() Role {
+func (m *MsgSuggestRole) GetRole() Role {
if m != nil {
return m.Role
}
return Role_UNSPECIFIED
}
-type MsgUpdateRoleResponse struct {
+type MsgSuggestRoleResponse struct {
}
-func (m *MsgUpdateRoleResponse) Reset() { *m = MsgUpdateRoleResponse{} }
-func (m *MsgUpdateRoleResponse) String() string { return proto.CompactTextString(m) }
-func (*MsgUpdateRoleResponse) ProtoMessage() {}
-func (*MsgUpdateRoleResponse) Descriptor() ([]byte, []int) {
+func (m *MsgSuggestRoleResponse) Reset() { *m = MsgSuggestRoleResponse{} }
+func (m *MsgSuggestRoleResponse) String() string { return proto.CompactTextString(m) }
+func (*MsgSuggestRoleResponse) ProtoMessage() {}
+func (*MsgSuggestRoleResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_54a336bc5ea063bb, []int{15}
}
-func (m *MsgUpdateRoleResponse) XXX_Unmarshal(b []byte) error {
+func (m *MsgSuggestRoleResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
-func (m *MsgUpdateRoleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+func (m *MsgSuggestRoleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
- return xxx_messageInfo_MsgUpdateRoleResponse.Marshal(b, m, deterministic)
+ return xxx_messageInfo_MsgSuggestRoleResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
@@ -780,17 +780,118 @@ func (m *MsgUpdateRoleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byt
return b[:n], nil
}
}
-func (m *MsgUpdateRoleResponse) XXX_Merge(src proto.Message) {
- xxx_messageInfo_MsgUpdateRoleResponse.Merge(m, src)
+func (m *MsgSuggestRoleResponse) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_MsgSuggestRoleResponse.Merge(m, src)
}
-func (m *MsgUpdateRoleResponse) XXX_Size() int {
+func (m *MsgSuggestRoleResponse) XXX_Size() int {
return m.Size()
}
-func (m *MsgUpdateRoleResponse) XXX_DiscardUnknown() {
- xxx_messageInfo_MsgUpdateRoleResponse.DiscardUnknown(m)
+func (m *MsgSuggestRoleResponse) XXX_DiscardUnknown() {
+ xxx_messageInfo_MsgSuggestRoleResponse.DiscardUnknown(m)
}
-var xxx_messageInfo_MsgUpdateRoleResponse proto.InternalMessageInfo
+var xxx_messageInfo_MsgSuggestRoleResponse proto.InternalMessageInfo
+
+type MsgAddVoteForRole struct {
+ // the guardian address
+ From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
+ // the proposal ID
+ ProposalId uint64 `protobuf:"varint,2,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
+ // the vote option
+ // - yes : true
+ // - no : false
+ Option bool `protobuf:"varint,3,opt,name=option,proto3" json:"option,omitempty"`
+}
+
+func (m *MsgAddVoteForRole) Reset() { *m = MsgAddVoteForRole{} }
+func (m *MsgAddVoteForRole) String() string { return proto.CompactTextString(m) }
+func (*MsgAddVoteForRole) ProtoMessage() {}
+func (*MsgAddVoteForRole) Descriptor() ([]byte, []int) {
+ return fileDescriptor_54a336bc5ea063bb, []int{16}
+}
+func (m *MsgAddVoteForRole) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *MsgAddVoteForRole) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ if deterministic {
+ return xxx_messageInfo_MsgAddVoteForRole.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 *MsgAddVoteForRole) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_MsgAddVoteForRole.Merge(m, src)
+}
+func (m *MsgAddVoteForRole) XXX_Size() int {
+ return m.Size()
+}
+func (m *MsgAddVoteForRole) XXX_DiscardUnknown() {
+ xxx_messageInfo_MsgAddVoteForRole.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_MsgAddVoteForRole proto.InternalMessageInfo
+
+func (m *MsgAddVoteForRole) GetFrom() string {
+ if m != nil {
+ return m.From
+ }
+ return ""
+}
+
+func (m *MsgAddVoteForRole) GetProposalId() uint64 {
+ if m != nil {
+ return m.ProposalId
+ }
+ return 0
+}
+
+func (m *MsgAddVoteForRole) GetOption() bool {
+ if m != nil {
+ return m.Option
+ }
+ return false
+}
+
+type MsgAddVoteForRoleResponse struct {
+}
+
+func (m *MsgAddVoteForRoleResponse) Reset() { *m = MsgAddVoteForRoleResponse{} }
+func (m *MsgAddVoteForRoleResponse) String() string { return proto.CompactTextString(m) }
+func (*MsgAddVoteForRoleResponse) ProtoMessage() {}
+func (*MsgAddVoteForRoleResponse) Descriptor() ([]byte, []int) {
+ return fileDescriptor_54a336bc5ea063bb, []int{17}
+}
+func (m *MsgAddVoteForRoleResponse) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *MsgAddVoteForRoleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ if deterministic {
+ return xxx_messageInfo_MsgAddVoteForRoleResponse.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 *MsgAddVoteForRoleResponse) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_MsgAddVoteForRoleResponse.Merge(m, src)
+}
+func (m *MsgAddVoteForRoleResponse) XXX_Size() int {
+ return m.Size()
+}
+func (m *MsgAddVoteForRoleResponse) XXX_DiscardUnknown() {
+ xxx_messageInfo_MsgAddVoteForRoleResponse.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_MsgAddVoteForRoleResponse proto.InternalMessageInfo
// MsgHalt is input values required for halting the bridge module
type MsgHalt struct {
@@ -802,7 +903,7 @@ func (m *MsgHalt) Reset() { *m = MsgHalt{} }
func (m *MsgHalt) String() string { return proto.CompactTextString(m) }
func (*MsgHalt) ProtoMessage() {}
func (*MsgHalt) Descriptor() ([]byte, []int) {
- return fileDescriptor_54a336bc5ea063bb, []int{16}
+ return fileDescriptor_54a336bc5ea063bb, []int{18}
}
func (m *MsgHalt) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@@ -845,7 +946,7 @@ func (m *MsgHaltResponse) Reset() { *m = MsgHaltResponse{} }
func (m *MsgHaltResponse) String() string { return proto.CompactTextString(m) }
func (*MsgHaltResponse) ProtoMessage() {}
func (*MsgHaltResponse) Descriptor() ([]byte, []int) {
- return fileDescriptor_54a336bc5ea063bb, []int{17}
+ return fileDescriptor_54a336bc5ea063bb, []int{19}
}
func (m *MsgHaltResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@@ -884,7 +985,7 @@ func (m *MsgResume) Reset() { *m = MsgResume{} }
func (m *MsgResume) String() string { return proto.CompactTextString(m) }
func (*MsgResume) ProtoMessage() {}
func (*MsgResume) Descriptor() ([]byte, []int) {
- return fileDescriptor_54a336bc5ea063bb, []int{18}
+ return fileDescriptor_54a336bc5ea063bb, []int{20}
}
func (m *MsgResume) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@@ -927,7 +1028,7 @@ func (m *MsgResumeResponse) Reset() { *m = MsgResumeResponse{} }
func (m *MsgResumeResponse) String() string { return proto.CompactTextString(m) }
func (*MsgResumeResponse) ProtoMessage() {}
func (*MsgResumeResponse) Descriptor() ([]byte, []int) {
- return fileDescriptor_54a336bc5ea063bb, []int{19}
+ return fileDescriptor_54a336bc5ea063bb, []int{21}
}
func (m *MsgResumeResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@@ -971,8 +1072,10 @@ func init() {
proto.RegisterType((*MsgClaimBatchResponse)(nil), "lbm.fbridge.v1.MsgClaimBatchResponse")
proto.RegisterType((*MsgClaim)(nil), "lbm.fbridge.v1.MsgClaim")
proto.RegisterType((*MsgClaimResponse)(nil), "lbm.fbridge.v1.MsgClaimResponse")
- proto.RegisterType((*MsgUpdateRole)(nil), "lbm.fbridge.v1.MsgUpdateRole")
- proto.RegisterType((*MsgUpdateRoleResponse)(nil), "lbm.fbridge.v1.MsgUpdateRoleResponse")
+ proto.RegisterType((*MsgSuggestRole)(nil), "lbm.fbridge.v1.MsgSuggestRole")
+ proto.RegisterType((*MsgSuggestRoleResponse)(nil), "lbm.fbridge.v1.MsgSuggestRoleResponse")
+ proto.RegisterType((*MsgAddVoteForRole)(nil), "lbm.fbridge.v1.MsgAddVoteForRole")
+ proto.RegisterType((*MsgAddVoteForRoleResponse)(nil), "lbm.fbridge.v1.MsgAddVoteForRoleResponse")
proto.RegisterType((*MsgHalt)(nil), "lbm.fbridge.v1.MsgHalt")
proto.RegisterType((*MsgHaltResponse)(nil), "lbm.fbridge.v1.MsgHaltResponse")
proto.RegisterType((*MsgResume)(nil), "lbm.fbridge.v1.MsgResume")
@@ -982,50 +1085,55 @@ func init() {
func init() { proto.RegisterFile("lbm/fbridge/v1/tx.proto", fileDescriptor_54a336bc5ea063bb) }
var fileDescriptor_54a336bc5ea063bb = []byte{
- // 678 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x55, 0xdd, 0x6e, 0xd3, 0x30,
- 0x18, 0x6d, 0x68, 0x57, 0xd6, 0x8f, 0xb1, 0x1f, 0xef, 0xa7, 0x5d, 0xd8, 0xda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6, 0x2e, 0xd2, 0x54, 0xcb,
- 0xab, 0xd7, 0x37, 0xf2, 0x90, 0xb4, 0xb1, 0x54, 0x98, 0x54, 0xc6, 0xc6, 0xb0, 0xd2, 0xd8, 0xe5,
- 0x8c, 0xa0, 0x97, 0x50, 0x12, 0x01, 0xa9, 0xaa, 0xee, 0x18, 0x7b, 0x5c, 0x6f, 0xe4, 0x00, 0x52,
- 0xe1, 0x00, 0xca, 0x71, 0x50, 0x56, 0x95, 0x87, 0x1c, 0x41, 0xfa, 0xc3, 0x5c, 0x28, 0xd1, 0x69,
- 0x1e, 0x1e, 0x9f, 0xd5, 0xb5, 0x93, 0xb3, 0xba, 0xf6, 0xf7, 0xac, 0xae, 0xfd, 0x38, 0xaf, 0x17,
- 0x4e, 0xce, 0xeb, 0x85, 0xdf, 0xe7, 0xf5, 0xc2, 0xa7, 0x9d, 0x6b, 0xbf, 0x8f, 0x91, 0xfc, 0xa5,
- 0xc5, 0x47, 0xd2, 0x2e, 0x8b, 0x1f, 0xfa, 0xd9, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x11, 0x7f,
- 0xc2, 0x98, 0x00, 0x08, 0x00, 0x00,
+ // 757 bytes of a gzipped FileDescriptorProto
+ 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x56, 0xcd, 0x4e, 0xdb, 0x4a,
+ 0x14, 0x4e, 0x6e, 0x42, 0x48, 0x0e, 0xdc, 0x00, 0x06, 0x92, 0x60, 0x20, 0x01, 0xdf, 0xcb, 0xbd,
+ 0x14, 0xa9, 0x09, 0xd0, 0x45, 0xa5, 0xae, 0xda, 0x20, 0xa1, 0x82, 0x6a, 0xb5, 0x72, 0x7f, 0x54,
+ 0x75, 0x51, 0x3a, 0x89, 0x27, 0x83, 0x55, 0xdb, 0x93, 0x7a, 0x26, 0x51, 0xfa, 0x10, 0x95, 0xfa,
+ 0x04, 0x7d, 0x8a, 0x3e, 0x04, 0x4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, 0x9c, 0x84, 0x12, 0xb1, 0xd1, 0x96, 0x34, 0x80, 0x50, 0xae, 0xd7, 0x63, 0x94, 0xd7, 0xb0,
+ 0xbc, 0x35, 0x16, 0x16, 0x9e, 0x07, 0x30, 0x35, 0x8c, 0x73, 0x25, 0x89, 0x2f, 0x6f, 0x24, 0x21,
+ 0xc2, 0xe4, 0x35, 0xcc, 0x84, 0xd3, 0x5c, 0x8d, 0x11, 0x84, 0x70, 0xf9, 0xbf, 0xf1, 0xb8, 0xb0,
+ 0x7d, 0x0f, 0xc5, 0x91, 0x88, 0x6e, 0xc6, 0x28, 0xa3, 0x14, 0xf9, 0xde, 0x44, 0x8a, 0xf0, 0x7f,
+ 0x0c, 0x59, 0x2f, 0x83, 0xe5, 0xb8, 0x6b, 0x84, 0x4c, 0x2e, 0xd7, 0x12, 0x00, 0xe1, 0x70, 0x08,
+ 0x39, 0x3f, 0x8b, 0x2b, 0xb1, 0xe7, 0xe8, 0x42, 0xf2, 0x66, 0x22, 0x14, 0xf8, 0x34, 0x8f, 0xcf,
+ 0x2e, 0xab, 0xe9, 0xf3, 0xcb, 0x6a, 0xfa, 0xd7, 0x65, 0x35, 0xfd, 0xf5, 0xaa, 0x9a, 0x3a, 0xbf,
+ 0xaa, 0xa6, 0x7e, 0x5c, 0x55, 0x53, 0xef, 0x76, 0x27, 0xbe, 0x22, 0x07, 0xe2, 0x4b, 0xc4, 0x7b,
+ 0x59, 0xb6, 0x72, 0xde, 0x57, 0xc8, 0x83, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x35, 0x3e, 0xad,
+ 0x09, 0xe4, 0x08, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
@@ -1054,9 +1162,12 @@ type MsgClient interface {
ClaimBatch(ctx context.Context, in *MsgClaimBatch, opts ...grpc.CallOption) (*MsgClaimBatchResponse, error)
// Claim processes the claiming of a provision with a specific sequence number
Claim(ctx context.Context, in *MsgClaim, opts ...grpc.CallOption) (*MsgClaimResponse, error)
- // UpdateRole updates the role of an address in the bridge module.
+ // SuggestRole suggests updating the role of an address in the bridge module.
// The role can be one of the following: guardian, operator, judge.
- UpdateRole(ctx context.Context, in *MsgUpdateRole, opts ...grpc.CallOption) (*MsgUpdateRoleResponse, error)
+ // The proposal will be passed only with the consent of +2/3 Guardian members.
+ SuggestRole(ctx context.Context, in *MsgSuggestRole, opts ...grpc.CallOption) (*MsgSuggestRoleResponse, error)
+ // AddVoteForRole adds a vote for a role change proposal.
+ AddVoteForRole(ctx context.Context, in *MsgAddVoteForRole, opts ...grpc.CallOption) (*MsgAddVoteForRoleResponse, error)
// Halt the bridge module.
Halt(ctx context.Context, in *MsgHalt, opts ...grpc.CallOption) (*MsgHaltResponse, error)
// Resume the bridge module.
@@ -1134,9 +1245,18 @@ func (c *msgClient) Claim(ctx context.Context, in *MsgClaim, opts ...grpc.CallOp
return out, nil
}
-func (c *msgClient) UpdateRole(ctx context.Context, in *MsgUpdateRole, opts ...grpc.CallOption) (*MsgUpdateRoleResponse, error) {
- out := new(MsgUpdateRoleResponse)
- err := c.cc.Invoke(ctx, "/lbm.fbridge.v1.Msg/UpdateRole", in, out, opts...)
+func (c *msgClient) SuggestRole(ctx context.Context, in *MsgSuggestRole, opts ...grpc.CallOption) (*MsgSuggestRoleResponse, error) {
+ out := new(MsgSuggestRoleResponse)
+ err := c.cc.Invoke(ctx, "/lbm.fbridge.v1.Msg/SuggestRole", in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *msgClient) AddVoteForRole(ctx context.Context, in *MsgAddVoteForRole, opts ...grpc.CallOption) (*MsgAddVoteForRoleResponse, error) {
+ out := new(MsgAddVoteForRoleResponse)
+ err := c.cc.Invoke(ctx, "/lbm.fbridge.v1.Msg/AddVoteForRole", in, out, opts...)
if err != nil {
return nil, err
}
@@ -1177,9 +1297,12 @@ type MsgServer interface {
ClaimBatch(context.Context, *MsgClaimBatch) (*MsgClaimBatchResponse, error)
// Claim processes the claiming of a provision with a specific sequence number
Claim(context.Context, *MsgClaim) (*MsgClaimResponse, error)
- // UpdateRole updates the role of an address in the bridge module.
+ // SuggestRole suggests updating the role of an address in the bridge module.
// The role can be one of the following: guardian, operator, judge.
- UpdateRole(context.Context, *MsgUpdateRole) (*MsgUpdateRoleResponse, error)
+ // The proposal will be passed only with the consent of +2/3 Guardian members.
+ SuggestRole(context.Context, *MsgSuggestRole) (*MsgSuggestRoleResponse, error)
+ // AddVoteForRole adds a vote for a role change proposal.
+ AddVoteForRole(context.Context, *MsgAddVoteForRole) (*MsgAddVoteForRoleResponse, error)
// Halt the bridge module.
Halt(context.Context, *MsgHalt) (*MsgHaltResponse, error)
// Resume the bridge module.
@@ -1211,8 +1334,11 @@ func (*UnimplementedMsgServer) ClaimBatch(ctx context.Context, req *MsgClaimBatc
func (*UnimplementedMsgServer) Claim(ctx context.Context, req *MsgClaim) (*MsgClaimResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Claim not implemented")
}
-func (*UnimplementedMsgServer) UpdateRole(ctx context.Context, req *MsgUpdateRole) (*MsgUpdateRoleResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method UpdateRole not implemented")
+func (*UnimplementedMsgServer) SuggestRole(ctx context.Context, req *MsgSuggestRole) (*MsgSuggestRoleResponse, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method SuggestRole not implemented")
+}
+func (*UnimplementedMsgServer) AddVoteForRole(ctx context.Context, req *MsgAddVoteForRole) (*MsgAddVoteForRoleResponse, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method AddVoteForRole not implemented")
}
func (*UnimplementedMsgServer) Halt(ctx context.Context, req *MsgHalt) (*MsgHaltResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Halt not implemented")
@@ -1351,20 +1477,38 @@ func _Msg_Claim_Handler(srv interface{}, ctx context.Context, dec func(interface
return interceptor(ctx, in, info, handler)
}
-func _Msg_UpdateRole_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(MsgUpdateRole)
+func _Msg_SuggestRole_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(MsgSuggestRole)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
- return srv.(MsgServer).UpdateRole(ctx, in)
+ return srv.(MsgServer).SuggestRole(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
- FullMethod: "/lbm.fbridge.v1.Msg/UpdateRole",
+ FullMethod: "/lbm.fbridge.v1.Msg/SuggestRole",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(MsgServer).UpdateRole(ctx, req.(*MsgUpdateRole))
+ return srv.(MsgServer).SuggestRole(ctx, req.(*MsgSuggestRole))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _Msg_AddVoteForRole_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(MsgAddVoteForRole)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(MsgServer).AddVoteForRole(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: "/lbm.fbridge.v1.Msg/AddVoteForRole",
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(MsgServer).AddVoteForRole(ctx, req.(*MsgAddVoteForRole))
}
return interceptor(ctx, in, info, handler)
}
@@ -1438,8 +1582,12 @@ var _Msg_serviceDesc = grpc.ServiceDesc{
Handler: _Msg_Claim_Handler,
},
{
- MethodName: "UpdateRole",
- Handler: _Msg_UpdateRole_Handler,
+ MethodName: "SuggestRole",
+ Handler: _Msg_SuggestRole_Handler,
+ },
+ {
+ MethodName: "AddVoteForRole",
+ Handler: _Msg_AddVoteForRole_Handler,
},
{
MethodName: "Halt",
@@ -1896,7 +2044,7 @@ func (m *MsgClaimResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
return len(dAtA) - i, nil
}
-func (m *MsgUpdateRole) Marshal() (dAtA []byte, err error) {
+func (m *MsgSuggestRole) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
@@ -1906,12 +2054,12 @@ func (m *MsgUpdateRole) Marshal() (dAtA []byte, err error) {
return dAtA[:n], nil
}
-func (m *MsgUpdateRole) MarshalTo(dAtA []byte) (int, error) {
+func (m *MsgSuggestRole) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
-func (m *MsgUpdateRole) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+func (m *MsgSuggestRole) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
@@ -1938,7 +2086,75 @@ func (m *MsgUpdateRole) MarshalToSizedBuffer(dAtA []byte) (int, error) {
return len(dAtA) - i, nil
}
-func (m *MsgUpdateRoleResponse) Marshal() (dAtA []byte, err error) {
+func (m *MsgSuggestRoleResponse) 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 *MsgSuggestRoleResponse) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *MsgSuggestRoleResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ return len(dAtA) - i, nil
+}
+
+func (m *MsgAddVoteForRole) 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 *MsgAddVoteForRole) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *MsgAddVoteForRole) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if m.Option {
+ i--
+ if m.Option {
+ dAtA[i] = 1
+ } else {
+ dAtA[i] = 0
+ }
+ i--
+ dAtA[i] = 0x18
+ }
+ if m.ProposalId != 0 {
+ i = encodeVarintTx(dAtA, i, uint64(m.ProposalId))
+ i--
+ dAtA[i] = 0x10
+ }
+ if len(m.From) > 0 {
+ i -= len(m.From)
+ copy(dAtA[i:], m.From)
+ i = encodeVarintTx(dAtA, i, uint64(len(m.From)))
+ i--
+ dAtA[i] = 0xa
+ }
+ return len(dAtA) - i, nil
+}
+
+func (m *MsgAddVoteForRoleResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
@@ -1948,12 +2164,12 @@ func (m *MsgUpdateRoleResponse) Marshal() (dAtA []byte, err error) {
return dAtA[:n], nil
}
-func (m *MsgUpdateRoleResponse) MarshalTo(dAtA []byte) (int, error) {
+func (m *MsgAddVoteForRoleResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
-func (m *MsgUpdateRoleResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+func (m *MsgAddVoteForRoleResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
@@ -2266,7 +2482,7 @@ func (m *MsgClaimResponse) Size() (n int) {
return n
}
-func (m *MsgUpdateRole) Size() (n int) {
+func (m *MsgSuggestRole) Size() (n int) {
if m == nil {
return 0
}
@@ -2286,7 +2502,35 @@ func (m *MsgUpdateRole) Size() (n int) {
return n
}
-func (m *MsgUpdateRoleResponse) Size() (n int) {
+func (m *MsgSuggestRoleResponse) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ return n
+}
+
+func (m *MsgAddVoteForRole) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.From)
+ if l > 0 {
+ n += 1 + l + sovTx(uint64(l))
+ }
+ if m.ProposalId != 0 {
+ n += 1 + sovTx(uint64(m.ProposalId))
+ }
+ if m.Option {
+ n += 2
+ }
+ return n
+}
+
+func (m *MsgAddVoteForRoleResponse) Size() (n int) {
if m == nil {
return 0
}
@@ -3547,7 +3791,7 @@ func (m *MsgClaimResponse) Unmarshal(dAtA []byte) error {
}
return nil
}
-func (m *MsgUpdateRole) Unmarshal(dAtA []byte) error {
+func (m *MsgSuggestRole) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
@@ -3570,10 +3814,10 @@ func (m *MsgUpdateRole) Unmarshal(dAtA []byte) error {
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
- return fmt.Errorf("proto: MsgUpdateRole: wiretype end group for non-group")
+ return fmt.Errorf("proto: MsgSuggestRole: wiretype end group for non-group")
}
if fieldNum <= 0 {
- return fmt.Errorf("proto: MsgUpdateRole: illegal tag %d (wire type %d)", fieldNum, wire)
+ return fmt.Errorf("proto: MsgSuggestRole: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
@@ -3680,7 +3924,178 @@ func (m *MsgUpdateRole) Unmarshal(dAtA []byte) error {
}
return nil
}
-func (m *MsgUpdateRoleResponse) Unmarshal(dAtA []byte) error {
+func (m *MsgSuggestRoleResponse) 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: MsgSuggestRoleResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: MsgSuggestRoleResponse: 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 *MsgAddVoteForRole) 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: MsgAddVoteForRole: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: MsgAddVoteForRole: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field From", 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.From = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ProposalId", wireType)
+ }
+ m.ProposalId = 0
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowTx
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ m.ProposalId |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ case 3:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Option", wireType)
+ }
+ var v int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowTx
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ v |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ m.Option = bool(v != 0)
+ 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 *MsgAddVoteForRoleResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
@@ -3703,10 +4118,10 @@ func (m *MsgUpdateRoleResponse) Unmarshal(dAtA []byte) error {
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
- return fmt.Errorf("proto: MsgUpdateRoleResponse: wiretype end group for non-group")
+ return fmt.Errorf("proto: MsgAddVoteForRoleResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
- return fmt.Errorf("proto: MsgUpdateRoleResponse: illegal tag %d (wire type %d)", fieldNum, wire)
+ return fmt.Errorf("proto: MsgAddVoteForRoleResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default: