github.com/fibonacci-chain/fbc@v0.0.0-20231124064014-c7636198c1e9/x/feesplit/types/querier.go (about)

     1  package types
     2  
     3  import (
     4  	sdk "github.com/fibonacci-chain/fbc/libs/cosmos-sdk/types"
     5  	query "github.com/fibonacci-chain/fbc/libs/cosmos-sdk/types/query"
     6  	_ "github.com/gogo/protobuf/gogoproto"
     7  	_ "google.golang.org/genproto/googleapis/api/annotations"
     8  )
     9  
    10  type FeeSplitWithShare struct {
    11  	ContractAddress   string  `json:"contract_address,omitempty"`
    12  	DeployerAddress   string  `json:"deployer_address,omitempty"`
    13  	WithdrawerAddress string  `json:"withdrawer_address,omitempty"`
    14  	Share             sdk.Dec `json:"share,omitempty"`
    15  }
    16  
    17  // QueryFeeSplitsRequest is the request type for the Query/FeeSplits.
    18  type QueryFeeSplitsRequest struct {
    19  	// pagination defines an optional pagination for the request.
    20  	Pagination *query.PageRequest `json:"pagination,omitempty"`
    21  }
    22  
    23  // QueryFeeSplitsResponse is the response type for the Query/FeeSplits.
    24  type QueryFeeSplitsResponse struct {
    25  	FeeSplits []FeeSplitWithShare `json:"fee_splits"`
    26  	// pagination defines the pagination in the response.
    27  	Pagination *query.PageResponse `json:"pagination,omitempty"`
    28  }
    29  
    30  // QueryFeeSplitRequest is the request type for the Query/FeeSplit.
    31  type QueryFeeSplitRequest struct {
    32  	// contract identifier is the hex contract address of a contract
    33  	ContractAddress string `json:"contract_address,omitempty"`
    34  }
    35  
    36  // QueryFeeSplitResponse is the response type for the Query/FeeSplit.
    37  type QueryFeeSplitResponse struct {
    38  	FeeSplit FeeSplitWithShare `json:"fee_split"`
    39  }
    40  
    41  // QueryParamsRequest is the request type for the Query/Params.
    42  type QueryParamsRequest struct {
    43  }
    44  
    45  // QueryParamsResponse is the response type for the Query/Params.
    46  type QueryParamsResponse struct {
    47  	Params Params `json:"params"`
    48  }
    49  
    50  // QueryDeployerFeeSplitsRequest is the request type for the
    51  // Query/DeployerFeeSplits.
    52  type QueryDeployerFeeSplitsRequest struct {
    53  	// deployer bech32 address
    54  	DeployerAddress string `json:"deployer_address,omitempty"`
    55  	// pagination defines an optional pagination for the request.
    56  	Pagination *query.PageRequest `json:"pagination,omitempty"`
    57  }
    58  
    59  // QueryDeployerFeeSplitsResponse is the response type for the
    60  // Query/DeployerFeeSplits.
    61  type QueryDeployerFeeSplitsResponse struct {
    62  	ContractAddresses []string `json:"contract_addresses,omitempty"`
    63  	// pagination defines the pagination in the response.
    64  	Pagination *query.PageResponse `json:"pagination,omitempty"`
    65  }
    66  
    67  // QueryDeployerFeeSplitsResponseV2 is the response type for the
    68  // Query/DeployerFeeSplitsDetail.
    69  type QueryDeployerFeeSplitsResponseV2 struct {
    70  	FeeSplits []FeeSplitWithShare `json:"fee_splits,omitempty"`
    71  	// pagination defines the pagination in the response.
    72  	Pagination *query.PageResponse `json:"pagination,omitempty"`
    73  }
    74  
    75  // QueryWithdrawerFeeSplitsRequest is the request type for the
    76  // Query/WithdrawerFeeSplits.
    77  type QueryWithdrawerFeeSplitsRequest struct {
    78  	// withdrawer bech32 address
    79  	WithdrawerAddress string `json:"withdrawer_address,omitempty"`
    80  	// pagination defines an optional pagination for the request.
    81  	Pagination *query.PageRequest `json:"pagination,omitempty"`
    82  }
    83  
    84  // QueryWithdrawerFeeSplitsResponse is the response type for the
    85  // Query/WithdrawerFeeSplits.
    86  type QueryWithdrawerFeeSplitsResponse struct {
    87  	ContractAddresses []string `json:"contract_addresses,omitempty"`
    88  	// pagination defines the pagination in the response.
    89  	Pagination *query.PageResponse `json:"pagination,omitempty"`
    90  }