From f51aedd7f9f0b7141bd63138885d63549b040af5 Mon Sep 17 00:00:00 2001 From: Chandragupta Singh Date: Tue, 28 Jun 2022 03:49:26 +0530 Subject: [PATCH 1/5] asset refactor --- app/wasm/bindings/msg.go | 4 +- proto/comdex/asset/v1beta1/appMapping.proto | 2 +- proto/comdex/asset/v1beta1/asset.proto | 4 +- .../comdex/asset/v1beta1/extendedAsset.proto | 37 - proto/comdex/asset/v1beta1/extendedLend.proto | 58 - .../asset/v1beta1/extendedPairVault.proto | 31 +- proto/comdex/asset/v1beta1/gov.proto | 26 - proto/comdex/asset/v1beta1/query.proto | 50 +- x/asset/client/cli/cli.go | 12 +- x/asset/client/cli/flags.go | 25 - x/asset/client/cli/parse.go | 40 - x/asset/client/cli/query.go | 78 +- x/asset/client/cli/tx.go | 450 +----- x/asset/client/proposal_handler.go | 4 - x/asset/client/rest/tx.go | 28 - x/asset/handler.go | 24 - x/asset/keeper/app_mapping.go | 12 +- x/asset/keeper/asset.go | 6 +- x/asset/keeper/gov.go | 16 - x/asset/keeper/pairs_vault.go | 9 +- x/asset/keeper/query_server.go | 32 +- x/asset/keeper/whitelist.go | 231 --- x/asset/types/appMapping.pb.go | 81 +- x/asset/types/asset.pb.go | 77 +- x/asset/types/codec.go | 8 - x/asset/types/errors.go | 1 + x/asset/types/extendedPairVault.pb.go | 230 ++- x/asset/types/gov.go | 167 --- x/asset/types/gov.pb.go | 1238 ++--------------- x/asset/types/lend.go | 9 - x/asset/types/query.pb.go | 928 ++++++------ x/asset/types/query.pb.gw.go | 200 +-- x/liquidation/keeper/liquidate_vaults.go | 2 +- x/vault/keeper/msg_server.go | 8 +- 34 files changed, 971 insertions(+), 3157 deletions(-) delete mode 100644 proto/comdex/asset/v1beta1/extendedAsset.proto delete mode 100644 proto/comdex/asset/v1beta1/extendedLend.proto delete mode 100644 x/asset/keeper/whitelist.go delete mode 100644 x/asset/types/lend.go diff --git a/app/wasm/bindings/msg.go b/app/wasm/bindings/msg.go index c44e1b443..204f75140 100644 --- a/app/wasm/bindings/msg.go +++ b/app/wasm/bindings/msg.go @@ -38,7 +38,6 @@ type MsgWhitelistAppIDLockerRewards struct { type MsgAddExtendedPairsVault struct { AppMappingID uint64 `json:"app_mapping_id"` PairID uint64 `json:"pair_id"` - LiquidationRatio sdk.Dec `json:"liquidation_ratio"` StabilityFee sdk.Dec `json:"stability_fee"` ClosingFee sdk.Dec `json:"closing_fee"` LiquidationPenalty sdk.Dec `json:"liquidation_penalty"` @@ -46,7 +45,7 @@ type MsgAddExtendedPairsVault struct { IsVaultActive bool `json:"is_vault_active"` DebtCeiling uint64 `json:"debt_ceiling"` DebtFloor uint64 `json:"debt_floor"` - IsPsmPair bool `json:"is_psm_pair"` + IsStableMintVault bool `json:"is_stable_mint_vault"` MinCr sdk.Dec `json:"min_cr"` PairName string `json:"pair_name"` AssetOutOraclePrice bool `json:"asset_out_oracle_price"` @@ -78,7 +77,6 @@ type MsgSetAuctionMappingForApp struct { type MsgUpdatePairsVault struct { AppMappingID uint64 `json:"app_mapping_id"` ExtPairID uint64 `json:"ext_pair_id"` - LiquidationRatio sdk.Dec `json:"liquidation_ratio"` StabilityFee sdk.Dec `json:"stability_fee"` ClosingFee sdk.Dec `json:"closing_fee"` LiquidationPenalty sdk.Dec `json:"liquidation_penalty"` diff --git a/proto/comdex/asset/v1beta1/appMapping.proto b/proto/comdex/asset/v1beta1/appMapping.proto index c0df7fb34..2b8e7554e 100644 --- a/proto/comdex/asset/v1beta1/appMapping.proto +++ b/proto/comdex/asset/v1beta1/appMapping.proto @@ -23,7 +23,7 @@ message AppMapping { message MintGenesisToken { uint64 asset_id = 1 [ (gogoproto.moretags) = "yaml:\"asset_id\"" ]; string genesis_supply = 2[(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int"]; - bool isgovToken = 3 [ (gogoproto.moretags) = "yaml:\"isgovToken\"" ]; + bool is_gov_token = 3 [ (gogoproto.moretags) = "yaml:\"is_gov_token\"" ]; string recipient = 4 [ (gogoproto.moretags) = "yaml:\"recipient\"" ]; } diff --git a/proto/comdex/asset/v1beta1/asset.proto b/proto/comdex/asset/v1beta1/asset.proto index 98a4bfaa8..dd531f674 100644 --- a/proto/comdex/asset/v1beta1/asset.proto +++ b/proto/comdex/asset/v1beta1/asset.proto @@ -12,6 +12,6 @@ message Asset { string name = 2 [ (gogoproto.moretags) = "yaml:\"name\"" ]; string denom = 3 [ (gogoproto.moretags) = "yaml:\"denom\"" ]; int64 decimals = 4 [ (gogoproto.moretags) = "yaml:\"decimals\"" ]; - bool isOnchain = 5 [ (gogoproto.moretags) = "yaml:\"isOnchain\"" ]; - bool assetOraclePrice = 6 [(gogoproto.moretags) = "yaml:\"asset_oracle_price\""]; + bool is_on_chain = 5 [ (gogoproto.moretags) = "yaml:\"is_on_chain\"" ]; + bool is_oracle_price_required = 6 [(gogoproto.moretags) = "yaml:\"is_oracle_price_required\""]; } diff --git a/proto/comdex/asset/v1beta1/extendedAsset.proto b/proto/comdex/asset/v1beta1/extendedAsset.proto deleted file mode 100644 index f2d3ba6a1..000000000 --- a/proto/comdex/asset/v1beta1/extendedAsset.proto +++ /dev/null @@ -1,37 +0,0 @@ -syntax = "proto3"; -package comdex.asset.v1beta1; - -import "gogoproto/gogo.proto"; - -option go_package = "github.com/comdex-official/comdex/x/asset/types"; -option (gogoproto.equal_all) = false; -option (gogoproto.goproto_getters_all) = false; - -message ExtendedAsset { - - uint64 id = 1; - uint64 asset_id = 2 [(gogoproto.moretags) = "yaml:\"asset_id\""]; - string collateral_weight = 3 [ - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", - (gogoproto.nullable) = false, - (gogoproto.moretags) = "yaml:\"collateral_weight\"" - ]; - - string liquidation_threshold = 4 [ - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", - (gogoproto.nullable) = false, - (gogoproto.moretags) = "yaml:\"liquidation_threshold\"" - ]; - // The rate indicates the price of the asset in USD - string rate = 5 [ - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", - (gogoproto.nullable) = false, - (gogoproto.moretags) = "yaml:\"rate\"" - ]; - - bool is_bridged_asset = 6 [ - (gogoproto.customname) = "IsBridgedAsset", - (gogoproto.moretags) = "yaml:\"is_bridged_asset\"" - ]; - - } \ No newline at end of file diff --git a/proto/comdex/asset/v1beta1/extendedLend.proto b/proto/comdex/asset/v1beta1/extendedLend.proto deleted file mode 100644 index 8f4881195..000000000 --- a/proto/comdex/asset/v1beta1/extendedLend.proto +++ /dev/null @@ -1,58 +0,0 @@ -syntax = "proto3"; -package comdex.asset.v1beta1; - -import "gogoproto/gogo.proto"; - -option go_package = "github.com/comdex-official/comdex/x/asset/types"; -option (gogoproto.equal_all) = false; -option (gogoproto.goproto_getters_all) = false; - -message ExtendedPairLend { - uint64 id = 1; - uint64 pair_id = 2 [(gogoproto.moretags) = "yaml:\"pair_id\""]; - string module_acc = 3 [(gogoproto.moretags) = "yaml:\"module_acc\""]; - string base_borrow_rate_asset_1 = 4 [ - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", - (gogoproto.nullable) = false, - (gogoproto.moretags) = "yaml:\"base_borrow_rate_asset_1\"" - ]; - - string base_lend_rate_asset_1 = 5 [ - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", - (gogoproto.nullable) = false, - (gogoproto.moretags) = "yaml:\"base_lend_rate_asset_1\"" - ]; - string base_borrow_rate_asset_2 = 6 [ - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", - (gogoproto.nullable) = false, - (gogoproto.moretags) = "yaml:\"base_borrow_rate_asset_2\"" - ]; - - string base_lend_rate_asset_2 = 7 [ - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", - (gogoproto.nullable) = false, - (gogoproto.moretags) = "yaml:\"base_lend_rate_asset_2\"" - ]; - string current_borrow_rate_asset_1 = 8 [ - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", - (gogoproto.nullable) = false, - (gogoproto.moretags) = "yaml:\"current_borrow_rate_asset_1\"" - ]; - string current_lend_rate_asset_1 = 9 [ - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", - (gogoproto.nullable) = false, - (gogoproto.moretags) = "yaml:\"current_lend_rate_asset_1\"" - ]; - string current_borrow_rate_asset_2 = 10 [ - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", - (gogoproto.nullable) = false, - (gogoproto.moretags) = "yaml:\"current_borrow_rate_asset_2\"" - ]; - string current_lend_rate_asset_2 = 11 [ - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", - (gogoproto.nullable) = false, - (gogoproto.moretags) = "yaml:\"current_lend_rate_asset_2\"" - ]; - uint64 product_mapping_id = 12; - - } \ No newline at end of file diff --git a/proto/comdex/asset/v1beta1/extendedPairVault.proto b/proto/comdex/asset/v1beta1/extendedPairVault.proto index b8c8e4178..b12fec960 100644 --- a/proto/comdex/asset/v1beta1/extendedPairVault.proto +++ b/proto/comdex/asset/v1beta1/extendedPairVault.proto @@ -11,55 +11,50 @@ message ExtendedPairVault { uint64 id = 1; uint64 app_mapping_id = 2 [(gogoproto.moretags) = "yaml:\"app_mapping_id\""]; uint64 pair_id = 3 [(gogoproto.moretags) = "yaml:\"pair_id\""]; - string liquidation_ratio = 4 [ - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", - (gogoproto.nullable) = false, - (gogoproto.moretags) = "yaml:\"liquidation_ratio\"" - ]; - string stability_fee = 5 [ + string stability_fee = 4 [ (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"stability_fee\"" ]; - string closing_fee = 6 [ + string closing_fee = 5 [ (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"closing_fee\"" ]; - string liquidation_penalty = 7 [ + string liquidation_penalty = 6 [ (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"liquidation_penalty\"" ]; - string draw_down_fee = 8 [ + string draw_down_fee = 7 [ (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"draw_down_fee\"" ]; - bool is_vault_active = 9 [ (gogoproto.moretags) = "yaml:\"active_flag\"" ]; - string debt_ceiling = 10[ + bool is_vault_active = 8 [ (gogoproto.moretags) = "yaml:\"active_flag\"" ]; + string debt_ceiling = 9[ (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"debt_ceiling\"" ]; - string debt_floor = 11 [ + string debt_floor = 10 [ (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"debt_floor\"" ]; - bool is_psm_pair = 12[ (gogoproto.moretags) = "yaml:\"is_psm_pair\"" ]; + bool is_stable_mint_vault = 11[ (gogoproto.moretags) = "yaml:\"is_stable_mint_vault\"" ]; - string min_cr = 13 [ + string min_cr = 12 [ (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"min_cr\"" ]; - string pair_name = 14 [ (gogoproto.moretags) = "yaml:\"pair_name\"" ]; - bool asset_out_oracle_price = 15 [ (gogoproto.moretags) = "yaml:\"asset_out_oracle_price\"" ]; - uint64 asset_out_price = 16 [ + string pair_name = 13 [ (gogoproto.moretags) = "yaml:\"pair_name\"" ]; + bool asset_out_oracle_price = 14 [ (gogoproto.moretags) = "yaml:\"asset_out_oracle_price\"" ]; + uint64 asset_out_price = 15 [ (gogoproto.moretags) = "yaml:\"asset_out_price\"" ]; - uint64 min_usd_value_left = 17 [ + uint64 min_usd_value_left = 16 [ (gogoproto.moretags) = "yaml:\"min_usd_value_left\"" ]; } \ No newline at end of file diff --git a/proto/comdex/asset/v1beta1/gov.proto b/proto/comdex/asset/v1beta1/gov.proto index 2207ddbbb..8698630ef 100644 --- a/proto/comdex/asset/v1beta1/gov.proto +++ b/proto/comdex/asset/v1beta1/gov.proto @@ -4,8 +4,6 @@ package comdex.asset.v1beta1; import "gogoproto/gogo.proto"; import "comdex/asset/v1beta1/asset.proto"; import "comdex/asset/v1beta1/pair.proto"; -import "comdex/asset/v1beta1/extendedAsset.proto"; -import "comdex/asset/v1beta1/extendedLend.proto"; import "comdex/asset/v1beta1/extendedPairVault.proto"; import "comdex/asset/v1beta1/appMapping.proto"; @@ -31,30 +29,6 @@ message AddPairsProposal { repeated Pair pairs = 3 [(gogoproto.nullable) = false]; } -message AddWhitelistedAssetsProposal { - string title = 1 [(gogoproto.moretags) = "yaml:\"title\""]; - string description = 2 [(gogoproto.moretags) = "yaml:\"description\""]; - repeated ExtendedAsset assets = 3 [(gogoproto.nullable) = false]; -} - -message UpdateWhitelistedAssetProposal { - string title = 1 [(gogoproto.moretags) = "yaml:\"title\""]; - string description = 2 [(gogoproto.moretags) = "yaml:\"description\""]; - ExtendedAsset asset = 3 [(gogoproto.nullable) = false]; -} - -message AddWhitelistedPairsProposal { - string title = 1 [(gogoproto.moretags) = "yaml:\"title\""]; - string description = 2 [(gogoproto.moretags) = "yaml:\"description\""]; - repeated ExtendedPairLend pairs = 3 [(gogoproto.nullable) = false]; -} - -message UpdateWhitelistedPairProposal { - string title = 1 [(gogoproto.moretags) = "yaml:\"title\""]; - string description = 2 [(gogoproto.moretags) = "yaml:\"description\""]; - ExtendedPairLend pair = 3 [(gogoproto.nullable) = false]; -} - message AddExtendedPairsVaultProposal { string title = 1 [(gogoproto.moretags) = "yaml:\"title\""]; string description = 2 [(gogoproto.moretags) = "yaml:\"description\""]; diff --git a/proto/comdex/asset/v1beta1/query.proto b/proto/comdex/asset/v1beta1/query.proto index bbe6f9602..0bc7652aa 100644 --- a/proto/comdex/asset/v1beta1/query.proto +++ b/proto/comdex/asset/v1beta1/query.proto @@ -85,11 +85,11 @@ message QueryAppResponse { ]; } -message QueryTokenGovRequest { +message QueryGovTokenByAppRequest { uint64 app_id = 1 [(gogoproto.moretags) = "yaml:\"app_id\""]; } -message QueryTokenGovResponse { +message QueryGovTokenByAppResponse { uint64 gov_asset_id = 1 [(gogoproto.moretags) = "yaml:\"gov_asset_id\""]; } @@ -102,50 +102,50 @@ message QueryAppsResponse { ]; } -message QueryPairVaultRequest { +message QueryExtendedPairVaultRequest { uint64 id = 1; } -message QueryPairVaultResponse { +message QueryExtendedPairVaultResponse { ExtendedPairVault pairVault = 1 [ (gogoproto.moretags) = "yaml:\"pair_vault\"", (gogoproto.nullable) = false ]; } -message QueryPairVaultsRequest {} +message QueryAllExtendedPairVaultsRequest {} -message QueryPairVaultsResponse { +message QueryAllExtendedPairVaultsResponse { repeated ExtendedPairVault pairVault = 1 [ (gogoproto.moretags) = "yaml:\"pair_vault\"", (gogoproto.nullable) = false ]; } -message QueryProductToExtendedPairRequest { - uint64 product_id = 1 [(gogoproto.moretags) = "yaml:\"product_id\""]; +message QueryAllExtendedPairVaultsByAppRequest { + uint64 app_id = 1 [(gogoproto.moretags) = "yaml:\"app_id\""]; } -message QueryProductToExtendedPairResponse { +message QueryAllExtendedPairVaultsByAppResponse { repeated ExtendedPairVault extended_pair =1 [ (gogoproto.moretags) = "yaml:\"extended_pair\"", (gogoproto.nullable) = false ]; } -message QueryExtendedPairPsmPairWiseRequest { - uint64 product_id = 1 [(gogoproto.moretags) = "yaml:\"product_id\""]; +message QueryAllExtendedPairStableVaultsIdByAppRequest { + uint64 app_id = 1 [(gogoproto.moretags) = "yaml:\"app_id\""]; } -message QueryExtendedPairPsmPairWiseResponse { +message QueryAllExtendedPairStableVaultsIdByAppResponse { repeated uint64 extended_pairs_id =1 [(gogoproto.moretags) = "yaml:\"extended_pairs_id\""]; } -message QueryExtendedPairDataPsmPairWiseRequest { +message QueryAllExtendedPairStableVaultsDataByAppRequest { uint64 app_id = 1 [(gogoproto.moretags) = "yaml:\"app_id\""]; } -message QueryExtendedPairDataPsmPairWiseResponse { +message QueryAllExtendedPairStableVaultsDataByAppResponse { repeated ExtendedPairVault extended_pair =1 [ (gogoproto.moretags) = "yaml:\"extended_pair\"", (gogoproto.nullable) = false @@ -174,22 +174,22 @@ service Query { rpc QueryAppMappings(QueryAppRequest) returns (QueryAppResponse) { option (google.api.http).get = "/comdex/asset/v1beta1/app/{id}"; } - rpc QueryPairVault(QueryPairVaultRequest) returns (QueryPairVaultResponse) { - option (google.api.http).get = "/comdex/asset/v1beta1/pairVault/{id}"; + rpc QueryExtendedPairVault(QueryExtendedPairVaultRequest) returns (QueryExtendedPairVaultResponse) { + option (google.api.http).get = "/comdex/asset/v1beta1/extended_pair_vault/{id}"; } - rpc QueryPairVaults(QueryPairVaultsRequest) returns (QueryPairVaultsResponse) { - option (google.api.http).get = "/comdex/asset/v1beta1/pairVaults"; + rpc QueryAllExtendedPairVaults(QueryAllExtendedPairVaultsRequest) returns (QueryAllExtendedPairVaultsResponse) { + option (google.api.http).get = "/comdex/asset/v1beta1/extended_pair_vaults"; } - rpc QueryProductToExtendedPair(QueryProductToExtendedPairRequest) returns (QueryProductToExtendedPairResponse) { - option (google.api.http).get = "/comdex/asset/v1beta1/product_to_extended_pair/{product_id}"; + rpc QueryAllExtendedPairVaultsByApp(QueryAllExtendedPairVaultsByAppRequest) returns (QueryAllExtendedPairVaultsByAppResponse) { + option (google.api.http).get = "/comdex/asset/v1beta1/product_to_extended_pair/{app_id}"; } - rpc QueryExtendedPairPsmPairWise(QueryExtendedPairPsmPairWiseRequest) returns (QueryExtendedPairPsmPairWiseResponse) { - option (google.api.http).get = "/comdex/asset/v1beta1/extended_pair_psm_pair_wise/{product_id}"; + rpc QueryAllExtendedPairStableVaultsIdByApp(QueryAllExtendedPairStableVaultsIdByAppRequest) returns (QueryAllExtendedPairStableVaultsIdByAppResponse) { + option (google.api.http).get = "/comdex/asset/v1beta1/extended_pair_psm_pair_wise/{app_id}"; } - rpc QueryTokenGov(QueryTokenGovRequest) returns (QueryTokenGovResponse) { - option (google.api.http).get = "/comdex/asset/v1beta1/check_for_token_gov/{app_id}"; + rpc QueryGovTokenByApp(QueryGovTokenByAppRequest) returns (QueryGovTokenByAppResponse) { + option (google.api.http).get = "/comdex/asset/v1beta1/gov_token_in_an_app/{app_id}"; } - rpc QueryExtendedPairDataPsmPairWise(QueryExtendedPairDataPsmPairWiseRequest) returns (QueryExtendedPairDataPsmPairWiseResponse) { + rpc QueryAllExtendedPairStableVaultsDataByApp(QueryAllExtendedPairStableVaultsDataByAppRequest) returns (QueryAllExtendedPairStableVaultsDataByAppResponse) { option (google.api.http).get = "/comdex/asset/v1beta1/extended_pair_psm_wise/{app_id}"; } diff --git a/x/asset/client/cli/cli.go b/x/asset/client/cli/cli.go index 8a0ad04c5..7c6447a74 100644 --- a/x/asset/client/cli/cli.go +++ b/x/asset/client/cli/cli.go @@ -21,13 +21,13 @@ func GetQueryCmd() *cobra.Command { queryPairs(), queryParams(), queryAppMappings(), - queryPairVault(), - queryPairVaults(), + queryExtendedPairVault(), + queryAllExtendedPairVaults(), queryAppsMappings(), - queryProductToExtendedPair(), - queryExtendedPairPsmPairWise(), - queryTokenGov(), - queryExtendedPairDataPsmPairWise(), + queryAllExtendedPairVaultsByApp(), + queryAllExtendedPairStableVaultsIdByApp(), + queryGovTokenByApp(), + queryAllExtendedPairStableVaultsDataByApp(), ) return cmd diff --git a/x/asset/client/cli/flags.go b/x/asset/client/cli/flags.go index 7ed710aeb..7e492ceac 100644 --- a/x/asset/client/cli/flags.go +++ b/x/asset/client/cli/flags.go @@ -12,15 +12,8 @@ const ( flagDecimals = "decimals" flagCollateralWeight = "collateralWeight" flagLiquidationThreshold = "liquidationThreshold" - flagIsBridgedAsset = "isBridgedAsset" - flagBaseBorrowRateAsset1 = "baseBorrowRate1" - flagBaseBorrowRateAsset2 = "baseBorrowRate2" - flagBaseLendRateAsset1 = "baseLendRate1" - flagBaseLendRateAsset2 = "baseLendRate2" - flagModuleAcc = "moduleAcc" FlagExtendedPairVaultFile = "extended-pair-vault-file" FlagAddAssetMappingFile = "add-asset-mapping-file" - FlagAddWhiteListedPairsFile = "add-white-whitelisted-pairs-file" ) func ParseStringFromString(s string, separator string) ([]string, error) { @@ -85,17 +78,10 @@ func FlagSetCreateAssetMapping() *flag.FlagSet { return fs } -func FlagSetCreateWhiteListedPairsMapping() *flag.FlagSet { - fs := flag.NewFlagSet("", flag.ContinueOnError) - - fs.String(FlagAddWhiteListedPairsFile, "", "add white listed asset pairs json file path") - return fs -} type createExtPairVaultInputs struct { AppMappingID string `json:"app_mapping_id"` PairID string `json:"pair_id"` - LiquidationRatio string `json:"liquidation_ratio"` StabilityFee string `json:"stability_fee"` ClosingFee string `json:"closing_fee"` LiquidationPenalty string `json:"liquidation_penalty"` @@ -125,14 +111,3 @@ type createAddAssetMappingInputs struct { Deposit string } -type createAddWhiteListedPairsInputs struct { - PairID string `json:"pair_id"` - ModuleAccount string `json:"module-account"` - BaseBorrowRateAsset1 string `json:"base_borrow_rate_asset_1"` - BaseBorrowRateAsset2 string `json:"base_borrow_rate_asset_2"` - BaseLendRateAsset1 string `json:"base_lend_rate_asset_1"` - BaseLendRateAsset2 string `json:"base_lend_rate_asset_2"` - Title string - Description string - Deposit string -} diff --git a/x/asset/client/cli/parse.go b/x/asset/client/cli/parse.go index c793c7cd7..51081e0e4 100644 --- a/x/asset/client/cli/parse.go +++ b/x/asset/client/cli/parse.go @@ -10,7 +10,6 @@ import ( type XCreateExtPairVaultInputs createExtPairVaultInputs type XCreateAddAssetMappingInputs createAddAssetMappingInputs -type XCreateAddWhiteListedPairInputs createAddWhiteListedPairsInputs type XCreateExtPairVaultInputsExceptions struct { XCreateExtPairVaultInputs @@ -22,10 +21,6 @@ type XCreateAddAssetMappingInputsExceptions struct { Other *string // Other won't raise an error } -type XCreateAddWhiteListedPairInputsExceptions struct { - XCreateAddWhiteListedPairInputs - Other *string // Other won't raise an error -} // UnmarshalJSON should error if there are fields unexpected. func (release *createExtPairVaultInputs) UnmarshalJSON(data []byte) error { @@ -54,19 +49,6 @@ func (release *createAddAssetMappingInputs) UnmarshalJSON(data []byte) error { return nil } -func (release *createAddWhiteListedPairsInputs) UnmarshalJSON(data []byte) error { - var createAddWhiteListedPairInputsE XCreateAddWhiteListedPairInputsExceptions - dec := json.NewDecoder(bytes.NewReader(data)) - dec.DisallowUnknownFields() // Force - - if err := dec.Decode(&createAddWhiteListedPairInputsE); err != nil { - return err - } - - *release = createAddWhiteListedPairsInputs(createAddWhiteListedPairInputsE.XCreateAddWhiteListedPairInputs) - return nil -} - func parseExtendPairVaultFlags(fs *pflag.FlagSet) (*createExtPairVaultInputs, error) { extPairVault := &createExtPairVaultInputs{} extPairVaultFile, _ := fs.GetString(FlagExtendedPairVaultFile) @@ -110,25 +92,3 @@ func parseAssetMappingFlags(fs *pflag.FlagSet) (*createAddAssetMappingInputs, er return assetMapping, nil } - -func parseWhiteListedPairsFlags(fs *pflag.FlagSet) (*createAddWhiteListedPairsInputs, error) { - whiteListedAssetPairs := &createAddWhiteListedPairsInputs{} - whiteListedAssetPairsFile, _ := fs.GetString(FlagAddWhiteListedPairsFile) - - if whiteListedAssetPairsFile == "" { - return nil, fmt.Errorf("must pass in add white listed pairs json using the --%s flag", FlagAddWhiteListedPairsFile) - } - - contents, err := ioutil.ReadFile(whiteListedAssetPairsFile) - if err != nil { - return nil, err - } - - // make exception if unknown field exists - err = whiteListedAssetPairs.UnmarshalJSON(contents) - if err != nil { - return nil, err - } - - return whiteListedAssetPairs, nil -} diff --git a/x/asset/client/cli/query.go b/x/asset/client/cli/query.go index f6e9fc877..206b1f67c 100644 --- a/x/asset/client/cli/query.go +++ b/x/asset/client/cli/query.go @@ -14,7 +14,7 @@ import ( func queryAsset() *cobra.Command { cmd := &cobra.Command{ Use: "asset [id]", - Short: "Query an asset", + Short: "Query an asset data by asset id", Args: cobra.ExactArgs(1), RunE: func(cmd *cobra.Command, args []string) error { ctx, err := client.GetClientQueryContext(cmd) @@ -51,7 +51,7 @@ func queryAsset() *cobra.Command { func queryAssets() *cobra.Command { cmd := &cobra.Command{ Use: "assets", - Short: "Query assets", + Short: "Query data of all the assets", RunE: func(cmd *cobra.Command, args []string) error { ctx, err := client.GetClientQueryContext(cmd) if err != nil { @@ -88,7 +88,7 @@ func queryAssets() *cobra.Command { func queryPair() *cobra.Command { cmd := &cobra.Command{ Use: "pair [id]", - Short: "Query a pair", + Short: "Query a pair data by pair id", Args: cobra.ExactArgs(1), RunE: func(cmd *cobra.Command, args []string) error { ctx, err := client.GetClientQueryContext(cmd) @@ -125,7 +125,7 @@ func queryPair() *cobra.Command { func queryPairs() *cobra.Command { cmd := &cobra.Command{ Use: "pairs", - Short: "Query pairs", + Short: "Query data of all the pairs", RunE: func(cmd *cobra.Command, args []string) error { ctx, err := client.GetClientQueryContext(cmd) if err != nil { @@ -191,7 +191,7 @@ func queryParams() *cobra.Command { func queryAppsMappings() *cobra.Command { cmd := &cobra.Command{ Use: "apps", - Short: "Query all Apps", + Short: "Query data for all the apps of the protocol", RunE: func(cmd *cobra.Command, args []string) error { ctx, err := client.GetClientQueryContext(cmd) if err != nil { @@ -221,7 +221,7 @@ func queryAppsMappings() *cobra.Command { func queryAppMappings() *cobra.Command { cmd := &cobra.Command{ Use: "app [id]", - Short: "Query App by id", + Short: "Query data for an app of the protocol by app id", Args: cobra.ExactArgs(1), RunE: func(cmd *cobra.Command, args []string) error { ctx, err := client.GetClientQueryContext(cmd) @@ -256,10 +256,10 @@ func queryAppMappings() *cobra.Command { return cmd } -func queryPairVault() *cobra.Command { +func queryExtendedPairVault() *cobra.Command { cmd := &cobra.Command{ - Use: "pairVault [id]", - Short: "Query pair vault by id", + Use: "extended_pair_vault [id]", + Short: "Query an Extended pairVault by id", Args: cobra.ExactArgs(1), RunE: func(cmd *cobra.Command, args []string) error { ctx, err := client.GetClientQueryContext(cmd) @@ -274,9 +274,9 @@ func queryPairVault() *cobra.Command { queryClient := types.NewQueryClient(ctx) - res, err := queryClient.QueryPairVault( + res, err := queryClient.QueryExtendedPairVault( context.Background(), - &types.QueryPairVaultRequest{ + &types.QueryExtendedPairVaultRequest{ Id: id, }, ) @@ -294,10 +294,10 @@ func queryPairVault() *cobra.Command { return cmd } -func queryPairVaults() *cobra.Command { +func queryAllExtendedPairVaults() *cobra.Command { cmd := &cobra.Command{ - Use: "pairVaults", - Short: "Query all pair vaults", + Use: "extended_pair_vaults", + Short: "Query all Extended pairVaults", RunE: func(cmd *cobra.Command, args []string) error { ctx, err := client.GetClientQueryContext(cmd) if err != nil { @@ -306,9 +306,9 @@ func queryPairVaults() *cobra.Command { queryClient := types.NewQueryClient(ctx) - res, err := queryClient.QueryPairVaults( + res, err := queryClient.QueryAllExtendedPairVaults( context.Background(), - &types.QueryPairVaultsRequest{}, + &types.QueryAllExtendedPairVaultsRequest{}, ) if err != nil { return err @@ -324,10 +324,10 @@ func queryPairVaults() *cobra.Command { return cmd } -func queryProductToExtendedPair() *cobra.Command { +func queryAllExtendedPairVaultsByApp() *cobra.Command { cmd := &cobra.Command{ - Use: "product-extended-pair [product_id]", - Short: "Query all extended pairs in a product", + Use: "app-extended-pair [app_id]", + Short: "Query all extended pairs in an app", Args: cobra.ExactArgs(1), RunE: func(cmd *cobra.Command, args []string) error { ctx, err := client.GetClientQueryContext(cmd) @@ -335,17 +335,17 @@ func queryProductToExtendedPair() *cobra.Command { return err } - productID, err := strconv.ParseUint(args[0], 10, 64) + appID, err := strconv.ParseUint(args[0], 10, 64) if err != nil { return err } queryClient := types.NewQueryClient(ctx) - res, err := queryClient.QueryProductToExtendedPair( + res, err := queryClient.QueryAllExtendedPairVaultsByApp( context.Background(), - &types.QueryProductToExtendedPairRequest{ - ProductId: productID, + &types.QueryAllExtendedPairVaultsByAppRequest{ + AppId: appID, }, ) if err != nil { @@ -362,10 +362,10 @@ func queryProductToExtendedPair() *cobra.Command { return cmd } -func queryExtendedPairPsmPairWise() *cobra.Command { +func queryAllExtendedPairStableVaultsIdByApp() *cobra.Command { cmd := &cobra.Command{ - Use: "extended-pair-psm-pair-wise [product_id]", - Short: "Query all extended pairs psm pair wise in a product", + Use: "extended-pair-psm-pair-wise [app_id]", + Short: "Query all extended pairs psm pair wise in an app", Args: cobra.ExactArgs(1), RunE: func(cmd *cobra.Command, args []string) error { ctx, err := client.GetClientQueryContext(cmd) @@ -373,17 +373,17 @@ func queryExtendedPairPsmPairWise() *cobra.Command { return err } - productID, err := strconv.ParseUint(args[0], 10, 64) + appID, err := strconv.ParseUint(args[0], 10, 64) if err != nil { return err } queryClient := types.NewQueryClient(ctx) - res, err := queryClient.QueryExtendedPairPsmPairWise( + res, err := queryClient.QueryAllExtendedPairStableVaultsIdByApp( context.Background(), - &types.QueryExtendedPairPsmPairWiseRequest{ - ProductId: productID, + &types.QueryAllExtendedPairStableVaultsIdByAppRequest{ + AppId: appID, }, ) if err != nil { @@ -400,10 +400,10 @@ func queryExtendedPairPsmPairWise() *cobra.Command { return cmd } -func queryTokenGov() *cobra.Command { +func queryGovTokenByApp() *cobra.Command { cmd := &cobra.Command{ - Use: "check_for_token_gov [app_id]", - Short: "Query for gov token in a app", + Use: "check_for_gov_token_for_an_app [app_id]", + Short: "Query for gov token in an app", Args: cobra.ExactArgs(1), RunE: func(cmd *cobra.Command, args []string) error { ctx, err := client.GetClientQueryContext(cmd) @@ -418,9 +418,9 @@ func queryTokenGov() *cobra.Command { queryClient := types.NewQueryClient(ctx) - res, err := queryClient.QueryTokenGov( + res, err := queryClient.QueryGovTokenByApp( context.Background(), - &types.QueryTokenGovRequest{ + &types.QueryGovTokenByAppRequest{ AppId: appID, }, ) @@ -438,10 +438,10 @@ func queryTokenGov() *cobra.Command { return cmd } -func queryExtendedPairDataPsmPairWise() *cobra.Command { +func queryAllExtendedPairStableVaultsDataByApp() *cobra.Command { cmd := &cobra.Command{ Use: "extended-pair-data-psm-pair-wise [app_id]", - Short: "Query all extended pairs data psm pair wise in a product", + Short: "Query all extended pairs data psm pair wise in an app", Args: cobra.ExactArgs(1), RunE: func(cmd *cobra.Command, args []string) error { ctx, err := client.GetClientQueryContext(cmd) @@ -456,9 +456,9 @@ func queryExtendedPairDataPsmPairWise() *cobra.Command { queryClient := types.NewQueryClient(ctx) - res, err := queryClient.QueryExtendedPairDataPsmPairWise( + res, err := queryClient.QueryAllExtendedPairStableVaultsDataByApp( context.Background(), - &types.QueryExtendedPairDataPsmPairWiseRequest{ + &types.QueryAllExtendedPairStableVaultsDataByAppRequest{ AppId: appID, }, ) diff --git a/x/asset/client/cli/tx.go b/x/asset/client/cli/tx.go index ad5fbeb74..4fb0f824f 100644 --- a/x/asset/client/cli/tx.go +++ b/x/asset/client/cli/tx.go @@ -70,8 +70,8 @@ func NewCmdSubmitAddAssetsProposal() *cobra.Command { Name: names[i], Denom: denoms[i], Decimals: decimals[i], - IsOnchain: newIsOnChain, - AssetOraclePrice: newAssetOraclePrice, + IsOnChain: newIsOnChain, + IsOraclePriceRequired: newAssetOraclePrice, }) } @@ -268,355 +268,6 @@ func NewCmdSubmitAddPairsProposal() *cobra.Command { return cmd } -func NewCmdSubmitAddWhitelistedAssetsProposal() *cobra.Command { - cmd := &cobra.Command{ - Use: "add-lend-assets [asset_id] [Collateral_Weight] [Liquidation_Threshold] [Is_Bridged_Asset]", - Args: cobra.ExactArgs(4), - Short: "Add lend assets", - RunE: func(cmd *cobra.Command, args []string) error { - ctx, err := client.GetClientTxContext(cmd) - if err != nil { - return err - } - - assetIDs, err := ParseUint64SliceFromString(args[0], ",") - if err != nil { - return err - } - - collateralWeight, err := ParseStringFromString(args[1], ",") - if err != nil { - return err - } - - liquidationThreshold, err := ParseStringFromString(args[2], ",") - if err != nil { - return err - } - - isBridgedAsset, err := ParseStringFromString(args[3], ",") - if err != nil { - return err - } - - title, err := cmd.Flags().GetString(cli.FlagTitle) - if err != nil { - return err - } - - description, err := cmd.Flags().GetString(cli.FlagDescription) - if err != nil { - return err - } - - from := ctx.GetFromAddress() - - var assets []types.ExtendedAsset - for i := range assetIDs { - newCollateralWeight, err := sdk.NewDecFromStr(collateralWeight[i]) - if err != nil { - return err - } - newLiquidationThreshold, err := sdk.NewDecFromStr(liquidationThreshold[i]) - if err != nil { - return err - } - newIsBridgedAsset := ParseBoolFromString(isBridgedAsset[i]) - - assets = append(assets, types.ExtendedAsset{ - AssetId: assetIDs[i], - CollateralWeight: newCollateralWeight, - LiquidationThreshold: newLiquidationThreshold, - IsBridgedAsset: newIsBridgedAsset, - }) - } - - depositStr, err := cmd.Flags().GetString(cli.FlagDeposit) - if err != nil { - return err - } - deposit, err := sdk.ParseCoinsNormalized(depositStr) - if err != nil { - return err - } - - content := types.NewAddWhitelistedAssetsProposal(title, description, assets) - - msg, err := govtypes.NewMsgSubmitProposal(content, deposit, from) - if err != nil { - return err - } - - if err = msg.ValidateBasic(); err != nil { - return err - } - - return tx.GenerateOrBroadcastTxCLI(ctx, cmd.Flags(), msg) - }, - } - - cmd.Flags().String(cli.FlagTitle, "", "title of proposal") - cmd.Flags().String(cli.FlagDescription, "", "description of proposal") - cmd.Flags().String(cli.FlagDeposit, "", "deposit of proposal") - _ = cmd.MarkFlagRequired(cli.FlagTitle) - _ = cmd.MarkFlagRequired(cli.FlagDescription) - - return cmd -} - -func NewCmdUpdateWhitelistedAssetProposal() *cobra.Command { - cmd := &cobra.Command{ - Use: "update-lend-asset [asset_id]", - Args: cobra.ExactArgs(1), - Short: "Update lend assets", - RunE: func(cmd *cobra.Command, args []string) error { - clientCtx, err := client.GetClientTxContext(cmd) - if err != nil { - return err - } - id, err := strconv.ParseUint(args[0], 10, 64) - if err != nil { - return err - } - - collateralWeight, err := cmd.Flags().GetString(flagCollateralWeight) - if err != nil { - return err - } - newCollateralWeight, err := sdk.NewDecFromStr(collateralWeight) - if err != nil { - return err - } - - liquidationThreshold, err := cmd.Flags().GetString(flagLiquidationThreshold) - if err != nil { - return err - } - newLiquidationThreshold, err := sdk.NewDecFromStr(liquidationThreshold) - if err != nil { - return err - } - - title, err := cmd.Flags().GetString(cli.FlagTitle) - if err != nil { - return err - } - - description, err := cmd.Flags().GetString(cli.FlagDescription) - if err != nil { - return err - } - - isBridgedAsset, err := cmd.Flags().GetString(flagIsBridgedAsset) - if err != nil { - return err - } - - newIsBridgedAsset := ParseBoolFromString(isBridgedAsset) - - from := clientCtx.GetFromAddress() - - asset := types.ExtendedAsset{ - Id: id, - CollateralWeight: newCollateralWeight, - LiquidationThreshold: newLiquidationThreshold, - IsBridgedAsset: newIsBridgedAsset, - } - - depositStr, err := cmd.Flags().GetString(cli.FlagDeposit) - if err != nil { - return err - } - deposit, err := sdk.ParseCoinsNormalized(depositStr) - if err != nil { - return err - } - - content := types.NewUpdateWhitelistedAssetProposal(title, description, asset) - - msg, err := govtypes.NewMsgSubmitProposal(content, deposit, from) - if err != nil { - return err - } - - if err = msg.ValidateBasic(); err != nil { - return err - } - - return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) - }, - } - - cmd.Flags().String(cli.FlagTitle, "", "title of proposal") - cmd.Flags().String(cli.FlagDescription, "", "description of proposal") - cmd.Flags().String(cli.FlagDeposit, "", "deposit of proposal") - cmd.Flags().String(flagName, "", "name") - cmd.Flags().String(flagDenom, "", "denomination") - cmd.Flags().String(flagCollateralWeight, "", "collateralWeight") - cmd.Flags().String(flagLiquidationThreshold, "", "liquidationThreshold") - cmd.Flags().String(flagIsBridgedAsset, "", "isBridgedAsset") - - _ = cmd.MarkFlagRequired(cli.FlagTitle) - _ = cmd.MarkFlagRequired(cli.FlagDescription) - - return cmd -} - -func NewCmdAddWhitelistedPairsProposal() *cobra.Command { - cmd := &cobra.Command{ - Use: "add-lend-asset-pairs [flags]", - Short: "Add lend asset pairs", - Long: `Must provide path to a add white listed pairs JSON file (--add-white-whitelisted-pairs-file) describing the white listed pairs to be created -Sample json content -{ - "pair_id" :"", - "module-account" :"", - "base_borrow_rate_asset_1" :"", - "base_borrow_rate_asset_2" :"", - "base_lend_rate_asset_1" :"", - "base_lend_rate_asset_2" :"", - "title" :"", - "description" :"", - "deposit" :"" -}`, - Args: cobra.ExactArgs(0), - RunE: func(cmd *cobra.Command, args []string) error { - clientCtx, err := client.GetClientTxContext(cmd) - if err != nil { - return err - } - - txf := tx.NewFactoryCLI(clientCtx, cmd.Flags()).WithTxConfig(clientCtx.TxConfig).WithAccountRetriever(clientCtx.AccountRetriever) - - txf, msg, err := NewCreateWhiteListedPairsMsg(clientCtx, txf, cmd.Flags()) - if err != nil { - return err - } - - return tx.GenerateOrBroadcastTxWithFactory(clientCtx, txf, msg) - }, - } - - cmd.Flags().AddFlagSet(FlagSetCreateWhiteListedPairsMapping()) - cmd.Flags().String(cli.FlagProposal, "", "Proposal file path (if this path is given, other proposal flags are ignored)") - - return cmd -} - -func NewCmdUpdateWhitelistedPairProposal() *cobra.Command { - cmd := &cobra.Command{ - Use: "update-lend-asset-pair [len_pair_id]", - Short: "Update a lend asset pair", - Args: cobra.ExactArgs(1), - RunE: func(cmd *cobra.Command, args []string) error { - clientCtx, err := client.GetClientTxContext(cmd) - if err != nil { - return err - } - - id, err := strconv.ParseUint(args[0], 10, 64) - if err != nil { - return err - } - moduleAcc, err := cmd.Flags().GetString(flagModuleAcc) - if err != nil { - return err - } - baseBorrowRateAsset1, err := cmd.Flags().GetString(flagBaseBorrowRateAsset1) - if err != nil { - return err - } - newBaseBorrowRateAsset1, err := sdk.NewDecFromStr(baseBorrowRateAsset1) - if err != nil { - return err - } - - baseBorrowRateAsset2, err := cmd.Flags().GetString(flagBaseBorrowRateAsset2) - if err != nil { - return err - } - newBaseBorrowRateAsset2, err := sdk.NewDecFromStr(baseBorrowRateAsset2) - if err != nil { - return err - } - - baseLendRateAsset1, err := cmd.Flags().GetString(flagBaseLendRateAsset1) - if err != nil { - return err - } - newBaseLendRateAsset1, err := sdk.NewDecFromStr(baseLendRateAsset1) - if err != nil { - return err - } - - baseLendRateAsset2, err := cmd.Flags().GetString(flagBaseLendRateAsset2) - if err != nil { - return err - } - newBaseLendRateAsset2, err := sdk.NewDecFromStr(baseLendRateAsset2) - if err != nil { - return err - } - - pair := types.ExtendedPairLend{ - Id: id, - ModuleAcc: moduleAcc, - BaseBorrowRateAsset_1: newBaseBorrowRateAsset1, - BaseBorrowRateAsset_2: newBaseBorrowRateAsset2, - BaseLendRateAsset_1: newBaseLendRateAsset1, - BaseLendRateAsset_2: newBaseLendRateAsset2, - } - - title, err := cmd.Flags().GetString(cli.FlagTitle) - if err != nil { - return err - } - - description, err := cmd.Flags().GetString(cli.FlagDescription) - if err != nil { - return err - } - - from := clientCtx.GetFromAddress() - - depositStr, err := cmd.Flags().GetString(cli.FlagDeposit) - if err != nil { - return err - } - deposit, err := sdk.ParseCoinsNormalized(depositStr) - if err != nil { - return err - } - - content := types.NewUpdateWhitelistedPairProposal(title, description, pair) - - msg, err := govtypes.NewMsgSubmitProposal(content, deposit, from) - if err != nil { - return err - } - - if err = msg.ValidateBasic(); err != nil { - return err - } - - return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) - }, - } - - cmd.Flags().String(cli.FlagTitle, "", "title of proposal") - cmd.Flags().String(cli.FlagDescription, "", "description of proposal") - cmd.Flags().String(cli.FlagDeposit, "", "deposit of proposal") - cmd.Flags().String(flagModuleAcc, "", "moduleAcc") - cmd.Flags().String(flagBaseBorrowRateAsset1, "", "base borrow rate asset1") - cmd.Flags().String(flagBaseBorrowRateAsset2, "", "base borrow rate asset2") - cmd.Flags().String(flagBaseLendRateAsset1, "", "base lend rate asset1") - cmd.Flags().String(flagBaseLendRateAsset2, "", "base lend rate asset2") - - _ = cmd.MarkFlagRequired(cli.FlagTitle) - _ = cmd.MarkFlagRequired(cli.FlagDescription) - - return cmd -} func NewCmdSubmitAddAppMappingProposal() *cobra.Command { cmd := &cobra.Command{ @@ -824,7 +475,6 @@ Sample json content { "app_mapping_id" : "", "pair_id" : "", - "liquidation_ratio" : "", "stability_fee" : "", "closing_fee" : "", "liquidation_penalty" : "", @@ -883,11 +533,6 @@ func NewCreateExtendedPairVaultMsg(clientCtx client.Context, txf tx.Factory, fs return txf, nil, err } - liquidationRatio, err := ParseStringFromString(extPairVault.LiquidationRatio, ",") - if err != nil { - return txf, nil, err - } - stabilityFee, err := ParseStringFromString(extPairVault.StabilityFee, ",") if err != nil { return txf, nil, err @@ -965,10 +610,6 @@ func NewCreateExtendedPairVaultMsg(clientCtx client.Context, txf tx.Factory, fs var pairs []types.ExtendedPairVault for i := range pairID { - newLiquidationRatio, err := sdk.NewDecFromStr(liquidationRatio[i]) - if err != nil { - return txf, nil, err - } newStabilityFee, err := sdk.NewDecFromStr(stabilityFee[i]) if err != nil { return txf, nil, err @@ -1001,12 +642,11 @@ func NewCreateExtendedPairVaultMsg(clientCtx client.Context, txf tx.Factory, fs if !ok { return txf, nil, types.ErrorInvalidDebtFloor } - newIsPsmPair := ParseBoolFromString(isPsmPair[i]) + newIsStableMintVault := ParseBoolFromString(isPsmPair[i]) newAssetOutOraclePrice := ParseBoolFromString(assetOutOraclePrice[i]) pairs = append(pairs, types.ExtendedPairVault{ AppMappingId: appMappingID, PairId: pairID[i], - LiquidationRatio: newLiquidationRatio, StabilityFee: newStabilityFee, ClosingFee: newClosingFee, LiquidationPenalty: newLiquidationPenalty, @@ -1014,7 +654,7 @@ func NewCreateExtendedPairVaultMsg(clientCtx client.Context, txf tx.Factory, fs IsVaultActive: newIsVaultActive, DebtCeiling: debtCeiling, DebtFloor: newDebtFloor, - IsPsmPair: newIsPsmPair, + IsStableMintVault: newIsStableMintVault, MinCr: newMinCr, PairName: pairName[i], AssetOutOraclePrice: newAssetOutOraclePrice, @@ -1093,7 +733,7 @@ func NewCreateAssetMappingMsg(clientCtx client.Context, txf tx.Factory, fs *flag cmap.AssetId = assetIDs[i] cmap.GenesisSupply = &newGenesisSupply - cmap.IsgovToken = newIsGovToken + cmap.IsGovToken = newIsGovToken cmap.Recipient = address.String() bMap = append(bMap, cmap) @@ -1121,83 +761,3 @@ func NewCreateAssetMappingMsg(clientCtx client.Context, txf tx.Factory, fs *flag return txf, msg, nil } -func NewCreateWhiteListedPairsMsg(clientCtx client.Context, txf tx.Factory, fs *flag.FlagSet) (tx.Factory, sdk.Msg, error) { - whiteListedPairs, err := parseWhiteListedPairsFlags(fs) - if err != nil { - return txf, nil, fmt.Errorf("failed to parse whiteListedPairs: %w", err) - } - - pairID, err := ParseUint64SliceFromString(whiteListedPairs.PairID, ",") - if err != nil { - return txf, nil, err - } - - moduleAccount, err := ParseStringFromString(whiteListedPairs.ModuleAccount, ",") - if err != nil { - return txf, nil, err - } - - baseBorrowRateAsset1, err := ParseStringFromString(whiteListedPairs.BaseBorrowRateAsset1, ",") - if err != nil { - return txf, nil, err - } - baseBorrowRateAsset2, err := ParseStringFromString(whiteListedPairs.BaseBorrowRateAsset2, ",") - if err != nil { - return txf, nil, err - } - baseLendRateAsset1, err := ParseStringFromString(whiteListedPairs.BaseLendRateAsset1, ",") - if err != nil { - return txf, nil, err - } - baseLendRateAsset2, err := ParseStringFromString(whiteListedPairs.BaseLendRateAsset2, ",") - if err != nil { - return txf, nil, err - } - - var pairs []types.ExtendedPairLend - for i := range pairID { - newBaseBorrowRateAsset1, err := sdk.NewDecFromStr(baseBorrowRateAsset1[i]) - if err != nil { - return txf, nil, err - } - newBaseBorrowRateAsset2, err := sdk.NewDecFromStr(baseBorrowRateAsset2[i]) - if err != nil { - return txf, nil, err - } - newBaseLendRateAsset1, err := sdk.NewDecFromStr(baseLendRateAsset1[i]) - if err != nil { - return txf, nil, err - } - newBaseLendRateAsset2, err := sdk.NewDecFromStr(baseLendRateAsset2[i]) - if err != nil { - return txf, nil, err - } - pairs = append(pairs, types.ExtendedPairLend{ - PairId: pairID[i], - ModuleAcc: moduleAccount[i], - BaseBorrowRateAsset_1: newBaseBorrowRateAsset1, - BaseBorrowRateAsset_2: newBaseBorrowRateAsset2, - BaseLendRateAsset_1: newBaseLendRateAsset1, - BaseLendRateAsset_2: newBaseLendRateAsset2, - }) - } - - from := clientCtx.GetFromAddress() - - deposit, err := sdk.ParseCoinsNormalized(whiteListedPairs.Deposit) - if err != nil { - return txf, nil, err - } - - content := types.NewAddWhitelistedPairsProposal(whiteListedPairs.Title, whiteListedPairs.Description, pairs) - - msg, err := govtypes.NewMsgSubmitProposal(content, deposit, from) - if err != nil { - return txf, nil, err - } - - if err = msg.ValidateBasic(); err != nil { - return txf, nil, err - } - return txf, msg, nil -} diff --git a/x/asset/client/proposal_handler.go b/x/asset/client/proposal_handler.go index 33dba79f9..915da8a2a 100644 --- a/x/asset/client/proposal_handler.go +++ b/x/asset/client/proposal_handler.go @@ -11,10 +11,6 @@ var ( govclient.NewProposalHandler(cli.NewCmdSubmitAddAssetsProposal, rest.AddNewAssetsProposalRESTHandler), govclient.NewProposalHandler(cli.NewCmdSubmitUpdateAssetProposal, rest.UpdateNewAssetProposalRESTHandler), govclient.NewProposalHandler(cli.NewCmdSubmitAddPairsProposal, rest.AddNewPairsProposalRESTHandler), - govclient.NewProposalHandler(cli.NewCmdSubmitAddWhitelistedAssetsProposal, rest.AddNewWhitelistedAssetsProposalRESTHandler), - govclient.NewProposalHandler(cli.NewCmdUpdateWhitelistedAssetProposal, rest.UpdateNewWhitelistedAssetsProposalRESTHandler), - govclient.NewProposalHandler(cli.NewCmdAddWhitelistedPairsProposal, rest.AddNewWhitelistedPairsProposalRESTHandler), - govclient.NewProposalHandler(cli.NewCmdUpdateWhitelistedPairProposal, rest.UpdateNewWhitelistedPairProposalRESTHandler), govclient.NewProposalHandler(cli.NewCmdSubmitAddAppMappingProposal, rest.AddNewAppMappingProposalRESTHandler), govclient.NewProposalHandler(cli.NewCmdSubmitAddExtendedPairsVaultProposal, rest.AddExtendedPairsVaultProposalRESTHandler), govclient.NewProposalHandler(cli.NewCmdSubmitAddAssetMappingProposal, rest.AddNewAssetMappingProposalRESTHandler), diff --git a/x/asset/client/rest/tx.go b/x/asset/client/rest/tx.go index 98c9b8a8e..4950ded73 100644 --- a/x/asset/client/rest/tx.go +++ b/x/asset/client/rest/tx.go @@ -53,34 +53,6 @@ func AddNewPairsProposalRESTHandler(clientCtx client.Context) govrest.ProposalRE } } -func AddNewWhitelistedAssetsProposalRESTHandler(clientCtx client.Context) govrest.ProposalRESTHandler { - return govrest.ProposalRESTHandler{ - SubRoute: "add-new-whitelisted-assets", - Handler: AddNewAssetsRESTHandler(clientCtx), - } -} - -func UpdateNewWhitelistedAssetsProposalRESTHandler(clientCtx client.Context) govrest.ProposalRESTHandler { - return govrest.ProposalRESTHandler{ - SubRoute: "update-whitelisted-assets", - Handler: UpdateNewAssetRESTHandler(clientCtx), - } -} - -func AddNewWhitelistedPairsProposalRESTHandler(clientCtx client.Context) govrest.ProposalRESTHandler { - return govrest.ProposalRESTHandler{ - SubRoute: "add-new-whitelisted-pairs", - Handler: AddNewPairsRESTHandler(clientCtx), - } -} - -func UpdateNewWhitelistedPairProposalRESTHandler(clientCtx client.Context) govrest.ProposalRESTHandler { - return govrest.ProposalRESTHandler{ - SubRoute: "update-new-whitelisted-pairs", - Handler: UpdateNewPairsRESTHandler(clientCtx), - } -} - func AddNewAssetsRESTHandler(clientCtx client.Context) http.HandlerFunc { return func(w http.ResponseWriter, r *http.Request) { var req AddNewAssetsRequest diff --git a/x/asset/handler.go b/x/asset/handler.go index 9f6e7b21d..cd38ded0c 100644 --- a/x/asset/handler.go +++ b/x/asset/handler.go @@ -39,16 +39,8 @@ func NewUpdateAssetProposalHandler(k keeper.Keeper) govtypes.Handler { return handleUpdateAssetProposal(ctx, k, c) case *types.AddPairsProposal: return handleAddPairsProposal(ctx, k, c) - case *types.AddWhitelistedAssetsProposal: - return handleAddWhitelistedAssetProposal(ctx, k, c) - case *types.UpdateWhitelistedAssetProposal: - return handleUpdateWhitelistedAssetProposal(ctx, k, c) case *types.UpdateGovTimeInAppMappingProposal: return handleUpdateGovTimeInAppMappingProposal(ctx, k, c) - case *types.AddWhitelistedPairsProposal: - return handleAddWhitelistedPairsProposal(ctx, k, c) - case *types.UpdateWhitelistedPairProposal: - return handleUpdateWhitelistedPairProposal(ctx, k, c) case *types.AddAppMappingProposal: return handleAddAppMappingProposal(ctx, k, c) case *types.AddAssetMappingProposal: @@ -74,26 +66,10 @@ func handleAddPairsProposal(ctx sdk.Context, k keeper.Keeper, p *types.AddPairsP return k.HandleProposalAddPairs(ctx, p) } -func handleAddWhitelistedAssetProposal(ctx sdk.Context, k keeper.Keeper, p *types.AddWhitelistedAssetsProposal) error { - return k.HandleAddWhitelistedAssetRecords(ctx, p) -} - -func handleUpdateWhitelistedAssetProposal(ctx sdk.Context, k keeper.Keeper, p *types.UpdateWhitelistedAssetProposal) error { - return k.HandleUpdateWhitelistedAssetRecords(ctx, p) -} - func handleUpdateGovTimeInAppMappingProposal(ctx sdk.Context, k keeper.Keeper, p *types.UpdateGovTimeInAppMappingProposal) error { return k.HandleUpdateGovTimeInAppMapping(ctx, p) } -func handleAddWhitelistedPairsProposal(ctx sdk.Context, k keeper.Keeper, p *types.AddWhitelistedPairsProposal) error { - return k.HandleAddWhitelistedPairsRecords(ctx, p) -} - -func handleUpdateWhitelistedPairProposal(ctx sdk.Context, k keeper.Keeper, p *types.UpdateWhitelistedPairProposal) error { - return k.HandleUpdateWhitelistedPairRecords(ctx, p) -} - func handleAddAppMappingProposal(ctx sdk.Context, k keeper.Keeper, p *types.AddAppMappingProposal) error { return k.HandleAddAppMappingRecords(ctx, p) } diff --git a/x/asset/keeper/app_mapping.go b/x/asset/keeper/app_mapping.go index 922565620..7b81f22dd 100644 --- a/x/asset/keeper/app_mapping.go +++ b/x/asset/keeper/app_mapping.go @@ -69,7 +69,7 @@ func (k *Keeper) GetAppWasmQuery(ctx sdk.Context, id uint64) (int64, int64, uint gen := appData.GenesisToken govTimeInSeconds := int64(appData.GovTimeInSeconds) for _, v := range gen { - if v.IsgovToken { + if v.IsGovToken { assetID = v.AssetId } } @@ -254,19 +254,23 @@ func (k *Keeper) AddAssetMappingRecords(ctx sdk.Context, records ...types.AppMap if !found { return types.ErrorAssetDoesNotExist } - if !assetData.IsOnchain { + if !assetData.IsOnChain { return types.ErrorAssetIsOffChain } hasAsset := k.GetGenesisTokenForApp(ctx, msg.Id) - if hasAsset != 0 && data.IsgovToken { + if hasAsset != 0 && data.IsGovToken { return types.ErrorGenesisTokenExistForApp } + if appdata.MinGovDeposit.Equal(sdk.ZeroInt()) { + return types.ErrorMinGovDepositIsZero + } + checkFound := k.CheckIfAssetIsAddedToAppMapping(ctx, data.AssetId) if !checkFound { return types.ErrorAssetAlreadyExistingApp } - if hasAsset == 0 && data.IsgovToken { + if hasAsset == 0 && data.IsGovToken { k.SetGenesisTokenForApp(ctx, msg.Id, data.AssetId) } appdata.GenesisToken = append(appdata.GenesisToken, data) diff --git a/x/asset/keeper/asset.go b/x/asset/keeper/asset.go index 06dcca3ce..cfbd68f70 100644 --- a/x/asset/keeper/asset.go +++ b/x/asset/keeper/asset.go @@ -170,15 +170,15 @@ func (k *Keeper) AddAssetRecords(ctx sdk.Context, records ...types.Asset) error Name: msg.Name, Denom: msg.Denom, Decimals: msg.Decimals, - IsOnchain: msg.IsOnchain, - AssetOraclePrice: msg.AssetOraclePrice, + IsOnChain: msg.IsOnChain, + IsOraclePriceRequired: msg.IsOraclePriceRequired, } ) k.SetAssetID(ctx, asset.Id) k.SetAsset(ctx, asset) k.SetAssetForDenom(ctx, asset.Denom, asset.Id) - if msg.AssetOraclePrice { + if msg.IsOraclePriceRequired { k.SetAssetForOracle(ctx, asset) } } diff --git a/x/asset/keeper/gov.go b/x/asset/keeper/gov.go index 7c9a5f35f..0222027c5 100644 --- a/x/asset/keeper/gov.go +++ b/x/asset/keeper/gov.go @@ -17,26 +17,10 @@ func (k Keeper) HandleProposalAddPairs(ctx sdk.Context, p *types.AddPairsProposa return k.AddPairsRecords(ctx, p.Pairs...) } -func (k Keeper) HandleAddWhitelistedAssetRecords(ctx sdk.Context, p *types.AddWhitelistedAssetsProposal) error { - return k.AddWhitelistedAssetRecords(ctx, p.Assets...) -} - -func (k Keeper) HandleUpdateWhitelistedAssetRecords(ctx sdk.Context, p *types.UpdateWhitelistedAssetProposal) error { - return k.UpdateWhitelistedAssetRecords(ctx, p.Asset) -} - func (k Keeper) HandleUpdateGovTimeInAppMapping(ctx sdk.Context, p *types.UpdateGovTimeInAppMappingProposal) error { return k.UpdateGovTimeInAppMapping(ctx, p.GovTime) } -func (k Keeper) HandleAddWhitelistedPairsRecords(ctx sdk.Context, p *types.AddWhitelistedPairsProposal) error { - return k.AddWhitelistedPairsRecords(ctx, p.Pairs...) -} - -func (k Keeper) HandleUpdateWhitelistedPairRecords(ctx sdk.Context, p *types.UpdateWhitelistedPairProposal) error { - return k.UpdateWhitelistedPairRecords(ctx, p.Pair) -} - func (k Keeper) HandleAddAppMappingRecords(ctx sdk.Context, p *types.AddAppMappingProposal) error { return k.AddAppMappingRecords(ctx, p.App...) } diff --git a/x/asset/keeper/pairs_vault.go b/x/asset/keeper/pairs_vault.go index 60f064f4b..15f71f258 100644 --- a/x/asset/keeper/pairs_vault.go +++ b/x/asset/keeper/pairs_vault.go @@ -127,7 +127,6 @@ func (k *Keeper) AddExtendedPairsVaultRecords(ctx sdk.Context, records ...types. Id: id + 1, AppMappingId: msg.AppMappingId, PairId: msg.PairId, - LiquidationRatio: msg.LiquidationRatio, StabilityFee: msg.StabilityFee, ClosingFee: msg.ClosingFee, LiquidationPenalty: msg.LiquidationPenalty, @@ -135,7 +134,7 @@ func (k *Keeper) AddExtendedPairsVaultRecords(ctx sdk.Context, records ...types. IsVaultActive: msg.IsVaultActive, DebtCeiling: msg.DebtCeiling, DebtFloor: msg.DebtFloor, - IsPsmPair: msg.IsPsmPair, + IsStableMintVault: msg.IsStableMintVault, MinCr: msg.MinCr, PairName: msg.PairName, AssetOutOraclePrice: msg.AssetOutOraclePrice, @@ -189,7 +188,6 @@ func (k *Keeper) WasmAddExtendedPairsVaultRecords(ctx sdk.Context, pairVaultBind Id: id + 1, AppMappingId: pairVaultBinding.AppMappingID, PairId: pairVaultBinding.PairID, - LiquidationRatio: pairVaultBinding.LiquidationRatio, StabilityFee: pairVaultBinding.StabilityFee, ClosingFee: pairVaultBinding.ClosingFee, LiquidationPenalty: pairVaultBinding.LiquidationPenalty, @@ -197,7 +195,7 @@ func (k *Keeper) WasmAddExtendedPairsVaultRecords(ctx sdk.Context, pairVaultBind IsVaultActive: pairVaultBinding.IsVaultActive, DebtCeiling: DebtCeiling, DebtFloor: DebtFloor, - IsPsmPair: pairVaultBinding.IsPsmPair, + IsStableMintVault: pairVaultBinding.IsStableMintVault, MinCr: pairVaultBinding.MinCr, PairName: pairVaultBinding.PairName, AssetOutOraclePrice: pairVaultBinding.AssetOutOraclePrice, @@ -261,7 +259,6 @@ func (k *Keeper) WasmUpdatePairsVault(ctx sdk.Context, updatePairVault *bindings ExtPairVaultData.Id = data.Id ExtPairVaultData.PairId = data.PairId ExtPairVaultData.AppMappingId = data.AppMappingId - ExtPairVaultData.LiquidationRatio = updatePairVault.LiquidationRatio ExtPairVaultData.StabilityFee = updatePairVault.StabilityFee ExtPairVaultData.ClosingFee = updatePairVault.ClosingFee ExtPairVaultData.LiquidationPenalty = updatePairVault.LiquidationPenalty @@ -269,7 +266,7 @@ func (k *Keeper) WasmUpdatePairsVault(ctx sdk.Context, updatePairVault *bindings ExtPairVaultData.IsVaultActive = data.IsVaultActive ExtPairVaultData.DebtCeiling = sdk.NewInt(int64(updatePairVault.DebtCeiling)) ExtPairVaultData.DebtFloor = sdk.NewInt(int64(updatePairVault.DebtFloor)) - ExtPairVaultData.IsPsmPair = data.IsPsmPair + ExtPairVaultData.IsStableMintVault = data.IsStableMintVault ExtPairVaultData.MinCr = updatePairVault.MinCr ExtPairVaultData.PairName = data.PairName ExtPairVaultData.AssetOutOraclePrice = data.AssetOutOraclePrice diff --git a/x/asset/keeper/query_server.go b/x/asset/keeper/query_server.go index bbe3f17b8..0ec12760d 100644 --- a/x/asset/keeper/query_server.go +++ b/x/asset/keeper/query_server.go @@ -211,7 +211,7 @@ func (q *queryServer) QueryAppMappings(c context.Context, req *types.QueryAppReq }, nil } -func (q *queryServer) QueryPairVault(c context.Context, req *types.QueryPairVaultRequest) (*types.QueryPairVaultResponse, error) { +func (q *queryServer) QueryExtendedPairVault(c context.Context, req *types.QueryExtendedPairVaultRequest) (*types.QueryExtendedPairVaultResponse, error) { var ( ctx = sdk.UnwrapSDKContext(c) pair, found = q.GetPairsVault(ctx, req.Id) @@ -220,12 +220,12 @@ func (q *queryServer) QueryPairVault(c context.Context, req *types.QueryPairVaul return nil, status.Errorf(codes.NotFound, "pair does not exist for id %d", pair.Id) } - return &types.QueryPairVaultResponse{ + return &types.QueryExtendedPairVaultResponse{ PairVault: pair, }, nil } -func (q *queryServer) QueryPairVaults(c context.Context, _ *types.QueryPairVaultsRequest) (*types.QueryPairVaultsResponse, error) { +func (q *queryServer) QueryAllExtendedPairVaults(c context.Context, _ *types.QueryAllExtendedPairVaultsRequest) (*types.QueryAllExtendedPairVaultsResponse, error) { var ( ctx = sdk.UnwrapSDKContext(c) pairVaults, found = q.GetPairsVaults(ctx) @@ -234,12 +234,12 @@ func (q *queryServer) QueryPairVaults(c context.Context, _ *types.QueryPairVault return nil, status.Errorf(codes.NotFound, "Extended pairs does not exist") } - return &types.QueryPairVaultsResponse{ + return &types.QueryAllExtendedPairVaultsResponse{ PairVault: pairVaults, }, nil } -func (q *queryServer) QueryProductToExtendedPair(c context.Context, req *types.QueryProductToExtendedPairRequest) (*types.QueryProductToExtendedPairResponse, error) { +func (q *queryServer) QueryAllExtendedPairVaultsByApp(c context.Context, req *types.QueryAllExtendedPairVaultsByAppRequest) (*types.QueryAllExtendedPairVaultsByAppResponse, error) { var ( ctx = sdk.UnwrapSDKContext(c) pairVaults, found = q.GetPairsVaults(ctx) @@ -249,17 +249,17 @@ func (q *queryServer) QueryProductToExtendedPair(c context.Context, req *types.Q } var pairVaultsData []types.ExtendedPairVault for _, data := range pairVaults { - if data.AppMappingId == req.ProductId { + if data.AppMappingId == req.AppId { pairVaultsData = append(pairVaultsData, data) } } - return &types.QueryProductToExtendedPairResponse{ + return &types.QueryAllExtendedPairVaultsByAppResponse{ ExtendedPair: pairVaultsData, }, nil } -func (q *queryServer) QueryExtendedPairPsmPairWise(c context.Context, req *types.QueryExtendedPairPsmPairWiseRequest) (*types.QueryExtendedPairPsmPairWiseResponse, error) { +func (q *queryServer) QueryAllExtendedPairStableVaultsIdByApp(c context.Context, req *types.QueryAllExtendedPairStableVaultsIdByAppRequest) (*types.QueryAllExtendedPairStableVaultsIdByAppResponse, error) { var ( ctx = sdk.UnwrapSDKContext(c) pairVaults, found = q.GetPairsVaults(ctx) @@ -269,17 +269,17 @@ func (q *queryServer) QueryExtendedPairPsmPairWise(c context.Context, req *types return nil, status.Errorf(codes.NotFound, "Extended pairs does not exist") } for _, data := range pairVaults { - if (data.AppMappingId == req.ProductId) && (data.IsPsmPair) { + if (data.AppMappingId == req.AppId) && (data.IsStableMintVault) { pairVault = append(pairVault, data.Id) } } - return &types.QueryExtendedPairPsmPairWiseResponse{ + return &types.QueryAllExtendedPairStableVaultsIdByAppResponse{ ExtendedPairsId: pairVault, }, nil } -func (q *queryServer) QueryTokenGov(c context.Context, req *types.QueryTokenGovRequest) (*types.QueryTokenGovResponse, error) { +func (q *queryServer) QueryGovTokenByApp(c context.Context, req *types.QueryGovTokenByAppRequest) (*types.QueryGovTokenByAppResponse, error) { var ( ctx = sdk.UnwrapSDKContext(c) assetID uint64 @@ -289,17 +289,17 @@ func (q *queryServer) QueryTokenGov(c context.Context, req *types.QueryTokenGovR return nil, types.AppIdsDoesntExist } for _, data := range appData.GenesisToken { - if data.IsgovToken { + if data.IsGovToken { assetID = data.AssetId } } - return &types.QueryTokenGovResponse{ + return &types.QueryGovTokenByAppResponse{ GovAssetId: assetID, }, nil } -func (q *queryServer) QueryExtendedPairDataPsmPairWise(c context.Context, req *types.QueryExtendedPairDataPsmPairWiseRequest) (*types.QueryExtendedPairDataPsmPairWiseResponse, error) { +func (q *queryServer) QueryAllExtendedPairStableVaultsDataByApp(c context.Context, req *types.QueryAllExtendedPairStableVaultsDataByAppRequest) (*types.QueryAllExtendedPairStableVaultsDataByAppResponse, error) { var ( ctx = sdk.UnwrapSDKContext(c) pairVaults, found = q.GetPairsVaults(ctx) @@ -309,12 +309,12 @@ func (q *queryServer) QueryExtendedPairDataPsmPairWise(c context.Context, req *t } var pairVaultsData []types.ExtendedPairVault for _, data := range pairVaults { - if data.AppMappingId == req.AppId && data.IsPsmPair { + if data.AppMappingId == req.AppId && data.IsStableMintVault { pairVaultsData = append(pairVaultsData, data) } } - return &types.QueryExtendedPairDataPsmPairWiseResponse{ + return &types.QueryAllExtendedPairStableVaultsDataByAppResponse{ ExtendedPair: pairVaultsData, }, nil } diff --git a/x/asset/keeper/whitelist.go b/x/asset/keeper/whitelist.go deleted file mode 100644 index 714515ed5..000000000 --- a/x/asset/keeper/whitelist.go +++ /dev/null @@ -1,231 +0,0 @@ -package keeper - -import ( - sdk "github.com/cosmos/cosmos-sdk/types" - protobuftypes "github.com/gogo/protobuf/types" - - "github.com/comdex-official/comdex/x/asset/types" -) - -func (k *Keeper) GetWhitelistAssetID(ctx sdk.Context) uint64 { - var ( - store = k.Store(ctx) - key = types.WhitelistAssetIDKey - value = store.Get(key) - ) - - if value == nil { - return 0 - } - - var id protobuftypes.UInt64Value - k.cdc.MustUnmarshal(value, &id) - - return id.GetValue() -} - -func (k *Keeper) SetWhitelistAssetID(ctx sdk.Context, id uint64) { - var ( - store = k.Store(ctx) - key = types.WhitelistAssetIDKey - value = k.cdc.MustMarshal( - &protobuftypes.UInt64Value{ - Value: id, - }, - ) - ) - - store.Set(key, value) -} - -func (k *Keeper) SetWhitelistAsset(ctx sdk.Context, asset types.ExtendedAsset) { - var ( - store = k.Store(ctx) - key = types.WhitelistAssetKey(asset.Id) - value = k.cdc.MustMarshal(&asset) - ) - - store.Set(key, value) -} - -func (k *Keeper) GetWhitelistAsset(ctx sdk.Context, id uint64) (asset types.ExtendedAsset, found bool) { - var ( - store = k.Store(ctx) - key = types.WhitelistAssetKey(id) - value = store.Get(key) - ) - - if value == nil { - return asset, false - } - - k.cdc.MustUnmarshal(value, &asset) - return asset, true -} - -func (k *Keeper) GetWhiteListPairID(ctx sdk.Context) uint64 { - var ( - store = k.Store(ctx) - key = types.WhitelistPairIDKey - value = store.Get(key) - ) - - if value == nil { - return 0 - } - - var count protobuftypes.UInt64Value - k.cdc.MustUnmarshal(value, &count) - - return count.GetValue() -} - -func (k *Keeper) HasWhitelistAsset(ctx sdk.Context, id uint64) bool { - var ( - store = k.Store(ctx) - key = types.WhitelistAssetKey(id) - ) - - return store.Has(key) -} - -func (k *Keeper) SetWhitelistPairID(ctx sdk.Context, id uint64) { - var ( - store = k.Store(ctx) - key = types.WhitelistPairIDKey - value = k.cdc.MustMarshal( - &protobuftypes.UInt64Value{ - Value: id, - }, - ) - ) - - store.Set(key, value) -} - -func (k *Keeper) SetWhitelistPair(ctx sdk.Context, pair types.ExtendedPairLend) { - var ( - store = k.Store(ctx) - key = types.WhitelistPairKey(pair.Id) - value = k.cdc.MustMarshal(&pair) - ) - - store.Set(key, value) -} - -func (k *Keeper) GetWhitelistPair(ctx sdk.Context, id uint64) (pair types.ExtendedPairLend, found bool) { - var ( - store = k.Store(ctx) - key = types.WhitelistPairKey(id) - value = store.Get(key) - ) - - if value == nil { - return pair, false - } - - k.cdc.MustUnmarshal(value, &pair) - return pair, true -} - -func (k *Keeper) AddWhitelistedAssetRecords(ctx sdk.Context, records ...types.ExtendedAsset) error { - for _, msg := range records { - if !k.HasAsset(ctx, msg.AssetId) { - return types.ErrorAssetDoesNotExist - } - if k.HasWhitelistAsset(ctx, msg.Id) { - return types.ErrorDuplicateAsset - } - - var ( - id = k.GetWhitelistAssetID(ctx) - asset = types.ExtendedAsset{ - Id: id + 1, - AssetId: msg.AssetId, - CollateralWeight: msg.CollateralWeight, - LiquidationThreshold: msg.LiquidationThreshold, - IsBridgedAsset: msg.IsBridgedAsset, - } - ) - - k.SetWhitelistAssetID(ctx, asset.Id) - k.SetWhitelistAsset(ctx, asset) - } - - return nil -} - -func (k *Keeper) UpdateWhitelistedAssetRecords(ctx sdk.Context, msg types.ExtendedAsset) error { - asset, found := k.GetWhitelistAsset(ctx, msg.Id) - if !found { - return types.ErrorAssetDoesNotExist - } - - if !msg.CollateralWeight.IsZero() { - asset.CollateralWeight = msg.CollateralWeight - } - if !msg.LiquidationThreshold.IsZero() { - asset.LiquidationThreshold = msg.LiquidationThreshold - } - - asset.IsBridgedAsset = msg.IsBridgedAsset - - k.SetWhitelistAsset(ctx, asset) - return nil -} - -func (k *Keeper) AddWhitelistedPairsRecords(ctx sdk.Context, records ...types.ExtendedPairLend) error { - for _, msg := range records { - _, found := k.GetPair(ctx, msg.PairId) - if !found { - return types.ErrorPairDoesNotExist - } - _, got := k.GetWhitelistPair(ctx, msg.Id) - if got { - return types.ErrorDuplicatePair - } - - var ( - id = k.GetWhiteListPairID(ctx) - pair = types.ExtendedPairLend{ - Id: id + 1, - PairId: msg.PairId, - ModuleAcc: msg.ModuleAcc, - BaseBorrowRateAsset_1: msg.BaseBorrowRateAsset_1, - BaseLendRateAsset_1: msg.BaseLendRateAsset_1, - BaseBorrowRateAsset_2: msg.BaseBorrowRateAsset_2, - BaseLendRateAsset_2: msg.BaseLendRateAsset_2, - } - ) - - k.SetWhitelistPairID(ctx, pair.Id) - k.SetWhitelistPair(ctx, pair) - } - return nil -} - -func (k *Keeper) UpdateWhitelistedPairRecords(ctx sdk.Context, msg types.ExtendedPairLend) error { - pair, found := k.GetWhitelistPair(ctx, msg.Id) - if !found { - return types.ErrorPairDoesNotExist - } - - if len(msg.ModuleAcc) > 0 { - pair.ModuleAcc = msg.ModuleAcc - } - if !msg.BaseBorrowRateAsset_1.IsZero() { - pair.BaseBorrowRateAsset_1 = msg.BaseBorrowRateAsset_1 - } - if !msg.BaseBorrowRateAsset_2.IsZero() { - pair.BaseBorrowRateAsset_2 = msg.BaseBorrowRateAsset_2 - } - if !msg.BaseLendRateAsset_1.IsZero() { - pair.BaseLendRateAsset_1 = msg.BaseLendRateAsset_1 - } - if !msg.BaseLendRateAsset_2.IsZero() { - pair.BaseLendRateAsset_2 = msg.BaseLendRateAsset_2 - } - - k.SetWhitelistPair(ctx, pair) - return nil -} diff --git a/x/asset/types/appMapping.pb.go b/x/asset/types/appMapping.pb.go index 77cfe4f8a..5623a5bf1 100644 --- a/x/asset/types/appMapping.pb.go +++ b/x/asset/types/appMapping.pb.go @@ -70,7 +70,7 @@ var xxx_messageInfo_AppMapping proto.InternalMessageInfo type MintGenesisToken struct { AssetId uint64 `protobuf:"varint,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty" yaml:"asset_id"` GenesisSupply *github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=genesis_supply,json=genesisSupply,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"genesis_supply,omitempty"` - IsgovToken bool `protobuf:"varint,3,opt,name=isgovToken,proto3" json:"isgovToken,omitempty" yaml:"isgovToken"` + IsGovToken bool `protobuf:"varint,3,opt,name=is_gov_token,json=isGovToken,proto3" json:"is_gov_token,omitempty" yaml:"is_gov_token"` Recipient string `protobuf:"bytes,4,opt,name=recipient,proto3" json:"recipient,omitempty" yaml:"recipient"` } @@ -156,42 +156,43 @@ func init() { } var fileDescriptor_2cfd2a3ad9e2bc5f = []byte{ - // 556 bytes of a gzipped FileDescriptorProto + // 565 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x93, 0xc1, 0x6e, 0xd3, 0x30, - 0x18, 0xc7, 0x93, 0xb6, 0x2b, 0xab, 0x47, 0xd7, 0x2e, 0x2b, 0xa8, 0x9a, 0x50, 0x52, 0x19, 0x31, - 0x55, 0x48, 0x4b, 0xb4, 0x01, 0x17, 0x6e, 0xad, 0x90, 0x4a, 0x0f, 0x45, 0x5a, 0xb6, 0x13,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 0x50, 0x9b, 0x22, 0x1f, 0x33, 0x8c, 0x48, 0x11, 0x7c, 0x3b, + 0x4d, 0x8c, 0xa6, 0xdc, 0x77, 0x5b, 0x82, 0xce, 0x1a, 0x83, 0x5f, 0x54, 0x50, 0xef, 0x33, 0xd6, + 0x27, 0xc1, 0x40, 0x86, 0xa1, 0xf5, 0x40, 0xd5, 0x63, 0x6c, 0xed, 0xc0, 0x7e, 0x9a, 0x18, 0xf5, + 0xdc, 0x01, 0xb1, 0x0e, 0x9d, 0x2d, 0x8f, 0xb1, 0x61, 0xf0, 0xaf, 0xf0, 0x4b, 0x0f, 0x0b, 0xdf, + 0x3e, 0x5d, 0xfc, 0xd6, 0x95, 0xef, 0x4b, 0x5d, 0x59, 0x2c, 0x75, 0xf5, 0x66, 0xa9, 0xab, 0xbf, + 0x96, 0xba, 0xfa, 0x75, 0xa5, 0x2b, 0x37, 0x2b, 0x5d, 0xf9, 0xb1, 0xd2, 0x95, 0x8f, 0xd6, 0x5f, + 0x96, 0x66, 0x7f, 0xc4, 0x11, 0xbd, 0xb8, 0xc0, 0x3e, 0xf6, 0x26, 0xf9, 0xdc, 0x2a, 0x5e, 0xb2, + 0xf0, 0x77, 0x5c, 0x15, 0x2f, 0xf2, 0xd5, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x0d, 0x0b, 0x84, + 0x58, 0xe6, 0x03, 0x00, 0x00, } func (m *AppMapping) Marshal() (dAtA []byte, err error) { @@ -293,9 +294,9 @@ func (m *MintGenesisToken) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x22 } - if m.IsgovToken { + if m.IsGovToken { i-- - if m.IsgovToken { + if m.IsGovToken { dAtA[i] = 1 } else { dAtA[i] = 0 @@ -412,7 +413,7 @@ func (m *MintGenesisToken) Size() (n int) { l = m.GenesisSupply.Size() n += 1 + l + sovAppMapping(uint64(l)) } - if m.IsgovToken { + if m.IsGovToken { n += 2 } l = len(m.Recipient) @@ -741,7 +742,7 @@ func (m *MintGenesisToken) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 3: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsgovToken", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field IsGovToken", wireType) } var v int for shift := uint(0); ; shift += 7 { @@ -758,7 +759,7 @@ func (m *MintGenesisToken) Unmarshal(dAtA []byte) error { break } } - m.IsgovToken = bool(v != 0) + m.IsGovToken = bool(v != 0) case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Recipient", wireType) diff --git a/x/asset/types/asset.pb.go b/x/asset/types/asset.pb.go index 3db7fd66b..8525537d2 100644 --- a/x/asset/types/asset.pb.go +++ b/x/asset/types/asset.pb.go @@ -24,12 +24,12 @@ var _ = math.Inf const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package type Asset struct { - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty" yaml:"name"` - Denom string `protobuf:"bytes,3,opt,name=denom,proto3" json:"denom,omitempty" yaml:"denom"` - Decimals int64 `protobuf:"varint,4,opt,name=decimals,proto3" json:"decimals,omitempty" yaml:"decimals"` - IsOnchain bool `protobuf:"varint,5,opt,name=isOnchain,proto3" json:"isOnchain,omitempty" yaml:"isOnchain"` - AssetOraclePrice bool `protobuf:"varint,6,opt,name=assetOraclePrice,proto3" json:"assetOraclePrice,omitempty" yaml:"asset_oracle_price"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty" yaml:"name"` + Denom string `protobuf:"bytes,3,opt,name=denom,proto3" json:"denom,omitempty" yaml:"denom"` + Decimals int64 `protobuf:"varint,4,opt,name=decimals,proto3" json:"decimals,omitempty" yaml:"decimals"` + IsOnChain bool `protobuf:"varint,5,opt,name=is_on_chain,json=isOnChain,proto3" json:"is_on_chain,omitempty" yaml:"is_on_chain"` + IsOraclePriceRequired bool `protobuf:"varint,6,opt,name=is_oracle_price_required,json=isOraclePriceRequired,proto3" json:"is_oracle_price_required,omitempty" yaml:"is_oracle_price_required"` } func (m *Asset) Reset() { *m = Asset{} } @@ -72,28 +72,29 @@ func init() { func init() { proto.RegisterFile("comdex/asset/v1beta1/asset.proto", fileDescriptor_67277aee9bd3eed4) } var fileDescriptor_67277aee9bd3eed4 = []byte{ - // 334 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0xd1, 0xbf, 0x4e, 0xeb, 0x30, - 0x14, 0x06, 0xf0, 0x38, 0xfd, 0xa3, 0xd6, 0xf7, 0xea, 0xb6, 0xf2, 0xed, 0x10, 0x90, 0x70, 0x22, - 0x23, 0xa1, 0x2c, 0xd4, 0x2a, 0x6c, 0x6c, 0x64, 0x63, 0x2a, 0x64, 0x64, 0xa9, 0x5c, 0xc7, 0x6d, - 0x2d, 0x25, 0x71, 0xd5, 0x04, 0x44, 0xdf, 0x82, 0x81, 0x87, 0xe0, 0x51, 0x3a, 0x76, 0x64, 0x8a, - 0x20, 0x7d, 0x83, 0x3c, 0x01, 0x8a, 0xdd, 0x96, 0x81, 0x2d, 0xe7, 0x7c, 0xbf, 0x6f, 0xc8, 0x31, - 0xf4, 0xb8, 0x4a, 0x22, 0xf1, 0x42, 0x59, 0x96, 0x89, 0x9c, 0x3e, 0x8f, 0xa6, 0x22, 0x67, 0x23, - 0x33, 0x0d, 0x97, 0x2b, 0x95, 0x2b, 0x34, 0x30, 0x62, 0x68, 0x76, 0x7b, 0x71, 0x3a, 0x98, 0xab, - 0xb9, 0xd2, 0x80, 0xd6, 0x5f, 0xc6, 0x92, 0x37, 0x1b, 0xb6, 0x6e, 0x6b, 0x87, 0xfe, 0x41, 0x5b, - 0x46, 0x0e, 0xf0, 0x80, 0xdf, 0x0c, 0x6d, 0x19, 0xa1, 0x73, 0xd8, 0x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00, 0x00, 0x00, 0xff, 0xff, 0x69, 0x22, 0x9d, 0xb7, 0xc0, 0x01, 0x00, 0x00, + // 350 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x91, 0xcf, 0x4a, 0xeb, 0x40, + 0x14, 0xc6, 0x33, 0xe9, 0x1f, 0xda, 0xe9, 0xe5, 0xf6, 0x32, 0xb7, 0x4a, 0x70, 0x31, 0x09, 0x29, + 0x48, 0x36, 0x36, 0x14, 0xc1, 0x85, 0x3b, 0xe3, 0x03, 0x54, 0xb3, 0x14, 0x21, 0x4c, 0x93, 0x69, + 0x3b, 0x90, 0x64, 0x6a, 0x26, 0x15, 0xfb, 0x16, 0x3e, 0x86, 0xe0, 0x8b, 0x74, 0xd9, 0xa5, 0xab, + 0xa0, 0xe9, 0x1b, 0xe4, 0x09, 0x24, 0x33, 0xad, 0xba, 0x70, 0x77, 0xce, 0xf7, 0xfb, 0x9d, 0xb3, + 0xf9, 0xa0, 0x15, 0xf2, 0x24, 0xa2, 0x4f, 0x2e, 0x11, 0x82, 0xe6, 0xee, 0xe3, 0x78, 0x4a, 0x73, + 0x32, 0x56, 0xdb, 0x68, 0x99, 0xf1, 0x9c, 0xa3, 0x81, 0x32, 0x46, 0x2a, 0xdb, 0x1b, 0x27, 0x83, + 0x39, 0x9f, 0x73, 0x29, 0xb8, 0xf5, 0xa4, 0x5c, 0xfb, 0x55, 0x87, 0xad, 0xab, 0xda, 0x43, 0x7f, + 0xa1, 0xce, 0x22, 0x03, 0x58, 0xc0, 0x69, 0xfa, 0x3a, 0x8b, 0xd0, 0x10, 0x36, 0x53, 0x92, 0x50, + 0x43, 0xb7, 0x80, 0xd3, 0xf5, 0xfa, 0x55, 0x61, 0xf6, 0xd6, 0x24, 0x89, 0x2f, 0xed, 0x3a, 0xb5, + 0x7d, 0x09, 0xd1, 0x29, 0x6c, 0x45, 0x34, 0xe5, 0x89, 0x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) Marshal() (dAtA []byte, err error) { @@ -116,9 +117,9 @@ func (m *Asset) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if m.AssetOraclePrice { + if m.IsOraclePriceRequired { i-- - if m.AssetOraclePrice { + if m.IsOraclePriceRequired { dAtA[i] = 1 } else { dAtA[i] = 0 @@ -126,9 +127,9 @@ func (m *Asset) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x30 } - if m.IsOnchain { + if m.IsOnChain { i-- - if m.IsOnchain { + if m.IsOnChain { dAtA[i] = 1 } else { dAtA[i] = 0 @@ -194,10 +195,10 @@ func (m *Asset) Size() (n int) { if m.Decimals != 0 { n += 1 + sovAsset(uint64(m.Decimals)) } - if m.IsOnchain { + if m.IsOnChain { n += 2 } - if m.AssetOraclePrice { + if m.IsOraclePriceRequired { n += 2 } return n @@ -342,7 +343,7 @@ func (m *Asset) Unmarshal(dAtA []byte) error { } case 5: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsOnchain", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field IsOnChain", wireType) } var v int for shift := uint(0); ; shift += 7 { @@ -359,10 +360,10 @@ func (m *Asset) Unmarshal(dAtA []byte) error { break } } - m.IsOnchain = bool(v != 0) + m.IsOnChain = bool(v != 0) case 6: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AssetOraclePrice", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field IsOraclePriceRequired", wireType) } var v int for shift := uint(0); ; shift += 7 { @@ -379,7 +380,7 @@ func (m *Asset) Unmarshal(dAtA []byte) error { break } } - m.AssetOraclePrice = bool(v != 0) + m.IsOraclePriceRequired = bool(v != 0) default: iNdEx = preIndex skippy, err := skipAsset(dAtA[iNdEx:]) diff --git a/x/asset/types/codec.go b/x/asset/types/codec.go index 231986224..6a8146dc6 100644 --- a/x/asset/types/codec.go +++ b/x/asset/types/codec.go @@ -13,10 +13,6 @@ func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) { cdc.RegisterConcrete(&AddAssetsProposal{}, "comdex/asset/AddAssetsProposal", nil) cdc.RegisterConcrete(&UpdateAssetProposal{}, "comdex/asset/UpdateAssetProposal", nil) cdc.RegisterConcrete(&AddPairsProposal{}, "comdex/asset/AddPairsProposal", nil) - cdc.RegisterConcrete(&AddWhitelistedAssetsProposal{}, "comdex/asset/AddWhitelistedAssetsProposal", nil) - cdc.RegisterConcrete(&UpdateWhitelistedAssetProposal{}, "comdex/asset/UpdateWhitelistedAssetProposal", nil) - cdc.RegisterConcrete(&AddWhitelistedPairsProposal{}, "comdex/asset/AddWhitelistedPairsProposal", nil) - cdc.RegisterConcrete(&UpdateWhitelistedPairProposal{}, "comdex/asset/UpdateWhitelistedPairProposal", nil) cdc.RegisterConcrete(&AddAppMappingProposal{}, "comdex/asset/AddAppMappingProposal", nil) cdc.RegisterConcrete(&AddAssetMappingProposal{}, "comdex/asset/AddAssetMappingProposal", nil) cdc.RegisterConcrete(&AddExtendedPairsVaultProposal{}, "comdex/asset/AddExtendedPairsVaultProposal", nil) @@ -29,10 +25,6 @@ func RegisterInterfaces(registry types.InterfaceRegistry) { &AddAssetsProposal{}, &UpdateAssetProposal{}, &AddPairsProposal{}, - &AddWhitelistedAssetsProposal{}, - &UpdateWhitelistedAssetProposal{}, - &AddWhitelistedPairsProposal{}, - &UpdateWhitelistedPairProposal{}, &AddAppMappingProposal{}, &AddAssetMappingProposal{}, &AddExtendedPairsVaultProposal{}, diff --git a/x/asset/types/errors.go b/x/asset/types/errors.go index b85e68384..3b9448838 100644 --- a/x/asset/types/errors.go +++ b/x/asset/types/errors.go @@ -31,6 +31,7 @@ var ( ErrorGenesisTokenExistForApp = errors.Register(ModuleName, 213, "Genesis Token already Exist For App") ErrorFeeShouldNotBeGTOne = errors.Register(ModuleName, 215, "Fee Should Not Be Greater than One and less than zero") ErrorExtendedPairDoesNotExistForTheApp = errors.Register(ModuleName, 216, "extended pair does not exist for the app") + ErrorMinGovDepositIsZero = errors.Register(ModuleName, 217, "min gov deposit is zero") ) var ( diff --git a/x/asset/types/extendedPairVault.pb.go b/x/asset/types/extendedPairVault.pb.go index cbf2f141b..69194f7e8 100644 --- a/x/asset/types/extendedPairVault.pb.go +++ b/x/asset/types/extendedPairVault.pb.go @@ -28,20 +28,19 @@ type ExtendedPairVault struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` AppMappingId uint64 `protobuf:"varint,2,opt,name=app_mapping_id,json=appMappingId,proto3" json:"app_mapping_id,omitempty" yaml:"app_mapping_id"` PairId uint64 `protobuf:"varint,3,opt,name=pair_id,json=pairId,proto3" json:"pair_id,omitempty" yaml:"pair_id"` - LiquidationRatio github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,4,opt,name=liquidation_ratio,json=liquidationRatio,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"liquidation_ratio" yaml:"liquidation_ratio"` - StabilityFee github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,5,opt,name=stability_fee,json=stabilityFee,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"stability_fee" yaml:"stability_fee"` - ClosingFee github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,6,opt,name=closing_fee,json=closingFee,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"closing_fee" yaml:"closing_fee"` - LiquidationPenalty github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,7,opt,name=liquidation_penalty,json=liquidationPenalty,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"liquidation_penalty" yaml:"liquidation_penalty"` - DrawDownFee github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,8,opt,name=draw_down_fee,json=drawDownFee,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"draw_down_fee" yaml:"draw_down_fee"` - IsVaultActive bool `protobuf:"varint,9,opt,name=is_vault_active,json=isVaultActive,proto3" json:"is_vault_active,omitempty" yaml:"active_flag"` - DebtCeiling github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,10,opt,name=debt_ceiling,json=debtCeiling,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"debt_ceiling" yaml:"debt_ceiling"` - DebtFloor github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,11,opt,name=debt_floor,json=debtFloor,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"debt_floor" yaml:"debt_floor"` - IsPsmPair bool `protobuf:"varint,12,opt,name=is_psm_pair,json=isPsmPair,proto3" json:"is_psm_pair,omitempty" yaml:"is_psm_pair"` - MinCr github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,13,opt,name=min_cr,json=minCr,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"min_cr" yaml:"min_cr"` - PairName string `protobuf:"bytes,14,opt,name=pair_name,json=pairName,proto3" json:"pair_name,omitempty" yaml:"pair_name"` - AssetOutOraclePrice bool `protobuf:"varint,15,opt,name=asset_out_oracle_price,json=assetOutOraclePrice,proto3" json:"asset_out_oracle_price,omitempty" yaml:"asset_out_oracle_price"` - AssetOutPrice uint64 `protobuf:"varint,16,opt,name=asset_out_price,json=assetOutPrice,proto3" json:"asset_out_price,omitempty" yaml:"asset_out_price"` - MinUsdValueLeft uint64 `protobuf:"varint,17,opt,name=min_usd_value_left,json=minUsdValueLeft,proto3" json:"min_usd_value_left,omitempty" yaml:"min_usd_value_left"` + StabilityFee github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,4,opt,name=stability_fee,json=stabilityFee,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"stability_fee" yaml:"stability_fee"` + ClosingFee github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,5,opt,name=closing_fee,json=closingFee,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"closing_fee" yaml:"closing_fee"` + LiquidationPenalty github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,6,opt,name=liquidation_penalty,json=liquidationPenalty,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"liquidation_penalty" yaml:"liquidation_penalty"` + DrawDownFee github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,7,opt,name=draw_down_fee,json=drawDownFee,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"draw_down_fee" yaml:"draw_down_fee"` + IsVaultActive bool `protobuf:"varint,8,opt,name=is_vault_active,json=isVaultActive,proto3" json:"is_vault_active,omitempty" yaml:"active_flag"` + DebtCeiling github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,9,opt,name=debt_ceiling,json=debtCeiling,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"debt_ceiling" yaml:"debt_ceiling"` + DebtFloor github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,10,opt,name=debt_floor,json=debtFloor,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"debt_floor" yaml:"debt_floor"` + IsStableMintVault bool `protobuf:"varint,11,opt,name=is_stable_mint_vault,json=isStableMintVault,proto3" json:"is_stable_mint_vault,omitempty" yaml:"is_stable_mint_vault"` + MinCr github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,12,opt,name=min_cr,json=minCr,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"min_cr" yaml:"min_cr"` + PairName string `protobuf:"bytes,13,opt,name=pair_name,json=pairName,proto3" json:"pair_name,omitempty" yaml:"pair_name"` + AssetOutOraclePrice bool `protobuf:"varint,14,opt,name=asset_out_oracle_price,json=assetOutOraclePrice,proto3" json:"asset_out_oracle_price,omitempty" yaml:"asset_out_oracle_price"` + AssetOutPrice uint64 `protobuf:"varint,15,opt,name=asset_out_price,json=assetOutPrice,proto3" json:"asset_out_price,omitempty" yaml:"asset_out_price"` + MinUsdValueLeft uint64 `protobuf:"varint,16,opt,name=min_usd_value_left,json=minUsdValueLeft,proto3" json:"min_usd_value_left,omitempty" yaml:"min_usd_value_left"` } func (m *ExtendedPairVault) Reset() { *m = ExtendedPairVault{} } @@ -86,54 +85,53 @@ func init() { } var fileDescriptor_23dd38fcddb231cd = []byte{ - // 751 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x55, 0xcd, 0x6e, 0xeb, 0x44, - 0x14, 0x4e, 0xca, 0xbd, 0xb9, 0xcd, 0xe4, 0xaf, 0x99, 0x86, 0xca, 0xb7, 0xd2, 0xb5, 0xcb, 0x2c, - 0x50, 0x25, 0xb8, 0xb1, 0x2a, 0x24, 0x16, 0x2c, 0xb8, 0x22, 0xfd, 0x91, 0x5a, 0x15, 0x1a, 0x46, - 0x22, 0x0b, 0x36, 0xa3, 0x89, 0x3d, 0x49, 0x87, 0xda, 0x1e, 0xe3, 0x99, 0x24, 0xcd, 0x82, 0x0d, - 0x4f, 0xc0, 0x63, 0xf0, 0x28, 0x5d, 0x76, 0x89, 0x58, 0x58, 0x90, 0xbe, 0x81, 0x9f, 0x00, 0xcd, - 0xd8, 0xa5, 0x4e, 0xcb, 0x26, 0x62, 0x13, 0x9f, 0x9f, 0x6f, 0xbe, 0xef, 0x9c, 0x33, 0xf6, 0x09, - 0xf8, 0xdc, 0x13, 0xa1, 0xcf, 0x6e, 0x5d, 0x2a, 0x25, 0x53, 0xee, 0xfc, 0x68, 0xcc, 0x14, 0x3d, - 0x72, 0xd9, 0xad, 0x62, 0x91, 0xcf, 0xfc, 0x21, 0xe5, 0xc9, 0x88, 0xce, 0x02, 0xd5, 0x8f, 0x13, - 0xa1, 0x04, 0xec, 0xe5, 0xe8, 0xbe, 0x41, 0xf7, 0x0b, 0xf4, 0x7e, 0x6f, 0x2a, 0xa6, 0xc2, 0x00, - 0x5c, 0x6d, 0xe5, 0x58, 0xf4, 0x6b, 0x03, 0x74, 0x4f, 0x9f, 0xf3, 0xc0, 0x36, 0xd8, 0xe2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b, 0xf2, 0xc7, 0x83, 0x5d, 0xf9, 0xd1, 0x5d, 0x1b, 0xbe, 0xde, 0xee, 0xef, 0xc5, 0x64, - 0xc2, 0x3d, 0x4e, 0x83, 0xc2, 0x77, 0x1f, 0xff, 0x1d, 0xcc, 0x4d, 0x8c, 0x6b, 0x66, 0xbd, 0x7f, - 0xf1, 0x4f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xb3, 0xd6, 0x7e, 0x92, 0x3a, 0x06, 0x00, 0x00, + // 735 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x54, 0xcd, 0x4e, 0xdb, 0x4a, + 0x14, 0x4e, 0xb8, 0x10, 0xc8, 0x90, 0x1f, 0x18, 0x72, 0x91, 0xe1, 0x0a, 0x9b, 0xeb, 0xc5, 0x15, + 0xd2, 0xbd, 0xc4, 0x42, 0x77, 0xd7, 0x45, 0x51, 0xc3, 0x8f, 0x44, 0x05, 0x25, 0x75, 0xd5, 0x2c, + 0xba, 0x19, 0x4d, 0x3c, 0x93, 0x30, 0xc5, 0xf6, 0xb8, 0xf6, 0x24, 0x90, 0x45, 0xdf, 0xa1, 0xef, + 0xd0, 0x4d, 0x1f, 0x85, 0x25, 0xcb, 0xaa, 0x0b, 0xab, 0x0d, 0x6f, 0xe0, 0x27, 0xa8, 0x66, 0xc6, + 0x94, 0x04, 0xb1, 0x89, 0xba, 0xf2, 0x9c, 0xef, 0x7c, 0xf3, 0x7d, 0x67, 0x8e, 0x67, 0x0e, 0xf8, + 0xcf, 0xe3, 0x01, 0xa1, 0xd7, 0x0e, 0x4e, 0x12, 0x2a, 0x9c, 0xe1, 0x5e, 0x97, 0x0a, 0xbc, 0xe7, + 0xd0, 0x6b, 0x41, 0x43, 0x42, 0x49, 0x1b, 0xb3, 0xb8, 0x83, 0x07, 0xbe, 0x68, 0x46, 0x31, 0x17, + 0x1c, 0x36, 0x34, 0xbb, 0x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 0x7d, 0x6c, 0x16, 0x3f, 0xdd, 0x99, 0x85, + 0xdb, 0x3b, 0xb3, 0xf0, 0xf5, 0xce, 0x2c, 0xbc, 0x73, 0xa6, 0x9a, 0x2f, 0xc7, 0xef, 0x2e, 0xef, + 0xf5, 0x98, 0xc7, 0xb0, 0x9f, 0xc7, 0xce, 0xfd, 0xf8, 0x56, 0x7f, 0xa2, 0x5b, 0x52, 0xf3, 0xf7, + 0xff, 0x9f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xd2, 0x3b, 0x12, 0x73, 0xdb, 0x05, 0x00, 0x00, } func (m *ExtendedPairVault) Marshal() (dAtA []byte, err error) { @@ -161,14 +159,12 @@ func (m *ExtendedPairVault) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x1 i-- - dAtA[i] = 0x88 + dAtA[i] = 0x80 } if m.AssetOutPrice != 0 { i = encodeVarintExtendedPairVault(dAtA, i, uint64(m.AssetOutPrice)) i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x80 + dAtA[i] = 0x78 } if m.AssetOutOraclePrice { i-- @@ -178,14 +174,14 @@ func (m *ExtendedPairVault) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA[i] = 0 } i-- - dAtA[i] = 0x78 + dAtA[i] = 0x70 } if len(m.PairName) > 0 { i -= len(m.PairName) copy(dAtA[i:], m.PairName) i = encodeVarintExtendedPairVault(dAtA, i, uint64(len(m.PairName))) i-- - dAtA[i] = 0x72 + dAtA[i] = 0x6a } { size := m.MinCr.Size() @@ -196,16 +192,16 @@ func (m *ExtendedPairVault) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintExtendedPairVault(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x6a - if m.IsPsmPair { + dAtA[i] = 0x62 + if m.IsStableMintVault { i-- - if m.IsPsmPair { + if m.IsStableMintVault { dAtA[i] = 1 } else { dAtA[i] = 0 } i-- - dAtA[i] = 0x60 + dAtA[i] = 0x58 } { size := m.DebtFloor.Size() @@ -216,7 +212,7 @@ func (m *ExtendedPairVault) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintExtendedPairVault(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x5a + dAtA[i] = 0x52 { size := m.DebtCeiling.Size() i -= size @@ -226,7 +222,7 @@ func (m *ExtendedPairVault) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintExtendedPairVault(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x52 + dAtA[i] = 0x4a if m.IsVaultActive { i-- if m.IsVaultActive { @@ -235,7 +231,7 @@ func (m *ExtendedPairVault) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA[i] = 0 } i-- - dAtA[i] = 0x48 + dAtA[i] = 0x40 } { size := m.DrawDownFee.Size() @@ -246,7 +242,7 @@ func (m *ExtendedPairVault) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintExtendedPairVault(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x42 + dAtA[i] = 0x3a { size := m.LiquidationPenalty.Size() i -= size @@ -256,7 +252,7 @@ func (m *ExtendedPairVault) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintExtendedPairVault(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x3a + dAtA[i] = 0x32 { size := m.ClosingFee.Size() i -= size @@ -266,7 +262,7 @@ func (m *ExtendedPairVault) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintExtendedPairVault(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x32 + dAtA[i] = 0x2a { size := m.StabilityFee.Size() i -= size @@ -276,16 +272,6 @@ func (m *ExtendedPairVault) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintExtendedPairVault(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x2a - { - size := m.LiquidationRatio.Size() - i -= size - if _, err := m.LiquidationRatio.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintExtendedPairVault(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x22 if m.PairId != 0 { i = encodeVarintExtendedPairVault(dAtA, i, uint64(m.PairId)) @@ -331,8 +317,6 @@ func (m *ExtendedPairVault) Size() (n int) { if m.PairId != 0 { n += 1 + sovExtendedPairVault(uint64(m.PairId)) } - l = m.LiquidationRatio.Size() - n += 1 + l + sovExtendedPairVault(uint64(l)) l = m.StabilityFee.Size() n += 1 + l + sovExtendedPairVault(uint64(l)) l = m.ClosingFee.Size() @@ -348,7 +332,7 @@ func (m *ExtendedPairVault) Size() (n int) { n += 1 + l + sovExtendedPairVault(uint64(l)) l = m.DebtFloor.Size() n += 1 + l + sovExtendedPairVault(uint64(l)) - if m.IsPsmPair { + if m.IsStableMintVault { n += 2 } l = m.MinCr.Size() @@ -361,7 +345,7 @@ func (m *ExtendedPairVault) Size() (n int) { n += 2 } if m.AssetOutPrice != 0 { - n += 2 + sovExtendedPairVault(uint64(m.AssetOutPrice)) + n += 1 + sovExtendedPairVault(uint64(m.AssetOutPrice)) } if m.MinUsdValueLeft != 0 { n += 2 + sovExtendedPairVault(uint64(m.MinUsdValueLeft)) @@ -462,40 +446,6 @@ func (m *ExtendedPairVault) Unmarshal(dAtA []byte) error { } } case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LiquidationRatio", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowExtendedPairVault - } - 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 ErrInvalidLengthExtendedPairVault - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthExtendedPairVault - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.LiquidationRatio.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field StabilityFee", wireType) } @@ -529,7 +479,7 @@ func (m *ExtendedPairVault) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 6: + case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ClosingFee", wireType) } @@ -563,7 +513,7 @@ func (m *ExtendedPairVault) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 7: + case 6: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field LiquidationPenalty", wireType) } @@ -597,7 +547,7 @@ func (m *ExtendedPairVault) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 8: + case 7: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field DrawDownFee", wireType) } @@ -631,7 +581,7 @@ func (m *ExtendedPairVault) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 9: + case 8: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field IsVaultActive", wireType) } @@ -651,7 +601,7 @@ func (m *ExtendedPairVault) Unmarshal(dAtA []byte) error { } } m.IsVaultActive = bool(v != 0) - case 10: + case 9: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field DebtCeiling", wireType) } @@ -685,7 +635,7 @@ func (m *ExtendedPairVault) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 11: + case 10: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field DebtFloor", wireType) } @@ -719,9 +669,9 @@ func (m *ExtendedPairVault) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 12: + case 11: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsPsmPair", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field IsStableMintVault", wireType) } var v int for shift := uint(0); ; shift += 7 { @@ -738,8 +688,8 @@ func (m *ExtendedPairVault) Unmarshal(dAtA []byte) error { break } } - m.IsPsmPair = bool(v != 0) - case 13: + m.IsStableMintVault = bool(v != 0) + case 12: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field MinCr", wireType) } @@ -773,7 +723,7 @@ func (m *ExtendedPairVault) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 14: + case 13: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field PairName", wireType) } @@ -805,7 +755,7 @@ func (m *ExtendedPairVault) Unmarshal(dAtA []byte) error { } m.PairName = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 15: + case 14: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field AssetOutOraclePrice", wireType) } @@ -825,7 +775,7 @@ func (m *ExtendedPairVault) Unmarshal(dAtA []byte) error { } } m.AssetOutOraclePrice = bool(v != 0) - case 16: + case 15: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field AssetOutPrice", wireType) } @@ -844,7 +794,7 @@ func (m *ExtendedPairVault) Unmarshal(dAtA []byte) error { break } } - case 17: + case 16: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field MinUsdValueLeft", wireType) } diff --git a/x/asset/types/gov.go b/x/asset/types/gov.go index 8eaf4a444..ddaaed12c 100644 --- a/x/asset/types/gov.go +++ b/x/asset/types/gov.go @@ -8,10 +8,6 @@ const ( ProposalAddAssets = "AddAssets" ProposalUpdateAsset = "UpdateAsset" ProposalAddPairs = "AddPairs" - ProposalAddWhitelistedAssets = "AddWhitelistedAssets" - ProposalUpdateWhitelistedAsset = "UpdateWhitelistedAsset" - ProposalAddWhitelistedPairs = "AddWhitelistedPairs" - ProposalUpdateWhitelistedPair = "UpdateWhitelistedPair" ProposalAddAppMapping = "AddAppMapping" ProposalAddAssetMapping = "AddAssetMapping" ProposalAddExtendedPairsVault = "AddExtendedPairsVault" @@ -28,18 +24,6 @@ func init() { govtypes.RegisterProposalType(ProposalAddPairs) govtypes.RegisterProposalTypeCodec(&AddPairsProposal{}, "comdex/AddPairsProposal") - govtypes.RegisterProposalType(ProposalAddWhitelistedAssets) - govtypes.RegisterProposalTypeCodec(&AddWhitelistedAssetsProposal{}, "comdex/AddWhitelistedAssetsProposal") - - govtypes.RegisterProposalType(ProposalUpdateWhitelistedAsset) - govtypes.RegisterProposalTypeCodec(&UpdateWhitelistedAssetProposal{}, "comdex/UpdateWhitelistedAssetProposal") - - govtypes.RegisterProposalType(ProposalAddWhitelistedPairs) - govtypes.RegisterProposalTypeCodec(&AddWhitelistedPairsProposal{}, "comdex/AddWhitelistedPairsProposal") - - govtypes.RegisterProposalType(ProposalUpdateWhitelistedPair) - govtypes.RegisterProposalTypeCodec(&UpdateWhitelistedPairProposal{}, "comdex/UpdateWhitelistedPairProposal") - govtypes.RegisterProposalType(ProposalUpdateGovTimeInAppMapping) govtypes.RegisterProposalTypeCodec(&UpdateGovTimeInAppMappingProposal{}, "comdex/UpdateGovTimeInAppMappingProposal") @@ -57,10 +41,6 @@ var ( _ govtypes.Content = &AddAssetsProposal{} _ govtypes.Content = &UpdateAssetProposal{} _ govtypes.Content = &AddPairsProposal{} - _ govtypes.Content = &AddWhitelistedAssetsProposal{} - _ govtypes.Content = &UpdateWhitelistedAssetProposal{} - _ govtypes.Content = &AddWhitelistedPairsProposal{} - _ govtypes.Content = &UpdateWhitelistedPairProposal{} _ govtypes.Content = &UpdateGovTimeInAppMappingProposal{} _ govtypes.Content = &AddAppMappingProposal{} _ govtypes.Content = &AddAssetMappingProposal{} @@ -176,153 +156,6 @@ func (p *AddPairsProposal) ValidateBasic() error { return nil } -func NewAddWhitelistedAssetsProposal(title, description string, assets []ExtendedAsset) govtypes.Content { - return &AddWhitelistedAssetsProposal{ - Title: title, - Description: description, - Assets: assets, - } -} - -func (p *AddWhitelistedAssetsProposal) GetTitle() string { - return p.Title -} - -func (p *AddWhitelistedAssetsProposal) GetDescription() string { - return p.Description -} - -func (p *AddWhitelistedAssetsProposal) ProposalRoute() string { return RouterKey } - -func (p *AddWhitelistedAssetsProposal) ProposalType() string { return ProposalAddWhitelistedAssets } - -func (p *AddWhitelistedAssetsProposal) ValidateBasic() error { - - err := govtypes.ValidateAbstract(p) - if err != nil { - return err - } - if len(p.Assets) == 0 { - return ErrorEmptyProposalAssets - } - - for _, asset := range p.Assets { - if err := asset.Validate(); err != nil { - return err - } - } - - return nil -} - -func NewUpdateWhitelistedAssetProposal(title, description string, asset ExtendedAsset) govtypes.Content { - return &UpdateWhitelistedAssetProposal{ - Title: title, - Description: description, - Asset: asset, - } -} - -func (p *UpdateWhitelistedAssetProposal) GetTitle() string { - return p.Title -} - -func (p *UpdateWhitelistedAssetProposal) GetDescription() string { - return p.Description -} - -func (p *UpdateWhitelistedAssetProposal) ProposalRoute() string { return RouterKey } - -func (p *UpdateWhitelistedAssetProposal) ProposalType() string { return ProposalUpdateWhitelistedAsset } - -func (p *UpdateWhitelistedAssetProposal) ValidateBasic() error { - - err := govtypes.ValidateAbstract(p) - if err != nil { - return err - } - - asset := p.Asset - if err := asset.Validate(); err != nil { - return err - } - - return nil -} - -func NewAddWhitelistedPairsProposal(title, description string, pairs []ExtendedPairLend) govtypes.Content { - return &AddWhitelistedPairsProposal{ - Title: title, - Description: description, - Pairs: pairs, - } -} - -func (p *AddWhitelistedPairsProposal) GetTitle() string { - return p.Title -} - -func (p *AddWhitelistedPairsProposal) GetDescription() string { - return p.Description -} - -func (p *AddWhitelistedPairsProposal) ProposalRoute() string { return RouterKey } - -func (p *AddWhitelistedPairsProposal) ProposalType() string { return ProposalAddWhitelistedPairs } - -func (p *AddWhitelistedPairsProposal) ValidateBasic() error { - - err := govtypes.ValidateAbstract(p) - if err != nil { - return err - } - if len(p.Pairs) == 0 { - return ErrorEmptyProposalAssets - } - - for _, pair := range p.Pairs { - if err := pair.Validate(); err != nil { - return err - } - } - - return nil -} - -func NewUpdateWhitelistedPairProposal(title, description string, pair ExtendedPairLend) govtypes.Content { - return &UpdateWhitelistedPairProposal{ - Title: title, - Description: description, - Pair: pair, - } -} - -func (p *UpdateWhitelistedPairProposal) GetTitle() string { - return p.Title -} - -func (p *UpdateWhitelistedPairProposal) GetDescription() string { - return p.Description -} - -func (p *UpdateWhitelistedPairProposal) ProposalRoute() string { return RouterKey } - -func (p *UpdateWhitelistedPairProposal) ProposalType() string { return ProposalUpdateWhitelistedPair } - -func (p *UpdateWhitelistedPairProposal) ValidateBasic() error { - - err := govtypes.ValidateAbstract(p) - if err != nil { - return err - } - - pair := p.Pair - if err := pair.Validate(); err != nil { - return err - } - - return nil -} func NewAddAppMapingProposa(title, description string, amap []AppMapping) govtypes.Content { return &AddAppMappingProposal{ diff --git a/x/asset/types/gov.pb.go b/x/asset/types/gov.pb.go index 9ee610e4a..658d1f1dd 100644 --- a/x/asset/types/gov.pb.go +++ b/x/asset/types/gov.pb.go @@ -140,162 +140,6 @@ func (m *AddPairsProposal) XXX_DiscardUnknown() { var xxx_messageInfo_AddPairsProposal proto.InternalMessageInfo -type AddWhitelistedAssetsProposal struct { - Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty" yaml:"title"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty" yaml:"description"` - Assets []ExtendedAsset `protobuf:"bytes,3,rep,name=assets,proto3" json:"assets"` -} - -func (m *AddWhitelistedAssetsProposal) Reset() { *m = AddWhitelistedAssetsProposal{} } -func (m *AddWhitelistedAssetsProposal) String() string { return proto.CompactTextString(m) } -func (*AddWhitelistedAssetsProposal) ProtoMessage() {} -func (*AddWhitelistedAssetsProposal) Descriptor() ([]byte, []int) { - return fileDescriptor_31c5aab0360b917f, []int{3} -} -func (m *AddWhitelistedAssetsProposal) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AddWhitelistedAssetsProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AddWhitelistedAssetsProposal.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 *AddWhitelistedAssetsProposal) XXX_Merge(src proto.Message) { - xxx_messageInfo_AddWhitelistedAssetsProposal.Merge(m, src) -} -func (m *AddWhitelistedAssetsProposal) XXX_Size() int { - return m.Size() -} -func (m *AddWhitelistedAssetsProposal) XXX_DiscardUnknown() { - xxx_messageInfo_AddWhitelistedAssetsProposal.DiscardUnknown(m) -} - -var xxx_messageInfo_AddWhitelistedAssetsProposal proto.InternalMessageInfo - -type UpdateWhitelistedAssetProposal struct { - Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty" yaml:"title"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty" yaml:"description"` - Asset ExtendedAsset `protobuf:"bytes,3,opt,name=asset,proto3" json:"asset"` -} - -func (m *UpdateWhitelistedAssetProposal) Reset() { *m = UpdateWhitelistedAssetProposal{} } -func (m *UpdateWhitelistedAssetProposal) String() string { return proto.CompactTextString(m) } -func (*UpdateWhitelistedAssetProposal) ProtoMessage() {} -func (*UpdateWhitelistedAssetProposal) Descriptor() ([]byte, []int) { - return fileDescriptor_31c5aab0360b917f, []int{4} -} -func (m *UpdateWhitelistedAssetProposal) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *UpdateWhitelistedAssetProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_UpdateWhitelistedAssetProposal.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 *UpdateWhitelistedAssetProposal) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateWhitelistedAssetProposal.Merge(m, src) -} -func (m *UpdateWhitelistedAssetProposal) XXX_Size() int { - return m.Size() -} -func (m *UpdateWhitelistedAssetProposal) XXX_DiscardUnknown() { - xxx_messageInfo_UpdateWhitelistedAssetProposal.DiscardUnknown(m) -} - -var xxx_messageInfo_UpdateWhitelistedAssetProposal proto.InternalMessageInfo - -type AddWhitelistedPairsProposal struct { - Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty" yaml:"title"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty" yaml:"description"` - Pairs []ExtendedPairLend `protobuf:"bytes,3,rep,name=pairs,proto3" json:"pairs"` -} - -func (m *AddWhitelistedPairsProposal) Reset() { *m = AddWhitelistedPairsProposal{} } -func (m *AddWhitelistedPairsProposal) String() string { return proto.CompactTextString(m) } -func (*AddWhitelistedPairsProposal) ProtoMessage() {} -func (*AddWhitelistedPairsProposal) Descriptor() ([]byte, []int) { - return fileDescriptor_31c5aab0360b917f, []int{5} -} -func (m *AddWhitelistedPairsProposal) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AddWhitelistedPairsProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AddWhitelistedPairsProposal.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 *AddWhitelistedPairsProposal) XXX_Merge(src proto.Message) { - xxx_messageInfo_AddWhitelistedPairsProposal.Merge(m, src) -} -func (m *AddWhitelistedPairsProposal) XXX_Size() int { - return m.Size() -} -func (m *AddWhitelistedPairsProposal) XXX_DiscardUnknown() { - xxx_messageInfo_AddWhitelistedPairsProposal.DiscardUnknown(m) -} - -var xxx_messageInfo_AddWhitelistedPairsProposal proto.InternalMessageInfo - -type UpdateWhitelistedPairProposal struct { - Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty" yaml:"title"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty" yaml:"description"` - Pair ExtendedPairLend `protobuf:"bytes,3,opt,name=pair,proto3" json:"pair"` -} - -func (m *UpdateWhitelistedPairProposal) Reset() { *m = UpdateWhitelistedPairProposal{} } -func (m *UpdateWhitelistedPairProposal) String() string { return proto.CompactTextString(m) } -func (*UpdateWhitelistedPairProposal) ProtoMessage() {} -func (*UpdateWhitelistedPairProposal) Descriptor() ([]byte, []int) { - return fileDescriptor_31c5aab0360b917f, []int{6} -} -func (m *UpdateWhitelistedPairProposal) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *UpdateWhitelistedPairProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_UpdateWhitelistedPairProposal.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 *UpdateWhitelistedPairProposal) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateWhitelistedPairProposal.Merge(m, src) -} -func (m *UpdateWhitelistedPairProposal) XXX_Size() int { - return m.Size() -} -func (m *UpdateWhitelistedPairProposal) XXX_DiscardUnknown() { - xxx_messageInfo_UpdateWhitelistedPairProposal.DiscardUnknown(m) -} - -var xxx_messageInfo_UpdateWhitelistedPairProposal proto.InternalMessageInfo - type AddExtendedPairsVaultProposal struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty" yaml:"title"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty" yaml:"description"` @@ -306,7 +150,7 @@ func (m *AddExtendedPairsVaultProposal) Reset() { *m = AddExtendedPairsV func (m *AddExtendedPairsVaultProposal) String() string { return proto.CompactTextString(m) } func (*AddExtendedPairsVaultProposal) ProtoMessage() {} func (*AddExtendedPairsVaultProposal) Descriptor() ([]byte, []int) { - return fileDescriptor_31c5aab0360b917f, []int{7} + return fileDescriptor_31c5aab0360b917f, []int{3} } func (m *AddExtendedPairsVaultProposal) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -345,7 +189,7 @@ func (m *UpdateExtendedPairVaultProposal) Reset() { *m = UpdateExtendedP func (m *UpdateExtendedPairVaultProposal) String() string { return proto.CompactTextString(m) } func (*UpdateExtendedPairVaultProposal) ProtoMessage() {} func (*UpdateExtendedPairVaultProposal) Descriptor() ([]byte, []int) { - return fileDescriptor_31c5aab0360b917f, []int{8} + return fileDescriptor_31c5aab0360b917f, []int{4} } func (m *UpdateExtendedPairVaultProposal) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -384,7 +228,7 @@ func (m *AddAppMappingProposal) Reset() { *m = AddAppMappingProposal{} } func (m *AddAppMappingProposal) String() string { return proto.CompactTextString(m) } func (*AddAppMappingProposal) ProtoMessage() {} func (*AddAppMappingProposal) Descriptor() ([]byte, []int) { - return fileDescriptor_31c5aab0360b917f, []int{9} + return fileDescriptor_31c5aab0360b917f, []int{5} } func (m *AddAppMappingProposal) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -423,7 +267,7 @@ func (m *UpdateGovTimeInAppMappingProposal) Reset() { *m = UpdateGovTime func (m *UpdateGovTimeInAppMappingProposal) String() string { return proto.CompactTextString(m) } func (*UpdateGovTimeInAppMappingProposal) ProtoMessage() {} func (*UpdateGovTimeInAppMappingProposal) Descriptor() ([]byte, []int) { - return fileDescriptor_31c5aab0360b917f, []int{10} + return fileDescriptor_31c5aab0360b917f, []int{6} } func (m *UpdateGovTimeInAppMappingProposal) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -462,7 +306,7 @@ func (m *AddAssetMappingProposal) Reset() { *m = AddAssetMappingProposal func (m *AddAssetMappingProposal) String() string { return proto.CompactTextString(m) } func (*AddAssetMappingProposal) ProtoMessage() {} func (*AddAssetMappingProposal) Descriptor() ([]byte, []int) { - return fileDescriptor_31c5aab0360b917f, []int{11} + return fileDescriptor_31c5aab0360b917f, []int{7} } func (m *AddAssetMappingProposal) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -495,10 +339,6 @@ func init() { proto.RegisterType((*AddAssetsProposal)(nil), "comdex.asset.v1beta1.AddAssetsProposal") proto.RegisterType((*UpdateAssetProposal)(nil), "comdex.asset.v1beta1.UpdateAssetProposal") proto.RegisterType((*AddPairsProposal)(nil), "comdex.asset.v1beta1.AddPairsProposal") - proto.RegisterType((*AddWhitelistedAssetsProposal)(nil), "comdex.asset.v1beta1.AddWhitelistedAssetsProposal") - proto.RegisterType((*UpdateWhitelistedAssetProposal)(nil), "comdex.asset.v1beta1.UpdateWhitelistedAssetProposal") - proto.RegisterType((*AddWhitelistedPairsProposal)(nil), "comdex.asset.v1beta1.AddWhitelistedPairsProposal") - proto.RegisterType((*UpdateWhitelistedPairProposal)(nil), "comdex.asset.v1beta1.UpdateWhitelistedPairProposal") proto.RegisterType((*AddExtendedPairsVaultProposal)(nil), "comdex.asset.v1beta1.AddExtendedPairsVaultProposal") proto.RegisterType((*UpdateExtendedPairVaultProposal)(nil), "comdex.asset.v1beta1.UpdateExtendedPairVaultProposal") proto.RegisterType((*AddAppMappingProposal)(nil), "comdex.asset.v1beta1.AddAppMappingProposal") @@ -509,45 +349,39 @@ func init() { func init() { proto.RegisterFile("comdex/asset/v1beta1/gov.proto", fileDescriptor_31c5aab0360b917f) } var fileDescriptor_31c5aab0360b917f = []byte{ - // 606 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x56, 0x4d, 0x6b, 0x13, 0x41, - 0x18, 0xde, 0x31, 0x6d, 0xc5, 0xa9, 0x87, 0x1a, 0xab, 0x86, 0xd4, 0x6e, 0xe2, 0x8a, 0x6d, 0x0e, - 0x9a, 0xa5, 0x0a, 0x5a, 0xbd, 0xe8, 0xa6, 0x88, 0x08, 0x0a, 0x35, 0xf8, 0x01, 0xde, 0x26, 0x99, - 0xe9, 0x76, 0x60, 0xb3, 0x33, 0x64, 0xa7, 0xa1, 0xfd, 0x17, 0xfe, 0x0c, 0x0f, 0x1e, 0x04, 0xf1, - 0x17, 0x04, 0x4a, 0xf0, 0xd4, 0xa3, 0xa7, 0xa0, 0xc9, 0x3f, 0xe8, 0x2f, 0x90, 0xf9, 0xd8, 0xb2, - 0x9b, 0xac, 0xd1, 0x5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 0xe6, 0xba, 0xc7, 0x93, 0x86, 0xcc, 0xa9, 0x44, 0x3b, 0xf2, 0x05, 0xc0, 0x2b, 0xf2, - 0xfa, 0x3a, 0xbb, 0xd6, 0x72, 0xa4, 0xbf, 0x0d, 0x0b, 0x88, 0x73, 0xe3, 0x43, 0xf5, 0x37, 0x77, - 0xc1, 0x19, 0x31, 0x43, 0x5b, 0xb6, 0x38, 0xdf, 0x00, 0xbc, 0xa1, 0x97, 0xff, 0x19, 0xeb, 0xbd, - 0xa6, 0x1d, 0xf2, 0x3c, 0xfc, 0x27, 0x0a, 0x76, 0xe0, 0x79, 0x5f, 0x13, 0x98, 0x7d, 0x3c, 0x79, - 0x9c, 0x7b, 0x21, 0x36, 0x5c, 0x8d, 0x90, 0xb8, 0xd3, 0xf9, 0x0a, 0xe0, 0xb5, 0xf8, 0x05, 0xf1, - 0x1f, 0x99, 0xd0, 0x78, 0x35, 0xf8, 0x69, 0x5b, 0x1f, 0x47, 0xb6, 0x35, 0x18, 0xd9, 0xe0, 0x64, - 0x64, 0x83, 0x1f, 0x23, 0x1b, 0x7c, 0x18, 0xdb, 0xd6, 0xc9, 0xd8, 0xb6, 0xbe, 0x8f, 0x6d, 0xeb, - 0xbd, 0xeb, 0x53, 0xb1, 0x7f, 0xd0, 0x92, 0x43, 0x5d, 0x3d, 0xf8, 0x0e, 0xdb, 0xdb, 0xa3, 0x6d, - 0x8a, 0x02, 0xf3, 0xdf, 0x8d, 0xdf, 0x57, 0xe2, 0x88, 0x93, 0xa8, 0xb5, 0xa4, 0xde, 0x54, 0xf7, - 0x7e, 0x05, 0x00, 0x00, 0xff, 0xff, 0x5e, 0x4a, 0x1b, 0x62, 0x8c, 0x0a, 0x00, 0x00, + // 508 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x95, 0xcf, 0x6e, 0xd3, 0x40, + 0x10, 0xc6, 0xbd, 0xa4, 0x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, 0xad, 0x53, 0xf0, 0x37, 0x00, 0x6f, 0xda, 0xf1, 0x3f, 0x13, 0xe3, 0x57, 0x7c, + 0xc4, 0x9e, 0xe7, 0xff, 0xa5, 0x83, 0x2d, 0x78, 0x3e, 0xb5, 0x00, 0x6e, 0x07, 0xb7, 0x4e, 0xed, + 0x22, 0xc9, 0xa9, 0x63, 0x75, 0x8d, 0x54, 0x99, 0xf8, 0x0b, 0x80, 0xd7, 0xaa, 0x2f, 0xe5, 0x19, + 0x5a, 0x42, 0xef, 0xe5, 0xe4, 0x27, 0xf2, 0x3e, 0xcc, 0x90, 0x37, 0x99, 0x21, 0x70, 0x38, 0x43, + 0xe0, 0xc7, 0x0c, 0x81, 0xf7, 0x73, 0xe4, 0x1d, 0xce, 0x91, 0xf7, 0x7d, 0x8e, 0xbc, 0xb7, 0x71, + 0xca, 0xd5, 0xbb, 0xbd, 0x81, 0x2e, 0x1a, 0xdb, 0xc2, 0xf7, 0xc5, 0xee, 0x2e, 0x1f, 0x72, 0x92, + 0xb9, 0xff, 0x71, 0x75, 0x8f, 0xa8, 0x03, 0xc9, 0xca, 0xc1, 0xb2, 0xb9, 0x3b, 0x1e, 0xfe, 0x0a, + 0x00, 0x00, 0xff, 0xff, 0x6a, 0x89, 0xe4, 0xbf, 0x21, 0x07, 0x00, 0x00, } func (m *AddAssetsProposal) Marshal() (dAtA []byte, err error) { @@ -699,7 +533,7 @@ func (m *AddPairsProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *AddWhitelistedAssetsProposal) Marshal() (dAtA []byte, err error) { +func (m *AddExtendedPairsVaultProposal) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -709,20 +543,20 @@ func (m *AddWhitelistedAssetsProposal) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *AddWhitelistedAssetsProposal) MarshalTo(dAtA []byte) (int, error) { +func (m *AddExtendedPairsVaultProposal) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *AddWhitelistedAssetsProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *AddExtendedPairsVaultProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.Assets) > 0 { - for iNdEx := len(m.Assets) - 1; iNdEx >= 0; iNdEx-- { + if len(m.Pairs) > 0 { + for iNdEx := len(m.Pairs) - 1; iNdEx >= 0; iNdEx-- { { - size, err := m.Assets[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Pairs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -750,7 +584,7 @@ func (m *AddWhitelistedAssetsProposal) MarshalToSizedBuffer(dAtA []byte) (int, e return len(dAtA) - i, nil } -func (m *UpdateWhitelistedAssetProposal) Marshal() (dAtA []byte, err error) { +func (m *UpdateExtendedPairVaultProposal) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -760,18 +594,18 @@ func (m *UpdateWhitelistedAssetProposal) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *UpdateWhitelistedAssetProposal) MarshalTo(dAtA []byte) (int, error) { +func (m *UpdateExtendedPairVaultProposal) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *UpdateWhitelistedAssetProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *UpdateExtendedPairVaultProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l { - size, err := m.Asset.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Pair.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -797,7 +631,7 @@ func (m *UpdateWhitelistedAssetProposal) MarshalToSizedBuffer(dAtA []byte) (int, return len(dAtA) - i, nil } -func (m *AddWhitelistedPairsProposal) Marshal() (dAtA []byte, err error) { +func (m *AddAppMappingProposal) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -807,20 +641,20 @@ func (m *AddWhitelistedPairsProposal) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *AddWhitelistedPairsProposal) MarshalTo(dAtA []byte) (int, error) { +func (m *AddAppMappingProposal) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *AddWhitelistedPairsProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *AddAppMappingProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.Pairs) > 0 { - for iNdEx := len(m.Pairs) - 1; iNdEx >= 0; iNdEx-- { + if len(m.App) > 0 { + for iNdEx := len(m.App) - 1; iNdEx >= 0; iNdEx-- { { - size, err := m.Pairs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + size, err := m.App[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -848,7 +682,7 @@ func (m *AddWhitelistedPairsProposal) MarshalToSizedBuffer(dAtA []byte) (int, er return len(dAtA) - i, nil } -func (m *UpdateWhitelistedPairProposal) Marshal() (dAtA []byte, err error) { +func (m *UpdateGovTimeInAppMappingProposal) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -858,18 +692,18 @@ func (m *UpdateWhitelistedPairProposal) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *UpdateWhitelistedPairProposal) MarshalTo(dAtA []byte) (int, error) { +func (m *UpdateGovTimeInAppMappingProposal) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *UpdateWhitelistedPairProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *UpdateGovTimeInAppMappingProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l { - size, err := m.Pair.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.GovTime.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -895,7 +729,7 @@ func (m *UpdateWhitelistedPairProposal) MarshalToSizedBuffer(dAtA []byte) (int, return len(dAtA) - i, nil } -func (m *AddExtendedPairsVaultProposal) Marshal() (dAtA []byte, err error) { +func (m *AddAssetMappingProposal) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -905,20 +739,20 @@ func (m *AddExtendedPairsVaultProposal) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *AddExtendedPairsVaultProposal) MarshalTo(dAtA []byte) (int, error) { +func (m *AddAssetMappingProposal) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *AddExtendedPairsVaultProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *AddAssetMappingProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.Pairs) > 0 { - for iNdEx := len(m.Pairs) - 1; iNdEx >= 0; iNdEx-- { + if len(m.App) > 0 { + for iNdEx := len(m.App) - 1; iNdEx >= 0; iNdEx-- { { - size, err := m.Pairs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + size, err := m.App[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -946,253 +780,57 @@ func (m *AddExtendedPairsVaultProposal) MarshalToSizedBuffer(dAtA []byte) (int, return len(dAtA) - i, nil } -func (m *UpdateExtendedPairVaultProposal) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func encodeVarintGov(dAtA []byte, offset int, v uint64) int { + offset -= sovGov(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ } - return dAtA[:n], nil -} - -func (m *UpdateExtendedPairVaultProposal) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + dAtA[offset] = uint8(v) + return base } - -func (m *UpdateExtendedPairVaultProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i +func (m *AddAssetsProposal) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l - { - size, err := m.Pair.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGov(dAtA, i, uint64(size)) + l = len(m.Title) + if l > 0 { + n += 1 + l + sovGov(uint64(l)) } - i-- - dAtA[i] = 0x1a - if len(m.Description) > 0 { - i -= len(m.Description) - copy(dAtA[i:], m.Description) - i = encodeVarintGov(dAtA, i, uint64(len(m.Description))) - i-- - dAtA[i] = 0x12 + l = len(m.Description) + if l > 0 { + n += 1 + l + sovGov(uint64(l)) } - if len(m.Title) > 0 { - i -= len(m.Title) - copy(dAtA[i:], m.Title) - i = encodeVarintGov(dAtA, i, uint64(len(m.Title))) - i-- - dAtA[i] = 0xa + if len(m.Assets) > 0 { + for _, e := range m.Assets { + l = e.Size() + n += 1 + l + sovGov(uint64(l)) + } } - return len(dAtA) - i, nil + return n } -func (m *AddAppMappingProposal) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (m *UpdateAssetProposal) Size() (n int) { + if m == nil { + return 0 } - return dAtA[:n], nil -} - -func (m *AddAppMappingProposal) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AddAppMappingProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i var l int _ = l - if len(m.App) > 0 { - for iNdEx := len(m.App) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.App[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGov(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - } - if len(m.Description) > 0 { - i -= len(m.Description) - copy(dAtA[i:], m.Description) - i = encodeVarintGov(dAtA, i, uint64(len(m.Description))) - i-- - dAtA[i] = 0x12 + l = len(m.Title) + if l > 0 { + n += 1 + l + sovGov(uint64(l)) } - if len(m.Title) > 0 { - i -= len(m.Title) - copy(dAtA[i:], m.Title) - i = encodeVarintGov(dAtA, i, uint64(len(m.Title))) - i-- - dAtA[i] = 0xa + l = len(m.Description) + if l > 0 { + n += 1 + l + sovGov(uint64(l)) } - return len(dAtA) - i, nil -} - -func (m *UpdateGovTimeInAppMappingProposal) 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 *UpdateGovTimeInAppMappingProposal) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *UpdateGovTimeInAppMappingProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.GovTime.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGov(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - if len(m.Description) > 0 { - i -= len(m.Description) - copy(dAtA[i:], m.Description) - i = encodeVarintGov(dAtA, i, uint64(len(m.Description))) - i-- - dAtA[i] = 0x12 - } - if len(m.Title) > 0 { - i -= len(m.Title) - copy(dAtA[i:], m.Title) - i = encodeVarintGov(dAtA, i, uint64(len(m.Title))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *AddAssetMappingProposal) 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 *AddAssetMappingProposal) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AddAssetMappingProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.App) > 0 { - for iNdEx := len(m.App) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.App[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGov(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - } - if len(m.Description) > 0 { - i -= len(m.Description) - copy(dAtA[i:], m.Description) - i = encodeVarintGov(dAtA, i, uint64(len(m.Description))) - i-- - dAtA[i] = 0x12 - } - if len(m.Title) > 0 { - i -= len(m.Title) - copy(dAtA[i:], m.Title) - i = encodeVarintGov(dAtA, i, uint64(len(m.Title))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintGov(dAtA []byte, offset int, v uint64) int { - offset -= sovGov(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *AddAssetsProposal) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Title) - if l > 0 { - n += 1 + l + sovGov(uint64(l)) - } - l = len(m.Description) - if l > 0 { - n += 1 + l + sovGov(uint64(l)) - } - if len(m.Assets) > 0 { - for _, e := range m.Assets { - l = e.Size() - n += 1 + l + sovGov(uint64(l)) - } - } - return n -} - -func (m *UpdateAssetProposal) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Title) - if l > 0 { - n += 1 + l + sovGov(uint64(l)) - } - l = len(m.Description) - if l > 0 { - n += 1 + l + sovGov(uint64(l)) - } - l = m.Asset.Size() - n += 1 + l + sovGov(uint64(l)) - return n + l = m.Asset.Size() + n += 1 + l + sovGov(uint64(l)) + return n } func (m *AddPairsProposal) Size() (n int) { @@ -1218,90 +856,6 @@ func (m *AddPairsProposal) Size() (n int) { return n } -func (m *AddWhitelistedAssetsProposal) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Title) - if l > 0 { - n += 1 + l + sovGov(uint64(l)) - } - l = len(m.Description) - if l > 0 { - n += 1 + l + sovGov(uint64(l)) - } - if len(m.Assets) > 0 { - for _, e := range m.Assets { - l = e.Size() - n += 1 + l + sovGov(uint64(l)) - } - } - return n -} - -func (m *UpdateWhitelistedAssetProposal) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Title) - if l > 0 { - n += 1 + l + sovGov(uint64(l)) - } - l = len(m.Description) - if l > 0 { - n += 1 + l + sovGov(uint64(l)) - } - l = m.Asset.Size() - n += 1 + l + sovGov(uint64(l)) - return n -} - -func (m *AddWhitelistedPairsProposal) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Title) - if l > 0 { - n += 1 + l + sovGov(uint64(l)) - } - l = len(m.Description) - if l > 0 { - n += 1 + l + sovGov(uint64(l)) - } - if len(m.Pairs) > 0 { - for _, e := range m.Pairs { - l = e.Size() - n += 1 + l + sovGov(uint64(l)) - } - } - return n -} - -func (m *UpdateWhitelistedPairProposal) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Title) - if l > 0 { - n += 1 + l + sovGov(uint64(l)) - } - l = len(m.Description) - if l > 0 { - n += 1 + l + sovGov(uint64(l)) - } - l = m.Pair.Size() - n += 1 + l + sovGov(uint64(l)) - return n -} - func (m *AddExtendedPairsVaultProposal) Size() (n int) { if m == nil { return 0 @@ -1858,596 +1412,6 @@ func (m *AddPairsProposal) Unmarshal(dAtA []byte) error { } return nil } -func (m *AddWhitelistedAssetsProposal) 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 ErrIntOverflowGov - } - 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: AddWhitelistedAssetsProposal: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AddWhitelistedAssetsProposal: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Title", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGov - } - 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 ErrInvalidLengthGov - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGov - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Title = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGov - } - 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 ErrInvalidLengthGov - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGov - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Description = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Assets", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGov - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGov - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGov - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Assets = append(m.Assets, ExtendedAsset{}) - if err := m.Assets[len(m.Assets)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGov(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGov - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *UpdateWhitelistedAssetProposal) 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 ErrIntOverflowGov - } - 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: UpdateWhitelistedAssetProposal: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: UpdateWhitelistedAssetProposal: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Title", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGov - } - 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 ErrInvalidLengthGov - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGov - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Title = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGov - } - 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 ErrInvalidLengthGov - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGov - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Description = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Asset", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGov - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGov - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGov - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Asset.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGov(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGov - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AddWhitelistedPairsProposal) 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 ErrIntOverflowGov - } - 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: AddWhitelistedPairsProposal: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AddWhitelistedPairsProposal: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Title", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGov - } - 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 ErrInvalidLengthGov - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGov - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Title = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGov - } - 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 ErrInvalidLengthGov - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGov - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Description = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pairs", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGov - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGov - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGov - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Pairs = append(m.Pairs, ExtendedPairLend{}) - if err := m.Pairs[len(m.Pairs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGov(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGov - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *UpdateWhitelistedPairProposal) 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 ErrIntOverflowGov - } - 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: UpdateWhitelistedPairProposal: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: UpdateWhitelistedPairProposal: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Title", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGov - } - 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 ErrInvalidLengthGov - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGov - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Title = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGov - } - 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 ErrInvalidLengthGov - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGov - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Description = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pair", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGov - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGov - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGov - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Pair.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGov(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGov - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} func (m *AddExtendedPairsVaultProposal) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 diff --git a/x/asset/types/lend.go b/x/asset/types/lend.go deleted file mode 100644 index 9133c0485..000000000 --- a/x/asset/types/lend.go +++ /dev/null @@ -1,9 +0,0 @@ -package types - -func (m *ExtendedAsset) Validate() error { - return nil -} - -func (m *ExtendedPairLend) Validate() error { - return nil -} diff --git a/x/asset/types/query.pb.go b/x/asset/types/query.pb.go index b25820b7d..f4fd3bd57 100644 --- a/x/asset/types/query.pb.go +++ b/x/asset/types/query.pb.go @@ -516,22 +516,22 @@ func (m *QueryAppResponse) XXX_DiscardUnknown() { var xxx_messageInfo_QueryAppResponse proto.InternalMessageInfo -type QueryTokenGovRequest struct { +type QueryGovTokenByAppRequest struct { AppId uint64 `protobuf:"varint,1,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty" yaml:"app_id"` } -func (m *QueryTokenGovRequest) Reset() { *m = QueryTokenGovRequest{} } -func (m *QueryTokenGovRequest) String() string { return proto.CompactTextString(m) } -func (*QueryTokenGovRequest) ProtoMessage() {} -func (*QueryTokenGovRequest) Descriptor() ([]byte, []int) { +func (m *QueryGovTokenByAppRequest) Reset() { *m = QueryGovTokenByAppRequest{} } +func (m *QueryGovTokenByAppRequest) String() string { return proto.CompactTextString(m) } +func (*QueryGovTokenByAppRequest) ProtoMessage() {} +func (*QueryGovTokenByAppRequest) Descriptor() ([]byte, []int) { return fileDescriptor_9e7e9ce3abb4febf, []int{13} } -func (m *QueryTokenGovRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryGovTokenByAppRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryTokenGovRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryGovTokenByAppRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryTokenGovRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryGovTokenByAppRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -541,34 +541,34 @@ func (m *QueryTokenGovRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte return b[:n], nil } } -func (m *QueryTokenGovRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryTokenGovRequest.Merge(m, src) +func (m *QueryGovTokenByAppRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryGovTokenByAppRequest.Merge(m, src) } -func (m *QueryTokenGovRequest) XXX_Size() int { +func (m *QueryGovTokenByAppRequest) XXX_Size() int { return m.Size() } -func (m *QueryTokenGovRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryTokenGovRequest.DiscardUnknown(m) +func (m *QueryGovTokenByAppRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryGovTokenByAppRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryTokenGovRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryGovTokenByAppRequest proto.InternalMessageInfo -type QueryTokenGovResponse struct { +type QueryGovTokenByAppResponse struct { GovAssetId uint64 `protobuf:"varint,1,opt,name=gov_asset_id,json=govAssetId,proto3" json:"gov_asset_id,omitempty" yaml:"gov_asset_id"` } -func (m *QueryTokenGovResponse) Reset() { *m = QueryTokenGovResponse{} } -func (m *QueryTokenGovResponse) String() string { return proto.CompactTextString(m) } -func (*QueryTokenGovResponse) ProtoMessage() {} -func (*QueryTokenGovResponse) Descriptor() ([]byte, []int) { +func (m *QueryGovTokenByAppResponse) Reset() { *m = QueryGovTokenByAppResponse{} } +func (m *QueryGovTokenByAppResponse) String() string { return proto.CompactTextString(m) } +func (*QueryGovTokenByAppResponse) ProtoMessage() {} +func (*QueryGovTokenByAppResponse) Descriptor() ([]byte, []int) { return fileDescriptor_9e7e9ce3abb4febf, []int{14} } -func (m *QueryTokenGovResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryGovTokenByAppResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryTokenGovResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryGovTokenByAppResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryTokenGovResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryGovTokenByAppResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -578,17 +578,17 @@ func (m *QueryTokenGovResponse) XXX_Marshal(b []byte, deterministic bool) ([]byt return b[:n], nil } } -func (m *QueryTokenGovResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryTokenGovResponse.Merge(m, src) +func (m *QueryGovTokenByAppResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryGovTokenByAppResponse.Merge(m, src) } -func (m *QueryTokenGovResponse) XXX_Size() int { +func (m *QueryGovTokenByAppResponse) XXX_Size() int { return m.Size() } -func (m *QueryTokenGovResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryTokenGovResponse.DiscardUnknown(m) +func (m *QueryGovTokenByAppResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryGovTokenByAppResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryTokenGovResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryGovTokenByAppResponse proto.InternalMessageInfo type QueryAppsRequest struct { } @@ -663,22 +663,22 @@ func (m *QueryAppsResponse) XXX_DiscardUnknown() { var xxx_messageInfo_QueryAppsResponse proto.InternalMessageInfo -type QueryPairVaultRequest struct { +type QueryExtendedPairVaultRequest struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` } -func (m *QueryPairVaultRequest) Reset() { *m = QueryPairVaultRequest{} } -func (m *QueryPairVaultRequest) String() string { return proto.CompactTextString(m) } -func (*QueryPairVaultRequest) ProtoMessage() {} -func (*QueryPairVaultRequest) Descriptor() ([]byte, []int) { +func (m *QueryExtendedPairVaultRequest) Reset() { *m = QueryExtendedPairVaultRequest{} } +func (m *QueryExtendedPairVaultRequest) String() string { return proto.CompactTextString(m) } +func (*QueryExtendedPairVaultRequest) ProtoMessage() {} +func (*QueryExtendedPairVaultRequest) Descriptor() ([]byte, []int) { return fileDescriptor_9e7e9ce3abb4febf, []int{17} } -func (m *QueryPairVaultRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryExtendedPairVaultRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryPairVaultRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryExtendedPairVaultRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryPairVaultRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryExtendedPairVaultRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -688,34 +688,34 @@ func (m *QueryPairVaultRequest) XXX_Marshal(b []byte, deterministic bool) ([]byt return b[:n], nil } } -func (m *QueryPairVaultRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryPairVaultRequest.Merge(m, src) +func (m *QueryExtendedPairVaultRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryExtendedPairVaultRequest.Merge(m, src) } -func (m *QueryPairVaultRequest) XXX_Size() int { +func (m *QueryExtendedPairVaultRequest) XXX_Size() int { return m.Size() } -func (m *QueryPairVaultRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryPairVaultRequest.DiscardUnknown(m) +func (m *QueryExtendedPairVaultRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryExtendedPairVaultRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryPairVaultRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryExtendedPairVaultRequest proto.InternalMessageInfo -type QueryPairVaultResponse struct { +type QueryExtendedPairVaultResponse struct { PairVault ExtendedPairVault `protobuf:"bytes,1,opt,name=pairVault,proto3" json:"pairVault" yaml:"pair_vault"` } -func (m *QueryPairVaultResponse) Reset() { *m = QueryPairVaultResponse{} } -func (m *QueryPairVaultResponse) String() string { return proto.CompactTextString(m) } -func (*QueryPairVaultResponse) ProtoMessage() {} -func (*QueryPairVaultResponse) Descriptor() ([]byte, []int) { +func (m *QueryExtendedPairVaultResponse) Reset() { *m = QueryExtendedPairVaultResponse{} } +func (m *QueryExtendedPairVaultResponse) String() string { return proto.CompactTextString(m) } +func (*QueryExtendedPairVaultResponse) ProtoMessage() {} +func (*QueryExtendedPairVaultResponse) Descriptor() ([]byte, []int) { return fileDescriptor_9e7e9ce3abb4febf, []int{18} } -func (m *QueryPairVaultResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryExtendedPairVaultResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryPairVaultResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryExtendedPairVaultResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryPairVaultResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryExtendedPairVaultResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -725,33 +725,33 @@ func (m *QueryPairVaultResponse) XXX_Marshal(b []byte, deterministic bool) ([]by return b[:n], nil } } -func (m *QueryPairVaultResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryPairVaultResponse.Merge(m, src) +func (m *QueryExtendedPairVaultResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryExtendedPairVaultResponse.Merge(m, src) } -func (m *QueryPairVaultResponse) XXX_Size() int { +func (m *QueryExtendedPairVaultResponse) XXX_Size() int { return m.Size() } -func (m *QueryPairVaultResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryPairVaultResponse.DiscardUnknown(m) +func (m *QueryExtendedPairVaultResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryExtendedPairVaultResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryPairVaultResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryExtendedPairVaultResponse proto.InternalMessageInfo -type QueryPairVaultsRequest struct { +type QueryAllExtendedPairVaultsRequest struct { } -func (m *QueryPairVaultsRequest) Reset() { *m = QueryPairVaultsRequest{} } -func (m *QueryPairVaultsRequest) String() string { return proto.CompactTextString(m) } -func (*QueryPairVaultsRequest) ProtoMessage() {} -func (*QueryPairVaultsRequest) Descriptor() ([]byte, []int) { +func (m *QueryAllExtendedPairVaultsRequest) Reset() { *m = QueryAllExtendedPairVaultsRequest{} } +func (m *QueryAllExtendedPairVaultsRequest) String() string { return proto.CompactTextString(m) } +func (*QueryAllExtendedPairVaultsRequest) ProtoMessage() {} +func (*QueryAllExtendedPairVaultsRequest) Descriptor() ([]byte, []int) { return fileDescriptor_9e7e9ce3abb4febf, []int{19} } -func (m *QueryPairVaultsRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryAllExtendedPairVaultsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryPairVaultsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryAllExtendedPairVaultsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryPairVaultsRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryAllExtendedPairVaultsRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -761,34 +761,34 @@ func (m *QueryPairVaultsRequest) XXX_Marshal(b []byte, deterministic bool) ([]by return b[:n], nil } } -func (m *QueryPairVaultsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryPairVaultsRequest.Merge(m, src) +func (m *QueryAllExtendedPairVaultsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllExtendedPairVaultsRequest.Merge(m, src) } -func (m *QueryPairVaultsRequest) XXX_Size() int { +func (m *QueryAllExtendedPairVaultsRequest) XXX_Size() int { return m.Size() } -func (m *QueryPairVaultsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryPairVaultsRequest.DiscardUnknown(m) +func (m *QueryAllExtendedPairVaultsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllExtendedPairVaultsRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryPairVaultsRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryAllExtendedPairVaultsRequest proto.InternalMessageInfo -type QueryPairVaultsResponse struct { +type QueryAllExtendedPairVaultsResponse struct { PairVault []ExtendedPairVault `protobuf:"bytes,1,rep,name=pairVault,proto3" json:"pairVault" yaml:"pair_vault"` } -func (m *QueryPairVaultsResponse) Reset() { *m = QueryPairVaultsResponse{} } -func (m *QueryPairVaultsResponse) String() string { return proto.CompactTextString(m) } -func (*QueryPairVaultsResponse) ProtoMessage() {} -func (*QueryPairVaultsResponse) Descriptor() ([]byte, []int) { +func (m *QueryAllExtendedPairVaultsResponse) Reset() { *m = QueryAllExtendedPairVaultsResponse{} } +func (m *QueryAllExtendedPairVaultsResponse) String() string { return proto.CompactTextString(m) } +func (*QueryAllExtendedPairVaultsResponse) ProtoMessage() {} +func (*QueryAllExtendedPairVaultsResponse) Descriptor() ([]byte, []int) { return fileDescriptor_9e7e9ce3abb4febf, []int{20} } -func (m *QueryPairVaultsResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryAllExtendedPairVaultsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryPairVaultsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryAllExtendedPairVaultsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryPairVaultsResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryAllExtendedPairVaultsResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -798,34 +798,36 @@ func (m *QueryPairVaultsResponse) XXX_Marshal(b []byte, deterministic bool) ([]b return b[:n], nil } } -func (m *QueryPairVaultsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryPairVaultsResponse.Merge(m, src) +func (m *QueryAllExtendedPairVaultsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllExtendedPairVaultsResponse.Merge(m, src) } -func (m *QueryPairVaultsResponse) XXX_Size() int { +func (m *QueryAllExtendedPairVaultsResponse) XXX_Size() int { return m.Size() } -func (m *QueryPairVaultsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryPairVaultsResponse.DiscardUnknown(m) +func (m *QueryAllExtendedPairVaultsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllExtendedPairVaultsResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryPairVaultsResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryAllExtendedPairVaultsResponse proto.InternalMessageInfo -type QueryProductToExtendedPairRequest struct { - ProductId uint64 `protobuf:"varint,1,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty" yaml:"product_id"` +type QueryAllExtendedPairVaultsByAppRequest struct { + AppId uint64 `protobuf:"varint,1,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty" yaml:"app_id"` } -func (m *QueryProductToExtendedPairRequest) Reset() { *m = QueryProductToExtendedPairRequest{} } -func (m *QueryProductToExtendedPairRequest) String() string { return proto.CompactTextString(m) } -func (*QueryProductToExtendedPairRequest) ProtoMessage() {} -func (*QueryProductToExtendedPairRequest) Descriptor() ([]byte, []int) { +func (m *QueryAllExtendedPairVaultsByAppRequest) Reset() { + *m = QueryAllExtendedPairVaultsByAppRequest{} +} +func (m *QueryAllExtendedPairVaultsByAppRequest) String() string { return proto.CompactTextString(m) } +func (*QueryAllExtendedPairVaultsByAppRequest) ProtoMessage() {} +func (*QueryAllExtendedPairVaultsByAppRequest) Descriptor() ([]byte, []int) { return fileDescriptor_9e7e9ce3abb4febf, []int{21} } -func (m *QueryProductToExtendedPairRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryAllExtendedPairVaultsByAppRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryProductToExtendedPairRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryAllExtendedPairVaultsByAppRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryProductToExtendedPairRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryAllExtendedPairVaultsByAppRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -835,34 +837,36 @@ func (m *QueryProductToExtendedPairRequest) XXX_Marshal(b []byte, deterministic return b[:n], nil } } -func (m *QueryProductToExtendedPairRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryProductToExtendedPairRequest.Merge(m, src) +func (m *QueryAllExtendedPairVaultsByAppRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllExtendedPairVaultsByAppRequest.Merge(m, src) } -func (m *QueryProductToExtendedPairRequest) XXX_Size() int { +func (m *QueryAllExtendedPairVaultsByAppRequest) XXX_Size() int { return m.Size() } -func (m *QueryProductToExtendedPairRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryProductToExtendedPairRequest.DiscardUnknown(m) +func (m *QueryAllExtendedPairVaultsByAppRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllExtendedPairVaultsByAppRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryProductToExtendedPairRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryAllExtendedPairVaultsByAppRequest proto.InternalMessageInfo -type QueryProductToExtendedPairResponse struct { +type QueryAllExtendedPairVaultsByAppResponse struct { ExtendedPair []ExtendedPairVault `protobuf:"bytes,1,rep,name=extended_pair,json=extendedPair,proto3" json:"extended_pair" yaml:"extended_pair"` } -func (m *QueryProductToExtendedPairResponse) Reset() { *m = QueryProductToExtendedPairResponse{} } -func (m *QueryProductToExtendedPairResponse) String() string { return proto.CompactTextString(m) } -func (*QueryProductToExtendedPairResponse) ProtoMessage() {} -func (*QueryProductToExtendedPairResponse) Descriptor() ([]byte, []int) { +func (m *QueryAllExtendedPairVaultsByAppResponse) Reset() { + *m = QueryAllExtendedPairVaultsByAppResponse{} +} +func (m *QueryAllExtendedPairVaultsByAppResponse) String() string { return proto.CompactTextString(m) } +func (*QueryAllExtendedPairVaultsByAppResponse) ProtoMessage() {} +func (*QueryAllExtendedPairVaultsByAppResponse) Descriptor() ([]byte, []int) { return fileDescriptor_9e7e9ce3abb4febf, []int{22} } -func (m *QueryProductToExtendedPairResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryAllExtendedPairVaultsByAppResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryProductToExtendedPairResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryAllExtendedPairVaultsByAppResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryProductToExtendedPairResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryAllExtendedPairVaultsByAppResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -872,34 +876,38 @@ func (m *QueryProductToExtendedPairResponse) XXX_Marshal(b []byte, deterministic return b[:n], nil } } -func (m *QueryProductToExtendedPairResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryProductToExtendedPairResponse.Merge(m, src) +func (m *QueryAllExtendedPairVaultsByAppResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllExtendedPairVaultsByAppResponse.Merge(m, src) } -func (m *QueryProductToExtendedPairResponse) XXX_Size() int { +func (m *QueryAllExtendedPairVaultsByAppResponse) XXX_Size() int { return m.Size() } -func (m *QueryProductToExtendedPairResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryProductToExtendedPairResponse.DiscardUnknown(m) +func (m *QueryAllExtendedPairVaultsByAppResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllExtendedPairVaultsByAppResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryProductToExtendedPairResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryAllExtendedPairVaultsByAppResponse proto.InternalMessageInfo -type QueryExtendedPairPsmPairWiseRequest struct { - ProductId uint64 `protobuf:"varint,1,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty" yaml:"product_id"` +type QueryAllExtendedPairStableVaultsIdByAppRequest struct { + AppId uint64 `protobuf:"varint,1,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty" yaml:"app_id"` } -func (m *QueryExtendedPairPsmPairWiseRequest) Reset() { *m = QueryExtendedPairPsmPairWiseRequest{} } -func (m *QueryExtendedPairPsmPairWiseRequest) String() string { return proto.CompactTextString(m) } -func (*QueryExtendedPairPsmPairWiseRequest) ProtoMessage() {} -func (*QueryExtendedPairPsmPairWiseRequest) Descriptor() ([]byte, []int) { +func (m *QueryAllExtendedPairStableVaultsIdByAppRequest) Reset() { + *m = QueryAllExtendedPairStableVaultsIdByAppRequest{} +} +func (m *QueryAllExtendedPairStableVaultsIdByAppRequest) String() string { + return proto.CompactTextString(m) +} +func (*QueryAllExtendedPairStableVaultsIdByAppRequest) ProtoMessage() {} +func (*QueryAllExtendedPairStableVaultsIdByAppRequest) Descriptor() ([]byte, []int) { return fileDescriptor_9e7e9ce3abb4febf, []int{23} } -func (m *QueryExtendedPairPsmPairWiseRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryAllExtendedPairStableVaultsIdByAppRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryExtendedPairPsmPairWiseRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryAllExtendedPairStableVaultsIdByAppRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryExtendedPairPsmPairWiseRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryAllExtendedPairStableVaultsIdByAppRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -909,34 +917,38 @@ func (m *QueryExtendedPairPsmPairWiseRequest) XXX_Marshal(b []byte, deterministi return b[:n], nil } } -func (m *QueryExtendedPairPsmPairWiseRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryExtendedPairPsmPairWiseRequest.Merge(m, src) +func (m *QueryAllExtendedPairStableVaultsIdByAppRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllExtendedPairStableVaultsIdByAppRequest.Merge(m, src) } -func (m *QueryExtendedPairPsmPairWiseRequest) XXX_Size() int { +func (m *QueryAllExtendedPairStableVaultsIdByAppRequest) XXX_Size() int { return m.Size() } -func (m *QueryExtendedPairPsmPairWiseRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryExtendedPairPsmPairWiseRequest.DiscardUnknown(m) +func (m *QueryAllExtendedPairStableVaultsIdByAppRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllExtendedPairStableVaultsIdByAppRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryExtendedPairPsmPairWiseRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryAllExtendedPairStableVaultsIdByAppRequest proto.InternalMessageInfo -type QueryExtendedPairPsmPairWiseResponse struct { +type QueryAllExtendedPairStableVaultsIdByAppResponse struct { ExtendedPairsId []uint64 `protobuf:"varint,1,rep,packed,name=extended_pairs_id,json=extendedPairsId,proto3" json:"extended_pairs_id,omitempty" yaml:"extended_pairs_id"` } -func (m *QueryExtendedPairPsmPairWiseResponse) Reset() { *m = QueryExtendedPairPsmPairWiseResponse{} } -func (m *QueryExtendedPairPsmPairWiseResponse) String() string { return proto.CompactTextString(m) } -func (*QueryExtendedPairPsmPairWiseResponse) ProtoMessage() {} -func (*QueryExtendedPairPsmPairWiseResponse) Descriptor() ([]byte, []int) { +func (m *QueryAllExtendedPairStableVaultsIdByAppResponse) Reset() { + *m = QueryAllExtendedPairStableVaultsIdByAppResponse{} +} +func (m *QueryAllExtendedPairStableVaultsIdByAppResponse) String() string { + return proto.CompactTextString(m) +} +func (*QueryAllExtendedPairStableVaultsIdByAppResponse) ProtoMessage() {} +func (*QueryAllExtendedPairStableVaultsIdByAppResponse) Descriptor() ([]byte, []int) { return fileDescriptor_9e7e9ce3abb4febf, []int{24} } -func (m *QueryExtendedPairPsmPairWiseResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryAllExtendedPairStableVaultsIdByAppResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryExtendedPairPsmPairWiseResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryAllExtendedPairStableVaultsIdByAppResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryExtendedPairPsmPairWiseResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryAllExtendedPairStableVaultsIdByAppResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -946,36 +958,38 @@ func (m *QueryExtendedPairPsmPairWiseResponse) XXX_Marshal(b []byte, determinist return b[:n], nil } } -func (m *QueryExtendedPairPsmPairWiseResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryExtendedPairPsmPairWiseResponse.Merge(m, src) +func (m *QueryAllExtendedPairStableVaultsIdByAppResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllExtendedPairStableVaultsIdByAppResponse.Merge(m, src) } -func (m *QueryExtendedPairPsmPairWiseResponse) XXX_Size() int { +func (m *QueryAllExtendedPairStableVaultsIdByAppResponse) XXX_Size() int { return m.Size() } -func (m *QueryExtendedPairPsmPairWiseResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryExtendedPairPsmPairWiseResponse.DiscardUnknown(m) +func (m *QueryAllExtendedPairStableVaultsIdByAppResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllExtendedPairStableVaultsIdByAppResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryExtendedPairPsmPairWiseResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryAllExtendedPairStableVaultsIdByAppResponse proto.InternalMessageInfo -type QueryExtendedPairDataPsmPairWiseRequest struct { +type QueryAllExtendedPairStableVaultsDataByAppRequest struct { AppId uint64 `protobuf:"varint,1,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty" yaml:"app_id"` } -func (m *QueryExtendedPairDataPsmPairWiseRequest) Reset() { - *m = QueryExtendedPairDataPsmPairWiseRequest{} +func (m *QueryAllExtendedPairStableVaultsDataByAppRequest) Reset() { + *m = QueryAllExtendedPairStableVaultsDataByAppRequest{} +} +func (m *QueryAllExtendedPairStableVaultsDataByAppRequest) String() string { + return proto.CompactTextString(m) } -func (m *QueryExtendedPairDataPsmPairWiseRequest) String() string { return proto.CompactTextString(m) } -func (*QueryExtendedPairDataPsmPairWiseRequest) ProtoMessage() {} -func (*QueryExtendedPairDataPsmPairWiseRequest) Descriptor() ([]byte, []int) { +func (*QueryAllExtendedPairStableVaultsDataByAppRequest) ProtoMessage() {} +func (*QueryAllExtendedPairStableVaultsDataByAppRequest) Descriptor() ([]byte, []int) { return fileDescriptor_9e7e9ce3abb4febf, []int{25} } -func (m *QueryExtendedPairDataPsmPairWiseRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryAllExtendedPairStableVaultsDataByAppRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryExtendedPairDataPsmPairWiseRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryAllExtendedPairStableVaultsDataByAppRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryExtendedPairDataPsmPairWiseRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryAllExtendedPairStableVaultsDataByAppRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -985,36 +999,38 @@ func (m *QueryExtendedPairDataPsmPairWiseRequest) XXX_Marshal(b []byte, determin return b[:n], nil } } -func (m *QueryExtendedPairDataPsmPairWiseRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryExtendedPairDataPsmPairWiseRequest.Merge(m, src) +func (m *QueryAllExtendedPairStableVaultsDataByAppRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllExtendedPairStableVaultsDataByAppRequest.Merge(m, src) } -func (m *QueryExtendedPairDataPsmPairWiseRequest) XXX_Size() int { +func (m *QueryAllExtendedPairStableVaultsDataByAppRequest) XXX_Size() int { return m.Size() } -func (m *QueryExtendedPairDataPsmPairWiseRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryExtendedPairDataPsmPairWiseRequest.DiscardUnknown(m) +func (m *QueryAllExtendedPairStableVaultsDataByAppRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllExtendedPairStableVaultsDataByAppRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryExtendedPairDataPsmPairWiseRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryAllExtendedPairStableVaultsDataByAppRequest proto.InternalMessageInfo -type QueryExtendedPairDataPsmPairWiseResponse struct { +type QueryAllExtendedPairStableVaultsDataByAppResponse struct { ExtendedPair []ExtendedPairVault `protobuf:"bytes,1,rep,name=extended_pair,json=extendedPair,proto3" json:"extended_pair" yaml:"extended_pair"` } -func (m *QueryExtendedPairDataPsmPairWiseResponse) Reset() { - *m = QueryExtendedPairDataPsmPairWiseResponse{} +func (m *QueryAllExtendedPairStableVaultsDataByAppResponse) Reset() { + *m = QueryAllExtendedPairStableVaultsDataByAppResponse{} } -func (m *QueryExtendedPairDataPsmPairWiseResponse) String() string { return proto.CompactTextString(m) } -func (*QueryExtendedPairDataPsmPairWiseResponse) ProtoMessage() {} -func (*QueryExtendedPairDataPsmPairWiseResponse) Descriptor() ([]byte, []int) { +func (m *QueryAllExtendedPairStableVaultsDataByAppResponse) String() string { + return proto.CompactTextString(m) +} +func (*QueryAllExtendedPairStableVaultsDataByAppResponse) ProtoMessage() {} +func (*QueryAllExtendedPairStableVaultsDataByAppResponse) Descriptor() ([]byte, []int) { return fileDescriptor_9e7e9ce3abb4febf, []int{26} } -func (m *QueryExtendedPairDataPsmPairWiseResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryAllExtendedPairStableVaultsDataByAppResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryExtendedPairDataPsmPairWiseResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryAllExtendedPairStableVaultsDataByAppResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryExtendedPairDataPsmPairWiseResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryAllExtendedPairStableVaultsDataByAppResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1024,17 +1040,17 @@ func (m *QueryExtendedPairDataPsmPairWiseResponse) XXX_Marshal(b []byte, determi return b[:n], nil } } -func (m *QueryExtendedPairDataPsmPairWiseResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryExtendedPairDataPsmPairWiseResponse.Merge(m, src) +func (m *QueryAllExtendedPairStableVaultsDataByAppResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllExtendedPairStableVaultsDataByAppResponse.Merge(m, src) } -func (m *QueryExtendedPairDataPsmPairWiseResponse) XXX_Size() int { +func (m *QueryAllExtendedPairStableVaultsDataByAppResponse) XXX_Size() int { return m.Size() } -func (m *QueryExtendedPairDataPsmPairWiseResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryExtendedPairDataPsmPairWiseResponse.DiscardUnknown(m) +func (m *QueryAllExtendedPairStableVaultsDataByAppResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllExtendedPairStableVaultsDataByAppResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryExtendedPairDataPsmPairWiseResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryAllExtendedPairStableVaultsDataByAppResponse proto.InternalMessageInfo func init() { proto.RegisterType((*QueryAssetsRequest)(nil), "comdex.asset.v1beta1.QueryAssetsRequest") @@ -1050,115 +1066,115 @@ func init() { proto.RegisterType((*QueryParamsResponse)(nil), "comdex.asset.v1beta1.QueryParamsResponse") proto.RegisterType((*QueryAppRequest)(nil), "comdex.asset.v1beta1.QueryAppRequest") proto.RegisterType((*QueryAppResponse)(nil), "comdex.asset.v1beta1.QueryAppResponse") - proto.RegisterType((*QueryTokenGovRequest)(nil), "comdex.asset.v1beta1.QueryTokenGovRequest") - proto.RegisterType((*QueryTokenGovResponse)(nil), "comdex.asset.v1beta1.QueryTokenGovResponse") + proto.RegisterType((*QueryGovTokenByAppRequest)(nil), "comdex.asset.v1beta1.QueryGovTokenByAppRequest") + proto.RegisterType((*QueryGovTokenByAppResponse)(nil), "comdex.asset.v1beta1.QueryGovTokenByAppResponse") proto.RegisterType((*QueryAppsRequest)(nil), "comdex.asset.v1beta1.QueryAppsRequest") proto.RegisterType((*QueryAppsResponse)(nil), "comdex.asset.v1beta1.QueryAppsResponse") - proto.RegisterType((*QueryPairVaultRequest)(nil), "comdex.asset.v1beta1.QueryPairVaultRequest") - proto.RegisterType((*QueryPairVaultResponse)(nil), "comdex.asset.v1beta1.QueryPairVaultResponse") - proto.RegisterType((*QueryPairVaultsRequest)(nil), "comdex.asset.v1beta1.QueryPairVaultsRequest") - proto.RegisterType((*QueryPairVaultsResponse)(nil), "comdex.asset.v1beta1.QueryPairVaultsResponse") - proto.RegisterType((*QueryProductToExtendedPairRequest)(nil), "comdex.asset.v1beta1.QueryProductToExtendedPairRequest") - proto.RegisterType((*QueryProductToExtendedPairResponse)(nil), "comdex.asset.v1beta1.QueryProductToExtendedPairResponse") - proto.RegisterType((*QueryExtendedPairPsmPairWiseRequest)(nil), "comdex.asset.v1beta1.QueryExtendedPairPsmPairWiseRequest") - proto.RegisterType((*QueryExtendedPairPsmPairWiseResponse)(nil), "comdex.asset.v1beta1.QueryExtendedPairPsmPairWiseResponse") - proto.RegisterType((*QueryExtendedPairDataPsmPairWiseRequest)(nil), "comdex.asset.v1beta1.QueryExtendedPairDataPsmPairWiseRequest") - proto.RegisterType((*QueryExtendedPairDataPsmPairWiseResponse)(nil), "comdex.asset.v1beta1.QueryExtendedPairDataPsmPairWiseResponse") + proto.RegisterType((*QueryExtendedPairVaultRequest)(nil), "comdex.asset.v1beta1.QueryExtendedPairVaultRequest") + proto.RegisterType((*QueryExtendedPairVaultResponse)(nil), "comdex.asset.v1beta1.QueryExtendedPairVaultResponse") + proto.RegisterType((*QueryAllExtendedPairVaultsRequest)(nil), "comdex.asset.v1beta1.QueryAllExtendedPairVaultsRequest") + proto.RegisterType((*QueryAllExtendedPairVaultsResponse)(nil), "comdex.asset.v1beta1.QueryAllExtendedPairVaultsResponse") + proto.RegisterType((*QueryAllExtendedPairVaultsByAppRequest)(nil), "comdex.asset.v1beta1.QueryAllExtendedPairVaultsByAppRequest") + proto.RegisterType((*QueryAllExtendedPairVaultsByAppResponse)(nil), "comdex.asset.v1beta1.QueryAllExtendedPairVaultsByAppResponse") + proto.RegisterType((*QueryAllExtendedPairStableVaultsIdByAppRequest)(nil), "comdex.asset.v1beta1.QueryAllExtendedPairStableVaultsIdByAppRequest") + proto.RegisterType((*QueryAllExtendedPairStableVaultsIdByAppResponse)(nil), "comdex.asset.v1beta1.QueryAllExtendedPairStableVaultsIdByAppResponse") + proto.RegisterType((*QueryAllExtendedPairStableVaultsDataByAppRequest)(nil), "comdex.asset.v1beta1.QueryAllExtendedPairStableVaultsDataByAppRequest") + proto.RegisterType((*QueryAllExtendedPairStableVaultsDataByAppResponse)(nil), "comdex.asset.v1beta1.QueryAllExtendedPairStableVaultsDataByAppResponse") } func init() { proto.RegisterFile("comdex/asset/v1beta1/query.proto", fileDescriptor_9e7e9ce3abb4febf) } var fileDescriptor_9e7e9ce3abb4febf = []byte{ - // 1421 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x58, 0x5d, 0x6f, 0x1b, 0x45, - 0x17, 0xce, 0x26, 0x69, 0x9a, 0x9c, 0xf4, 0x23, 0x99, 0xb8, 0x6f, 0xf3, 0xba, 0xc6, 0x76, 0x26, - 0x6d, 0xe2, 0x7e, 0x79, 0xd5, 0x50, 0x54, 0x5a, 0xd4, 0xaa, 0x18, 0x68, 0x31, 0x08, 0xb5, 0x5d, - 0x2a, 0x2a, 0x8a, 0x5a, 0xb3, 0x89, 0x37, 0xee, 0xd2, 0x78, 0x67, 0xea, 0x59, 0x87, 0x96, 0xa8, - 0x37, 0x08, 0x21, 0xe0, 0xaa, 0x12, 0x12, 0x82, 0x7b, 0x2e, 0xf8, 0x1b, 0xdc, 0x95, 0x0b, 0xa4, - 0x4a, 0x70, 0x01, 0x17, 0x58, 0x25, 0xe5, 0x17, 0xe4, 0x17, 0xa0, 0x9d, 0x39, 0xfb, 0x61, 0x67, - 0x77, 0xed, 0x16, 0xe8, 0x95, 0xd7, 0x3b, 0xe7, 0x3c, 0xe7, 0x79, 0xce, 0x99, 0x99, 0x73, 0x6c, - 0x28, 0xae, 0xb0, 0x66, 0xdd, 0xba, 0xab, 0x9b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x97, 0x1c, 0x87, 0x09, 0x85, 0xef, 0xb9, 0xec, 0x48, 0x08, - 0xa0, 0x28, 0x5c, 0x6a, 0xbb, 0xb4, 0x85, 0xf9, 0xf5, 0xf4, 0x3d, 0xaf, 0x7d, 0xf9, 0xb3, 0x86, - 0xf5, 0xc2, 0xa0, 0x58, 0xaf, 0x6b, 0x30, 0xc1, 0xbd, 0x17, 0x5e, 0x9a, 0x71, 0x67, 0xe6, 0xe3, - 0x6b, 0xe6, 0x17, 0xa3, 0xf2, 0x7f, 0x2c, 0x5b, 0x10, 0xd0, 0x6e, 0x89, 0x9a, 0xed, 0xac, 0x32, - 0x6a, 0x84, 0x58, 0xff, 0xf9, 0x1e, 0xa5, 0x30, 0x15, 0xc8, 0x49, 0xda, 0xa2, 0x76, 0x24, 0xcf, - 0x81, 0xe2, 0xab, 0x30, 0xce, 0x51, 0x0a, 0x66, 0xb9, 0x9f, 0xe0, 0x59, 0x14, 0x3c, 0x15, 0x0a, - 0x46, 0xbd, 0x01, 0x12, 0xcd, 0x04, 0xd9, 0xf5, 0x6e, 0x35, 0x24, 0x44, 0x97, 0xf1, 0x2e, 0xf0, - 0xdf, 0x22, 0x85, 0xb7, 0x61, 0x4c, 0xdd, 0x7e, 0x48, 0x20, 0x97, 0x44, 0xc0, 0xb3, 0xe9, 0xbd, - 0x0c, 0x94, 0x27, 0x35, 0x10, 0x82, 0xce, 0xc1, 0x5e, 0x75, 0x0e, 0x39, 0x4f, 0xca, 0xc3, 0x75, - 0xcc, 0x95, 0x34, 0x41, 0x0e, 0x17, 0x60, 0xc4, 0xe4, 0x1c, 0x09, 0x14, 0x13, 0x8e, 0x69, 0x70, - 0xff, 0x56, 0x08, 0x92, 0x00, 0x3c, 0x05, 0x9c, 0x53, 0xc3, 0x03, 0xa0, 0xe7, 0x21, 0x23, 0xb1, - 0xaf, 0xb2, 0xdb, 0x96, 0x73, 0x91, 0xad, 0xfb, 0x1c, 0x4a, 0x30, 0x66, 0x72, 0x5e, 0x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 0x50, 0xf7, 0x1e, 0xb7, 0xc4, 0xf2, 0x98, 0xfc, 0xef, 0xeb, 0xc5, 0xbf, - 0x03, 0x00, 0x00, 0xff, 0xff, 0xbe, 0x94, 0xc8, 0x07, 0x2f, 0x14, 0x00, 0x00, + // 1409 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x98, 0x4d, 0x6c, 0x15, 0x55, + 0x1b, 0xc7, 0x3b, 0x6d, 0x29, 0xed, 0x29, 0xbc, 0xb4, 0xa7, 0xe5, 0xb5, 0x5c, 0xca, 0xdc, 0xdb, + 0x53, 0x69, 0x2f, 0x08, 0x33, 0xb4, 0xa0, 0x08, 0x81, 0x18, 0x6f, 0xf8, 0xf0, 0x6a, 0x0c, 0x30, + 0x12, 0x49, 0x88, 0x30, 0x4e, 0x3b, 0xd3, 0xeb, 0xe8, 0xed, 0x9c, 0xc3, 0x3d, 0x73, 0x2b, 0x84, + 0xb0, 0x21, 0x86, 0xa8, 0x2b, 0x13, 0xe3, 0xda, 0xad, 0x7b, 0x97, 0xae, 0x8c, 0x1b, 0x36, 0x26, + 0x24, 0x6e, 0x74, 0x73, 0xd5, 0xe2, 0xc2, 0x75, 0x97, 0xba, 0x31, 0x73, 0xce, 0x33, 0x1f, 0xb7, + 0x9d, 0x8f, 0xdb, 0xa2, 0xac, 0x7a, 0x33, 0xf3, 0x9c, 0xff, 0xf3, 0xfb, 0x3f, 0xe7, 0xeb, 0x99, + 0xa2, 0xca, 0x32, 0x5d, 0xb5, 0x9d, 0xbb, 0xba, 0xc5, 0xb9, 0xe3, 0xeb, 0x6b, 0x0b, 0x4b, 0x8e, + 0x6f, 0x2d, 0xe8, 0x77, 0xda, 0x4e, 0xeb, 0x9e, 0xc6, 0x5a, 0xd4, 0xa7, 0x78, 0x52, 0x46, 0x68, + 0x22, 0x42, 0x83, 0x88, 0xd2, 0xd1, 0x65, 0xca, 0x57, 0x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98, 0xaf, 0x1b, 0x68, 0x84, 0x05, 0x0f, 0x82, 0x32, 0xc3, 0xca, + 0x54, 0xd3, 0xe7, 0x2c, 0x9c, 0x8c, 0xda, 0x01, 0x98, 0xb6, 0x28, 0xa1, 0xdb, 0xe2, 0xa6, 0xeb, + 0xad, 0x50, 0x62, 0xc4, 0x5a, 0xff, 0xf9, 0x1a, 0x25, 0x68, 0x2c, 0xb2, 0x93, 0xb5, 0x44, 0xdd, + 0x44, 0x9d, 0x23, 0xc7, 0xd7, 0xd1, 0x30, 0x03, 0x2b, 0x50, 0xe5, 0x22, 0xc3, 0x53, 0x60, 0x78, + 0x2c, 0x36, 0x0c, 0x7e, 0x23, 0x25, 0x32, 0x19, 0x55, 0x37, 0x38, 0xd5, 0x00, 0x88, 0x2c, 0xc1, + 0x59, 0x10, 0x3e, 0x05, 0x84, 0xb7, 0xd0, 0x90, 0x3c, 0xfd, 0x00, 0x60, 0x3a, 0x0b, 0x20, 0x88, + 0xd9, 0x7c, 0x18, 0xc8, 0x91, 0xc4, 0x00, 0x09, 0x32, 0x83, 0xf6, 0xc9, 0x7d, 0xc8, 0x58, 0x56, + 0x1d, 0x6e, 0x42, 0xad, 0x44, 0x08, 0x30, 0x5c, 0x42, 0x03, 0x16, 0x63, 0x00, 0x50, 0xc9, 0xd8, + 0xa6, 0xd1, 0xf9, 0x5b, 0xc3, 0x00, 0x81, 0x60, 0x17, 0x30, 0x46, 0x8c, 0x40, 0x80, 0x5c, 0x44, + 0x07, 0x84, 0xf6, 0x65, 0xba, 0x76, 0x9d, 0x7e, 0xe4, 0x78, 0xb5, 0x24, 0x48, 0x15, 0x0d, 0x59, + 0x8c, 0x99, 0x21, 0x4c, 0x6d, 0x3c, 0x71, 0xa6, 0x89, 0xe7, 0xc1, 0x76, 0x67, 0xac, 0x6e, 0x93, + 0x1b, 0xa8, 0x94, 0x26, 0x03, 0xb0, 0x67, 0xd0, 0x9e, 0x06, 0x5d, 0x33, 0x61, 0x67, 0x87, 0x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 0xc7, 0x2e, 0x77, 0x62, 0xf3, 0xdf, 0x86, 0xdf, 0xb2, 0x5d, 0x5f, 0x0b, 0x58, + 0xcf, 0x21, 0x4c, 0xfb, 0x3c, 0x29, 0x9d, 0xe8, 0x7d, 0x00, 0xd0, 0x9f, 0x15, 0xf4, 0xa7, 0xf0, + 0x62, 0x3a, 0x7d, 0xf0, 0x19, 0xe2, 0x07, 0xa3, 0x4c, 0xd7, 0x33, 0x2d, 0xcf, 0x14, 0x87, 0x42, + 0x48, 0xfd, 0xb7, 0x82, 0x8e, 0xf4, 0xdc, 0x8e, 0xe0, 0x4b, 0x3b, 0x2b, 0xf7, 0xe6, 0x76, 0xa9, + 0x74, 0xf9, 0x99, 0x75, 0xc0, 0xfa, 0x79, 0x61, 0xfd, 0x34, 0x7e, 0xb9, 0xd7, 0x89, 0xeb, 0x9a, + 0xb3, 0xda, 0xb5, 0xc7, 0xbf, 0xab, 0x7d, 0xdf, 0xac, 0xab, 0x7d, 0x8f, 0xd7, 0x55, 0xe5, 0xc9, + 0xba, 0xaa, 0xfc, 0xb6, 0xae, 0x2a, 0x5f, 0x3c, 0x55, 0xfb, 0x9e, 0x3c, 0x55, 0xfb, 0x7e, 0x7e, + 0xaa, 0xf6, 0xdd, 0xd4, 0x1b, 0xae, 0xff, 0x41, 0x7b, 0x29, 0xe0, 0x85, 0x14, 0xc7, 0xe9, 0xca, + 0x8a, 0xbb, 0xec, 0x5a, 0xcd, 0x30, 0x65, 0x98, 0xd4, 0xbf, 0xc7, 0x1c, 0xbe, 0x34, 0x24, 0xfe, + 0xcd, 0x77, 0xf2, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xf4, 0xc6, 0xfc, 0x04, 0x1a, 0x15, 0x00, + 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1180,12 +1196,12 @@ type QueryClient interface { QueryParams(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) QueryAppsMappings(ctx context.Context, in *QueryAppsRequest, opts ...grpc.CallOption) (*QueryAppsResponse, error) QueryAppMappings(ctx context.Context, in *QueryAppRequest, opts ...grpc.CallOption) (*QueryAppResponse, error) - QueryPairVault(ctx context.Context, in *QueryPairVaultRequest, opts ...grpc.CallOption) (*QueryPairVaultResponse, error) - QueryPairVaults(ctx context.Context, in *QueryPairVaultsRequest, opts ...grpc.CallOption) (*QueryPairVaultsResponse, error) - QueryProductToExtendedPair(ctx context.Context, in *QueryProductToExtendedPairRequest, opts ...grpc.CallOption) (*QueryProductToExtendedPairResponse, error) - QueryExtendedPairPsmPairWise(ctx context.Context, in *QueryExtendedPairPsmPairWiseRequest, opts ...grpc.CallOption) (*QueryExtendedPairPsmPairWiseResponse, error) - QueryTokenGov(ctx context.Context, in *QueryTokenGovRequest, opts ...grpc.CallOption) (*QueryTokenGovResponse, error) - QueryExtendedPairDataPsmPairWise(ctx context.Context, in *QueryExtendedPairDataPsmPairWiseRequest, opts ...grpc.CallOption) (*QueryExtendedPairDataPsmPairWiseResponse, error) + QueryExtendedPairVault(ctx context.Context, in *QueryExtendedPairVaultRequest, opts ...grpc.CallOption) (*QueryExtendedPairVaultResponse, error) + QueryAllExtendedPairVaults(ctx context.Context, in *QueryAllExtendedPairVaultsRequest, opts ...grpc.CallOption) (*QueryAllExtendedPairVaultsResponse, error) + QueryAllExtendedPairVaultsByApp(ctx context.Context, in *QueryAllExtendedPairVaultsByAppRequest, opts ...grpc.CallOption) (*QueryAllExtendedPairVaultsByAppResponse, error) + QueryAllExtendedPairStableVaultsIdByApp(ctx context.Context, in *QueryAllExtendedPairStableVaultsIdByAppRequest, opts ...grpc.CallOption) (*QueryAllExtendedPairStableVaultsIdByAppResponse, error) + QueryGovTokenByApp(ctx context.Context, in *QueryGovTokenByAppRequest, opts ...grpc.CallOption) (*QueryGovTokenByAppResponse, error) + QueryAllExtendedPairStableVaultsDataByApp(ctx context.Context, in *QueryAllExtendedPairStableVaultsDataByAppRequest, opts ...grpc.CallOption) (*QueryAllExtendedPairStableVaultsDataByAppResponse, error) } type queryClient struct { @@ -1259,54 +1275,54 @@ func (c *queryClient) QueryAppMappings(ctx context.Context, in *QueryAppRequest, return out, nil } -func (c *queryClient) QueryPairVault(ctx context.Context, in *QueryPairVaultRequest, opts ...grpc.CallOption) (*QueryPairVaultResponse, error) { - out := new(QueryPairVaultResponse) - err := c.cc.Invoke(ctx, "/comdex.asset.v1beta1.Query/QueryPairVault", in, out, opts...) +func (c *queryClient) QueryExtendedPairVault(ctx context.Context, in *QueryExtendedPairVaultRequest, opts ...grpc.CallOption) (*QueryExtendedPairVaultResponse, error) { + out := new(QueryExtendedPairVaultResponse) + err := c.cc.Invoke(ctx, "/comdex.asset.v1beta1.Query/QueryExtendedPairVault", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *queryClient) QueryPairVaults(ctx context.Context, in *QueryPairVaultsRequest, opts ...grpc.CallOption) (*QueryPairVaultsResponse, error) { - out := new(QueryPairVaultsResponse) - err := c.cc.Invoke(ctx, "/comdex.asset.v1beta1.Query/QueryPairVaults", in, out, opts...) +func (c *queryClient) QueryAllExtendedPairVaults(ctx context.Context, in *QueryAllExtendedPairVaultsRequest, opts ...grpc.CallOption) (*QueryAllExtendedPairVaultsResponse, error) { + out := new(QueryAllExtendedPairVaultsResponse) + err := c.cc.Invoke(ctx, "/comdex.asset.v1beta1.Query/QueryAllExtendedPairVaults", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *queryClient) QueryProductToExtendedPair(ctx context.Context, in *QueryProductToExtendedPairRequest, opts ...grpc.CallOption) (*QueryProductToExtendedPairResponse, error) { - out := new(QueryProductToExtendedPairResponse) - err := c.cc.Invoke(ctx, "/comdex.asset.v1beta1.Query/QueryProductToExtendedPair", in, out, opts...) +func (c *queryClient) QueryAllExtendedPairVaultsByApp(ctx context.Context, in *QueryAllExtendedPairVaultsByAppRequest, opts ...grpc.CallOption) (*QueryAllExtendedPairVaultsByAppResponse, error) { + out := new(QueryAllExtendedPairVaultsByAppResponse) + err := c.cc.Invoke(ctx, "/comdex.asset.v1beta1.Query/QueryAllExtendedPairVaultsByApp", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *queryClient) QueryExtendedPairPsmPairWise(ctx context.Context, in *QueryExtendedPairPsmPairWiseRequest, opts ...grpc.CallOption) (*QueryExtendedPairPsmPairWiseResponse, error) { - out := new(QueryExtendedPairPsmPairWiseResponse) - err := c.cc.Invoke(ctx, "/comdex.asset.v1beta1.Query/QueryExtendedPairPsmPairWise", in, out, opts...) +func (c *queryClient) QueryAllExtendedPairStableVaultsIdByApp(ctx context.Context, in *QueryAllExtendedPairStableVaultsIdByAppRequest, opts ...grpc.CallOption) (*QueryAllExtendedPairStableVaultsIdByAppResponse, error) { + out := new(QueryAllExtendedPairStableVaultsIdByAppResponse) + err := c.cc.Invoke(ctx, "/comdex.asset.v1beta1.Query/QueryAllExtendedPairStableVaultsIdByApp", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *queryClient) QueryTokenGov(ctx context.Context, in *QueryTokenGovRequest, opts ...grpc.CallOption) (*QueryTokenGovResponse, error) { - out := new(QueryTokenGovResponse) - err := c.cc.Invoke(ctx, "/comdex.asset.v1beta1.Query/QueryTokenGov", in, out, opts...) +func (c *queryClient) QueryGovTokenByApp(ctx context.Context, in *QueryGovTokenByAppRequest, opts ...grpc.CallOption) (*QueryGovTokenByAppResponse, error) { + out := new(QueryGovTokenByAppResponse) + err := c.cc.Invoke(ctx, "/comdex.asset.v1beta1.Query/QueryGovTokenByApp", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *queryClient) QueryExtendedPairDataPsmPairWise(ctx context.Context, in *QueryExtendedPairDataPsmPairWiseRequest, opts ...grpc.CallOption) (*QueryExtendedPairDataPsmPairWiseResponse, error) { - out := new(QueryExtendedPairDataPsmPairWiseResponse) - err := c.cc.Invoke(ctx, "/comdex.asset.v1beta1.Query/QueryExtendedPairDataPsmPairWise", in, out, opts...) +func (c *queryClient) QueryAllExtendedPairStableVaultsDataByApp(ctx context.Context, in *QueryAllExtendedPairStableVaultsDataByAppRequest, opts ...grpc.CallOption) (*QueryAllExtendedPairStableVaultsDataByAppResponse, error) { + out := new(QueryAllExtendedPairStableVaultsDataByAppResponse) + err := c.cc.Invoke(ctx, "/comdex.asset.v1beta1.Query/QueryAllExtendedPairStableVaultsDataByApp", in, out, opts...) if err != nil { return nil, err } @@ -1322,12 +1338,12 @@ type QueryServer interface { QueryParams(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) QueryAppsMappings(context.Context, *QueryAppsRequest) (*QueryAppsResponse, error) QueryAppMappings(context.Context, *QueryAppRequest) (*QueryAppResponse, error) - QueryPairVault(context.Context, *QueryPairVaultRequest) (*QueryPairVaultResponse, error) - QueryPairVaults(context.Context, *QueryPairVaultsRequest) (*QueryPairVaultsResponse, error) - QueryProductToExtendedPair(context.Context, *QueryProductToExtendedPairRequest) (*QueryProductToExtendedPairResponse, error) - QueryExtendedPairPsmPairWise(context.Context, *QueryExtendedPairPsmPairWiseRequest) (*QueryExtendedPairPsmPairWiseResponse, error) - QueryTokenGov(context.Context, *QueryTokenGovRequest) (*QueryTokenGovResponse, error) - QueryExtendedPairDataPsmPairWise(context.Context, *QueryExtendedPairDataPsmPairWiseRequest) (*QueryExtendedPairDataPsmPairWiseResponse, error) + QueryExtendedPairVault(context.Context, *QueryExtendedPairVaultRequest) (*QueryExtendedPairVaultResponse, error) + QueryAllExtendedPairVaults(context.Context, *QueryAllExtendedPairVaultsRequest) (*QueryAllExtendedPairVaultsResponse, error) + QueryAllExtendedPairVaultsByApp(context.Context, *QueryAllExtendedPairVaultsByAppRequest) (*QueryAllExtendedPairVaultsByAppResponse, error) + QueryAllExtendedPairStableVaultsIdByApp(context.Context, *QueryAllExtendedPairStableVaultsIdByAppRequest) (*QueryAllExtendedPairStableVaultsIdByAppResponse, error) + QueryGovTokenByApp(context.Context, *QueryGovTokenByAppRequest) (*QueryGovTokenByAppResponse, error) + QueryAllExtendedPairStableVaultsDataByApp(context.Context, *QueryAllExtendedPairStableVaultsDataByAppRequest) (*QueryAllExtendedPairStableVaultsDataByAppResponse, error) } // UnimplementedQueryServer can be embedded to have forward compatible implementations. @@ -1355,23 +1371,23 @@ func (*UnimplementedQueryServer) QueryAppsMappings(ctx context.Context, req *Que func (*UnimplementedQueryServer) QueryAppMappings(ctx context.Context, req *QueryAppRequest) (*QueryAppResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method QueryAppMappings not implemented") } -func (*UnimplementedQueryServer) QueryPairVault(ctx context.Context, req *QueryPairVaultRequest) (*QueryPairVaultResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method QueryPairVault not implemented") +func (*UnimplementedQueryServer) QueryExtendedPairVault(ctx context.Context, req *QueryExtendedPairVaultRequest) (*QueryExtendedPairVaultResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method QueryExtendedPairVault not implemented") } -func (*UnimplementedQueryServer) QueryPairVaults(ctx context.Context, req *QueryPairVaultsRequest) (*QueryPairVaultsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method QueryPairVaults not implemented") +func (*UnimplementedQueryServer) QueryAllExtendedPairVaults(ctx context.Context, req *QueryAllExtendedPairVaultsRequest) (*QueryAllExtendedPairVaultsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method QueryAllExtendedPairVaults not implemented") } -func (*UnimplementedQueryServer) QueryProductToExtendedPair(ctx context.Context, req *QueryProductToExtendedPairRequest) (*QueryProductToExtendedPairResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method QueryProductToExtendedPair not implemented") +func (*UnimplementedQueryServer) QueryAllExtendedPairVaultsByApp(ctx context.Context, req *QueryAllExtendedPairVaultsByAppRequest) (*QueryAllExtendedPairVaultsByAppResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method QueryAllExtendedPairVaultsByApp not implemented") } -func (*UnimplementedQueryServer) QueryExtendedPairPsmPairWise(ctx context.Context, req *QueryExtendedPairPsmPairWiseRequest) (*QueryExtendedPairPsmPairWiseResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method QueryExtendedPairPsmPairWise not implemented") +func (*UnimplementedQueryServer) QueryAllExtendedPairStableVaultsIdByApp(ctx context.Context, req *QueryAllExtendedPairStableVaultsIdByAppRequest) (*QueryAllExtendedPairStableVaultsIdByAppResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method QueryAllExtendedPairStableVaultsIdByApp not implemented") } -func (*UnimplementedQueryServer) QueryTokenGov(ctx context.Context, req *QueryTokenGovRequest) (*QueryTokenGovResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method QueryTokenGov not implemented") +func (*UnimplementedQueryServer) QueryGovTokenByApp(ctx context.Context, req *QueryGovTokenByAppRequest) (*QueryGovTokenByAppResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method QueryGovTokenByApp not implemented") } -func (*UnimplementedQueryServer) QueryExtendedPairDataPsmPairWise(ctx context.Context, req *QueryExtendedPairDataPsmPairWiseRequest) (*QueryExtendedPairDataPsmPairWiseResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method QueryExtendedPairDataPsmPairWise not implemented") +func (*UnimplementedQueryServer) QueryAllExtendedPairStableVaultsDataByApp(ctx context.Context, req *QueryAllExtendedPairStableVaultsDataByAppRequest) (*QueryAllExtendedPairStableVaultsDataByAppResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method QueryAllExtendedPairStableVaultsDataByApp not implemented") } func RegisterQueryServer(s grpc1.Server, srv QueryServer) { @@ -1504,110 +1520,110 @@ func _Query_QueryAppMappings_Handler(srv interface{}, ctx context.Context, dec f return interceptor(ctx, in, info, handler) } -func _Query_QueryPairVault_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryPairVaultRequest) +func _Query_QueryExtendedPairVault_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryExtendedPairVaultRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).QueryPairVault(ctx, in) + return srv.(QueryServer).QueryExtendedPairVault(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/comdex.asset.v1beta1.Query/QueryPairVault", + FullMethod: "/comdex.asset.v1beta1.Query/QueryExtendedPairVault", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).QueryPairVault(ctx, req.(*QueryPairVaultRequest)) + return srv.(QueryServer).QueryExtendedPairVault(ctx, req.(*QueryExtendedPairVaultRequest)) } return interceptor(ctx, in, info, handler) } -func _Query_QueryPairVaults_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryPairVaultsRequest) +func _Query_QueryAllExtendedPairVaults_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryAllExtendedPairVaultsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).QueryPairVaults(ctx, in) + return srv.(QueryServer).QueryAllExtendedPairVaults(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/comdex.asset.v1beta1.Query/QueryPairVaults", + FullMethod: "/comdex.asset.v1beta1.Query/QueryAllExtendedPairVaults", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).QueryPairVaults(ctx, req.(*QueryPairVaultsRequest)) + return srv.(QueryServer).QueryAllExtendedPairVaults(ctx, req.(*QueryAllExtendedPairVaultsRequest)) } return interceptor(ctx, in, info, handler) } -func _Query_QueryProductToExtendedPair_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryProductToExtendedPairRequest) +func _Query_QueryAllExtendedPairVaultsByApp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryAllExtendedPairVaultsByAppRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).QueryProductToExtendedPair(ctx, in) + return srv.(QueryServer).QueryAllExtendedPairVaultsByApp(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/comdex.asset.v1beta1.Query/QueryProductToExtendedPair", + FullMethod: "/comdex.asset.v1beta1.Query/QueryAllExtendedPairVaultsByApp", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).QueryProductToExtendedPair(ctx, req.(*QueryProductToExtendedPairRequest)) + return srv.(QueryServer).QueryAllExtendedPairVaultsByApp(ctx, req.(*QueryAllExtendedPairVaultsByAppRequest)) } return interceptor(ctx, in, info, handler) } -func _Query_QueryExtendedPairPsmPairWise_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryExtendedPairPsmPairWiseRequest) +func _Query_QueryAllExtendedPairStableVaultsIdByApp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryAllExtendedPairStableVaultsIdByAppRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).QueryExtendedPairPsmPairWise(ctx, in) + return srv.(QueryServer).QueryAllExtendedPairStableVaultsIdByApp(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/comdex.asset.v1beta1.Query/QueryExtendedPairPsmPairWise", + FullMethod: "/comdex.asset.v1beta1.Query/QueryAllExtendedPairStableVaultsIdByApp", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).QueryExtendedPairPsmPairWise(ctx, req.(*QueryExtendedPairPsmPairWiseRequest)) + return srv.(QueryServer).QueryAllExtendedPairStableVaultsIdByApp(ctx, req.(*QueryAllExtendedPairStableVaultsIdByAppRequest)) } return interceptor(ctx, in, info, handler) } -func _Query_QueryTokenGov_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryTokenGovRequest) +func _Query_QueryGovTokenByApp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryGovTokenByAppRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).QueryTokenGov(ctx, in) + return srv.(QueryServer).QueryGovTokenByApp(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/comdex.asset.v1beta1.Query/QueryTokenGov", + FullMethod: "/comdex.asset.v1beta1.Query/QueryGovTokenByApp", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).QueryTokenGov(ctx, req.(*QueryTokenGovRequest)) + return srv.(QueryServer).QueryGovTokenByApp(ctx, req.(*QueryGovTokenByAppRequest)) } return interceptor(ctx, in, info, handler) } -func _Query_QueryExtendedPairDataPsmPairWise_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryExtendedPairDataPsmPairWiseRequest) +func _Query_QueryAllExtendedPairStableVaultsDataByApp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryAllExtendedPairStableVaultsDataByAppRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).QueryExtendedPairDataPsmPairWise(ctx, in) + return srv.(QueryServer).QueryAllExtendedPairStableVaultsDataByApp(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/comdex.asset.v1beta1.Query/QueryExtendedPairDataPsmPairWise", + FullMethod: "/comdex.asset.v1beta1.Query/QueryAllExtendedPairStableVaultsDataByApp", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).QueryExtendedPairDataPsmPairWise(ctx, req.(*QueryExtendedPairDataPsmPairWiseRequest)) + return srv.(QueryServer).QueryAllExtendedPairStableVaultsDataByApp(ctx, req.(*QueryAllExtendedPairStableVaultsDataByAppRequest)) } return interceptor(ctx, in, info, handler) } @@ -1645,28 +1661,28 @@ var _Query_serviceDesc = grpc.ServiceDesc{ Handler: _Query_QueryAppMappings_Handler, }, { - MethodName: "QueryPairVault", - Handler: _Query_QueryPairVault_Handler, + MethodName: "QueryExtendedPairVault", + Handler: _Query_QueryExtendedPairVault_Handler, }, { - MethodName: "QueryPairVaults", - Handler: _Query_QueryPairVaults_Handler, + MethodName: "QueryAllExtendedPairVaults", + Handler: _Query_QueryAllExtendedPairVaults_Handler, }, { - MethodName: "QueryProductToExtendedPair", - Handler: _Query_QueryProductToExtendedPair_Handler, + MethodName: "QueryAllExtendedPairVaultsByApp", + Handler: _Query_QueryAllExtendedPairVaultsByApp_Handler, }, { - MethodName: "QueryExtendedPairPsmPairWise", - Handler: _Query_QueryExtendedPairPsmPairWise_Handler, + MethodName: "QueryAllExtendedPairStableVaultsIdByApp", + Handler: _Query_QueryAllExtendedPairStableVaultsIdByApp_Handler, }, { - MethodName: "QueryTokenGov", - Handler: _Query_QueryTokenGov_Handler, + MethodName: "QueryGovTokenByApp", + Handler: _Query_QueryGovTokenByApp_Handler, }, { - MethodName: "QueryExtendedPairDataPsmPairWise", - Handler: _Query_QueryExtendedPairDataPsmPairWise_Handler, + MethodName: "QueryAllExtendedPairStableVaultsDataByApp", + Handler: _Query_QueryAllExtendedPairStableVaultsDataByApp_Handler, }, }, Streams: []grpc.StreamDesc{}, @@ -2132,7 +2148,7 @@ func (m *QueryAppResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *QueryTokenGovRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryGovTokenByAppRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2142,12 +2158,12 @@ func (m *QueryTokenGovRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryTokenGovRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryGovTokenByAppRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryTokenGovRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryGovTokenByAppRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2160,7 +2176,7 @@ func (m *QueryTokenGovRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *QueryTokenGovResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryGovTokenByAppResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2170,12 +2186,12 @@ func (m *QueryTokenGovResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryTokenGovResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryGovTokenByAppResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryTokenGovResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryGovTokenByAppResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2248,7 +2264,7 @@ func (m *QueryAppsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *QueryPairVaultRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryExtendedPairVaultRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2258,12 +2274,12 @@ func (m *QueryPairVaultRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryPairVaultRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryExtendedPairVaultRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryPairVaultRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryExtendedPairVaultRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2276,7 +2292,7 @@ func (m *QueryPairVaultRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *QueryPairVaultResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryExtendedPairVaultResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2286,12 +2302,12 @@ func (m *QueryPairVaultResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryPairVaultResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryExtendedPairVaultResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryPairVaultResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryExtendedPairVaultResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2309,7 +2325,7 @@ func (m *QueryPairVaultResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *QueryPairVaultsRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryAllExtendedPairVaultsRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2319,12 +2335,12 @@ func (m *QueryPairVaultsRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryPairVaultsRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryAllExtendedPairVaultsRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryPairVaultsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryAllExtendedPairVaultsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2332,7 +2348,7 @@ func (m *QueryPairVaultsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *QueryPairVaultsResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryAllExtendedPairVaultsResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2342,12 +2358,12 @@ func (m *QueryPairVaultsResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryPairVaultsResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryAllExtendedPairVaultsResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryPairVaultsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryAllExtendedPairVaultsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2369,7 +2385,7 @@ func (m *QueryPairVaultsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *QueryProductToExtendedPairRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryAllExtendedPairVaultsByAppRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2379,25 +2395,25 @@ func (m *QueryProductToExtendedPairRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryProductToExtendedPairRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryAllExtendedPairVaultsByAppRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryProductToExtendedPairRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryAllExtendedPairVaultsByAppRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.ProductId != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.ProductId)) + if m.AppId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.AppId)) i-- dAtA[i] = 0x8 } return len(dAtA) - i, nil } -func (m *QueryProductToExtendedPairResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryAllExtendedPairVaultsByAppResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2407,12 +2423,12 @@ func (m *QueryProductToExtendedPairResponse) Marshal() (dAtA []byte, err error) return dAtA[:n], nil } -func (m *QueryProductToExtendedPairResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryAllExtendedPairVaultsByAppResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryProductToExtendedPairResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryAllExtendedPairVaultsByAppResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2434,7 +2450,7 @@ func (m *QueryProductToExtendedPairResponse) MarshalToSizedBuffer(dAtA []byte) ( return len(dAtA) - i, nil } -func (m *QueryExtendedPairPsmPairWiseRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryAllExtendedPairStableVaultsIdByAppRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2444,25 +2460,25 @@ func (m *QueryExtendedPairPsmPairWiseRequest) Marshal() (dAtA []byte, err error) return dAtA[:n], nil } -func (m *QueryExtendedPairPsmPairWiseRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryAllExtendedPairStableVaultsIdByAppRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryExtendedPairPsmPairWiseRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryAllExtendedPairStableVaultsIdByAppRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.ProductId != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.ProductId)) + if m.AppId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.AppId)) i-- dAtA[i] = 0x8 } return len(dAtA) - i, nil } -func (m *QueryExtendedPairPsmPairWiseResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryAllExtendedPairStableVaultsIdByAppResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2472,12 +2488,12 @@ func (m *QueryExtendedPairPsmPairWiseResponse) Marshal() (dAtA []byte, err error return dAtA[:n], nil } -func (m *QueryExtendedPairPsmPairWiseResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryAllExtendedPairStableVaultsIdByAppResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryExtendedPairPsmPairWiseResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryAllExtendedPairStableVaultsIdByAppResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2503,7 +2519,7 @@ func (m *QueryExtendedPairPsmPairWiseResponse) MarshalToSizedBuffer(dAtA []byte) return len(dAtA) - i, nil } -func (m *QueryExtendedPairDataPsmPairWiseRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryAllExtendedPairStableVaultsDataByAppRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2513,12 +2529,12 @@ func (m *QueryExtendedPairDataPsmPairWiseRequest) Marshal() (dAtA []byte, err er return dAtA[:n], nil } -func (m *QueryExtendedPairDataPsmPairWiseRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryAllExtendedPairStableVaultsDataByAppRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryExtendedPairDataPsmPairWiseRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryAllExtendedPairStableVaultsDataByAppRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2531,7 +2547,7 @@ func (m *QueryExtendedPairDataPsmPairWiseRequest) MarshalToSizedBuffer(dAtA []by return len(dAtA) - i, nil } -func (m *QueryExtendedPairDataPsmPairWiseResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryAllExtendedPairStableVaultsDataByAppResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2541,12 +2557,12 @@ func (m *QueryExtendedPairDataPsmPairWiseResponse) Marshal() (dAtA []byte, err e return dAtA[:n], nil } -func (m *QueryExtendedPairDataPsmPairWiseResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryAllExtendedPairStableVaultsDataByAppResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryExtendedPairDataPsmPairWiseResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryAllExtendedPairStableVaultsDataByAppResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2758,7 +2774,7 @@ func (m *QueryAppResponse) Size() (n int) { return n } -func (m *QueryTokenGovRequest) Size() (n int) { +func (m *QueryGovTokenByAppRequest) Size() (n int) { if m == nil { return 0 } @@ -2770,7 +2786,7 @@ func (m *QueryTokenGovRequest) Size() (n int) { return n } -func (m *QueryTokenGovResponse) Size() (n int) { +func (m *QueryGovTokenByAppResponse) Size() (n int) { if m == nil { return 0 } @@ -2806,7 +2822,7 @@ func (m *QueryAppsResponse) Size() (n int) { return n } -func (m *QueryPairVaultRequest) Size() (n int) { +func (m *QueryExtendedPairVaultRequest) Size() (n int) { if m == nil { return 0 } @@ -2818,7 +2834,7 @@ func (m *QueryPairVaultRequest) Size() (n int) { return n } -func (m *QueryPairVaultResponse) Size() (n int) { +func (m *QueryExtendedPairVaultResponse) Size() (n int) { if m == nil { return 0 } @@ -2829,7 +2845,7 @@ func (m *QueryPairVaultResponse) Size() (n int) { return n } -func (m *QueryPairVaultsRequest) Size() (n int) { +func (m *QueryAllExtendedPairVaultsRequest) Size() (n int) { if m == nil { return 0 } @@ -2838,7 +2854,7 @@ func (m *QueryPairVaultsRequest) Size() (n int) { return n } -func (m *QueryPairVaultsResponse) Size() (n int) { +func (m *QueryAllExtendedPairVaultsResponse) Size() (n int) { if m == nil { return 0 } @@ -2853,19 +2869,19 @@ func (m *QueryPairVaultsResponse) Size() (n int) { return n } -func (m *QueryProductToExtendedPairRequest) Size() (n int) { +func (m *QueryAllExtendedPairVaultsByAppRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.ProductId != 0 { - n += 1 + sovQuery(uint64(m.ProductId)) + if m.AppId != 0 { + n += 1 + sovQuery(uint64(m.AppId)) } return n } -func (m *QueryProductToExtendedPairResponse) Size() (n int) { +func (m *QueryAllExtendedPairVaultsByAppResponse) Size() (n int) { if m == nil { return 0 } @@ -2880,19 +2896,19 @@ func (m *QueryProductToExtendedPairResponse) Size() (n int) { return n } -func (m *QueryExtendedPairPsmPairWiseRequest) Size() (n int) { +func (m *QueryAllExtendedPairStableVaultsIdByAppRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.ProductId != 0 { - n += 1 + sovQuery(uint64(m.ProductId)) + if m.AppId != 0 { + n += 1 + sovQuery(uint64(m.AppId)) } return n } -func (m *QueryExtendedPairPsmPairWiseResponse) Size() (n int) { +func (m *QueryAllExtendedPairStableVaultsIdByAppResponse) Size() (n int) { if m == nil { return 0 } @@ -2908,7 +2924,7 @@ func (m *QueryExtendedPairPsmPairWiseResponse) Size() (n int) { return n } -func (m *QueryExtendedPairDataPsmPairWiseRequest) Size() (n int) { +func (m *QueryAllExtendedPairStableVaultsDataByAppRequest) Size() (n int) { if m == nil { return 0 } @@ -2920,7 +2936,7 @@ func (m *QueryExtendedPairDataPsmPairWiseRequest) Size() (n int) { return n } -func (m *QueryExtendedPairDataPsmPairWiseResponse) Size() (n int) { +func (m *QueryAllExtendedPairStableVaultsDataByAppResponse) Size() (n int) { if m == nil { return 0 } @@ -4113,7 +4129,7 @@ func (m *QueryAppResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryTokenGovRequest) Unmarshal(dAtA []byte) error { +func (m *QueryGovTokenByAppRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4136,10 +4152,10 @@ func (m *QueryTokenGovRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryTokenGovRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryGovTokenByAppRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryTokenGovRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryGovTokenByAppRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -4182,7 +4198,7 @@ func (m *QueryTokenGovRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryTokenGovResponse) Unmarshal(dAtA []byte) error { +func (m *QueryGovTokenByAppResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4205,10 +4221,10 @@ func (m *QueryTokenGovResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryTokenGovResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryGovTokenByAppResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryTokenGovResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryGovTokenByAppResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -4385,7 +4401,7 @@ func (m *QueryAppsResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryPairVaultRequest) Unmarshal(dAtA []byte) error { +func (m *QueryExtendedPairVaultRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4408,10 +4424,10 @@ func (m *QueryPairVaultRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryPairVaultRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryExtendedPairVaultRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryPairVaultRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryExtendedPairVaultRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -4454,7 +4470,7 @@ func (m *QueryPairVaultRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryPairVaultResponse) Unmarshal(dAtA []byte) error { +func (m *QueryExtendedPairVaultResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4477,10 +4493,10 @@ func (m *QueryPairVaultResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryPairVaultResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryExtendedPairVaultResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryPairVaultResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryExtendedPairVaultResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -4537,7 +4553,7 @@ func (m *QueryPairVaultResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryPairVaultsRequest) Unmarshal(dAtA []byte) error { +func (m *QueryAllExtendedPairVaultsRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4560,10 +4576,10 @@ func (m *QueryPairVaultsRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryPairVaultsRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryAllExtendedPairVaultsRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryPairVaultsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryAllExtendedPairVaultsRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -4587,7 +4603,7 @@ func (m *QueryPairVaultsRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryPairVaultsResponse) Unmarshal(dAtA []byte) error { +func (m *QueryAllExtendedPairVaultsResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4610,10 +4626,10 @@ func (m *QueryPairVaultsResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryPairVaultsResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryAllExtendedPairVaultsResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryPairVaultsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryAllExtendedPairVaultsResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -4671,7 +4687,7 @@ func (m *QueryPairVaultsResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryProductToExtendedPairRequest) Unmarshal(dAtA []byte) error { +func (m *QueryAllExtendedPairVaultsByAppRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4694,17 +4710,17 @@ func (m *QueryProductToExtendedPairRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryProductToExtendedPairRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryAllExtendedPairVaultsByAppRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryProductToExtendedPairRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryAllExtendedPairVaultsByAppRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ProductId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AppId", wireType) } - m.ProductId = 0 + m.AppId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -4714,7 +4730,7 @@ func (m *QueryProductToExtendedPairRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ProductId |= uint64(b&0x7F) << shift + m.AppId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4740,7 +4756,7 @@ func (m *QueryProductToExtendedPairRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryProductToExtendedPairResponse) Unmarshal(dAtA []byte) error { +func (m *QueryAllExtendedPairVaultsByAppResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4763,10 +4779,10 @@ func (m *QueryProductToExtendedPairResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryProductToExtendedPairResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryAllExtendedPairVaultsByAppResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryProductToExtendedPairResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryAllExtendedPairVaultsByAppResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -4824,7 +4840,7 @@ func (m *QueryProductToExtendedPairResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryExtendedPairPsmPairWiseRequest) Unmarshal(dAtA []byte) error { +func (m *QueryAllExtendedPairStableVaultsIdByAppRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4847,17 +4863,17 @@ func (m *QueryExtendedPairPsmPairWiseRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryExtendedPairPsmPairWiseRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryAllExtendedPairStableVaultsIdByAppRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryExtendedPairPsmPairWiseRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryAllExtendedPairStableVaultsIdByAppRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ProductId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AppId", wireType) } - m.ProductId = 0 + m.AppId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -4867,7 +4883,7 @@ func (m *QueryExtendedPairPsmPairWiseRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ProductId |= uint64(b&0x7F) << shift + m.AppId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4893,7 +4909,7 @@ func (m *QueryExtendedPairPsmPairWiseRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryExtendedPairPsmPairWiseResponse) Unmarshal(dAtA []byte) error { +func (m *QueryAllExtendedPairStableVaultsIdByAppResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4916,10 +4932,10 @@ func (m *QueryExtendedPairPsmPairWiseResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryExtendedPairPsmPairWiseResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryAllExtendedPairStableVaultsIdByAppResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryExtendedPairPsmPairWiseResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryAllExtendedPairStableVaultsIdByAppResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -5019,7 +5035,7 @@ func (m *QueryExtendedPairPsmPairWiseResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryExtendedPairDataPsmPairWiseRequest) Unmarshal(dAtA []byte) error { +func (m *QueryAllExtendedPairStableVaultsDataByAppRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5042,10 +5058,10 @@ func (m *QueryExtendedPairDataPsmPairWiseRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryExtendedPairDataPsmPairWiseRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryAllExtendedPairStableVaultsDataByAppRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryExtendedPairDataPsmPairWiseRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryAllExtendedPairStableVaultsDataByAppRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -5088,7 +5104,7 @@ func (m *QueryExtendedPairDataPsmPairWiseRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryExtendedPairDataPsmPairWiseResponse) Unmarshal(dAtA []byte) error { +func (m *QueryAllExtendedPairStableVaultsDataByAppResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5111,10 +5127,10 @@ func (m *QueryExtendedPairDataPsmPairWiseResponse) Unmarshal(dAtA []byte) error fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryExtendedPairDataPsmPairWiseResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryAllExtendedPairStableVaultsDataByAppResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryExtendedPairDataPsmPairWiseResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryAllExtendedPairStableVaultsDataByAppResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: diff --git a/x/asset/types/query.pb.gw.go b/x/asset/types/query.pb.gw.go index 4601d724f..15774565f 100644 --- a/x/asset/types/query.pb.gw.go +++ b/x/asset/types/query.pb.gw.go @@ -303,8 +303,8 @@ func local_request_Query_QueryAppMappings_0(ctx context.Context, marshaler runti } -func request_Query_QueryPairVault_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryPairVaultRequest +func request_Query_QueryExtendedPairVault_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryExtendedPairVaultRequest var metadata runtime.ServerMetadata var ( @@ -325,13 +325,13 @@ func request_Query_QueryPairVault_0(ctx context.Context, marshaler runtime.Marsh return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) } - msg, err := client.QueryPairVault(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.QueryExtendedPairVault(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_Query_QueryPairVault_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryPairVaultRequest +func local_request_Query_QueryExtendedPairVault_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryExtendedPairVaultRequest var metadata runtime.ServerMetadata var ( @@ -352,31 +352,31 @@ func local_request_Query_QueryPairVault_0(ctx context.Context, marshaler runtime return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) } - msg, err := server.QueryPairVault(ctx, &protoReq) + msg, err := server.QueryExtendedPairVault(ctx, &protoReq) return msg, metadata, err } -func request_Query_QueryPairVaults_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryPairVaultsRequest +func request_Query_QueryAllExtendedPairVaults_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAllExtendedPairVaultsRequest var metadata runtime.ServerMetadata - msg, err := client.QueryPairVaults(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.QueryAllExtendedPairVaults(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_Query_QueryPairVaults_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryPairVaultsRequest +func local_request_Query_QueryAllExtendedPairVaults_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAllExtendedPairVaultsRequest var metadata runtime.ServerMetadata - msg, err := server.QueryPairVaults(ctx, &protoReq) + msg, err := server.QueryAllExtendedPairVaults(ctx, &protoReq) return msg, metadata, err } -func request_Query_QueryProductToExtendedPair_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryProductToExtendedPairRequest +func request_Query_QueryAllExtendedPairVaultsByApp_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAllExtendedPairVaultsByAppRequest var metadata runtime.ServerMetadata var ( @@ -386,24 +386,24 @@ func request_Query_QueryProductToExtendedPair_0(ctx context.Context, marshaler r _ = err ) - val, ok = pathParams["product_id"] + val, ok = pathParams["app_id"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "product_id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "app_id") } - protoReq.ProductId, err = runtime.Uint64(val) + protoReq.AppId, err = runtime.Uint64(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "product_id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "app_id", err) } - msg, err := client.QueryProductToExtendedPair(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.QueryAllExtendedPairVaultsByApp(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_Query_QueryProductToExtendedPair_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryProductToExtendedPairRequest +func local_request_Query_QueryAllExtendedPairVaultsByApp_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAllExtendedPairVaultsByAppRequest var metadata runtime.ServerMetadata var ( @@ -413,24 +413,24 @@ func local_request_Query_QueryProductToExtendedPair_0(ctx context.Context, marsh _ = err ) - val, ok = pathParams["product_id"] + val, ok = pathParams["app_id"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "product_id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "app_id") } - protoReq.ProductId, err = runtime.Uint64(val) + protoReq.AppId, err = runtime.Uint64(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "product_id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "app_id", err) } - msg, err := server.QueryProductToExtendedPair(ctx, &protoReq) + msg, err := server.QueryAllExtendedPairVaultsByApp(ctx, &protoReq) return msg, metadata, err } -func request_Query_QueryExtendedPairPsmPairWise_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryExtendedPairPsmPairWiseRequest +func request_Query_QueryAllExtendedPairStableVaultsIdByApp_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAllExtendedPairStableVaultsIdByAppRequest var metadata runtime.ServerMetadata var ( @@ -440,24 +440,24 @@ func request_Query_QueryExtendedPairPsmPairWise_0(ctx context.Context, marshaler _ = err ) - val, ok = pathParams["product_id"] + val, ok = pathParams["app_id"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "product_id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "app_id") } - protoReq.ProductId, err = runtime.Uint64(val) + protoReq.AppId, err = runtime.Uint64(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "product_id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "app_id", err) } - msg, err := client.QueryExtendedPairPsmPairWise(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.QueryAllExtendedPairStableVaultsIdByApp(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_Query_QueryExtendedPairPsmPairWise_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryExtendedPairPsmPairWiseRequest +func local_request_Query_QueryAllExtendedPairStableVaultsIdByApp_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAllExtendedPairStableVaultsIdByAppRequest var metadata runtime.ServerMetadata var ( @@ -467,24 +467,24 @@ func local_request_Query_QueryExtendedPairPsmPairWise_0(ctx context.Context, mar _ = err ) - val, ok = pathParams["product_id"] + val, ok = pathParams["app_id"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "product_id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "app_id") } - protoReq.ProductId, err = runtime.Uint64(val) + protoReq.AppId, err = runtime.Uint64(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "product_id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "app_id", err) } - msg, err := server.QueryExtendedPairPsmPairWise(ctx, &protoReq) + msg, err := server.QueryAllExtendedPairStableVaultsIdByApp(ctx, &protoReq) return msg, metadata, err } -func request_Query_QueryTokenGov_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryTokenGovRequest +func request_Query_QueryGovTokenByApp_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryGovTokenByAppRequest var metadata runtime.ServerMetadata var ( @@ -505,13 +505,13 @@ func request_Query_QueryTokenGov_0(ctx context.Context, marshaler runtime.Marsha return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "app_id", err) } - msg, err := client.QueryTokenGov(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.QueryGovTokenByApp(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_Query_QueryTokenGov_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryTokenGovRequest +func local_request_Query_QueryGovTokenByApp_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryGovTokenByAppRequest var metadata runtime.ServerMetadata var ( @@ -532,13 +532,13 @@ func local_request_Query_QueryTokenGov_0(ctx context.Context, marshaler runtime. return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "app_id", err) } - msg, err := server.QueryTokenGov(ctx, &protoReq) + msg, err := server.QueryGovTokenByApp(ctx, &protoReq) return msg, metadata, err } -func request_Query_QueryExtendedPairDataPsmPairWise_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryExtendedPairDataPsmPairWiseRequest +func request_Query_QueryAllExtendedPairStableVaultsDataByApp_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAllExtendedPairStableVaultsDataByAppRequest var metadata runtime.ServerMetadata var ( @@ -559,13 +559,13 @@ func request_Query_QueryExtendedPairDataPsmPairWise_0(ctx context.Context, marsh return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "app_id", err) } - msg, err := client.QueryExtendedPairDataPsmPairWise(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.QueryAllExtendedPairStableVaultsDataByApp(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_Query_QueryExtendedPairDataPsmPairWise_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryExtendedPairDataPsmPairWiseRequest +func local_request_Query_QueryAllExtendedPairStableVaultsDataByApp_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAllExtendedPairStableVaultsDataByAppRequest var metadata runtime.ServerMetadata var ( @@ -586,7 +586,7 @@ func local_request_Query_QueryExtendedPairDataPsmPairWise_0(ctx context.Context, return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "app_id", err) } - msg, err := server.QueryExtendedPairDataPsmPairWise(ctx, &protoReq) + msg, err := server.QueryAllExtendedPairStableVaultsDataByApp(ctx, &protoReq) return msg, metadata, err } @@ -758,7 +758,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) - mux.Handle("GET", pattern_Query_QueryPairVault_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_QueryExtendedPairVault_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -769,7 +769,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_QueryPairVault_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_QueryExtendedPairVault_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -777,11 +777,11 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_QueryPairVault_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_QueryExtendedPairVault_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_QueryPairVaults_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_QueryAllExtendedPairVaults_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -792,7 +792,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_QueryPairVaults_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_QueryAllExtendedPairVaults_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -800,11 +800,11 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_QueryPairVaults_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_QueryAllExtendedPairVaults_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_QueryProductToExtendedPair_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_QueryAllExtendedPairVaultsByApp_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -815,7 +815,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_QueryProductToExtendedPair_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_QueryAllExtendedPairVaultsByApp_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -823,11 +823,11 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_QueryProductToExtendedPair_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_QueryAllExtendedPairVaultsByApp_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_QueryExtendedPairPsmPairWise_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_QueryAllExtendedPairStableVaultsIdByApp_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -838,7 +838,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_QueryExtendedPairPsmPairWise_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_QueryAllExtendedPairStableVaultsIdByApp_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -846,11 +846,11 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_QueryExtendedPairPsmPairWise_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_QueryAllExtendedPairStableVaultsIdByApp_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_QueryTokenGov_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_QueryGovTokenByApp_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -861,7 +861,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_QueryTokenGov_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_QueryGovTokenByApp_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -869,11 +869,11 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_QueryTokenGov_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_QueryGovTokenByApp_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_QueryExtendedPairDataPsmPairWise_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_QueryAllExtendedPairStableVaultsDataByApp_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -884,7 +884,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_QueryExtendedPairDataPsmPairWise_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_QueryAllExtendedPairStableVaultsDataByApp_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -892,7 +892,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_QueryExtendedPairDataPsmPairWise_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_QueryAllExtendedPairStableVaultsDataByApp_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -1077,7 +1077,7 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) - mux.Handle("GET", pattern_Query_QueryPairVault_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_QueryExtendedPairVault_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) @@ -1086,18 +1086,18 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Query_QueryPairVault_0(rctx, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Query_QueryExtendedPairVault_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_QueryPairVault_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_QueryExtendedPairVault_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_QueryPairVaults_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_QueryAllExtendedPairVaults_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) @@ -1106,18 +1106,18 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Query_QueryPairVaults_0(rctx, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Query_QueryAllExtendedPairVaults_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_QueryPairVaults_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_QueryAllExtendedPairVaults_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_QueryProductToExtendedPair_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_QueryAllExtendedPairVaultsByApp_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) @@ -1126,18 +1126,18 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Query_QueryProductToExtendedPair_0(rctx, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Query_QueryAllExtendedPairVaultsByApp_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_QueryProductToExtendedPair_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_QueryAllExtendedPairVaultsByApp_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_QueryExtendedPairPsmPairWise_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_QueryAllExtendedPairStableVaultsIdByApp_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) @@ -1146,18 +1146,18 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Query_QueryExtendedPairPsmPairWise_0(rctx, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Query_QueryAllExtendedPairStableVaultsIdByApp_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_QueryExtendedPairPsmPairWise_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_QueryAllExtendedPairStableVaultsIdByApp_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_QueryTokenGov_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_QueryGovTokenByApp_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) @@ -1166,18 +1166,18 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Query_QueryTokenGov_0(rctx, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Query_QueryGovTokenByApp_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_QueryTokenGov_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_QueryGovTokenByApp_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_QueryExtendedPairDataPsmPairWise_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_QueryAllExtendedPairStableVaultsDataByApp_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) @@ -1186,14 +1186,14 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Query_QueryExtendedPairDataPsmPairWise_0(rctx, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Query_QueryAllExtendedPairStableVaultsDataByApp_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_QueryExtendedPairDataPsmPairWise_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_QueryAllExtendedPairStableVaultsDataByApp_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -1215,17 +1215,17 @@ var ( pattern_Query_QueryAppMappings_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"comdex", "asset", "v1beta1", "app", "id"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_QueryPairVault_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"comdex", "asset", "v1beta1", "pairVault", "id"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_QueryExtendedPairVault_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"comdex", "asset", "v1beta1", "extended_pair_vault", "id"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_QueryPairVaults_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"comdex", "asset", "v1beta1", "pairVaults"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_QueryAllExtendedPairVaults_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"comdex", "asset", "v1beta1", "extended_pair_vaults"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_QueryProductToExtendedPair_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"comdex", "asset", "v1beta1", "product_to_extended_pair", "product_id"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_QueryAllExtendedPairVaultsByApp_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"comdex", "asset", "v1beta1", "product_to_extended_pair", "app_id"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_QueryExtendedPairPsmPairWise_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"comdex", "asset", "v1beta1", "extended_pair_psm_pair_wise", "product_id"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_QueryAllExtendedPairStableVaultsIdByApp_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"comdex", "asset", "v1beta1", "extended_pair_psm_pair_wise", "app_id"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_QueryTokenGov_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"comdex", "asset", "v1beta1", "check_for_token_gov", "app_id"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_QueryGovTokenByApp_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"comdex", "asset", "v1beta1", "gov_token_in_an_app", "app_id"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_QueryExtendedPairDataPsmPairWise_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"comdex", "asset", "v1beta1", "extended_pair_psm_wise", "app_id"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_QueryAllExtendedPairStableVaultsDataByApp_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"comdex", "asset", "v1beta1", "extended_pair_psm_wise", "app_id"}, "", runtime.AssumeColonVerbOpt(false))) ) var ( @@ -1243,15 +1243,15 @@ var ( forward_Query_QueryAppMappings_0 = runtime.ForwardResponseMessage - forward_Query_QueryPairVault_0 = runtime.ForwardResponseMessage + forward_Query_QueryExtendedPairVault_0 = runtime.ForwardResponseMessage - forward_Query_QueryPairVaults_0 = runtime.ForwardResponseMessage + forward_Query_QueryAllExtendedPairVaults_0 = runtime.ForwardResponseMessage - forward_Query_QueryProductToExtendedPair_0 = runtime.ForwardResponseMessage + forward_Query_QueryAllExtendedPairVaultsByApp_0 = runtime.ForwardResponseMessage - forward_Query_QueryExtendedPairPsmPairWise_0 = runtime.ForwardResponseMessage + forward_Query_QueryAllExtendedPairStableVaultsIdByApp_0 = runtime.ForwardResponseMessage - forward_Query_QueryTokenGov_0 = runtime.ForwardResponseMessage + forward_Query_QueryGovTokenByApp_0 = runtime.ForwardResponseMessage - forward_Query_QueryExtendedPairDataPsmPairWise_0 = runtime.ForwardResponseMessage + forward_Query_QueryAllExtendedPairStableVaultsDataByApp_0 = runtime.ForwardResponseMessage ) diff --git a/x/liquidation/keeper/liquidate_vaults.go b/x/liquidation/keeper/liquidate_vaults.go index 54cba6830..0ce244408 100644 --- a/x/liquidation/keeper/liquidate_vaults.go +++ b/x/liquidation/keeper/liquidate_vaults.go @@ -27,7 +27,7 @@ func (k Keeper) LiquidateVaults(ctx sdk.Context) error { extPair, _ := k.GetPairsVault(ctx, vault.ExtendedPairVaultID) - liqRatio := extPair.LiquidationRatio + liqRatio := extPair.MinCr totalOut := vault.AmountOut.Add(vault.InterestAccumulated).Add(vault.ClosingFeeAccumulated) collateralitzationRatio, err := k.CalculateCollaterlizationRatio(ctx, vault.ExtendedPairVaultID, vault.AmountIn, totalOut) if err != nil { diff --git a/x/vault/keeper/msg_server.go b/x/vault/keeper/msg_server.go index 4f0bca6a8..effb6fac9 100644 --- a/x/vault/keeper/msg_server.go +++ b/x/vault/keeper/msg_server.go @@ -61,7 +61,7 @@ func (k *msgServer) MsgCreate(c context.Context, msg *types.MsgCreateRequest) (* } // Checking if this is a stableMint pair or not -- stableMintPair == psmPair - if extendedPairVault.IsPsmPair { + if extendedPairVault.IsStableMintVault { return nil, types.ErrorCannotCreateStableMintVault } //Checking @@ -741,7 +741,7 @@ func (k *msgServer) MsgCreateStableMint(c context.Context, msg *types.MsgCreateS } // Checking if this is a stableMint pair or not -- stableMintPair == psmPair - if !extendedPairVault.IsPsmPair { + if !extendedPairVault.IsStableMintVault { return nil, types.ErrorCannotCreateStableMintVault } //Checking @@ -848,7 +848,7 @@ func (k *msgServer) MsgDepositStableMint(c context.Context, msg *types.MsgDeposi if !extendedPairVault.IsVaultActive { return nil, types.ErrorVaultInactive } - if !extendedPairVault.IsPsmPair { + if !extendedPairVault.IsStableMintVault { return nil, types.ErrorCannotCreateStableMintVault } //Checking if the appMapping_id in the msg_create & extendedPairVault_are same or not @@ -963,7 +963,7 @@ func (k *msgServer) MsgWithdrawStableMint(c context.Context, msg *types.MsgWithd if !extendedPairVault.IsVaultActive { return nil, types.ErrorVaultInactive } - if !extendedPairVault.IsPsmPair { + if !extendedPairVault.IsStableMintVault { return nil, types.ErrorCannotCreateStableMintVault } //Checking if the appMapping_id in the msg_create & extendedPairVault_are same or not From 5597c1dcaaf7d091022eaeb09a704bc057cbbde7 Mon Sep 17 00:00:00 2001 From: Chandragupta Singh Date: Tue, 28 Jun 2022 04:05:23 +0530 Subject: [PATCH 2/5] asset refactor --- x/asset/keeper/app_mapping.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/asset/keeper/app_mapping.go b/x/asset/keeper/app_mapping.go index 7b81f22dd..f73181ffe 100644 --- a/x/asset/keeper/app_mapping.go +++ b/x/asset/keeper/app_mapping.go @@ -262,7 +262,7 @@ func (k *Keeper) AddAssetMappingRecords(ctx sdk.Context, records ...types.AppMap return types.ErrorGenesisTokenExistForApp } - if appdata.MinGovDeposit.Equal(sdk.ZeroInt()) { + if data.IsGovToken && appdata.MinGovDeposit.Equal(sdk.ZeroInt()) { return types.ErrorMinGovDepositIsZero } From c3d7f700ab7e93309e3bf5b1c5c4d3e2bb12d999 Mon Sep 17 00:00:00 2001 From: Chandragupta Singh Date: Wed, 29 Jun 2022 03:09:06 +0530 Subject: [PATCH 3/5] asset,vault refactor --- proto/comdex/asset/v1beta1/query.proto | 4 +- proto/comdex/vault/v1beta1/query.proto | 168 +- proto/comdex/vault/v1beta1/tx.proto | 18 +- x/asset/client/cli/flags.go | 2 +- x/asset/client/cli/query.go | 8 +- x/asset/client/cli/tx.go | 6 +- x/asset/types/query.pb.go | 179 +- x/asset/types/query.pb.gw.go | 4 +- x/vault/client/cli/query.go | 277 +-- x/vault/keeper/msg_server.go | 18 +- x/vault/keeper/query_server.go | 207 +- x/vault/keeper/vault.go | 20 +- x/vault/types/msg.go | 36 +- x/vault/types/query.pb.go | 3184 +++++++++--------------- x/vault/types/query.pb.gw.go | 876 +++---- x/vault/types/tx.pb.go | 249 +- 16 files changed, 1996 insertions(+), 3260 deletions(-) diff --git a/proto/comdex/asset/v1beta1/query.proto b/proto/comdex/asset/v1beta1/query.proto index 0bc7652aa..58f26cdf8 100644 --- a/proto/comdex/asset/v1beta1/query.proto +++ b/proto/comdex/asset/v1beta1/query.proto @@ -184,13 +184,13 @@ service Query { option (google.api.http).get = "/comdex/asset/v1beta1/product_to_extended_pair/{app_id}"; } rpc QueryAllExtendedPairStableVaultsIdByApp(QueryAllExtendedPairStableVaultsIdByAppRequest) returns (QueryAllExtendedPairStableVaultsIdByAppResponse) { - option (google.api.http).get = "/comdex/asset/v1beta1/extended_pair_psm_pair_wise/{app_id}"; + option (google.api.http).get = "/comdex/asset/v1beta1/extended_pair_stable_vault_wise/{app_id}"; } rpc QueryGovTokenByApp(QueryGovTokenByAppRequest) returns (QueryGovTokenByAppResponse) { option (google.api.http).get = "/comdex/asset/v1beta1/gov_token_in_an_app/{app_id}"; } rpc QueryAllExtendedPairStableVaultsDataByApp(QueryAllExtendedPairStableVaultsDataByAppRequest) returns (QueryAllExtendedPairStableVaultsDataByAppResponse) { - option (google.api.http).get = "/comdex/asset/v1beta1/extended_pair_psm_wise/{app_id}"; + option (google.api.http).get = "/comdex/asset/v1beta1/extended_pair_stable_vault_wise/{app_id}"; } } diff --git a/proto/comdex/vault/v1beta1/query.proto b/proto/comdex/vault/v1beta1/query.proto index 224a95b26..b1101c458 100644 --- a/proto/comdex/vault/v1beta1/query.proto +++ b/proto/comdex/vault/v1beta1/query.proto @@ -62,11 +62,11 @@ message QueryVaultResponse { ]; } -message QueryVaultInfoRequest { +message QueryVaultInfoByVaultIdRequest { string id = 1 [ (gogoproto.moretags) = "yaml:\"id\"" ]; } -message QueryVaultInfoResponse { +message QueryVaultInfoByVaultIdResponse { VaultInfo vaultsInfo = 1 [ (gogoproto.customname) = "VaultsInfo", (gogoproto.moretags) = "yaml:\"vaultsInfo\"", @@ -74,12 +74,12 @@ message QueryVaultInfoResponse { ]; } -message QueryVaultInfoByAppByOwnerRequest { +message QueryVaultInfoOfOwnerByAppRequest { uint64 app_id = 1 [ (gogoproto.moretags) = "yaml:\"app_id\"" ]; string owner = 2 [ (gogoproto.moretags) = "yaml:\"owner\"" ]; } -message QueryVaultInfoByAppByOwnerResponse { +message QueryVaultInfoOfOwnerByAppResponse { repeated VaultInfo vaultsInfo = 1 [ (gogoproto.customname) = "VaultsInfo", (gogoproto.moretags) = "yaml:\"vaultsInfo\"", @@ -103,11 +103,11 @@ message QueryAllVaultsResponse { [ (gogoproto.moretags) = "yaml:\"pagination\"" ]; } -message QueryAllVaultsByProductRequest { +message QueryAllVaultsByAppRequest { uint64 app_id = 1 [ (gogoproto.moretags) = "yaml:\"app_id\"" ]; } -message QueryAllVaultsByProductResponse { +message QueryAllVaultsByAppResponse { repeated Vault vault = 1 [ (gogoproto.moretags) = "yaml:\"vault\"", (gogoproto.nullable) = false @@ -132,131 +132,131 @@ message QueryAllVaultsByAppAndExtendedPairResponse { [ (gogoproto.moretags) = "yaml:\"pagination\"" ]; } -message QueryVaultOfOwnerByExtendedPairRequest { - uint64 product_id = 1 [ (gogoproto.moretags) = "yaml:\"product_id\"" ]; +message QueryVaultIdOfOwnerByExtendedPairAndAppRequest { + uint64 app_id = 1 [ (gogoproto.moretags) = "yaml:\"app_id\"" ]; string owner = 2 [ (gogoproto.moretags) = "yaml:\"owner\"" ]; uint64 extended_pair_id = 3 [ (gogoproto.moretags) = "yaml:\"extended_pair_id\"" ]; cosmos.base.query.v1beta1.PageRequest pagination = 4 [ (gogoproto.moretags) = "yaml:\"pagination\"" ]; } -message QueryVaultOfOwnerByExtendedPairResponse { +message QueryVaultIdOfOwnerByExtendedPairAndAppResponse { string vault_Id = 1 [ (gogoproto.moretags) = "yaml:\"vault_Id\"" ]; } -message QueryVaultByProductRequest { - uint64 product_id = 1 [ (gogoproto.moretags) = "yaml:\"product_id\"" ]; +message QueryVaultIdsByAppInAllExtendedPairsRequest { + uint64 app_id = 1 [ (gogoproto.moretags) = "yaml:\"app_id\"" ]; cosmos.base.query.v1beta1.PageRequest pagination = 2 [ (gogoproto.moretags) = "yaml:\"pagination\"" ]; } -message QueryVaultByProductResponse { +message QueryVaultIdsByAppInAllExtendedPairsResponse { repeated string vault_ids = 1 [ (gogoproto.moretags) = "yaml:\"vault_ids\"" ]; } -message QueryAllVaultByOwnerRequest { +message QueryAllVaultIdsByAnOwnerRequest { string owner = 1 [ (gogoproto.moretags) = "yaml:\"owner\"" ]; cosmos.base.query.v1beta1.PageRequest pagination = 2 [ (gogoproto.moretags) = "yaml:\"pagination\"" ]; } -message QueryAllVaultByOwnerResponse { +message QueryAllVaultIdsByAnOwnerResponse { repeated string vault_ids = 1 [ (gogoproto.moretags) = "yaml:\"vault_ids\"" ]; } -message QueryTokenMintedAllProductsByPairRequest { - uint64 product_id = 1 [ (gogoproto.moretags) = "yaml:\"product_id\"" ]; +message QueryTokenMintedByAppAndExtendedPairRequest { + uint64 app_id = 1 [ (gogoproto.moretags) = "yaml:\"app_id\"" ]; uint64 extended_pair_id = 2 [ (gogoproto.moretags) = "yaml:\"extended_pair_id\"" ]; cosmos.base.query.v1beta1.PageRequest pagination = 3 [ (gogoproto.moretags) = "yaml:\"pagination\"" ]; } -message QueryTokenMintedAllProductsByPairResponse { +message QueryTokenMintedByAppAndExtendedPairResponse { string token_minted = 1 [ (gogoproto.moretags) = "yaml:\"token_minted\"", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false ]; } -message QueryTokenMintedByProductAssetWiseRequest { - uint64 product_id = 1 [ (gogoproto.moretags) = "yaml:\"product_id\"" ]; +message QueryTokenMintedAssetWiseByAppRequest { + uint64 app_id = 1 [ (gogoproto.moretags) = "yaml:\"app_id\"" ]; cosmos.base.query.v1beta1.PageRequest pagination = 2 [ (gogoproto.moretags) = "yaml:\"pagination\"" ]; } -message QueryTokenMintedByProductAssetWiseResponse { +message QueryTokenMintedAssetWiseByAppResponse { repeated MintedDataMap minted_data = 1 [ (gogoproto.moretags) = "yaml:\"minted_data\"", (gogoproto.nullable) = false ]; } -message QueryVaultCountByProductRequest { - uint64 product_id = 1 [ (gogoproto.moretags) = "yaml:\"product_id\"" ]; +message QueryVaultCountByAppRequest { + uint64 app_id = 1 [ (gogoproto.moretags) = "yaml:\"app_id\"" ]; cosmos.base.query.v1beta1.PageRequest pagination = 2 [ (gogoproto.moretags) = "yaml:\"pagination\"" ]; } -message QueryVaultCountByProductResponse { +message QueryVaultCountByAppResponse { uint64 vault_count = 1 [ (gogoproto.moretags) = "yaml:\"vault_count\""]; } -message QueryVaultCountByProductAndPairRequest { - uint64 product_id = 1 [ (gogoproto.moretags) = "yaml:\"product_id\"" ]; +message QueryVaultCountByAppAndExtendedPairRequest { + uint64 app_id = 1 [ (gogoproto.moretags) = "yaml:\"app_id\"" ]; uint64 extended_pair_id = 2 [ (gogoproto.moretags) = "yaml:\"extended_pair_id\"" ]; cosmos.base.query.v1beta1.PageRequest pagination = 3 [ (gogoproto.moretags) = "yaml:\"pagination\"" ]; } -message QueryVaultCountByProductAndPairResponse { +message QueryVaultCountByAppAndExtendedPairResponse { uint64 vault_count = 1 [ (gogoproto.moretags) = "yaml:\"vault_count\""]; } -message QueryTotalValueLockedByProductExtendedPairRequest { - uint64 product_id = 1 [ (gogoproto.moretags) = "yaml:\"product_id\"" ]; +message QueryTotalValueLockedByAppExtendedPairRequest { + uint64 app_id = 1 [ (gogoproto.moretags) = "yaml:\"app_id\"" ]; uint64 extended_pair_id = 2 [ (gogoproto.moretags) = "yaml:\"extended_pair_id\"" ]; cosmos.base.query.v1beta1.PageRequest pagination = 3 [ (gogoproto.moretags) = "yaml:\"pagination\"" ]; } -message QueryTotalValueLockedByProductExtendedPairResponse { +message QueryTotalValueLockedByAppExtendedPairResponse { string value_locked = 1 [ (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int" ]; } -message QueryExtendedPairIDByProductRequest { - uint64 product_id = 1 [ (gogoproto.moretags) = "yaml:\"product_id\"" ]; +message QueryExtendedPairIDsByAppRequest { + uint64 app_id = 1 [ (gogoproto.moretags) = "yaml:\"app_id\"" ]; cosmos.base.query.v1beta1.PageRequest pagination = 2 [ (gogoproto.moretags) = "yaml:\"pagination\"" ]; } -message QueryExtendedPairIDByProductResponse { +message QueryExtendedPairIDsByAppResponse { repeated uint64 extended_pair_ids = 1 [ (gogoproto.moretags) = "yaml:\"extended_pair_ids\"" ]; } -message QueryStableVaultInfoRequest { +message QueryStableVaultByVaultIdRequest { string stable_vault_id = 1 [ (gogoproto.moretags) = "yaml:\"stable_vault_id\"" ]; } -message QueryStableVaultInfoResponse { +message QueryStableVaultByVaultIdResponse { StableMintVault stable_mint_vault = 1 [ (gogoproto.moretags) = "yaml:\"stable_mint_vault\"" ]; } -message QueryAllStableVaultsRequest { +message QueryStableVaultByAppRequest { uint64 app_id = 1 [ (gogoproto.moretags) = "yaml:\"app_id\"" ]; } -message QueryAllStableVaultsResponse { +message QueryStableVaultByAppResponse { repeated StableMintVault stable_mint_vault = 1 [ (gogoproto.moretags) = "yaml:\"stable_mint_vault\"", (gogoproto.nullable) = false ]; } -message QueryStableVaultByProductExtendedPairRequest { +message QueryStableVaultByAppExtendedPairRequest { uint64 app_id = 1 [ (gogoproto.moretags) = "yaml:\"app_id\"" ]; uint64 extended_pair_id = 2 [ (gogoproto.moretags) = "yaml:\"extended_pair_id\"" ]; } -message QueryStableVaultByProductExtendedPairResponse { +message QueryStableVaultByAppExtendedPairResponse { StableMintVault stable_mint_vault = 1 [ (gogoproto.moretags) = "yaml:\"stable_mint_vault\"" ]; } @@ -277,26 +277,6 @@ message QueryExtendedPairVaultMappingByAppResponse { repeated ExtendedPairVaultMapping extendedPairVaultMapping = 1 [ (gogoproto.moretags) = "yaml:\"extendedPairVaultMapping\"" ]; } -message QueryExtendedPairVaultMappingByOwnerAndAppRequest { - string owner = 1 [ (gogoproto.moretags) = "yaml:\"owner\"" ]; - uint64 app_id = 2 [ (gogoproto.moretags) = "yaml:\"app_id\"" ]; -} - -message QueryExtendedPairVaultMappingByOwnerAndAppResponse { - repeated ExtendedPairToVaultMapping extendedPairtoVaultMapping = 1 [ (gogoproto.moretags) = "yaml:\"extendedPairtoVaultMapping\"" ]; -} - -message QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairIDRequest { - string owner = 1 [ (gogoproto.moretags) = "yaml:\"owner\"" ]; - uint64 app_id = 2 [ (gogoproto.moretags) = "yaml:\"app_id\"" ]; - uint64 extended_pair = 3 [ (gogoproto.moretags) = "yaml:\"extended_pair\"" ]; - -} - -message QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairIDResponse { -string vaultId = 1 [ (gogoproto.moretags) = "yaml:\"vaultId\"" ]; -} - message QueryTVLLockedByAppOfAllExtendedPairsRequest { uint64 app_id = 1 [ (gogoproto.moretags) = "yaml:\"app_id\"" ]; @@ -358,89 +338,81 @@ service Query { }; rpc QueryUserExtendedPairTotalData(QueryUserExtendedPairTotalDataRequest) returns (QueryUserExtendedPairTotalDataResponse) { - option (google.api.http).get = "/comdex/vault/v1beta1/user-extended-total-data/{owner}"; + option (google.api.http).get = "/comdex/vault/v1beta1/user-extended-pair-total-data/{owner}"; }; - rpc QueryVaultInfo(QueryVaultInfoRequest) returns (QueryVaultInfoResponse) { - option (google.api.http).get = "/comdex/vault/v1beta1/vaultsInfo/{id}"; + rpc QueryVaultInfoByVaultId(QueryVaultInfoByVaultIdRequest) returns (QueryVaultInfoByVaultIdResponse) { + option (google.api.http).get = "/comdex/vault/v1beta1/vaultsInfo-by-vault-id/{id}"; }; - rpc QueryVaultInfoByAppByOwner(QueryVaultInfoByAppByOwnerRequest) returns (QueryVaultInfoByAppByOwnerResponse) { - option (google.api.http).get = "/comdex/vault/v1beta1/vaultsInfoByOwner/{app_id}/{owner}"; + rpc QueryVaultInfoOfOwnerByApp(QueryVaultInfoOfOwnerByAppRequest) returns (QueryVaultInfoOfOwnerByAppResponse) { + option (google.api.http).get = "/comdex/vault/v1beta1/vaultsInfo-of-owner-by-app/{app_id}/{owner}"; }; rpc QueryAllVaults(QueryAllVaultsRequest) returns (QueryAllVaultsResponse) { option (google.api.http).get = "/comdex/vault/v1beta1/vaults"; }; - rpc QueryAllVaultsByProduct(QueryAllVaultsByProductRequest) returns (QueryAllVaultsByProductResponse) { - option (google.api.http).get = "/comdex/vault/v1beta1/vaults-by-product/{app_id}"; + rpc QueryAllVaultsByApp(QueryAllVaultsByAppRequest) returns (QueryAllVaultsByAppResponse) { + option (google.api.http).get = "/comdex/vault/v1beta1/vaults-by-App/{app_id}"; }; rpc QueryAllVaultsByAppAndExtendedPair(QueryAllVaultsByAppAndExtendedPairRequest) returns (QueryAllVaultsByAppAndExtendedPairResponse) { option (google.api.http).get = "/comdex/vault/v1beta1/vaults-by-app-and-extended-pair/{app_id}/{extended_pair_id}"; }; - rpc QueryVaultOfOwnerByExtendedPair(QueryVaultOfOwnerByExtendedPairRequest) returns (QueryVaultOfOwnerByExtendedPairResponse) { - option (google.api.http).get = "/comdex/vault/v1beta1/vault-of-owner-by-extended-pair/{product_id}/{owner}/{extended_pair_id}"; + rpc QueryVaultIdOfOwnerByExtendedPairAndApp(QueryVaultIdOfOwnerByExtendedPairAndAppRequest) returns (QueryVaultIdOfOwnerByExtendedPairAndAppResponse) { + option (google.api.http).get = "/comdex/vault/v1beta1/vault-of-owner-by-extended-pair-and-app/{app_id}/{owner}/{extended_pair_id}"; }; - rpc QueryVaultByProduct(QueryVaultByProductRequest) returns (QueryVaultByProductResponse) { - option (google.api.http).get = "/comdex/vault/v1beta1/extendedPairvaults-by-product/{product_id}"; + rpc QueryVaultIdsByAppInAllExtendedPairs(QueryVaultIdsByAppInAllExtendedPairsRequest) returns (QueryVaultIdsByAppInAllExtendedPairsResponse) { + option (google.api.http).get = "/comdex/vault/v1beta1/vaultIds-by-app-in-all-extendedPairs/{app_id}"; }; - rpc QueryAllVaultByOwner(QueryAllVaultByOwnerRequest) returns (QueryAllVaultByOwnerResponse) { - option (google.api.http).get = "/comdex/vault/v1beta1/vaults-by-owner/{owner}"; + rpc QueryAllVaultIdsByAnOwner(QueryAllVaultIdsByAnOwnerRequest) returns (QueryAllVaultIdsByAnOwnerResponse) { + option (google.api.http).get = "/comdex/vault/v1beta1/vaults-ids-by-an-owner/{owner}"; }; - rpc QueryTokenMintedAllProductsByPair(QueryTokenMintedAllProductsByPairRequest) returns (QueryTokenMintedAllProductsByPairResponse) { - option (google.api.http).get = "/comdex/vault/v1beta1/token-minted-by-products-extended-pair/{product_id}/{extended_pair_id}"; + rpc QueryTokenMintedByAppAndExtendedPair(QueryTokenMintedByAppAndExtendedPairRequest) returns (QueryTokenMintedByAppAndExtendedPairResponse) { + option (google.api.http).get = "/comdex/vault/v1beta1/token-minted-by-App-and-extended-pair/{app_id}/{extended_pair_id}"; }; - rpc QueryTokenMintedByProductAssetWise(QueryTokenMintedByProductAssetWiseRequest) returns (QueryTokenMintedByProductAssetWiseResponse) { - option (google.api.http).get = "/comdex/vault/v1beta1/token-minted-by-products-asset-wise/{product_id}"; + rpc QueryTokenMintedAssetWiseByApp(QueryTokenMintedAssetWiseByAppRequest) returns (QueryTokenMintedAssetWiseByAppResponse) { + option (google.api.http).get = "/comdex/vault/v1beta1/token-minted-asset-wise-by-app/{app_id}"; }; - rpc QueryVaultCountByProduct(QueryVaultCountByProductRequest) returns (QueryVaultCountByProductResponse) { - option (google.api.http).get = "/comdex/vault/v1beta1/vault-count-by-products/{product_id}"; + rpc QueryVaultCountByApp(QueryVaultCountByAppRequest) returns (QueryVaultCountByAppResponse) { + option (google.api.http).get = "/comdex/vault/v1beta1/vault-count-by-an-App/{app_id}"; }; - rpc QueryVaultCountByProductAndPair(QueryVaultCountByProductAndPairRequest) returns (QueryVaultCountByProductAndPairResponse) { - option (google.api.http).get = "/comdex/vault/v1beta1/vault-count-by-products-and-pair/{product_id}/{extended_pair_id}"; + rpc QueryVaultCountByAppAndExtendedPair(QueryVaultCountByAppAndExtendedPairRequest) returns (QueryVaultCountByAppAndExtendedPairResponse) { + option (google.api.http).get = "/comdex/vault/v1beta1/vault-count-by-an-App-and-extended-pair/{app_id}/{extended_pair_id}"; }; - rpc QueryTotalValueLockedByProductExtendedPair(QueryTotalValueLockedByProductExtendedPairRequest) returns (QueryTotalValueLockedByProductExtendedPairResponse) { - option (google.api.http).get = "/comdex/vault/v1beta1/value-locked-by-product-pair/{product_id}/{extended_pair_id}"; + rpc QueryTotalValueLockedByAppExtendedPair(QueryTotalValueLockedByAppExtendedPairRequest) returns (QueryTotalValueLockedByAppExtendedPairResponse) { + option (google.api.http).get = "/comdex/vault/v1beta1/value-locked-by-App-pair/{app_id}/{extended_pair_id}"; }; - rpc QueryExtendedPairIDByProduct(QueryExtendedPairIDByProductRequest) returns (QueryExtendedPairIDByProductResponse) { - option (google.api.http).get = "/comdex/vault/v1beta1/external-pair-by-product/{product_id}"; + rpc QueryExtendedPairIDsByApp(QueryExtendedPairIDsByAppRequest) returns (QueryExtendedPairIDsByAppResponse) { + option (google.api.http).get = "/comdex/vault/v1beta1/external-pair-id-by-App/{app_id}"; }; - rpc QueryStableVaultInfo(QueryStableVaultInfoRequest) returns (QueryStableVaultInfoResponse) { + rpc QueryStableVaultByVaultId(QueryStableVaultByVaultIdRequest) returns (QueryStableVaultByVaultIdResponse) { option (google.api.http).get = "/comdex/vault/v1beta1/stable-vault-by-id/{stable_vault_id}"; }; - rpc QueryAllStableVaults(QueryAllStableVaultsRequest) returns (QueryAllStableVaultsResponse) { - option (google.api.http).get = "/comdex/vault/v1beta1/stable-vault-by-product/{app_id}"; + rpc QueryStableVaultByApp(QueryStableVaultByAppRequest) returns (QueryStableVaultByAppResponse) { + option (google.api.http).get = "/comdex/vault/v1beta1/stable-vault-by-App/{app_id}"; }; - rpc QueryStableVaultByProductExtendedPair(QueryStableVaultByProductExtendedPairRequest) returns (QueryStableVaultByProductExtendedPairResponse) { - option (google.api.http).get = "/comdex/vault/v1beta1/stable-vault-by-product-extendedPair/{app_id}/{extended_pair_id}"; + rpc QueryStableVaultByAppExtendedPair(QueryStableVaultByAppExtendedPairRequest) returns (QueryStableVaultByAppExtendedPairResponse) { + option (google.api.http).get = "/comdex/vault/v1beta1/stable-vault-by-App-extendedPair/{app_id}/{extended_pair_id}"; }; rpc QueryExtendedPairVaultMappingByAppAndExtendedPairId(QueryExtendedPairVaultMappingByAppAndExtendedPairIdRequest) returns (QueryExtendedPairVaultMappingByAppAndExtendedPairIdResponse) { - option (google.api.http).get = "/comdex/vault/v1beta1/extendedPairVault-by-product-and-ExtendedPairId/{app_id}/{extended_pair_id}"; + option (google.api.http).get = "/comdex/vault/v1beta1/extendedPairVault-mapping-by-App-and-ExtendedPairId/{app_id}/{extended_pair_id}"; }; rpc QueryExtendedPairVaultMappingByApp(QueryExtendedPairVaultMappingByAppRequest) returns (QueryExtendedPairVaultMappingByAppResponse) { - option (google.api.http).get = "/comdex/vault/v1beta1/extendedPairVault-by-product/{app_id}"; - }; - - rpc QueryExtendedPairVaultMappingByOwnerAndApp(QueryExtendedPairVaultMappingByOwnerAndAppRequest) returns (QueryExtendedPairVaultMappingByOwnerAndAppResponse) { - option (google.api.http).get = "/comdex/vault/v1beta1/extendedPairVault-by-owner-and-product/{owner}/{app_id}"; - }; - - rpc QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairID(QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairIDRequest) returns (QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairIDResponse) { - option (google.api.http).get = "/comdex/vault/v1beta1/extendedPairVault-by-owner-product-extendedPair/{owner}/{app_id}/{extended_pair}"; + option (google.api.http).get = "/comdex/vault/v1beta1/extendedPairVault-mapping-by-App/{app_id}"; }; rpc QueryTVLLockedByAppOfAllExtendedPairs(QueryTVLLockedByAppOfAllExtendedPairsRequest) returns (QueryTVLLockedByAppOfAllExtendedPairsResponse) { diff --git a/proto/comdex/vault/v1beta1/tx.proto b/proto/comdex/vault/v1beta1/tx.proto index 0519ee484..6a3ed6849 100644 --- a/proto/comdex/vault/v1beta1/tx.proto +++ b/proto/comdex/vault/v1beta1/tx.proto @@ -10,7 +10,7 @@ option (gogoproto.goproto_getters_all) = false; message MsgCreateRequest { string from = 1 [ (gogoproto.moretags) = "yaml:\"from\"" ]; - uint64 app_mapping_id = 2 [(gogoproto.moretags) = "yaml:\"app_mapping_id\""]; + uint64 app_id = 2 [(gogoproto.moretags) = "yaml:\"app_id\""]; uint64 extended_pair_vault_id = 3 [ (gogoproto.moretags) = "yaml:\"extended_pair_vault_id\"" ]; @@ -31,7 +31,7 @@ message MsgCreateResponse {} message MsgDepositRequest { string from = 1 [ (gogoproto.moretags) = "yaml:\"from\"" ]; - uint64 app_mapping_id = 2 [(gogoproto.moretags) = "yaml:\"app_mapping_id\""]; + uint64 app_id = 2 [(gogoproto.moretags) = "yaml:\"app_id\""]; uint64 extended_pair_vault_id = 3 [ (gogoproto.moretags) = "yaml:\"extended_pair_vault_id\"" @@ -49,7 +49,7 @@ message MsgDepositResponse {} message MsgWithdrawRequest { string from = 1 [ (gogoproto.moretags) = "yaml:\"from\"" ]; - uint64 app_mapping_id = 2 [(gogoproto.moretags) = "yaml:\"app_mapping_id\""]; + uint64 app_id = 2 [(gogoproto.moretags) = "yaml:\"app_id\""]; uint64 extended_pair_vault_id = 3 [ (gogoproto.moretags) = "yaml:\"extended_pair_vault_id\"" ]; @@ -66,7 +66,7 @@ message MsgWithdrawResponse {} message MsgDrawRequest { string from = 1 [ (gogoproto.moretags) = "yaml:\"from\"" ]; - uint64 app_mapping_id = 2 [(gogoproto.moretags) = "yaml:\"app_mapping_id\""]; + uint64 app_id = 2 [(gogoproto.moretags) = "yaml:\"app_id\""]; uint64 extended_pair_vault_id = 3 [ (gogoproto.moretags) = "yaml:\"extended_pair_vault_id\"" ]; @@ -83,7 +83,7 @@ message MsgDrawResponse {} message MsgRepayRequest { string from = 1 [ (gogoproto.moretags) = "yaml:\"from\"" ]; - uint64 app_mapping_id = 2 [(gogoproto.moretags) = "yaml:\"app_mapping_id\""]; + uint64 app_id = 2 [(gogoproto.moretags) = "yaml:\"app_id\""]; uint64 extended_pair_vault_id = 3 [ (gogoproto.moretags) = "yaml:\"extended_pair_vault_id\"" ]; @@ -100,7 +100,7 @@ message MsgRepayResponse {} message MsgCloseRequest { string from = 1 [ (gogoproto.moretags) = "yaml:\"from\"" ]; - uint64 app_mapping_id = 2 [(gogoproto.moretags) = "yaml:\"app_mapping_id\""]; + uint64 app_id = 2 [(gogoproto.moretags) = "yaml:\"app_id\""]; uint64 extended_pair_vault_id = 3 [ (gogoproto.moretags) = "yaml:\"extended_pair_vault_id\"" ]; @@ -113,7 +113,7 @@ message MsgCloseResponse {} message MsgCreateStableMintRequest { string from = 1 [ (gogoproto.moretags) = "yaml:\"from\"" ]; - uint64 app_mapping_id = 2 [(gogoproto.moretags) = "yaml:\"app_mapping_id\""]; + uint64 app_id = 2 [(gogoproto.moretags) = "yaml:\"app_id\""]; uint64 extended_pair_vault_id = 3 [ (gogoproto.moretags) = "yaml:\"extended_pair_vault_id\"" ]; @@ -129,7 +129,7 @@ message MsgCreateStableMintResponse{} message MsgDepositStableMintRequest { string from = 1 [ (gogoproto.moretags) = "yaml:\"from\"" ]; - uint64 app_mapping_id = 2 [(gogoproto.moretags) = "yaml:\"app_mapping_id\""]; + uint64 app_id = 2 [(gogoproto.moretags) = "yaml:\"app_id\""]; uint64 extended_pair_vault_id = 3 [ (gogoproto.moretags) = "yaml:\"extended_pair_vault_id\"" ]; @@ -150,7 +150,7 @@ message MsgDepositStableMintResponse{} message MsgWithdrawStableMintRequest { string from = 1 [ (gogoproto.moretags) = "yaml:\"from\"" ]; - uint64 app_mapping_id = 2 [(gogoproto.moretags) = "yaml:\"app_mapping_id\""]; + uint64 app_id = 2 [(gogoproto.moretags) = "yaml:\"app_id\""]; uint64 extended_pair_vault_id = 3 [ (gogoproto.moretags) = "yaml:\"extended_pair_vault_id\"" ]; diff --git a/x/asset/client/cli/flags.go b/x/asset/client/cli/flags.go index 7e492ceac..3ec45ea6a 100644 --- a/x/asset/client/cli/flags.go +++ b/x/asset/client/cli/flags.go @@ -89,7 +89,7 @@ type createExtPairVaultInputs struct { IsVaultActive string `json:"is_vault_active"` DebtCeiling string `json:"debt_ceiling"` DebtFloor string `json:"debt_floor"` - IsPsmPair string `json:"is_psm_pair"` + IsStableMintVault string `json:"is_stable_mint_vault"` MinCr string `json:"min_cr"` PairName string `json:"pair_name"` AssetOutOraclePrice string `json:"asset_out_oracle_price"` diff --git a/x/asset/client/cli/query.go b/x/asset/client/cli/query.go index 206b1f67c..c16a8b4e3 100644 --- a/x/asset/client/cli/query.go +++ b/x/asset/client/cli/query.go @@ -364,8 +364,8 @@ func queryAllExtendedPairVaultsByApp() *cobra.Command { func queryAllExtendedPairStableVaultsIdByApp() *cobra.Command { cmd := &cobra.Command{ - Use: "extended-pair-psm-pair-wise [app_id]", - Short: "Query all extended pairs psm pair wise in an app", + Use: "extended-pair-stable-vault-wise [app_id]", + Short: "Query all extended pairs stable vault wise in an app", Args: cobra.ExactArgs(1), RunE: func(cmd *cobra.Command, args []string) error { ctx, err := client.GetClientQueryContext(cmd) @@ -440,8 +440,8 @@ func queryGovTokenByApp() *cobra.Command { func queryAllExtendedPairStableVaultsDataByApp() *cobra.Command { cmd := &cobra.Command{ - Use: "extended-pair-data-psm-pair-wise [app_id]", - Short: "Query all extended pairs data psm pair wise in an app", + Use: "extended-pair-data-stable-vault-wise [app_id]", + Short: "Query all extended pairs data stable vault wise in an app", Args: cobra.ExactArgs(1), RunE: func(cmd *cobra.Command, args []string) error { ctx, err := client.GetClientQueryContext(cmd) diff --git a/x/asset/client/cli/tx.go b/x/asset/client/cli/tx.go index 4fb0f824f..eb68d2af3 100644 --- a/x/asset/client/cli/tx.go +++ b/x/asset/client/cli/tx.go @@ -482,7 +482,7 @@ Sample json content "is_vault_active" : "", "debt_ceiling" : "", "debt_floor" : "", - "is_psm_pair" : "", + "is_stable_mint_vault" : "", "min_cr" : "", "pair_name" : "", "asset_out_oracle_price" : "", @@ -568,7 +568,7 @@ func NewCreateExtendedPairVaultMsg(clientCtx client.Context, txf tx.Factory, fs return txf, nil, err } - isPsmPair, err := ParseStringFromString(extPairVault.IsPsmPair, ",") + isStableMintVault, err := ParseStringFromString(extPairVault.IsStableMintVault, ",") if err != nil { return txf, nil, err } @@ -642,7 +642,7 @@ func NewCreateExtendedPairVaultMsg(clientCtx client.Context, txf tx.Factory, fs if !ok { return txf, nil, types.ErrorInvalidDebtFloor } - newIsStableMintVault := ParseBoolFromString(isPsmPair[i]) + newIsStableMintVault := ParseBoolFromString(isStableMintVault[i]) newAssetOutOraclePrice := ParseBoolFromString(assetOutOraclePrice[i]) pairs = append(pairs, types.ExtendedPairVault{ AppMappingId: appMappingID, diff --git a/x/asset/types/query.pb.go b/x/asset/types/query.pb.go index f4fd3bd57..7d5d901e0 100644 --- a/x/asset/types/query.pb.go +++ b/x/asset/types/query.pb.go @@ -1085,96 +1085,95 @@ func init() { func init() { proto.RegisterFile("comdex/asset/v1beta1/query.proto", fileDescriptor_9e7e9ce3abb4febf) } var fileDescriptor_9e7e9ce3abb4febf = []byte{ - // 1409 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x98, 0x4d, 0x6c, 0x15, 0x55, - 0x1b, 0xc7, 0x3b, 0x6d, 0x29, 0xed, 0x29, 0xbc, 0xb4, 0xa7, 0xe5, 0xb5, 0x5c, 0xca, 0xdc, 0xdb, - 0x53, 0x69, 0x2f, 0x08, 0x33, 0xb4, 0xa0, 0x08, 0x81, 0x18, 0x6f, 0xf8, 0xf0, 0x6a, 0x0c, 0x30, - 0x12, 0x49, 0x88, 0x30, 0x4e, 0x3b, 0xd3, 0xeb, 0xe8, 0xed, 0x9c, 0xc3, 0x3d, 0x73, 0x2b, 0x84, - 0xb0, 0x21, 0x86, 0xa8, 0x2b, 0x13, 0xe3, 0xda, 0xad, 0x7b, 0x97, 0xae, 0x8c, 0x1b, 0x36, 0x26, - 0x24, 0x6e, 0x74, 0x73, 0xd5, 0xe2, 0xc2, 0x75, 0x97, 0xba, 0x31, 0x73, 0xce, 0x33, 0x1f, 0xb7, - 0x9d, 0x8f, 0xdb, 0xa2, 0xac, 0x7a, 0x33, 0xf3, 0x9c, 0xff, 0xf3, 0xfb, 0x3f, 0xe7, 0xeb, 0x99, - 0xa2, 0xca, 0x32, 0x5d, 0xb5, 0x9d, 0xbb, 0xba, 0xc5, 0xb9, 0xe3, 0xeb, 0x6b, 0x0b, 0x4b, 0x8e, - 0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0xea, 0x07, 0x43, 0x76, - 0x65, 0x24, 0x90, 0x08, 0x57, 0xda, 0x3e, 0x69, 0x41, 0x7d, 0x03, 0x7f, 0xcf, 0x6b, 0x5d, 0xfe, - 0xa8, 0xc0, 0x7c, 0x41, 0x52, 0x98, 0xaf, 0x1b, 0x68, 0x84, 0x05, 0x0f, 0x82, 0x32, 0xc3, 0xca, - 0x54, 0xd3, 0xe7, 0x2c, 0x9c, 0x8c, 0xda, 0x01, 0x98, 0xb6, 0x28, 0xa1, 0xdb, 0xe2, 0xa6, 0xeb, - 0xad, 0x50, 0x62, 0xc4, 0x5a, 0xff, 0xf9, 0x1a, 0x25, 0x68, 0x2c, 0xb2, 0x93, 0xb5, 0x44, 0xdd, - 0x44, 0x9d, 0x23, 0xc7, 0xd7, 0xd1, 0x30, 0x03, 0x2b, 0x50, 0xe5, 0x22, 0xc3, 0x53, 0x60, 0x78, - 0x2c, 0x36, 0x0c, 0x7e, 0x23, 0x25, 0x32, 0x19, 0x55, 0x37, 0x38, 0xd5, 0x00, 0x88, 0x2c, 0xc1, - 0x59, 0x10, 0x3e, 0x05, 0x84, 0xb7, 0xd0, 0x90, 0x3c, 0xfd, 0x00, 0x60, 0x3a, 0x0b, 0x20, 0x88, - 0xd9, 0x7c, 0x18, 0xc8, 0x91, 0xc4, 0x00, 0x09, 0x32, 0x83, 0xf6, 0xc9, 0x7d, 0xc8, 0x58, 0x56, - 0x1d, 0x6e, 0x42, 0xad, 0x44, 0x08, 0x30, 0x5c, 0x42, 0x03, 0x16, 0x63, 0x00, 0x50, 0xc9, 0xd8, - 0xa6, 0xd1, 0xf9, 0x5b, 0xc3, 0x00, 0x81, 0x60, 0x17, 0x30, 0x46, 0x8c, 0x40, 0x80, 0x5c, 0x44, - 0x07, 0x84, 0xf6, 0x65, 0xba, 0x76, 0x9d, 0x7e, 0xe4, 0x78, 0xb5, 0x24, 0x48, 0x15, 0x0d, 0x59, - 0x8c, 0x99, 0x21, 0x4c, 0x6d, 0x3c, 0x71, 0xa6, 0x89, 0xe7, 0xc1, 0x76, 0x67, 0xac, 0x6e, 0x93, - 0x1b, 0xa8, 0x94, 0x26, 0x03, 0xb0, 0x67, 0xd0, 0x9e, 0x06, 0x5d, 0x33, 0x61, 0x67, 0x87, 0x6a, - 0x2f, 0x6c, 0x74, 0xca, 0x13, 0x52, 0x2d, 0xf9, 0x96, 0x18, 0xa8, 0x41, 0xd7, 0xc4, 0x11, 0x53, - 0xb7, 0x09, 0x8e, 0xbd, 0x47, 0xd3, 0x72, 0x3b, 0x3c, 0xdf, 0xc4, 0x33, 0xc8, 0x51, 0x47, 0x83, - 0x16, 0x63, 0xe1, 0xf1, 0x5c, 0x5c, 0x91, 0x09, 0xa8, 0xc8, 0x68, 0xe4, 0x87, 0x13, 0x43, 0x48, - 0x10, 0x1d, 0x1d, 0x12, 0xfa, 0x17, 0x37, 0x5f, 0x4c, 0x59, 0x13, 0xf4, 0x50, 0x41, 0x6a, 0xd6, - 0x08, 0xc0, 0x7b, 0x5f, 0x6e, 0x54, 0xf1, 0x10, 0x66, 0x6d, 0x3e, 0x9d, 0x71, 0x8b, 0x46, 0xda, - 0x8e, 0x35, 0xd7, 0x82, 0x37, 0xb0, 0x63, 0x45, 0x14, 0x99, 0x45, 0x33, 0xb2, 0x2a, 0xcd, 0xe6, - 0x16, 0x89, 0xa8, 0x74, 0x8f, 0x14, 0x44, 0xf2, 0xa2, 0xd2, 0x69, 0x07, 0xfe, 0x7d, 0x5a, 0x03, - 0xcd, 0x65, 0x73, 0xec, 0x70, 0x11, 0x7e, 0xa5, 0xa0, 0xf9, 0x42, 0x51, 0x70, 0xf8, 0x21, 0xda, - 0x1b, 0xf6, 0x1d, 0x66, 0x40, 0xb5, 0x5d, 0x97, 0xd3, 0xe0, 0x72, 0x52, 0x92, 0x74, 0x69, 0x11, - 0x63, 0x4f, 0xb2, 0xa7, 0x21, 0x37, 0x91, 0x96, 0x86, 0xf5, 0x8e, 0x6f, 0x2d, 0x35, 0x1d, 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 0x15, 0x00, - 0x00, + // 1401 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x58, 0xcb, 0x6f, 0x14, 0xc7, + 0x13, 0xf6, 0xd8, 0xc6, 0xd8, 0x6d, 0xf8, 0x61, 0xb7, 0xcd, 0x2f, 0x66, 0x31, 0xb3, 0xeb, 0x76, + 0xb0, 0x17, 0x02, 0x33, 0xd8, 0xa0, 0x10, 0x50, 0x9e, 0x2b, 0x1e, 0xd9, 0x44, 0x11, 0x30, 0x41, + 0x41, 0x42, 0x81, 0xc9, 0xd8, 0x33, 0xde, 0x4c, 0xb2, 0x9e, 0x6e, 0xb6, 0x67, 0x1d, 0x10, 0xe2, + 0x82, 0x10, 0x4a, 0x72, 0x8a, 0x14, 0xe5, 0x9c, 0x6b, 0xee, 0x39, 0xe6, 0x14, 0xe5, 0xc2, 0x25, + 0x12, 0x52, 0x2e, 0xc9, 0x65, 0x93, 0x98, 0xfc, 0x05, 0x96, 0x72, 0x8d, 0xa2, 0xe9, 0xae, 0x79, + 0xac, 0x3d, 0x8f, 0xb5, 0x21, 0x9c, 0xbc, 0xea, 0xa9, 0xfa, 0xea, 0xfb, 0xaa, 0xba, 0xbb, 0xaa, + 0x8d, 0x2a, 0xcb, 0x74, 0xd5, 0x76, 0x6e, 0xeb, 0x16, 0xe7, 0x8e, 0xaf, 0xaf, 0x2d, 0x2c, 0x39, + 0xbe, 0xb5, 0xa0, 0xdf, 0x6a, 0x3b, 0xad, 0x3b, 0x1a, 0x6b, 0x51, 0x9f, 0xe2, 0x49, 0x69, 0xa1, + 0x09, 0x0b, 0x0d, 0x2c, 0x4a, 0x47, 0x97, 0x29, 0x5f, 0xa5, 0x5c, 0x5f, 0xb2, 0xb8, 0x23, 0xcd, + 0x23, 0x67, 0x66, 0x35, 0x5c, 0xcf, 0xf2, 0x5d, 0xea, 0x49, 0x84, 0xd2, 0x64, 0x83, 0x36,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b7, 0xc5, 0x4d, 0xd7, 0x5b, + 0xa1, 0xc4, 0x88, 0xb1, 0xfe, 0xf3, 0x3d, 0x4a, 0xd0, 0x58, 0x24, 0x27, 0x6b, 0x8b, 0xba, 0x89, + 0x3c, 0x47, 0x8a, 0xaf, 0xa2, 0x61, 0x06, 0x52, 0x20, 0xcb, 0x45, 0x82, 0xa7, 0x40, 0xf0, 0x58, + 0x2c, 0x18, 0xf4, 0x46, 0x48, 0x64, 0x32, 0xca, 0x6e, 0x70, 0xab, 0x01, 0x21, 0xb2, 0x04, 0x77, + 0x41, 0xb8, 0x0a, 0x14, 0xde, 0x45, 0x43, 0xf2, 0xf6, 0x03, 0x02, 0xd3, 0x59, 0x04, 0x02, 0x9b, + 0xcd, 0x97, 0x81, 0xf4, 0x24, 0x06, 0x40, 0x90, 0x19, 0xb4, 0x4f, 0x9e, 0x43, 0xc6, 0xb2, 0xf2, + 0x70, 0x1d, 0x72, 0x25, 0x4c, 0x80, 0xc3, 0x05, 0x34, 0x60, 0x31, 0x06, 0x04, 0x2a, 0x19, 0xc7, + 0x34, 0xba, 0x7f, 0x6b, 0x18, 0x48, 0x20, 0x38, 0x05, 0x8c, 0x11, 0x23, 0x00, 0x20, 0xe7, 0xd1, + 0x01, 0x81, 0x7d, 0x91, 0xae, 0x5d, 0xa5, 0x9f, 0x3a, 0x5e, 0x2d, 0x49, 0xa4, 0x8a, 0x86, 0x2c, + 0xc6, 0xcc, 0x90, 0x4c, 0x6d, 0x3c, 0x71, 0xa7, 0x89, 0xf5, 0xe0, 0xb8, 0x33, 0x56, 0xb7, 0xc9, + 0x35, 0x54, 0x4a, 0x83, 0x01, 0xb2, 0x67, 0xd0, 0x9e, 0x06, 0x5d, 0x33, 0xe1, 0x64, 0x87, 0x68, + 0x2f, 0x6c, 0x74, 0xca, 0x13, 0x12, 0x2d, 0xf9, 0x95, 0x18, 0xa8, 0x41, 0xd7, 0xc4, 0x15, 0x53, + 0xb7, 0x09, 0x8e, 0xb5, 0x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, 0x3a, 0xd1, 0xbb, 0x03, 0x28, 0x38, 0x2b, 0x14, + 0x9c, 0xc2, 0x8b, 0xe9, 0x0a, 0x82, 0xa7, 0x88, 0x1f, 0x78, 0x99, 0xae, 0x67, 0x5a, 0x9e, 0x29, + 0x2e, 0x86, 0x90, 0xf5, 0x83, 0x7e, 0x74, 0xa4, 0xe7, 0x91, 0x04, 0x5f, 0xd8, 0x59, 0xca, 0x37, + 0x8f, 0x4c, 0xa5, 0x8b, 0x4f, 0x8d, 0xf3, 0x6c, 0x8b, 0x57, 0xbb, 0xf2, 0xe8, 0x4f, 0xb5, 0xef, + 0xbb, 0x75, 0xb5, 0xef, 0xd1, 0xba, 0xaa, 0x3c, 0x5e, 0x57, 0x95, 0x3f, 0xd6, 0x55, 0xe5, 0xab, + 0x27, 0x6a, 0xdf, 0xe3, 0x27, 0x6a, 0xdf, 0xaf, 0x4f, 0xd4, 0xbe, 0xeb, 0x7a, 0xc3, 0xf5, 0x3f, + 0x6e, 0x2f, 0x05, 0xc4, 0x21, 0xd6, 0x71, 0xba, 0xb2, 0xe2, 0x2e, 0xbb, 0x56, 0x33, 0x8c, 0x1d, + 0x46, 0xf7, 0xef, 0x30, 0x87, 0x2f, 0x0d, 0x89, 0xff, 0xf9, 0x9d, 0xfc, 0x37, 0x00, 0x00, 0xff, + 0xff, 0xe9, 0xdf, 0xe6, 0xa4, 0x27, 0x15, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. diff --git a/x/asset/types/query.pb.gw.go b/x/asset/types/query.pb.gw.go index 15774565f..702aef69e 100644 --- a/x/asset/types/query.pb.gw.go +++ b/x/asset/types/query.pb.gw.go @@ -1221,11 +1221,11 @@ var ( pattern_Query_QueryAllExtendedPairVaultsByApp_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"comdex", "asset", "v1beta1", "product_to_extended_pair", "app_id"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_QueryAllExtendedPairStableVaultsIdByApp_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"comdex", "asset", "v1beta1", "extended_pair_psm_pair_wise", "app_id"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_QueryAllExtendedPairStableVaultsIdByApp_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"comdex", "asset", "v1beta1", "extended_pair_stable_vault_wise", "app_id"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_QueryGovTokenByApp_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"comdex", "asset", "v1beta1", "gov_token_in_an_app", "app_id"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_QueryAllExtendedPairStableVaultsDataByApp_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"comdex", "asset", "v1beta1", "extended_pair_psm_wise", "app_id"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_QueryAllExtendedPairStableVaultsDataByApp_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"comdex", "asset", "v1beta1", "extended_pair_stable_vault_wise", "app_id"}, "", runtime.AssumeColonVerbOpt(false))) ) var ( diff --git a/x/vault/client/cli/query.go b/x/vault/client/cli/query.go index d468db2c5..58a7d5db3 100644 --- a/x/vault/client/cli/query.go +++ b/x/vault/client/cli/query.go @@ -23,27 +23,25 @@ func GetQueryCmd() *cobra.Command { cmd.AddCommand( QueryAllVaults(), - QueryAllVaultsByProduct(), + QueryAllVaultsByApp(), QueryVault(), QueryAllVaultsByAppAndExtendedPair(), - QueryVaultInfo(), - QueryVaultOfOwnerByExtendedPair(), - QueryVaultByProduct(), - QueryAllVaultByOwner(), - QueryTokenMintedAllProductsByPair(), - QueryVaultCountByProduct(), - QueryVaultCountByProductAndPair(), - QueryTokenMintedByProductAssetWise(), - QueryTotalValueLockedByProductExtendedPair(), - QueryExtendedPairIDByProduct(), - QueryStableVaultInfo(), - QueryAllStableVaults(), - QueryStableVaultByProductExtendedPair(), + QueryVaultInfoByVaultId(), + QueryVaultIdOfOwnerByExtendedPairAndApp(), + QueryVaultIdsByAppInAllExtendedPairs(), + QueryAllVaultIdsByAnOwner(), + QueryTokenMintedByAppAndExtendedPair(), + QueryVaultCountByApp(), + QueryVaultCountByAppAndExtendedPair(), + QueryTokenMintedAssetWiseByApp(), + QueryTotalValueLockedByAppExtendedPair(), + QueryExtendedPairIDsByApp(), + QueryStableVaultByVaultId(), + QueryStableVaultByApp(), + QueryStableVaultByAppExtendedPair(), QueryExtendedPairVaultMappingByApp(), QueryExtendedPairVaultMappingByAppAndExtendedPairID(), - QueryExtendedPairVaultMappingByOwnerAndApp(), - QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairID(), - QueryVaultInfoByAppByOwner(), + QueryVaultInfoOfOwnerByApp(), QueryTVLLockedByAppOfAllExtendedPairs(), QueryTotalTVLByApp(), QueryUserMyPositionByApp(), @@ -56,7 +54,7 @@ func GetQueryCmd() *cobra.Command { func QueryAllVaults() *cobra.Command { cmd := &cobra.Command{ Use: "vaults", - Short: "list of all vaults available", + Short: "Query all vaults in all apps", RunE: func(cmd *cobra.Command, args []string) error { pagination, err := client.ReadPageRequest(cmd.Flags()) if err != nil { @@ -85,10 +83,10 @@ func QueryAllVaults() *cobra.Command { return cmd } -func QueryAllVaultsByProduct() *cobra.Command { +func QueryAllVaultsByApp() *cobra.Command { cmd := &cobra.Command{ - Use: "vaults-by-product [appID]", - Short: "list of all vaults available in a product", + Use: "vaults-by-app [appID]", + Short: "Query all vaults in by app id", Args: cobra.ExactArgs(1), RunE: func(cmd *cobra.Command, args []string) error { ctx, err := client.GetClientQueryContext(cmd) @@ -102,7 +100,7 @@ func QueryAllVaultsByProduct() *cobra.Command { queryClient := types.NewQueryClient(ctx) - res, err := queryClient.QueryAllVaultsByProduct(cmd.Context(), &types.QueryAllVaultsByProductRequest{ + res, err := queryClient.QueryAllVaultsByApp(cmd.Context(), &types.QueryAllVaultsByAppRequest{ AppId: appID, }) @@ -120,7 +118,7 @@ func QueryAllVaultsByProduct() *cobra.Command { func QueryVault() *cobra.Command { cmd := &cobra.Command{ Use: "vault [id]", - Short: "vault's information", + Short: "Query vault by vault id", Args: cobra.ExactArgs(1), RunE: func(cmd *cobra.Command, args []string) error { ctx, err := client.GetClientQueryContext(cmd) @@ -147,10 +145,10 @@ func QueryVault() *cobra.Command { return cmd } -func QueryVaultOfOwnerByExtendedPair() *cobra.Command { +func QueryVaultIdOfOwnerByExtendedPairAndApp() *cobra.Command { cmd := &cobra.Command{ - Use: "vault-of-owner-by-extended-pair [product_id] [owner] [extendedPairID]", - Short: "vaults list for an individual account by extended pair", + Use: "vault-id-of-owner-by-extended-pair-and-app [app_id] [owner] [extendedPairID]", + Short: "Query vault id for an individual account by extended pair id and app", Args: cobra.ExactArgs(3), RunE: func(cmd *cobra.Command, args []string) error { pagination, err := client.ReadPageRequest(cmd.Flags()) @@ -162,7 +160,7 @@ func QueryVaultOfOwnerByExtendedPair() *cobra.Command { if err != nil { return err } - productID, err := strconv.ParseUint(args[0], 10, 64) + appID, err := strconv.ParseUint(args[0], 10, 64) if err != nil { return err } @@ -174,8 +172,8 @@ func QueryVaultOfOwnerByExtendedPair() *cobra.Command { queryClient := types.NewQueryClient(ctx) - res, err := queryClient.QueryVaultOfOwnerByExtendedPair(cmd.Context(), &types.QueryVaultOfOwnerByExtendedPairRequest{ - ProductId: productID, + res, err := queryClient.QueryVaultIdOfOwnerByExtendedPairAndApp(cmd.Context(), &types.QueryVaultIdOfOwnerByExtendedPairAndAppRequest{ + AppId: appID, Owner: args[1], ExtendedPairId: extendedPairid, Pagination: pagination, @@ -192,10 +190,10 @@ func QueryVaultOfOwnerByExtendedPair() *cobra.Command { return cmd } -func QueryVaultInfoByAppByOwner() *cobra.Command { +func QueryVaultInfoOfOwnerByApp() *cobra.Command { cmd := &cobra.Command{ - Use: "vaultInfoByAppByOwner [appID] [owner]", - Short: "vaults list for an owner by App", + Use: "vaultsInfo-of-owner-by-app [appID] [owner]", + Short: "Query vaultsInfo of an owner by App", Args: cobra.ExactArgs(2), RunE: func(cmd *cobra.Command, args []string) error { ctx, err := client.GetClientQueryContext(cmd) @@ -209,7 +207,7 @@ func QueryVaultInfoByAppByOwner() *cobra.Command { queryClient := types.NewQueryClient(ctx) - res, err := queryClient.QueryVaultInfoByAppByOwner(cmd.Context(), &types.QueryVaultInfoByAppByOwnerRequest{ + res, err := queryClient.QueryVaultInfoOfOwnerByApp(cmd.Context(), &types.QueryVaultInfoOfOwnerByAppRequest{ AppId: appID, Owner: args[1], }) @@ -228,7 +226,7 @@ func QueryVaultInfoByAppByOwner() *cobra.Command { func QueryAllVaultsByAppAndExtendedPair() *cobra.Command { cmd := &cobra.Command{ Use: "vaults-by-app-and-extended-pair [appID] [extendedPairID]", - Short: "vaults list by app and extended pair", + Short: "Query all vaults by app and extended pair", Args: cobra.ExactArgs(2), RunE: func(cmd *cobra.Command, args []string) error { pagination, err := client.ReadPageRequest(cmd.Flags()) @@ -269,10 +267,10 @@ func QueryAllVaultsByAppAndExtendedPair() *cobra.Command { return cmd } -func QueryVaultInfo() *cobra.Command { +func QueryVaultInfoByVaultId() *cobra.Command { cmd := &cobra.Command{ - Use: "vaultsInfo [id]", - Short: "vaults list for an id", + Use: "vaultsInfo-by-vault-id [id]", + Short: "Query vaultsInfo by vault id", Args: cobra.ExactArgs(1), RunE: func(cmd *cobra.Command, args []string) error { ctx, err := client.GetClientQueryContext(cmd) @@ -282,7 +280,7 @@ func QueryVaultInfo() *cobra.Command { queryClient := types.NewQueryClient(ctx) - res, err := queryClient.QueryVaultInfo(cmd.Context(), &types.QueryVaultInfoRequest{ + res, err := queryClient.QueryVaultInfoByVaultId(cmd.Context(), &types.QueryVaultInfoByVaultIdRequest{ Id: args[0], }) @@ -297,10 +295,10 @@ func QueryVaultInfo() *cobra.Command { return cmd } -func QueryVaultByProduct() *cobra.Command { +func QueryVaultIdsByAppInAllExtendedPairs() *cobra.Command { cmd := &cobra.Command{ - Use: "extendedPairvaults-by-product [product_id]", - Short: "extended pair vaults list for a product", + Use: "vaultIds-by-app-in-all-extendedPairs [app_id]", + Short: "Query VaultIds ByApp In All ExtendedPairs", Args: cobra.ExactArgs(1), RunE: func(cmd *cobra.Command, args []string) error { pagination, err := client.ReadPageRequest(cmd.Flags()) @@ -312,15 +310,15 @@ func QueryVaultByProduct() *cobra.Command { if err != nil { return err } - productID, err := strconv.ParseUint(args[0], 10, 64) + appID, err := strconv.ParseUint(args[0], 10, 64) if err != nil { return err } queryClient := types.NewQueryClient(ctx) - res, err := queryClient.QueryVaultByProduct(cmd.Context(), &types.QueryVaultByProductRequest{ - ProductId: productID, + res, err := queryClient.QueryVaultIdsByAppInAllExtendedPairs(cmd.Context(), &types.QueryVaultIdsByAppInAllExtendedPairsRequest{ + AppId: appID, Pagination: pagination, }) @@ -335,10 +333,10 @@ func QueryVaultByProduct() *cobra.Command { return cmd } -func QueryAllVaultByOwner() *cobra.Command { +func QueryAllVaultIdsByAnOwner() *cobra.Command { cmd := &cobra.Command{ - Use: "vaults-by-owner [owner]", - Short: "vaults list for a product by owner", + Use: "vaults-ids-by-an-owner [owner]", + Short: "Query all vaults ids by an owner", Args: cobra.ExactArgs(1), RunE: func(cmd *cobra.Command, args []string) error { pagination, err := client.ReadPageRequest(cmd.Flags()) @@ -353,7 +351,7 @@ func QueryAllVaultByOwner() *cobra.Command { queryClient := types.NewQueryClient(ctx) - res, err := queryClient.QueryAllVaultByOwner(cmd.Context(), &types.QueryAllVaultByOwnerRequest{ + res, err := queryClient.QueryAllVaultIdsByAnOwner(cmd.Context(), &types.QueryAllVaultIdsByAnOwnerRequest{ Owner: args[0], Pagination: pagination, }) @@ -369,10 +367,10 @@ func QueryAllVaultByOwner() *cobra.Command { return cmd } -func QueryTokenMintedAllProductsByPair() *cobra.Command { +func QueryTokenMintedByAppAndExtendedPair() *cobra.Command { cmd := &cobra.Command{ - Use: "token-minted-by-products-extended-pair [product_id] [extendedPairID]", - Short: "token minted by products and extended pair", + Use: "token-minted-by-App-and-extended-pair [app_id] [extendedPairID]", + Short: "Query token minted by App and extended pair", Args: cobra.ExactArgs(2), RunE: func(cmd *cobra.Command, args []string) error { pagination, err := client.ReadPageRequest(cmd.Flags()) @@ -384,7 +382,7 @@ func QueryTokenMintedAllProductsByPair() *cobra.Command { if err != nil { return err } - productID, err := strconv.ParseUint(args[0], 10, 64) + appID, err := strconv.ParseUint(args[0], 10, 64) if err != nil { return err } @@ -395,8 +393,8 @@ func QueryTokenMintedAllProductsByPair() *cobra.Command { queryClient := types.NewQueryClient(ctx) - res, err := queryClient.QueryTokenMintedAllProductsByPair(cmd.Context(), &types.QueryTokenMintedAllProductsByPairRequest{ - ProductId: productID, + res, err := queryClient.QueryTokenMintedByAppAndExtendedPair(cmd.Context(), &types.QueryTokenMintedByAppAndExtendedPairRequest{ + AppId: appID, ExtendedPairId: extendedPairID, Pagination: pagination, }) @@ -412,10 +410,10 @@ func QueryTokenMintedAllProductsByPair() *cobra.Command { return cmd } -func QueryTokenMintedByProductAssetWise() *cobra.Command { +func QueryTokenMintedAssetWiseByApp() *cobra.Command { cmd := &cobra.Command{ - Use: "token-minted-by-products-asset-wise [product_id]", - Short: "token minted by products asset wise", + Use: "token-minted-asset-wise-by-app [app_id]", + Short: "Query token minted asset wise in an App", Args: cobra.ExactArgs(1), RunE: func(cmd *cobra.Command, args []string) error { pagination, err := client.ReadPageRequest(cmd.Flags()) @@ -427,15 +425,15 @@ func QueryTokenMintedByProductAssetWise() *cobra.Command { if err != nil { return err } - productID, err := strconv.ParseUint(args[0], 10, 64) + appID, err := strconv.ParseUint(args[0], 10, 64) if err != nil { return err } queryClient := types.NewQueryClient(ctx) - res, err := queryClient.QueryTokenMintedByProductAssetWise(cmd.Context(), &types.QueryTokenMintedByProductAssetWiseRequest{ - ProductId: productID, + res, err := queryClient.QueryTokenMintedAssetWiseByApp(cmd.Context(), &types.QueryTokenMintedAssetWiseByAppRequest{ + AppId: appID, Pagination: pagination, }) @@ -450,10 +448,10 @@ func QueryTokenMintedByProductAssetWise() *cobra.Command { return cmd } -func QueryVaultCountByProduct() *cobra.Command { +func QueryVaultCountByApp() *cobra.Command { cmd := &cobra.Command{ - Use: "vault-count-by-products [product_id]", - Short: "vault count by products", + Use: "vault-count-by-an-App [app_id]", + Short: "Query vault count by an App", Args: cobra.ExactArgs(1), RunE: func(cmd *cobra.Command, args []string) error { pagination, err := client.ReadPageRequest(cmd.Flags()) @@ -465,15 +463,15 @@ func QueryVaultCountByProduct() *cobra.Command { if err != nil { return err } - productID, err := strconv.ParseUint(args[0], 10, 64) + appID, err := strconv.ParseUint(args[0], 10, 64) if err != nil { return err } queryClient := types.NewQueryClient(ctx) - res, err := queryClient.QueryVaultCountByProduct(cmd.Context(), &types.QueryVaultCountByProductRequest{ - ProductId: productID, + res, err := queryClient.QueryVaultCountByApp(cmd.Context(), &types.QueryVaultCountByAppRequest{ + AppId: appID, Pagination: pagination, }) @@ -488,10 +486,10 @@ func QueryVaultCountByProduct() *cobra.Command { return cmd } -func QueryVaultCountByProductAndPair() *cobra.Command { +func QueryVaultCountByAppAndExtendedPair() *cobra.Command { cmd := &cobra.Command{ - Use: "vault-count-by-products-and-pair [product_id] [extendedPairID]", - Short: "vault count by products and extended pair", + Use: "vault-count-by-an-App-and-extended-pair [app_id] [extendedPairID]", + Short: "Query vault count by an App and extended pair", Args: cobra.ExactArgs(2), RunE: func(cmd *cobra.Command, args []string) error { pagination, err := client.ReadPageRequest(cmd.Flags()) @@ -503,7 +501,7 @@ func QueryVaultCountByProductAndPair() *cobra.Command { if err != nil { return err } - productID, err := strconv.ParseUint(args[0], 10, 64) + appID, err := strconv.ParseUint(args[0], 10, 64) if err != nil { return err } @@ -514,8 +512,8 @@ func QueryVaultCountByProductAndPair() *cobra.Command { queryClient := types.NewQueryClient(ctx) - res, err := queryClient.QueryVaultCountByProductAndPair(cmd.Context(), &types.QueryVaultCountByProductAndPairRequest{ - ProductId: productID, + res, err := queryClient.QueryVaultCountByAppAndExtendedPair(cmd.Context(), &types.QueryVaultCountByAppAndExtendedPairRequest{ + AppId: appID, ExtendedPairId: extendedPairID, Pagination: pagination, }) @@ -531,10 +529,10 @@ func QueryVaultCountByProductAndPair() *cobra.Command { return cmd } -func QueryTotalValueLockedByProductExtendedPair() *cobra.Command { +func QueryTotalValueLockedByAppExtendedPair() *cobra.Command { cmd := &cobra.Command{ - Use: "value-locked-by-product-extended-pair [product_id] [extendedPairID]", - Short: "value locked by product extended pair", + Use: "value-locked-by-App-extended-pair [app_id] [extendedPairID]", + Short: "Query value locked in an App and extended pair", Args: cobra.ExactArgs(2), RunE: func(cmd *cobra.Command, args []string) error { pagination, err := client.ReadPageRequest(cmd.Flags()) @@ -546,7 +544,7 @@ func QueryTotalValueLockedByProductExtendedPair() *cobra.Command { if err != nil { return err } - productID, err := strconv.ParseUint(args[0], 10, 64) + appID, err := strconv.ParseUint(args[0], 10, 64) if err != nil { return err } @@ -557,8 +555,8 @@ func QueryTotalValueLockedByProductExtendedPair() *cobra.Command { queryClient := types.NewQueryClient(ctx) - res, err := queryClient.QueryTotalValueLockedByProductExtendedPair(cmd.Context(), &types.QueryTotalValueLockedByProductExtendedPairRequest{ - ProductId: productID, + res, err := queryClient.QueryTotalValueLockedByAppExtendedPair(cmd.Context(), &types.QueryTotalValueLockedByAppExtendedPairRequest{ + AppId: appID, ExtendedPairId: extendedPairID, Pagination: pagination, }) @@ -574,10 +572,10 @@ func QueryTotalValueLockedByProductExtendedPair() *cobra.Command { return cmd } -func QueryExtendedPairIDByProduct() *cobra.Command { +func QueryExtendedPairIDsByApp() *cobra.Command { cmd := &cobra.Command{ - Use: "extended-pair-by-product [product_id]", - Short: "value locked by product in extended pair", + Use: "extended-pair-id-by-App [app_id]", + Short: "Query extended pair ids by an App", Args: cobra.ExactArgs(1), RunE: func(cmd *cobra.Command, args []string) error { pagination, err := client.ReadPageRequest(cmd.Flags()) @@ -589,15 +587,15 @@ func QueryExtendedPairIDByProduct() *cobra.Command { if err != nil { return err } - productID, err := strconv.ParseUint(args[0], 10, 64) + appID, err := strconv.ParseUint(args[0], 10, 64) if err != nil { return err } queryClient := types.NewQueryClient(ctx) - res, err := queryClient.QueryExtendedPairIDByProduct(cmd.Context(), &types.QueryExtendedPairIDByProductRequest{ - ProductId: productID, + res, err := queryClient.QueryExtendedPairIDsByApp(cmd.Context(), &types.QueryExtendedPairIDsByAppRequest{ + AppId: appID, Pagination: pagination, }) @@ -612,10 +610,10 @@ func QueryExtendedPairIDByProduct() *cobra.Command { return cmd } -func QueryStableVaultInfo() *cobra.Command { +func QueryStableVaultByVaultId() *cobra.Command { cmd := &cobra.Command{ Use: "stable-vault-by-id [stable_vault_id]", - Short: "get stable vault by id", + Short: "Query stable vault by vault id", Args: cobra.ExactArgs(1), RunE: func(cmd *cobra.Command, args []string) error { ctx, err := client.GetClientQueryContext(cmd) @@ -625,7 +623,7 @@ func QueryStableVaultInfo() *cobra.Command { queryClient := types.NewQueryClient(ctx) - res, err := queryClient.QueryStableVaultInfo(cmd.Context(), &types.QueryStableVaultInfoRequest{ + res, err := queryClient.QueryStableVaultByVaultId(cmd.Context(), &types.QueryStableVaultByVaultIdRequest{ StableVaultId: args[0], }) @@ -640,10 +638,10 @@ func QueryStableVaultInfo() *cobra.Command { return cmd } -func QueryAllStableVaults() *cobra.Command { +func QueryStableVaultByApp() *cobra.Command { cmd := &cobra.Command{ - Use: "stable-vault-by-product [appID]", - Short: "get stable vault by product", + Use: "stable-vault-by-App [appID]", + Short: "Query stable vault by App", Args: cobra.ExactArgs(1), RunE: func(cmd *cobra.Command, args []string) error { ctx, err := client.GetClientQueryContext(cmd) @@ -657,7 +655,7 @@ func QueryAllStableVaults() *cobra.Command { queryClient := types.NewQueryClient(ctx) - res, err := queryClient.QueryAllStableVaults(cmd.Context(), &types.QueryAllStableVaultsRequest{ + res, err := queryClient.QueryStableVaultByApp(cmd.Context(), &types.QueryStableVaultByAppRequest{ AppId: appID, }) @@ -672,10 +670,10 @@ func QueryAllStableVaults() *cobra.Command { return cmd } -func QueryStableVaultByProductExtendedPair() *cobra.Command { +func QueryStableVaultByAppExtendedPair() *cobra.Command { cmd := &cobra.Command{ - Use: "stable-vault-by-product-extendedPair [appID] [extendedPairID]", - Short: "get stable vault by product and extended pair", + Use: "stable-vault-by-App-extendedPair [appID] [extendedPairID]", + Short: "Query stable vault by App and extended pair", Args: cobra.ExactArgs(2), RunE: func(cmd *cobra.Command, args []string) error { ctx, err := client.GetClientQueryContext(cmd) @@ -693,7 +691,7 @@ func QueryStableVaultByProductExtendedPair() *cobra.Command { queryClient := types.NewQueryClient(ctx) - res, err := queryClient.QueryStableVaultByProductExtendedPair(cmd.Context(), &types.QueryStableVaultByProductExtendedPairRequest{ + res, err := queryClient.QueryStableVaultByAppExtendedPair(cmd.Context(), &types.QueryStableVaultByAppExtendedPairRequest{ AppId: appID, ExtendedPairId: extendedPairID, }) @@ -711,8 +709,8 @@ func QueryStableVaultByProductExtendedPair() *cobra.Command { func QueryExtendedPairVaultMappingByApp() *cobra.Command { cmd := &cobra.Command{ - Use: "extendedPairVault-by-product [appID]", - Short: "get ExtendedPair Vault By App", + Use: "extendedPairVault-mapping-by-App [appID]", + Short: "Query ExtendedPair Vault Mapping By App", Args: cobra.ExactArgs(1), RunE: func(cmd *cobra.Command, args []string) error { ctx, err := client.GetClientQueryContext(cmd) @@ -743,8 +741,8 @@ func QueryExtendedPairVaultMappingByApp() *cobra.Command { func QueryExtendedPairVaultMappingByAppAndExtendedPairID() *cobra.Command { cmd := &cobra.Command{ - Use: "extendedPairVault-by-product-and-ExtendedPairId [appID] [extendedPairID]", - Short: "get ExtendedPair Vault Mapping By App And ExtendedPairId", + Use: "extendedPairVault-mapping-by-App-and-ExtendedPairId [appID] [extendedPairID]", + Short: "Query ExtendedPair Vault Mapping By App And ExtendedPairId", Args: cobra.ExactArgs(2), RunE: func(cmd *cobra.Command, args []string) error { ctx, err := client.GetClientQueryContext(cmd) @@ -778,82 +776,11 @@ func QueryExtendedPairVaultMappingByAppAndExtendedPairID() *cobra.Command { return cmd } -func QueryExtendedPairVaultMappingByOwnerAndApp() *cobra.Command { - cmd := &cobra.Command{ - Use: "extendedPairVault-by-owner-and-product [owner] [appID]", - Short: "get ExtendedPair Vault Mapping By owner and App", - Args: cobra.ExactArgs(2), - RunE: func(cmd *cobra.Command, args []string) error { - ctx, err := client.GetClientQueryContext(cmd) - if err != nil { - return err - } - appID, err := strconv.ParseUint(args[1], 10, 64) - if err != nil { - return err - } - - queryClient := types.NewQueryClient(ctx) - - res, err := queryClient.QueryExtendedPairVaultMappingByOwnerAndApp(cmd.Context(), &types.QueryExtendedPairVaultMappingByOwnerAndAppRequest{ - Owner: args[0], - AppId: appID, - }) - - if err != nil { - return err - } - return ctx.PrintProto(res) - }, - } - - flags.AddQueryFlagsToCmd(cmd) - return cmd -} - -func QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairID() *cobra.Command { - cmd := &cobra.Command{ - Use: "extendedPairVault-by-owner-product-and-extended-pair [owner] [appID] [extendedPair]", - Short: "get ExtendedPair Vault Mapping By owner App and extended pair", - Args: cobra.ExactArgs(3), - RunE: func(cmd *cobra.Command, args []string) error { - ctx, err := client.GetClientQueryContext(cmd) - if err != nil { - return err - } - appID, err := strconv.ParseUint(args[1], 10, 64) - if err != nil { - return err - } - - extendedPair, err := strconv.ParseUint(args[2], 10, 64) - if err != nil { - return err - } - - queryClient := types.NewQueryClient(ctx) - - res, err := queryClient.QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairID(cmd.Context(), &types.QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairIDRequest{ - Owner: args[0], - AppId: appID, - ExtendedPair: extendedPair, - }) - - if err != nil { - return err - } - return ctx.PrintProto(res) - }, - } - - flags.AddQueryFlagsToCmd(cmd) - return cmd -} func QueryTVLLockedByAppOfAllExtendedPairs() *cobra.Command { cmd := &cobra.Command{ Use: "tvl-locked-by-app-all-extended-pairs [appID]", - Short: "get tvl locked By App of all extended pairs", + Short: "Query tvl locked By App of all extended pairs", Args: cobra.ExactArgs(1), RunE: func(cmd *cobra.Command, args []string) error { ctx, err := client.GetClientQueryContext(cmd) @@ -885,7 +812,7 @@ func QueryTVLLockedByAppOfAllExtendedPairs() *cobra.Command { func QueryTotalTVLByApp() *cobra.Command { cmd := &cobra.Command{ Use: "tvl-locked-by-app [appID]", - Short: "get tvl locked By App", + Short: "Query total tvl locked by an App", Args: cobra.ExactArgs(1), RunE: func(cmd *cobra.Command, args []string) error { ctx, err := client.GetClientQueryContext(cmd) @@ -917,7 +844,7 @@ func QueryTotalTVLByApp() *cobra.Command { func QueryUserMyPositionByApp() *cobra.Command { cmd := &cobra.Command{ Use: "user-my-position-by-app [appID] [owner]", - Short: "user my position by app", + Short: "Query user my position by app", Args: cobra.ExactArgs(2), RunE: func(cmd *cobra.Command, args []string) error { ctx, err := client.GetClientQueryContext(cmd) @@ -949,8 +876,8 @@ func QueryUserMyPositionByApp() *cobra.Command { func QueryUserExtendedPairTotalData() *cobra.Command { cmd := &cobra.Command{ - Use: "user-extended-total-data [owner]", - Short: "User Extended Pair Total Data", + Use: "user-extended-pair-total-data [owner]", + Short: "Query user Extended Pair Total Data", Args: cobra.ExactArgs(1), RunE: func(cmd *cobra.Command, args []string) error { ctx, err := client.GetClientQueryContext(cmd) diff --git a/x/vault/keeper/msg_server.go b/x/vault/keeper/msg_server.go index effb6fac9..900ac0dd7 100644 --- a/x/vault/keeper/msg_server.go +++ b/x/vault/keeper/msg_server.go @@ -46,7 +46,7 @@ func (k *msgServer) MsgCreate(c context.Context, msg *types.MsgCreateRequest) (* return nil, types.ErrorAssetDoesNotExist } - appMapping, found := k.GetApp(ctx, msg.AppMappingId) + appMapping, found := k.GetApp(ctx, msg.AppId) if !found { return nil, types.ErrorAppMappingDoesNotExist } @@ -230,7 +230,7 @@ func (k *msgServer) MsgDeposit(c context.Context, msg *types.MsgDepositRequest) } //Checking if appMapping_id exists - appMapping, found := k.GetApp(ctx, msg.AppMappingId) + appMapping, found := k.GetApp(ctx, msg.AppId) if !found { return nil, types.ErrorAppMappingDoesNotExist } @@ -304,7 +304,7 @@ func (k *msgServer) MsgWithdraw(c context.Context, msg *types.MsgWithdrawRequest // } //Checking if appMapping_id exists - appMapping, found := k.GetApp(ctx, msg.AppMappingId) + appMapping, found := k.GetApp(ctx, msg.AppId) if !found { return nil, types.ErrorAppMappingDoesNotExist } @@ -386,7 +386,7 @@ func (k *msgServer) MsgDraw(c context.Context, msg *types.MsgDrawRequest) (*type } //Checking if appMapping_id exists - appMapping, found := k.GetApp(ctx, msg.AppMappingId) + appMapping, found := k.GetApp(ctx, msg.AppId) if !found { return nil, types.ErrorAppMappingDoesNotExist } @@ -504,7 +504,7 @@ func (k *msgServer) MsgRepay(c context.Context, msg *types.MsgRepayRequest) (*ty } //Checking if appMapping_id exists - appMapping, found := k.GetApp(ctx, msg.AppMappingId) + appMapping, found := k.GetApp(ctx, msg.AppId) if !found { return nil, types.ErrorAppMappingDoesNotExist } @@ -629,7 +629,7 @@ func (k *msgServer) MsgClose(c context.Context, msg *types.MsgCloseRequest) (*ty } //Checking if appMapping_id exists - appMapping, found := k.GetApp(ctx, msg.AppMappingId) + appMapping, found := k.GetApp(ctx, msg.AppId) if !found { return nil, types.ErrorAppMappingDoesNotExist } @@ -724,7 +724,7 @@ func (k *msgServer) MsgCreateStableMint(c context.Context, msg *types.MsgCreateS return nil, types.ErrorAssetDoesNotExist } //Checking if appMapping_id exists - appMapping, found := k.GetApp(ctx, msg.AppMappingId) + appMapping, found := k.GetApp(ctx, msg.AppId) if !found { return nil, types.ErrorAppMappingDoesNotExist } @@ -840,7 +840,7 @@ func (k *msgServer) MsgDepositStableMint(c context.Context, msg *types.MsgDeposi } //Checking if appMapping_id exists - appMapping, found := k.GetApp(ctx, msg.AppMappingId) + appMapping, found := k.GetApp(ctx, msg.AppId) if !found { return nil, types.ErrorAppMappingDoesNotExist } @@ -955,7 +955,7 @@ func (k *msgServer) MsgWithdrawStableMint(c context.Context, msg *types.MsgWithd } //Checking if appMapping_id exists - appMapping, found := k.GetApp(ctx, msg.AppMappingId) + appMapping, found := k.GetApp(ctx, msg.AppId) if !found { return nil, types.ErrorAppMappingDoesNotExist } diff --git a/x/vault/keeper/query_server.go b/x/vault/keeper/query_server.go index a3b394e1f..6b380a5b1 100644 --- a/x/vault/keeper/query_server.go +++ b/x/vault/keeper/query_server.go @@ -36,20 +36,20 @@ func (q *queryServer) QueryAllVaults(c context.Context, req *types.QueryAllVault }, nil } -func (q *queryServer) QueryAllVaultsByProduct(c context.Context, req *types.QueryAllVaultsByProductRequest) (*types.QueryAllVaultsByProductResponse, error) { +func (q *queryServer) QueryAllVaultsByApp(c context.Context, req *types.QueryAllVaultsByAppRequest) (*types.QueryAllVaultsByAppResponse, error) { var ( ctx = sdk.UnwrapSDKContext(c) - productVaults []types.Vault + AppVaults []types.Vault ) vaults := q.GetVaults(ctx) for _, data := range vaults { if data.AppMappingId == req.AppId { - productVaults = append(productVaults, data) + AppVaults = append(AppVaults, data) } } - return &types.QueryAllVaultsByProductResponse{ - Vault: productVaults, + return &types.QueryAllVaultsByAppResponse{ + Vault: AppVaults, }, nil } @@ -70,7 +70,7 @@ func (q *queryServer) QueryVault(c context.Context, req *types.QueryVaultRequest Vault: vault, }, nil } -func (q *queryServer) QueryVaultInfo(c context.Context, req *types.QueryVaultInfoRequest) (*types.QueryVaultInfoResponse, error) { +func (q *queryServer) QueryVaultInfoByVaultId(c context.Context, req *types.QueryVaultInfoByVaultIdRequest) (*types.QueryVaultInfoByVaultIdResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "request cannot be empty") } @@ -81,7 +81,7 @@ func (q *queryServer) QueryVaultInfo(c context.Context, req *types.QueryVaultInf vault, found := q.GetVault(ctx, req.Id) if !found { - return &types.QueryVaultInfoResponse{}, nil + return &types.QueryVaultInfoByVaultIdResponse{}, nil } collateralizationRatio, err := q.CalculateCollaterlizationRatio(ctx, vault.ExtendedPairVaultID, vault.AmountIn, vault.AmountOut) @@ -92,7 +92,7 @@ func (q *queryServer) QueryVaultInfo(c context.Context, req *types.QueryVaultInf pairID, _ := q.GetPair(ctx, pairVaults.PairId) assetIn, _ := q.GetAsset(ctx, pairID.AssetIn) assetOut, _ := q.GetAsset(ctx, pairID.AssetOut) - return &types.QueryVaultInfoResponse{ + return &types.QueryVaultInfoByVaultIdResponse{ VaultsInfo: types.VaultInfo{ Id: req.Id, ExtendedPairID: vault.ExtendedPairVaultID, @@ -109,7 +109,7 @@ func (q *queryServer) QueryVaultInfo(c context.Context, req *types.QueryVaultInf }, nil } -func (q *queryServer) QueryVaultInfoByAppByOwner(c context.Context, req *types.QueryVaultInfoByAppByOwnerRequest) (*types.QueryVaultInfoByAppByOwnerResponse, error) { +func (q *queryServer) QueryVaultInfoOfOwnerByApp(c context.Context, req *types.QueryVaultInfoOfOwnerByAppRequest) (*types.QueryVaultInfoOfOwnerByAppResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "request cannot be empty") } @@ -167,10 +167,10 @@ func (q *queryServer) QueryVaultInfoByAppByOwner(c context.Context, req *types.Q vaultsInfo = append(vaultsInfo, vaults) } if count == 0 { - return &types.QueryVaultInfoByAppByOwnerResponse{}, nil + return &types.QueryVaultInfoOfOwnerByAppResponse{}, nil } - return &types.QueryVaultInfoByAppByOwnerResponse{ + return &types.QueryVaultInfoOfOwnerByAppResponse{ VaultsInfo: vaultsInfo, }, nil } @@ -186,7 +186,7 @@ func (q *queryServer) QueryAllVaultsByAppAndExtendedPair(c context.Context, req _, found := q.GetApp(ctx, req.AppId) if !found { - return nil, status.Errorf(codes.NotFound, "product does not exist for id %d", req.AppId) + return nil, status.Errorf(codes.NotFound, "App does not exist for id %d", req.AppId) } _, nfound := q.GetPairsVault(ctx, req.ExtendedPairId) @@ -207,7 +207,7 @@ func (q *queryServer) QueryAllVaultsByAppAndExtendedPair(c context.Context, req }, nil } -func (q *queryServer) QueryVaultOfOwnerByExtendedPair(c context.Context, req *types.QueryVaultOfOwnerByExtendedPairRequest) (*types.QueryVaultOfOwnerByExtendedPairResponse, error) { +func (q *queryServer) QueryVaultIdOfOwnerByExtendedPairAndApp(c context.Context, req *types.QueryVaultIdOfOwnerByExtendedPairAndAppRequest) (*types.QueryVaultIdOfOwnerByExtendedPairAndAppResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "request cannot be empty") } @@ -216,9 +216,9 @@ func (q *queryServer) QueryVaultOfOwnerByExtendedPair(c context.Context, req *ty vaultID = "" ) - _, found := q.GetApp(ctx, req.ProductId) + _, found := q.GetApp(ctx, req.AppId) if !found { - return nil, status.Errorf(codes.NotFound, "product does not exist for id %d", req.ProductId) + return nil, status.Errorf(codes.NotFound, "App does not exist for id %d", req.AppId) } _, err := sdk.AccAddressFromBech32(req.Owner) @@ -228,23 +228,23 @@ func (q *queryServer) QueryVaultOfOwnerByExtendedPair(c context.Context, req *ty _, nfound := q.GetPairsVault(ctx, req.ExtendedPairId) if !nfound { - return &types.QueryVaultOfOwnerByExtendedPairResponse{}, nil + return &types.QueryVaultIdOfOwnerByExtendedPairAndAppResponse{}, nil } vaultData := q.GetVaults(ctx) for _, data := range vaultData { - if data.AppMappingId == req.ProductId && data.ExtendedPairVaultID == req.ExtendedPairId && data.Owner == req.Owner { + if data.AppMappingId == req.AppId && data.ExtendedPairVaultID == req.ExtendedPairId && data.Owner == req.Owner { vaultID = data.Id } } - return &types.QueryVaultOfOwnerByExtendedPairResponse{ + return &types.QueryVaultIdOfOwnerByExtendedPairAndAppResponse{ Vault_Id: vaultID, }, nil } -func (q *queryServer) QueryVaultByProduct(c context.Context, req *types.QueryVaultByProductRequest) (*types.QueryVaultByProductResponse, error) { +func (q *queryServer) QueryVaultIdsByAppInAllExtendedPairs(c context.Context, req *types.QueryVaultIdsByAppInAllExtendedPairsRequest) (*types.QueryVaultIdsByAppInAllExtendedPairsResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "request cannot be empty") } @@ -253,25 +253,25 @@ func (q *queryServer) QueryVaultByProduct(c context.Context, req *types.QueryVau vaultsIds []string ) - _, found := q.GetApp(ctx, req.ProductId) + _, found := q.GetApp(ctx, req.AppId) if !found { - return nil, status.Errorf(codes.NotFound, "product does not exist for id %d", req.ProductId) + return nil, status.Errorf(codes.NotFound, "App does not exist for id %d", req.AppId) } - appExtendedPairVaultData, found := q.GetAppExtendedPairVaultMapping(ctx, req.ProductId) + appExtendedPairVaultData, found := q.GetAppExtendedPairVaultMapping(ctx, req.AppId) if !found { - return &types.QueryVaultByProductResponse{}, nil + return &types.QueryVaultIdsByAppInAllExtendedPairsResponse{}, nil } for _, data := range appExtendedPairVaultData.ExtendedPairVaults { vaultsIds = append(vaultsIds, data.VaultIds...) } - return &types.QueryVaultByProductResponse{ + return &types.QueryVaultIdsByAppInAllExtendedPairsResponse{ VaultIds: vaultsIds, }, nil } -func (q *queryServer) QueryAllVaultByOwner(c context.Context, req *types.QueryAllVaultByOwnerRequest) (*types.QueryAllVaultByOwnerResponse, error) { +func (q *queryServer) QueryAllVaultIdsByAnOwner(c context.Context, req *types.QueryAllVaultIdsByAnOwnerRequest) (*types.QueryAllVaultIdsByAnOwnerResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "request cannot be empty") } @@ -293,12 +293,12 @@ func (q *queryServer) QueryAllVaultByOwner(c context.Context, req *types.QueryAl } } - return &types.QueryAllVaultByOwnerResponse{ + return &types.QueryAllVaultIdsByAnOwnerResponse{ VaultIds: vaultsIds, }, nil } -func (q *queryServer) QueryTokenMintedAllProductsByPair(c context.Context, req *types.QueryTokenMintedAllProductsByPairRequest) (*types.QueryTokenMintedAllProductsByPairResponse, error) { +func (q *queryServer) QueryTokenMintedByAppAndExtendedPair(c context.Context, req *types.QueryTokenMintedByAppAndExtendedPairRequest) (*types.QueryTokenMintedByAppAndExtendedPairResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "request cannot be empty") } @@ -306,18 +306,18 @@ func (q *queryServer) QueryTokenMintedAllProductsByPair(c context.Context, req * ctx = sdk.UnwrapSDKContext(c) tokenMinted = sdk.ZeroInt() ) - _, found := q.GetApp(ctx, req.ProductId) + _, found := q.GetApp(ctx, req.AppId) if !found { - return nil, status.Errorf(codes.NotFound, "product does not exist for id %d", req.ProductId) + return nil, status.Errorf(codes.NotFound, "App does not exist for id %d", req.AppId) } _, nfound := q.GetPairsVault(ctx, req.ExtendedPairId) if !nfound { return nil, status.Errorf(codes.NotFound, "extended pair does not exist for id %d", req.ExtendedPairId) } - appExtendedPairVaultData, found := q.GetAppExtendedPairVaultMapping(ctx, req.ProductId) + appExtendedPairVaultData, found := q.GetAppExtendedPairVaultMapping(ctx, req.AppId) if !found { - return nil, status.Errorf(codes.NotFound, "Pair vault does not exist for product id %d", req.ProductId) + return nil, status.Errorf(codes.NotFound, "Pair vault does not exist for App id %d", req.AppId) } for _, data := range appExtendedPairVaultData.ExtendedPairVaults { @@ -326,12 +326,12 @@ func (q *queryServer) QueryTokenMintedAllProductsByPair(c context.Context, req * } } - return &types.QueryTokenMintedAllProductsByPairResponse{ + return &types.QueryTokenMintedByAppAndExtendedPairResponse{ TokenMinted: tokenMinted, }, nil } -func (q *queryServer) QueryTokenMintedByProductAssetWise(c context.Context, req *types.QueryTokenMintedByProductAssetWiseRequest) (*types.QueryTokenMintedByProductAssetWiseResponse, error) { +func (q *queryServer) QueryTokenMintedAssetWiseByApp(c context.Context, req *types.QueryTokenMintedAssetWiseByAppRequest) (*types.QueryTokenMintedAssetWiseByAppResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "request cannot be empty") } @@ -341,14 +341,14 @@ func (q *queryServer) QueryTokenMintedByProductAssetWise(c context.Context, req ctx = sdk.UnwrapSDKContext(c) mintedData []types.MintedDataMap ) - _, found := q.GetApp(ctx, req.ProductId) + _, found := q.GetApp(ctx, req.AppId) if !found { - return nil, status.Errorf(codes.NotFound, "product does not exist for id %d", req.ProductId) + return nil, status.Errorf(codes.NotFound, "App does not exist for id %d", req.AppId) } - appExtendedPairVaultData, found := q.GetAppExtendedPairVaultMapping(ctx, req.ProductId) + appExtendedPairVaultData, found := q.GetAppExtendedPairVaultMapping(ctx, req.AppId) if !found { - return &types.QueryTokenMintedByProductAssetWiseResponse{}, nil + return &types.QueryTokenMintedAssetWiseByAppResponse{}, nil } for _, data := range appExtendedPairVaultData.ExtendedPairVaults { extPairVault, _ := q.GetPairsVault(ctx, data.ExtendedPairId) @@ -366,12 +366,12 @@ func (q *queryServer) QueryTokenMintedByProductAssetWise(c context.Context, req mintedData = append(mintedData, minted) } - return &types.QueryTokenMintedByProductAssetWiseResponse{ + return &types.QueryTokenMintedAssetWiseByAppResponse{ MintedData: mintedData, }, nil } -func (q *queryServer) QueryVaultCountByProduct(c context.Context, req *types.QueryVaultCountByProductRequest) (*types.QueryVaultCountByProductResponse, error) { +func (q *queryServer) QueryVaultCountByApp(c context.Context, req *types.QueryVaultCountByAppRequest) (*types.QueryVaultCountByAppResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "request cannot be empty") } @@ -379,24 +379,24 @@ func (q *queryServer) QueryVaultCountByProduct(c context.Context, req *types.Que ctx = sdk.UnwrapSDKContext(c) count uint64 ) - _, found := q.GetApp(ctx, req.ProductId) + _, found := q.GetApp(ctx, req.AppId) if !found { - return nil, status.Errorf(codes.NotFound, "product does not exist for id %d", req.ProductId) + return nil, status.Errorf(codes.NotFound, "App does not exist for id %d", req.AppId) } - appExtendedPairVaultData, found := q.GetAppExtendedPairVaultMapping(ctx, req.ProductId) + appExtendedPairVaultData, found := q.GetAppExtendedPairVaultMapping(ctx, req.AppId) if !found { - return &types.QueryVaultCountByProductResponse{}, nil + return &types.QueryVaultCountByAppResponse{}, nil } count = appExtendedPairVaultData.Counter - return &types.QueryVaultCountByProductResponse{ + return &types.QueryVaultCountByAppResponse{ VaultCount: count, }, nil } -func (q *queryServer) QueryVaultCountByProductAndPair(c context.Context, req *types.QueryVaultCountByProductAndPairRequest) (*types.QueryVaultCountByProductAndPairResponse, error) { +func (q *queryServer) QueryVaultCountByAppAndExtendedPair(c context.Context, req *types.QueryVaultCountByAppAndExtendedPairRequest) (*types.QueryVaultCountByAppAndExtendedPairResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "request cannot be empty") } @@ -404,14 +404,14 @@ func (q *queryServer) QueryVaultCountByProductAndPair(c context.Context, req *ty ctx = sdk.UnwrapSDKContext(c) count uint64 = 0 ) - _, found := q.GetApp(ctx, req.ProductId) + _, found := q.GetApp(ctx, req.AppId) if !found { - return nil, status.Errorf(codes.NotFound, "product does not exist for id %d", req.ProductId) + return nil, status.Errorf(codes.NotFound, "App does not exist for id %d", req.AppId) } - appExtendedPairVaultData, found := q.GetAppExtendedPairVaultMapping(ctx, req.ProductId) + appExtendedPairVaultData, found := q.GetAppExtendedPairVaultMapping(ctx, req.AppId) if !found { - return &types.QueryVaultCountByProductAndPairResponse{}, nil + return &types.QueryVaultCountByAppAndExtendedPairResponse{}, nil } for _, data := range appExtendedPairVaultData.ExtendedPairVaults { if data.ExtendedPairId == req.ExtendedPairId { @@ -419,12 +419,12 @@ func (q *queryServer) QueryVaultCountByProductAndPair(c context.Context, req *ty } } - return &types.QueryVaultCountByProductAndPairResponse{ + return &types.QueryVaultCountByAppAndExtendedPairResponse{ VaultCount: count, }, nil } -func (q *queryServer) QueryTotalValueLockedByProductExtendedPair(c context.Context, req *types.QueryTotalValueLockedByProductExtendedPairRequest) (*types.QueryTotalValueLockedByProductExtendedPairResponse, error) { +func (q *queryServer) QueryTotalValueLockedByAppExtendedPair(c context.Context, req *types.QueryTotalValueLockedByAppExtendedPairRequest) (*types.QueryTotalValueLockedByAppExtendedPairResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "request cannot be empty") } @@ -432,18 +432,18 @@ func (q *queryServer) QueryTotalValueLockedByProductExtendedPair(c context.Conte ctx = sdk.UnwrapSDKContext(c) valueLocked = sdk.ZeroInt() ) - _, found := q.GetApp(ctx, req.ProductId) + _, found := q.GetApp(ctx, req.AppId) if !found { - return nil, status.Errorf(codes.NotFound, "product does not exist for id %d", req.ProductId) + return nil, status.Errorf(codes.NotFound, "App does not exist for id %d", req.AppId) } _, nfound := q.GetPairsVault(ctx, req.ExtendedPairId) if !nfound { - return &types.QueryTotalValueLockedByProductExtendedPairResponse{}, nil + return &types.QueryTotalValueLockedByAppExtendedPairResponse{}, nil } - appExtendedPairVaultData, found := q.GetAppExtendedPairVaultMapping(ctx, req.ProductId) + appExtendedPairVaultData, found := q.GetAppExtendedPairVaultMapping(ctx, req.AppId) if !found { - return &types.QueryTotalValueLockedByProductExtendedPairResponse{}, nil + return &types.QueryTotalValueLockedByAppExtendedPairResponse{}, nil } for _, data := range appExtendedPairVaultData.ExtendedPairVaults { if data.ExtendedPairId == req.ExtendedPairId { @@ -451,12 +451,12 @@ func (q *queryServer) QueryTotalValueLockedByProductExtendedPair(c context.Conte } } - return &types.QueryTotalValueLockedByProductExtendedPairResponse{ + return &types.QueryTotalValueLockedByAppExtendedPairResponse{ ValueLocked: &valueLocked, }, nil } -func (q *queryServer) QueryExtendedPairIDByProduct(c context.Context, req *types.QueryExtendedPairIDByProductRequest) (*types.QueryExtendedPairIDByProductResponse, error) { +func (q *queryServer) QueryExtendedPairIDsByApp(c context.Context, req *types.QueryExtendedPairIDsByAppRequest) (*types.QueryExtendedPairIDsByAppResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "request cannot be empty") } @@ -466,25 +466,25 @@ func (q *queryServer) QueryExtendedPairIDByProduct(c context.Context, req *types ctx = sdk.UnwrapSDKContext(c) pairIDs []uint64 ) - _, found := q.GetApp(ctx, req.ProductId) + _, found := q.GetApp(ctx, req.AppId) if !found { - return nil, status.Errorf(codes.NotFound, "product does not exist for id %d", req.ProductId) + return nil, status.Errorf(codes.NotFound, "App does not exist for id %d", req.AppId) } - appExtendedPairVaultData, found := q.GetAppExtendedPairVaultMapping(ctx, req.ProductId) + appExtendedPairVaultData, found := q.GetAppExtendedPairVaultMapping(ctx, req.AppId) if !found { - return &types.QueryExtendedPairIDByProductResponse{}, nil + return &types.QueryExtendedPairIDsByAppResponse{}, nil } for _, data := range appExtendedPairVaultData.ExtendedPairVaults { pairIDs = append(pairIDs, data.ExtendedPairId) } - return &types.QueryExtendedPairIDByProductResponse{ + return &types.QueryExtendedPairIDsByAppResponse{ ExtendedPairIds: pairIDs, }, nil } -func (q *queryServer) QueryStableVaultInfo(c context.Context, req *types.QueryStableVaultInfoRequest) (*types.QueryStableVaultInfoResponse, error) { +func (q *queryServer) QueryStableVaultByVaultId(c context.Context, req *types.QueryStableVaultByVaultIdRequest) (*types.QueryStableVaultByVaultIdResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "request cannot be empty") } @@ -493,15 +493,15 @@ func (q *queryServer) QueryStableVaultInfo(c context.Context, req *types.QuerySt ) stableMintData, found := q.GetStableMintVault(ctx, req.StableVaultId) if !found { - return &types.QueryStableVaultInfoResponse{}, nil + return &types.QueryStableVaultByVaultIdResponse{}, nil } - return &types.QueryStableVaultInfoResponse{ + return &types.QueryStableVaultByVaultIdResponse{ StableMintVault: &stableMintData, }, nil } -func (q *queryServer) QueryAllStableVaults(c context.Context, req *types.QueryAllStableVaultsRequest) (*types.QueryAllStableVaultsResponse, error) { +func (q *queryServer) QueryStableVaultByApp(c context.Context, req *types.QueryStableVaultByAppRequest) (*types.QueryStableVaultByAppResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "request cannot be empty") } @@ -517,12 +517,12 @@ func (q *queryServer) QueryAllStableVaults(c context.Context, req *types.QueryAl } } - return &types.QueryAllStableVaultsResponse{ + return &types.QueryStableVaultByAppResponse{ StableMintVault: stableMintData, }, nil } -func (q *queryServer) QueryStableVaultByProductExtendedPair(c context.Context, req *types.QueryStableVaultByProductExtendedPairRequest) (*types.QueryStableVaultByProductExtendedPairResponse, error) { +func (q *queryServer) QueryStableVaultByAppExtendedPair(c context.Context, req *types.QueryStableVaultByAppExtendedPairRequest) (*types.QueryStableVaultByAppExtendedPairResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "request cannot be empty") } @@ -537,7 +537,7 @@ func (q *queryServer) QueryStableVaultByProductExtendedPair(c context.Context, r } } - return &types.QueryStableVaultByProductExtendedPairResponse{ + return &types.QueryStableVaultByAppExtendedPairResponse{ StableMintVault: &stableMintData, }, nil } @@ -553,7 +553,7 @@ func (q *queryServer) QueryExtendedPairVaultMappingByAppAndExtendedPairId(c cont ) _, found := q.GetApp(ctx, req.AppId) if !found { - return nil, status.Errorf(codes.NotFound, "product does not exist for id %d", req.AppId) + return nil, status.Errorf(codes.NotFound, "App does not exist for id %d", req.AppId) } appExtendedPairVaultData, found := q.GetAppExtendedPairVaultMapping(ctx, req.AppId) @@ -581,7 +581,7 @@ func (q *queryServer) QueryExtendedPairVaultMappingByApp(c context.Context, req ) _, found := q.GetApp(ctx, req.AppId) if !found { - return nil, status.Errorf(codes.NotFound, "product does not exist for id %d", req.AppId) + return nil, status.Errorf(codes.NotFound, "App does not exist for id %d", req.AppId) } appExtendedPairVaultData, found := q.GetAppExtendedPairVaultMapping(ctx, req.AppId) @@ -595,65 +595,6 @@ func (q *queryServer) QueryExtendedPairVaultMappingByApp(c context.Context, req }, nil } -func (q *queryServer) QueryExtendedPairVaultMappingByOwnerAndApp(c context.Context, req *types.QueryExtendedPairVaultMappingByOwnerAndAppRequest) (*types.QueryExtendedPairVaultMappingByOwnerAndAppResponse, error) { - if req == nil { - return nil, status.Error(codes.InvalidArgument, "request cannot be empty") - } - var ( - ctx = sdk.UnwrapSDKContext(c) - extendedPairVault []*types.ExtendedPairToVaultMapping - ) - _, found := q.GetApp(ctx, req.AppId) - if !found { - return nil, status.Errorf(codes.NotFound, "product does not exist for id %d", req.AppId) - } - - userVaultAssetData, found := q.GetUserVaultExtendedPairMapping(ctx, req.Owner) - if !found { - return &types.QueryExtendedPairVaultMappingByOwnerAndAppResponse{}, nil - } - for _, data := range userVaultAssetData.UserVaultApp { - if data.AppMappingId == req.AppId { - extendedPairVault = append(extendedPairVault, data.UserExtendedPairVault...) - } - } - - return &types.QueryExtendedPairVaultMappingByOwnerAndAppResponse{ - ExtendedPairtoVaultMapping: extendedPairVault, - }, nil -} - -func (q *queryServer) QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairID(c context.Context, req *types.QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairIDRequest) (*types.QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairIDResponse, error) { - if req == nil { - return nil, status.Error(codes.InvalidArgument, "request cannot be empty") - } - var ( - ctx = sdk.UnwrapSDKContext(c) - vaultID string - ) - _, found := q.GetApp(ctx, req.AppId) - if !found { - return nil, status.Errorf(codes.NotFound, "product does not exist for id %d", req.AppId) - } - - userVaultAssetData, found := q.GetUserVaultExtendedPairMapping(ctx, req.Owner) - if !found { - return &types.QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairIDResponse{}, nil - } - for _, data := range userVaultAssetData.UserVaultApp { - if data.AppMappingId == req.AppId { - for _, inData := range data.UserExtendedPairVault { - if inData.ExtendedPairId == req.ExtendedPair { - vaultID = inData.VaultId - } - } - } - } - - return &types.QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairIDResponse{ - VaultId: vaultID, - }, nil -} func (q *queryServer) QueryTVLLockedByAppOfAllExtendedPairs(c context.Context, req *types.QueryTVLLockedByAppOfAllExtendedPairsRequest) (*types.QueryTVLLockedByAppOfAllExtendedPairsResponse, error) { if req == nil { @@ -667,7 +608,7 @@ func (q *queryServer) QueryTVLLockedByAppOfAllExtendedPairs(c context.Context, r ) _, found := q.GetApp(ctx, req.AppId) if !found { - return nil, status.Errorf(codes.NotFound, "product does not exist for id %d", req.AppId) + return nil, status.Errorf(codes.NotFound, "App does not exist for id %d", req.AppId) } appExtendedPairVaultData, found := q.GetAppExtendedPairVaultMapping(ctx, req.AppId) @@ -705,7 +646,7 @@ func (q *queryServer) QueryTotalTVLByApp(c context.Context, req *types.QueryTota ) _, found := q.GetApp(ctx, req.AppId) if !found { - return nil, status.Errorf(codes.NotFound, "product does not exist for id %d", req.AppId) + return nil, status.Errorf(codes.NotFound, "App does not exist for id %d", req.AppId) } appExtendedPairVaultData, found := q.GetAppExtendedPairVaultMapping(ctx, req.AppId) diff --git a/x/vault/keeper/vault.go b/x/vault/keeper/vault.go index 666b1e3f9..ec3130514 100644 --- a/x/vault/keeper/vault.go +++ b/x/vault/keeper/vault.go @@ -351,10 +351,12 @@ func (k *Keeper) UpdateUserVaultExtendedPairMapping(ctx sdk.Context, extendedPai dataIndex = index } } - a := appData.UserExtendedPairVault[0:dataIndex] - b := appData.UserExtendedPairVault[dataIndex+1:] - a = append(a, b...) - appData.UserExtendedPairVault = a + // a := appData.UserExtendedPairVault[0:dataIndex] + // b := appData.UserExtendedPairVault[dataIndex+1:] + // a = append(a, b...) + // appData.UserExtendedPairVault = a + // break + appData.UserExtendedPairVault=append(appData.UserExtendedPairVault[:dataIndex], appData.UserExtendedPairVault[dataIndex+1:]...) break } } @@ -374,10 +376,12 @@ func (k *Keeper) DeleteAddressFromAppExtendedPairVaultMapping(ctx sdk.Context, e dataIndex = index } } - a := appData.VaultIds[0:dataIndex] - b := appData.VaultIds[dataIndex+1:] - a = append(a, b...) - appData.VaultIds = a + // a := appData.VaultIds[0:dataIndex] + // b := appData.VaultIds[dataIndex+1:] + // a = append(a, b...) + // appData.VaultIds = a + appData.VaultIds=append(appData.VaultIds[:dataIndex], appData.VaultIds[dataIndex+1:]...) + } } err := k.SetAppExtendedPairVaultMapping(ctx, appExtendedPairVaultData) diff --git a/x/vault/types/msg.go b/x/vault/types/msg.go index 09e8af5f2..e0bbc5d04 100644 --- a/x/vault/types/msg.go +++ b/x/vault/types/msg.go @@ -20,10 +20,10 @@ var ( func NewMsgCreateRequest( // nolint from sdk.AccAddress, - appMappingID uint64, extendedPairVaultID uint64, amountIn sdk.Int, amountOut sdk.Int) *MsgCreateRequest { + appID uint64, extendedPairVaultID uint64, amountIn sdk.Int, amountOut sdk.Int) *MsgCreateRequest { return &MsgCreateRequest{ From: from.String(), - AppMappingId: appMappingID, + AppId: appID, ExtendedPairVaultId: extendedPairVaultID, AmountIn: amountIn, AmountOut: amountOut, @@ -83,10 +83,10 @@ func (m *MsgCreateRequest) GetSigners() []sdk.AccAddress { func NewMsgDepositRequest( // nolint from sdk.AccAddress, - appMappingID uint64, extendedPairVaultID uint64, userVaultid string, amount sdk.Int) *MsgDepositRequest { + appID uint64, extendedPairVaultID uint64, userVaultid string, amount sdk.Int) *MsgDepositRequest { return &MsgDepositRequest{ From: from.String(), - AppMappingId: appMappingID, + AppId: appID, ExtendedPairVaultId: extendedPairVaultID, UserVaultId: userVaultid, Amount: amount, @@ -140,10 +140,10 @@ func (m *MsgDepositRequest) GetSigners() []sdk.AccAddress { func NewMsgWithdrawRequest( // nolint from sdk.AccAddress, - appMappingID uint64, extendedPairVaultID uint64, userVaultid string, amount sdk.Int) *MsgWithdrawRequest { + appID uint64, extendedPairVaultID uint64, userVaultid string, amount sdk.Int) *MsgWithdrawRequest { return &MsgWithdrawRequest{ From: from.String(), - AppMappingId: appMappingID, + AppId: appID, ExtendedPairVaultId: extendedPairVaultID, UserVaultId: userVaultid, Amount: amount, @@ -197,10 +197,10 @@ func (m *MsgWithdrawRequest) GetSigners() []sdk.AccAddress { func NewMsgDrawRequest( // nolint from sdk.AccAddress, - appMappingID uint64, extendedPairVaultID uint64, userVaultid string, amount sdk.Int) *MsgDrawRequest { + appID uint64, extendedPairVaultID uint64, userVaultid string, amount sdk.Int) *MsgDrawRequest { return &MsgDrawRequest{ From: from.String(), - AppMappingId: appMappingID, + AppId: appID, ExtendedPairVaultId: extendedPairVaultID, UserVaultId: userVaultid, Amount: amount, @@ -254,10 +254,10 @@ func (m *MsgDrawRequest) GetSigners() []sdk.AccAddress { func NewMsgRepayRequest( // nolint from sdk.AccAddress, - appMappingID uint64, extendedPairVaultID uint64, userVaultid string, amount sdk.Int) *MsgRepayRequest { + appID uint64, extendedPairVaultID uint64, userVaultid string, amount sdk.Int) *MsgRepayRequest { return &MsgRepayRequest{ From: from.String(), - AppMappingId: appMappingID, + AppId: appID, ExtendedPairVaultId: extendedPairVaultID, UserVaultId: userVaultid, Amount: amount, @@ -311,10 +311,10 @@ func (m *MsgRepayRequest) GetSigners() []sdk.AccAddress { func NewMsgLiquidateRequest( // nolint from sdk.AccAddress, - appMappingID uint64, extendedPairVaultID uint64, userVaultid string) *MsgCloseRequest { + appID uint64, extendedPairVaultID uint64, userVaultid string) *MsgCloseRequest { return &MsgCloseRequest{ From: from.String(), - AppMappingId: appMappingID, + AppId: appID, ExtendedPairVaultId: extendedPairVaultID, UserVaultId: userVaultid, } @@ -358,10 +358,10 @@ func (m *MsgCloseRequest) GetSigners() []sdk.AccAddress { func NewMsgCreateStableMintRequest( // nolint from sdk.AccAddress, - appMappingID uint64, extendedPairVaultID uint64, amount sdk.Int) *MsgCreateStableMintRequest { + appID uint64, extendedPairVaultID uint64, amount sdk.Int) *MsgCreateStableMintRequest { return &MsgCreateStableMintRequest{ From: from.String(), - AppMappingId: appMappingID, + AppId: appID, ExtendedPairVaultId: extendedPairVaultID, Amount: amount, } @@ -411,10 +411,10 @@ func (m *MsgCreateStableMintRequest) GetSigners() []sdk.AccAddress { func NewMsgDepositStableMintRequest( // nolint from sdk.AccAddress, - appMappingID uint64, extendedPairVaultID uint64, amount sdk.Int, stablemintID string) *MsgDepositStableMintRequest { + appID uint64, extendedPairVaultID uint64, amount sdk.Int, stablemintID string) *MsgDepositStableMintRequest { return &MsgDepositStableMintRequest{ From: from.String(), - AppMappingId: appMappingID, + AppId: appID, ExtendedPairVaultId: extendedPairVaultID, Amount: amount, StableVaultId: stablemintID, @@ -465,10 +465,10 @@ func (m *MsgDepositStableMintRequest) GetSigners() []sdk.AccAddress { func NewMsgWithdrawStableMintRequest( // nolint from sdk.AccAddress, - appMappingID uint64, extendedPairVaultID uint64, amount sdk.Int, stablemintID string) *MsgWithdrawStableMintRequest { + appID uint64, extendedPairVaultID uint64, amount sdk.Int, stablemintID string) *MsgWithdrawStableMintRequest { return &MsgWithdrawStableMintRequest{ From: from.String(), - AppMappingId: appMappingID, + AppId: appID, ExtendedPairVaultId: extendedPairVaultID, Amount: amount, StableVaultId: stablemintID, diff --git a/x/vault/types/query.pb.go b/x/vault/types/query.pb.go index 1552484ba..3fbed1191 100644 --- a/x/vault/types/query.pb.go +++ b/x/vault/types/query.pb.go @@ -152,22 +152,22 @@ func (m *QueryVaultResponse) XXX_DiscardUnknown() { var xxx_messageInfo_QueryVaultResponse proto.InternalMessageInfo -type QueryVaultInfoRequest struct { +type QueryVaultInfoByVaultIdRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" yaml:"id"` } -func (m *QueryVaultInfoRequest) Reset() { *m = QueryVaultInfoRequest{} } -func (m *QueryVaultInfoRequest) String() string { return proto.CompactTextString(m) } -func (*QueryVaultInfoRequest) ProtoMessage() {} -func (*QueryVaultInfoRequest) Descriptor() ([]byte, []int) { +func (m *QueryVaultInfoByVaultIdRequest) Reset() { *m = QueryVaultInfoByVaultIdRequest{} } +func (m *QueryVaultInfoByVaultIdRequest) String() string { return proto.CompactTextString(m) } +func (*QueryVaultInfoByVaultIdRequest) ProtoMessage() {} +func (*QueryVaultInfoByVaultIdRequest) Descriptor() ([]byte, []int) { return fileDescriptor_8d35126a97363346, []int{3} } -func (m *QueryVaultInfoRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryVaultInfoByVaultIdRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryVaultInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryVaultInfoByVaultIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryVaultInfoRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryVaultInfoByVaultIdRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -177,34 +177,34 @@ func (m *QueryVaultInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byt return b[:n], nil } } -func (m *QueryVaultInfoRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryVaultInfoRequest.Merge(m, src) +func (m *QueryVaultInfoByVaultIdRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryVaultInfoByVaultIdRequest.Merge(m, src) } -func (m *QueryVaultInfoRequest) XXX_Size() int { +func (m *QueryVaultInfoByVaultIdRequest) XXX_Size() int { return m.Size() } -func (m *QueryVaultInfoRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryVaultInfoRequest.DiscardUnknown(m) +func (m *QueryVaultInfoByVaultIdRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryVaultInfoByVaultIdRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryVaultInfoRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryVaultInfoByVaultIdRequest proto.InternalMessageInfo -type QueryVaultInfoResponse struct { +type QueryVaultInfoByVaultIdResponse struct { VaultsInfo VaultInfo `protobuf:"bytes,1,opt,name=vaultsInfo,proto3" json:"vaultsInfo" yaml:"vaultsInfo"` } -func (m *QueryVaultInfoResponse) Reset() { *m = QueryVaultInfoResponse{} } -func (m *QueryVaultInfoResponse) String() string { return proto.CompactTextString(m) } -func (*QueryVaultInfoResponse) ProtoMessage() {} -func (*QueryVaultInfoResponse) Descriptor() ([]byte, []int) { +func (m *QueryVaultInfoByVaultIdResponse) Reset() { *m = QueryVaultInfoByVaultIdResponse{} } +func (m *QueryVaultInfoByVaultIdResponse) String() string { return proto.CompactTextString(m) } +func (*QueryVaultInfoByVaultIdResponse) ProtoMessage() {} +func (*QueryVaultInfoByVaultIdResponse) Descriptor() ([]byte, []int) { return fileDescriptor_8d35126a97363346, []int{4} } -func (m *QueryVaultInfoResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryVaultInfoByVaultIdResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryVaultInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryVaultInfoByVaultIdResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryVaultInfoResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryVaultInfoByVaultIdResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -214,35 +214,35 @@ func (m *QueryVaultInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]by return b[:n], nil } } -func (m *QueryVaultInfoResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryVaultInfoResponse.Merge(m, src) +func (m *QueryVaultInfoByVaultIdResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryVaultInfoByVaultIdResponse.Merge(m, src) } -func (m *QueryVaultInfoResponse) XXX_Size() int { +func (m *QueryVaultInfoByVaultIdResponse) XXX_Size() int { return m.Size() } -func (m *QueryVaultInfoResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryVaultInfoResponse.DiscardUnknown(m) +func (m *QueryVaultInfoByVaultIdResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryVaultInfoByVaultIdResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryVaultInfoResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryVaultInfoByVaultIdResponse proto.InternalMessageInfo -type QueryVaultInfoByAppByOwnerRequest struct { +type QueryVaultInfoOfOwnerByAppRequest struct { AppId uint64 `protobuf:"varint,1,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty" yaml:"app_id"` Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty" yaml:"owner"` } -func (m *QueryVaultInfoByAppByOwnerRequest) Reset() { *m = QueryVaultInfoByAppByOwnerRequest{} } -func (m *QueryVaultInfoByAppByOwnerRequest) String() string { return proto.CompactTextString(m) } -func (*QueryVaultInfoByAppByOwnerRequest) ProtoMessage() {} -func (*QueryVaultInfoByAppByOwnerRequest) Descriptor() ([]byte, []int) { +func (m *QueryVaultInfoOfOwnerByAppRequest) Reset() { *m = QueryVaultInfoOfOwnerByAppRequest{} } +func (m *QueryVaultInfoOfOwnerByAppRequest) String() string { return proto.CompactTextString(m) } +func (*QueryVaultInfoOfOwnerByAppRequest) ProtoMessage() {} +func (*QueryVaultInfoOfOwnerByAppRequest) Descriptor() ([]byte, []int) { return fileDescriptor_8d35126a97363346, []int{5} } -func (m *QueryVaultInfoByAppByOwnerRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryVaultInfoOfOwnerByAppRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryVaultInfoByAppByOwnerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryVaultInfoOfOwnerByAppRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryVaultInfoByAppByOwnerRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryVaultInfoOfOwnerByAppRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -252,35 +252,35 @@ func (m *QueryVaultInfoByAppByOwnerRequest) XXX_Marshal(b []byte, deterministic return b[:n], nil } } -func (m *QueryVaultInfoByAppByOwnerRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryVaultInfoByAppByOwnerRequest.Merge(m, src) +func (m *QueryVaultInfoOfOwnerByAppRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryVaultInfoOfOwnerByAppRequest.Merge(m, src) } -func (m *QueryVaultInfoByAppByOwnerRequest) XXX_Size() int { +func (m *QueryVaultInfoOfOwnerByAppRequest) XXX_Size() int { return m.Size() } -func (m *QueryVaultInfoByAppByOwnerRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryVaultInfoByAppByOwnerRequest.DiscardUnknown(m) +func (m *QueryVaultInfoOfOwnerByAppRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryVaultInfoOfOwnerByAppRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryVaultInfoByAppByOwnerRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryVaultInfoOfOwnerByAppRequest proto.InternalMessageInfo -type QueryVaultInfoByAppByOwnerResponse struct { +type QueryVaultInfoOfOwnerByAppResponse struct { VaultsInfo []VaultInfo `protobuf:"bytes,1,rep,name=vaultsInfo,proto3" json:"vaultsInfo" yaml:"vaultsInfo"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty" yaml:"pagination"` } -func (m *QueryVaultInfoByAppByOwnerResponse) Reset() { *m = QueryVaultInfoByAppByOwnerResponse{} } -func (m *QueryVaultInfoByAppByOwnerResponse) String() string { return proto.CompactTextString(m) } -func (*QueryVaultInfoByAppByOwnerResponse) ProtoMessage() {} -func (*QueryVaultInfoByAppByOwnerResponse) Descriptor() ([]byte, []int) { +func (m *QueryVaultInfoOfOwnerByAppResponse) Reset() { *m = QueryVaultInfoOfOwnerByAppResponse{} } +func (m *QueryVaultInfoOfOwnerByAppResponse) String() string { return proto.CompactTextString(m) } +func (*QueryVaultInfoOfOwnerByAppResponse) ProtoMessage() {} +func (*QueryVaultInfoOfOwnerByAppResponse) Descriptor() ([]byte, []int) { return fileDescriptor_8d35126a97363346, []int{6} } -func (m *QueryVaultInfoByAppByOwnerResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryVaultInfoOfOwnerByAppResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryVaultInfoByAppByOwnerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryVaultInfoOfOwnerByAppResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryVaultInfoByAppByOwnerResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryVaultInfoOfOwnerByAppResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -290,17 +290,17 @@ func (m *QueryVaultInfoByAppByOwnerResponse) XXX_Marshal(b []byte, deterministic return b[:n], nil } } -func (m *QueryVaultInfoByAppByOwnerResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryVaultInfoByAppByOwnerResponse.Merge(m, src) +func (m *QueryVaultInfoOfOwnerByAppResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryVaultInfoOfOwnerByAppResponse.Merge(m, src) } -func (m *QueryVaultInfoByAppByOwnerResponse) XXX_Size() int { +func (m *QueryVaultInfoOfOwnerByAppResponse) XXX_Size() int { return m.Size() } -func (m *QueryVaultInfoByAppByOwnerResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryVaultInfoByAppByOwnerResponse.DiscardUnknown(m) +func (m *QueryVaultInfoOfOwnerByAppResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryVaultInfoOfOwnerByAppResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryVaultInfoByAppByOwnerResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryVaultInfoOfOwnerByAppResponse proto.InternalMessageInfo type QueryAllVaultsRequest struct { Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty" yaml:"pagination"` @@ -377,22 +377,22 @@ func (m *QueryAllVaultsResponse) XXX_DiscardUnknown() { var xxx_messageInfo_QueryAllVaultsResponse proto.InternalMessageInfo -type QueryAllVaultsByProductRequest struct { +type QueryAllVaultsByAppRequest struct { AppId uint64 `protobuf:"varint,1,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty" yaml:"app_id"` } -func (m *QueryAllVaultsByProductRequest) Reset() { *m = QueryAllVaultsByProductRequest{} } -func (m *QueryAllVaultsByProductRequest) String() string { return proto.CompactTextString(m) } -func (*QueryAllVaultsByProductRequest) ProtoMessage() {} -func (*QueryAllVaultsByProductRequest) Descriptor() ([]byte, []int) { +func (m *QueryAllVaultsByAppRequest) Reset() { *m = QueryAllVaultsByAppRequest{} } +func (m *QueryAllVaultsByAppRequest) String() string { return proto.CompactTextString(m) } +func (*QueryAllVaultsByAppRequest) ProtoMessage() {} +func (*QueryAllVaultsByAppRequest) Descriptor() ([]byte, []int) { return fileDescriptor_8d35126a97363346, []int{9} } -func (m *QueryAllVaultsByProductRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryAllVaultsByAppRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryAllVaultsByProductRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryAllVaultsByAppRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryAllVaultsByProductRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryAllVaultsByAppRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -402,35 +402,35 @@ func (m *QueryAllVaultsByProductRequest) XXX_Marshal(b []byte, deterministic boo return b[:n], nil } } -func (m *QueryAllVaultsByProductRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAllVaultsByProductRequest.Merge(m, src) +func (m *QueryAllVaultsByAppRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllVaultsByAppRequest.Merge(m, src) } -func (m *QueryAllVaultsByProductRequest) XXX_Size() int { +func (m *QueryAllVaultsByAppRequest) XXX_Size() int { return m.Size() } -func (m *QueryAllVaultsByProductRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAllVaultsByProductRequest.DiscardUnknown(m) +func (m *QueryAllVaultsByAppRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllVaultsByAppRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryAllVaultsByProductRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryAllVaultsByAppRequest proto.InternalMessageInfo -type QueryAllVaultsByProductResponse struct { +type QueryAllVaultsByAppResponse struct { Vault []Vault `protobuf:"bytes,1,rep,name=vault,proto3" json:"vault" yaml:"vault"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty" yaml:"pagination"` } -func (m *QueryAllVaultsByProductResponse) Reset() { *m = QueryAllVaultsByProductResponse{} } -func (m *QueryAllVaultsByProductResponse) String() string { return proto.CompactTextString(m) } -func (*QueryAllVaultsByProductResponse) ProtoMessage() {} -func (*QueryAllVaultsByProductResponse) Descriptor() ([]byte, []int) { +func (m *QueryAllVaultsByAppResponse) Reset() { *m = QueryAllVaultsByAppResponse{} } +func (m *QueryAllVaultsByAppResponse) String() string { return proto.CompactTextString(m) } +func (*QueryAllVaultsByAppResponse) ProtoMessage() {} +func (*QueryAllVaultsByAppResponse) Descriptor() ([]byte, []int) { return fileDescriptor_8d35126a97363346, []int{10} } -func (m *QueryAllVaultsByProductResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryAllVaultsByAppResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryAllVaultsByProductResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryAllVaultsByAppResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryAllVaultsByProductResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryAllVaultsByAppResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -440,17 +440,17 @@ func (m *QueryAllVaultsByProductResponse) XXX_Marshal(b []byte, deterministic bo return b[:n], nil } } -func (m *QueryAllVaultsByProductResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAllVaultsByProductResponse.Merge(m, src) +func (m *QueryAllVaultsByAppResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllVaultsByAppResponse.Merge(m, src) } -func (m *QueryAllVaultsByProductResponse) XXX_Size() int { +func (m *QueryAllVaultsByAppResponse) XXX_Size() int { return m.Size() } -func (m *QueryAllVaultsByProductResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAllVaultsByProductResponse.DiscardUnknown(m) +func (m *QueryAllVaultsByAppResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllVaultsByAppResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryAllVaultsByProductResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryAllVaultsByAppResponse proto.InternalMessageInfo type QueryAllVaultsByAppAndExtendedPairRequest struct { AppId uint64 `protobuf:"varint,1,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty" yaml:"app_id"` @@ -537,27 +537,29 @@ func (m *QueryAllVaultsByAppAndExtendedPairResponse) XXX_DiscardUnknown() { var xxx_messageInfo_QueryAllVaultsByAppAndExtendedPairResponse proto.InternalMessageInfo -type QueryVaultOfOwnerByExtendedPairRequest struct { - ProductId uint64 `protobuf:"varint,1,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty" yaml:"product_id"` +type QueryVaultIdOfOwnerByExtendedPairAndAppRequest struct { + AppId uint64 `protobuf:"varint,1,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty" yaml:"app_id"` Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty" yaml:"owner"` ExtendedPairId uint64 `protobuf:"varint,3,opt,name=extended_pair_id,json=extendedPairId,proto3" json:"extended_pair_id,omitempty" yaml:"extended_pair_id"` Pagination *query.PageRequest `protobuf:"bytes,4,opt,name=pagination,proto3" json:"pagination,omitempty" yaml:"pagination"` } -func (m *QueryVaultOfOwnerByExtendedPairRequest) Reset() { - *m = QueryVaultOfOwnerByExtendedPairRequest{} +func (m *QueryVaultIdOfOwnerByExtendedPairAndAppRequest) Reset() { + *m = QueryVaultIdOfOwnerByExtendedPairAndAppRequest{} +} +func (m *QueryVaultIdOfOwnerByExtendedPairAndAppRequest) String() string { + return proto.CompactTextString(m) } -func (m *QueryVaultOfOwnerByExtendedPairRequest) String() string { return proto.CompactTextString(m) } -func (*QueryVaultOfOwnerByExtendedPairRequest) ProtoMessage() {} -func (*QueryVaultOfOwnerByExtendedPairRequest) Descriptor() ([]byte, []int) { +func (*QueryVaultIdOfOwnerByExtendedPairAndAppRequest) ProtoMessage() {} +func (*QueryVaultIdOfOwnerByExtendedPairAndAppRequest) Descriptor() ([]byte, []int) { return fileDescriptor_8d35126a97363346, []int{13} } -func (m *QueryVaultOfOwnerByExtendedPairRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryVaultIdOfOwnerByExtendedPairAndAppRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryVaultOfOwnerByExtendedPairRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryVaultIdOfOwnerByExtendedPairAndAppRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryVaultOfOwnerByExtendedPairRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryVaultIdOfOwnerByExtendedPairAndAppRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -567,36 +569,38 @@ func (m *QueryVaultOfOwnerByExtendedPairRequest) XXX_Marshal(b []byte, determini return b[:n], nil } } -func (m *QueryVaultOfOwnerByExtendedPairRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryVaultOfOwnerByExtendedPairRequest.Merge(m, src) +func (m *QueryVaultIdOfOwnerByExtendedPairAndAppRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryVaultIdOfOwnerByExtendedPairAndAppRequest.Merge(m, src) } -func (m *QueryVaultOfOwnerByExtendedPairRequest) XXX_Size() int { +func (m *QueryVaultIdOfOwnerByExtendedPairAndAppRequest) XXX_Size() int { return m.Size() } -func (m *QueryVaultOfOwnerByExtendedPairRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryVaultOfOwnerByExtendedPairRequest.DiscardUnknown(m) +func (m *QueryVaultIdOfOwnerByExtendedPairAndAppRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryVaultIdOfOwnerByExtendedPairAndAppRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryVaultOfOwnerByExtendedPairRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryVaultIdOfOwnerByExtendedPairAndAppRequest proto.InternalMessageInfo -type QueryVaultOfOwnerByExtendedPairResponse struct { +type QueryVaultIdOfOwnerByExtendedPairAndAppResponse struct { Vault_Id string `protobuf:"bytes,1,opt,name=vault_Id,json=vaultId,proto3" json:"vault_Id,omitempty" yaml:"vault_Id"` } -func (m *QueryVaultOfOwnerByExtendedPairResponse) Reset() { - *m = QueryVaultOfOwnerByExtendedPairResponse{} +func (m *QueryVaultIdOfOwnerByExtendedPairAndAppResponse) Reset() { + *m = QueryVaultIdOfOwnerByExtendedPairAndAppResponse{} +} +func (m *QueryVaultIdOfOwnerByExtendedPairAndAppResponse) String() string { + return proto.CompactTextString(m) } -func (m *QueryVaultOfOwnerByExtendedPairResponse) String() string { return proto.CompactTextString(m) } -func (*QueryVaultOfOwnerByExtendedPairResponse) ProtoMessage() {} -func (*QueryVaultOfOwnerByExtendedPairResponse) Descriptor() ([]byte, []int) { +func (*QueryVaultIdOfOwnerByExtendedPairAndAppResponse) ProtoMessage() {} +func (*QueryVaultIdOfOwnerByExtendedPairAndAppResponse) Descriptor() ([]byte, []int) { return fileDescriptor_8d35126a97363346, []int{14} } -func (m *QueryVaultOfOwnerByExtendedPairResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryVaultIdOfOwnerByExtendedPairAndAppResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryVaultOfOwnerByExtendedPairResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryVaultIdOfOwnerByExtendedPairAndAppResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryVaultOfOwnerByExtendedPairResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryVaultIdOfOwnerByExtendedPairAndAppResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -606,35 +610,39 @@ func (m *QueryVaultOfOwnerByExtendedPairResponse) XXX_Marshal(b []byte, determin return b[:n], nil } } -func (m *QueryVaultOfOwnerByExtendedPairResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryVaultOfOwnerByExtendedPairResponse.Merge(m, src) +func (m *QueryVaultIdOfOwnerByExtendedPairAndAppResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryVaultIdOfOwnerByExtendedPairAndAppResponse.Merge(m, src) } -func (m *QueryVaultOfOwnerByExtendedPairResponse) XXX_Size() int { +func (m *QueryVaultIdOfOwnerByExtendedPairAndAppResponse) XXX_Size() int { return m.Size() } -func (m *QueryVaultOfOwnerByExtendedPairResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryVaultOfOwnerByExtendedPairResponse.DiscardUnknown(m) +func (m *QueryVaultIdOfOwnerByExtendedPairAndAppResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryVaultIdOfOwnerByExtendedPairAndAppResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryVaultOfOwnerByExtendedPairResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryVaultIdOfOwnerByExtendedPairAndAppResponse proto.InternalMessageInfo -type QueryVaultByProductRequest struct { - ProductId uint64 `protobuf:"varint,1,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty" yaml:"product_id"` +type QueryVaultIdsByAppInAllExtendedPairsRequest struct { + AppId uint64 `protobuf:"varint,1,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty" yaml:"app_id"` Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty" yaml:"pagination"` } -func (m *QueryVaultByProductRequest) Reset() { *m = QueryVaultByProductRequest{} } -func (m *QueryVaultByProductRequest) String() string { return proto.CompactTextString(m) } -func (*QueryVaultByProductRequest) ProtoMessage() {} -func (*QueryVaultByProductRequest) Descriptor() ([]byte, []int) { +func (m *QueryVaultIdsByAppInAllExtendedPairsRequest) Reset() { + *m = QueryVaultIdsByAppInAllExtendedPairsRequest{} +} +func (m *QueryVaultIdsByAppInAllExtendedPairsRequest) String() string { + return proto.CompactTextString(m) +} +func (*QueryVaultIdsByAppInAllExtendedPairsRequest) ProtoMessage() {} +func (*QueryVaultIdsByAppInAllExtendedPairsRequest) Descriptor() ([]byte, []int) { return fileDescriptor_8d35126a97363346, []int{15} } -func (m *QueryVaultByProductRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryVaultIdsByAppInAllExtendedPairsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryVaultByProductRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryVaultIdsByAppInAllExtendedPairsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryVaultByProductRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryVaultIdsByAppInAllExtendedPairsRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -644,34 +652,38 @@ func (m *QueryVaultByProductRequest) XXX_Marshal(b []byte, deterministic bool) ( return b[:n], nil } } -func (m *QueryVaultByProductRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryVaultByProductRequest.Merge(m, src) +func (m *QueryVaultIdsByAppInAllExtendedPairsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryVaultIdsByAppInAllExtendedPairsRequest.Merge(m, src) } -func (m *QueryVaultByProductRequest) XXX_Size() int { +func (m *QueryVaultIdsByAppInAllExtendedPairsRequest) XXX_Size() int { return m.Size() } -func (m *QueryVaultByProductRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryVaultByProductRequest.DiscardUnknown(m) +func (m *QueryVaultIdsByAppInAllExtendedPairsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryVaultIdsByAppInAllExtendedPairsRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryVaultByProductRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryVaultIdsByAppInAllExtendedPairsRequest proto.InternalMessageInfo -type QueryVaultByProductResponse struct { +type QueryVaultIdsByAppInAllExtendedPairsResponse struct { VaultIds []string `protobuf:"bytes,1,rep,name=vault_ids,json=vaultIds,proto3" json:"vault_ids,omitempty" yaml:"vault_ids"` } -func (m *QueryVaultByProductResponse) Reset() { *m = QueryVaultByProductResponse{} } -func (m *QueryVaultByProductResponse) String() string { return proto.CompactTextString(m) } -func (*QueryVaultByProductResponse) ProtoMessage() {} -func (*QueryVaultByProductResponse) Descriptor() ([]byte, []int) { +func (m *QueryVaultIdsByAppInAllExtendedPairsResponse) Reset() { + *m = QueryVaultIdsByAppInAllExtendedPairsResponse{} +} +func (m *QueryVaultIdsByAppInAllExtendedPairsResponse) String() string { + return proto.CompactTextString(m) +} +func (*QueryVaultIdsByAppInAllExtendedPairsResponse) ProtoMessage() {} +func (*QueryVaultIdsByAppInAllExtendedPairsResponse) Descriptor() ([]byte, []int) { return fileDescriptor_8d35126a97363346, []int{16} } -func (m *QueryVaultByProductResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryVaultIdsByAppInAllExtendedPairsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryVaultByProductResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryVaultIdsByAppInAllExtendedPairsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryVaultByProductResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryVaultIdsByAppInAllExtendedPairsResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -681,35 +693,35 @@ func (m *QueryVaultByProductResponse) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *QueryVaultByProductResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryVaultByProductResponse.Merge(m, src) +func (m *QueryVaultIdsByAppInAllExtendedPairsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryVaultIdsByAppInAllExtendedPairsResponse.Merge(m, src) } -func (m *QueryVaultByProductResponse) XXX_Size() int { +func (m *QueryVaultIdsByAppInAllExtendedPairsResponse) XXX_Size() int { return m.Size() } -func (m *QueryVaultByProductResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryVaultByProductResponse.DiscardUnknown(m) +func (m *QueryVaultIdsByAppInAllExtendedPairsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryVaultIdsByAppInAllExtendedPairsResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryVaultByProductResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryVaultIdsByAppInAllExtendedPairsResponse proto.InternalMessageInfo -type QueryAllVaultByOwnerRequest struct { +type QueryAllVaultIdsByAnOwnerRequest struct { Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty" yaml:"owner"` Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty" yaml:"pagination"` } -func (m *QueryAllVaultByOwnerRequest) Reset() { *m = QueryAllVaultByOwnerRequest{} } -func (m *QueryAllVaultByOwnerRequest) String() string { return proto.CompactTextString(m) } -func (*QueryAllVaultByOwnerRequest) ProtoMessage() {} -func (*QueryAllVaultByOwnerRequest) Descriptor() ([]byte, []int) { +func (m *QueryAllVaultIdsByAnOwnerRequest) Reset() { *m = QueryAllVaultIdsByAnOwnerRequest{} } +func (m *QueryAllVaultIdsByAnOwnerRequest) String() string { return proto.CompactTextString(m) } +func (*QueryAllVaultIdsByAnOwnerRequest) ProtoMessage() {} +func (*QueryAllVaultIdsByAnOwnerRequest) Descriptor() ([]byte, []int) { return fileDescriptor_8d35126a97363346, []int{17} } -func (m *QueryAllVaultByOwnerRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryAllVaultIdsByAnOwnerRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryAllVaultByOwnerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryAllVaultIdsByAnOwnerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryAllVaultByOwnerRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryAllVaultIdsByAnOwnerRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -719,34 +731,34 @@ func (m *QueryAllVaultByOwnerRequest) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *QueryAllVaultByOwnerRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAllVaultByOwnerRequest.Merge(m, src) +func (m *QueryAllVaultIdsByAnOwnerRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllVaultIdsByAnOwnerRequest.Merge(m, src) } -func (m *QueryAllVaultByOwnerRequest) XXX_Size() int { +func (m *QueryAllVaultIdsByAnOwnerRequest) XXX_Size() int { return m.Size() } -func (m *QueryAllVaultByOwnerRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAllVaultByOwnerRequest.DiscardUnknown(m) +func (m *QueryAllVaultIdsByAnOwnerRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllVaultIdsByAnOwnerRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryAllVaultByOwnerRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryAllVaultIdsByAnOwnerRequest proto.InternalMessageInfo -type QueryAllVaultByOwnerResponse struct { +type QueryAllVaultIdsByAnOwnerResponse struct { VaultIds []string `protobuf:"bytes,1,rep,name=vault_ids,json=vaultIds,proto3" json:"vault_ids,omitempty" yaml:"vault_ids"` } -func (m *QueryAllVaultByOwnerResponse) Reset() { *m = QueryAllVaultByOwnerResponse{} } -func (m *QueryAllVaultByOwnerResponse) String() string { return proto.CompactTextString(m) } -func (*QueryAllVaultByOwnerResponse) ProtoMessage() {} -func (*QueryAllVaultByOwnerResponse) Descriptor() ([]byte, []int) { +func (m *QueryAllVaultIdsByAnOwnerResponse) Reset() { *m = QueryAllVaultIdsByAnOwnerResponse{} } +func (m *QueryAllVaultIdsByAnOwnerResponse) String() string { return proto.CompactTextString(m) } +func (*QueryAllVaultIdsByAnOwnerResponse) ProtoMessage() {} +func (*QueryAllVaultIdsByAnOwnerResponse) Descriptor() ([]byte, []int) { return fileDescriptor_8d35126a97363346, []int{18} } -func (m *QueryAllVaultByOwnerResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryAllVaultIdsByAnOwnerResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryAllVaultByOwnerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryAllVaultIdsByAnOwnerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryAllVaultByOwnerResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryAllVaultIdsByAnOwnerResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -756,38 +768,40 @@ func (m *QueryAllVaultByOwnerResponse) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *QueryAllVaultByOwnerResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAllVaultByOwnerResponse.Merge(m, src) +func (m *QueryAllVaultIdsByAnOwnerResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllVaultIdsByAnOwnerResponse.Merge(m, src) } -func (m *QueryAllVaultByOwnerResponse) XXX_Size() int { +func (m *QueryAllVaultIdsByAnOwnerResponse) XXX_Size() int { return m.Size() } -func (m *QueryAllVaultByOwnerResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAllVaultByOwnerResponse.DiscardUnknown(m) +func (m *QueryAllVaultIdsByAnOwnerResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllVaultIdsByAnOwnerResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryAllVaultByOwnerResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryAllVaultIdsByAnOwnerResponse proto.InternalMessageInfo -type QueryTokenMintedAllProductsByPairRequest struct { - ProductId uint64 `protobuf:"varint,1,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty" yaml:"product_id"` +type QueryTokenMintedByAppAndExtendedPairRequest struct { + AppId uint64 `protobuf:"varint,1,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty" yaml:"app_id"` ExtendedPairId uint64 `protobuf:"varint,2,opt,name=extended_pair_id,json=extendedPairId,proto3" json:"extended_pair_id,omitempty" yaml:"extended_pair_id"` Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty" yaml:"pagination"` } -func (m *QueryTokenMintedAllProductsByPairRequest) Reset() { - *m = QueryTokenMintedAllProductsByPairRequest{} +func (m *QueryTokenMintedByAppAndExtendedPairRequest) Reset() { + *m = QueryTokenMintedByAppAndExtendedPairRequest{} } -func (m *QueryTokenMintedAllProductsByPairRequest) String() string { return proto.CompactTextString(m) } -func (*QueryTokenMintedAllProductsByPairRequest) ProtoMessage() {} -func (*QueryTokenMintedAllProductsByPairRequest) Descriptor() ([]byte, []int) { +func (m *QueryTokenMintedByAppAndExtendedPairRequest) String() string { + return proto.CompactTextString(m) +} +func (*QueryTokenMintedByAppAndExtendedPairRequest) ProtoMessage() {} +func (*QueryTokenMintedByAppAndExtendedPairRequest) Descriptor() ([]byte, []int) { return fileDescriptor_8d35126a97363346, []int{19} } -func (m *QueryTokenMintedAllProductsByPairRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryTokenMintedByAppAndExtendedPairRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryTokenMintedAllProductsByPairRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryTokenMintedByAppAndExtendedPairRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryTokenMintedAllProductsByPairRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryTokenMintedByAppAndExtendedPairRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -797,38 +811,38 @@ func (m *QueryTokenMintedAllProductsByPairRequest) XXX_Marshal(b []byte, determi return b[:n], nil } } -func (m *QueryTokenMintedAllProductsByPairRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryTokenMintedAllProductsByPairRequest.Merge(m, src) +func (m *QueryTokenMintedByAppAndExtendedPairRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryTokenMintedByAppAndExtendedPairRequest.Merge(m, src) } -func (m *QueryTokenMintedAllProductsByPairRequest) XXX_Size() int { +func (m *QueryTokenMintedByAppAndExtendedPairRequest) XXX_Size() int { return m.Size() } -func (m *QueryTokenMintedAllProductsByPairRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryTokenMintedAllProductsByPairRequest.DiscardUnknown(m) +func (m *QueryTokenMintedByAppAndExtendedPairRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryTokenMintedByAppAndExtendedPairRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryTokenMintedAllProductsByPairRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryTokenMintedByAppAndExtendedPairRequest proto.InternalMessageInfo -type QueryTokenMintedAllProductsByPairResponse struct { +type QueryTokenMintedByAppAndExtendedPairResponse struct { TokenMinted github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,1,opt,name=token_minted,json=tokenMinted,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"token_minted" yaml:"token_minted"` } -func (m *QueryTokenMintedAllProductsByPairResponse) Reset() { - *m = QueryTokenMintedAllProductsByPairResponse{} +func (m *QueryTokenMintedByAppAndExtendedPairResponse) Reset() { + *m = QueryTokenMintedByAppAndExtendedPairResponse{} } -func (m *QueryTokenMintedAllProductsByPairResponse) String() string { +func (m *QueryTokenMintedByAppAndExtendedPairResponse) String() string { return proto.CompactTextString(m) } -func (*QueryTokenMintedAllProductsByPairResponse) ProtoMessage() {} -func (*QueryTokenMintedAllProductsByPairResponse) Descriptor() ([]byte, []int) { +func (*QueryTokenMintedByAppAndExtendedPairResponse) ProtoMessage() {} +func (*QueryTokenMintedByAppAndExtendedPairResponse) Descriptor() ([]byte, []int) { return fileDescriptor_8d35126a97363346, []int{20} } -func (m *QueryTokenMintedAllProductsByPairResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryTokenMintedByAppAndExtendedPairResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryTokenMintedAllProductsByPairResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryTokenMintedByAppAndExtendedPairResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryTokenMintedAllProductsByPairResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryTokenMintedByAppAndExtendedPairResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -838,39 +852,35 @@ func (m *QueryTokenMintedAllProductsByPairResponse) XXX_Marshal(b []byte, determ return b[:n], nil } } -func (m *QueryTokenMintedAllProductsByPairResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryTokenMintedAllProductsByPairResponse.Merge(m, src) +func (m *QueryTokenMintedByAppAndExtendedPairResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryTokenMintedByAppAndExtendedPairResponse.Merge(m, src) } -func (m *QueryTokenMintedAllProductsByPairResponse) XXX_Size() int { +func (m *QueryTokenMintedByAppAndExtendedPairResponse) XXX_Size() int { return m.Size() } -func (m *QueryTokenMintedAllProductsByPairResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryTokenMintedAllProductsByPairResponse.DiscardUnknown(m) +func (m *QueryTokenMintedByAppAndExtendedPairResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryTokenMintedByAppAndExtendedPairResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryTokenMintedAllProductsByPairResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryTokenMintedByAppAndExtendedPairResponse proto.InternalMessageInfo -type QueryTokenMintedByProductAssetWiseRequest struct { - ProductId uint64 `protobuf:"varint,1,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty" yaml:"product_id"` +type QueryTokenMintedAssetWiseByAppRequest struct { + AppId uint64 `protobuf:"varint,1,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty" yaml:"app_id"` Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty" yaml:"pagination"` } -func (m *QueryTokenMintedByProductAssetWiseRequest) Reset() { - *m = QueryTokenMintedByProductAssetWiseRequest{} -} -func (m *QueryTokenMintedByProductAssetWiseRequest) String() string { - return proto.CompactTextString(m) -} -func (*QueryTokenMintedByProductAssetWiseRequest) ProtoMessage() {} -func (*QueryTokenMintedByProductAssetWiseRequest) Descriptor() ([]byte, []int) { +func (m *QueryTokenMintedAssetWiseByAppRequest) Reset() { *m = QueryTokenMintedAssetWiseByAppRequest{} } +func (m *QueryTokenMintedAssetWiseByAppRequest) String() string { return proto.CompactTextString(m) } +func (*QueryTokenMintedAssetWiseByAppRequest) ProtoMessage() {} +func (*QueryTokenMintedAssetWiseByAppRequest) Descriptor() ([]byte, []int) { return fileDescriptor_8d35126a97363346, []int{21} } -func (m *QueryTokenMintedByProductAssetWiseRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryTokenMintedAssetWiseByAppRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryTokenMintedByProductAssetWiseRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryTokenMintedAssetWiseByAppRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryTokenMintedByProductAssetWiseRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryTokenMintedAssetWiseByAppRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -880,38 +890,36 @@ func (m *QueryTokenMintedByProductAssetWiseRequest) XXX_Marshal(b []byte, determ return b[:n], nil } } -func (m *QueryTokenMintedByProductAssetWiseRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryTokenMintedByProductAssetWiseRequest.Merge(m, src) +func (m *QueryTokenMintedAssetWiseByAppRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryTokenMintedAssetWiseByAppRequest.Merge(m, src) } -func (m *QueryTokenMintedByProductAssetWiseRequest) XXX_Size() int { +func (m *QueryTokenMintedAssetWiseByAppRequest) XXX_Size() int { return m.Size() } -func (m *QueryTokenMintedByProductAssetWiseRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryTokenMintedByProductAssetWiseRequest.DiscardUnknown(m) +func (m *QueryTokenMintedAssetWiseByAppRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryTokenMintedAssetWiseByAppRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryTokenMintedByProductAssetWiseRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryTokenMintedAssetWiseByAppRequest proto.InternalMessageInfo -type QueryTokenMintedByProductAssetWiseResponse struct { +type QueryTokenMintedAssetWiseByAppResponse struct { MintedData []MintedDataMap `protobuf:"bytes,1,rep,name=minted_data,json=mintedData,proto3" json:"minted_data" yaml:"minted_data"` } -func (m *QueryTokenMintedByProductAssetWiseResponse) Reset() { - *m = QueryTokenMintedByProductAssetWiseResponse{} -} -func (m *QueryTokenMintedByProductAssetWiseResponse) String() string { - return proto.CompactTextString(m) +func (m *QueryTokenMintedAssetWiseByAppResponse) Reset() { + *m = QueryTokenMintedAssetWiseByAppResponse{} } -func (*QueryTokenMintedByProductAssetWiseResponse) ProtoMessage() {} -func (*QueryTokenMintedByProductAssetWiseResponse) Descriptor() ([]byte, []int) { +func (m *QueryTokenMintedAssetWiseByAppResponse) String() string { return proto.CompactTextString(m) } +func (*QueryTokenMintedAssetWiseByAppResponse) ProtoMessage() {} +func (*QueryTokenMintedAssetWiseByAppResponse) Descriptor() ([]byte, []int) { return fileDescriptor_8d35126a97363346, []int{22} } -func (m *QueryTokenMintedByProductAssetWiseResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryTokenMintedAssetWiseByAppResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryTokenMintedByProductAssetWiseResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryTokenMintedAssetWiseByAppResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryTokenMintedByProductAssetWiseResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryTokenMintedAssetWiseByAppResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -921,35 +929,35 @@ func (m *QueryTokenMintedByProductAssetWiseResponse) XXX_Marshal(b []byte, deter return b[:n], nil } } -func (m *QueryTokenMintedByProductAssetWiseResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryTokenMintedByProductAssetWiseResponse.Merge(m, src) +func (m *QueryTokenMintedAssetWiseByAppResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryTokenMintedAssetWiseByAppResponse.Merge(m, src) } -func (m *QueryTokenMintedByProductAssetWiseResponse) XXX_Size() int { +func (m *QueryTokenMintedAssetWiseByAppResponse) XXX_Size() int { return m.Size() } -func (m *QueryTokenMintedByProductAssetWiseResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryTokenMintedByProductAssetWiseResponse.DiscardUnknown(m) +func (m *QueryTokenMintedAssetWiseByAppResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryTokenMintedAssetWiseByAppResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryTokenMintedByProductAssetWiseResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryTokenMintedAssetWiseByAppResponse proto.InternalMessageInfo -type QueryVaultCountByProductRequest struct { - ProductId uint64 `protobuf:"varint,1,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty" yaml:"product_id"` +type QueryVaultCountByAppRequest struct { + AppId uint64 `protobuf:"varint,1,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty" yaml:"app_id"` Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty" yaml:"pagination"` } -func (m *QueryVaultCountByProductRequest) Reset() { *m = QueryVaultCountByProductRequest{} } -func (m *QueryVaultCountByProductRequest) String() string { return proto.CompactTextString(m) } -func (*QueryVaultCountByProductRequest) ProtoMessage() {} -func (*QueryVaultCountByProductRequest) Descriptor() ([]byte, []int) { +func (m *QueryVaultCountByAppRequest) Reset() { *m = QueryVaultCountByAppRequest{} } +func (m *QueryVaultCountByAppRequest) String() string { return proto.CompactTextString(m) } +func (*QueryVaultCountByAppRequest) ProtoMessage() {} +func (*QueryVaultCountByAppRequest) Descriptor() ([]byte, []int) { return fileDescriptor_8d35126a97363346, []int{23} } -func (m *QueryVaultCountByProductRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryVaultCountByAppRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryVaultCountByProductRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryVaultCountByAppRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryVaultCountByProductRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryVaultCountByAppRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -959,34 +967,34 @@ func (m *QueryVaultCountByProductRequest) XXX_Marshal(b []byte, deterministic bo return b[:n], nil } } -func (m *QueryVaultCountByProductRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryVaultCountByProductRequest.Merge(m, src) +func (m *QueryVaultCountByAppRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryVaultCountByAppRequest.Merge(m, src) } -func (m *QueryVaultCountByProductRequest) XXX_Size() int { +func (m *QueryVaultCountByAppRequest) XXX_Size() int { return m.Size() } -func (m *QueryVaultCountByProductRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryVaultCountByProductRequest.DiscardUnknown(m) +func (m *QueryVaultCountByAppRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryVaultCountByAppRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryVaultCountByProductRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryVaultCountByAppRequest proto.InternalMessageInfo -type QueryVaultCountByProductResponse struct { +type QueryVaultCountByAppResponse struct { VaultCount uint64 `protobuf:"varint,1,opt,name=vault_count,json=vaultCount,proto3" json:"vault_count,omitempty" yaml:"vault_count"` } -func (m *QueryVaultCountByProductResponse) Reset() { *m = QueryVaultCountByProductResponse{} } -func (m *QueryVaultCountByProductResponse) String() string { return proto.CompactTextString(m) } -func (*QueryVaultCountByProductResponse) ProtoMessage() {} -func (*QueryVaultCountByProductResponse) Descriptor() ([]byte, []int) { +func (m *QueryVaultCountByAppResponse) Reset() { *m = QueryVaultCountByAppResponse{} } +func (m *QueryVaultCountByAppResponse) String() string { return proto.CompactTextString(m) } +func (*QueryVaultCountByAppResponse) ProtoMessage() {} +func (*QueryVaultCountByAppResponse) Descriptor() ([]byte, []int) { return fileDescriptor_8d35126a97363346, []int{24} } -func (m *QueryVaultCountByProductResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryVaultCountByAppResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryVaultCountByProductResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryVaultCountByAppResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryVaultCountByProductResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryVaultCountByAppResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -996,38 +1004,40 @@ func (m *QueryVaultCountByProductResponse) XXX_Marshal(b []byte, deterministic b return b[:n], nil } } -func (m *QueryVaultCountByProductResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryVaultCountByProductResponse.Merge(m, src) +func (m *QueryVaultCountByAppResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryVaultCountByAppResponse.Merge(m, src) } -func (m *QueryVaultCountByProductResponse) XXX_Size() int { +func (m *QueryVaultCountByAppResponse) XXX_Size() int { return m.Size() } -func (m *QueryVaultCountByProductResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryVaultCountByProductResponse.DiscardUnknown(m) +func (m *QueryVaultCountByAppResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryVaultCountByAppResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryVaultCountByProductResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryVaultCountByAppResponse proto.InternalMessageInfo -type QueryVaultCountByProductAndPairRequest struct { - ProductId uint64 `protobuf:"varint,1,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty" yaml:"product_id"` +type QueryVaultCountByAppAndExtendedPairRequest struct { + AppId uint64 `protobuf:"varint,1,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty" yaml:"app_id"` ExtendedPairId uint64 `protobuf:"varint,2,opt,name=extended_pair_id,json=extendedPairId,proto3" json:"extended_pair_id,omitempty" yaml:"extended_pair_id"` Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty" yaml:"pagination"` } -func (m *QueryVaultCountByProductAndPairRequest) Reset() { - *m = QueryVaultCountByProductAndPairRequest{} +func (m *QueryVaultCountByAppAndExtendedPairRequest) Reset() { + *m = QueryVaultCountByAppAndExtendedPairRequest{} } -func (m *QueryVaultCountByProductAndPairRequest) String() string { return proto.CompactTextString(m) } -func (*QueryVaultCountByProductAndPairRequest) ProtoMessage() {} -func (*QueryVaultCountByProductAndPairRequest) Descriptor() ([]byte, []int) { +func (m *QueryVaultCountByAppAndExtendedPairRequest) String() string { + return proto.CompactTextString(m) +} +func (*QueryVaultCountByAppAndExtendedPairRequest) ProtoMessage() {} +func (*QueryVaultCountByAppAndExtendedPairRequest) Descriptor() ([]byte, []int) { return fileDescriptor_8d35126a97363346, []int{25} } -func (m *QueryVaultCountByProductAndPairRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryVaultCountByAppAndExtendedPairRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryVaultCountByProductAndPairRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryVaultCountByAppAndExtendedPairRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryVaultCountByProductAndPairRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryVaultCountByAppAndExtendedPairRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1037,36 +1047,38 @@ func (m *QueryVaultCountByProductAndPairRequest) XXX_Marshal(b []byte, determini return b[:n], nil } } -func (m *QueryVaultCountByProductAndPairRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryVaultCountByProductAndPairRequest.Merge(m, src) +func (m *QueryVaultCountByAppAndExtendedPairRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryVaultCountByAppAndExtendedPairRequest.Merge(m, src) } -func (m *QueryVaultCountByProductAndPairRequest) XXX_Size() int { +func (m *QueryVaultCountByAppAndExtendedPairRequest) XXX_Size() int { return m.Size() } -func (m *QueryVaultCountByProductAndPairRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryVaultCountByProductAndPairRequest.DiscardUnknown(m) +func (m *QueryVaultCountByAppAndExtendedPairRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryVaultCountByAppAndExtendedPairRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryVaultCountByProductAndPairRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryVaultCountByAppAndExtendedPairRequest proto.InternalMessageInfo -type QueryVaultCountByProductAndPairResponse struct { +type QueryVaultCountByAppAndExtendedPairResponse struct { VaultCount uint64 `protobuf:"varint,1,opt,name=vault_count,json=vaultCount,proto3" json:"vault_count,omitempty" yaml:"vault_count"` } -func (m *QueryVaultCountByProductAndPairResponse) Reset() { - *m = QueryVaultCountByProductAndPairResponse{} +func (m *QueryVaultCountByAppAndExtendedPairResponse) Reset() { + *m = QueryVaultCountByAppAndExtendedPairResponse{} +} +func (m *QueryVaultCountByAppAndExtendedPairResponse) String() string { + return proto.CompactTextString(m) } -func (m *QueryVaultCountByProductAndPairResponse) String() string { return proto.CompactTextString(m) } -func (*QueryVaultCountByProductAndPairResponse) ProtoMessage() {} -func (*QueryVaultCountByProductAndPairResponse) Descriptor() ([]byte, []int) { +func (*QueryVaultCountByAppAndExtendedPairResponse) ProtoMessage() {} +func (*QueryVaultCountByAppAndExtendedPairResponse) Descriptor() ([]byte, []int) { return fileDescriptor_8d35126a97363346, []int{26} } -func (m *QueryVaultCountByProductAndPairResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryVaultCountByAppAndExtendedPairResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryVaultCountByProductAndPairResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryVaultCountByAppAndExtendedPairResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryVaultCountByProductAndPairResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryVaultCountByAppAndExtendedPairResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1076,40 +1088,40 @@ func (m *QueryVaultCountByProductAndPairResponse) XXX_Marshal(b []byte, determin return b[:n], nil } } -func (m *QueryVaultCountByProductAndPairResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryVaultCountByProductAndPairResponse.Merge(m, src) +func (m *QueryVaultCountByAppAndExtendedPairResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryVaultCountByAppAndExtendedPairResponse.Merge(m, src) } -func (m *QueryVaultCountByProductAndPairResponse) XXX_Size() int { +func (m *QueryVaultCountByAppAndExtendedPairResponse) XXX_Size() int { return m.Size() } -func (m *QueryVaultCountByProductAndPairResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryVaultCountByProductAndPairResponse.DiscardUnknown(m) +func (m *QueryVaultCountByAppAndExtendedPairResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryVaultCountByAppAndExtendedPairResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryVaultCountByProductAndPairResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryVaultCountByAppAndExtendedPairResponse proto.InternalMessageInfo -type QueryTotalValueLockedByProductExtendedPairRequest struct { - ProductId uint64 `protobuf:"varint,1,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty" yaml:"product_id"` +type QueryTotalValueLockedByAppExtendedPairRequest struct { + AppId uint64 `protobuf:"varint,1,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty" yaml:"app_id"` ExtendedPairId uint64 `protobuf:"varint,2,opt,name=extended_pair_id,json=extendedPairId,proto3" json:"extended_pair_id,omitempty" yaml:"extended_pair_id"` Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty" yaml:"pagination"` } -func (m *QueryTotalValueLockedByProductExtendedPairRequest) Reset() { - *m = QueryTotalValueLockedByProductExtendedPairRequest{} +func (m *QueryTotalValueLockedByAppExtendedPairRequest) Reset() { + *m = QueryTotalValueLockedByAppExtendedPairRequest{} } -func (m *QueryTotalValueLockedByProductExtendedPairRequest) String() string { +func (m *QueryTotalValueLockedByAppExtendedPairRequest) String() string { return proto.CompactTextString(m) } -func (*QueryTotalValueLockedByProductExtendedPairRequest) ProtoMessage() {} -func (*QueryTotalValueLockedByProductExtendedPairRequest) Descriptor() ([]byte, []int) { +func (*QueryTotalValueLockedByAppExtendedPairRequest) ProtoMessage() {} +func (*QueryTotalValueLockedByAppExtendedPairRequest) Descriptor() ([]byte, []int) { return fileDescriptor_8d35126a97363346, []int{27} } -func (m *QueryTotalValueLockedByProductExtendedPairRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryTotalValueLockedByAppExtendedPairRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryTotalValueLockedByProductExtendedPairRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryTotalValueLockedByAppExtendedPairRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryTotalValueLockedByProductExtendedPairRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryTotalValueLockedByAppExtendedPairRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1119,38 +1131,38 @@ func (m *QueryTotalValueLockedByProductExtendedPairRequest) XXX_Marshal(b []byte return b[:n], nil } } -func (m *QueryTotalValueLockedByProductExtendedPairRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryTotalValueLockedByProductExtendedPairRequest.Merge(m, src) +func (m *QueryTotalValueLockedByAppExtendedPairRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryTotalValueLockedByAppExtendedPairRequest.Merge(m, src) } -func (m *QueryTotalValueLockedByProductExtendedPairRequest) XXX_Size() int { +func (m *QueryTotalValueLockedByAppExtendedPairRequest) XXX_Size() int { return m.Size() } -func (m *QueryTotalValueLockedByProductExtendedPairRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryTotalValueLockedByProductExtendedPairRequest.DiscardUnknown(m) +func (m *QueryTotalValueLockedByAppExtendedPairRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryTotalValueLockedByAppExtendedPairRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryTotalValueLockedByProductExtendedPairRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryTotalValueLockedByAppExtendedPairRequest proto.InternalMessageInfo -type QueryTotalValueLockedByProductExtendedPairResponse struct { +type QueryTotalValueLockedByAppExtendedPairResponse struct { ValueLocked *github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,1,opt,name=value_locked,json=valueLocked,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"value_locked,omitempty"` } -func (m *QueryTotalValueLockedByProductExtendedPairResponse) Reset() { - *m = QueryTotalValueLockedByProductExtendedPairResponse{} +func (m *QueryTotalValueLockedByAppExtendedPairResponse) Reset() { + *m = QueryTotalValueLockedByAppExtendedPairResponse{} } -func (m *QueryTotalValueLockedByProductExtendedPairResponse) String() string { +func (m *QueryTotalValueLockedByAppExtendedPairResponse) String() string { return proto.CompactTextString(m) } -func (*QueryTotalValueLockedByProductExtendedPairResponse) ProtoMessage() {} -func (*QueryTotalValueLockedByProductExtendedPairResponse) Descriptor() ([]byte, []int) { +func (*QueryTotalValueLockedByAppExtendedPairResponse) ProtoMessage() {} +func (*QueryTotalValueLockedByAppExtendedPairResponse) Descriptor() ([]byte, []int) { return fileDescriptor_8d35126a97363346, []int{28} } -func (m *QueryTotalValueLockedByProductExtendedPairResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryTotalValueLockedByAppExtendedPairResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryTotalValueLockedByProductExtendedPairResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryTotalValueLockedByAppExtendedPairResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryTotalValueLockedByProductExtendedPairResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryTotalValueLockedByAppExtendedPairResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1160,35 +1172,35 @@ func (m *QueryTotalValueLockedByProductExtendedPairResponse) XXX_Marshal(b []byt return b[:n], nil } } -func (m *QueryTotalValueLockedByProductExtendedPairResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryTotalValueLockedByProductExtendedPairResponse.Merge(m, src) +func (m *QueryTotalValueLockedByAppExtendedPairResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryTotalValueLockedByAppExtendedPairResponse.Merge(m, src) } -func (m *QueryTotalValueLockedByProductExtendedPairResponse) XXX_Size() int { +func (m *QueryTotalValueLockedByAppExtendedPairResponse) XXX_Size() int { return m.Size() } -func (m *QueryTotalValueLockedByProductExtendedPairResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryTotalValueLockedByProductExtendedPairResponse.DiscardUnknown(m) +func (m *QueryTotalValueLockedByAppExtendedPairResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryTotalValueLockedByAppExtendedPairResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryTotalValueLockedByProductExtendedPairResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryTotalValueLockedByAppExtendedPairResponse proto.InternalMessageInfo -type QueryExtendedPairIDByProductRequest struct { - ProductId uint64 `protobuf:"varint,1,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty" yaml:"product_id"` +type QueryExtendedPairIDsByAppRequest struct { + AppId uint64 `protobuf:"varint,1,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty" yaml:"app_id"` Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty" yaml:"pagination"` } -func (m *QueryExtendedPairIDByProductRequest) Reset() { *m = QueryExtendedPairIDByProductRequest{} } -func (m *QueryExtendedPairIDByProductRequest) String() string { return proto.CompactTextString(m) } -func (*QueryExtendedPairIDByProductRequest) ProtoMessage() {} -func (*QueryExtendedPairIDByProductRequest) Descriptor() ([]byte, []int) { +func (m *QueryExtendedPairIDsByAppRequest) Reset() { *m = QueryExtendedPairIDsByAppRequest{} } +func (m *QueryExtendedPairIDsByAppRequest) String() string { return proto.CompactTextString(m) } +func (*QueryExtendedPairIDsByAppRequest) ProtoMessage() {} +func (*QueryExtendedPairIDsByAppRequest) Descriptor() ([]byte, []int) { return fileDescriptor_8d35126a97363346, []int{29} } -func (m *QueryExtendedPairIDByProductRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryExtendedPairIDsByAppRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryExtendedPairIDByProductRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryExtendedPairIDsByAppRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryExtendedPairIDByProductRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryExtendedPairIDsByAppRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1198,34 +1210,34 @@ func (m *QueryExtendedPairIDByProductRequest) XXX_Marshal(b []byte, deterministi return b[:n], nil } } -func (m *QueryExtendedPairIDByProductRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryExtendedPairIDByProductRequest.Merge(m, src) +func (m *QueryExtendedPairIDsByAppRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryExtendedPairIDsByAppRequest.Merge(m, src) } -func (m *QueryExtendedPairIDByProductRequest) XXX_Size() int { +func (m *QueryExtendedPairIDsByAppRequest) XXX_Size() int { return m.Size() } -func (m *QueryExtendedPairIDByProductRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryExtendedPairIDByProductRequest.DiscardUnknown(m) +func (m *QueryExtendedPairIDsByAppRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryExtendedPairIDsByAppRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryExtendedPairIDByProductRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryExtendedPairIDsByAppRequest proto.InternalMessageInfo -type QueryExtendedPairIDByProductResponse struct { +type QueryExtendedPairIDsByAppResponse struct { ExtendedPairIds []uint64 `protobuf:"varint,1,rep,packed,name=extended_pair_ids,json=extendedPairIds,proto3" json:"extended_pair_ids,omitempty" yaml:"extended_pair_ids"` } -func (m *QueryExtendedPairIDByProductResponse) Reset() { *m = QueryExtendedPairIDByProductResponse{} } -func (m *QueryExtendedPairIDByProductResponse) String() string { return proto.CompactTextString(m) } -func (*QueryExtendedPairIDByProductResponse) ProtoMessage() {} -func (*QueryExtendedPairIDByProductResponse) Descriptor() ([]byte, []int) { +func (m *QueryExtendedPairIDsByAppResponse) Reset() { *m = QueryExtendedPairIDsByAppResponse{} } +func (m *QueryExtendedPairIDsByAppResponse) String() string { return proto.CompactTextString(m) } +func (*QueryExtendedPairIDsByAppResponse) ProtoMessage() {} +func (*QueryExtendedPairIDsByAppResponse) Descriptor() ([]byte, []int) { return fileDescriptor_8d35126a97363346, []int{30} } -func (m *QueryExtendedPairIDByProductResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryExtendedPairIDsByAppResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryExtendedPairIDByProductResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryExtendedPairIDsByAppResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryExtendedPairIDByProductResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryExtendedPairIDsByAppResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1235,34 +1247,34 @@ func (m *QueryExtendedPairIDByProductResponse) XXX_Marshal(b []byte, determinist return b[:n], nil } } -func (m *QueryExtendedPairIDByProductResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryExtendedPairIDByProductResponse.Merge(m, src) +func (m *QueryExtendedPairIDsByAppResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryExtendedPairIDsByAppResponse.Merge(m, src) } -func (m *QueryExtendedPairIDByProductResponse) XXX_Size() int { +func (m *QueryExtendedPairIDsByAppResponse) XXX_Size() int { return m.Size() } -func (m *QueryExtendedPairIDByProductResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryExtendedPairIDByProductResponse.DiscardUnknown(m) +func (m *QueryExtendedPairIDsByAppResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryExtendedPairIDsByAppResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryExtendedPairIDByProductResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryExtendedPairIDsByAppResponse proto.InternalMessageInfo -type QueryStableVaultInfoRequest struct { +type QueryStableVaultByVaultIdRequest struct { StableVaultId string `protobuf:"bytes,1,opt,name=stable_vault_id,json=stableVaultId,proto3" json:"stable_vault_id,omitempty" yaml:"stable_vault_id"` } -func (m *QueryStableVaultInfoRequest) Reset() { *m = QueryStableVaultInfoRequest{} } -func (m *QueryStableVaultInfoRequest) String() string { return proto.CompactTextString(m) } -func (*QueryStableVaultInfoRequest) ProtoMessage() {} -func (*QueryStableVaultInfoRequest) Descriptor() ([]byte, []int) { +func (m *QueryStableVaultByVaultIdRequest) Reset() { *m = QueryStableVaultByVaultIdRequest{} } +func (m *QueryStableVaultByVaultIdRequest) String() string { return proto.CompactTextString(m) } +func (*QueryStableVaultByVaultIdRequest) ProtoMessage() {} +func (*QueryStableVaultByVaultIdRequest) Descriptor() ([]byte, []int) { return fileDescriptor_8d35126a97363346, []int{31} } -func (m *QueryStableVaultInfoRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryStableVaultByVaultIdRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryStableVaultInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryStableVaultByVaultIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryStableVaultInfoRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryStableVaultByVaultIdRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1272,34 +1284,34 @@ func (m *QueryStableVaultInfoRequest) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *QueryStableVaultInfoRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryStableVaultInfoRequest.Merge(m, src) +func (m *QueryStableVaultByVaultIdRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryStableVaultByVaultIdRequest.Merge(m, src) } -func (m *QueryStableVaultInfoRequest) XXX_Size() int { +func (m *QueryStableVaultByVaultIdRequest) XXX_Size() int { return m.Size() } -func (m *QueryStableVaultInfoRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryStableVaultInfoRequest.DiscardUnknown(m) +func (m *QueryStableVaultByVaultIdRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryStableVaultByVaultIdRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryStableVaultInfoRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryStableVaultByVaultIdRequest proto.InternalMessageInfo -type QueryStableVaultInfoResponse struct { +type QueryStableVaultByVaultIdResponse struct { StableMintVault *StableMintVault `protobuf:"bytes,1,opt,name=stable_mint_vault,json=stableMintVault,proto3" json:"stable_mint_vault,omitempty" yaml:"stable_mint_vault"` } -func (m *QueryStableVaultInfoResponse) Reset() { *m = QueryStableVaultInfoResponse{} } -func (m *QueryStableVaultInfoResponse) String() string { return proto.CompactTextString(m) } -func (*QueryStableVaultInfoResponse) ProtoMessage() {} -func (*QueryStableVaultInfoResponse) Descriptor() ([]byte, []int) { +func (m *QueryStableVaultByVaultIdResponse) Reset() { *m = QueryStableVaultByVaultIdResponse{} } +func (m *QueryStableVaultByVaultIdResponse) String() string { return proto.CompactTextString(m) } +func (*QueryStableVaultByVaultIdResponse) ProtoMessage() {} +func (*QueryStableVaultByVaultIdResponse) Descriptor() ([]byte, []int) { return fileDescriptor_8d35126a97363346, []int{32} } -func (m *QueryStableVaultInfoResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryStableVaultByVaultIdResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryStableVaultInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryStableVaultByVaultIdResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryStableVaultInfoResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryStableVaultByVaultIdResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1309,34 +1321,34 @@ func (m *QueryStableVaultInfoResponse) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *QueryStableVaultInfoResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryStableVaultInfoResponse.Merge(m, src) +func (m *QueryStableVaultByVaultIdResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryStableVaultByVaultIdResponse.Merge(m, src) } -func (m *QueryStableVaultInfoResponse) XXX_Size() int { +func (m *QueryStableVaultByVaultIdResponse) XXX_Size() int { return m.Size() } -func (m *QueryStableVaultInfoResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryStableVaultInfoResponse.DiscardUnknown(m) +func (m *QueryStableVaultByVaultIdResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryStableVaultByVaultIdResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryStableVaultInfoResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryStableVaultByVaultIdResponse proto.InternalMessageInfo -type QueryAllStableVaultsRequest struct { +type QueryStableVaultByAppRequest struct { AppId uint64 `protobuf:"varint,1,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty" yaml:"app_id"` } -func (m *QueryAllStableVaultsRequest) Reset() { *m = QueryAllStableVaultsRequest{} } -func (m *QueryAllStableVaultsRequest) String() string { return proto.CompactTextString(m) } -func (*QueryAllStableVaultsRequest) ProtoMessage() {} -func (*QueryAllStableVaultsRequest) Descriptor() ([]byte, []int) { +func (m *QueryStableVaultByAppRequest) Reset() { *m = QueryStableVaultByAppRequest{} } +func (m *QueryStableVaultByAppRequest) String() string { return proto.CompactTextString(m) } +func (*QueryStableVaultByAppRequest) ProtoMessage() {} +func (*QueryStableVaultByAppRequest) Descriptor() ([]byte, []int) { return fileDescriptor_8d35126a97363346, []int{33} } -func (m *QueryAllStableVaultsRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryStableVaultByAppRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryAllStableVaultsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryStableVaultByAppRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryAllStableVaultsRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryStableVaultByAppRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1346,34 +1358,34 @@ func (m *QueryAllStableVaultsRequest) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *QueryAllStableVaultsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAllStableVaultsRequest.Merge(m, src) +func (m *QueryStableVaultByAppRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryStableVaultByAppRequest.Merge(m, src) } -func (m *QueryAllStableVaultsRequest) XXX_Size() int { +func (m *QueryStableVaultByAppRequest) XXX_Size() int { return m.Size() } -func (m *QueryAllStableVaultsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAllStableVaultsRequest.DiscardUnknown(m) +func (m *QueryStableVaultByAppRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryStableVaultByAppRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryAllStableVaultsRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryStableVaultByAppRequest proto.InternalMessageInfo -type QueryAllStableVaultsResponse struct { +type QueryStableVaultByAppResponse struct { StableMintVault []StableMintVault `protobuf:"bytes,1,rep,name=stable_mint_vault,json=stableMintVault,proto3" json:"stable_mint_vault" yaml:"stable_mint_vault"` } -func (m *QueryAllStableVaultsResponse) Reset() { *m = QueryAllStableVaultsResponse{} } -func (m *QueryAllStableVaultsResponse) String() string { return proto.CompactTextString(m) } -func (*QueryAllStableVaultsResponse) ProtoMessage() {} -func (*QueryAllStableVaultsResponse) Descriptor() ([]byte, []int) { +func (m *QueryStableVaultByAppResponse) Reset() { *m = QueryStableVaultByAppResponse{} } +func (m *QueryStableVaultByAppResponse) String() string { return proto.CompactTextString(m) } +func (*QueryStableVaultByAppResponse) ProtoMessage() {} +func (*QueryStableVaultByAppResponse) Descriptor() ([]byte, []int) { return fileDescriptor_8d35126a97363346, []int{34} } -func (m *QueryAllStableVaultsResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryStableVaultByAppResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryAllStableVaultsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryStableVaultByAppResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryAllStableVaultsResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryStableVaultByAppResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1383,39 +1395,37 @@ func (m *QueryAllStableVaultsResponse) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *QueryAllStableVaultsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAllStableVaultsResponse.Merge(m, src) +func (m *QueryStableVaultByAppResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryStableVaultByAppResponse.Merge(m, src) } -func (m *QueryAllStableVaultsResponse) XXX_Size() int { +func (m *QueryStableVaultByAppResponse) XXX_Size() int { return m.Size() } -func (m *QueryAllStableVaultsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAllStableVaultsResponse.DiscardUnknown(m) +func (m *QueryStableVaultByAppResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryStableVaultByAppResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryAllStableVaultsResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryStableVaultByAppResponse proto.InternalMessageInfo -type QueryStableVaultByProductExtendedPairRequest struct { +type QueryStableVaultByAppExtendedPairRequest struct { AppId uint64 `protobuf:"varint,1,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty" yaml:"app_id"` ExtendedPairId uint64 `protobuf:"varint,2,opt,name=extended_pair_id,json=extendedPairId,proto3" json:"extended_pair_id,omitempty" yaml:"extended_pair_id"` } -func (m *QueryStableVaultByProductExtendedPairRequest) Reset() { - *m = QueryStableVaultByProductExtendedPairRequest{} -} -func (m *QueryStableVaultByProductExtendedPairRequest) String() string { - return proto.CompactTextString(m) +func (m *QueryStableVaultByAppExtendedPairRequest) Reset() { + *m = QueryStableVaultByAppExtendedPairRequest{} } -func (*QueryStableVaultByProductExtendedPairRequest) ProtoMessage() {} -func (*QueryStableVaultByProductExtendedPairRequest) Descriptor() ([]byte, []int) { +func (m *QueryStableVaultByAppExtendedPairRequest) String() string { return proto.CompactTextString(m) } +func (*QueryStableVaultByAppExtendedPairRequest) ProtoMessage() {} +func (*QueryStableVaultByAppExtendedPairRequest) Descriptor() ([]byte, []int) { return fileDescriptor_8d35126a97363346, []int{35} } -func (m *QueryStableVaultByProductExtendedPairRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryStableVaultByAppExtendedPairRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryStableVaultByProductExtendedPairRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryStableVaultByAppExtendedPairRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryStableVaultByProductExtendedPairRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryStableVaultByAppExtendedPairRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1425,38 +1435,38 @@ func (m *QueryStableVaultByProductExtendedPairRequest) XXX_Marshal(b []byte, det return b[:n], nil } } -func (m *QueryStableVaultByProductExtendedPairRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryStableVaultByProductExtendedPairRequest.Merge(m, src) +func (m *QueryStableVaultByAppExtendedPairRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryStableVaultByAppExtendedPairRequest.Merge(m, src) } -func (m *QueryStableVaultByProductExtendedPairRequest) XXX_Size() int { +func (m *QueryStableVaultByAppExtendedPairRequest) XXX_Size() int { return m.Size() } -func (m *QueryStableVaultByProductExtendedPairRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryStableVaultByProductExtendedPairRequest.DiscardUnknown(m) +func (m *QueryStableVaultByAppExtendedPairRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryStableVaultByAppExtendedPairRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryStableVaultByProductExtendedPairRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryStableVaultByAppExtendedPairRequest proto.InternalMessageInfo -type QueryStableVaultByProductExtendedPairResponse struct { +type QueryStableVaultByAppExtendedPairResponse struct { StableMintVault *StableMintVault `protobuf:"bytes,1,opt,name=stable_mint_vault,json=stableMintVault,proto3" json:"stable_mint_vault,omitempty" yaml:"stable_mint_vault"` } -func (m *QueryStableVaultByProductExtendedPairResponse) Reset() { - *m = QueryStableVaultByProductExtendedPairResponse{} +func (m *QueryStableVaultByAppExtendedPairResponse) Reset() { + *m = QueryStableVaultByAppExtendedPairResponse{} } -func (m *QueryStableVaultByProductExtendedPairResponse) String() string { +func (m *QueryStableVaultByAppExtendedPairResponse) String() string { return proto.CompactTextString(m) } -func (*QueryStableVaultByProductExtendedPairResponse) ProtoMessage() {} -func (*QueryStableVaultByProductExtendedPairResponse) Descriptor() ([]byte, []int) { +func (*QueryStableVaultByAppExtendedPairResponse) ProtoMessage() {} +func (*QueryStableVaultByAppExtendedPairResponse) Descriptor() ([]byte, []int) { return fileDescriptor_8d35126a97363346, []int{36} } -func (m *QueryStableVaultByProductExtendedPairResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryStableVaultByAppExtendedPairResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryStableVaultByProductExtendedPairResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryStableVaultByAppExtendedPairResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryStableVaultByProductExtendedPairResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryStableVaultByAppExtendedPairResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1466,17 +1476,17 @@ func (m *QueryStableVaultByProductExtendedPairResponse) XXX_Marshal(b []byte, de return b[:n], nil } } -func (m *QueryStableVaultByProductExtendedPairResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryStableVaultByProductExtendedPairResponse.Merge(m, src) +func (m *QueryStableVaultByAppExtendedPairResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryStableVaultByAppExtendedPairResponse.Merge(m, src) } -func (m *QueryStableVaultByProductExtendedPairResponse) XXX_Size() int { +func (m *QueryStableVaultByAppExtendedPairResponse) XXX_Size() int { return m.Size() } -func (m *QueryStableVaultByProductExtendedPairResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryStableVaultByProductExtendedPairResponse.DiscardUnknown(m) +func (m *QueryStableVaultByAppExtendedPairResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryStableVaultByAppExtendedPairResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryStableVaultByProductExtendedPairResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryStableVaultByAppExtendedPairResponse proto.InternalMessageInfo type QueryExtendedPairVaultMappingByAppAndExtendedPairIdRequest struct { AppId uint64 `protobuf:"varint,1,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty" yaml:"app_id"` @@ -1643,173 +1653,6 @@ func (m *QueryExtendedPairVaultMappingByAppResponse) XXX_DiscardUnknown() { var xxx_messageInfo_QueryExtendedPairVaultMappingByAppResponse proto.InternalMessageInfo -type QueryExtendedPairVaultMappingByOwnerAndAppRequest struct { - Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty" yaml:"owner"` - AppId uint64 `protobuf:"varint,2,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty" yaml:"app_id"` -} - -func (m *QueryExtendedPairVaultMappingByOwnerAndAppRequest) Reset() { - *m = QueryExtendedPairVaultMappingByOwnerAndAppRequest{} -} -func (m *QueryExtendedPairVaultMappingByOwnerAndAppRequest) String() string { - return proto.CompactTextString(m) -} -func (*QueryExtendedPairVaultMappingByOwnerAndAppRequest) ProtoMessage() {} -func (*QueryExtendedPairVaultMappingByOwnerAndAppRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8d35126a97363346, []int{41} -} -func (m *QueryExtendedPairVaultMappingByOwnerAndAppRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryExtendedPairVaultMappingByOwnerAndAppRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryExtendedPairVaultMappingByOwnerAndAppRequest.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 *QueryExtendedPairVaultMappingByOwnerAndAppRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryExtendedPairVaultMappingByOwnerAndAppRequest.Merge(m, src) -} -func (m *QueryExtendedPairVaultMappingByOwnerAndAppRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryExtendedPairVaultMappingByOwnerAndAppRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryExtendedPairVaultMappingByOwnerAndAppRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryExtendedPairVaultMappingByOwnerAndAppRequest proto.InternalMessageInfo - -type QueryExtendedPairVaultMappingByOwnerAndAppResponse struct { - ExtendedPairtoVaultMapping []*ExtendedPairToVaultMapping `protobuf:"bytes,1,rep,name=extendedPairtoVaultMapping,proto3" json:"extendedPairtoVaultMapping,omitempty" yaml:"extendedPairtoVaultMapping"` -} - -func (m *QueryExtendedPairVaultMappingByOwnerAndAppResponse) Reset() { - *m = QueryExtendedPairVaultMappingByOwnerAndAppResponse{} -} -func (m *QueryExtendedPairVaultMappingByOwnerAndAppResponse) String() string { - return proto.CompactTextString(m) -} -func (*QueryExtendedPairVaultMappingByOwnerAndAppResponse) ProtoMessage() {} -func (*QueryExtendedPairVaultMappingByOwnerAndAppResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8d35126a97363346, []int{42} -} -func (m *QueryExtendedPairVaultMappingByOwnerAndAppResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryExtendedPairVaultMappingByOwnerAndAppResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryExtendedPairVaultMappingByOwnerAndAppResponse.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 *QueryExtendedPairVaultMappingByOwnerAndAppResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryExtendedPairVaultMappingByOwnerAndAppResponse.Merge(m, src) -} -func (m *QueryExtendedPairVaultMappingByOwnerAndAppResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryExtendedPairVaultMappingByOwnerAndAppResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryExtendedPairVaultMappingByOwnerAndAppResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryExtendedPairVaultMappingByOwnerAndAppResponse proto.InternalMessageInfo - -type QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairIDRequest struct { - Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty" yaml:"owner"` - AppId uint64 `protobuf:"varint,2,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty" yaml:"app_id"` - ExtendedPair uint64 `protobuf:"varint,3,opt,name=extended_pair,json=extendedPair,proto3" json:"extended_pair,omitempty" yaml:"extended_pair"` -} - -func (m *QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairIDRequest) Reset() { - *m = QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairIDRequest{} -} -func (m *QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairIDRequest) String() string { - return proto.CompactTextString(m) -} -func (*QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairIDRequest) ProtoMessage() {} -func (*QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairIDRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8d35126a97363346, []int{43} -} -func (m *QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairIDRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairIDRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairIDRequest.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 *QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairIDRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairIDRequest.Merge(m, src) -} -func (m *QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairIDRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairIDRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairIDRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairIDRequest proto.InternalMessageInfo - -type QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairIDResponse struct { - VaultId string `protobuf:"bytes,1,opt,name=vaultId,proto3" json:"vaultId,omitempty" yaml:"vaultId"` -} - -func (m *QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairIDResponse) Reset() { - *m = QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairIDResponse{} -} -func (m *QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairIDResponse) String() string { - return proto.CompactTextString(m) -} -func (*QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairIDResponse) ProtoMessage() {} -func (*QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairIDResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8d35126a97363346, []int{44} -} -func (m *QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairIDResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairIDResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairIDResponse.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 *QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairIDResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairIDResponse.Merge(m, src) -} -func (m *QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairIDResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairIDResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairIDResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairIDResponse proto.InternalMessageInfo - type QueryTVLLockedByAppOfAllExtendedPairsRequest struct { AppId uint64 `protobuf:"varint,1,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty" yaml:"app_id"` } @@ -1822,7 +1665,7 @@ func (m *QueryTVLLockedByAppOfAllExtendedPairsRequest) String() string { } func (*QueryTVLLockedByAppOfAllExtendedPairsRequest) ProtoMessage() {} func (*QueryTVLLockedByAppOfAllExtendedPairsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8d35126a97363346, []int{45} + return fileDescriptor_8d35126a97363346, []int{41} } func (m *QueryTVLLockedByAppOfAllExtendedPairsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1863,7 +1706,7 @@ func (m *QueryTVLLockedByAppOfAllExtendedPairsResponse) String() string { } func (*QueryTVLLockedByAppOfAllExtendedPairsResponse) ProtoMessage() {} func (*QueryTVLLockedByAppOfAllExtendedPairsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8d35126a97363346, []int{46} + return fileDescriptor_8d35126a97363346, []int{42} } func (m *QueryTVLLockedByAppOfAllExtendedPairsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1900,7 +1743,7 @@ func (m *QueryTotalTVLByAppRequest) Reset() { *m = QueryTotalTVLByAppReq func (m *QueryTotalTVLByAppRequest) String() string { return proto.CompactTextString(m) } func (*QueryTotalTVLByAppRequest) ProtoMessage() {} func (*QueryTotalTVLByAppRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8d35126a97363346, []int{47} + return fileDescriptor_8d35126a97363346, []int{43} } func (m *QueryTotalTVLByAppRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1937,7 +1780,7 @@ func (m *QueryTotalTVLByAppResponse) Reset() { *m = QueryTotalTVLByAppRe func (m *QueryTotalTVLByAppResponse) String() string { return proto.CompactTextString(m) } func (*QueryTotalTVLByAppResponse) ProtoMessage() {} func (*QueryTotalTVLByAppResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8d35126a97363346, []int{48} + return fileDescriptor_8d35126a97363346, []int{44} } func (m *QueryTotalTVLByAppResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1975,7 +1818,7 @@ func (m *QueryUserMyPositionByAppRequest) Reset() { *m = QueryUserMyPosi func (m *QueryUserMyPositionByAppRequest) String() string { return proto.CompactTextString(m) } func (*QueryUserMyPositionByAppRequest) ProtoMessage() {} func (*QueryUserMyPositionByAppRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8d35126a97363346, []int{49} + return fileDescriptor_8d35126a97363346, []int{45} } func (m *QueryUserMyPositionByAppRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2015,7 +1858,7 @@ func (m *QueryUserMyPositionByAppResponse) Reset() { *m = QueryUserMyPos func (m *QueryUserMyPositionByAppResponse) String() string { return proto.CompactTextString(m) } func (*QueryUserMyPositionByAppResponse) ProtoMessage() {} func (*QueryUserMyPositionByAppResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8d35126a97363346, []int{50} + return fileDescriptor_8d35126a97363346, []int{46} } func (m *QueryUserMyPositionByAppResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2052,7 +1895,7 @@ func (m *QueryUserExtendedPairTotalDataRequest) Reset() { *m = QueryUser func (m *QueryUserExtendedPairTotalDataRequest) String() string { return proto.CompactTextString(m) } func (*QueryUserExtendedPairTotalDataRequest) ProtoMessage() {} func (*QueryUserExtendedPairTotalDataRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8d35126a97363346, []int{51} + return fileDescriptor_8d35126a97363346, []int{47} } func (m *QueryUserExtendedPairTotalDataRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2091,7 +1934,7 @@ func (m *QueryUserExtendedPairTotalDataResponse) Reset() { func (m *QueryUserExtendedPairTotalDataResponse) String() string { return proto.CompactTextString(m) } func (*QueryUserExtendedPairTotalDataResponse) ProtoMessage() {} func (*QueryUserExtendedPairTotalDataResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8d35126a97363346, []int{52} + return fileDescriptor_8d35126a97363346, []int{48} } func (m *QueryUserExtendedPairTotalDataResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2124,48 +1967,44 @@ func init() { proto.RegisterType((*VaultInfo)(nil), "comdex.vault.v1beta1.VaultInfo") proto.RegisterType((*QueryVaultRequest)(nil), "comdex.vault.v1beta1.QueryVaultRequest") proto.RegisterType((*QueryVaultResponse)(nil), "comdex.vault.v1beta1.QueryVaultResponse") - proto.RegisterType((*QueryVaultInfoRequest)(nil), "comdex.vault.v1beta1.QueryVaultInfoRequest") - proto.RegisterType((*QueryVaultInfoResponse)(nil), "comdex.vault.v1beta1.QueryVaultInfoResponse") - proto.RegisterType((*QueryVaultInfoByAppByOwnerRequest)(nil), "comdex.vault.v1beta1.QueryVaultInfoByAppByOwnerRequest") - proto.RegisterType((*QueryVaultInfoByAppByOwnerResponse)(nil), "comdex.vault.v1beta1.QueryVaultInfoByAppByOwnerResponse") + proto.RegisterType((*QueryVaultInfoByVaultIdRequest)(nil), "comdex.vault.v1beta1.QueryVaultInfoByVaultIdRequest") + proto.RegisterType((*QueryVaultInfoByVaultIdResponse)(nil), "comdex.vault.v1beta1.QueryVaultInfoByVaultIdResponse") + proto.RegisterType((*QueryVaultInfoOfOwnerByAppRequest)(nil), "comdex.vault.v1beta1.QueryVaultInfoOfOwnerByAppRequest") + proto.RegisterType((*QueryVaultInfoOfOwnerByAppResponse)(nil), "comdex.vault.v1beta1.QueryVaultInfoOfOwnerByAppResponse") proto.RegisterType((*QueryAllVaultsRequest)(nil), "comdex.vault.v1beta1.QueryAllVaultsRequest") proto.RegisterType((*QueryAllVaultsResponse)(nil), "comdex.vault.v1beta1.QueryAllVaultsResponse") - proto.RegisterType((*QueryAllVaultsByProductRequest)(nil), "comdex.vault.v1beta1.QueryAllVaultsByProductRequest") - proto.RegisterType((*QueryAllVaultsByProductResponse)(nil), "comdex.vault.v1beta1.QueryAllVaultsByProductResponse") + proto.RegisterType((*QueryAllVaultsByAppRequest)(nil), "comdex.vault.v1beta1.QueryAllVaultsByAppRequest") + proto.RegisterType((*QueryAllVaultsByAppResponse)(nil), "comdex.vault.v1beta1.QueryAllVaultsByAppResponse") proto.RegisterType((*QueryAllVaultsByAppAndExtendedPairRequest)(nil), "comdex.vault.v1beta1.QueryAllVaultsByAppAndExtendedPairRequest") proto.RegisterType((*QueryAllVaultsByAppAndExtendedPairResponse)(nil), "comdex.vault.v1beta1.QueryAllVaultsByAppAndExtendedPairResponse") - proto.RegisterType((*QueryVaultOfOwnerByExtendedPairRequest)(nil), "comdex.vault.v1beta1.QueryVaultOfOwnerByExtendedPairRequest") - proto.RegisterType((*QueryVaultOfOwnerByExtendedPairResponse)(nil), "comdex.vault.v1beta1.QueryVaultOfOwnerByExtendedPairResponse") - proto.RegisterType((*QueryVaultByProductRequest)(nil), "comdex.vault.v1beta1.QueryVaultByProductRequest") - proto.RegisterType((*QueryVaultByProductResponse)(nil), "comdex.vault.v1beta1.QueryVaultByProductResponse") - proto.RegisterType((*QueryAllVaultByOwnerRequest)(nil), "comdex.vault.v1beta1.QueryAllVaultByOwnerRequest") - proto.RegisterType((*QueryAllVaultByOwnerResponse)(nil), "comdex.vault.v1beta1.QueryAllVaultByOwnerResponse") - proto.RegisterType((*QueryTokenMintedAllProductsByPairRequest)(nil), "comdex.vault.v1beta1.QueryTokenMintedAllProductsByPairRequest") - proto.RegisterType((*QueryTokenMintedAllProductsByPairResponse)(nil), "comdex.vault.v1beta1.QueryTokenMintedAllProductsByPairResponse") - proto.RegisterType((*QueryTokenMintedByProductAssetWiseRequest)(nil), "comdex.vault.v1beta1.QueryTokenMintedByProductAssetWiseRequest") - proto.RegisterType((*QueryTokenMintedByProductAssetWiseResponse)(nil), "comdex.vault.v1beta1.QueryTokenMintedByProductAssetWiseResponse") - proto.RegisterType((*QueryVaultCountByProductRequest)(nil), "comdex.vault.v1beta1.QueryVaultCountByProductRequest") - proto.RegisterType((*QueryVaultCountByProductResponse)(nil), "comdex.vault.v1beta1.QueryVaultCountByProductResponse") - proto.RegisterType((*QueryVaultCountByProductAndPairRequest)(nil), "comdex.vault.v1beta1.QueryVaultCountByProductAndPairRequest") - proto.RegisterType((*QueryVaultCountByProductAndPairResponse)(nil), "comdex.vault.v1beta1.QueryVaultCountByProductAndPairResponse") - proto.RegisterType((*QueryTotalValueLockedByProductExtendedPairRequest)(nil), "comdex.vault.v1beta1.QueryTotalValueLockedByProductExtendedPairRequest") - proto.RegisterType((*QueryTotalValueLockedByProductExtendedPairResponse)(nil), "comdex.vault.v1beta1.QueryTotalValueLockedByProductExtendedPairResponse") - proto.RegisterType((*QueryExtendedPairIDByProductRequest)(nil), "comdex.vault.v1beta1.QueryExtendedPairIDByProductRequest") - proto.RegisterType((*QueryExtendedPairIDByProductResponse)(nil), "comdex.vault.v1beta1.QueryExtendedPairIDByProductResponse") - proto.RegisterType((*QueryStableVaultInfoRequest)(nil), "comdex.vault.v1beta1.QueryStableVaultInfoRequest") - proto.RegisterType((*QueryStableVaultInfoResponse)(nil), "comdex.vault.v1beta1.QueryStableVaultInfoResponse") - proto.RegisterType((*QueryAllStableVaultsRequest)(nil), "comdex.vault.v1beta1.QueryAllStableVaultsRequest") - proto.RegisterType((*QueryAllStableVaultsResponse)(nil), "comdex.vault.v1beta1.QueryAllStableVaultsResponse") - proto.RegisterType((*QueryStableVaultByProductExtendedPairRequest)(nil), "comdex.vault.v1beta1.QueryStableVaultByProductExtendedPairRequest") - proto.RegisterType((*QueryStableVaultByProductExtendedPairResponse)(nil), "comdex.vault.v1beta1.QueryStableVaultByProductExtendedPairResponse") + proto.RegisterType((*QueryVaultIdOfOwnerByExtendedPairAndAppRequest)(nil), "comdex.vault.v1beta1.QueryVaultIdOfOwnerByExtendedPairAndAppRequest") + proto.RegisterType((*QueryVaultIdOfOwnerByExtendedPairAndAppResponse)(nil), "comdex.vault.v1beta1.QueryVaultIdOfOwnerByExtendedPairAndAppResponse") + proto.RegisterType((*QueryVaultIdsByAppInAllExtendedPairsRequest)(nil), "comdex.vault.v1beta1.QueryVaultIdsByAppInAllExtendedPairsRequest") + proto.RegisterType((*QueryVaultIdsByAppInAllExtendedPairsResponse)(nil), "comdex.vault.v1beta1.QueryVaultIdsByAppInAllExtendedPairsResponse") + proto.RegisterType((*QueryAllVaultIdsByAnOwnerRequest)(nil), "comdex.vault.v1beta1.QueryAllVaultIdsByAnOwnerRequest") + proto.RegisterType((*QueryAllVaultIdsByAnOwnerResponse)(nil), "comdex.vault.v1beta1.QueryAllVaultIdsByAnOwnerResponse") + proto.RegisterType((*QueryTokenMintedByAppAndExtendedPairRequest)(nil), "comdex.vault.v1beta1.QueryTokenMintedByAppAndExtendedPairRequest") + proto.RegisterType((*QueryTokenMintedByAppAndExtendedPairResponse)(nil), "comdex.vault.v1beta1.QueryTokenMintedByAppAndExtendedPairResponse") + proto.RegisterType((*QueryTokenMintedAssetWiseByAppRequest)(nil), "comdex.vault.v1beta1.QueryTokenMintedAssetWiseByAppRequest") + proto.RegisterType((*QueryTokenMintedAssetWiseByAppResponse)(nil), "comdex.vault.v1beta1.QueryTokenMintedAssetWiseByAppResponse") + proto.RegisterType((*QueryVaultCountByAppRequest)(nil), "comdex.vault.v1beta1.QueryVaultCountByAppRequest") + proto.RegisterType((*QueryVaultCountByAppResponse)(nil), "comdex.vault.v1beta1.QueryVaultCountByAppResponse") + proto.RegisterType((*QueryVaultCountByAppAndExtendedPairRequest)(nil), "comdex.vault.v1beta1.QueryVaultCountByAppAndExtendedPairRequest") + proto.RegisterType((*QueryVaultCountByAppAndExtendedPairResponse)(nil), "comdex.vault.v1beta1.QueryVaultCountByAppAndExtendedPairResponse") + proto.RegisterType((*QueryTotalValueLockedByAppExtendedPairRequest)(nil), "comdex.vault.v1beta1.QueryTotalValueLockedByAppExtendedPairRequest") + proto.RegisterType((*QueryTotalValueLockedByAppExtendedPairResponse)(nil), "comdex.vault.v1beta1.QueryTotalValueLockedByAppExtendedPairResponse") + proto.RegisterType((*QueryExtendedPairIDsByAppRequest)(nil), "comdex.vault.v1beta1.QueryExtendedPairIDsByAppRequest") + proto.RegisterType((*QueryExtendedPairIDsByAppResponse)(nil), "comdex.vault.v1beta1.QueryExtendedPairIDsByAppResponse") + proto.RegisterType((*QueryStableVaultByVaultIdRequest)(nil), "comdex.vault.v1beta1.QueryStableVaultByVaultIdRequest") + proto.RegisterType((*QueryStableVaultByVaultIdResponse)(nil), "comdex.vault.v1beta1.QueryStableVaultByVaultIdResponse") + proto.RegisterType((*QueryStableVaultByAppRequest)(nil), "comdex.vault.v1beta1.QueryStableVaultByAppRequest") + proto.RegisterType((*QueryStableVaultByAppResponse)(nil), "comdex.vault.v1beta1.QueryStableVaultByAppResponse") + proto.RegisterType((*QueryStableVaultByAppExtendedPairRequest)(nil), "comdex.vault.v1beta1.QueryStableVaultByAppExtendedPairRequest") + proto.RegisterType((*QueryStableVaultByAppExtendedPairResponse)(nil), "comdex.vault.v1beta1.QueryStableVaultByAppExtendedPairResponse") proto.RegisterType((*QueryExtendedPairVaultMappingByAppAndExtendedPairIdRequest)(nil), "comdex.vault.v1beta1.QueryExtendedPairVaultMappingByAppAndExtendedPairIdRequest") proto.RegisterType((*QueryExtendedPairVaultMappingByAppAndExtendedPairIdResponse)(nil), "comdex.vault.v1beta1.QueryExtendedPairVaultMappingByAppAndExtendedPairIdResponse") proto.RegisterType((*QueryExtendedPairVaultMappingByAppRequest)(nil), "comdex.vault.v1beta1.QueryExtendedPairVaultMappingByAppRequest") proto.RegisterType((*QueryExtendedPairVaultMappingByAppResponse)(nil), "comdex.vault.v1beta1.QueryExtendedPairVaultMappingByAppResponse") - proto.RegisterType((*QueryExtendedPairVaultMappingByOwnerAndAppRequest)(nil), "comdex.vault.v1beta1.QueryExtendedPairVaultMappingByOwnerAndAppRequest") - proto.RegisterType((*QueryExtendedPairVaultMappingByOwnerAndAppResponse)(nil), "comdex.vault.v1beta1.QueryExtendedPairVaultMappingByOwnerAndAppResponse") - proto.RegisterType((*QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairIDRequest)(nil), "comdex.vault.v1beta1.QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairIDRequest") - proto.RegisterType((*QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairIDResponse)(nil), "comdex.vault.v1beta1.QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairIDResponse") proto.RegisterType((*QueryTVLLockedByAppOfAllExtendedPairsRequest)(nil), "comdex.vault.v1beta1.QueryTVLLockedByAppOfAllExtendedPairsRequest") proto.RegisterType((*QueryTVLLockedByAppOfAllExtendedPairsResponse)(nil), "comdex.vault.v1beta1.QueryTVLLockedByAppOfAllExtendedPairsResponse") proto.RegisterType((*QueryTotalTVLByAppRequest)(nil), "comdex.vault.v1beta1.QueryTotalTVLByAppRequest") @@ -2179,192 +2018,179 @@ func init() { func init() { proto.RegisterFile("comdex/vault/v1beta1/query.proto", fileDescriptor_8d35126a97363346) } var fileDescriptor_8d35126a97363346 = []byte{ - // 2955 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x5b, 0x4b, 0x6c, 0xdc, 0xc6, - 0xf9, 0x17, 0x57, 0x92, 0x63, 0x8d, 0x1e, 0x96, 0xc6, 0x8a, 0xbd, 0x5e, 0x3b, 0x5a, 0x7b, 0x1c, - 0x3f, 0xe2, 0x78, 0x77, 0x2d, 0x25, 0x76, 0xfc, 0xf7, 0x5b, 0x94, 0xfc, 0x50, 0x62, 0x45, 0x12, - 0x23, 0x2b, 0x76, 0xfe, 0xb5, 0xb7, 0xd4, 0x92, 0x92, 0x09, 0x73, 0x49, 0x66, 0xc9, 0x95, 0xb3, - 0x75, 0x75, 0x71, 0x9b, 0x02, 0xc9, 0xa1, 0x4e, 0x11, 0xa4, 0x01, 0xda, 0x43, 0x7b, 0xe8, 0xa1, - 0x87, 0xf6, 0x10, 0xa0, 0xe8, 0xa1, 0x40, 0x8b, 0x04, 0x68, 0x01, 0xa3, 0x40, 0xdb, 0x04, 0x45, - 0x80, 0x22, 0x05, 0x16, 0xad, 0xdc, 0x63, 0xd0, 0x02, 0x7b, 0xc9, 0xa1, 0x68, 0x51, 0x70, 0x38, - 0x5c, 0x3e, 0x96, 0x1c, 0x92, 0x2b, 0x3b, 0xae, 0xd0, 0x8b, 0x2d, 0x91, 0x33, 0xdf, 0x7c, 0xbf, - 0xdf, 0x7c, 0xf3, 0xcd, 0x37, 0xf3, 0xa3, 0xc0, 0xee, 0x92, 0x5a, 0x16, 0xc4, 0x37, 0x0a, 0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18, 0xe2, 0xfa, 0xec, - 0xdf, 0x39, 0xde, 0x10, 0xe1, 0x59, 0x30, 0xc0, 0xeb, 0xba, 0x68, 0x14, 0x25, 0xa5, 0x28, 0x88, - 0x8a, 0x5a, 0x4e, 0xf7, 0xe0, 0xd1, 0x76, 0x34, 0xea, 0xd9, 0x27, 0xad, 0xfe, 0xde, 0xf7, 0x88, - 0xeb, 0xc3, 0x0f, 0xa6, 0x94, 0x49, 0xf3, 0x57, 0xc8, 0x82, 0x2d, 0x56, 0x03, 0xb5, 0x6a, 0x10, - 0x0b, 0x00, 0x5b, 0xc8, 0x34, 0xea, 0xd9, 0x6d, 0x6e, 0x0b, 0xcd, 0x06, 0x88, 0xeb, 0xc7, 0x4f, - 0x66, 0xaa, 0x86, 0x65, 0x63, 0x01, 0x6c, 0x2a, 0x4b, 0x4a, 0xb1, 0x54, 0x49, 0xf7, 0xe2, 0xae, - 0x67, 0x13, 0x43, 0xed, 0xb7, 0x06, 0xb2, 0xac, 0x20, 0xae, 0xbb, 0x2c, 0x29, 0x13, 0x15, 0x34, - 0x06, 0x86, 0xe6, 0xcc, 0x15, 0x8f, 0x57, 0x1f, 0x27, 0xbe, 0x5e, 0x15, 0x75, 0x03, 0x3e, 0xe5, - 0x2c, 0x40, 0xb6, 0xbf, 0x51, 0xcf, 0xf6, 0x10, 0x96, 0x04, 0x64, 0xae, 0x47, 0x74, 0x1d, 0x40, - 0x77, 0x1f, 0x5d, 0x53, 0x15, 0x5d, 0x84, 0x17, 0x41, 0x37, 0x5e, 0xd2, 0xb8, 0x5f, 0xef, 0xd8, - 0xce, 0x7c, 0x50, 0xae, 0xc9, 0xe3, 0x3e, 0xec, 0xb0, 0xe9, 0xbd, 0xb3, 0xda, 0x70, 0x13, 0xc4, - 0x59, 0xfd, 0xd1, 0x31, 0xf0, 0xa4, 0x63, 0xde, 0x4c, 0x08, 0x31, 0xdd, 0xba, 0xcb, 0x80, 0x6d, - 0xfe, 0x8e, 0xc4, 0xb7, 0x9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9d, 0xbb, - 0xff, 0xd7, 0x91, 0x8e, 0x1f, 0xaf, 0x8d, 0x74, 0xdc, 0x5f, 0x1b, 0x61, 0x3e, 0x5e, 0x1b, 0x61, - 0xfe, 0xb2, 0x36, 0xc2, 0xbc, 0xf3, 0x60, 0xa4, 0xe3, 0xe3, 0x07, 0x23, 0x1d, 0x7f, 0x7a, 0x30, - 0xd2, 0xf1, 0x5a, 0xc1, 0x23, 0x67, 0x98, 0x63, 0xe5, 0xd4, 0xa5, 0x25, 0xa9, 0x24, 0xf1, 0xb2, - 0x3d, 0xb6, 0x3d, 0x3a, 0xd6, 0x36, 0x16, 0x37, 0xe1, 0x3f, 0xae, 0x7d, 0xee, 0x3f, 0x01, 0x00, - 0x00, 0xff, 0xff, 0xe1, 0xbc, 0xf0, 0x30, 0x18, 0x3c, 0x00, 0x00, + // 2744 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x5b, 0x5d, 0x6c, 0x14, 0xd7, + 0xf5, 0xf7, 0xac, 0x6d, 0x82, 0xaf, 0xb1, 0xb1, 0x2f, 0x06, 0x96, 0x05, 0x76, 0xc9, 0x25, 0x01, + 0x02, 0xcc, 0x2e, 0x36, 0x04, 0xf8, 0xf3, 0x65, 0x76, 0x6d, 0x93, 0x6c, 0x02, 0x7f, 0x60, 0x42, + 0x4c, 0x48, 0x45, 0xb7, 0xe3, 0x9d, 0xb1, 0x33, 0x62, 0x76, 0x66, 0xb3, 0x33, 0xbb, 0xc4, 0xa5, + 0xa8, 0x55, 0x5e, 0xaa, 0xa4, 0xea, 0x97, 0x9a, 0xaa, 0x95, 0xda, 0x97, 0xbe, 0x54, 0xa9, 0xaa, + 0x4a, 0xe9, 0x4b, 0x5f, 0x5a, 0x55, 0xca, 0x4b, 0x45, 0x3f, 0xa4, 0x52, 0x55, 0x95, 0xaa, 0x3c, + 0xac, 0x52, 0xd3, 0xe7, 0xb6, 0xda, 0x97, 0x4a, 0x6d, 0xa3, 0x56, 0x73, 0xef, 0x99, 0x9d, 0x99, + 0xf5, 0xec, 0x7c, 0xac, 0x71, 0x42, 0xc4, 0x0b, 0xec, 0xce, 0xdc, 0xfb, 0x3b, 0xe7, 0x77, 0x3e, + 0xee, 0x3d, 0xf7, 0x9e, 0x35, 0xda, 0x53, 0xd6, 0x2b, 0x92, 0xfc, 0x46, 0xae, 0x21, 0xd6, 0x55, + 0x33, 0xd7, 0x98, 0x5c, 0x90, 0x4d, 0x71, 0x32, 0xf7, 0x7a, 0x5d, 0xae, 0x2d, 0x67, 0xab, 0x35, + 0xdd, 0xd4, 0xf1, 0x04, 0x1b, 0x91, 0xa5, 0x23, 0xb2, 0x30, 0x22, 0x75, 0xb0, 0xac, 0x1b, 0x15, + 0xdd, 0xc8, 0x2d, 0x88, 0x86, 0xcc, 0x86, 0xb7, 0x27, 0x57, 0xc5, 0x25, 0x45, 0x13, 0x4d, 0x45, + 0xd7, 0x18, 0x42, 0x6a, 0x62, 0x49, 0x5f, 0xd2, 0xe9, 0xc7, 0x9c, 0xf5, 0x09, 0x9e, 0xee, 0x5a, + 0xd2, 0xf5, 0x25, 0x55, 0xce, 0x89, 0x55, 0x25, 0x27, 0x6a, 0x9a, 0x6e, 0xd2, 0x29, 0x06, 0xbc, + 0xf5, 0xd7, 0x8b, 0xe9, 0x40, 0x47, 0x90, 0x7f, 0x6e, 0x40, 0x43, 0xf3, 0xd6, 0xf7, 0xa2, 0xb6, + 0xa8, 0xe3, 0x51, 0x94, 0x50, 0xa4, 0x24, 0xb7, 0x87, 0x3b, 0x30, 0x24, 0x24, 0x14, 0x09, 0x5f, + 0x47, 0x63, 0xf2, 0x1b, 0xa6, 0xac, 0x49, 0xb2, 0x54, 0xaa, 0x8a, 0x4a, 0xad, 0xa4, 0x48, 0xc9, + 0xc4, 0x1e, 0xee, 0xc0, 0x40, 0x81, 0x5f, 0x69, 0x66, 0x46, 0xe7, 0xe0, 0xdd, 0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, 0xcd, 0x1a, 0x43, 0x84, 0x31, 0xb7, 0xdb, 0xfe, 0x5f, 0xac, 0xc8, 0xf8, + 0x16, 0x1a, 0x51, 0x34, 0x53, 0xae, 0xc9, 0x86, 0x69, 0xc9, 0x95, 0x93, 0x1b, 0x29, 0xce, 0x85, + 0xd8, 0x6c, 0x26, 0x98, 0x54, 0x0f, 0x18, 0x11, 0x36, 0xd9, 0xdf, 0x05, 0xd1, 0x94, 0xf1, 0x34, + 0x1a, 0x15, 0x0d, 0x43, 0x36, 0x4b, 0x8a, 0x56, 0x92, 0x64, 0x4d, 0xaf, 0x24, 0x87, 0xa8, 0xb4, + 0x1d, 0xad, 0x66, 0x66, 0x2b, 0x9b, 0xef, 0x7d, 0x4f, 0x84, 0x4d, 0xf4, 0x41, 0x51, 0x9b, 0xb5, + 0xbe, 0xe2, 0x02, 0xda, 0xcc, 0x06, 0xe8, 0x75, 0x13, 0x10, 0x10, 0x45, 0x48, 0xb5, 0x9a, 0x99, + 0x6d, 0x6e, 0x84, 0xf6, 0x00, 0x22, 0x8c, 0xd0, 0x27, 0x97, 0xeb, 0x26, 0xc3, 0x98, 0x47, 0x1b, + 0x2a, 0x8a, 0x56, 0x2a, 0xd7, 0x92, 0xc3, 0x74, 0xea, 0x74, 0x6c, 0xaa, 0x23, 0x4c, 0x10, 0x43, + 0x21, 0xc2, 0x60, 0x45, 0xd1, 0x66, 0x6a, 0x64, 0x0a, 0x8d, 0x5f, 0xb5, 0x32, 0x9e, 0x66, 0x9f, + 0x20, 0xbf, 0x5e, 0x97, 0x0d, 0x13, 0xef, 0x76, 0x12, 0xb0, 0x30, 0xd2, 0x6a, 0x66, 0x86, 0xc0, + 0x4a, 0x12, 0xb1, 0xf2, 0x91, 0xdc, 0x44, 0xd8, 0x3d, 0xc7, 0xa8, 0xea, 0x9a, 0x21, 0xe3, 0xe7, + 0xd0, 0x20, 0x4d, 0x69, 0x3a, 0x6f, 0x78, 0x6a, 0x67, 0xd6, 0x6f, 0xad,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xf7, 0x39, 0xb4, 0xad, 0x53, 0xf0, 0xea, 0x94, 0xe8, 0x5f, 0x4b, 0x4a, 0xac, 0xbb, 0xed, + 0x2e, 0xa0, 0x94, 0x97, 0x42, 0x6f, 0xc1, 0x49, 0x7e, 0xc5, 0xa1, 0x9d, 0xbe, 0x40, 0x9f, 0x36, + 0x83, 0xfc, 0x9b, 0x43, 0xcf, 0xf8, 0x10, 0xc9, 0x6b, 0x92, 0xbb, 0xda, 0x88, 0x9f, 0xbd, 0x73, + 0x5d, 0x4b, 0x99, 0x9d, 0x71, 0x0a, 0x17, 0x6f, 0x48, 0xf7, 0x3f, 0xec, 0x90, 0xfe, 0x13, 0x87, + 0x0e, 0x46, 0x61, 0xff, 0x69, 0xf3, 0xea, 0xbb, 0x09, 0x94, 0x75, 0xad, 0x89, 0x52, 0x7b, 0x45, + 0x74, 0xd3, 0xca, 0x6b, 0xd2, 0x7a, 0x2e, 0xcc, 0xbe, 0x21, 0xd0, 0xbf, 0xd6, 0x10, 0x18, 0x78, + 0xd8, 0x21, 0x20, 0xa2, 0x5c, 0x64, 0x4b, 0x41, 0x18, 0x64, 0xd1, 0x46, 0xea, 0xc6, 0x52, 0xd1, + 0xde, 0x9b, 0xb7, 0xb4, 0x9a, 0x99, 0xcd, 0x2e, 0x47, 0x97, 0x8a, 0x12, 0x11, 0x9e, 0x68, 0x30, + 0x48, 0xf2, 0x33, 0x0e, 0x1d, 0x72, 0xcb, 0x60, 0x41, 0x56, 0xd4, 0xf2, 0xaa, 0xea, 0x96, 0x62, + 0xc4, 0x77, 0xc5, 0x4d, 0x9f, 0x38, 0x7a, 0xa8, 0xb6, 0x39, 0x1c, 0x4d, 0x6f, 0x30, 0xcc, 0x24, + 0x1a, 0x62, 0xf4, 0x15, 0xc9, 0xa0, 0x39, 0x32, 0x54, 0x98, 0x68, 0x35, 0x33, 0x63, 0x6e, 0xcb, + 0x28, 0x92, 0x41, 0x84, 0x8d, 0x60, 0x1a, 0x83, 0xfc, 0x88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 0x94, 0x0e, 0xd7, 0xe6, 0x2f, 0xf6, + 0xe8, 0xed, 0x6f, 0x73, 0x70, 0xbb, 0xda, 0x81, 0x03, 0xfa, 0xdf, 0x46, 0xe3, 0x4e, 0xcb, 0xcc, + 0x5b, 0x73, 0xbc, 0x10, 0xfb, 0xe8, 0x96, 0xec, 0xec, 0xce, 0x01, 0x20, 0x11, 0xc6, 0x9c, 0x67, + 0x50, 0x98, 0x18, 0xd0, 0x25, 0x79, 0xd9, 0x90, 0x6b, 0x97, 0x96, 0xaf, 0xe8, 0x86, 0x62, 0x55, + 0x00, 0xeb, 0xdc, 0x96, 0xf8, 0x7b, 0x3f, 0xec, 0xf8, 0xbe, 0x52, 0x3f, 0x61, 0x93, 0xe0, 0x12, + 0x1a, 0x32, 0x2d, 0x27, 0x95, 0xa4, 0xba, 0x0c, 0x4c, 0x0a, 0xb1, 0x05, 0x8e, 0xd9, 0xc7, 0x67, + 0x00, 0x22, 0xc2, 0x46, 0xfa, 0x79, 0xb6, 0x2e, 0xe3, 0x2f, 0xa0, 0x2d, 0x62, 0x43, 0x54, 0x54, + 0xba, 0xf8, 0x9b, 0x7a, 0x69, 0x41, 0xaf, 0xd5, 0xf4, 0xdb, 0xd0, 0x7f, 0xbe, 0x18, 0x5b, 0x54, + 0x0a, 0x7c, 0xb1, 0x1a, 0x92, 0x08, 0xe3, 0xed, 0xa7, 0xd7, 0xf4, 0x02, 0x7d, 0x86, 0x0d, 0x34, + 0x26, 0x36, 0xe4, 0x9a, 0xb8, 0x24, 0x97, 0xca, 0x35, 0xe8, 0x03, 0xb3, 0x6e, 0x76, 0x31, 0x76, + 0x3b, 0x71, 0xbb, 0x2d, 0xda, 0x8b, 0x47, 0x84, 0x51, 0x78, 0x34, 0x53, 0xa3, 0x8d, 0x5f, 0x72, + 0x19, 0xae, 0x0a, 0x2c, 0x87, 0xbb, 0x33, 0x98, 0x66, 0x83, 0x95, 0x8b, 0x31, 0xaf, 0xb3, 0xc8, + 0x77, 0xec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x42, 0xaf, 0xb2, 0xcc, 0x57, 0x61, 0x72, 0xb7, 0x2b, 0xa3, 0xc2, 0xd5, 0x7b, 0x7f, + 0x49, 0xf7, 0xbd, 0xbb, 0x92, 0xee, 0xbb, 0xb7, 0x92, 0xe6, 0xee, 0xaf, 0xa4, 0xb9, 0x0f, 0x57, + 0xd2, 0xdc, 0x37, 0x1e, 0xa4, 0xfb, 0xee, 0x3f, 0x48, 0xf7, 0xfd, 0xf9, 0x41, 0xba, 0xef, 0xd5, + 0x9c, 0xe7, 0xb6, 0xda, 0x92, 0xc5, 0xeb, 0x8b, 0x8b, 0x4a, 0x59, 0x11, 0x55, 0x5b, 0xb6, 0x2d, + 0x9d, 0x5e, 0x5d, 0x2f, 0x6c, 0xa0, 0x7f, 0x6e, 0x76, 0xf4, 0x7f, 0x01, 0x00, 0x00, 0xff, 0xff, + 0xea, 0x2f, 0xe7, 0x5d, 0x2a, 0x37, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -2381,27 +2207,25 @@ const _ = grpc.SupportPackageIsVersion4 type QueryClient interface { QueryVault(ctx context.Context, in *QueryVaultRequest, opts ...grpc.CallOption) (*QueryVaultResponse, error) QueryUserExtendedPairTotalData(ctx context.Context, in *QueryUserExtendedPairTotalDataRequest, opts ...grpc.CallOption) (*QueryUserExtendedPairTotalDataResponse, error) - QueryVaultInfo(ctx context.Context, in *QueryVaultInfoRequest, opts ...grpc.CallOption) (*QueryVaultInfoResponse, error) - QueryVaultInfoByAppByOwner(ctx context.Context, in *QueryVaultInfoByAppByOwnerRequest, opts ...grpc.CallOption) (*QueryVaultInfoByAppByOwnerResponse, error) + QueryVaultInfoByVaultId(ctx context.Context, in *QueryVaultInfoByVaultIdRequest, opts ...grpc.CallOption) (*QueryVaultInfoByVaultIdResponse, error) + QueryVaultInfoOfOwnerByApp(ctx context.Context, in *QueryVaultInfoOfOwnerByAppRequest, opts ...grpc.CallOption) (*QueryVaultInfoOfOwnerByAppResponse, error) QueryAllVaults(ctx context.Context, in *QueryAllVaultsRequest, opts ...grpc.CallOption) (*QueryAllVaultsResponse, error) - QueryAllVaultsByProduct(ctx context.Context, in *QueryAllVaultsByProductRequest, opts ...grpc.CallOption) (*QueryAllVaultsByProductResponse, error) + QueryAllVaultsByApp(ctx context.Context, in *QueryAllVaultsByAppRequest, opts ...grpc.CallOption) (*QueryAllVaultsByAppResponse, error) QueryAllVaultsByAppAndExtendedPair(ctx context.Context, in *QueryAllVaultsByAppAndExtendedPairRequest, opts ...grpc.CallOption) (*QueryAllVaultsByAppAndExtendedPairResponse, error) - QueryVaultOfOwnerByExtendedPair(ctx context.Context, in *QueryVaultOfOwnerByExtendedPairRequest, opts ...grpc.CallOption) (*QueryVaultOfOwnerByExtendedPairResponse, error) - QueryVaultByProduct(ctx context.Context, in *QueryVaultByProductRequest, opts ...grpc.CallOption) (*QueryVaultByProductResponse, error) - QueryAllVaultByOwner(ctx context.Context, in *QueryAllVaultByOwnerRequest, opts ...grpc.CallOption) (*QueryAllVaultByOwnerResponse, error) - QueryTokenMintedAllProductsByPair(ctx context.Context, in *QueryTokenMintedAllProductsByPairRequest, opts ...grpc.CallOption) (*QueryTokenMintedAllProductsByPairResponse, error) - QueryTokenMintedByProductAssetWise(ctx context.Context, in *QueryTokenMintedByProductAssetWiseRequest, opts ...grpc.CallOption) (*QueryTokenMintedByProductAssetWiseResponse, error) - QueryVaultCountByProduct(ctx context.Context, in *QueryVaultCountByProductRequest, opts ...grpc.CallOption) (*QueryVaultCountByProductResponse, error) - QueryVaultCountByProductAndPair(ctx context.Context, in *QueryVaultCountByProductAndPairRequest, opts ...grpc.CallOption) (*QueryVaultCountByProductAndPairResponse, error) - QueryTotalValueLockedByProductExtendedPair(ctx context.Context, in *QueryTotalValueLockedByProductExtendedPairRequest, opts ...grpc.CallOption) (*QueryTotalValueLockedByProductExtendedPairResponse, error) - QueryExtendedPairIDByProduct(ctx context.Context, in *QueryExtendedPairIDByProductRequest, opts ...grpc.CallOption) (*QueryExtendedPairIDByProductResponse, error) - QueryStableVaultInfo(ctx context.Context, in *QueryStableVaultInfoRequest, opts ...grpc.CallOption) (*QueryStableVaultInfoResponse, error) - QueryAllStableVaults(ctx context.Context, in *QueryAllStableVaultsRequest, opts ...grpc.CallOption) (*QueryAllStableVaultsResponse, error) - QueryStableVaultByProductExtendedPair(ctx context.Context, in *QueryStableVaultByProductExtendedPairRequest, opts ...grpc.CallOption) (*QueryStableVaultByProductExtendedPairResponse, error) + QueryVaultIdOfOwnerByExtendedPairAndApp(ctx context.Context, in *QueryVaultIdOfOwnerByExtendedPairAndAppRequest, opts ...grpc.CallOption) (*QueryVaultIdOfOwnerByExtendedPairAndAppResponse, error) + QueryVaultIdsByAppInAllExtendedPairs(ctx context.Context, in *QueryVaultIdsByAppInAllExtendedPairsRequest, opts ...grpc.CallOption) (*QueryVaultIdsByAppInAllExtendedPairsResponse, error) + QueryAllVaultIdsByAnOwner(ctx context.Context, in *QueryAllVaultIdsByAnOwnerRequest, opts ...grpc.CallOption) (*QueryAllVaultIdsByAnOwnerResponse, error) + QueryTokenMintedByAppAndExtendedPair(ctx context.Context, in *QueryTokenMintedByAppAndExtendedPairRequest, opts ...grpc.CallOption) (*QueryTokenMintedByAppAndExtendedPairResponse, error) + QueryTokenMintedAssetWiseByApp(ctx context.Context, in *QueryTokenMintedAssetWiseByAppRequest, opts ...grpc.CallOption) (*QueryTokenMintedAssetWiseByAppResponse, error) + QueryVaultCountByApp(ctx context.Context, in *QueryVaultCountByAppRequest, opts ...grpc.CallOption) (*QueryVaultCountByAppResponse, error) + QueryVaultCountByAppAndExtendedPair(ctx context.Context, in *QueryVaultCountByAppAndExtendedPairRequest, opts ...grpc.CallOption) (*QueryVaultCountByAppAndExtendedPairResponse, error) + QueryTotalValueLockedByAppExtendedPair(ctx context.Context, in *QueryTotalValueLockedByAppExtendedPairRequest, opts ...grpc.CallOption) (*QueryTotalValueLockedByAppExtendedPairResponse, error) + QueryExtendedPairIDsByApp(ctx context.Context, in *QueryExtendedPairIDsByAppRequest, opts ...grpc.CallOption) (*QueryExtendedPairIDsByAppResponse, error) + QueryStableVaultByVaultId(ctx context.Context, in *QueryStableVaultByVaultIdRequest, opts ...grpc.CallOption) (*QueryStableVaultByVaultIdResponse, error) + QueryStableVaultByApp(ctx context.Context, in *QueryStableVaultByAppRequest, opts ...grpc.CallOption) (*QueryStableVaultByAppResponse, error) + QueryStableVaultByAppExtendedPair(ctx context.Context, in *QueryStableVaultByAppExtendedPairRequest, opts ...grpc.CallOption) (*QueryStableVaultByAppExtendedPairResponse, error) QueryExtendedPairVaultMappingByAppAndExtendedPairId(ctx context.Context, in *QueryExtendedPairVaultMappingByAppAndExtendedPairIdRequest, opts ...grpc.CallOption) (*QueryExtendedPairVaultMappingByAppAndExtendedPairIdResponse, error) QueryExtendedPairVaultMappingByApp(ctx context.Context, in *QueryExtendedPairVaultMappingByAppRequest, opts ...grpc.CallOption) (*QueryExtendedPairVaultMappingByAppResponse, error) - QueryExtendedPairVaultMappingByOwnerAndApp(ctx context.Context, in *QueryExtendedPairVaultMappingByOwnerAndAppRequest, opts ...grpc.CallOption) (*QueryExtendedPairVaultMappingByOwnerAndAppResponse, error) - QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairID(ctx context.Context, in *QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairIDRequest, opts ...grpc.CallOption) (*QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairIDResponse, error) QueryTVLLockedByAppOfAllExtendedPairs(ctx context.Context, in *QueryTVLLockedByAppOfAllExtendedPairsRequest, opts ...grpc.CallOption) (*QueryTVLLockedByAppOfAllExtendedPairsResponse, error) QueryTotalTVLByApp(ctx context.Context, in *QueryTotalTVLByAppRequest, opts ...grpc.CallOption) (*QueryTotalTVLByAppResponse, error) QueryUserMyPositionByApp(ctx context.Context, in *QueryUserMyPositionByAppRequest, opts ...grpc.CallOption) (*QueryUserMyPositionByAppResponse, error) @@ -2433,18 +2257,18 @@ func (c *queryClient) QueryUserExtendedPairTotalData(ctx context.Context, in *Qu return out, nil } -func (c *queryClient) QueryVaultInfo(ctx context.Context, in *QueryVaultInfoRequest, opts ...grpc.CallOption) (*QueryVaultInfoResponse, error) { - out := new(QueryVaultInfoResponse) - err := c.cc.Invoke(ctx, "/comdex.vault.v1beta1.Query/QueryVaultInfo", in, out, opts...) +func (c *queryClient) QueryVaultInfoByVaultId(ctx context.Context, in *QueryVaultInfoByVaultIdRequest, opts ...grpc.CallOption) (*QueryVaultInfoByVaultIdResponse, error) { + out := new(QueryVaultInfoByVaultIdResponse) + err := c.cc.Invoke(ctx, "/comdex.vault.v1beta1.Query/QueryVaultInfoByVaultId", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *queryClient) QueryVaultInfoByAppByOwner(ctx context.Context, in *QueryVaultInfoByAppByOwnerRequest, opts ...grpc.CallOption) (*QueryVaultInfoByAppByOwnerResponse, error) { - out := new(QueryVaultInfoByAppByOwnerResponse) - err := c.cc.Invoke(ctx, "/comdex.vault.v1beta1.Query/QueryVaultInfoByAppByOwner", in, out, opts...) +func (c *queryClient) QueryVaultInfoOfOwnerByApp(ctx context.Context, in *QueryVaultInfoOfOwnerByAppRequest, opts ...grpc.CallOption) (*QueryVaultInfoOfOwnerByAppResponse, error) { + out := new(QueryVaultInfoOfOwnerByAppResponse) + err := c.cc.Invoke(ctx, "/comdex.vault.v1beta1.Query/QueryVaultInfoOfOwnerByApp", in, out, opts...) if err != nil { return nil, err } @@ -2460,9 +2284,9 @@ func (c *queryClient) QueryAllVaults(ctx context.Context, in *QueryAllVaultsRequ return out, nil } -func (c *queryClient) QueryAllVaultsByProduct(ctx context.Context, in *QueryAllVaultsByProductRequest, opts ...grpc.CallOption) (*QueryAllVaultsByProductResponse, error) { - out := new(QueryAllVaultsByProductResponse) - err := c.cc.Invoke(ctx, "/comdex.vault.v1beta1.Query/QueryAllVaultsByProduct", in, out, opts...) +func (c *queryClient) QueryAllVaultsByApp(ctx context.Context, in *QueryAllVaultsByAppRequest, opts ...grpc.CallOption) (*QueryAllVaultsByAppResponse, error) { + out := new(QueryAllVaultsByAppResponse) + err := c.cc.Invoke(ctx, "/comdex.vault.v1beta1.Query/QueryAllVaultsByApp", in, out, opts...) if err != nil { return nil, err } @@ -2478,108 +2302,108 @@ func (c *queryClient) QueryAllVaultsByAppAndExtendedPair(ctx context.Context, in return out, nil } -func (c *queryClient) QueryVaultOfOwnerByExtendedPair(ctx context.Context, in *QueryVaultOfOwnerByExtendedPairRequest, opts ...grpc.CallOption) (*QueryVaultOfOwnerByExtendedPairResponse, error) { - out := new(QueryVaultOfOwnerByExtendedPairResponse) - err := c.cc.Invoke(ctx, "/comdex.vault.v1beta1.Query/QueryVaultOfOwnerByExtendedPair", in, out, opts...) +func (c *queryClient) QueryVaultIdOfOwnerByExtendedPairAndApp(ctx context.Context, in *QueryVaultIdOfOwnerByExtendedPairAndAppRequest, opts ...grpc.CallOption) (*QueryVaultIdOfOwnerByExtendedPairAndAppResponse, error) { + out := new(QueryVaultIdOfOwnerByExtendedPairAndAppResponse) + err := c.cc.Invoke(ctx, "/comdex.vault.v1beta1.Query/QueryVaultIdOfOwnerByExtendedPairAndApp", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *queryClient) QueryVaultByProduct(ctx context.Context, in *QueryVaultByProductRequest, opts ...grpc.CallOption) (*QueryVaultByProductResponse, error) { - out := new(QueryVaultByProductResponse) - err := c.cc.Invoke(ctx, "/comdex.vault.v1beta1.Query/QueryVaultByProduct", in, out, opts...) +func (c *queryClient) QueryVaultIdsByAppInAllExtendedPairs(ctx context.Context, in *QueryVaultIdsByAppInAllExtendedPairsRequest, opts ...grpc.CallOption) (*QueryVaultIdsByAppInAllExtendedPairsResponse, error) { + out := new(QueryVaultIdsByAppInAllExtendedPairsResponse) + err := c.cc.Invoke(ctx, "/comdex.vault.v1beta1.Query/QueryVaultIdsByAppInAllExtendedPairs", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *queryClient) QueryAllVaultByOwner(ctx context.Context, in *QueryAllVaultByOwnerRequest, opts ...grpc.CallOption) (*QueryAllVaultByOwnerResponse, error) { - out := new(QueryAllVaultByOwnerResponse) - err := c.cc.Invoke(ctx, "/comdex.vault.v1beta1.Query/QueryAllVaultByOwner", in, out, opts...) +func (c *queryClient) QueryAllVaultIdsByAnOwner(ctx context.Context, in *QueryAllVaultIdsByAnOwnerRequest, opts ...grpc.CallOption) (*QueryAllVaultIdsByAnOwnerResponse, error) { + out := new(QueryAllVaultIdsByAnOwnerResponse) + err := c.cc.Invoke(ctx, "/comdex.vault.v1beta1.Query/QueryAllVaultIdsByAnOwner", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *queryClient) QueryTokenMintedAllProductsByPair(ctx context.Context, in *QueryTokenMintedAllProductsByPairRequest, opts ...grpc.CallOption) (*QueryTokenMintedAllProductsByPairResponse, error) { - out := new(QueryTokenMintedAllProductsByPairResponse) - err := c.cc.Invoke(ctx, "/comdex.vault.v1beta1.Query/QueryTokenMintedAllProductsByPair", in, out, opts...) +func (c *queryClient) QueryTokenMintedByAppAndExtendedPair(ctx context.Context, in *QueryTokenMintedByAppAndExtendedPairRequest, opts ...grpc.CallOption) (*QueryTokenMintedByAppAndExtendedPairResponse, error) { + out := new(QueryTokenMintedByAppAndExtendedPairResponse) + err := c.cc.Invoke(ctx, "/comdex.vault.v1beta1.Query/QueryTokenMintedByAppAndExtendedPair", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *queryClient) QueryTokenMintedByProductAssetWise(ctx context.Context, in *QueryTokenMintedByProductAssetWiseRequest, opts ...grpc.CallOption) (*QueryTokenMintedByProductAssetWiseResponse, error) { - out := new(QueryTokenMintedByProductAssetWiseResponse) - err := c.cc.Invoke(ctx, "/comdex.vault.v1beta1.Query/QueryTokenMintedByProductAssetWise", in, out, opts...) +func (c *queryClient) QueryTokenMintedAssetWiseByApp(ctx context.Context, in *QueryTokenMintedAssetWiseByAppRequest, opts ...grpc.CallOption) (*QueryTokenMintedAssetWiseByAppResponse, error) { + out := new(QueryTokenMintedAssetWiseByAppResponse) + err := c.cc.Invoke(ctx, "/comdex.vault.v1beta1.Query/QueryTokenMintedAssetWiseByApp", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *queryClient) QueryVaultCountByProduct(ctx context.Context, in *QueryVaultCountByProductRequest, opts ...grpc.CallOption) (*QueryVaultCountByProductResponse, error) { - out := new(QueryVaultCountByProductResponse) - err := c.cc.Invoke(ctx, "/comdex.vault.v1beta1.Query/QueryVaultCountByProduct", in, out, opts...) +func (c *queryClient) QueryVaultCountByApp(ctx context.Context, in *QueryVaultCountByAppRequest, opts ...grpc.CallOption) (*QueryVaultCountByAppResponse, error) { + out := new(QueryVaultCountByAppResponse) + err := c.cc.Invoke(ctx, "/comdex.vault.v1beta1.Query/QueryVaultCountByApp", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *queryClient) QueryVaultCountByProductAndPair(ctx context.Context, in *QueryVaultCountByProductAndPairRequest, opts ...grpc.CallOption) (*QueryVaultCountByProductAndPairResponse, error) { - out := new(QueryVaultCountByProductAndPairResponse) - err := c.cc.Invoke(ctx, "/comdex.vault.v1beta1.Query/QueryVaultCountByProductAndPair", in, out, opts...) +func (c *queryClient) QueryVaultCountByAppAndExtendedPair(ctx context.Context, in *QueryVaultCountByAppAndExtendedPairRequest, opts ...grpc.CallOption) (*QueryVaultCountByAppAndExtendedPairResponse, error) { + out := new(QueryVaultCountByAppAndExtendedPairResponse) + err := c.cc.Invoke(ctx, "/comdex.vault.v1beta1.Query/QueryVaultCountByAppAndExtendedPair", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *queryClient) QueryTotalValueLockedByProductExtendedPair(ctx context.Context, in *QueryTotalValueLockedByProductExtendedPairRequest, opts ...grpc.CallOption) (*QueryTotalValueLockedByProductExtendedPairResponse, error) { - out := new(QueryTotalValueLockedByProductExtendedPairResponse) - err := c.cc.Invoke(ctx, "/comdex.vault.v1beta1.Query/QueryTotalValueLockedByProductExtendedPair", in, out, opts...) +func (c *queryClient) QueryTotalValueLockedByAppExtendedPair(ctx context.Context, in *QueryTotalValueLockedByAppExtendedPairRequest, opts ...grpc.CallOption) (*QueryTotalValueLockedByAppExtendedPairResponse, error) { + out := new(QueryTotalValueLockedByAppExtendedPairResponse) + err := c.cc.Invoke(ctx, "/comdex.vault.v1beta1.Query/QueryTotalValueLockedByAppExtendedPair", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *queryClient) QueryExtendedPairIDByProduct(ctx context.Context, in *QueryExtendedPairIDByProductRequest, opts ...grpc.CallOption) (*QueryExtendedPairIDByProductResponse, error) { - out := new(QueryExtendedPairIDByProductResponse) - err := c.cc.Invoke(ctx, "/comdex.vault.v1beta1.Query/QueryExtendedPairIDByProduct", in, out, opts...) +func (c *queryClient) QueryExtendedPairIDsByApp(ctx context.Context, in *QueryExtendedPairIDsByAppRequest, opts ...grpc.CallOption) (*QueryExtendedPairIDsByAppResponse, error) { + out := new(QueryExtendedPairIDsByAppResponse) + err := c.cc.Invoke(ctx, "/comdex.vault.v1beta1.Query/QueryExtendedPairIDsByApp", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *queryClient) QueryStableVaultInfo(ctx context.Context, in *QueryStableVaultInfoRequest, opts ...grpc.CallOption) (*QueryStableVaultInfoResponse, error) { - out := new(QueryStableVaultInfoResponse) - err := c.cc.Invoke(ctx, "/comdex.vault.v1beta1.Query/QueryStableVaultInfo", in, out, opts...) +func (c *queryClient) QueryStableVaultByVaultId(ctx context.Context, in *QueryStableVaultByVaultIdRequest, opts ...grpc.CallOption) (*QueryStableVaultByVaultIdResponse, error) { + out := new(QueryStableVaultByVaultIdResponse) + err := c.cc.Invoke(ctx, "/comdex.vault.v1beta1.Query/QueryStableVaultByVaultId", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *queryClient) QueryAllStableVaults(ctx context.Context, in *QueryAllStableVaultsRequest, opts ...grpc.CallOption) (*QueryAllStableVaultsResponse, error) { - out := new(QueryAllStableVaultsResponse) - err := c.cc.Invoke(ctx, "/comdex.vault.v1beta1.Query/QueryAllStableVaults", in, out, opts...) +func (c *queryClient) QueryStableVaultByApp(ctx context.Context, in *QueryStableVaultByAppRequest, opts ...grpc.CallOption) (*QueryStableVaultByAppResponse, error) { + out := new(QueryStableVaultByAppResponse) + err := c.cc.Invoke(ctx, "/comdex.vault.v1beta1.Query/QueryStableVaultByApp", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *queryClient) QueryStableVaultByProductExtendedPair(ctx context.Context, in *QueryStableVaultByProductExtendedPairRequest, opts ...grpc.CallOption) (*QueryStableVaultByProductExtendedPairResponse, error) { - out := new(QueryStableVaultByProductExtendedPairResponse) - err := c.cc.Invoke(ctx, "/comdex.vault.v1beta1.Query/QueryStableVaultByProductExtendedPair", in, out, opts...) +func (c *queryClient) QueryStableVaultByAppExtendedPair(ctx context.Context, in *QueryStableVaultByAppExtendedPairRequest, opts ...grpc.CallOption) (*QueryStableVaultByAppExtendedPairResponse, error) { + out := new(QueryStableVaultByAppExtendedPairResponse) + err := c.cc.Invoke(ctx, "/comdex.vault.v1beta1.Query/QueryStableVaultByAppExtendedPair", in, out, opts...) if err != nil { return nil, err } @@ -2604,24 +2428,6 @@ func (c *queryClient) QueryExtendedPairVaultMappingByApp(ctx context.Context, in return out, nil } -func (c *queryClient) QueryExtendedPairVaultMappingByOwnerAndApp(ctx context.Context, in *QueryExtendedPairVaultMappingByOwnerAndAppRequest, opts ...grpc.CallOption) (*QueryExtendedPairVaultMappingByOwnerAndAppResponse, error) { - out := new(QueryExtendedPairVaultMappingByOwnerAndAppResponse) - err := c.cc.Invoke(ctx, "/comdex.vault.v1beta1.Query/QueryExtendedPairVaultMappingByOwnerAndApp", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairID(ctx context.Context, in *QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairIDRequest, opts ...grpc.CallOption) (*QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairIDResponse, error) { - out := new(QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairIDResponse) - err := c.cc.Invoke(ctx, "/comdex.vault.v1beta1.Query/QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairID", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - func (c *queryClient) QueryTVLLockedByAppOfAllExtendedPairs(ctx context.Context, in *QueryTVLLockedByAppOfAllExtendedPairsRequest, opts ...grpc.CallOption) (*QueryTVLLockedByAppOfAllExtendedPairsResponse, error) { out := new(QueryTVLLockedByAppOfAllExtendedPairsResponse) err := c.cc.Invoke(ctx, "/comdex.vault.v1beta1.Query/QueryTVLLockedByAppOfAllExtendedPairs", in, out, opts...) @@ -2653,27 +2459,25 @@ func (c *queryClient) QueryUserMyPositionByApp(ctx context.Context, in *QueryUse type QueryServer interface { QueryVault(context.Context, *QueryVaultRequest) (*QueryVaultResponse, error) QueryUserExtendedPairTotalData(context.Context, *QueryUserExtendedPairTotalDataRequest) (*QueryUserExtendedPairTotalDataResponse, error) - QueryVaultInfo(context.Context, *QueryVaultInfoRequest) (*QueryVaultInfoResponse, error) - QueryVaultInfoByAppByOwner(context.Context, *QueryVaultInfoByAppByOwnerRequest) (*QueryVaultInfoByAppByOwnerResponse, error) + QueryVaultInfoByVaultId(context.Context, *QueryVaultInfoByVaultIdRequest) (*QueryVaultInfoByVaultIdResponse, error) + QueryVaultInfoOfOwnerByApp(context.Context, *QueryVaultInfoOfOwnerByAppRequest) (*QueryVaultInfoOfOwnerByAppResponse, error) QueryAllVaults(context.Context, *QueryAllVaultsRequest) (*QueryAllVaultsResponse, error) - QueryAllVaultsByProduct(context.Context, *QueryAllVaultsByProductRequest) (*QueryAllVaultsByProductResponse, error) + QueryAllVaultsByApp(context.Context, *QueryAllVaultsByAppRequest) (*QueryAllVaultsByAppResponse, error) QueryAllVaultsByAppAndExtendedPair(context.Context, *QueryAllVaultsByAppAndExtendedPairRequest) (*QueryAllVaultsByAppAndExtendedPairResponse, error) - QueryVaultOfOwnerByExtendedPair(context.Context, *QueryVaultOfOwnerByExtendedPairRequest) (*QueryVaultOfOwnerByExtendedPairResponse, error) - QueryVaultByProduct(context.Context, *QueryVaultByProductRequest) (*QueryVaultByProductResponse, error) - QueryAllVaultByOwner(context.Context, *QueryAllVaultByOwnerRequest) (*QueryAllVaultByOwnerResponse, error) - QueryTokenMintedAllProductsByPair(context.Context, *QueryTokenMintedAllProductsByPairRequest) (*QueryTokenMintedAllProductsByPairResponse, error) - QueryTokenMintedByProductAssetWise(context.Context, *QueryTokenMintedByProductAssetWiseRequest) (*QueryTokenMintedByProductAssetWiseResponse, error) - QueryVaultCountByProduct(context.Context, *QueryVaultCountByProductRequest) (*QueryVaultCountByProductResponse, error) - QueryVaultCountByProductAndPair(context.Context, *QueryVaultCountByProductAndPairRequest) (*QueryVaultCountByProductAndPairResponse, error) - QueryTotalValueLockedByProductExtendedPair(context.Context, *QueryTotalValueLockedByProductExtendedPairRequest) (*QueryTotalValueLockedByProductExtendedPairResponse, error) - QueryExtendedPairIDByProduct(context.Context, *QueryExtendedPairIDByProductRequest) (*QueryExtendedPairIDByProductResponse, error) - QueryStableVaultInfo(context.Context, *QueryStableVaultInfoRequest) (*QueryStableVaultInfoResponse, error) - QueryAllStableVaults(context.Context, *QueryAllStableVaultsRequest) (*QueryAllStableVaultsResponse, error) - QueryStableVaultByProductExtendedPair(context.Context, *QueryStableVaultByProductExtendedPairRequest) (*QueryStableVaultByProductExtendedPairResponse, error) + QueryVaultIdOfOwnerByExtendedPairAndApp(context.Context, *QueryVaultIdOfOwnerByExtendedPairAndAppRequest) (*QueryVaultIdOfOwnerByExtendedPairAndAppResponse, error) + QueryVaultIdsByAppInAllExtendedPairs(context.Context, *QueryVaultIdsByAppInAllExtendedPairsRequest) (*QueryVaultIdsByAppInAllExtendedPairsResponse, error) + QueryAllVaultIdsByAnOwner(context.Context, *QueryAllVaultIdsByAnOwnerRequest) (*QueryAllVaultIdsByAnOwnerResponse, error) + QueryTokenMintedByAppAndExtendedPair(context.Context, *QueryTokenMintedByAppAndExtendedPairRequest) (*QueryTokenMintedByAppAndExtendedPairResponse, error) + QueryTokenMintedAssetWiseByApp(context.Context, *QueryTokenMintedAssetWiseByAppRequest) (*QueryTokenMintedAssetWiseByAppResponse, error) + QueryVaultCountByApp(context.Context, *QueryVaultCountByAppRequest) (*QueryVaultCountByAppResponse, error) + QueryVaultCountByAppAndExtendedPair(context.Context, *QueryVaultCountByAppAndExtendedPairRequest) (*QueryVaultCountByAppAndExtendedPairResponse, error) + QueryTotalValueLockedByAppExtendedPair(context.Context, *QueryTotalValueLockedByAppExtendedPairRequest) (*QueryTotalValueLockedByAppExtendedPairResponse, error) + QueryExtendedPairIDsByApp(context.Context, *QueryExtendedPairIDsByAppRequest) (*QueryExtendedPairIDsByAppResponse, error) + QueryStableVaultByVaultId(context.Context, *QueryStableVaultByVaultIdRequest) (*QueryStableVaultByVaultIdResponse, error) + QueryStableVaultByApp(context.Context, *QueryStableVaultByAppRequest) (*QueryStableVaultByAppResponse, error) + QueryStableVaultByAppExtendedPair(context.Context, *QueryStableVaultByAppExtendedPairRequest) (*QueryStableVaultByAppExtendedPairResponse, error) QueryExtendedPairVaultMappingByAppAndExtendedPairId(context.Context, *QueryExtendedPairVaultMappingByAppAndExtendedPairIdRequest) (*QueryExtendedPairVaultMappingByAppAndExtendedPairIdResponse, error) QueryExtendedPairVaultMappingByApp(context.Context, *QueryExtendedPairVaultMappingByAppRequest) (*QueryExtendedPairVaultMappingByAppResponse, error) - QueryExtendedPairVaultMappingByOwnerAndApp(context.Context, *QueryExtendedPairVaultMappingByOwnerAndAppRequest) (*QueryExtendedPairVaultMappingByOwnerAndAppResponse, error) - QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairID(context.Context, *QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairIDRequest) (*QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairIDResponse, error) QueryTVLLockedByAppOfAllExtendedPairs(context.Context, *QueryTVLLockedByAppOfAllExtendedPairsRequest) (*QueryTVLLockedByAppOfAllExtendedPairsResponse, error) QueryTotalTVLByApp(context.Context, *QueryTotalTVLByAppRequest) (*QueryTotalTVLByAppResponse, error) QueryUserMyPositionByApp(context.Context, *QueryUserMyPositionByAppRequest) (*QueryUserMyPositionByAppResponse, error) @@ -2689,56 +2493,56 @@ func (*UnimplementedQueryServer) QueryVault(ctx context.Context, req *QueryVault func (*UnimplementedQueryServer) QueryUserExtendedPairTotalData(ctx context.Context, req *QueryUserExtendedPairTotalDataRequest) (*QueryUserExtendedPairTotalDataResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method QueryUserExtendedPairTotalData not implemented") } -func (*UnimplementedQueryServer) QueryVaultInfo(ctx context.Context, req *QueryVaultInfoRequest) (*QueryVaultInfoResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method QueryVaultInfo not implemented") +func (*UnimplementedQueryServer) QueryVaultInfoByVaultId(ctx context.Context, req *QueryVaultInfoByVaultIdRequest) (*QueryVaultInfoByVaultIdResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method QueryVaultInfoByVaultId not implemented") } -func (*UnimplementedQueryServer) QueryVaultInfoByAppByOwner(ctx context.Context, req *QueryVaultInfoByAppByOwnerRequest) (*QueryVaultInfoByAppByOwnerResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method QueryVaultInfoByAppByOwner not implemented") +func (*UnimplementedQueryServer) QueryVaultInfoOfOwnerByApp(ctx context.Context, req *QueryVaultInfoOfOwnerByAppRequest) (*QueryVaultInfoOfOwnerByAppResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method QueryVaultInfoOfOwnerByApp not implemented") } func (*UnimplementedQueryServer) QueryAllVaults(ctx context.Context, req *QueryAllVaultsRequest) (*QueryAllVaultsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method QueryAllVaults not implemented") } -func (*UnimplementedQueryServer) QueryAllVaultsByProduct(ctx context.Context, req *QueryAllVaultsByProductRequest) (*QueryAllVaultsByProductResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method QueryAllVaultsByProduct not implemented") +func (*UnimplementedQueryServer) QueryAllVaultsByApp(ctx context.Context, req *QueryAllVaultsByAppRequest) (*QueryAllVaultsByAppResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method QueryAllVaultsByApp not implemented") } func (*UnimplementedQueryServer) QueryAllVaultsByAppAndExtendedPair(ctx context.Context, req *QueryAllVaultsByAppAndExtendedPairRequest) (*QueryAllVaultsByAppAndExtendedPairResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method QueryAllVaultsByAppAndExtendedPair not implemented") } -func (*UnimplementedQueryServer) QueryVaultOfOwnerByExtendedPair(ctx context.Context, req *QueryVaultOfOwnerByExtendedPairRequest) (*QueryVaultOfOwnerByExtendedPairResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method QueryVaultOfOwnerByExtendedPair not implemented") +func (*UnimplementedQueryServer) QueryVaultIdOfOwnerByExtendedPairAndApp(ctx context.Context, req *QueryVaultIdOfOwnerByExtendedPairAndAppRequest) (*QueryVaultIdOfOwnerByExtendedPairAndAppResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method QueryVaultIdOfOwnerByExtendedPairAndApp not implemented") } -func (*UnimplementedQueryServer) QueryVaultByProduct(ctx context.Context, req *QueryVaultByProductRequest) (*QueryVaultByProductResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method QueryVaultByProduct not implemented") +func (*UnimplementedQueryServer) QueryVaultIdsByAppInAllExtendedPairs(ctx context.Context, req *QueryVaultIdsByAppInAllExtendedPairsRequest) (*QueryVaultIdsByAppInAllExtendedPairsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method QueryVaultIdsByAppInAllExtendedPairs not implemented") } -func (*UnimplementedQueryServer) QueryAllVaultByOwner(ctx context.Context, req *QueryAllVaultByOwnerRequest) (*QueryAllVaultByOwnerResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method QueryAllVaultByOwner not implemented") +func (*UnimplementedQueryServer) QueryAllVaultIdsByAnOwner(ctx context.Context, req *QueryAllVaultIdsByAnOwnerRequest) (*QueryAllVaultIdsByAnOwnerResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method QueryAllVaultIdsByAnOwner not implemented") } -func (*UnimplementedQueryServer) QueryTokenMintedAllProductsByPair(ctx context.Context, req *QueryTokenMintedAllProductsByPairRequest) (*QueryTokenMintedAllProductsByPairResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method QueryTokenMintedAllProductsByPair not implemented") +func (*UnimplementedQueryServer) QueryTokenMintedByAppAndExtendedPair(ctx context.Context, req *QueryTokenMintedByAppAndExtendedPairRequest) (*QueryTokenMintedByAppAndExtendedPairResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method QueryTokenMintedByAppAndExtendedPair not implemented") } -func (*UnimplementedQueryServer) QueryTokenMintedByProductAssetWise(ctx context.Context, req *QueryTokenMintedByProductAssetWiseRequest) (*QueryTokenMintedByProductAssetWiseResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method QueryTokenMintedByProductAssetWise not implemented") +func (*UnimplementedQueryServer) QueryTokenMintedAssetWiseByApp(ctx context.Context, req *QueryTokenMintedAssetWiseByAppRequest) (*QueryTokenMintedAssetWiseByAppResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method QueryTokenMintedAssetWiseByApp not implemented") } -func (*UnimplementedQueryServer) QueryVaultCountByProduct(ctx context.Context, req *QueryVaultCountByProductRequest) (*QueryVaultCountByProductResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method QueryVaultCountByProduct not implemented") +func (*UnimplementedQueryServer) QueryVaultCountByApp(ctx context.Context, req *QueryVaultCountByAppRequest) (*QueryVaultCountByAppResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method QueryVaultCountByApp not implemented") } -func (*UnimplementedQueryServer) QueryVaultCountByProductAndPair(ctx context.Context, req *QueryVaultCountByProductAndPairRequest) (*QueryVaultCountByProductAndPairResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method QueryVaultCountByProductAndPair not implemented") +func (*UnimplementedQueryServer) QueryVaultCountByAppAndExtendedPair(ctx context.Context, req *QueryVaultCountByAppAndExtendedPairRequest) (*QueryVaultCountByAppAndExtendedPairResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method QueryVaultCountByAppAndExtendedPair not implemented") } -func (*UnimplementedQueryServer) QueryTotalValueLockedByProductExtendedPair(ctx context.Context, req *QueryTotalValueLockedByProductExtendedPairRequest) (*QueryTotalValueLockedByProductExtendedPairResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method QueryTotalValueLockedByProductExtendedPair not implemented") +func (*UnimplementedQueryServer) QueryTotalValueLockedByAppExtendedPair(ctx context.Context, req *QueryTotalValueLockedByAppExtendedPairRequest) (*QueryTotalValueLockedByAppExtendedPairResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method QueryTotalValueLockedByAppExtendedPair not implemented") } -func (*UnimplementedQueryServer) QueryExtendedPairIDByProduct(ctx context.Context, req *QueryExtendedPairIDByProductRequest) (*QueryExtendedPairIDByProductResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method QueryExtendedPairIDByProduct not implemented") +func (*UnimplementedQueryServer) QueryExtendedPairIDsByApp(ctx context.Context, req *QueryExtendedPairIDsByAppRequest) (*QueryExtendedPairIDsByAppResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method QueryExtendedPairIDsByApp not implemented") } -func (*UnimplementedQueryServer) QueryStableVaultInfo(ctx context.Context, req *QueryStableVaultInfoRequest) (*QueryStableVaultInfoResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method QueryStableVaultInfo not implemented") +func (*UnimplementedQueryServer) QueryStableVaultByVaultId(ctx context.Context, req *QueryStableVaultByVaultIdRequest) (*QueryStableVaultByVaultIdResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method QueryStableVaultByVaultId not implemented") } -func (*UnimplementedQueryServer) QueryAllStableVaults(ctx context.Context, req *QueryAllStableVaultsRequest) (*QueryAllStableVaultsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method QueryAllStableVaults not implemented") +func (*UnimplementedQueryServer) QueryStableVaultByApp(ctx context.Context, req *QueryStableVaultByAppRequest) (*QueryStableVaultByAppResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method QueryStableVaultByApp not implemented") } -func (*UnimplementedQueryServer) QueryStableVaultByProductExtendedPair(ctx context.Context, req *QueryStableVaultByProductExtendedPairRequest) (*QueryStableVaultByProductExtendedPairResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method QueryStableVaultByProductExtendedPair not implemented") +func (*UnimplementedQueryServer) QueryStableVaultByAppExtendedPair(ctx context.Context, req *QueryStableVaultByAppExtendedPairRequest) (*QueryStableVaultByAppExtendedPairResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method QueryStableVaultByAppExtendedPair not implemented") } func (*UnimplementedQueryServer) QueryExtendedPairVaultMappingByAppAndExtendedPairId(ctx context.Context, req *QueryExtendedPairVaultMappingByAppAndExtendedPairIdRequest) (*QueryExtendedPairVaultMappingByAppAndExtendedPairIdResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method QueryExtendedPairVaultMappingByAppAndExtendedPairId not implemented") @@ -2746,12 +2550,6 @@ func (*UnimplementedQueryServer) QueryExtendedPairVaultMappingByAppAndExtendedPa func (*UnimplementedQueryServer) QueryExtendedPairVaultMappingByApp(ctx context.Context, req *QueryExtendedPairVaultMappingByAppRequest) (*QueryExtendedPairVaultMappingByAppResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method QueryExtendedPairVaultMappingByApp not implemented") } -func (*UnimplementedQueryServer) QueryExtendedPairVaultMappingByOwnerAndApp(ctx context.Context, req *QueryExtendedPairVaultMappingByOwnerAndAppRequest) (*QueryExtendedPairVaultMappingByOwnerAndAppResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method QueryExtendedPairVaultMappingByOwnerAndApp not implemented") -} -func (*UnimplementedQueryServer) QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairID(ctx context.Context, req *QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairIDRequest) (*QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairIDResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairID not implemented") -} func (*UnimplementedQueryServer) QueryTVLLockedByAppOfAllExtendedPairs(ctx context.Context, req *QueryTVLLockedByAppOfAllExtendedPairsRequest) (*QueryTVLLockedByAppOfAllExtendedPairsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method QueryTVLLockedByAppOfAllExtendedPairs not implemented") } @@ -2802,38 +2600,38 @@ func _Query_QueryUserExtendedPairTotalData_Handler(srv interface{}, ctx context. return interceptor(ctx, in, info, handler) } -func _Query_QueryVaultInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryVaultInfoRequest) +func _Query_QueryVaultInfoByVaultId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryVaultInfoByVaultIdRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).QueryVaultInfo(ctx, in) + return srv.(QueryServer).QueryVaultInfoByVaultId(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/comdex.vault.v1beta1.Query/QueryVaultInfo", + FullMethod: "/comdex.vault.v1beta1.Query/QueryVaultInfoByVaultId", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).QueryVaultInfo(ctx, req.(*QueryVaultInfoRequest)) + return srv.(QueryServer).QueryVaultInfoByVaultId(ctx, req.(*QueryVaultInfoByVaultIdRequest)) } return interceptor(ctx, in, info, handler) } -func _Query_QueryVaultInfoByAppByOwner_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryVaultInfoByAppByOwnerRequest) +func _Query_QueryVaultInfoOfOwnerByApp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryVaultInfoOfOwnerByAppRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).QueryVaultInfoByAppByOwner(ctx, in) + return srv.(QueryServer).QueryVaultInfoOfOwnerByApp(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/comdex.vault.v1beta1.Query/QueryVaultInfoByAppByOwner", + FullMethod: "/comdex.vault.v1beta1.Query/QueryVaultInfoOfOwnerByApp", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).QueryVaultInfoByAppByOwner(ctx, req.(*QueryVaultInfoByAppByOwnerRequest)) + return srv.(QueryServer).QueryVaultInfoOfOwnerByApp(ctx, req.(*QueryVaultInfoOfOwnerByAppRequest)) } return interceptor(ctx, in, info, handler) } @@ -2856,20 +2654,20 @@ func _Query_QueryAllVaults_Handler(srv interface{}, ctx context.Context, dec fun return interceptor(ctx, in, info, handler) } -func _Query_QueryAllVaultsByProduct_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryAllVaultsByProductRequest) +func _Query_QueryAllVaultsByApp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryAllVaultsByAppRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).QueryAllVaultsByProduct(ctx, in) + return srv.(QueryServer).QueryAllVaultsByApp(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/comdex.vault.v1beta1.Query/QueryAllVaultsByProduct", + FullMethod: "/comdex.vault.v1beta1.Query/QueryAllVaultsByApp", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).QueryAllVaultsByProduct(ctx, req.(*QueryAllVaultsByProductRequest)) + return srv.(QueryServer).QueryAllVaultsByApp(ctx, req.(*QueryAllVaultsByAppRequest)) } return interceptor(ctx, in, info, handler) } @@ -2892,218 +2690,218 @@ func _Query_QueryAllVaultsByAppAndExtendedPair_Handler(srv interface{}, ctx cont return interceptor(ctx, in, info, handler) } -func _Query_QueryVaultOfOwnerByExtendedPair_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryVaultOfOwnerByExtendedPairRequest) +func _Query_QueryVaultIdOfOwnerByExtendedPairAndApp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryVaultIdOfOwnerByExtendedPairAndAppRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).QueryVaultOfOwnerByExtendedPair(ctx, in) + return srv.(QueryServer).QueryVaultIdOfOwnerByExtendedPairAndApp(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/comdex.vault.v1beta1.Query/QueryVaultOfOwnerByExtendedPair", + FullMethod: "/comdex.vault.v1beta1.Query/QueryVaultIdOfOwnerByExtendedPairAndApp", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).QueryVaultOfOwnerByExtendedPair(ctx, req.(*QueryVaultOfOwnerByExtendedPairRequest)) + return srv.(QueryServer).QueryVaultIdOfOwnerByExtendedPairAndApp(ctx, req.(*QueryVaultIdOfOwnerByExtendedPairAndAppRequest)) } return interceptor(ctx, in, info, handler) } -func _Query_QueryVaultByProduct_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryVaultByProductRequest) +func _Query_QueryVaultIdsByAppInAllExtendedPairs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryVaultIdsByAppInAllExtendedPairsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).QueryVaultByProduct(ctx, in) + return srv.(QueryServer).QueryVaultIdsByAppInAllExtendedPairs(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/comdex.vault.v1beta1.Query/QueryVaultByProduct", + FullMethod: "/comdex.vault.v1beta1.Query/QueryVaultIdsByAppInAllExtendedPairs", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).QueryVaultByProduct(ctx, req.(*QueryVaultByProductRequest)) + return srv.(QueryServer).QueryVaultIdsByAppInAllExtendedPairs(ctx, req.(*QueryVaultIdsByAppInAllExtendedPairsRequest)) } return interceptor(ctx, in, info, handler) } -func _Query_QueryAllVaultByOwner_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryAllVaultByOwnerRequest) +func _Query_QueryAllVaultIdsByAnOwner_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryAllVaultIdsByAnOwnerRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).QueryAllVaultByOwner(ctx, in) + return srv.(QueryServer).QueryAllVaultIdsByAnOwner(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/comdex.vault.v1beta1.Query/QueryAllVaultByOwner", + FullMethod: "/comdex.vault.v1beta1.Query/QueryAllVaultIdsByAnOwner", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).QueryAllVaultByOwner(ctx, req.(*QueryAllVaultByOwnerRequest)) + return srv.(QueryServer).QueryAllVaultIdsByAnOwner(ctx, req.(*QueryAllVaultIdsByAnOwnerRequest)) } return interceptor(ctx, in, info, handler) } -func _Query_QueryTokenMintedAllProductsByPair_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryTokenMintedAllProductsByPairRequest) +func _Query_QueryTokenMintedByAppAndExtendedPair_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryTokenMintedByAppAndExtendedPairRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).QueryTokenMintedAllProductsByPair(ctx, in) + return srv.(QueryServer).QueryTokenMintedByAppAndExtendedPair(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/comdex.vault.v1beta1.Query/QueryTokenMintedAllProductsByPair", + FullMethod: "/comdex.vault.v1beta1.Query/QueryTokenMintedByAppAndExtendedPair", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).QueryTokenMintedAllProductsByPair(ctx, req.(*QueryTokenMintedAllProductsByPairRequest)) + return srv.(QueryServer).QueryTokenMintedByAppAndExtendedPair(ctx, req.(*QueryTokenMintedByAppAndExtendedPairRequest)) } return interceptor(ctx, in, info, handler) } -func _Query_QueryTokenMintedByProductAssetWise_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryTokenMintedByProductAssetWiseRequest) +func _Query_QueryTokenMintedAssetWiseByApp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryTokenMintedAssetWiseByAppRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).QueryTokenMintedByProductAssetWise(ctx, in) + return srv.(QueryServer).QueryTokenMintedAssetWiseByApp(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/comdex.vault.v1beta1.Query/QueryTokenMintedByProductAssetWise", + FullMethod: "/comdex.vault.v1beta1.Query/QueryTokenMintedAssetWiseByApp", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).QueryTokenMintedByProductAssetWise(ctx, req.(*QueryTokenMintedByProductAssetWiseRequest)) + return srv.(QueryServer).QueryTokenMintedAssetWiseByApp(ctx, req.(*QueryTokenMintedAssetWiseByAppRequest)) } return interceptor(ctx, in, info, handler) } -func _Query_QueryVaultCountByProduct_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryVaultCountByProductRequest) +func _Query_QueryVaultCountByApp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryVaultCountByAppRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).QueryVaultCountByProduct(ctx, in) + return srv.(QueryServer).QueryVaultCountByApp(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/comdex.vault.v1beta1.Query/QueryVaultCountByProduct", + FullMethod: "/comdex.vault.v1beta1.Query/QueryVaultCountByApp", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).QueryVaultCountByProduct(ctx, req.(*QueryVaultCountByProductRequest)) + return srv.(QueryServer).QueryVaultCountByApp(ctx, req.(*QueryVaultCountByAppRequest)) } return interceptor(ctx, in, info, handler) } -func _Query_QueryVaultCountByProductAndPair_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryVaultCountByProductAndPairRequest) +func _Query_QueryVaultCountByAppAndExtendedPair_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryVaultCountByAppAndExtendedPairRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).QueryVaultCountByProductAndPair(ctx, in) + return srv.(QueryServer).QueryVaultCountByAppAndExtendedPair(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/comdex.vault.v1beta1.Query/QueryVaultCountByProductAndPair", + FullMethod: "/comdex.vault.v1beta1.Query/QueryVaultCountByAppAndExtendedPair", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).QueryVaultCountByProductAndPair(ctx, req.(*QueryVaultCountByProductAndPairRequest)) + return srv.(QueryServer).QueryVaultCountByAppAndExtendedPair(ctx, req.(*QueryVaultCountByAppAndExtendedPairRequest)) } return interceptor(ctx, in, info, handler) } -func _Query_QueryTotalValueLockedByProductExtendedPair_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryTotalValueLockedByProductExtendedPairRequest) +func _Query_QueryTotalValueLockedByAppExtendedPair_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryTotalValueLockedByAppExtendedPairRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).QueryTotalValueLockedByProductExtendedPair(ctx, in) + return srv.(QueryServer).QueryTotalValueLockedByAppExtendedPair(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/comdex.vault.v1beta1.Query/QueryTotalValueLockedByProductExtendedPair", + FullMethod: "/comdex.vault.v1beta1.Query/QueryTotalValueLockedByAppExtendedPair", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).QueryTotalValueLockedByProductExtendedPair(ctx, req.(*QueryTotalValueLockedByProductExtendedPairRequest)) + return srv.(QueryServer).QueryTotalValueLockedByAppExtendedPair(ctx, req.(*QueryTotalValueLockedByAppExtendedPairRequest)) } return interceptor(ctx, in, info, handler) } -func _Query_QueryExtendedPairIDByProduct_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryExtendedPairIDByProductRequest) +func _Query_QueryExtendedPairIDsByApp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryExtendedPairIDsByAppRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).QueryExtendedPairIDByProduct(ctx, in) + return srv.(QueryServer).QueryExtendedPairIDsByApp(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/comdex.vault.v1beta1.Query/QueryExtendedPairIDByProduct", + FullMethod: "/comdex.vault.v1beta1.Query/QueryExtendedPairIDsByApp", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).QueryExtendedPairIDByProduct(ctx, req.(*QueryExtendedPairIDByProductRequest)) + return srv.(QueryServer).QueryExtendedPairIDsByApp(ctx, req.(*QueryExtendedPairIDsByAppRequest)) } return interceptor(ctx, in, info, handler) } -func _Query_QueryStableVaultInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryStableVaultInfoRequest) +func _Query_QueryStableVaultByVaultId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryStableVaultByVaultIdRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).QueryStableVaultInfo(ctx, in) + return srv.(QueryServer).QueryStableVaultByVaultId(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/comdex.vault.v1beta1.Query/QueryStableVaultInfo", + FullMethod: "/comdex.vault.v1beta1.Query/QueryStableVaultByVaultId", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).QueryStableVaultInfo(ctx, req.(*QueryStableVaultInfoRequest)) + return srv.(QueryServer).QueryStableVaultByVaultId(ctx, req.(*QueryStableVaultByVaultIdRequest)) } return interceptor(ctx, in, info, handler) } -func _Query_QueryAllStableVaults_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryAllStableVaultsRequest) +func _Query_QueryStableVaultByApp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryStableVaultByAppRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).QueryAllStableVaults(ctx, in) + return srv.(QueryServer).QueryStableVaultByApp(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/comdex.vault.v1beta1.Query/QueryAllStableVaults", + FullMethod: "/comdex.vault.v1beta1.Query/QueryStableVaultByApp", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).QueryAllStableVaults(ctx, req.(*QueryAllStableVaultsRequest)) + return srv.(QueryServer).QueryStableVaultByApp(ctx, req.(*QueryStableVaultByAppRequest)) } return interceptor(ctx, in, info, handler) } -func _Query_QueryStableVaultByProductExtendedPair_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryStableVaultByProductExtendedPairRequest) +func _Query_QueryStableVaultByAppExtendedPair_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryStableVaultByAppExtendedPairRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).QueryStableVaultByProductExtendedPair(ctx, in) + return srv.(QueryServer).QueryStableVaultByAppExtendedPair(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/comdex.vault.v1beta1.Query/QueryStableVaultByProductExtendedPair", + FullMethod: "/comdex.vault.v1beta1.Query/QueryStableVaultByAppExtendedPair", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).QueryStableVaultByProductExtendedPair(ctx, req.(*QueryStableVaultByProductExtendedPairRequest)) + return srv.(QueryServer).QueryStableVaultByAppExtendedPair(ctx, req.(*QueryStableVaultByAppExtendedPairRequest)) } return interceptor(ctx, in, info, handler) } @@ -3144,42 +2942,6 @@ func _Query_QueryExtendedPairVaultMappingByApp_Handler(srv interface{}, ctx cont return interceptor(ctx, in, info, handler) } -func _Query_QueryExtendedPairVaultMappingByOwnerAndApp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryExtendedPairVaultMappingByOwnerAndAppRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).QueryExtendedPairVaultMappingByOwnerAndApp(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/comdex.vault.v1beta1.Query/QueryExtendedPairVaultMappingByOwnerAndApp", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).QueryExtendedPairVaultMappingByOwnerAndApp(ctx, req.(*QueryExtendedPairVaultMappingByOwnerAndAppRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairIDRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairID(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/comdex.vault.v1beta1.Query/QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairID", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairID(ctx, req.(*QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairIDRequest)) - } - return interceptor(ctx, in, info, handler) -} - func _Query_QueryTVLLockedByAppOfAllExtendedPairs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(QueryTVLLockedByAppOfAllExtendedPairsRequest) if err := dec(in); err != nil { @@ -3247,72 +3009,72 @@ var _Query_serviceDesc = grpc.ServiceDesc{ Handler: _Query_QueryUserExtendedPairTotalData_Handler, }, { - MethodName: "QueryVaultInfo", - Handler: _Query_QueryVaultInfo_Handler, + MethodName: "QueryVaultInfoByVaultId", + Handler: _Query_QueryVaultInfoByVaultId_Handler, }, { - MethodName: "QueryVaultInfoByAppByOwner", - Handler: _Query_QueryVaultInfoByAppByOwner_Handler, + MethodName: "QueryVaultInfoOfOwnerByApp", + Handler: _Query_QueryVaultInfoOfOwnerByApp_Handler, }, { MethodName: "QueryAllVaults", Handler: _Query_QueryAllVaults_Handler, }, { - MethodName: "QueryAllVaultsByProduct", - Handler: _Query_QueryAllVaultsByProduct_Handler, + MethodName: "QueryAllVaultsByApp", + Handler: _Query_QueryAllVaultsByApp_Handler, }, { MethodName: "QueryAllVaultsByAppAndExtendedPair", Handler: _Query_QueryAllVaultsByAppAndExtendedPair_Handler, }, { - MethodName: "QueryVaultOfOwnerByExtendedPair", - Handler: _Query_QueryVaultOfOwnerByExtendedPair_Handler, + MethodName: "QueryVaultIdOfOwnerByExtendedPairAndApp", + Handler: _Query_QueryVaultIdOfOwnerByExtendedPairAndApp_Handler, }, { - MethodName: "QueryVaultByProduct", - Handler: _Query_QueryVaultByProduct_Handler, + MethodName: "QueryVaultIdsByAppInAllExtendedPairs", + Handler: _Query_QueryVaultIdsByAppInAllExtendedPairs_Handler, }, { - MethodName: "QueryAllVaultByOwner", - Handler: _Query_QueryAllVaultByOwner_Handler, + MethodName: "QueryAllVaultIdsByAnOwner", + Handler: _Query_QueryAllVaultIdsByAnOwner_Handler, }, { - MethodName: "QueryTokenMintedAllProductsByPair", - Handler: _Query_QueryTokenMintedAllProductsByPair_Handler, + MethodName: "QueryTokenMintedByAppAndExtendedPair", + Handler: _Query_QueryTokenMintedByAppAndExtendedPair_Handler, }, { - MethodName: "QueryTokenMintedByProductAssetWise", - Handler: _Query_QueryTokenMintedByProductAssetWise_Handler, + MethodName: "QueryTokenMintedAssetWiseByApp", + Handler: _Query_QueryTokenMintedAssetWiseByApp_Handler, }, { - MethodName: "QueryVaultCountByProduct", - Handler: _Query_QueryVaultCountByProduct_Handler, + MethodName: "QueryVaultCountByApp", + Handler: _Query_QueryVaultCountByApp_Handler, }, { - MethodName: "QueryVaultCountByProductAndPair", - Handler: _Query_QueryVaultCountByProductAndPair_Handler, + MethodName: "QueryVaultCountByAppAndExtendedPair", + Handler: _Query_QueryVaultCountByAppAndExtendedPair_Handler, }, { - MethodName: "QueryTotalValueLockedByProductExtendedPair", - Handler: _Query_QueryTotalValueLockedByProductExtendedPair_Handler, + MethodName: "QueryTotalValueLockedByAppExtendedPair", + Handler: _Query_QueryTotalValueLockedByAppExtendedPair_Handler, }, { - MethodName: "QueryExtendedPairIDByProduct", - Handler: _Query_QueryExtendedPairIDByProduct_Handler, + MethodName: "QueryExtendedPairIDsByApp", + Handler: _Query_QueryExtendedPairIDsByApp_Handler, }, { - MethodName: "QueryStableVaultInfo", - Handler: _Query_QueryStableVaultInfo_Handler, + MethodName: "QueryStableVaultByVaultId", + Handler: _Query_QueryStableVaultByVaultId_Handler, }, { - MethodName: "QueryAllStableVaults", - Handler: _Query_QueryAllStableVaults_Handler, + MethodName: "QueryStableVaultByApp", + Handler: _Query_QueryStableVaultByApp_Handler, }, { - MethodName: "QueryStableVaultByProductExtendedPair", - Handler: _Query_QueryStableVaultByProductExtendedPair_Handler, + MethodName: "QueryStableVaultByAppExtendedPair", + Handler: _Query_QueryStableVaultByAppExtendedPair_Handler, }, { MethodName: "QueryExtendedPairVaultMappingByAppAndExtendedPairId", @@ -3322,14 +3084,6 @@ var _Query_serviceDesc = grpc.ServiceDesc{ MethodName: "QueryExtendedPairVaultMappingByApp", Handler: _Query_QueryExtendedPairVaultMappingByApp_Handler, }, - { - MethodName: "QueryExtendedPairVaultMappingByOwnerAndApp", - Handler: _Query_QueryExtendedPairVaultMappingByOwnerAndApp_Handler, - }, - { - MethodName: "QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairID", - Handler: _Query_QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairID_Handler, - }, { MethodName: "QueryTVLLockedByAppOfAllExtendedPairs", Handler: _Query_QueryTVLLockedByAppOfAllExtendedPairs_Handler, @@ -3523,7 +3277,7 @@ func (m *QueryVaultResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *QueryVaultInfoRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryVaultInfoByVaultIdRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -3533,12 +3287,12 @@ func (m *QueryVaultInfoRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryVaultInfoRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryVaultInfoByVaultIdRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryVaultInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryVaultInfoByVaultIdRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -3553,7 +3307,7 @@ func (m *QueryVaultInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *QueryVaultInfoResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryVaultInfoByVaultIdResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -3563,12 +3317,12 @@ func (m *QueryVaultInfoResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryVaultInfoResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryVaultInfoByVaultIdResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryVaultInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryVaultInfoByVaultIdResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -3586,7 +3340,7 @@ func (m *QueryVaultInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *QueryVaultInfoByAppByOwnerRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryVaultInfoOfOwnerByAppRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -3596,12 +3350,12 @@ func (m *QueryVaultInfoByAppByOwnerRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryVaultInfoByAppByOwnerRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryVaultInfoOfOwnerByAppRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryVaultInfoByAppByOwnerRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryVaultInfoOfOwnerByAppRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -3621,7 +3375,7 @@ func (m *QueryVaultInfoByAppByOwnerRequest) MarshalToSizedBuffer(dAtA []byte) (i return len(dAtA) - i, nil } -func (m *QueryVaultInfoByAppByOwnerResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryVaultInfoOfOwnerByAppResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -3631,12 +3385,12 @@ func (m *QueryVaultInfoByAppByOwnerResponse) Marshal() (dAtA []byte, err error) return dAtA[:n], nil } -func (m *QueryVaultInfoByAppByOwnerResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryVaultInfoOfOwnerByAppResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryVaultInfoByAppByOwnerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryVaultInfoOfOwnerByAppResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -3754,7 +3508,7 @@ func (m *QueryAllVaultsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *QueryAllVaultsByProductRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryAllVaultsByAppRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -3764,12 +3518,12 @@ func (m *QueryAllVaultsByProductRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryAllVaultsByProductRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryAllVaultsByAppRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryAllVaultsByProductRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryAllVaultsByAppRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -3782,7 +3536,7 @@ func (m *QueryAllVaultsByProductRequest) MarshalToSizedBuffer(dAtA []byte) (int, return len(dAtA) - i, nil } -func (m *QueryAllVaultsByProductResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryAllVaultsByAppResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -3792,12 +3546,12 @@ func (m *QueryAllVaultsByProductResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryAllVaultsByProductResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryAllVaultsByAppResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryAllVaultsByProductResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryAllVaultsByAppResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -3925,7 +3679,7 @@ func (m *QueryAllVaultsByAppAndExtendedPairResponse) MarshalToSizedBuffer(dAtA [ return len(dAtA) - i, nil } -func (m *QueryVaultOfOwnerByExtendedPairRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryVaultIdOfOwnerByExtendedPairAndAppRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -3935,12 +3689,12 @@ func (m *QueryVaultOfOwnerByExtendedPairRequest) Marshal() (dAtA []byte, err err return dAtA[:n], nil } -func (m *QueryVaultOfOwnerByExtendedPairRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryVaultIdOfOwnerByExtendedPairAndAppRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryVaultOfOwnerByExtendedPairRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryVaultIdOfOwnerByExtendedPairAndAppRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -3969,15 +3723,15 @@ func (m *QueryVaultOfOwnerByExtendedPairRequest) MarshalToSizedBuffer(dAtA []byt i-- dAtA[i] = 0x12 } - if m.ProductId != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.ProductId)) + if m.AppId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.AppId)) i-- dAtA[i] = 0x8 } return len(dAtA) - i, nil } -func (m *QueryVaultOfOwnerByExtendedPairResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryVaultIdOfOwnerByExtendedPairAndAppResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -3987,12 +3741,12 @@ func (m *QueryVaultOfOwnerByExtendedPairResponse) Marshal() (dAtA []byte, err er return dAtA[:n], nil } -func (m *QueryVaultOfOwnerByExtendedPairResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryVaultIdOfOwnerByExtendedPairAndAppResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryVaultOfOwnerByExtendedPairResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryVaultIdOfOwnerByExtendedPairAndAppResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4007,7 +3761,7 @@ func (m *QueryVaultOfOwnerByExtendedPairResponse) MarshalToSizedBuffer(dAtA []by return len(dAtA) - i, nil } -func (m *QueryVaultByProductRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryVaultIdsByAppInAllExtendedPairsRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4017,12 +3771,12 @@ func (m *QueryVaultByProductRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryVaultByProductRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryVaultIdsByAppInAllExtendedPairsRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryVaultByProductRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryVaultIdsByAppInAllExtendedPairsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4039,15 +3793,15 @@ func (m *QueryVaultByProductRequest) MarshalToSizedBuffer(dAtA []byte) (int, err i-- dAtA[i] = 0x12 } - if m.ProductId != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.ProductId)) + if m.AppId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.AppId)) i-- dAtA[i] = 0x8 } return len(dAtA) - i, nil } -func (m *QueryVaultByProductResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryVaultIdsByAppInAllExtendedPairsResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4057,12 +3811,12 @@ func (m *QueryVaultByProductResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryVaultByProductResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryVaultIdsByAppInAllExtendedPairsResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryVaultByProductResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryVaultIdsByAppInAllExtendedPairsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4079,7 +3833,7 @@ func (m *QueryVaultByProductResponse) MarshalToSizedBuffer(dAtA []byte) (int, er return len(dAtA) - i, nil } -func (m *QueryAllVaultByOwnerRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryAllVaultIdsByAnOwnerRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4089,12 +3843,12 @@ func (m *QueryAllVaultByOwnerRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryAllVaultByOwnerRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryAllVaultIdsByAnOwnerRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryAllVaultByOwnerRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryAllVaultIdsByAnOwnerRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4121,7 +3875,7 @@ func (m *QueryAllVaultByOwnerRequest) MarshalToSizedBuffer(dAtA []byte) (int, er return len(dAtA) - i, nil } -func (m *QueryAllVaultByOwnerResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryAllVaultIdsByAnOwnerResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4131,12 +3885,12 @@ func (m *QueryAllVaultByOwnerResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryAllVaultByOwnerResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryAllVaultIdsByAnOwnerResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryAllVaultByOwnerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryAllVaultIdsByAnOwnerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4153,7 +3907,7 @@ func (m *QueryAllVaultByOwnerResponse) MarshalToSizedBuffer(dAtA []byte) (int, e return len(dAtA) - i, nil } -func (m *QueryTokenMintedAllProductsByPairRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryTokenMintedByAppAndExtendedPairRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4163,12 +3917,12 @@ func (m *QueryTokenMintedAllProductsByPairRequest) Marshal() (dAtA []byte, err e return dAtA[:n], nil } -func (m *QueryTokenMintedAllProductsByPairRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryTokenMintedByAppAndExtendedPairRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryTokenMintedAllProductsByPairRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryTokenMintedByAppAndExtendedPairRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4190,15 +3944,15 @@ func (m *QueryTokenMintedAllProductsByPairRequest) MarshalToSizedBuffer(dAtA []b i-- dAtA[i] = 0x10 } - if m.ProductId != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.ProductId)) + if m.AppId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.AppId)) i-- dAtA[i] = 0x8 } return len(dAtA) - i, nil } -func (m *QueryTokenMintedAllProductsByPairResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryTokenMintedByAppAndExtendedPairResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4208,12 +3962,12 @@ func (m *QueryTokenMintedAllProductsByPairResponse) Marshal() (dAtA []byte, err return dAtA[:n], nil } -func (m *QueryTokenMintedAllProductsByPairResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryTokenMintedByAppAndExtendedPairResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryTokenMintedAllProductsByPairResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryTokenMintedByAppAndExtendedPairResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4231,7 +3985,7 @@ func (m *QueryTokenMintedAllProductsByPairResponse) MarshalToSizedBuffer(dAtA [] return len(dAtA) - i, nil } -func (m *QueryTokenMintedByProductAssetWiseRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryTokenMintedAssetWiseByAppRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4241,12 +3995,12 @@ func (m *QueryTokenMintedByProductAssetWiseRequest) Marshal() (dAtA []byte, err return dAtA[:n], nil } -func (m *QueryTokenMintedByProductAssetWiseRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryTokenMintedAssetWiseByAppRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryTokenMintedByProductAssetWiseRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryTokenMintedAssetWiseByAppRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4263,15 +4017,15 @@ func (m *QueryTokenMintedByProductAssetWiseRequest) MarshalToSizedBuffer(dAtA [] i-- dAtA[i] = 0x12 } - if m.ProductId != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.ProductId)) + if m.AppId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.AppId)) i-- dAtA[i] = 0x8 } return len(dAtA) - i, nil } -func (m *QueryTokenMintedByProductAssetWiseResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryTokenMintedAssetWiseByAppResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4281,12 +4035,12 @@ func (m *QueryTokenMintedByProductAssetWiseResponse) Marshal() (dAtA []byte, err return dAtA[:n], nil } -func (m *QueryTokenMintedByProductAssetWiseResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryTokenMintedAssetWiseByAppResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryTokenMintedByProductAssetWiseResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryTokenMintedAssetWiseByAppResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4308,7 +4062,7 @@ func (m *QueryTokenMintedByProductAssetWiseResponse) MarshalToSizedBuffer(dAtA [ return len(dAtA) - i, nil } -func (m *QueryVaultCountByProductRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryVaultCountByAppRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4318,12 +4072,12 @@ func (m *QueryVaultCountByProductRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryVaultCountByProductRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryVaultCountByAppRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryVaultCountByProductRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryVaultCountByAppRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4340,15 +4094,15 @@ func (m *QueryVaultCountByProductRequest) MarshalToSizedBuffer(dAtA []byte) (int i-- dAtA[i] = 0x12 } - if m.ProductId != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.ProductId)) + if m.AppId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.AppId)) i-- dAtA[i] = 0x8 } return len(dAtA) - i, nil } -func (m *QueryVaultCountByProductResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryVaultCountByAppResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4358,12 +4112,12 @@ func (m *QueryVaultCountByProductResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryVaultCountByProductResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryVaultCountByAppResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryVaultCountByProductResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryVaultCountByAppResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4376,7 +4130,7 @@ func (m *QueryVaultCountByProductResponse) MarshalToSizedBuffer(dAtA []byte) (in return len(dAtA) - i, nil } -func (m *QueryVaultCountByProductAndPairRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryVaultCountByAppAndExtendedPairRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4386,12 +4140,12 @@ func (m *QueryVaultCountByProductAndPairRequest) Marshal() (dAtA []byte, err err return dAtA[:n], nil } -func (m *QueryVaultCountByProductAndPairRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryVaultCountByAppAndExtendedPairRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryVaultCountByProductAndPairRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryVaultCountByAppAndExtendedPairRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4413,15 +4167,15 @@ func (m *QueryVaultCountByProductAndPairRequest) MarshalToSizedBuffer(dAtA []byt i-- dAtA[i] = 0x10 } - if m.ProductId != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.ProductId)) + if m.AppId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.AppId)) i-- dAtA[i] = 0x8 } return len(dAtA) - i, nil } -func (m *QueryVaultCountByProductAndPairResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryVaultCountByAppAndExtendedPairResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4431,12 +4185,12 @@ func (m *QueryVaultCountByProductAndPairResponse) Marshal() (dAtA []byte, err er return dAtA[:n], nil } -func (m *QueryVaultCountByProductAndPairResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryVaultCountByAppAndExtendedPairResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryVaultCountByProductAndPairResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryVaultCountByAppAndExtendedPairResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4449,7 +4203,7 @@ func (m *QueryVaultCountByProductAndPairResponse) MarshalToSizedBuffer(dAtA []by return len(dAtA) - i, nil } -func (m *QueryTotalValueLockedByProductExtendedPairRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryTotalValueLockedByAppExtendedPairRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4459,12 +4213,12 @@ func (m *QueryTotalValueLockedByProductExtendedPairRequest) Marshal() (dAtA []by return dAtA[:n], nil } -func (m *QueryTotalValueLockedByProductExtendedPairRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryTotalValueLockedByAppExtendedPairRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryTotalValueLockedByProductExtendedPairRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryTotalValueLockedByAppExtendedPairRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4486,15 +4240,15 @@ func (m *QueryTotalValueLockedByProductExtendedPairRequest) MarshalToSizedBuffer i-- dAtA[i] = 0x10 } - if m.ProductId != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.ProductId)) + if m.AppId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.AppId)) i-- dAtA[i] = 0x8 } return len(dAtA) - i, nil } -func (m *QueryTotalValueLockedByProductExtendedPairResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryTotalValueLockedByAppExtendedPairResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4504,12 +4258,12 @@ func (m *QueryTotalValueLockedByProductExtendedPairResponse) Marshal() (dAtA []b return dAtA[:n], nil } -func (m *QueryTotalValueLockedByProductExtendedPairResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryTotalValueLockedByAppExtendedPairResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryTotalValueLockedByProductExtendedPairResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryTotalValueLockedByAppExtendedPairResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4529,7 +4283,7 @@ func (m *QueryTotalValueLockedByProductExtendedPairResponse) MarshalToSizedBuffe return len(dAtA) - i, nil } -func (m *QueryExtendedPairIDByProductRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryExtendedPairIDsByAppRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4539,12 +4293,12 @@ func (m *QueryExtendedPairIDByProductRequest) Marshal() (dAtA []byte, err error) return dAtA[:n], nil } -func (m *QueryExtendedPairIDByProductRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryExtendedPairIDsByAppRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryExtendedPairIDByProductRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryExtendedPairIDsByAppRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4561,15 +4315,15 @@ func (m *QueryExtendedPairIDByProductRequest) MarshalToSizedBuffer(dAtA []byte) i-- dAtA[i] = 0x12 } - if m.ProductId != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.ProductId)) + if m.AppId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.AppId)) i-- dAtA[i] = 0x8 } return len(dAtA) - i, nil } -func (m *QueryExtendedPairIDByProductResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryExtendedPairIDsByAppResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4579,12 +4333,12 @@ func (m *QueryExtendedPairIDByProductResponse) Marshal() (dAtA []byte, err error return dAtA[:n], nil } -func (m *QueryExtendedPairIDByProductResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryExtendedPairIDsByAppResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryExtendedPairIDByProductResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryExtendedPairIDsByAppResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4610,7 +4364,7 @@ func (m *QueryExtendedPairIDByProductResponse) MarshalToSizedBuffer(dAtA []byte) return len(dAtA) - i, nil } -func (m *QueryStableVaultInfoRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryStableVaultByVaultIdRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4620,12 +4374,12 @@ func (m *QueryStableVaultInfoRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryStableVaultInfoRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryStableVaultByVaultIdRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryStableVaultInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryStableVaultByVaultIdRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4640,7 +4394,7 @@ func (m *QueryStableVaultInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, er return len(dAtA) - i, nil } -func (m *QueryStableVaultInfoResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryStableVaultByVaultIdResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4650,12 +4404,12 @@ func (m *QueryStableVaultInfoResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryStableVaultInfoResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryStableVaultByVaultIdResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryStableVaultInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryStableVaultByVaultIdResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4675,7 +4429,7 @@ func (m *QueryStableVaultInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, e return len(dAtA) - i, nil } -func (m *QueryAllStableVaultsRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryStableVaultByAppRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4685,12 +4439,12 @@ func (m *QueryAllStableVaultsRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryAllStableVaultsRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryStableVaultByAppRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryAllStableVaultsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryStableVaultByAppRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4703,7 +4457,7 @@ func (m *QueryAllStableVaultsRequest) MarshalToSizedBuffer(dAtA []byte) (int, er return len(dAtA) - i, nil } -func (m *QueryAllStableVaultsResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryStableVaultByAppResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4713,12 +4467,12 @@ func (m *QueryAllStableVaultsResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryAllStableVaultsResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryStableVaultByAppResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryAllStableVaultsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryStableVaultByAppResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4740,7 +4494,7 @@ func (m *QueryAllStableVaultsResponse) MarshalToSizedBuffer(dAtA []byte) (int, e return len(dAtA) - i, nil } -func (m *QueryStableVaultByProductExtendedPairRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryStableVaultByAppExtendedPairRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4750,12 +4504,12 @@ func (m *QueryStableVaultByProductExtendedPairRequest) Marshal() (dAtA []byte, e return dAtA[:n], nil } -func (m *QueryStableVaultByProductExtendedPairRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryStableVaultByAppExtendedPairRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryStableVaultByProductExtendedPairRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryStableVaultByAppExtendedPairRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4773,7 +4527,7 @@ func (m *QueryStableVaultByProductExtendedPairRequest) MarshalToSizedBuffer(dAtA return len(dAtA) - i, nil } -func (m *QueryStableVaultByProductExtendedPairResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryStableVaultByAppExtendedPairResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4783,12 +4537,12 @@ func (m *QueryStableVaultByProductExtendedPairResponse) Marshal() (dAtA []byte, return dAtA[:n], nil } -func (m *QueryStableVaultByProductExtendedPairResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryStableVaultByAppExtendedPairResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryStableVaultByProductExtendedPairResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryStableVaultByAppExtendedPairResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4941,7 +4695,7 @@ func (m *QueryExtendedPairVaultMappingByAppResponse) MarshalToSizedBuffer(dAtA [ return len(dAtA) - i, nil } -func (m *QueryExtendedPairVaultMappingByOwnerAndAppRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryTVLLockedByAppOfAllExtendedPairsRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4951,12 +4705,12 @@ func (m *QueryExtendedPairVaultMappingByOwnerAndAppRequest) Marshal() (dAtA []by return dAtA[:n], nil } -func (m *QueryExtendedPairVaultMappingByOwnerAndAppRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryTVLLockedByAppOfAllExtendedPairsRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryExtendedPairVaultMappingByOwnerAndAppRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryTVLLockedByAppOfAllExtendedPairsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4964,19 +4718,12 @@ func (m *QueryExtendedPairVaultMappingByOwnerAndAppRequest) MarshalToSizedBuffer if m.AppId != 0 { i = encodeVarintQuery(dAtA, i, uint64(m.AppId)) i-- - dAtA[i] = 0x10 - } - if len(m.Owner) > 0 { - i -= len(m.Owner) - copy(dAtA[i:], m.Owner) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Owner))) - i-- - dAtA[i] = 0xa + dAtA[i] = 0x8 } return len(dAtA) - i, nil } -func (m *QueryExtendedPairVaultMappingByOwnerAndAppResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryTVLLockedByAppOfAllExtendedPairsResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4986,20 +4733,20 @@ func (m *QueryExtendedPairVaultMappingByOwnerAndAppResponse) Marshal() (dAtA []b return dAtA[:n], nil } -func (m *QueryExtendedPairVaultMappingByOwnerAndAppResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryTVLLockedByAppOfAllExtendedPairsResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryExtendedPairVaultMappingByOwnerAndAppResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryTVLLockedByAppOfAllExtendedPairsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.ExtendedPairtoVaultMapping) > 0 { - for iNdEx := len(m.ExtendedPairtoVaultMapping) - 1; iNdEx >= 0; iNdEx-- { + if len(m.Tvldata) > 0 { + for iNdEx := len(m.Tvldata) - 1; iNdEx >= 0; iNdEx-- { { - size, err := m.ExtendedPairtoVaultMapping[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Tvldata[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -5013,7 +4760,7 @@ func (m *QueryExtendedPairVaultMappingByOwnerAndAppResponse) MarshalToSizedBuffe return len(dAtA) - i, nil } -func (m *QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairIDRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryTotalTVLByAppRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5023,37 +4770,25 @@ func (m *QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairIDRequest) Mar return dAtA[:n], nil } -func (m *QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairIDRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryTotalTVLByAppRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairIDRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryTotalTVLByAppRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.ExtendedPair != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.ExtendedPair)) - i-- - dAtA[i] = 0x18 - } if m.AppId != 0 { i = encodeVarintQuery(dAtA, i, uint64(m.AppId)) i-- - dAtA[i] = 0x10 - } - if len(m.Owner) > 0 { - i -= len(m.Owner) - copy(dAtA[i:], m.Owner) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Owner))) - i-- - dAtA[i] = 0xa + dAtA[i] = 0x8 } return len(dAtA) - i, nil } -func (m *QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairIDResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryTotalTVLByAppResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5063,27 +4798,30 @@ func (m *QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairIDResponse) Ma return dAtA[:n], nil } -func (m *QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairIDResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryTotalTVLByAppResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairIDResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryTotalTVLByAppResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.VaultId) > 0 { - i -= len(m.VaultId) - copy(dAtA[i:], m.VaultId) - i = encodeVarintQuery(dAtA, i, uint64(len(m.VaultId))) - i-- - dAtA[i] = 0xa + { + size := m.CollateralLocked.Size() + i -= size + if _, err := m.CollateralLocked.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintQuery(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa return len(dAtA) - i, nil } -func (m *QueryTVLLockedByAppOfAllExtendedPairsRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryUserMyPositionByAppRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5093,138 +4831,12 @@ func (m *QueryTVLLockedByAppOfAllExtendedPairsRequest) Marshal() (dAtA []byte, e return dAtA[:n], nil } -func (m *QueryTVLLockedByAppOfAllExtendedPairsRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryUserMyPositionByAppRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryTVLLockedByAppOfAllExtendedPairsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.AppId != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.AppId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *QueryTVLLockedByAppOfAllExtendedPairsResponse) 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 *QueryTVLLockedByAppOfAllExtendedPairsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryTVLLockedByAppOfAllExtendedPairsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Tvldata) > 0 { - for iNdEx := len(m.Tvldata) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Tvldata[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 *QueryTotalTVLByAppRequest) 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 *QueryTotalTVLByAppRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryTotalTVLByAppRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.AppId != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.AppId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *QueryTotalTVLByAppResponse) 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 *QueryTotalTVLByAppResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryTotalTVLByAppResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size := m.CollateralLocked.Size() - i -= size - if _, err := m.CollateralLocked.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *QueryUserMyPositionByAppRequest) 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 *QueryUserMyPositionByAppRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryUserMyPositionByAppRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryUserMyPositionByAppRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -5449,7 +5061,7 @@ func (m *QueryVaultResponse) Size() (n int) { return n } -func (m *QueryVaultInfoRequest) Size() (n int) { +func (m *QueryVaultInfoByVaultIdRequest) Size() (n int) { if m == nil { return 0 } @@ -5462,7 +5074,7 @@ func (m *QueryVaultInfoRequest) Size() (n int) { return n } -func (m *QueryVaultInfoResponse) Size() (n int) { +func (m *QueryVaultInfoByVaultIdResponse) Size() (n int) { if m == nil { return 0 } @@ -5473,7 +5085,7 @@ func (m *QueryVaultInfoResponse) Size() (n int) { return n } -func (m *QueryVaultInfoByAppByOwnerRequest) Size() (n int) { +func (m *QueryVaultInfoOfOwnerByAppRequest) Size() (n int) { if m == nil { return 0 } @@ -5489,7 +5101,7 @@ func (m *QueryVaultInfoByAppByOwnerRequest) Size() (n int) { return n } -func (m *QueryVaultInfoByAppByOwnerResponse) Size() (n int) { +func (m *QueryVaultInfoOfOwnerByAppResponse) Size() (n int) { if m == nil { return 0 } @@ -5540,7 +5152,7 @@ func (m *QueryAllVaultsResponse) Size() (n int) { return n } -func (m *QueryAllVaultsByProductRequest) Size() (n int) { +func (m *QueryAllVaultsByAppRequest) Size() (n int) { if m == nil { return 0 } @@ -5552,7 +5164,7 @@ func (m *QueryAllVaultsByProductRequest) Size() (n int) { return n } -func (m *QueryAllVaultsByProductResponse) Size() (n int) { +func (m *QueryAllVaultsByAppResponse) Size() (n int) { if m == nil { return 0 } @@ -5609,14 +5221,14 @@ func (m *QueryAllVaultsByAppAndExtendedPairResponse) Size() (n int) { return n } -func (m *QueryVaultOfOwnerByExtendedPairRequest) Size() (n int) { +func (m *QueryVaultIdOfOwnerByExtendedPairAndAppRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.ProductId != 0 { - n += 1 + sovQuery(uint64(m.ProductId)) + if m.AppId != 0 { + n += 1 + sovQuery(uint64(m.AppId)) } l = len(m.Owner) if l > 0 { @@ -5632,7 +5244,7 @@ func (m *QueryVaultOfOwnerByExtendedPairRequest) Size() (n int) { return n } -func (m *QueryVaultOfOwnerByExtendedPairResponse) Size() (n int) { +func (m *QueryVaultIdOfOwnerByExtendedPairAndAppResponse) Size() (n int) { if m == nil { return 0 } @@ -5645,14 +5257,14 @@ func (m *QueryVaultOfOwnerByExtendedPairResponse) Size() (n int) { return n } -func (m *QueryVaultByProductRequest) Size() (n int) { +func (m *QueryVaultIdsByAppInAllExtendedPairsRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.ProductId != 0 { - n += 1 + sovQuery(uint64(m.ProductId)) + if m.AppId != 0 { + n += 1 + sovQuery(uint64(m.AppId)) } if m.Pagination != nil { l = m.Pagination.Size() @@ -5661,7 +5273,7 @@ func (m *QueryVaultByProductRequest) Size() (n int) { return n } -func (m *QueryVaultByProductResponse) Size() (n int) { +func (m *QueryVaultIdsByAppInAllExtendedPairsResponse) Size() (n int) { if m == nil { return 0 } @@ -5676,7 +5288,7 @@ func (m *QueryVaultByProductResponse) Size() (n int) { return n } -func (m *QueryAllVaultByOwnerRequest) Size() (n int) { +func (m *QueryAllVaultIdsByAnOwnerRequest) Size() (n int) { if m == nil { return 0 } @@ -5693,7 +5305,7 @@ func (m *QueryAllVaultByOwnerRequest) Size() (n int) { return n } -func (m *QueryAllVaultByOwnerResponse) Size() (n int) { +func (m *QueryAllVaultIdsByAnOwnerResponse) Size() (n int) { if m == nil { return 0 } @@ -5708,14 +5320,14 @@ func (m *QueryAllVaultByOwnerResponse) Size() (n int) { return n } -func (m *QueryTokenMintedAllProductsByPairRequest) Size() (n int) { +func (m *QueryTokenMintedByAppAndExtendedPairRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.ProductId != 0 { - n += 1 + sovQuery(uint64(m.ProductId)) + if m.AppId != 0 { + n += 1 + sovQuery(uint64(m.AppId)) } if m.ExtendedPairId != 0 { n += 1 + sovQuery(uint64(m.ExtendedPairId)) @@ -5727,7 +5339,7 @@ func (m *QueryTokenMintedAllProductsByPairRequest) Size() (n int) { return n } -func (m *QueryTokenMintedAllProductsByPairResponse) Size() (n int) { +func (m *QueryTokenMintedByAppAndExtendedPairResponse) Size() (n int) { if m == nil { return 0 } @@ -5738,14 +5350,14 @@ func (m *QueryTokenMintedAllProductsByPairResponse) Size() (n int) { return n } -func (m *QueryTokenMintedByProductAssetWiseRequest) Size() (n int) { +func (m *QueryTokenMintedAssetWiseByAppRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.ProductId != 0 { - n += 1 + sovQuery(uint64(m.ProductId)) + if m.AppId != 0 { + n += 1 + sovQuery(uint64(m.AppId)) } if m.Pagination != nil { l = m.Pagination.Size() @@ -5754,7 +5366,7 @@ func (m *QueryTokenMintedByProductAssetWiseRequest) Size() (n int) { return n } -func (m *QueryTokenMintedByProductAssetWiseResponse) Size() (n int) { +func (m *QueryTokenMintedAssetWiseByAppResponse) Size() (n int) { if m == nil { return 0 } @@ -5769,14 +5381,14 @@ func (m *QueryTokenMintedByProductAssetWiseResponse) Size() (n int) { return n } -func (m *QueryVaultCountByProductRequest) Size() (n int) { +func (m *QueryVaultCountByAppRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.ProductId != 0 { - n += 1 + sovQuery(uint64(m.ProductId)) + if m.AppId != 0 { + n += 1 + sovQuery(uint64(m.AppId)) } if m.Pagination != nil { l = m.Pagination.Size() @@ -5785,7 +5397,7 @@ func (m *QueryVaultCountByProductRequest) Size() (n int) { return n } -func (m *QueryVaultCountByProductResponse) Size() (n int) { +func (m *QueryVaultCountByAppResponse) Size() (n int) { if m == nil { return 0 } @@ -5797,14 +5409,14 @@ func (m *QueryVaultCountByProductResponse) Size() (n int) { return n } -func (m *QueryVaultCountByProductAndPairRequest) Size() (n int) { +func (m *QueryVaultCountByAppAndExtendedPairRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.ProductId != 0 { - n += 1 + sovQuery(uint64(m.ProductId)) + if m.AppId != 0 { + n += 1 + sovQuery(uint64(m.AppId)) } if m.ExtendedPairId != 0 { n += 1 + sovQuery(uint64(m.ExtendedPairId)) @@ -5816,7 +5428,7 @@ func (m *QueryVaultCountByProductAndPairRequest) Size() (n int) { return n } -func (m *QueryVaultCountByProductAndPairResponse) Size() (n int) { +func (m *QueryVaultCountByAppAndExtendedPairResponse) Size() (n int) { if m == nil { return 0 } @@ -5828,14 +5440,14 @@ func (m *QueryVaultCountByProductAndPairResponse) Size() (n int) { return n } -func (m *QueryTotalValueLockedByProductExtendedPairRequest) Size() (n int) { +func (m *QueryTotalValueLockedByAppExtendedPairRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.ProductId != 0 { - n += 1 + sovQuery(uint64(m.ProductId)) + if m.AppId != 0 { + n += 1 + sovQuery(uint64(m.AppId)) } if m.ExtendedPairId != 0 { n += 1 + sovQuery(uint64(m.ExtendedPairId)) @@ -5847,7 +5459,7 @@ func (m *QueryTotalValueLockedByProductExtendedPairRequest) Size() (n int) { return n } -func (m *QueryTotalValueLockedByProductExtendedPairResponse) Size() (n int) { +func (m *QueryTotalValueLockedByAppExtendedPairResponse) Size() (n int) { if m == nil { return 0 } @@ -5860,14 +5472,14 @@ func (m *QueryTotalValueLockedByProductExtendedPairResponse) Size() (n int) { return n } -func (m *QueryExtendedPairIDByProductRequest) Size() (n int) { +func (m *QueryExtendedPairIDsByAppRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.ProductId != 0 { - n += 1 + sovQuery(uint64(m.ProductId)) + if m.AppId != 0 { + n += 1 + sovQuery(uint64(m.AppId)) } if m.Pagination != nil { l = m.Pagination.Size() @@ -5876,7 +5488,7 @@ func (m *QueryExtendedPairIDByProductRequest) Size() (n int) { return n } -func (m *QueryExtendedPairIDByProductResponse) Size() (n int) { +func (m *QueryExtendedPairIDsByAppResponse) Size() (n int) { if m == nil { return 0 } @@ -5892,7 +5504,7 @@ func (m *QueryExtendedPairIDByProductResponse) Size() (n int) { return n } -func (m *QueryStableVaultInfoRequest) Size() (n int) { +func (m *QueryStableVaultByVaultIdRequest) Size() (n int) { if m == nil { return 0 } @@ -5905,7 +5517,7 @@ func (m *QueryStableVaultInfoRequest) Size() (n int) { return n } -func (m *QueryStableVaultInfoResponse) Size() (n int) { +func (m *QueryStableVaultByVaultIdResponse) Size() (n int) { if m == nil { return 0 } @@ -5918,7 +5530,7 @@ func (m *QueryStableVaultInfoResponse) Size() (n int) { return n } -func (m *QueryAllStableVaultsRequest) Size() (n int) { +func (m *QueryStableVaultByAppRequest) Size() (n int) { if m == nil { return 0 } @@ -5930,7 +5542,7 @@ func (m *QueryAllStableVaultsRequest) Size() (n int) { return n } -func (m *QueryAllStableVaultsResponse) Size() (n int) { +func (m *QueryStableVaultByAppResponse) Size() (n int) { if m == nil { return 0 } @@ -5945,7 +5557,7 @@ func (m *QueryAllStableVaultsResponse) Size() (n int) { return n } -func (m *QueryStableVaultByProductExtendedPairRequest) Size() (n int) { +func (m *QueryStableVaultByAppExtendedPairRequest) Size() (n int) { if m == nil { return 0 } @@ -5960,7 +5572,7 @@ func (m *QueryStableVaultByProductExtendedPairRequest) Size() (n int) { return n } -func (m *QueryStableVaultByProductExtendedPairResponse) Size() (n int) { +func (m *QueryStableVaultByAppExtendedPairResponse) Size() (n int) { if m == nil { return 0 } @@ -6028,69 +5640,6 @@ func (m *QueryExtendedPairVaultMappingByAppResponse) Size() (n int) { return n } -func (m *QueryExtendedPairVaultMappingByOwnerAndAppRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Owner) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - if m.AppId != 0 { - n += 1 + sovQuery(uint64(m.AppId)) - } - return n -} - -func (m *QueryExtendedPairVaultMappingByOwnerAndAppResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.ExtendedPairtoVaultMapping) > 0 { - for _, e := range m.ExtendedPairtoVaultMapping { - l = e.Size() - n += 1 + l + sovQuery(uint64(l)) - } - } - return n -} - -func (m *QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairIDRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Owner) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - if m.AppId != 0 { - n += 1 + sovQuery(uint64(m.AppId)) - } - if m.ExtendedPair != 0 { - n += 1 + sovQuery(uint64(m.ExtendedPair)) - } - return n -} - -func (m *QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairIDResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.VaultId) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - func (m *QueryTVLLockedByAppOfAllExtendedPairsRequest) Size() (n int) { if m == nil { return 0 @@ -6770,7 +6319,7 @@ func (m *QueryVaultResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryVaultInfoRequest) Unmarshal(dAtA []byte) error { +func (m *QueryVaultInfoByVaultIdRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -6793,10 +6342,10 @@ func (m *QueryVaultInfoRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryVaultInfoRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryVaultInfoByVaultIdRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryVaultInfoRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryVaultInfoByVaultIdRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -6852,7 +6401,7 @@ func (m *QueryVaultInfoRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryVaultInfoResponse) Unmarshal(dAtA []byte) error { +func (m *QueryVaultInfoByVaultIdResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -6875,10 +6424,10 @@ func (m *QueryVaultInfoResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryVaultInfoResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryVaultInfoByVaultIdResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryVaultInfoResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryVaultInfoByVaultIdResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -6935,7 +6484,7 @@ func (m *QueryVaultInfoResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryVaultInfoByAppByOwnerRequest) Unmarshal(dAtA []byte) error { +func (m *QueryVaultInfoOfOwnerByAppRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -6958,10 +6507,10 @@ func (m *QueryVaultInfoByAppByOwnerRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryVaultInfoByAppByOwnerRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryVaultInfoOfOwnerByAppRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryVaultInfoByAppByOwnerRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryVaultInfoOfOwnerByAppRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -7036,7 +6585,7 @@ func (m *QueryVaultInfoByAppByOwnerRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryVaultInfoByAppByOwnerResponse) Unmarshal(dAtA []byte) error { +func (m *QueryVaultInfoOfOwnerByAppResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -7059,10 +6608,10 @@ func (m *QueryVaultInfoByAppByOwnerResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryVaultInfoByAppByOwnerResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryVaultInfoOfOwnerByAppResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryVaultInfoByAppByOwnerResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryVaultInfoOfOwnerByAppResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -7362,7 +6911,7 @@ func (m *QueryAllVaultsResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAllVaultsByProductRequest) Unmarshal(dAtA []byte) error { +func (m *QueryAllVaultsByAppRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -7385,10 +6934,10 @@ func (m *QueryAllVaultsByProductRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAllVaultsByProductRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryAllVaultsByAppRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllVaultsByProductRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryAllVaultsByAppRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -7431,7 +6980,7 @@ func (m *QueryAllVaultsByProductRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAllVaultsByProductResponse) Unmarshal(dAtA []byte) error { +func (m *QueryAllVaultsByAppResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -7454,10 +7003,10 @@ func (m *QueryAllVaultsByProductResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAllVaultsByProductResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryAllVaultsByAppResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllVaultsByProductResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryAllVaultsByAppResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -7795,7 +7344,7 @@ func (m *QueryAllVaultsByAppAndExtendedPairResponse) Unmarshal(dAtA []byte) erro } return nil } -func (m *QueryVaultOfOwnerByExtendedPairRequest) Unmarshal(dAtA []byte) error { +func (m *QueryVaultIdOfOwnerByExtendedPairAndAppRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -7818,17 +7367,17 @@ func (m *QueryVaultOfOwnerByExtendedPairRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryVaultOfOwnerByExtendedPairRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryVaultIdOfOwnerByExtendedPairAndAppRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryVaultOfOwnerByExtendedPairRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryVaultIdOfOwnerByExtendedPairAndAppRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ProductId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AppId", wireType) } - m.ProductId = 0 + m.AppId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -7838,7 +7387,7 @@ func (m *QueryVaultOfOwnerByExtendedPairRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ProductId |= uint64(b&0x7F) << shift + m.AppId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7951,7 +7500,7 @@ func (m *QueryVaultOfOwnerByExtendedPairRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryVaultOfOwnerByExtendedPairResponse) Unmarshal(dAtA []byte) error { +func (m *QueryVaultIdOfOwnerByExtendedPairAndAppResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -7974,10 +7523,10 @@ func (m *QueryVaultOfOwnerByExtendedPairResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryVaultOfOwnerByExtendedPairResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryVaultIdOfOwnerByExtendedPairAndAppResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryVaultOfOwnerByExtendedPairResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryVaultIdOfOwnerByExtendedPairAndAppResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -8033,7 +7582,7 @@ func (m *QueryVaultOfOwnerByExtendedPairResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryVaultByProductRequest) Unmarshal(dAtA []byte) error { +func (m *QueryVaultIdsByAppInAllExtendedPairsRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -8056,17 +7605,17 @@ func (m *QueryVaultByProductRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryVaultByProductRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryVaultIdsByAppInAllExtendedPairsRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryVaultByProductRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryVaultIdsByAppInAllExtendedPairsRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ProductId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AppId", wireType) } - m.ProductId = 0 + m.AppId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -8076,7 +7625,7 @@ func (m *QueryVaultByProductRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ProductId |= uint64(b&0x7F) << shift + m.AppId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8138,7 +7687,7 @@ func (m *QueryVaultByProductRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryVaultByProductResponse) Unmarshal(dAtA []byte) error { +func (m *QueryVaultIdsByAppInAllExtendedPairsResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -8161,10 +7710,10 @@ func (m *QueryVaultByProductResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryVaultByProductResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryVaultIdsByAppInAllExtendedPairsResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryVaultByProductResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryVaultIdsByAppInAllExtendedPairsResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -8220,7 +7769,7 @@ func (m *QueryVaultByProductResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAllVaultByOwnerRequest) Unmarshal(dAtA []byte) error { +func (m *QueryAllVaultIdsByAnOwnerRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -8243,10 +7792,10 @@ func (m *QueryAllVaultByOwnerRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAllVaultByOwnerRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryAllVaultIdsByAnOwnerRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllVaultByOwnerRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryAllVaultIdsByAnOwnerRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -8338,7 +7887,7 @@ func (m *QueryAllVaultByOwnerRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAllVaultByOwnerResponse) Unmarshal(dAtA []byte) error { +func (m *QueryAllVaultIdsByAnOwnerResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -8361,10 +7910,10 @@ func (m *QueryAllVaultByOwnerResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAllVaultByOwnerResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryAllVaultIdsByAnOwnerResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllVaultByOwnerResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryAllVaultIdsByAnOwnerResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -8420,7 +7969,7 @@ func (m *QueryAllVaultByOwnerResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryTokenMintedAllProductsByPairRequest) Unmarshal(dAtA []byte) error { +func (m *QueryTokenMintedByAppAndExtendedPairRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -8443,17 +7992,17 @@ func (m *QueryTokenMintedAllProductsByPairRequest) Unmarshal(dAtA []byte) error fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryTokenMintedAllProductsByPairRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryTokenMintedByAppAndExtendedPairRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryTokenMintedAllProductsByPairRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryTokenMintedByAppAndExtendedPairRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ProductId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AppId", wireType) } - m.ProductId = 0 + m.AppId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -8463,7 +8012,7 @@ func (m *QueryTokenMintedAllProductsByPairRequest) Unmarshal(dAtA []byte) error } b := dAtA[iNdEx] iNdEx++ - m.ProductId |= uint64(b&0x7F) << shift + m.AppId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8544,7 +8093,7 @@ func (m *QueryTokenMintedAllProductsByPairRequest) Unmarshal(dAtA []byte) error } return nil } -func (m *QueryTokenMintedAllProductsByPairResponse) Unmarshal(dAtA []byte) error { +func (m *QueryTokenMintedByAppAndExtendedPairResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -8567,10 +8116,10 @@ func (m *QueryTokenMintedAllProductsByPairResponse) Unmarshal(dAtA []byte) error fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryTokenMintedAllProductsByPairResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryTokenMintedByAppAndExtendedPairResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryTokenMintedAllProductsByPairResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryTokenMintedByAppAndExtendedPairResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -8628,7 +8177,7 @@ func (m *QueryTokenMintedAllProductsByPairResponse) Unmarshal(dAtA []byte) error } return nil } -func (m *QueryTokenMintedByProductAssetWiseRequest) Unmarshal(dAtA []byte) error { +func (m *QueryTokenMintedAssetWiseByAppRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -8651,17 +8200,17 @@ func (m *QueryTokenMintedByProductAssetWiseRequest) Unmarshal(dAtA []byte) error fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryTokenMintedByProductAssetWiseRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryTokenMintedAssetWiseByAppRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryTokenMintedByProductAssetWiseRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryTokenMintedAssetWiseByAppRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ProductId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AppId", wireType) } - m.ProductId = 0 + m.AppId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -8671,7 +8220,7 @@ func (m *QueryTokenMintedByProductAssetWiseRequest) Unmarshal(dAtA []byte) error } b := dAtA[iNdEx] iNdEx++ - m.ProductId |= uint64(b&0x7F) << shift + m.AppId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8733,7 +8282,7 @@ func (m *QueryTokenMintedByProductAssetWiseRequest) Unmarshal(dAtA []byte) error } return nil } -func (m *QueryTokenMintedByProductAssetWiseResponse) Unmarshal(dAtA []byte) error { +func (m *QueryTokenMintedAssetWiseByAppResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -8756,10 +8305,10 @@ func (m *QueryTokenMintedByProductAssetWiseResponse) Unmarshal(dAtA []byte) erro fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryTokenMintedByProductAssetWiseResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryTokenMintedAssetWiseByAppResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryTokenMintedByProductAssetWiseResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryTokenMintedAssetWiseByAppResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -8817,7 +8366,7 @@ func (m *QueryTokenMintedByProductAssetWiseResponse) Unmarshal(dAtA []byte) erro } return nil } -func (m *QueryVaultCountByProductRequest) Unmarshal(dAtA []byte) error { +func (m *QueryVaultCountByAppRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -8840,17 +8389,17 @@ func (m *QueryVaultCountByProductRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryVaultCountByProductRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryVaultCountByAppRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryVaultCountByProductRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryVaultCountByAppRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ProductId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AppId", wireType) } - m.ProductId = 0 + m.AppId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -8860,7 +8409,7 @@ func (m *QueryVaultCountByProductRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ProductId |= uint64(b&0x7F) << shift + m.AppId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8922,7 +8471,7 @@ func (m *QueryVaultCountByProductRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryVaultCountByProductResponse) Unmarshal(dAtA []byte) error { +func (m *QueryVaultCountByAppResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -8945,10 +8494,10 @@ func (m *QueryVaultCountByProductResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryVaultCountByProductResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryVaultCountByAppResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryVaultCountByProductResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryVaultCountByAppResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -8991,7 +8540,7 @@ func (m *QueryVaultCountByProductResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryVaultCountByProductAndPairRequest) Unmarshal(dAtA []byte) error { +func (m *QueryVaultCountByAppAndExtendedPairRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -9014,17 +8563,17 @@ func (m *QueryVaultCountByProductAndPairRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryVaultCountByProductAndPairRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryVaultCountByAppAndExtendedPairRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryVaultCountByProductAndPairRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryVaultCountByAppAndExtendedPairRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ProductId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AppId", wireType) } - m.ProductId = 0 + m.AppId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -9034,7 +8583,7 @@ func (m *QueryVaultCountByProductAndPairRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ProductId |= uint64(b&0x7F) << shift + m.AppId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9115,7 +8664,7 @@ func (m *QueryVaultCountByProductAndPairRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryVaultCountByProductAndPairResponse) Unmarshal(dAtA []byte) error { +func (m *QueryVaultCountByAppAndExtendedPairResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -9138,10 +8687,10 @@ func (m *QueryVaultCountByProductAndPairResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryVaultCountByProductAndPairResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryVaultCountByAppAndExtendedPairResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryVaultCountByProductAndPairResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryVaultCountByAppAndExtendedPairResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -9184,7 +8733,7 @@ func (m *QueryVaultCountByProductAndPairResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryTotalValueLockedByProductExtendedPairRequest) Unmarshal(dAtA []byte) error { +func (m *QueryTotalValueLockedByAppExtendedPairRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -9207,17 +8756,17 @@ func (m *QueryTotalValueLockedByProductExtendedPairRequest) Unmarshal(dAtA []byt fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryTotalValueLockedByProductExtendedPairRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryTotalValueLockedByAppExtendedPairRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryTotalValueLockedByProductExtendedPairRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryTotalValueLockedByAppExtendedPairRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ProductId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AppId", wireType) } - m.ProductId = 0 + m.AppId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -9227,7 +8776,7 @@ func (m *QueryTotalValueLockedByProductExtendedPairRequest) Unmarshal(dAtA []byt } b := dAtA[iNdEx] iNdEx++ - m.ProductId |= uint64(b&0x7F) << shift + m.AppId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9308,7 +8857,7 @@ func (m *QueryTotalValueLockedByProductExtendedPairRequest) Unmarshal(dAtA []byt } return nil } -func (m *QueryTotalValueLockedByProductExtendedPairResponse) Unmarshal(dAtA []byte) error { +func (m *QueryTotalValueLockedByAppExtendedPairResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -9331,10 +8880,10 @@ func (m *QueryTotalValueLockedByProductExtendedPairResponse) Unmarshal(dAtA []by fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryTotalValueLockedByProductExtendedPairResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryTotalValueLockedByAppExtendedPairResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryTotalValueLockedByProductExtendedPairResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryTotalValueLockedByAppExtendedPairResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -9394,7 +8943,7 @@ func (m *QueryTotalValueLockedByProductExtendedPairResponse) Unmarshal(dAtA []by } return nil } -func (m *QueryExtendedPairIDByProductRequest) Unmarshal(dAtA []byte) error { +func (m *QueryExtendedPairIDsByAppRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -9417,17 +8966,17 @@ func (m *QueryExtendedPairIDByProductRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryExtendedPairIDByProductRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryExtendedPairIDsByAppRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryExtendedPairIDByProductRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryExtendedPairIDsByAppRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ProductId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AppId", wireType) } - m.ProductId = 0 + m.AppId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -9437,7 +8986,7 @@ func (m *QueryExtendedPairIDByProductRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ProductId |= uint64(b&0x7F) << shift + m.AppId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9499,7 +9048,7 @@ func (m *QueryExtendedPairIDByProductRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryExtendedPairIDByProductResponse) Unmarshal(dAtA []byte) error { +func (m *QueryExtendedPairIDsByAppResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -9522,10 +9071,10 @@ func (m *QueryExtendedPairIDByProductResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryExtendedPairIDByProductResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryExtendedPairIDsByAppResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryExtendedPairIDByProductResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryExtendedPairIDsByAppResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -9625,7 +9174,7 @@ func (m *QueryExtendedPairIDByProductResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryStableVaultInfoRequest) Unmarshal(dAtA []byte) error { +func (m *QueryStableVaultByVaultIdRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -9648,10 +9197,10 @@ func (m *QueryStableVaultInfoRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryStableVaultInfoRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryStableVaultByVaultIdRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryStableVaultInfoRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryStableVaultByVaultIdRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -9707,7 +9256,7 @@ func (m *QueryStableVaultInfoRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryStableVaultInfoResponse) Unmarshal(dAtA []byte) error { +func (m *QueryStableVaultByVaultIdResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -9730,10 +9279,10 @@ func (m *QueryStableVaultInfoResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryStableVaultInfoResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryStableVaultByVaultIdResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryStableVaultInfoResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryStableVaultByVaultIdResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -9793,7 +9342,7 @@ func (m *QueryStableVaultInfoResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAllStableVaultsRequest) Unmarshal(dAtA []byte) error { +func (m *QueryStableVaultByAppRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -9816,10 +9365,10 @@ func (m *QueryAllStableVaultsRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAllStableVaultsRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryStableVaultByAppRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllStableVaultsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryStableVaultByAppRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -9862,7 +9411,7 @@ func (m *QueryAllStableVaultsRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAllStableVaultsResponse) Unmarshal(dAtA []byte) error { +func (m *QueryStableVaultByAppResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -9885,10 +9434,10 @@ func (m *QueryAllStableVaultsResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAllStableVaultsResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryStableVaultByAppResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllStableVaultsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryStableVaultByAppResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -9946,7 +9495,7 @@ func (m *QueryAllStableVaultsResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryStableVaultByProductExtendedPairRequest) Unmarshal(dAtA []byte) error { +func (m *QueryStableVaultByAppExtendedPairRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -9969,10 +9518,10 @@ func (m *QueryStableVaultByProductExtendedPairRequest) Unmarshal(dAtA []byte) er fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryStableVaultByProductExtendedPairRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryStableVaultByAppExtendedPairRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryStableVaultByProductExtendedPairRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryStableVaultByAppExtendedPairRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -10034,7 +9583,7 @@ func (m *QueryStableVaultByProductExtendedPairRequest) Unmarshal(dAtA []byte) er } return nil } -func (m *QueryStableVaultByProductExtendedPairResponse) Unmarshal(dAtA []byte) error { +func (m *QueryStableVaultByAppExtendedPairResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -10057,10 +9606,10 @@ func (m *QueryStableVaultByProductExtendedPairResponse) Unmarshal(dAtA []byte) e fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryStableVaultByProductExtendedPairResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryStableVaultByAppExtendedPairResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryStableVaultByProductExtendedPairResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryStableVaultByAppExtendedPairResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -10447,393 +9996,6 @@ func (m *QueryExtendedPairVaultMappingByAppResponse) Unmarshal(dAtA []byte) erro } return nil } -func (m *QueryExtendedPairVaultMappingByOwnerAndAppRequest) 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: QueryExtendedPairVaultMappingByOwnerAndAppRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryExtendedPairVaultMappingByOwnerAndAppRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Owner", 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.Owner = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AppId", wireType) - } - m.AppId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.AppId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryExtendedPairVaultMappingByOwnerAndAppResponse) 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: QueryExtendedPairVaultMappingByOwnerAndAppResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryExtendedPairVaultMappingByOwnerAndAppResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExtendedPairtoVaultMapping", 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.ExtendedPairtoVaultMapping = append(m.ExtendedPairtoVaultMapping, &ExtendedPairToVaultMapping{}) - if err := m.ExtendedPairtoVaultMapping[len(m.ExtendedPairtoVaultMapping)-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 *QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairIDRequest) 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: QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairIDRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairIDRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Owner", 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.Owner = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AppId", wireType) - } - m.AppId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.AppId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ExtendedPair", wireType) - } - m.ExtendedPair = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ExtendedPair |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairIDResponse) 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: QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairIDResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairIDResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VaultId", 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.VaultId = 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 *QueryTVLLockedByAppOfAllExtendedPairsRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 diff --git a/x/vault/types/query.pb.gw.go b/x/vault/types/query.pb.gw.go index 3154ce651..3b75bf500 100644 --- a/x/vault/types/query.pb.gw.go +++ b/x/vault/types/query.pb.gw.go @@ -141,8 +141,8 @@ func local_request_Query_QueryUserExtendedPairTotalData_0(ctx context.Context, m } -func request_Query_QueryVaultInfo_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryVaultInfoRequest +func request_Query_QueryVaultInfoByVaultId_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryVaultInfoByVaultIdRequest var metadata runtime.ServerMetadata var ( @@ -163,13 +163,13 @@ func request_Query_QueryVaultInfo_0(ctx context.Context, marshaler runtime.Marsh return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) } - msg, err := client.QueryVaultInfo(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.QueryVaultInfoByVaultId(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_Query_QueryVaultInfo_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryVaultInfoRequest +func local_request_Query_QueryVaultInfoByVaultId_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryVaultInfoByVaultIdRequest var metadata runtime.ServerMetadata var ( @@ -190,13 +190,13 @@ func local_request_Query_QueryVaultInfo_0(ctx context.Context, marshaler runtime return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) } - msg, err := server.QueryVaultInfo(ctx, &protoReq) + msg, err := server.QueryVaultInfoByVaultId(ctx, &protoReq) return msg, metadata, err } -func request_Query_QueryVaultInfoByAppByOwner_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryVaultInfoByAppByOwnerRequest +func request_Query_QueryVaultInfoOfOwnerByApp_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryVaultInfoOfOwnerByAppRequest var metadata runtime.ServerMetadata var ( @@ -228,13 +228,13 @@ func request_Query_QueryVaultInfoByAppByOwner_0(ctx context.Context, marshaler r return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "owner", err) } - msg, err := client.QueryVaultInfoByAppByOwner(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.QueryVaultInfoOfOwnerByApp(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_Query_QueryVaultInfoByAppByOwner_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryVaultInfoByAppByOwnerRequest +func local_request_Query_QueryVaultInfoOfOwnerByApp_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryVaultInfoOfOwnerByAppRequest var metadata runtime.ServerMetadata var ( @@ -266,7 +266,7 @@ func local_request_Query_QueryVaultInfoByAppByOwner_0(ctx context.Context, marsh return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "owner", err) } - msg, err := server.QueryVaultInfoByAppByOwner(ctx, &protoReq) + msg, err := server.QueryVaultInfoOfOwnerByApp(ctx, &protoReq) return msg, metadata, err } @@ -307,8 +307,8 @@ func local_request_Query_QueryAllVaults_0(ctx context.Context, marshaler runtime } -func request_Query_QueryAllVaultsByProduct_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryAllVaultsByProductRequest +func request_Query_QueryAllVaultsByApp_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAllVaultsByAppRequest var metadata runtime.ServerMetadata var ( @@ -329,13 +329,13 @@ func request_Query_QueryAllVaultsByProduct_0(ctx context.Context, marshaler runt return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "app_id", err) } - msg, err := client.QueryAllVaultsByProduct(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.QueryAllVaultsByApp(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_Query_QueryAllVaultsByProduct_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryAllVaultsByProductRequest +func local_request_Query_QueryAllVaultsByApp_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAllVaultsByAppRequest var metadata runtime.ServerMetadata var ( @@ -356,7 +356,7 @@ func local_request_Query_QueryAllVaultsByProduct_0(ctx context.Context, marshale return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "app_id", err) } - msg, err := server.QueryAllVaultsByProduct(ctx, &protoReq) + msg, err := server.QueryAllVaultsByApp(ctx, &protoReq) return msg, metadata, err } @@ -456,11 +456,11 @@ func local_request_Query_QueryAllVaultsByAppAndExtendedPair_0(ctx context.Contex } var ( - filter_Query_QueryVaultOfOwnerByExtendedPair_0 = &utilities.DoubleArray{Encoding: map[string]int{"product_id": 0, "owner": 1, "extended_pair_id": 2}, Base: []int{1, 1, 2, 3, 0, 0, 0}, Check: []int{0, 1, 1, 1, 2, 3, 4}} + filter_Query_QueryVaultIdOfOwnerByExtendedPairAndApp_0 = &utilities.DoubleArray{Encoding: map[string]int{"app_id": 0, "owner": 1, "extended_pair_id": 2}, Base: []int{1, 1, 2, 3, 0, 0, 0}, Check: []int{0, 1, 1, 1, 2, 3, 4}} ) -func request_Query_QueryVaultOfOwnerByExtendedPair_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryVaultOfOwnerByExtendedPairRequest +func request_Query_QueryVaultIdOfOwnerByExtendedPairAndApp_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryVaultIdOfOwnerByExtendedPairAndAppRequest var metadata runtime.ServerMetadata var ( @@ -470,15 +470,15 @@ func request_Query_QueryVaultOfOwnerByExtendedPair_0(ctx context.Context, marsha _ = err ) - val, ok = pathParams["product_id"] + val, ok = pathParams["app_id"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "product_id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "app_id") } - protoReq.ProductId, err = runtime.Uint64(val) + protoReq.AppId, err = runtime.Uint64(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "product_id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "app_id", err) } val, ok = pathParams["owner"] @@ -506,17 +506,17 @@ func request_Query_QueryVaultOfOwnerByExtendedPair_0(ctx context.Context, marsha if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_QueryVaultOfOwnerByExtendedPair_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_QueryVaultIdOfOwnerByExtendedPairAndApp_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.QueryVaultOfOwnerByExtendedPair(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.QueryVaultIdOfOwnerByExtendedPairAndApp(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_Query_QueryVaultOfOwnerByExtendedPair_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryVaultOfOwnerByExtendedPairRequest +func local_request_Query_QueryVaultIdOfOwnerByExtendedPairAndApp_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryVaultIdOfOwnerByExtendedPairAndAppRequest var metadata runtime.ServerMetadata var ( @@ -526,15 +526,15 @@ func local_request_Query_QueryVaultOfOwnerByExtendedPair_0(ctx context.Context, _ = err ) - val, ok = pathParams["product_id"] + val, ok = pathParams["app_id"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "product_id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "app_id") } - protoReq.ProductId, err = runtime.Uint64(val) + protoReq.AppId, err = runtime.Uint64(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "product_id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "app_id", err) } val, ok = pathParams["owner"] @@ -562,21 +562,21 @@ func local_request_Query_QueryVaultOfOwnerByExtendedPair_0(ctx context.Context, if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_QueryVaultOfOwnerByExtendedPair_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_QueryVaultIdOfOwnerByExtendedPairAndApp_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.QueryVaultOfOwnerByExtendedPair(ctx, &protoReq) + msg, err := server.QueryVaultIdOfOwnerByExtendedPairAndApp(ctx, &protoReq) return msg, metadata, err } var ( - filter_Query_QueryVaultByProduct_0 = &utilities.DoubleArray{Encoding: map[string]int{"product_id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} + filter_Query_QueryVaultIdsByAppInAllExtendedPairs_0 = &utilities.DoubleArray{Encoding: map[string]int{"app_id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} ) -func request_Query_QueryVaultByProduct_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryVaultByProductRequest +func request_Query_QueryVaultIdsByAppInAllExtendedPairs_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryVaultIdsByAppInAllExtendedPairsRequest var metadata runtime.ServerMetadata var ( @@ -586,31 +586,31 @@ func request_Query_QueryVaultByProduct_0(ctx context.Context, marshaler runtime. _ = err ) - val, ok = pathParams["product_id"] + val, ok = pathParams["app_id"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "product_id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "app_id") } - protoReq.ProductId, err = runtime.Uint64(val) + protoReq.AppId, err = runtime.Uint64(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "product_id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "app_id", err) } if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_QueryVaultByProduct_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_QueryVaultIdsByAppInAllExtendedPairs_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.QueryVaultByProduct(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.QueryVaultIdsByAppInAllExtendedPairs(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_Query_QueryVaultByProduct_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryVaultByProductRequest +func local_request_Query_QueryVaultIdsByAppInAllExtendedPairs_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryVaultIdsByAppInAllExtendedPairsRequest var metadata runtime.ServerMetadata var ( @@ -620,35 +620,35 @@ func local_request_Query_QueryVaultByProduct_0(ctx context.Context, marshaler ru _ = err ) - val, ok = pathParams["product_id"] + val, ok = pathParams["app_id"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "product_id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "app_id") } - protoReq.ProductId, err = runtime.Uint64(val) + protoReq.AppId, err = runtime.Uint64(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "product_id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "app_id", err) } if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_QueryVaultByProduct_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_QueryVaultIdsByAppInAllExtendedPairs_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.QueryVaultByProduct(ctx, &protoReq) + msg, err := server.QueryVaultIdsByAppInAllExtendedPairs(ctx, &protoReq) return msg, metadata, err } var ( - filter_Query_QueryAllVaultByOwner_0 = &utilities.DoubleArray{Encoding: map[string]int{"owner": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} + filter_Query_QueryAllVaultIdsByAnOwner_0 = &utilities.DoubleArray{Encoding: map[string]int{"owner": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} ) -func request_Query_QueryAllVaultByOwner_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryAllVaultByOwnerRequest +func request_Query_QueryAllVaultIdsByAnOwner_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAllVaultIdsByAnOwnerRequest var metadata runtime.ServerMetadata var ( @@ -672,17 +672,17 @@ func request_Query_QueryAllVaultByOwner_0(ctx context.Context, marshaler runtime if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_QueryAllVaultByOwner_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_QueryAllVaultIdsByAnOwner_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.QueryAllVaultByOwner(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.QueryAllVaultIdsByAnOwner(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_Query_QueryAllVaultByOwner_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryAllVaultByOwnerRequest +func local_request_Query_QueryAllVaultIdsByAnOwner_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAllVaultIdsByAnOwnerRequest var metadata runtime.ServerMetadata var ( @@ -706,21 +706,21 @@ func local_request_Query_QueryAllVaultByOwner_0(ctx context.Context, marshaler r if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_QueryAllVaultByOwner_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_QueryAllVaultIdsByAnOwner_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.QueryAllVaultByOwner(ctx, &protoReq) + msg, err := server.QueryAllVaultIdsByAnOwner(ctx, &protoReq) return msg, metadata, err } var ( - filter_Query_QueryTokenMintedAllProductsByPair_0 = &utilities.DoubleArray{Encoding: map[string]int{"product_id": 0, "extended_pair_id": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} + filter_Query_QueryTokenMintedByAppAndExtendedPair_0 = &utilities.DoubleArray{Encoding: map[string]int{"app_id": 0, "extended_pair_id": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} ) -func request_Query_QueryTokenMintedAllProductsByPair_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryTokenMintedAllProductsByPairRequest +func request_Query_QueryTokenMintedByAppAndExtendedPair_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryTokenMintedByAppAndExtendedPairRequest var metadata runtime.ServerMetadata var ( @@ -730,15 +730,15 @@ func request_Query_QueryTokenMintedAllProductsByPair_0(ctx context.Context, mars _ = err ) - val, ok = pathParams["product_id"] + val, ok = pathParams["app_id"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "product_id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "app_id") } - protoReq.ProductId, err = runtime.Uint64(val) + protoReq.AppId, err = runtime.Uint64(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "product_id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "app_id", err) } val, ok = pathParams["extended_pair_id"] @@ -755,17 +755,17 @@ func request_Query_QueryTokenMintedAllProductsByPair_0(ctx context.Context, mars if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_QueryTokenMintedAllProductsByPair_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_QueryTokenMintedByAppAndExtendedPair_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.QueryTokenMintedAllProductsByPair(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.QueryTokenMintedByAppAndExtendedPair(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_Query_QueryTokenMintedAllProductsByPair_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryTokenMintedAllProductsByPairRequest +func local_request_Query_QueryTokenMintedByAppAndExtendedPair_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryTokenMintedByAppAndExtendedPairRequest var metadata runtime.ServerMetadata var ( @@ -775,15 +775,15 @@ func local_request_Query_QueryTokenMintedAllProductsByPair_0(ctx context.Context _ = err ) - val, ok = pathParams["product_id"] + val, ok = pathParams["app_id"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "product_id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "app_id") } - protoReq.ProductId, err = runtime.Uint64(val) + protoReq.AppId, err = runtime.Uint64(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "product_id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "app_id", err) } val, ok = pathParams["extended_pair_id"] @@ -800,21 +800,21 @@ func local_request_Query_QueryTokenMintedAllProductsByPair_0(ctx context.Context if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_QueryTokenMintedAllProductsByPair_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_QueryTokenMintedByAppAndExtendedPair_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.QueryTokenMintedAllProductsByPair(ctx, &protoReq) + msg, err := server.QueryTokenMintedByAppAndExtendedPair(ctx, &protoReq) return msg, metadata, err } var ( - filter_Query_QueryTokenMintedByProductAssetWise_0 = &utilities.DoubleArray{Encoding: map[string]int{"product_id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} + filter_Query_QueryTokenMintedAssetWiseByApp_0 = &utilities.DoubleArray{Encoding: map[string]int{"app_id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} ) -func request_Query_QueryTokenMintedByProductAssetWise_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryTokenMintedByProductAssetWiseRequest +func request_Query_QueryTokenMintedAssetWiseByApp_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryTokenMintedAssetWiseByAppRequest var metadata runtime.ServerMetadata var ( @@ -824,31 +824,31 @@ func request_Query_QueryTokenMintedByProductAssetWise_0(ctx context.Context, mar _ = err ) - val, ok = pathParams["product_id"] + val, ok = pathParams["app_id"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "product_id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "app_id") } - protoReq.ProductId, err = runtime.Uint64(val) + protoReq.AppId, err = runtime.Uint64(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "product_id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "app_id", err) } if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_QueryTokenMintedByProductAssetWise_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_QueryTokenMintedAssetWiseByApp_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.QueryTokenMintedByProductAssetWise(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.QueryTokenMintedAssetWiseByApp(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_Query_QueryTokenMintedByProductAssetWise_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryTokenMintedByProductAssetWiseRequest +func local_request_Query_QueryTokenMintedAssetWiseByApp_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryTokenMintedAssetWiseByAppRequest var metadata runtime.ServerMetadata var ( @@ -858,35 +858,35 @@ func local_request_Query_QueryTokenMintedByProductAssetWise_0(ctx context.Contex _ = err ) - val, ok = pathParams["product_id"] + val, ok = pathParams["app_id"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "product_id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "app_id") } - protoReq.ProductId, err = runtime.Uint64(val) + protoReq.AppId, err = runtime.Uint64(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "product_id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "app_id", err) } if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_QueryTokenMintedByProductAssetWise_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_QueryTokenMintedAssetWiseByApp_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.QueryTokenMintedByProductAssetWise(ctx, &protoReq) + msg, err := server.QueryTokenMintedAssetWiseByApp(ctx, &protoReq) return msg, metadata, err } var ( - filter_Query_QueryVaultCountByProduct_0 = &utilities.DoubleArray{Encoding: map[string]int{"product_id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} + filter_Query_QueryVaultCountByApp_0 = &utilities.DoubleArray{Encoding: map[string]int{"app_id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} ) -func request_Query_QueryVaultCountByProduct_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryVaultCountByProductRequest +func request_Query_QueryVaultCountByApp_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryVaultCountByAppRequest var metadata runtime.ServerMetadata var ( @@ -896,31 +896,31 @@ func request_Query_QueryVaultCountByProduct_0(ctx context.Context, marshaler run _ = err ) - val, ok = pathParams["product_id"] + val, ok = pathParams["app_id"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "product_id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "app_id") } - protoReq.ProductId, err = runtime.Uint64(val) + protoReq.AppId, err = runtime.Uint64(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "product_id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "app_id", err) } if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_QueryVaultCountByProduct_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_QueryVaultCountByApp_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.QueryVaultCountByProduct(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.QueryVaultCountByApp(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_Query_QueryVaultCountByProduct_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryVaultCountByProductRequest +func local_request_Query_QueryVaultCountByApp_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryVaultCountByAppRequest var metadata runtime.ServerMetadata var ( @@ -930,35 +930,35 @@ func local_request_Query_QueryVaultCountByProduct_0(ctx context.Context, marshal _ = err ) - val, ok = pathParams["product_id"] + val, ok = pathParams["app_id"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "product_id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "app_id") } - protoReq.ProductId, err = runtime.Uint64(val) + protoReq.AppId, err = runtime.Uint64(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "product_id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "app_id", err) } if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_QueryVaultCountByProduct_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_QueryVaultCountByApp_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.QueryVaultCountByProduct(ctx, &protoReq) + msg, err := server.QueryVaultCountByApp(ctx, &protoReq) return msg, metadata, err } var ( - filter_Query_QueryVaultCountByProductAndPair_0 = &utilities.DoubleArray{Encoding: map[string]int{"product_id": 0, "extended_pair_id": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} + filter_Query_QueryVaultCountByAppAndExtendedPair_0 = &utilities.DoubleArray{Encoding: map[string]int{"app_id": 0, "extended_pair_id": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} ) -func request_Query_QueryVaultCountByProductAndPair_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryVaultCountByProductAndPairRequest +func request_Query_QueryVaultCountByAppAndExtendedPair_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryVaultCountByAppAndExtendedPairRequest var metadata runtime.ServerMetadata var ( @@ -968,15 +968,15 @@ func request_Query_QueryVaultCountByProductAndPair_0(ctx context.Context, marsha _ = err ) - val, ok = pathParams["product_id"] + val, ok = pathParams["app_id"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "product_id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "app_id") } - protoReq.ProductId, err = runtime.Uint64(val) + protoReq.AppId, err = runtime.Uint64(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "product_id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "app_id", err) } val, ok = pathParams["extended_pair_id"] @@ -993,17 +993,17 @@ func request_Query_QueryVaultCountByProductAndPair_0(ctx context.Context, marsha if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_QueryVaultCountByProductAndPair_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_QueryVaultCountByAppAndExtendedPair_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.QueryVaultCountByProductAndPair(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.QueryVaultCountByAppAndExtendedPair(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_Query_QueryVaultCountByProductAndPair_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryVaultCountByProductAndPairRequest +func local_request_Query_QueryVaultCountByAppAndExtendedPair_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryVaultCountByAppAndExtendedPairRequest var metadata runtime.ServerMetadata var ( @@ -1013,15 +1013,15 @@ func local_request_Query_QueryVaultCountByProductAndPair_0(ctx context.Context, _ = err ) - val, ok = pathParams["product_id"] + val, ok = pathParams["app_id"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "product_id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "app_id") } - protoReq.ProductId, err = runtime.Uint64(val) + protoReq.AppId, err = runtime.Uint64(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "product_id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "app_id", err) } val, ok = pathParams["extended_pair_id"] @@ -1038,21 +1038,21 @@ func local_request_Query_QueryVaultCountByProductAndPair_0(ctx context.Context, if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_QueryVaultCountByProductAndPair_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_QueryVaultCountByAppAndExtendedPair_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.QueryVaultCountByProductAndPair(ctx, &protoReq) + msg, err := server.QueryVaultCountByAppAndExtendedPair(ctx, &protoReq) return msg, metadata, err } var ( - filter_Query_QueryTotalValueLockedByProductExtendedPair_0 = &utilities.DoubleArray{Encoding: map[string]int{"product_id": 0, "extended_pair_id": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} + filter_Query_QueryTotalValueLockedByAppExtendedPair_0 = &utilities.DoubleArray{Encoding: map[string]int{"app_id": 0, "extended_pair_id": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} ) -func request_Query_QueryTotalValueLockedByProductExtendedPair_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryTotalValueLockedByProductExtendedPairRequest +func request_Query_QueryTotalValueLockedByAppExtendedPair_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryTotalValueLockedByAppExtendedPairRequest var metadata runtime.ServerMetadata var ( @@ -1062,15 +1062,15 @@ func request_Query_QueryTotalValueLockedByProductExtendedPair_0(ctx context.Cont _ = err ) - val, ok = pathParams["product_id"] + val, ok = pathParams["app_id"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "product_id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "app_id") } - protoReq.ProductId, err = runtime.Uint64(val) + protoReq.AppId, err = runtime.Uint64(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "product_id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "app_id", err) } val, ok = pathParams["extended_pair_id"] @@ -1087,17 +1087,17 @@ func request_Query_QueryTotalValueLockedByProductExtendedPair_0(ctx context.Cont if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_QueryTotalValueLockedByProductExtendedPair_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_QueryTotalValueLockedByAppExtendedPair_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.QueryTotalValueLockedByProductExtendedPair(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.QueryTotalValueLockedByAppExtendedPair(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_Query_QueryTotalValueLockedByProductExtendedPair_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryTotalValueLockedByProductExtendedPairRequest +func local_request_Query_QueryTotalValueLockedByAppExtendedPair_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryTotalValueLockedByAppExtendedPairRequest var metadata runtime.ServerMetadata var ( @@ -1107,15 +1107,15 @@ func local_request_Query_QueryTotalValueLockedByProductExtendedPair_0(ctx contex _ = err ) - val, ok = pathParams["product_id"] + val, ok = pathParams["app_id"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "product_id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "app_id") } - protoReq.ProductId, err = runtime.Uint64(val) + protoReq.AppId, err = runtime.Uint64(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "product_id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "app_id", err) } val, ok = pathParams["extended_pair_id"] @@ -1132,21 +1132,21 @@ func local_request_Query_QueryTotalValueLockedByProductExtendedPair_0(ctx contex if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_QueryTotalValueLockedByProductExtendedPair_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_QueryTotalValueLockedByAppExtendedPair_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.QueryTotalValueLockedByProductExtendedPair(ctx, &protoReq) + msg, err := server.QueryTotalValueLockedByAppExtendedPair(ctx, &protoReq) return msg, metadata, err } var ( - filter_Query_QueryExtendedPairIDByProduct_0 = &utilities.DoubleArray{Encoding: map[string]int{"product_id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} + filter_Query_QueryExtendedPairIDsByApp_0 = &utilities.DoubleArray{Encoding: map[string]int{"app_id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} ) -func request_Query_QueryExtendedPairIDByProduct_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryExtendedPairIDByProductRequest +func request_Query_QueryExtendedPairIDsByApp_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryExtendedPairIDsByAppRequest var metadata runtime.ServerMetadata var ( @@ -1156,31 +1156,31 @@ func request_Query_QueryExtendedPairIDByProduct_0(ctx context.Context, marshaler _ = err ) - val, ok = pathParams["product_id"] + val, ok = pathParams["app_id"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "product_id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "app_id") } - protoReq.ProductId, err = runtime.Uint64(val) + protoReq.AppId, err = runtime.Uint64(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "product_id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "app_id", err) } if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_QueryExtendedPairIDByProduct_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_QueryExtendedPairIDsByApp_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.QueryExtendedPairIDByProduct(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.QueryExtendedPairIDsByApp(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_Query_QueryExtendedPairIDByProduct_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryExtendedPairIDByProductRequest +func local_request_Query_QueryExtendedPairIDsByApp_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryExtendedPairIDsByAppRequest var metadata runtime.ServerMetadata var ( @@ -1190,31 +1190,31 @@ func local_request_Query_QueryExtendedPairIDByProduct_0(ctx context.Context, mar _ = err ) - val, ok = pathParams["product_id"] + val, ok = pathParams["app_id"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "product_id") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "app_id") } - protoReq.ProductId, err = runtime.Uint64(val) + protoReq.AppId, err = runtime.Uint64(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "product_id", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "app_id", err) } if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_QueryExtendedPairIDByProduct_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_QueryExtendedPairIDsByApp_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.QueryExtendedPairIDByProduct(ctx, &protoReq) + msg, err := server.QueryExtendedPairIDsByApp(ctx, &protoReq) return msg, metadata, err } -func request_Query_QueryStableVaultInfo_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryStableVaultInfoRequest +func request_Query_QueryStableVaultByVaultId_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryStableVaultByVaultIdRequest var metadata runtime.ServerMetadata var ( @@ -1235,13 +1235,13 @@ func request_Query_QueryStableVaultInfo_0(ctx context.Context, marshaler runtime return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "stable_vault_id", err) } - msg, err := client.QueryStableVaultInfo(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.QueryStableVaultByVaultId(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_Query_QueryStableVaultInfo_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryStableVaultInfoRequest +func local_request_Query_QueryStableVaultByVaultId_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryStableVaultByVaultIdRequest var metadata runtime.ServerMetadata var ( @@ -1262,13 +1262,13 @@ func local_request_Query_QueryStableVaultInfo_0(ctx context.Context, marshaler r return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "stable_vault_id", err) } - msg, err := server.QueryStableVaultInfo(ctx, &protoReq) + msg, err := server.QueryStableVaultByVaultId(ctx, &protoReq) return msg, metadata, err } -func request_Query_QueryAllStableVaults_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryAllStableVaultsRequest +func request_Query_QueryStableVaultByApp_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryStableVaultByAppRequest var metadata runtime.ServerMetadata var ( @@ -1289,13 +1289,13 @@ func request_Query_QueryAllStableVaults_0(ctx context.Context, marshaler runtime return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "app_id", err) } - msg, err := client.QueryAllStableVaults(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.QueryStableVaultByApp(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_Query_QueryAllStableVaults_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryAllStableVaultsRequest +func local_request_Query_QueryStableVaultByApp_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryStableVaultByAppRequest var metadata runtime.ServerMetadata var ( @@ -1316,13 +1316,13 @@ func local_request_Query_QueryAllStableVaults_0(ctx context.Context, marshaler r return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "app_id", err) } - msg, err := server.QueryAllStableVaults(ctx, &protoReq) + msg, err := server.QueryStableVaultByApp(ctx, &protoReq) return msg, metadata, err } -func request_Query_QueryStableVaultByProductExtendedPair_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryStableVaultByProductExtendedPairRequest +func request_Query_QueryStableVaultByAppExtendedPair_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryStableVaultByAppExtendedPairRequest var metadata runtime.ServerMetadata var ( @@ -1354,13 +1354,13 @@ func request_Query_QueryStableVaultByProductExtendedPair_0(ctx context.Context, return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "extended_pair_id", err) } - msg, err := client.QueryStableVaultByProductExtendedPair(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.QueryStableVaultByAppExtendedPair(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_Query_QueryStableVaultByProductExtendedPair_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryStableVaultByProductExtendedPairRequest +func local_request_Query_QueryStableVaultByAppExtendedPair_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryStableVaultByAppExtendedPairRequest var metadata runtime.ServerMetadata var ( @@ -1392,7 +1392,7 @@ func local_request_Query_QueryStableVaultByProductExtendedPair_0(ctx context.Con return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "extended_pair_id", err) } - msg, err := server.QueryStableVaultByProductExtendedPair(ctx, &protoReq) + msg, err := server.QueryStableVaultByAppExtendedPair(ctx, &protoReq) return msg, metadata, err } @@ -1527,180 +1527,6 @@ func local_request_Query_QueryExtendedPairVaultMappingByApp_0(ctx context.Contex } -func request_Query_QueryExtendedPairVaultMappingByOwnerAndApp_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryExtendedPairVaultMappingByOwnerAndAppRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["owner"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "owner") - } - - protoReq.Owner, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "owner", err) - } - - val, ok = pathParams["app_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "app_id") - } - - protoReq.AppId, err = runtime.Uint64(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "app_id", err) - } - - msg, err := client.QueryExtendedPairVaultMappingByOwnerAndApp(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_QueryExtendedPairVaultMappingByOwnerAndApp_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryExtendedPairVaultMappingByOwnerAndAppRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["owner"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "owner") - } - - protoReq.Owner, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "owner", err) - } - - val, ok = pathParams["app_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "app_id") - } - - protoReq.AppId, err = runtime.Uint64(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "app_id", err) - } - - msg, err := server.QueryExtendedPairVaultMappingByOwnerAndApp(ctx, &protoReq) - return msg, metadata, err - -} - -func request_Query_QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairID_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairIDRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["owner"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "owner") - } - - protoReq.Owner, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "owner", err) - } - - val, ok = pathParams["app_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "app_id") - } - - protoReq.AppId, err = runtime.Uint64(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "app_id", err) - } - - val, ok = pathParams["extended_pair"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "extended_pair") - } - - protoReq.ExtendedPair, err = runtime.Uint64(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "extended_pair", err) - } - - msg, err := client.QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairID(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairID_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairIDRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["owner"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "owner") - } - - protoReq.Owner, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "owner", err) - } - - val, ok = pathParams["app_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "app_id") - } - - protoReq.AppId, err = runtime.Uint64(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "app_id", err) - } - - val, ok = pathParams["extended_pair"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "extended_pair") - } - - protoReq.ExtendedPair, err = runtime.Uint64(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "extended_pair", err) - } - - msg, err := server.QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairID(ctx, &protoReq) - return msg, metadata, err - -} - func request_Query_QueryTVLLockedByAppOfAllExtendedPairs_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryTVLLockedByAppOfAllExtendedPairsRequest var metadata runtime.ServerMetadata @@ -1937,7 +1763,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) - mux.Handle("GET", pattern_Query_QueryVaultInfo_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_QueryVaultInfoByVaultId_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -1948,7 +1774,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_QueryVaultInfo_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_QueryVaultInfoByVaultId_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -1956,11 +1782,11 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_QueryVaultInfo_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_QueryVaultInfoByVaultId_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_QueryVaultInfoByAppByOwner_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_QueryVaultInfoOfOwnerByApp_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -1971,7 +1797,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_QueryVaultInfoByAppByOwner_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_QueryVaultInfoOfOwnerByApp_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -1979,7 +1805,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_QueryVaultInfoByAppByOwner_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_QueryVaultInfoOfOwnerByApp_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -2006,7 +1832,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) - mux.Handle("GET", pattern_Query_QueryAllVaultsByProduct_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_QueryAllVaultsByApp_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -2017,7 +1843,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_QueryAllVaultsByProduct_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_QueryAllVaultsByApp_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -2025,7 +1851,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_QueryAllVaultsByProduct_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_QueryAllVaultsByApp_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -2052,7 +1878,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) - mux.Handle("GET", pattern_Query_QueryVaultOfOwnerByExtendedPair_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_QueryVaultIdOfOwnerByExtendedPairAndApp_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -2063,7 +1889,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_QueryVaultOfOwnerByExtendedPair_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_QueryVaultIdOfOwnerByExtendedPairAndApp_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -2071,11 +1897,11 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_QueryVaultOfOwnerByExtendedPair_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_QueryVaultIdOfOwnerByExtendedPairAndApp_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_QueryVaultByProduct_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_QueryVaultIdsByAppInAllExtendedPairs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -2086,7 +1912,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_QueryVaultByProduct_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_QueryVaultIdsByAppInAllExtendedPairs_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -2094,11 +1920,11 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_QueryVaultByProduct_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_QueryVaultIdsByAppInAllExtendedPairs_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_QueryAllVaultByOwner_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_QueryAllVaultIdsByAnOwner_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -2109,7 +1935,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_QueryAllVaultByOwner_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_QueryAllVaultIdsByAnOwner_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -2117,11 +1943,11 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_QueryAllVaultByOwner_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_QueryAllVaultIdsByAnOwner_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_QueryTokenMintedAllProductsByPair_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_QueryTokenMintedByAppAndExtendedPair_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -2132,7 +1958,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_QueryTokenMintedAllProductsByPair_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_QueryTokenMintedByAppAndExtendedPair_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -2140,11 +1966,11 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_QueryTokenMintedAllProductsByPair_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_QueryTokenMintedByAppAndExtendedPair_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_QueryTokenMintedByProductAssetWise_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_QueryTokenMintedAssetWiseByApp_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -2155,7 +1981,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_QueryTokenMintedByProductAssetWise_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_QueryTokenMintedAssetWiseByApp_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -2163,11 +1989,11 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_QueryTokenMintedByProductAssetWise_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_QueryTokenMintedAssetWiseByApp_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_QueryVaultCountByProduct_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_QueryVaultCountByApp_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -2178,7 +2004,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_QueryVaultCountByProduct_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_QueryVaultCountByApp_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -2186,11 +2012,11 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_QueryVaultCountByProduct_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_QueryVaultCountByApp_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_QueryVaultCountByProductAndPair_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_QueryVaultCountByAppAndExtendedPair_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -2201,7 +2027,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_QueryVaultCountByProductAndPair_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_QueryVaultCountByAppAndExtendedPair_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -2209,11 +2035,11 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_QueryVaultCountByProductAndPair_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_QueryVaultCountByAppAndExtendedPair_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_QueryTotalValueLockedByProductExtendedPair_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_QueryTotalValueLockedByAppExtendedPair_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -2224,7 +2050,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_QueryTotalValueLockedByProductExtendedPair_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_QueryTotalValueLockedByAppExtendedPair_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -2232,11 +2058,11 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_QueryTotalValueLockedByProductExtendedPair_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_QueryTotalValueLockedByAppExtendedPair_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_QueryExtendedPairIDByProduct_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_QueryExtendedPairIDsByApp_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -2247,7 +2073,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_QueryExtendedPairIDByProduct_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_QueryExtendedPairIDsByApp_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -2255,11 +2081,11 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_QueryExtendedPairIDByProduct_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_QueryExtendedPairIDsByApp_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_QueryStableVaultInfo_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_QueryStableVaultByVaultId_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -2270,7 +2096,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_QueryStableVaultInfo_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_QueryStableVaultByVaultId_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -2278,11 +2104,11 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_QueryStableVaultInfo_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_QueryStableVaultByVaultId_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_QueryAllStableVaults_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_QueryStableVaultByApp_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -2293,7 +2119,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_QueryAllStableVaults_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_QueryStableVaultByApp_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -2301,11 +2127,11 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_QueryAllStableVaults_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_QueryStableVaultByApp_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_QueryStableVaultByProductExtendedPair_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_QueryStableVaultByAppExtendedPair_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -2316,7 +2142,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_QueryStableVaultByProductExtendedPair_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_QueryStableVaultByAppExtendedPair_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -2324,7 +2150,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_QueryStableVaultByProductExtendedPair_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_QueryStableVaultByAppExtendedPair_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -2374,52 +2200,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) - mux.Handle("GET", pattern_Query_QueryExtendedPairVaultMappingByOwnerAndApp_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Query_QueryExtendedPairVaultMappingByOwnerAndApp_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_QueryExtendedPairVaultMappingByOwnerAndApp_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairID_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Query_QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairID_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairID_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - mux.Handle("GET", pattern_Query_QueryTVLLockedByAppOfAllExtendedPairs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -2570,7 +2350,7 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) - mux.Handle("GET", pattern_Query_QueryVaultInfo_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_QueryVaultInfoByVaultId_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) @@ -2579,18 +2359,18 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Query_QueryVaultInfo_0(rctx, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Query_QueryVaultInfoByVaultId_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_QueryVaultInfo_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_QueryVaultInfoByVaultId_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_QueryVaultInfoByAppByOwner_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_QueryVaultInfoOfOwnerByApp_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) @@ -2599,14 +2379,14 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Query_QueryVaultInfoByAppByOwner_0(rctx, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Query_QueryVaultInfoOfOwnerByApp_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_QueryVaultInfoByAppByOwner_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_QueryVaultInfoOfOwnerByApp_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -2630,7 +2410,7 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) - mux.Handle("GET", pattern_Query_QueryAllVaultsByProduct_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_QueryAllVaultsByApp_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) @@ -2639,14 +2419,14 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Query_QueryAllVaultsByProduct_0(rctx, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Query_QueryAllVaultsByApp_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_QueryAllVaultsByProduct_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_QueryAllVaultsByApp_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -2670,7 +2450,7 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) - mux.Handle("GET", pattern_Query_QueryVaultOfOwnerByExtendedPair_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_QueryVaultIdOfOwnerByExtendedPairAndApp_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) @@ -2679,18 +2459,18 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Query_QueryVaultOfOwnerByExtendedPair_0(rctx, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Query_QueryVaultIdOfOwnerByExtendedPairAndApp_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_QueryVaultOfOwnerByExtendedPair_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_QueryVaultIdOfOwnerByExtendedPairAndApp_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_QueryVaultByProduct_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_QueryVaultIdsByAppInAllExtendedPairs_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) @@ -2699,18 +2479,18 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Query_QueryVaultByProduct_0(rctx, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Query_QueryVaultIdsByAppInAllExtendedPairs_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_QueryVaultByProduct_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_QueryVaultIdsByAppInAllExtendedPairs_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_QueryAllVaultByOwner_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_QueryAllVaultIdsByAnOwner_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) @@ -2719,18 +2499,18 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Query_QueryAllVaultByOwner_0(rctx, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Query_QueryAllVaultIdsByAnOwner_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_QueryAllVaultByOwner_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_QueryAllVaultIdsByAnOwner_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_QueryTokenMintedAllProductsByPair_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_QueryTokenMintedByAppAndExtendedPair_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) @@ -2739,18 +2519,18 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Query_QueryTokenMintedAllProductsByPair_0(rctx, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Query_QueryTokenMintedByAppAndExtendedPair_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_QueryTokenMintedAllProductsByPair_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_QueryTokenMintedByAppAndExtendedPair_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_QueryTokenMintedByProductAssetWise_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_QueryTokenMintedAssetWiseByApp_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) @@ -2759,18 +2539,18 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Query_QueryTokenMintedByProductAssetWise_0(rctx, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Query_QueryTokenMintedAssetWiseByApp_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_QueryTokenMintedByProductAssetWise_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_QueryTokenMintedAssetWiseByApp_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_QueryVaultCountByProduct_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_QueryVaultCountByApp_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) @@ -2779,18 +2559,18 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Query_QueryVaultCountByProduct_0(rctx, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Query_QueryVaultCountByApp_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_QueryVaultCountByProduct_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_QueryVaultCountByApp_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_QueryVaultCountByProductAndPair_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_QueryVaultCountByAppAndExtendedPair_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) @@ -2799,18 +2579,18 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Query_QueryVaultCountByProductAndPair_0(rctx, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Query_QueryVaultCountByAppAndExtendedPair_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_QueryVaultCountByProductAndPair_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_QueryVaultCountByAppAndExtendedPair_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_QueryTotalValueLockedByProductExtendedPair_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_QueryTotalValueLockedByAppExtendedPair_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) @@ -2819,18 +2599,18 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Query_QueryTotalValueLockedByProductExtendedPair_0(rctx, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Query_QueryTotalValueLockedByAppExtendedPair_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_QueryTotalValueLockedByProductExtendedPair_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_QueryTotalValueLockedByAppExtendedPair_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_QueryExtendedPairIDByProduct_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_QueryExtendedPairIDsByApp_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) @@ -2839,18 +2619,18 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Query_QueryExtendedPairIDByProduct_0(rctx, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Query_QueryExtendedPairIDsByApp_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_QueryExtendedPairIDByProduct_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_QueryExtendedPairIDsByApp_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_QueryStableVaultInfo_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_QueryStableVaultByVaultId_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) @@ -2859,18 +2639,18 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Query_QueryStableVaultInfo_0(rctx, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Query_QueryStableVaultByVaultId_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_QueryStableVaultInfo_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_QueryStableVaultByVaultId_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_QueryAllStableVaults_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_QueryStableVaultByApp_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) @@ -2879,18 +2659,18 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Query_QueryAllStableVaults_0(rctx, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Query_QueryStableVaultByApp_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_QueryAllStableVaults_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_QueryStableVaultByApp_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_QueryStableVaultByProductExtendedPair_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_QueryStableVaultByAppExtendedPair_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) @@ -2899,14 +2679,14 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Query_QueryStableVaultByProductExtendedPair_0(rctx, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Query_QueryStableVaultByAppExtendedPair_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_QueryStableVaultByProductExtendedPair_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_QueryStableVaultByAppExtendedPair_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -2950,46 +2730,6 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) - mux.Handle("GET", pattern_Query_QueryExtendedPairVaultMappingByOwnerAndApp_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_QueryExtendedPairVaultMappingByOwnerAndApp_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_QueryExtendedPairVaultMappingByOwnerAndApp_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairID_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_QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairID_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_QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairID_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - mux.Handle("GET", pattern_Query_QueryTVLLockedByAppOfAllExtendedPairs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -3056,49 +2796,45 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie var ( pattern_Query_QueryVault_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"comdex", "vault", "v1beta1", "vaults", "id"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_QueryUserExtendedPairTotalData_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"comdex", "vault", "v1beta1", "user-extended-total-data", "owner"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_QueryUserExtendedPairTotalData_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"comdex", "vault", "v1beta1", "user-extended-pair-total-data", "owner"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_QueryVaultInfo_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"comdex", "vault", "v1beta1", "vaultsInfo", "id"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_QueryVaultInfoByVaultId_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"comdex", "vault", "v1beta1", "vaultsInfo-by-vault-id", "id"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_QueryVaultInfoByAppByOwner_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"comdex", "vault", "v1beta1", "vaultsInfoByOwner", "app_id", "owner"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_QueryVaultInfoOfOwnerByApp_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"comdex", "vault", "v1beta1", "vaultsInfo-of-owner-by-app", "app_id", "owner"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_QueryAllVaults_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"comdex", "vault", "v1beta1", "vaults"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_QueryAllVaultsByProduct_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"comdex", "vault", "v1beta1", "vaults-by-product", "app_id"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_QueryAllVaultsByApp_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"comdex", "vault", "v1beta1", "vaults-by-App", "app_id"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_QueryAllVaultsByAppAndExtendedPair_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"comdex", "vault", "v1beta1", "vaults-by-app-and-extended-pair", "app_id", "extended_pair_id"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_QueryVaultOfOwnerByExtendedPair_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"comdex", "vault", "v1beta1", "vault-of-owner-by-extended-pair", "product_id", "owner", "extended_pair_id"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_QueryVaultIdOfOwnerByExtendedPairAndApp_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"comdex", "vault", "v1beta1", "vault-of-owner-by-extended-pair-and-app", "app_id", "owner", "extended_pair_id"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_QueryVaultByProduct_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"comdex", "vault", "v1beta1", "extendedPairvaults-by-product", "product_id"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_QueryVaultIdsByAppInAllExtendedPairs_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"comdex", "vault", "v1beta1", "vaultIds-by-app-in-all-extendedPairs", "app_id"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_QueryAllVaultByOwner_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"comdex", "vault", "v1beta1", "vaults-by-owner", "owner"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_QueryAllVaultIdsByAnOwner_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"comdex", "vault", "v1beta1", "vaults-ids-by-an-owner", "owner"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_QueryTokenMintedAllProductsByPair_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"comdex", "vault", "v1beta1", "token-minted-by-products-extended-pair", "product_id", "extended_pair_id"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_QueryTokenMintedByAppAndExtendedPair_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"comdex", "vault", "v1beta1", "token-minted-by-App-and-extended-pair", "app_id", "extended_pair_id"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_QueryTokenMintedByProductAssetWise_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"comdex", "vault", "v1beta1", "token-minted-by-products-asset-wise", "product_id"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_QueryTokenMintedAssetWiseByApp_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"comdex", "vault", "v1beta1", "token-minted-asset-wise-by-app", "app_id"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_QueryVaultCountByProduct_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"comdex", "vault", "v1beta1", "vault-count-by-products", "product_id"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_QueryVaultCountByApp_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"comdex", "vault", "v1beta1", "vault-count-by-an-App", "app_id"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_QueryVaultCountByProductAndPair_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"comdex", "vault", "v1beta1", "vault-count-by-products-and-pair", "product_id", "extended_pair_id"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_QueryVaultCountByAppAndExtendedPair_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"comdex", "vault", "v1beta1", "vault-count-by-an-App-and-extended-pair", "app_id", "extended_pair_id"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_QueryTotalValueLockedByProductExtendedPair_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"comdex", "vault", "v1beta1", "value-locked-by-product-pair", "product_id", "extended_pair_id"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_QueryTotalValueLockedByAppExtendedPair_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"comdex", "vault", "v1beta1", "value-locked-by-App-pair", "app_id", "extended_pair_id"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_QueryExtendedPairIDByProduct_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"comdex", "vault", "v1beta1", "external-pair-by-product", "product_id"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_QueryExtendedPairIDsByApp_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"comdex", "vault", "v1beta1", "external-pair-id-by-App", "app_id"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_QueryStableVaultInfo_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"comdex", "vault", "v1beta1", "stable-vault-by-id", "stable_vault_id"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_QueryStableVaultByVaultId_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"comdex", "vault", "v1beta1", "stable-vault-by-id", "stable_vault_id"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_QueryAllStableVaults_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"comdex", "vault", "v1beta1", "stable-vault-by-product", "app_id"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_QueryStableVaultByApp_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"comdex", "vault", "v1beta1", "stable-vault-by-App", "app_id"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_QueryStableVaultByProductExtendedPair_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"comdex", "vault", "v1beta1", "stable-vault-by-product-extendedPair", "app_id", "extended_pair_id"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_QueryStableVaultByAppExtendedPair_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"comdex", "vault", "v1beta1", "stable-vault-by-App-extendedPair", "app_id", "extended_pair_id"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_QueryExtendedPairVaultMappingByAppAndExtendedPairId_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"comdex", "vault", "v1beta1", "extendedPairVault-by-product-and-ExtendedPairId", "app_id", "extended_pair_id"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_QueryExtendedPairVaultMappingByAppAndExtendedPairId_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"comdex", "vault", "v1beta1", "extendedPairVault-mapping-by-App-and-ExtendedPairId", "app_id", "extended_pair_id"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_QueryExtendedPairVaultMappingByApp_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"comdex", "vault", "v1beta1", "extendedPairVault-by-product", "app_id"}, "", runtime.AssumeColonVerbOpt(false))) - - pattern_Query_QueryExtendedPairVaultMappingByOwnerAndApp_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"comdex", "vault", "v1beta1", "extendedPairVault-by-owner-and-product", "owner", "app_id"}, "", runtime.AssumeColonVerbOpt(false))) - - pattern_Query_QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairID_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"comdex", "vault", "v1beta1", "extendedPairVault-by-owner-product-extendedPair", "owner", "app_id", "extended_pair"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_QueryExtendedPairVaultMappingByApp_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"comdex", "vault", "v1beta1", "extendedPairVault-mapping-by-App", "app_id"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_QueryTVLLockedByAppOfAllExtendedPairs_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"comdex", "vault", "v1beta1", "tvl-locked-by-app-all-extended-pairs", "app_id"}, "", runtime.AssumeColonVerbOpt(false))) @@ -3112,48 +2848,44 @@ var ( forward_Query_QueryUserExtendedPairTotalData_0 = runtime.ForwardResponseMessage - forward_Query_QueryVaultInfo_0 = runtime.ForwardResponseMessage + forward_Query_QueryVaultInfoByVaultId_0 = runtime.ForwardResponseMessage - forward_Query_QueryVaultInfoByAppByOwner_0 = runtime.ForwardResponseMessage + forward_Query_QueryVaultInfoOfOwnerByApp_0 = runtime.ForwardResponseMessage forward_Query_QueryAllVaults_0 = runtime.ForwardResponseMessage - forward_Query_QueryAllVaultsByProduct_0 = runtime.ForwardResponseMessage + forward_Query_QueryAllVaultsByApp_0 = runtime.ForwardResponseMessage forward_Query_QueryAllVaultsByAppAndExtendedPair_0 = runtime.ForwardResponseMessage - forward_Query_QueryVaultOfOwnerByExtendedPair_0 = runtime.ForwardResponseMessage + forward_Query_QueryVaultIdOfOwnerByExtendedPairAndApp_0 = runtime.ForwardResponseMessage - forward_Query_QueryVaultByProduct_0 = runtime.ForwardResponseMessage + forward_Query_QueryVaultIdsByAppInAllExtendedPairs_0 = runtime.ForwardResponseMessage - forward_Query_QueryAllVaultByOwner_0 = runtime.ForwardResponseMessage + forward_Query_QueryAllVaultIdsByAnOwner_0 = runtime.ForwardResponseMessage - forward_Query_QueryTokenMintedAllProductsByPair_0 = runtime.ForwardResponseMessage + forward_Query_QueryTokenMintedByAppAndExtendedPair_0 = runtime.ForwardResponseMessage - forward_Query_QueryTokenMintedByProductAssetWise_0 = runtime.ForwardResponseMessage + forward_Query_QueryTokenMintedAssetWiseByApp_0 = runtime.ForwardResponseMessage - forward_Query_QueryVaultCountByProduct_0 = runtime.ForwardResponseMessage + forward_Query_QueryVaultCountByApp_0 = runtime.ForwardResponseMessage - forward_Query_QueryVaultCountByProductAndPair_0 = runtime.ForwardResponseMessage + forward_Query_QueryVaultCountByAppAndExtendedPair_0 = runtime.ForwardResponseMessage - forward_Query_QueryTotalValueLockedByProductExtendedPair_0 = runtime.ForwardResponseMessage + forward_Query_QueryTotalValueLockedByAppExtendedPair_0 = runtime.ForwardResponseMessage - forward_Query_QueryExtendedPairIDByProduct_0 = runtime.ForwardResponseMessage + forward_Query_QueryExtendedPairIDsByApp_0 = runtime.ForwardResponseMessage - forward_Query_QueryStableVaultInfo_0 = runtime.ForwardResponseMessage + forward_Query_QueryStableVaultByVaultId_0 = runtime.ForwardResponseMessage - forward_Query_QueryAllStableVaults_0 = runtime.ForwardResponseMessage + forward_Query_QueryStableVaultByApp_0 = runtime.ForwardResponseMessage - forward_Query_QueryStableVaultByProductExtendedPair_0 = runtime.ForwardResponseMessage + forward_Query_QueryStableVaultByAppExtendedPair_0 = runtime.ForwardResponseMessage forward_Query_QueryExtendedPairVaultMappingByAppAndExtendedPairId_0 = runtime.ForwardResponseMessage forward_Query_QueryExtendedPairVaultMappingByApp_0 = runtime.ForwardResponseMessage - forward_Query_QueryExtendedPairVaultMappingByOwnerAndApp_0 = runtime.ForwardResponseMessage - - forward_Query_QueryExtendedPairVaultMappingByOwnerAndAppAndExtendedPairID_0 = runtime.ForwardResponseMessage - forward_Query_QueryTVLLockedByAppOfAllExtendedPairs_0 = runtime.ForwardResponseMessage forward_Query_QueryTotalTVLByApp_0 = runtime.ForwardResponseMessage diff --git a/x/vault/types/tx.pb.go b/x/vault/types/tx.pb.go index 52928d1c6..0502ff6a7 100644 --- a/x/vault/types/tx.pb.go +++ b/x/vault/types/tx.pb.go @@ -31,7 +31,7 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package type MsgCreateRequest struct { From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty" yaml:"from"` - AppMappingId uint64 `protobuf:"varint,2,opt,name=app_mapping_id,json=appMappingId,proto3" json:"app_mapping_id,omitempty" yaml:"app_mapping_id"` + AppId uint64 `protobuf:"varint,2,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty" yaml:"app_id"` ExtendedPairVaultId uint64 `protobuf:"varint,3,opt,name=extended_pair_vault_id,json=extendedPairVaultId,proto3" json:"extended_pair_vault_id,omitempty" yaml:"extended_pair_vault_id"` AmountIn github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=amount_in,json=amountIn,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount_in" yaml:"amount_in"` AmountOut github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,opt,name=amount_out,json=amountOut,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount_out" yaml:"amount_out"` @@ -108,7 +108,7 @@ var xxx_messageInfo_MsgCreateResponse proto.InternalMessageInfo type MsgDepositRequest struct { From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty" yaml:"from"` - AppMappingId uint64 `protobuf:"varint,2,opt,name=app_mapping_id,json=appMappingId,proto3" json:"app_mapping_id,omitempty" yaml:"app_mapping_id"` + AppId uint64 `protobuf:"varint,2,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty" yaml:"app_id"` ExtendedPairVaultId uint64 `protobuf:"varint,3,opt,name=extended_pair_vault_id,json=extendedPairVaultId,proto3" json:"extended_pair_vault_id,omitempty" yaml:"extended_pair_vault_id"` UserVaultId string `protobuf:"bytes,4,opt,name=user_vault_id,json=userVaultId,proto3" json:"user_vault_id,omitempty" yaml:"user_vault_id"` Amount github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount" yaml:"amount"` @@ -185,7 +185,7 @@ var xxx_messageInfo_MsgDepositResponse proto.InternalMessageInfo type MsgWithdrawRequest struct { From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty" yaml:"from"` - AppMappingId uint64 `protobuf:"varint,2,opt,name=app_mapping_id,json=appMappingId,proto3" json:"app_mapping_id,omitempty" yaml:"app_mapping_id"` + AppId uint64 `protobuf:"varint,2,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty" yaml:"app_id"` ExtendedPairVaultId uint64 `protobuf:"varint,3,opt,name=extended_pair_vault_id,json=extendedPairVaultId,proto3" json:"extended_pair_vault_id,omitempty" yaml:"extended_pair_vault_id"` UserVaultId string `protobuf:"bytes,4,opt,name=user_vault_id,json=userVaultId,proto3" json:"user_vault_id,omitempty" yaml:"user_vault_id"` Amount github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount" yaml:"amount"` @@ -262,7 +262,7 @@ var xxx_messageInfo_MsgWithdrawResponse proto.InternalMessageInfo type MsgDrawRequest struct { From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty" yaml:"from"` - AppMappingId uint64 `protobuf:"varint,2,opt,name=app_mapping_id,json=appMappingId,proto3" json:"app_mapping_id,omitempty" yaml:"app_mapping_id"` + AppId uint64 `protobuf:"varint,2,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty" yaml:"app_id"` ExtendedPairVaultId uint64 `protobuf:"varint,3,opt,name=extended_pair_vault_id,json=extendedPairVaultId,proto3" json:"extended_pair_vault_id,omitempty" yaml:"extended_pair_vault_id"` UserVaultId string `protobuf:"bytes,4,opt,name=user_vault_id,json=userVaultId,proto3" json:"user_vault_id,omitempty" yaml:"user_vault_id"` Amount github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount" yaml:"amount"` @@ -339,7 +339,7 @@ var xxx_messageInfo_MsgDrawResponse proto.InternalMessageInfo type MsgRepayRequest struct { From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty" yaml:"from"` - AppMappingId uint64 `protobuf:"varint,2,opt,name=app_mapping_id,json=appMappingId,proto3" json:"app_mapping_id,omitempty" yaml:"app_mapping_id"` + AppId uint64 `protobuf:"varint,2,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty" yaml:"app_id"` ExtendedPairVaultId uint64 `protobuf:"varint,3,opt,name=extended_pair_vault_id,json=extendedPairVaultId,proto3" json:"extended_pair_vault_id,omitempty" yaml:"extended_pair_vault_id"` UserVaultId string `protobuf:"bytes,4,opt,name=user_vault_id,json=userVaultId,proto3" json:"user_vault_id,omitempty" yaml:"user_vault_id"` Amount github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount" yaml:"amount"` @@ -416,7 +416,7 @@ var xxx_messageInfo_MsgRepayResponse proto.InternalMessageInfo type MsgCloseRequest struct { From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty" yaml:"from"` - AppMappingId uint64 `protobuf:"varint,2,opt,name=app_mapping_id,json=appMappingId,proto3" json:"app_mapping_id,omitempty" yaml:"app_mapping_id"` + AppId uint64 `protobuf:"varint,2,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty" yaml:"app_id"` ExtendedPairVaultId uint64 `protobuf:"varint,3,opt,name=extended_pair_vault_id,json=extendedPairVaultId,proto3" json:"extended_pair_vault_id,omitempty" yaml:"extended_pair_vault_id"` UserVaultId string `protobuf:"bytes,4,opt,name=user_vault_id,json=userVaultId,proto3" json:"user_vault_id,omitempty" yaml:"user_vault_id"` } @@ -492,7 +492,7 @@ var xxx_messageInfo_MsgCloseResponse proto.InternalMessageInfo type MsgCreateStableMintRequest struct { From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty" yaml:"from"` - AppMappingId uint64 `protobuf:"varint,2,opt,name=app_mapping_id,json=appMappingId,proto3" json:"app_mapping_id,omitempty" yaml:"app_mapping_id"` + AppId uint64 `protobuf:"varint,2,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty" yaml:"app_id"` ExtendedPairVaultId uint64 `protobuf:"varint,3,opt,name=extended_pair_vault_id,json=extendedPairVaultId,proto3" json:"extended_pair_vault_id,omitempty" yaml:"extended_pair_vault_id"` Amount github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount" yaml:"Amount"` } @@ -568,7 +568,7 @@ var xxx_messageInfo_MsgCreateStableMintResponse proto.InternalMessageInfo type MsgDepositStableMintRequest struct { From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty" yaml:"from"` - AppMappingId uint64 `protobuf:"varint,2,opt,name=app_mapping_id,json=appMappingId,proto3" json:"app_mapping_id,omitempty" yaml:"app_mapping_id"` + AppId uint64 `protobuf:"varint,2,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty" yaml:"app_id"` ExtendedPairVaultId uint64 `protobuf:"varint,3,opt,name=extended_pair_vault_id,json=extendedPairVaultId,proto3" json:"extended_pair_vault_id,omitempty" yaml:"extended_pair_vault_id"` Amount github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount" yaml:"amount"` StableVaultId string `protobuf:"bytes,5,opt,name=stable_vault_id,json=stableVaultId,proto3" json:"stable_vault_id,omitempty" yaml:"stable_vault_id"` @@ -645,7 +645,7 @@ var xxx_messageInfo_MsgDepositStableMintResponse proto.InternalMessageInfo type MsgWithdrawStableMintRequest struct { From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty" yaml:"from"` - AppMappingId uint64 `protobuf:"varint,2,opt,name=app_mapping_id,json=appMappingId,proto3" json:"app_mapping_id,omitempty" yaml:"app_mapping_id"` + AppId uint64 `protobuf:"varint,2,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty" yaml:"app_id"` ExtendedPairVaultId uint64 `protobuf:"varint,3,opt,name=extended_pair_vault_id,json=extendedPairVaultId,proto3" json:"extended_pair_vault_id,omitempty" yaml:"extended_pair_vault_id"` Amount github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount" yaml:"amount"` StableVaultId string `protobuf:"bytes,5,opt,name=stable_vault_id,json=stableVaultId,proto3" json:"stable_vault_id,omitempty" yaml:"stable_vault_id"` @@ -744,59 +744,58 @@ func init() { func init() { proto.RegisterFile("comdex/vault/v1beta1/tx.proto", fileDescriptor_4b7a3c3b9b1a607e) } var fileDescriptor_4b7a3c3b9b1a607e = []byte{ - // 819 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x58, 0x4d, 0x6f, 0xd3, 0x48, - 0x18, 0x4e, 0xdc, 0x6c, 0x3f, 0xde, 0x6e, 0xbf, 0xa6, 0x69, 0x95, 0xf5, 0x6e, 0xec, 0xae, 0x77, - 0xb7, 0xdb, 0x3d, 0x34, 0xde, 0xb4, 0x37, 0x84, 0x54, 0x91, 0x72, 0xc9, 0x21, 0x02, 0x8c, 0xd4, - 0x0a, 0x84, 0x14, 0x39, 0xf1, 0x34, 0xb5, 0x48, 0x3c, 0x26, 0x1e, 0x97, 0x16, 0x09, 0x89, 0x3f, - 0x80, 0xc4, 0x85, 0xff, 0xc0, 0x1d, 0x7e, 0x44, 0x8f, 0x3d, 0x22, 0x0e, 0x16, 0xa4, 0x02, 0xc1, - 0x35, 0x27, 0xb8, 0xa1, 0xcc, 0x4c, 0x5a, 0x3b, 0x4d, 0x9a, 0x46, 0xa8, 0x1c, 0xaa, 0x9c, 0x12, - 0xbf, 0xdf, 0x7e, 0x9e, 0x77, 0xe6, 0x9d, 0x31, 0xa4, 0xcb, 0xa4, 0x66, 0xe1, 0x7d, 0x7d, 0xcf, - 0xf4, 0xab, 0x54, 0xdf, 0xcb, 0x96, 0x30, 0x35, 0xb3, 0x3a, 0xdd, 0xcf, 0xb8, 0x75, 0x42, 0x09, - 0x4a, 0x72, 0x75, 0x86, 0xa9, 0x33, 0x42, 0x2d, 0x27, 0x2b, 0xa4, 0x42, 0x98, 0x81, 0xde, 0xfa, - 0xc7, 0x6d, 0xb5, 0x97, 0x23, 0x30, 0x5b, 0xf0, 0x2a, 0x9b, 0x75, 0x6c, 0x52, 0x6c, 0xe0, 0x47, - 0x3e, 0xf6, 0x28, 0xfa, 0x0b, 0x12, 0x3b, 0x75, 0x52, 0x4b, 0xc5, 0x97, 0xe2, 0x2b, 0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3c, 0xcc, 0x85, 0x68, 0xf1, 0x5c, 0xe2, 0x78, 0x58, 0xfb, 0x2c, 0x31, 0xe9, - 0x4d, 0xec, 0x12, 0xcf, 0xa6, 0x57, 0x83, 0xad, 0xeb, 0x30, 0xe5, 0x7b, 0x38, 0x14, 0x8e, 0x33, - 0x96, 0x6a, 0x06, 0x6a, 0x92, 0x87, 0x8b, 0xa8, 0x35, 0x63, 0xb2, 0xf5, 0xdc, 0xf6, 0xde, 0x86, - 0x51, 0x8e, 0x99, 0xa0, 0x61, 0x63, 0x60, 0x1a, 0xa6, 0xc2, 0x34, 0x68, 0x86, 0x08, 0xa7, 0x25, - 0x01, 0x85, 0x91, 0x16, 0x04, 0x7c, 0x91, 0x98, 0x78, 0xdb, 0xa6, 0xbb, 0x56, 0xdd, 0x7c, 0x3c, - 0x64, 0xe0, 0x12, 0x19, 0x58, 0x80, 0xf9, 0x08, 0xd4, 0x82, 0x82, 0x8f, 0x12, 0x4c, 0xb7, 0x98, - 0x19, 0xc2, 0x7f, 0xb9, 0xf0, 0xcf, 0xc1, 0xcc, 0x09, 0xcc, 0x02, 0xfa, 0x4f, 0x12, 0x93, 0x19, - 0xd8, 0x35, 0x0f, 0x86, 0xd8, 0x5f, 0x22, 0xf6, 0x88, 0xcd, 0x64, 0x81, 0xb3, 0x00, 0xff, 0x39, - 0x07, 0x7f, 0xb3, 0x4a, 0x3c, 0x3c, 0x04, 0xdf, 0x12, 0x18, 0x09, 0x38, 0x04, 0x46, 0xaf, 0x25, - 0x90, 0x4f, 0xa6, 0xe6, 0x5d, 0x6a, 0x96, 0xaa, 0xb8, 0x60, 0x3b, 0x57, 0x64, 0x50, 0x9e, 0x76, - 0x5b, 0xe2, 0xc7, 0xba, 0xed, 0x46, 0x47, 0xb7, 0xa5, 0xe1, 0xf7, 0xae, 0xa0, 0x09, 0x50, 0xbf, - 0x4a, 0x4c, 0x2f, 0x46, 0xe1, 0x10, 0xd5, 0x8b, 0xad, 0x61, 0x94, 0x83, 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e, 0x39, 0x9b, 0x7d, 0x6d, 0x10, 0x17, 0x91, 0xfe, 0x59, 0x1c, 0x16, 0xba, 0xae, 0x2a, 0xb4, - 0xd6, 0xb7, 0x9b, 0xce, 0x56, 0xb0, 0x3e, 0x90, 0x0f, 0x2f, 0x21, 0x77, 0xe7, 0xf0, 0x83, 0x12, - 0x7b, 0xd5, 0x50, 0x62, 0x87, 0x0d, 0x25, 0x7e, 0xd4, 0x50, 0xe2, 0xef, 0x1b, 0x4a, 0xfc, 0xc5, - 0xb1, 0x12, 0x3b, 0x3a, 0x56, 0x62, 0x6f, 0x8f, 0x95, 0xd8, 0x7d, 0x3d, 0xb2, 0xfd, 0xb4, 0x12, - 0xac, 0x92, 0x9d, 0x1d, 0xbb, 0x6c, 0x9b, 0x55, 0xf1, 0xac, 0xb7, 0x3f, 0xcd, 0xb0, 0xbd, 0xa8, - 0x34, 0xca, 0x3e, 0xb5, 0xac, 0x7f, 0x0f, 0x00, 0x00, 0xff, 0xff, 0xe5, 0x4e, 0x5f, 0x52, 0xb7, - 0x11, 0x00, 0x00, + // 806 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x98, 0xcd, 0x6e, 0xd3, 0x4a, + 0x14, 0x80, 0x63, 0x37, 0xfd, 0x3b, 0x55, 0x6e, 0x9b, 0x69, 0x5a, 0x45, 0xbe, 0x37, 0x76, 0xaf, + 0x81, 0x12, 0x16, 0x8d, 0x49, 0xbb, 0x43, 0x48, 0x88, 0x94, 0x4d, 0x16, 0x15, 0x60, 0xa4, 0x56, + 0x20, 0xa4, 0xc8, 0x89, 0xa7, 0xa9, 0x45, 0x92, 0x31, 0xf1, 0xb8, 0xb4, 0x48, 0x48, 0x3c, 0x02, + 0x0f, 0xc0, 0x03, 0xf0, 0x00, 0x3c, 0x44, 0x57, 0x50, 0x58, 0x21, 0x16, 0x16, 0x4d, 0xdf, 0x20, + 0x0b, 0x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53, 0xb9, 0xf1, 0x0b, 0x9a, 0x22, 0xc6, 0x26, 0x4c, 0x8a, 0xc1, 0x8f, + 0xae, 0xf6, 0x4f, 0x2c, 0xe4, 0xfb, 0xda, 0x00, 0x2d, 0xe1, 0xf7, 0x31, 0x4c, 0xb5, 0x67, 0x1d, + 0xea, 0x6f, 0x12, 0xbe, 0x5c, 0x28, 0xcb, 0x83, 0xd4, 0x3a, 0x5c, 0xb3, 0xc9, 0x71, 0x8e, 0xeb, + 0xf0, 0x44, 0x3d, 0xc7, 0x75, 0xc7, 0x00, 0x42, 0x2f, 0xd9, 0x75, 0xb3, 0xfb, 0x84, 0x45, 0x37, + 0x07, 0xb4, 0xc4, 0x99, 0x6d, 0xae, 0x64, 0x87, 0xb0, 0x10, 0xb1, 0x5f, 0x41, 0xa2, 0xd7, 0xd1, + 0x82, 0xb2, 0x83, 0xfa, 0xe5, 0x6c, 0xf4, 0xd5, 0x61, 0x4c, 0x44, 0xf8, 0xd7, 0x12, 0x2c, 0xf4, + 0xdc, 0x55, 0x68, 0x75, 0x60, 0x37, 0x9d, 0xcd, 0x60, 0x6d, 0x28, 0x1b, 0x9e, 0x42, 0xee, 0xe1, + 0xc1, 0x91, 0x1a, 0x79, 0xd7, 0x50, 0x23, 0x07, 0x0d, 0x55, 0x3a, 0x6c, 0xa8, 0xd2, 0xb7, 0x86, + 0x2a, 0xbd, 0x39, 0x56, 0x23, 0x87, 0xc7, 0x6a, 0xe4, 0xcb, 0xb1, 0x1a, 0x79, 0x62, 0x74, 0x1c, + 0x3f, 0xad, 0x00, 0x2b, 0x64, 0x7b, 0xdb, 0x29, 0x39, 0x56, 0x45, 0xfc, 0x36, 0xda, 0xef, 0x32, + 0xd8, 0x59, 0x54, 0x9c, 0x60, 0xef, 0x26, 0xd6, 0x7e, 0x06, 0x00, 0x00, 0xff, 0xff, 0x8b, 0x2e, + 0x20, 0x20, 0xe8, 0x10, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1212,8 +1211,8 @@ func (m *MsgCreateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x18 } - if m.AppMappingId != 0 { - i = encodeVarintTx(dAtA, i, uint64(m.AppMappingId)) + if m.AppId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.AppId)) i-- dAtA[i] = 0x10 } @@ -1292,8 +1291,8 @@ func (m *MsgDepositRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x18 } - if m.AppMappingId != 0 { - i = encodeVarintTx(dAtA, i, uint64(m.AppMappingId)) + if m.AppId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.AppId)) i-- dAtA[i] = 0x10 } @@ -1372,8 +1371,8 @@ func (m *MsgWithdrawRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x18 } - if m.AppMappingId != 0 { - i = encodeVarintTx(dAtA, i, uint64(m.AppMappingId)) + if m.AppId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.AppId)) i-- dAtA[i] = 0x10 } @@ -1452,8 +1451,8 @@ func (m *MsgDrawRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x18 } - if m.AppMappingId != 0 { - i = encodeVarintTx(dAtA, i, uint64(m.AppMappingId)) + if m.AppId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.AppId)) i-- dAtA[i] = 0x10 } @@ -1532,8 +1531,8 @@ func (m *MsgRepayRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x18 } - if m.AppMappingId != 0 { - i = encodeVarintTx(dAtA, i, uint64(m.AppMappingId)) + if m.AppId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.AppId)) i-- dAtA[i] = 0x10 } @@ -1602,8 +1601,8 @@ func (m *MsgCloseRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x18 } - if m.AppMappingId != 0 { - i = encodeVarintTx(dAtA, i, uint64(m.AppMappingId)) + if m.AppId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.AppId)) i-- dAtA[i] = 0x10 } @@ -1675,8 +1674,8 @@ func (m *MsgCreateStableMintRequest) MarshalToSizedBuffer(dAtA []byte) (int, err i-- dAtA[i] = 0x18 } - if m.AppMappingId != 0 { - i = encodeVarintTx(dAtA, i, uint64(m.AppMappingId)) + if m.AppId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.AppId)) i-- dAtA[i] = 0x10 } @@ -1755,8 +1754,8 @@ func (m *MsgDepositStableMintRequest) MarshalToSizedBuffer(dAtA []byte) (int, er i-- dAtA[i] = 0x18 } - if m.AppMappingId != 0 { - i = encodeVarintTx(dAtA, i, uint64(m.AppMappingId)) + if m.AppId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.AppId)) i-- dAtA[i] = 0x10 } @@ -1835,8 +1834,8 @@ func (m *MsgWithdrawStableMintRequest) MarshalToSizedBuffer(dAtA []byte) (int, e i-- dAtA[i] = 0x18 } - if m.AppMappingId != 0 { - i = encodeVarintTx(dAtA, i, uint64(m.AppMappingId)) + if m.AppId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.AppId)) i-- dAtA[i] = 0x10 } @@ -1894,8 +1893,8 @@ func (m *MsgCreateRequest) Size() (n int) { if l > 0 { n += 1 + l + sovTx(uint64(l)) } - if m.AppMappingId != 0 { - n += 1 + sovTx(uint64(m.AppMappingId)) + if m.AppId != 0 { + n += 1 + sovTx(uint64(m.AppId)) } if m.ExtendedPairVaultId != 0 { n += 1 + sovTx(uint64(m.ExtendedPairVaultId)) @@ -1926,8 +1925,8 @@ func (m *MsgDepositRequest) Size() (n int) { if l > 0 { n += 1 + l + sovTx(uint64(l)) } - if m.AppMappingId != 0 { - n += 1 + sovTx(uint64(m.AppMappingId)) + if m.AppId != 0 { + n += 1 + sovTx(uint64(m.AppId)) } if m.ExtendedPairVaultId != 0 { n += 1 + sovTx(uint64(m.ExtendedPairVaultId)) @@ -1960,8 +1959,8 @@ func (m *MsgWithdrawRequest) Size() (n int) { if l > 0 { n += 1 + l + sovTx(uint64(l)) } - if m.AppMappingId != 0 { - n += 1 + sovTx(uint64(m.AppMappingId)) + if m.AppId != 0 { + n += 1 + sovTx(uint64(m.AppId)) } if m.ExtendedPairVaultId != 0 { n += 1 + sovTx(uint64(m.ExtendedPairVaultId)) @@ -1994,8 +1993,8 @@ func (m *MsgDrawRequest) Size() (n int) { if l > 0 { n += 1 + l + sovTx(uint64(l)) } - if m.AppMappingId != 0 { - n += 1 + sovTx(uint64(m.AppMappingId)) + if m.AppId != 0 { + n += 1 + sovTx(uint64(m.AppId)) } if m.ExtendedPairVaultId != 0 { n += 1 + sovTx(uint64(m.ExtendedPairVaultId)) @@ -2028,8 +2027,8 @@ func (m *MsgRepayRequest) Size() (n int) { if l > 0 { n += 1 + l + sovTx(uint64(l)) } - if m.AppMappingId != 0 { - n += 1 + sovTx(uint64(m.AppMappingId)) + if m.AppId != 0 { + n += 1 + sovTx(uint64(m.AppId)) } if m.ExtendedPairVaultId != 0 { n += 1 + sovTx(uint64(m.ExtendedPairVaultId)) @@ -2062,8 +2061,8 @@ func (m *MsgCloseRequest) Size() (n int) { if l > 0 { n += 1 + l + sovTx(uint64(l)) } - if m.AppMappingId != 0 { - n += 1 + sovTx(uint64(m.AppMappingId)) + if m.AppId != 0 { + n += 1 + sovTx(uint64(m.AppId)) } if m.ExtendedPairVaultId != 0 { n += 1 + sovTx(uint64(m.ExtendedPairVaultId)) @@ -2094,8 +2093,8 @@ func (m *MsgCreateStableMintRequest) Size() (n int) { if l > 0 { n += 1 + l + sovTx(uint64(l)) } - if m.AppMappingId != 0 { - n += 1 + sovTx(uint64(m.AppMappingId)) + if m.AppId != 0 { + n += 1 + sovTx(uint64(m.AppId)) } if m.ExtendedPairVaultId != 0 { n += 1 + sovTx(uint64(m.ExtendedPairVaultId)) @@ -2124,8 +2123,8 @@ func (m *MsgDepositStableMintRequest) Size() (n int) { if l > 0 { n += 1 + l + sovTx(uint64(l)) } - if m.AppMappingId != 0 { - n += 1 + sovTx(uint64(m.AppMappingId)) + if m.AppId != 0 { + n += 1 + sovTx(uint64(m.AppId)) } if m.ExtendedPairVaultId != 0 { n += 1 + sovTx(uint64(m.ExtendedPairVaultId)) @@ -2158,8 +2157,8 @@ func (m *MsgWithdrawStableMintRequest) Size() (n int) { if l > 0 { n += 1 + l + sovTx(uint64(l)) } - if m.AppMappingId != 0 { - n += 1 + sovTx(uint64(m.AppMappingId)) + if m.AppId != 0 { + n += 1 + sovTx(uint64(m.AppId)) } if m.ExtendedPairVaultId != 0 { n += 1 + sovTx(uint64(m.ExtendedPairVaultId)) @@ -2251,9 +2250,9 @@ func (m *MsgCreateRequest) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AppMappingId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AppId", wireType) } - m.AppMappingId = 0 + m.AppId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -2263,7 +2262,7 @@ func (m *MsgCreateRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.AppMappingId |= uint64(b&0x7F) << shift + m.AppId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2489,9 +2488,9 @@ func (m *MsgDepositRequest) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AppMappingId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AppId", wireType) } - m.AppMappingId = 0 + m.AppId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -2501,7 +2500,7 @@ func (m *MsgDepositRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.AppMappingId |= uint64(b&0x7F) << shift + m.AppId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2725,9 +2724,9 @@ func (m *MsgWithdrawRequest) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AppMappingId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AppId", wireType) } - m.AppMappingId = 0 + m.AppId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -2737,7 +2736,7 @@ func (m *MsgWithdrawRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.AppMappingId |= uint64(b&0x7F) << shift + m.AppId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2961,9 +2960,9 @@ func (m *MsgDrawRequest) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AppMappingId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AppId", wireType) } - m.AppMappingId = 0 + m.AppId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -2973,7 +2972,7 @@ func (m *MsgDrawRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.AppMappingId |= uint64(b&0x7F) << shift + m.AppId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3197,9 +3196,9 @@ func (m *MsgRepayRequest) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AppMappingId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AppId", wireType) } - m.AppMappingId = 0 + m.AppId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -3209,7 +3208,7 @@ func (m *MsgRepayRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.AppMappingId |= uint64(b&0x7F) << shift + m.AppId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3433,9 +3432,9 @@ func (m *MsgCloseRequest) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AppMappingId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AppId", wireType) } - m.AppMappingId = 0 + m.AppId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -3445,7 +3444,7 @@ func (m *MsgCloseRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.AppMappingId |= uint64(b&0x7F) << shift + m.AppId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3635,9 +3634,9 @@ func (m *MsgCreateStableMintRequest) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AppMappingId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AppId", wireType) } - m.AppMappingId = 0 + m.AppId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -3647,7 +3646,7 @@ func (m *MsgCreateStableMintRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.AppMappingId |= uint64(b&0x7F) << shift + m.AppId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3839,9 +3838,9 @@ func (m *MsgDepositStableMintRequest) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AppMappingId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AppId", wireType) } - m.AppMappingId = 0 + m.AppId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -3851,7 +3850,7 @@ func (m *MsgDepositStableMintRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.AppMappingId |= uint64(b&0x7F) << shift + m.AppId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4075,9 +4074,9 @@ func (m *MsgWithdrawStableMintRequest) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AppMappingId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AppId", wireType) } - m.AppMappingId = 0 + m.AppId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -4087,7 +4086,7 @@ func (m *MsgWithdrawStableMintRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.AppMappingId |= uint64(b&0x7F) << shift + m.AppId |= uint64(b&0x7F) << shift if b < 0x80 { break } From 7acc9f85af9aac9456c3b645a1a1345ba281ea21 Mon Sep 17 00:00:00 2001 From: Chandragupta Singh Date: Wed, 29 Jun 2022 03:43:13 +0530 Subject: [PATCH 4/5] tokenmint naming changed --- proto/comdex/tokenmint/v1beta1/mint.proto | 6 +- proto/comdex/tokenmint/v1beta1/query.proto | 24 +- proto/comdex/tokenmint/v1beta1/tx.proto | 4 +- x/locker/keeper/locker_test.go | 6 +- x/tokenmint/client/cli/query.go | 30 +- x/tokenmint/keeper/mint.go | 2 +- x/tokenmint/keeper/msg_server.go | 6 +- x/tokenmint/keeper/query_server.go | 12 +- x/tokenmint/types/mint.pb.go | 76 ++-- x/tokenmint/types/msg.go | 4 +- x/tokenmint/types/query.pb.go | 446 ++++++++++----------- x/tokenmint/types/query.pb.gw.go | 102 ++--- x/tokenmint/types/tx.pb.go | 53 ++- 13 files changed, 379 insertions(+), 392 deletions(-) diff --git a/proto/comdex/tokenmint/v1beta1/mint.proto b/proto/comdex/tokenmint/v1beta1/mint.proto index 43806da2f..5c02fc511 100644 --- a/proto/comdex/tokenmint/v1beta1/mint.proto +++ b/proto/comdex/tokenmint/v1beta1/mint.proto @@ -11,9 +11,9 @@ option (gogoproto.goproto_getters_all) = false; //app_vault_type_id will be the key for the KVStore for this value. message TokenMint{ - uint64 app_mapping_id = 1 - [(gogoproto.customname) = "AppMappingId", - (gogoproto.moretags) = "yaml:\"app_mapping_id\"" ]; + uint64 app_id = 1 + [(gogoproto.customname) = "AppId", + (gogoproto.moretags) = "yaml:\"app_id\"" ]; repeated MintedTokens minted_tokens= 2 [ (gogoproto.moretags) = "yaml:\"minted_tokens\"" ]; } diff --git a/proto/comdex/tokenmint/v1beta1/query.proto b/proto/comdex/tokenmint/v1beta1/query.proto index 08c81b9da..af869c27a 100644 --- a/proto/comdex/tokenmint/v1beta1/query.proto +++ b/proto/comdex/tokenmint/v1beta1/query.proto @@ -11,12 +11,12 @@ option (gogoproto.equal_all) = false; option (gogoproto.goproto_getters_all) = false; -message QueryAllTokenMintedForAllProductsRequest { +message QueryAllTokenMintedForAllAppsRequest { cosmos.base.query.v1beta1.PageRequest pagination = 1 [ (gogoproto.moretags) = "yaml:\"pagination\"" ]; } -message QueryAllTokenMintedForAllProductsResponse { +message QueryAllTokenMintedForAllAppsResponse { repeated TokenMint tokenMint = 1 [ (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"tokenMint\"" @@ -25,13 +25,13 @@ message QueryAllTokenMintedForAllProductsResponse { [ (gogoproto.moretags) = "yaml:\"pagination\"" ]; } -message QueryTokenMintedByProductRequest { +message QueryTokenMintedByAppRequest { uint64 app_id = 1 [ (gogoproto.moretags) = "yaml:\"app_id\"" ]; cosmos.base.query.v1beta1.PageRequest pagination = 2 [ (gogoproto.moretags) = "yaml:\"pagination\"" ]; } -message QueryTokenMintedByProductResponse { +message QueryTokenMintedByAppResponse { TokenMint tokenMint = 1 [ (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"tokenMint\"" @@ -40,14 +40,14 @@ message QueryTokenMintedByProductResponse { [ (gogoproto.moretags) = "yaml:\"pagination\"" ]; } -message QueryTokenMintedByProductAndAssetRequest { +message QueryTokenMintedByAppAndAssetRequest { uint64 app_id = 1 [ (gogoproto.moretags) = "yaml:\"app_id\"" ]; uint64 asset_id = 2 [ (gogoproto.moretags) = "yaml:\"asset_id\"" ]; cosmos.base.query.v1beta1.PageRequest pagination = 3 [ (gogoproto.moretags) = "yaml:\"pagination\"" ]; } -message QueryTokenMintedByProductAndAssetResponse { +message QueryTokenMintedByAppAndAssetResponse { MintedTokens mintedTokens = 1 [ (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"mintedTokens\"" @@ -60,15 +60,15 @@ message QueryTokenMintedByProductAndAssetResponse { service Query { - rpc QueryAllTokenMintedForAllProducts(QueryAllTokenMintedForAllProductsRequest) returns (QueryAllTokenMintedForAllProductsResponse) { - option (google.api.http).get = "/comdex/tokenmint/v1beta1/total-token-minted-all-products"; + rpc QueryAllTokenMintedForAllApps(QueryAllTokenMintedForAllAppsRequest) returns (QueryAllTokenMintedForAllAppsResponse) { + option (google.api.http).get = "/comdex/tokenmint/v1beta1/total-token-minted-all-apps"; } - rpc QueryTokenMintedByProduct(QueryTokenMintedByProductRequest) returns (QueryTokenMintedByProductResponse) { - option (google.api.http).get = "/comdex/tokenmint/v1beta1/token-minted-by-product/{app_id}"; + rpc QueryTokenMintedByApp(QueryTokenMintedByAppRequest) returns (QueryTokenMintedByAppResponse) { + option (google.api.http).get = "/comdex/tokenmint/v1beta1/token-minted-by-app/{app_id}"; } - rpc QueryTokenMintedByProductAndAsset(QueryTokenMintedByProductAndAssetRequest) returns (QueryTokenMintedByProductAndAssetResponse) { - option (google.api.http).get = "/comdex/tokenmint/v1beta1/token-minted-by-product-asset/{app_id}/{asset_id}"; + rpc QueryTokenMintedByAppAndAsset(QueryTokenMintedByAppAndAssetRequest) returns (QueryTokenMintedByAppAndAssetResponse) { + option (google.api.http).get = "/comdex/tokenmint/v1beta1/token-minted-by-app-and-asset/{app_id}/{asset_id}"; } } diff --git a/proto/comdex/tokenmint/v1beta1/tx.proto b/proto/comdex/tokenmint/v1beta1/tx.proto index 77cc9dfd2..5b65848cd 100644 --- a/proto/comdex/tokenmint/v1beta1/tx.proto +++ b/proto/comdex/tokenmint/v1beta1/tx.proto @@ -14,8 +14,8 @@ service Msg { //Will become governance proposal- will trigger token minting & sending message MsgMintNewTokensRequest { string from = 1 [ (gogoproto.moretags) = "yaml:\"from\"" ]; - uint64 app_mapping_id = 2 [(gogoproto.moretags) = "yaml:\"app_mapping_id\"", - (gogoproto.customname) = "AppMappingId"]; + uint64 app_id = 2 [(gogoproto.moretags) = "yaml:\"app_id\"", + (gogoproto.customname) = "AppId"]; uint64 asset_id = 3 [ (gogoproto.moretags) = "yaml:\"asset_id\"" ]; diff --git a/x/locker/keeper/locker_test.go b/x/locker/keeper/locker_test.go index f2421ee10..c50f70fb6 100644 --- a/x/locker/keeper/locker_test.go +++ b/x/locker/keeper/locker_test.go @@ -27,13 +27,13 @@ func (s *KeeperTestSuite) AddAppAsset() { {Name: "CMDX", Denom: "ucmdx", Decimals: 1000000, - IsOnchain: true}, {Name: "CMST", + IsOnChain: true}, {Name: "CMST", Denom: "ucmst", Decimals: 1000000, - IsOnchain: true}, {Name: "HARBOR", + IsOnChain: true}, {Name: "HARBOR", Denom: "uharbor", Decimals: 1000000, - IsOnchain: true}, + IsOnChain: true}, } err = assetKeeper.AddAssetRecords(*ctx, msg2...) s.Require().NoError(err) diff --git a/x/tokenmint/client/cli/query.go b/x/tokenmint/client/cli/query.go index 5e07b6527..729bd21ab 100644 --- a/x/tokenmint/client/cli/query.go +++ b/x/tokenmint/client/cli/query.go @@ -24,9 +24,9 @@ func GetQueryCmd() *cobra.Command { } cmd.AddCommand( - QueryAllTokenMintedForAllProducts(), - QueryTokenMintedByProduct(), - QueryTokenMintedByProductAndAsset(), + QueryAllTokenMintedForAllApps(), + QueryTokenMintedByApp(), + QueryTokenMintedByAppAndAsset(), ) // this line is used by starport scaffolding # 1 @@ -34,10 +34,10 @@ func GetQueryCmd() *cobra.Command { } // QueryAllTokenMintedForAllProducts Queries the total token minted for all the apps on comdex. -func QueryAllTokenMintedForAllProducts() *cobra.Command { +func QueryAllTokenMintedForAllApps() *cobra.Command { cmd := &cobra.Command{ - Use: "total-token-minted-all-products", - Short: "Token minted tokens data", + Use: "total-token-minted-all-apps", + Short: "Token minted by all apps", Args: cobra.ExactArgs(0), RunE: func(cmd *cobra.Command, args []string) error { pagination, err := client.ReadPageRequest(cmd.Flags()) @@ -52,7 +52,7 @@ func QueryAllTokenMintedForAllProducts() *cobra.Command { queryClient := types.NewQueryClient(ctx) - res, err := queryClient.QueryAllTokenMintedForAllProducts(cmd.Context(), &types.QueryAllTokenMintedForAllProductsRequest{ + res, err := queryClient.QueryAllTokenMintedForAllApps(cmd.Context(), &types.QueryAllTokenMintedForAllAppsRequest{ Pagination: pagination, }) @@ -68,10 +68,10 @@ func QueryAllTokenMintedForAllProducts() *cobra.Command { } // QueryTokenMintedByProduct queries token minted per application/product. -func QueryTokenMintedByProduct() *cobra.Command { +func QueryTokenMintedByApp() *cobra.Command { cmd := &cobra.Command{ - Use: "token-minted-by-product [app_id]", - Short: "Token minted by product", + Use: "token-minted-by-app [app_id]", + Short: "Token minted by app", Args: cobra.ExactArgs(1), RunE: func(cmd *cobra.Command, args []string) error { pagination, err := client.ReadPageRequest(cmd.Flags()) @@ -90,7 +90,7 @@ func QueryTokenMintedByProduct() *cobra.Command { queryClient := types.NewQueryClient(ctx) - res, err := queryClient.QueryTokenMintedByProduct(cmd.Context(), &types.QueryTokenMintedByProductRequest{ + res, err := queryClient.QueryTokenMintedByApp(cmd.Context(), &types.QueryTokenMintedByAppRequest{ AppId: appID, Pagination: pagination, }) @@ -107,10 +107,10 @@ func QueryTokenMintedByProduct() *cobra.Command { } // QueryTokenMintedByProductAndAsset queries token minted for an application/product and asset. -func QueryTokenMintedByProductAndAsset() *cobra.Command { +func QueryTokenMintedByAppAndAsset() *cobra.Command { cmd := &cobra.Command{ - Use: "token-minted-by-product-asset [app_id] [asset_id]", - Short: "Token minted by product and asset data", + Use: "token-minted-by-app-and-asset [app_id] [asset_id]", + Short: "Token minted by app and asset data", Args: cobra.ExactArgs(2), RunE: func(cmd *cobra.Command, args []string) error { pagination, err := client.ReadPageRequest(cmd.Flags()) @@ -133,7 +133,7 @@ func QueryTokenMintedByProductAndAsset() *cobra.Command { queryClient := types.NewQueryClient(ctx) - res, err := queryClient.QueryTokenMintedByProductAndAsset(cmd.Context(), &types.QueryTokenMintedByProductAndAssetRequest{ + res, err := queryClient.QueryTokenMintedByAppAndAsset(cmd.Context(), &types.QueryTokenMintedByAppAndAssetRequest{ AppId: appID, AssetId: assetID, Pagination: pagination, diff --git a/x/tokenmint/keeper/mint.go b/x/tokenmint/keeper/mint.go index 3f1df0a82..2a448aa2a 100644 --- a/x/tokenmint/keeper/mint.go +++ b/x/tokenmint/keeper/mint.go @@ -9,7 +9,7 @@ import ( func (k *Keeper) SetTokenMint(ctx sdk.Context, appTokenMintData types.TokenMint) { var ( store = k.Store(ctx) - key = types.TokenMintKey(appTokenMintData.AppMappingId) + key = types.TokenMintKey(appTokenMintData.AppId) value = k.cdc.MustMarshal(&appTokenMintData) ) diff --git a/x/tokenmint/keeper/msg_server.go b/x/tokenmint/keeper/msg_server.go index 8f7eedd2a..1e259c373 100644 --- a/x/tokenmint/keeper/msg_server.go +++ b/x/tokenmint/keeper/msg_server.go @@ -28,7 +28,7 @@ func (k *msgServer) MsgMintNewTokens(c context.Context, msg *types.MsgMintNewTok if !found { return nil, types.ErrorAssetDoesNotExist } - appMappingData, found := k.GetApp(ctx, msg.AppMappingId) + appMappingData, found := k.GetApp(ctx, msg.AppId) if !found { return nil, types.ErrorAppMappingDoesNotExists } @@ -39,7 +39,7 @@ func (k *msgServer) MsgMintNewTokens(c context.Context, msg *types.MsgMintNewTok return nil, types.ErrorAssetNotWhiteListedForGenesisMinting } - mintData, found := k.GetTokenMint(ctx, msg.AppMappingId) + mintData, found := k.GetTokenMint(ctx, msg.AppId) if !found { var newTokenMintAppData types.MintedTokens var appData types.TokenMint @@ -61,7 +61,7 @@ func (k *msgServer) MsgMintNewTokens(c context.Context, msg *types.MsgMintNewTok newTokenMintAppData.GenesisSupply = *assetDataInApp.GenesisSupply newTokenMintAppData.CurrentSupply = newTokenMintAppData.GenesisSupply - appData.AppMappingId = appMappingData.Id + appData.AppId = appMappingData.Id appData.MintedTokens = append(appData.MintedTokens, &newTokenMintAppData) k.SetTokenMint(ctx, appData) diff --git a/x/tokenmint/keeper/query_server.go b/x/tokenmint/keeper/query_server.go index d72b4bc32..d0316c9d5 100644 --- a/x/tokenmint/keeper/query_server.go +++ b/x/tokenmint/keeper/query_server.go @@ -21,18 +21,18 @@ func NewQueryServer(k Keeper) types.QueryServer { } } -func (q *queryServer) QueryAllTokenMintedForAllProducts(c context.Context, req *types.QueryAllTokenMintedForAllProductsRequest) (*types.QueryAllTokenMintedForAllProductsResponse, error) { +func (q *queryServer) QueryAllTokenMintedForAllApps(c context.Context, req *types.QueryAllTokenMintedForAllAppsRequest) (*types.QueryAllTokenMintedForAllAppsResponse, error) { var ( ctx = sdk.UnwrapSDKContext(c) ) totalMintedData := q.GetTotalTokenMinted(ctx) - return &types.QueryAllTokenMintedForAllProductsResponse{ + return &types.QueryAllTokenMintedForAllAppsResponse{ TokenMint: totalMintedData, }, nil } -func (q *queryServer) QueryTokenMintedByProduct(c context.Context, req *types.QueryTokenMintedByProductRequest) (*types.QueryTokenMintedByProductResponse, error) { +func (q *queryServer) QueryTokenMintedByApp(c context.Context, req *types.QueryTokenMintedByAppRequest) (*types.QueryTokenMintedByAppResponse, error) { var ( ctx = sdk.UnwrapSDKContext(c) ) @@ -41,12 +41,12 @@ func (q *queryServer) QueryTokenMintedByProduct(c context.Context, req *types.Qu return nil, types.ErrorMintDataNotFound } - return &types.QueryTokenMintedByProductResponse{ + return &types.QueryTokenMintedByAppResponse{ TokenMint: tokenMint, }, nil } -func (q *queryServer) QueryTokenMintedByProductAndAsset(c context.Context, req *types.QueryTokenMintedByProductAndAssetRequest) (*types.QueryTokenMintedByProductAndAssetResponse, error) { +func (q *queryServer) QueryTokenMintedByAppAndAsset(c context.Context, req *types.QueryTokenMintedByAppAndAssetRequest) (*types.QueryTokenMintedByAppAndAssetResponse, error) { var ( ctx = sdk.UnwrapSDKContext(c) ) @@ -55,7 +55,7 @@ func (q *queryServer) QueryTokenMintedByProductAndAsset(c context.Context, req * return nil, types.ErrorMintDataNotFound } - return &types.QueryTokenMintedByProductAndAssetResponse{ + return &types.QueryTokenMintedByAppAndAssetResponse{ MintedTokens: tokenMint, }, nil } diff --git a/x/tokenmint/types/mint.pb.go b/x/tokenmint/types/mint.pb.go index fcf8fc57e..bffae866f 100644 --- a/x/tokenmint/types/mint.pb.go +++ b/x/tokenmint/types/mint.pb.go @@ -30,7 +30,7 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package //app_vault_type_id will be the key for the KVStore for this value. type TokenMint struct { - AppMappingId uint64 `protobuf:"varint,1,opt,name=app_mapping_id,json=appMappingId,proto3" json:"app_mapping_id,omitempty" yaml:"app_mapping_id"` + AppId uint64 `protobuf:"varint,1,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty" yaml:"app_id"` MintedTokens []*MintedTokens `protobuf:"bytes,2,rep,name=minted_tokens,json=mintedTokens,proto3" json:"minted_tokens,omitempty" yaml:"minted_tokens"` } @@ -117,36 +117,36 @@ func init() { } var fileDescriptor_0f3526562ed06c1c = []byte{ - // 463 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x92, 0xb1, 0x8e, 0xd3, 0x30, - 0x18, 0xc7, 0x93, 0xde, 0x09, 0xa8, 0xaf, 0x3d, 0x44, 0x38, 0xa4, 0xa8, 0x12, 0x71, 0x65, 0xa4, - 0x53, 0x19, 0xce, 0xd6, 0xdd, 0x6d, 0x6c, 0x97, 0x05, 0x75, 0xa8, 0x90, 0xc2, 0x21, 0x21, 0x96, - 0xca, 0x4d, 0xdc, 0x60, 0x5d, 0x13, 0x5b, 0xb5, 0x8b, 0xe8, 0x5b, 0xdc, 0x63, 0xf0, 0x1e, 0x2c, - 0x1d, 0x3b, 0x22, 0x86, 0x00, 0xe9, 0x1b, 0x74, 0x62, 0x44, 0x76, 0x52, 0xda, 0x0c, 0x4c, 0x4c, - 0xf1, 0xf7, 0xf9, 0xe7, 0xbf, 0xff, 0x7f, 0x7f, 0x01, 0x2f, 0x62, 0x91, 0x25, 0xec, 0x33, 0xd1, - 0xe2, 0x8e, 0xe5, 0x19, 0xcf, 0x35, 0xf9, 0x74, 0x39, 0x61, 0x9a, 0x5e, 0x12, 0x53, 0x60, 0x39, - 0x17, 0x5a, 0x78, 0x7e, 0x05, 0xe1, 0xbf, 0x10, 0xae, 0xa1, 0xde, 0x59, 0x2a, 0x52, 0x61, 0x21, - 0x62, 0x56, 0x15, 0xdf, 0x83, 0xa9, 0x10, 0xe9, 0x8c, 0x11, 0x5b, 0x4d, 0x16, 0x53, 0xa2, 0x79, - 0xc6, 0x94, 0xa6, 0x99, 0xac, 0x00, 0xf4, 0xd5, 0x05, 0xed, 0x5b, 0x23, 0x36, 0xe2, 0xb9, 0xf6, - 0xde, 0x80, 0x53, 0x2a, 0xe5, 0x38, 0xa3, 0x52, 0xf2, 0x3c, 0x1d, 0xf3, 0xc4, 0x77, 0xfb, 0xee, - 0xe0, 0x38, 0x7c, 0x59, 0x16, 0xb0, 0x73, 0x23, 0xe5, 0xa8, 0xda, 0x18, 0x26, 0xdb, 0x02, 0x3e, - 0x5b, 0xd2, 0x6c, 0xf6, 0x0a, 0x35, 0x79, 0x14, 0x75, 0xe8, 0x01, 0xe6, 0x31, 0xd0, 0x35, 0x2e, - 0x59, 0x32, 0xb6, 0x8e, 0x95, 0xdf, 0xea, 0x1f, 0x0d, 0x4e, 0xae, 0xce, 0xf1, 0xbf, 0x72, 0xe0, - 0x91, 0xc5, 0xad, 0x25, 0x15, 0xfa, 0xdb, 0x02, 0x9e, 0x55, 0xf7, 0x34, 0x64, 0x50, 0xd4, 0xc9, - 0x0e, 0x38, 0xf4, 0xbb, 0x05, 0x3a, 0x87, 0x07, 0x3d, 0x0c, 0x1e, 0x51, 0xa5, 0x98, 0xde, 0x47, - 0x78, 0xba, 0x2d,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0xbf, 0xde, 0x5a, 0x98, 0x3c, 0xb0, 0x8f, - 0x70, 0xfd, 0x27, 0x00, 0x00, 0xff, 0xff, 0xe7, 0x50, 0x09, 0xcb, 0x16, 0x03, 0x00, 0x00, + // 456 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x92, 0x3f, 0x8f, 0xd3, 0x30, + 0x18, 0xc6, 0xe3, 0xfb, 0x07, 0xf5, 0x5d, 0x41, 0x84, 0x43, 0x8a, 0x2a, 0x11, 0x57, 0x46, 0x3a, + 0x75, 0x39, 0x5b, 0xbd, 0xdb, 0xd8, 0x2e, 0x0b, 0xea, 0x70, 0x4b, 0x38, 0x24, 0xc4, 0x52, 0xb9, + 0x89, 0x1b, 0xa2, 0x6b, 0x62, 0xab, 0x76, 0x11, 0xfd, 0x16, 0xf7, 0x25, 0x90, 0xf8, 0x28, 0x1d, + 0x6f, 0x44, 0x0c, 0x01, 0xd2, 0x6f, 0x90, 0x89, 0x11, 0xd9, 0x4e, 0xb9, 0x76, 0x60, 0x62, 0x8a, + 0xdf, 0x37, 0x3f, 0x3f, 0xef, 0xf3, 0xe4, 0x0d, 0x7c, 0x95, 0x88, 0x22, 0xe5, 0x9f, 0xa9, 0x16, + 0xb7, 0xbc, 0x2c, 0xf2, 0x52, 0xd3, 0x4f, 0xc3, 0x09, 0xd7, 0x6c, 0x48, 0x4d, 0x41, 0xe4, 0x5c, + 0x68, 0xe1, 0x07, 0x0e, 0x22, 0x7f, 0x21, 0xd2, 0x42, 0xbd, 0xd3, 0x4c, 0x64, 0xc2, 0x42, 0xd4, + 0x9c, 0x1c, 0xdf, 0x43, 0x99, 0x10, 0xd9, 0x8c, 0x53, 0x5b, 0x4d, 0x16, 0x53, 0xaa, 0xf3, 0x82, + 0x2b, 0xcd, 0x0a, 0xe9, 0x00, 0xfc, 0x05, 0xc0, 0xce, 0x8d, 0x11, 0xbb, 0xce, 0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0x47, 0xdc, 0x3a, 0xc8, 0x66, 0x1d, 0xe4, 0x66, 0xb3, 0x8e, 0xe8, 0xa5, 0xf1, + 0xd1, 0x54, 0xe8, 0x99, 0x53, 0x7f, 0xb8, 0x8b, 0xef, 0x7e, 0x20, 0x10, 0x77, 0xda, 0xc6, 0x95, + 0x36, 0x49, 0x92, 0xc5, 0x7c, 0xce, 0x4b, 0xbd, 0x49, 0x72, 0xf0, 0x7f, 0x49, 0x76, 0xd5, 0x70, + 0xdc, 0x6d, 0x1b, 0x2e, 0x49, 0xf4, 0x6e, 0xf5, 0x2b, 0xf4, 0xbe, 0xd6, 0xa1, 0xb7, 0xaa, 0x43, + 0x70, 0x5f, 0x87, 0xe0, 0x67, 0x1d, 0x82, 0xbb, 0x75, 0xe8, 0xdd, 0xaf, 0x43, 0xef, 0xdb, 0x3a, + 0xf4, 0x3e, 0x5c, 0xee, 0x4c, 0x34, 0x6b, 0x3f, 0x17, 0xd3, 0x69, 0x9e, 0xe4, 0x6c, 0xd6, 0xd6, + 0x74, 0xfb, 0xbf, 0xb6, 0x16, 0x26, 0x47, 0xf6, 0x23, 0x5c, 0xfe, 0x09, 0x00, 0x00, 0xff, 0xff, + 0xf5, 0xe3, 0x28, 0x4c, 0xf8, 0x02, 0x00, 0x00, } func (m *TokenMint) Marshal() (dAtA []byte, err error) { @@ -183,8 +183,8 @@ func (m *TokenMint) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA[i] = 0x12 } } - if m.AppMappingId != 0 { - i = encodeVarintMint(dAtA, i, uint64(m.AppMappingId)) + if m.AppId != 0 { + i = encodeVarintMint(dAtA, i, uint64(m.AppId)) i-- dAtA[i] = 0x8 } @@ -264,8 +264,8 @@ func (m *TokenMint) Size() (n int) { } var l int _ = l - if m.AppMappingId != 0 { - n += 1 + sovMint(uint64(m.AppMappingId)) + if m.AppId != 0 { + n += 1 + sovMint(uint64(m.AppId)) } if len(m.MintedTokens) > 0 { for _, e := range m.MintedTokens { @@ -331,9 +331,9 @@ func (m *TokenMint) Unmarshal(dAtA []byte) error { switch fieldNum { case 1: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AppMappingId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AppId", wireType) } - m.AppMappingId = 0 + m.AppId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowMint @@ -343,7 +343,7 @@ func (m *TokenMint) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.AppMappingId |= uint64(b&0x7F) << shift + m.AppId |= uint64(b&0x7F) << shift if b < 0x80 { break } diff --git a/x/tokenmint/types/msg.go b/x/tokenmint/types/msg.go index 0dffb5eb3..ca265e14c 100644 --- a/x/tokenmint/types/msg.go +++ b/x/tokenmint/types/msg.go @@ -9,10 +9,10 @@ var ( _ sdk.Msg = (*MsgMintNewTokensRequest)(nil) ) -func NewMsgMintNewTokensRequest(from sdk.AccAddress, appMappingID uint64, assetID uint64) *MsgMintNewTokensRequest { +func NewMsgMintNewTokensRequest(from sdk.AccAddress, appID uint64, assetID uint64) *MsgMintNewTokensRequest { return &MsgMintNewTokensRequest{ From: from.String(), - AppMappingId: appMappingID, + AppId: appID, AssetId: assetID, } } diff --git a/x/tokenmint/types/query.pb.go b/x/tokenmint/types/query.pb.go index c3c162d7c..2cd1a5cec 100644 --- a/x/tokenmint/types/query.pb.go +++ b/x/tokenmint/types/query.pb.go @@ -30,24 +30,22 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package -type QueryAllTokenMintedForAllProductsRequest struct { +type QueryAllTokenMintedForAllAppsRequest struct { Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty" yaml:"pagination"` } -func (m *QueryAllTokenMintedForAllProductsRequest) Reset() { - *m = QueryAllTokenMintedForAllProductsRequest{} -} -func (m *QueryAllTokenMintedForAllProductsRequest) String() string { return proto.CompactTextString(m) } -func (*QueryAllTokenMintedForAllProductsRequest) ProtoMessage() {} -func (*QueryAllTokenMintedForAllProductsRequest) Descriptor() ([]byte, []int) { +func (m *QueryAllTokenMintedForAllAppsRequest) Reset() { *m = QueryAllTokenMintedForAllAppsRequest{} } +func (m *QueryAllTokenMintedForAllAppsRequest) String() string { return proto.CompactTextString(m) } +func (*QueryAllTokenMintedForAllAppsRequest) ProtoMessage() {} +func (*QueryAllTokenMintedForAllAppsRequest) Descriptor() ([]byte, []int) { return fileDescriptor_47c1a33cde9c8705, []int{0} } -func (m *QueryAllTokenMintedForAllProductsRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryAllTokenMintedForAllAppsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryAllTokenMintedForAllProductsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryAllTokenMintedForAllAppsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryAllTokenMintedForAllProductsRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryAllTokenMintedForAllAppsRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -57,39 +55,35 @@ func (m *QueryAllTokenMintedForAllProductsRequest) XXX_Marshal(b []byte, determi return b[:n], nil } } -func (m *QueryAllTokenMintedForAllProductsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAllTokenMintedForAllProductsRequest.Merge(m, src) +func (m *QueryAllTokenMintedForAllAppsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllTokenMintedForAllAppsRequest.Merge(m, src) } -func (m *QueryAllTokenMintedForAllProductsRequest) XXX_Size() int { +func (m *QueryAllTokenMintedForAllAppsRequest) XXX_Size() int { return m.Size() } -func (m *QueryAllTokenMintedForAllProductsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAllTokenMintedForAllProductsRequest.DiscardUnknown(m) +func (m *QueryAllTokenMintedForAllAppsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllTokenMintedForAllAppsRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryAllTokenMintedForAllProductsRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryAllTokenMintedForAllAppsRequest proto.InternalMessageInfo -type QueryAllTokenMintedForAllProductsResponse struct { +type QueryAllTokenMintedForAllAppsResponse struct { TokenMint []TokenMint `protobuf:"bytes,1,rep,name=tokenMint,proto3" json:"tokenMint" yaml:"tokenMint"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty" yaml:"pagination"` } -func (m *QueryAllTokenMintedForAllProductsResponse) Reset() { - *m = QueryAllTokenMintedForAllProductsResponse{} -} -func (m *QueryAllTokenMintedForAllProductsResponse) String() string { - return proto.CompactTextString(m) -} -func (*QueryAllTokenMintedForAllProductsResponse) ProtoMessage() {} -func (*QueryAllTokenMintedForAllProductsResponse) Descriptor() ([]byte, []int) { +func (m *QueryAllTokenMintedForAllAppsResponse) Reset() { *m = QueryAllTokenMintedForAllAppsResponse{} } +func (m *QueryAllTokenMintedForAllAppsResponse) String() string { return proto.CompactTextString(m) } +func (*QueryAllTokenMintedForAllAppsResponse) ProtoMessage() {} +func (*QueryAllTokenMintedForAllAppsResponse) Descriptor() ([]byte, []int) { return fileDescriptor_47c1a33cde9c8705, []int{1} } -func (m *QueryAllTokenMintedForAllProductsResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryAllTokenMintedForAllAppsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryAllTokenMintedForAllProductsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryAllTokenMintedForAllAppsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryAllTokenMintedForAllProductsResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryAllTokenMintedForAllAppsResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -99,35 +93,35 @@ func (m *QueryAllTokenMintedForAllProductsResponse) XXX_Marshal(b []byte, determ return b[:n], nil } } -func (m *QueryAllTokenMintedForAllProductsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAllTokenMintedForAllProductsResponse.Merge(m, src) +func (m *QueryAllTokenMintedForAllAppsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllTokenMintedForAllAppsResponse.Merge(m, src) } -func (m *QueryAllTokenMintedForAllProductsResponse) XXX_Size() int { +func (m *QueryAllTokenMintedForAllAppsResponse) XXX_Size() int { return m.Size() } -func (m *QueryAllTokenMintedForAllProductsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAllTokenMintedForAllProductsResponse.DiscardUnknown(m) +func (m *QueryAllTokenMintedForAllAppsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllTokenMintedForAllAppsResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryAllTokenMintedForAllProductsResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryAllTokenMintedForAllAppsResponse proto.InternalMessageInfo -type QueryTokenMintedByProductRequest struct { +type QueryTokenMintedByAppRequest struct { AppId uint64 `protobuf:"varint,1,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty" yaml:"app_id"` Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty" yaml:"pagination"` } -func (m *QueryTokenMintedByProductRequest) Reset() { *m = QueryTokenMintedByProductRequest{} } -func (m *QueryTokenMintedByProductRequest) String() string { return proto.CompactTextString(m) } -func (*QueryTokenMintedByProductRequest) ProtoMessage() {} -func (*QueryTokenMintedByProductRequest) Descriptor() ([]byte, []int) { +func (m *QueryTokenMintedByAppRequest) Reset() { *m = QueryTokenMintedByAppRequest{} } +func (m *QueryTokenMintedByAppRequest) String() string { return proto.CompactTextString(m) } +func (*QueryTokenMintedByAppRequest) ProtoMessage() {} +func (*QueryTokenMintedByAppRequest) Descriptor() ([]byte, []int) { return fileDescriptor_47c1a33cde9c8705, []int{2} } -func (m *QueryTokenMintedByProductRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryTokenMintedByAppRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryTokenMintedByProductRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryTokenMintedByAppRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryTokenMintedByProductRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryTokenMintedByAppRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -137,35 +131,35 @@ func (m *QueryTokenMintedByProductRequest) XXX_Marshal(b []byte, deterministic b return b[:n], nil } } -func (m *QueryTokenMintedByProductRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryTokenMintedByProductRequest.Merge(m, src) +func (m *QueryTokenMintedByAppRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryTokenMintedByAppRequest.Merge(m, src) } -func (m *QueryTokenMintedByProductRequest) XXX_Size() int { +func (m *QueryTokenMintedByAppRequest) XXX_Size() int { return m.Size() } -func (m *QueryTokenMintedByProductRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryTokenMintedByProductRequest.DiscardUnknown(m) +func (m *QueryTokenMintedByAppRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryTokenMintedByAppRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryTokenMintedByProductRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryTokenMintedByAppRequest proto.InternalMessageInfo -type QueryTokenMintedByProductResponse struct { +type QueryTokenMintedByAppResponse struct { TokenMint TokenMint `protobuf:"bytes,1,opt,name=tokenMint,proto3" json:"tokenMint" yaml:"tokenMint"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty" yaml:"pagination"` } -func (m *QueryTokenMintedByProductResponse) Reset() { *m = QueryTokenMintedByProductResponse{} } -func (m *QueryTokenMintedByProductResponse) String() string { return proto.CompactTextString(m) } -func (*QueryTokenMintedByProductResponse) ProtoMessage() {} -func (*QueryTokenMintedByProductResponse) Descriptor() ([]byte, []int) { +func (m *QueryTokenMintedByAppResponse) Reset() { *m = QueryTokenMintedByAppResponse{} } +func (m *QueryTokenMintedByAppResponse) String() string { return proto.CompactTextString(m) } +func (*QueryTokenMintedByAppResponse) ProtoMessage() {} +func (*QueryTokenMintedByAppResponse) Descriptor() ([]byte, []int) { return fileDescriptor_47c1a33cde9c8705, []int{3} } -func (m *QueryTokenMintedByProductResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryTokenMintedByAppResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryTokenMintedByProductResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryTokenMintedByAppResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryTokenMintedByProductResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryTokenMintedByAppResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -175,38 +169,36 @@ func (m *QueryTokenMintedByProductResponse) XXX_Marshal(b []byte, deterministic return b[:n], nil } } -func (m *QueryTokenMintedByProductResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryTokenMintedByProductResponse.Merge(m, src) +func (m *QueryTokenMintedByAppResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryTokenMintedByAppResponse.Merge(m, src) } -func (m *QueryTokenMintedByProductResponse) XXX_Size() int { +func (m *QueryTokenMintedByAppResponse) XXX_Size() int { return m.Size() } -func (m *QueryTokenMintedByProductResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryTokenMintedByProductResponse.DiscardUnknown(m) +func (m *QueryTokenMintedByAppResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryTokenMintedByAppResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryTokenMintedByProductResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryTokenMintedByAppResponse proto.InternalMessageInfo -type QueryTokenMintedByProductAndAssetRequest struct { +type QueryTokenMintedByAppAndAssetRequest struct { AppId uint64 `protobuf:"varint,1,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty" yaml:"app_id"` AssetId uint64 `protobuf:"varint,2,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty" yaml:"asset_id"` Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty" yaml:"pagination"` } -func (m *QueryTokenMintedByProductAndAssetRequest) Reset() { - *m = QueryTokenMintedByProductAndAssetRequest{} -} -func (m *QueryTokenMintedByProductAndAssetRequest) String() string { return proto.CompactTextString(m) } -func (*QueryTokenMintedByProductAndAssetRequest) ProtoMessage() {} -func (*QueryTokenMintedByProductAndAssetRequest) Descriptor() ([]byte, []int) { +func (m *QueryTokenMintedByAppAndAssetRequest) Reset() { *m = QueryTokenMintedByAppAndAssetRequest{} } +func (m *QueryTokenMintedByAppAndAssetRequest) String() string { return proto.CompactTextString(m) } +func (*QueryTokenMintedByAppAndAssetRequest) ProtoMessage() {} +func (*QueryTokenMintedByAppAndAssetRequest) Descriptor() ([]byte, []int) { return fileDescriptor_47c1a33cde9c8705, []int{4} } -func (m *QueryTokenMintedByProductAndAssetRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryTokenMintedByAppAndAssetRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryTokenMintedByProductAndAssetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryTokenMintedByAppAndAssetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryTokenMintedByProductAndAssetRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryTokenMintedByAppAndAssetRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -216,39 +208,35 @@ func (m *QueryTokenMintedByProductAndAssetRequest) XXX_Marshal(b []byte, determi return b[:n], nil } } -func (m *QueryTokenMintedByProductAndAssetRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryTokenMintedByProductAndAssetRequest.Merge(m, src) +func (m *QueryTokenMintedByAppAndAssetRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryTokenMintedByAppAndAssetRequest.Merge(m, src) } -func (m *QueryTokenMintedByProductAndAssetRequest) XXX_Size() int { +func (m *QueryTokenMintedByAppAndAssetRequest) XXX_Size() int { return m.Size() } -func (m *QueryTokenMintedByProductAndAssetRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryTokenMintedByProductAndAssetRequest.DiscardUnknown(m) +func (m *QueryTokenMintedByAppAndAssetRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryTokenMintedByAppAndAssetRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryTokenMintedByProductAndAssetRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryTokenMintedByAppAndAssetRequest proto.InternalMessageInfo -type QueryTokenMintedByProductAndAssetResponse struct { +type QueryTokenMintedByAppAndAssetResponse struct { MintedTokens MintedTokens `protobuf:"bytes,1,opt,name=mintedTokens,proto3" json:"mintedTokens" yaml:"mintedTokens"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty" yaml:"pagination"` } -func (m *QueryTokenMintedByProductAndAssetResponse) Reset() { - *m = QueryTokenMintedByProductAndAssetResponse{} -} -func (m *QueryTokenMintedByProductAndAssetResponse) String() string { - return proto.CompactTextString(m) -} -func (*QueryTokenMintedByProductAndAssetResponse) ProtoMessage() {} -func (*QueryTokenMintedByProductAndAssetResponse) Descriptor() ([]byte, []int) { +func (m *QueryTokenMintedByAppAndAssetResponse) Reset() { *m = QueryTokenMintedByAppAndAssetResponse{} } +func (m *QueryTokenMintedByAppAndAssetResponse) String() string { return proto.CompactTextString(m) } +func (*QueryTokenMintedByAppAndAssetResponse) ProtoMessage() {} +func (*QueryTokenMintedByAppAndAssetResponse) Descriptor() ([]byte, []int) { return fileDescriptor_47c1a33cde9c8705, []int{5} } -func (m *QueryTokenMintedByProductAndAssetResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryTokenMintedByAppAndAssetResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryTokenMintedByProductAndAssetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryTokenMintedByAppAndAssetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryTokenMintedByProductAndAssetResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryTokenMintedByAppAndAssetResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -258,25 +246,25 @@ func (m *QueryTokenMintedByProductAndAssetResponse) XXX_Marshal(b []byte, determ return b[:n], nil } } -func (m *QueryTokenMintedByProductAndAssetResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryTokenMintedByProductAndAssetResponse.Merge(m, src) +func (m *QueryTokenMintedByAppAndAssetResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryTokenMintedByAppAndAssetResponse.Merge(m, src) } -func (m *QueryTokenMintedByProductAndAssetResponse) XXX_Size() int { +func (m *QueryTokenMintedByAppAndAssetResponse) XXX_Size() int { return m.Size() } -func (m *QueryTokenMintedByProductAndAssetResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryTokenMintedByProductAndAssetResponse.DiscardUnknown(m) +func (m *QueryTokenMintedByAppAndAssetResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryTokenMintedByAppAndAssetResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryTokenMintedByProductAndAssetResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryTokenMintedByAppAndAssetResponse proto.InternalMessageInfo func init() { - proto.RegisterType((*QueryAllTokenMintedForAllProductsRequest)(nil), "comdex.tokenmint.v1beta1.QueryAllTokenMintedForAllProductsRequest") - proto.RegisterType((*QueryAllTokenMintedForAllProductsResponse)(nil), "comdex.tokenmint.v1beta1.QueryAllTokenMintedForAllProductsResponse") - proto.RegisterType((*QueryTokenMintedByProductRequest)(nil), "comdex.tokenmint.v1beta1.QueryTokenMintedByProductRequest") - proto.RegisterType((*QueryTokenMintedByProductResponse)(nil), "comdex.tokenmint.v1beta1.QueryTokenMintedByProductResponse") - proto.RegisterType((*QueryTokenMintedByProductAndAssetRequest)(nil), "comdex.tokenmint.v1beta1.QueryTokenMintedByProductAndAssetRequest") - proto.RegisterType((*QueryTokenMintedByProductAndAssetResponse)(nil), "comdex.tokenmint.v1beta1.QueryTokenMintedByProductAndAssetResponse") + proto.RegisterType((*QueryAllTokenMintedForAllAppsRequest)(nil), "comdex.tokenmint.v1beta1.QueryAllTokenMintedForAllAppsRequest") + proto.RegisterType((*QueryAllTokenMintedForAllAppsResponse)(nil), "comdex.tokenmint.v1beta1.QueryAllTokenMintedForAllAppsResponse") + proto.RegisterType((*QueryTokenMintedByAppRequest)(nil), "comdex.tokenmint.v1beta1.QueryTokenMintedByAppRequest") + proto.RegisterType((*QueryTokenMintedByAppResponse)(nil), "comdex.tokenmint.v1beta1.QueryTokenMintedByAppResponse") + proto.RegisterType((*QueryTokenMintedByAppAndAssetRequest)(nil), "comdex.tokenmint.v1beta1.QueryTokenMintedByAppAndAssetRequest") + proto.RegisterType((*QueryTokenMintedByAppAndAssetResponse)(nil), "comdex.tokenmint.v1beta1.QueryTokenMintedByAppAndAssetResponse") } func init() { @@ -284,49 +272,49 @@ func init() { } var fileDescriptor_47c1a33cde9c8705 = []byte{ - // 661 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x96, 0x41, 0x6f, 0xd3, 0x30, - 0x18, 0x86, 0xe3, 0x8e, 0x0d, 0xf0, 0x40, 0xb0, 0x0c, 0xa4, 0x52, 0x50, 0x3a, 0x32, 0x04, 0x05, - 0x29, 0x89, 0xb6, 0x9d, 0xe8, 0xb8, 0x34, 0x48, 0x48, 0x08, 0x55, 0x1a, 0x01, 0x2e, 0x20, 0x40, - 0x6e, 0xe3, 0x85, 0x88, 0x34, 0xce, 0x6a, 0x17, 0x51, 0x4d, 0x3b, 0xc0, 0x8d, 0x1b, 0x12, 0x7f, - 0x02, 0x89, 0x3f, 0xd2, 0xe3, 0x24, 0x2e, 0x3d, 0x55, 0xa3, 0xe5, 0xc0, 0x0d, 0xa9, 0xe2, 0x07, - 0xa0, 0xd8, 0x49, 0x9b, 0xc1, 0x92, 0x96, 0x31, 0x0e, 0xdc, 0x2c, 0xf7, 0xf5, 0xeb, 0xef, 0xf1, - 0x9b, 0xef, 0x53, 0xe1, 0x95, 0x3a, 0x69, 0xd8, 0xf8, 0xb5, 0xc1, 0xc8, 0x4b, 0xec, 0x37, 0x5c, - 0x9f, 0x19, 0xaf, 0x56, 0x6a, 0x98, 0xa1, 0x15, 0x63, 0xab, 0x85, 0x9b, 0x6d, 0x3d, 0x68, 0x12, - 0x46, 0xe4, 0xbc, 0x50, 0xe9, 0x23, 0x95, 0x1e, 0xa9, 0x0a, 0x37, 0xea, 0x84, 0x36, 0x08, 0x35, - 0x6a, 0x88, 0x62, 0x71, 0x64, 0x64, 0x10, 0x20, 0xc7, 0xf5, 0x11, 0x73, 0x89, 0x2f, 0x5c, 0x0a, - 0xcb, 0xa9, 0x77, 0x71, 0x4b, 0x21, 0x3a, 0xe7, 0x10, 0x87, 0xf0, 0xa5, 0x11, 0xae, 0xa2, 0xdd, - 0x4b, 0x0e, 0x21, 0x8e, 0x87, 0x0d, 0x14, 0xb8, 0x06, 0xf2, 0x7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 0x7e, 0x93, 0xcb, 0x18, 0x4b, 0xf1, 0xd7, 0x3c, 0x31, - 0xcc, 0x29, 0x1a, 0x7e, 0x62, 0x98, 0xd3, 0xb4, 0x93, 0xfa, 0x80, 0x23, 0x57, 0xe5, 0x7b, 0x7f, - 0x8c, 0xac, 0xf1, 0xf1, 0x30, 0x02, 0x37, 0xb6, 0xe3, 0xc9, 0xb1, 0x63, 0x3e, 0xea, 0x7c, 0x51, - 0xa4, 0x8f, 0x7d, 0x45, 0xea, 0xf4, 0x15, 0xb0, 0xdb, 0x57, 0xc0, 0x5e, 0x5f, 0x01, 0xef, 0x07, - 0x8a, 0xb4, 0x3b, 0x50, 0xa4, 0xee, 0x40, 0x91, 0x1e, 0xaf, 0x39, 0x2e, 0x7b, 0xd1, 0xaa, 0x85, - 0x04, 0xd1, 0xc5, 0x1a, 0xd9, 0xdc, 0x74, 0xeb, 0x2e, 0xf2, 0xe2, 0x42, 0x92, 0xa5, 0xb0, 0x76, - 0x80, 0x69, 0x6d, 0x8e, 0xff, 0x3b, 0x58, 0xfb, 0x19, 0x00, 0x00, 0xff, 0xff, 0x5a, 0x2e, 0x27, - 0xae, 0xe4, 0x08, 0x00, 0x00, + // 663 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x95, 0x41, 0x6b, 0xd4, 0x4e, + 0x18, 0xc6, 0x33, 0xdb, 0x7f, 0xfb, 0xd7, 0xa9, 0xa2, 0x4d, 0x2d, 0x2c, 0x6b, 0xcd, 0x96, 0xb4, + 0x6a, 0x11, 0x92, 0xd0, 0x16, 0x5b, 0x11, 0xac, 0x24, 0x07, 0x41, 0xa4, 0xa0, 0x51, 0x2f, 0x8a, + 0xca, 0x6c, 0x33, 0x8d, 0xc1, 0x6c, 0x66, 0xda, 0x99, 0x8a, 0x4b, 0xe9, 0x45, 0xf0, 0x2e, 0xf8, + 0x21, 0xf4, 0xe0, 0x07, 0xd9, 0x63, 0xc1, 0x8b, 0x07, 0xd9, 0xea, 0x6e, 0x3f, 0x80, 0x2c, 0x78, + 0x97, 0xcc, 0x24, 0xbb, 0x69, 0x6d, 0x4c, 0x57, 0xea, 0xc1, 0x5b, 0x48, 0xde, 0x79, 0xe6, 0xf9, + 0xcd, 0x33, 0xef, 0x1b, 0x38, 0xb3, 0x4a, 0xea, 0x1e, 0x7e, 0x65, 0x71, 0xf2, 0x02, 0x47, 0xf5, + 0x20, 0xe2, 0xd6, 0xcb, 0xb9, 0x1a, 0xe6, 0x68, 0xce, 0x5a, 0xdf, 0xc4, 0x1b, 0x0d, 0x93, 0x6e, + 0x10, 0x4e, 0xd4, 0xb2, 0xac, 0x32, 0x7b, 0x55, 0x66, 0x52, 0x55, 0xb9, 0xb2, 0x4a, 0x58, 0x9d, + 0x30, 0xab, 0x86, 0x18, 0x96, 0x4b, 0x7a, 0x02, 0x14, 0xf9, 0x41, 0x84, 0x78, 0x40, 0x22, 0xa9, + 0x52, 0x99, 0xce, 0xdd, 0x4b, 0x48, 0xca, 0xa2, 0x73, 0x3e, 0xf1, 0x89, 0x78, 0xb4, 0xe2, 0xa7, + 0xe4, 0xed, 0xa4, 0x4f, 0x88, 0x1f, 0x62, 0x0b, 0xd1, 0xc0, 0x42, 0x51, 0x44, 0xb8, 0xd0, 0x65, + 0xf2, 0xab, 0xfe, 0x06, 0xc0, 0x99, 0x7b, 0xf1, 0xde, 0x76, 0x18, 0x3e, 0x88, 0xc5, 0x57, 0x82, + 0x88, 0x63, 0xef, 0x16, 0xd9, 0xb0, 0xc3, 0xd0, 0xa6, 0x94, 0xb9, 0x78, 0x7d, 0x13, 0x33, 0xae, + 0x3e, 0x81, 0xb0, 0xef, 0xaa, 0x0c, 0xa6, 0xc0, 0xec, 0xe8, 0xfc, 0x25, 0x53, 0x22, 0x98, 0x31, + 0x82, 0x29, 0xa9, 0x13, 0x5f, 0xe6, 0x5d, 0xe4, 0xe3, 0x64, 0xad, 0x33, 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0x7c, 0xee, 0x68, 0xca, 0xa3, 0x05, 0x3f, 0xe0, 0xcf, 0x37, + 0x6b, 0xb1, 0xfb, 0x64, 0x63, 0x83, 0xac, 0xad, 0x05, 0xab, 0x01, 0x0a, 0x53, 0x23, 0x59, 0x2b, + 0xbc, 0x41, 0x31, 0xab, 0x8d, 0x88, 0x3f, 0xfb, 0xc2, 0xcf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x2c, + 0xb4, 0xe7, 0x43, 0xa0, 0x08, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -341,9 +329,9 @@ const _ = grpc.SupportPackageIsVersion4 // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type QueryClient interface { - QueryAllTokenMintedForAllProducts(ctx context.Context, in *QueryAllTokenMintedForAllProductsRequest, opts ...grpc.CallOption) (*QueryAllTokenMintedForAllProductsResponse, error) - QueryTokenMintedByProduct(ctx context.Context, in *QueryTokenMintedByProductRequest, opts ...grpc.CallOption) (*QueryTokenMintedByProductResponse, error) - QueryTokenMintedByProductAndAsset(ctx context.Context, in *QueryTokenMintedByProductAndAssetRequest, opts ...grpc.CallOption) (*QueryTokenMintedByProductAndAssetResponse, error) + QueryAllTokenMintedForAllApps(ctx context.Context, in *QueryAllTokenMintedForAllAppsRequest, opts ...grpc.CallOption) (*QueryAllTokenMintedForAllAppsResponse, error) + QueryTokenMintedByApp(ctx context.Context, in *QueryTokenMintedByAppRequest, opts ...grpc.CallOption) (*QueryTokenMintedByAppResponse, error) + QueryTokenMintedByAppAndAsset(ctx context.Context, in *QueryTokenMintedByAppAndAssetRequest, opts ...grpc.CallOption) (*QueryTokenMintedByAppAndAssetResponse, error) } type queryClient struct { @@ -354,27 +342,27 @@ func NewQueryClient(cc grpc1.ClientConn) QueryClient { return &queryClient{cc} } -func (c *queryClient) QueryAllTokenMintedForAllProducts(ctx context.Context, in *QueryAllTokenMintedForAllProductsRequest, opts ...grpc.CallOption) (*QueryAllTokenMintedForAllProductsResponse, error) { - out := new(QueryAllTokenMintedForAllProductsResponse) - err := c.cc.Invoke(ctx, "/comdex.tokenmint.v1beta1.Query/QueryAllTokenMintedForAllProducts", in, out, opts...) +func (c *queryClient) QueryAllTokenMintedForAllApps(ctx context.Context, in *QueryAllTokenMintedForAllAppsRequest, opts ...grpc.CallOption) (*QueryAllTokenMintedForAllAppsResponse, error) { + out := new(QueryAllTokenMintedForAllAppsResponse) + err := c.cc.Invoke(ctx, "/comdex.tokenmint.v1beta1.Query/QueryAllTokenMintedForAllApps", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *queryClient) QueryTokenMintedByProduct(ctx context.Context, in *QueryTokenMintedByProductRequest, opts ...grpc.CallOption) (*QueryTokenMintedByProductResponse, error) { - out := new(QueryTokenMintedByProductResponse) - err := c.cc.Invoke(ctx, "/comdex.tokenmint.v1beta1.Query/QueryTokenMintedByProduct", in, out, opts...) +func (c *queryClient) QueryTokenMintedByApp(ctx context.Context, in *QueryTokenMintedByAppRequest, opts ...grpc.CallOption) (*QueryTokenMintedByAppResponse, error) { + out := new(QueryTokenMintedByAppResponse) + err := c.cc.Invoke(ctx, "/comdex.tokenmint.v1beta1.Query/QueryTokenMintedByApp", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *queryClient) QueryTokenMintedByProductAndAsset(ctx context.Context, in *QueryTokenMintedByProductAndAssetRequest, opts ...grpc.CallOption) (*QueryTokenMintedByProductAndAssetResponse, error) { - out := new(QueryTokenMintedByProductAndAssetResponse) - err := c.cc.Invoke(ctx, "/comdex.tokenmint.v1beta1.Query/QueryTokenMintedByProductAndAsset", in, out, opts...) +func (c *queryClient) QueryTokenMintedByAppAndAsset(ctx context.Context, in *QueryTokenMintedByAppAndAssetRequest, opts ...grpc.CallOption) (*QueryTokenMintedByAppAndAssetResponse, error) { + out := new(QueryTokenMintedByAppAndAssetResponse) + err := c.cc.Invoke(ctx, "/comdex.tokenmint.v1beta1.Query/QueryTokenMintedByAppAndAsset", in, out, opts...) if err != nil { return nil, err } @@ -383,79 +371,79 @@ func (c *queryClient) QueryTokenMintedByProductAndAsset(ctx context.Context, in // QueryServer is the server API for Query service. type QueryServer interface { - QueryAllTokenMintedForAllProducts(context.Context, *QueryAllTokenMintedForAllProductsRequest) (*QueryAllTokenMintedForAllProductsResponse, error) - QueryTokenMintedByProduct(context.Context, *QueryTokenMintedByProductRequest) (*QueryTokenMintedByProductResponse, error) - QueryTokenMintedByProductAndAsset(context.Context, *QueryTokenMintedByProductAndAssetRequest) (*QueryTokenMintedByProductAndAssetResponse, error) + QueryAllTokenMintedForAllApps(context.Context, *QueryAllTokenMintedForAllAppsRequest) (*QueryAllTokenMintedForAllAppsResponse, error) + QueryTokenMintedByApp(context.Context, *QueryTokenMintedByAppRequest) (*QueryTokenMintedByAppResponse, error) + QueryTokenMintedByAppAndAsset(context.Context, *QueryTokenMintedByAppAndAssetRequest) (*QueryTokenMintedByAppAndAssetResponse, error) } // UnimplementedQueryServer can be embedded to have forward compatible implementations. type UnimplementedQueryServer struct { } -func (*UnimplementedQueryServer) QueryAllTokenMintedForAllProducts(ctx context.Context, req *QueryAllTokenMintedForAllProductsRequest) (*QueryAllTokenMintedForAllProductsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method QueryAllTokenMintedForAllProducts not implemented") +func (*UnimplementedQueryServer) QueryAllTokenMintedForAllApps(ctx context.Context, req *QueryAllTokenMintedForAllAppsRequest) (*QueryAllTokenMintedForAllAppsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method QueryAllTokenMintedForAllApps not implemented") } -func (*UnimplementedQueryServer) QueryTokenMintedByProduct(ctx context.Context, req *QueryTokenMintedByProductRequest) (*QueryTokenMintedByProductResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method QueryTokenMintedByProduct not implemented") +func (*UnimplementedQueryServer) QueryTokenMintedByApp(ctx context.Context, req *QueryTokenMintedByAppRequest) (*QueryTokenMintedByAppResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method QueryTokenMintedByApp not implemented") } -func (*UnimplementedQueryServer) QueryTokenMintedByProductAndAsset(ctx context.Context, req *QueryTokenMintedByProductAndAssetRequest) (*QueryTokenMintedByProductAndAssetResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method QueryTokenMintedByProductAndAsset not implemented") +func (*UnimplementedQueryServer) QueryTokenMintedByAppAndAsset(ctx context.Context, req *QueryTokenMintedByAppAndAssetRequest) (*QueryTokenMintedByAppAndAssetResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method QueryTokenMintedByAppAndAsset not implemented") } func RegisterQueryServer(s grpc1.Server, srv QueryServer) { s.RegisterService(&_Query_serviceDesc, srv) } -func _Query_QueryAllTokenMintedForAllProducts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryAllTokenMintedForAllProductsRequest) +func _Query_QueryAllTokenMintedForAllApps_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryAllTokenMintedForAllAppsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).QueryAllTokenMintedForAllProducts(ctx, in) + return srv.(QueryServer).QueryAllTokenMintedForAllApps(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/comdex.tokenmint.v1beta1.Query/QueryAllTokenMintedForAllProducts", + FullMethod: "/comdex.tokenmint.v1beta1.Query/QueryAllTokenMintedForAllApps", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).QueryAllTokenMintedForAllProducts(ctx, req.(*QueryAllTokenMintedForAllProductsRequest)) + return srv.(QueryServer).QueryAllTokenMintedForAllApps(ctx, req.(*QueryAllTokenMintedForAllAppsRequest)) } return interceptor(ctx, in, info, handler) } -func _Query_QueryTokenMintedByProduct_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryTokenMintedByProductRequest) +func _Query_QueryTokenMintedByApp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryTokenMintedByAppRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).QueryTokenMintedByProduct(ctx, in) + return srv.(QueryServer).QueryTokenMintedByApp(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/comdex.tokenmint.v1beta1.Query/QueryTokenMintedByProduct", + FullMethod: "/comdex.tokenmint.v1beta1.Query/QueryTokenMintedByApp", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).QueryTokenMintedByProduct(ctx, req.(*QueryTokenMintedByProductRequest)) + return srv.(QueryServer).QueryTokenMintedByApp(ctx, req.(*QueryTokenMintedByAppRequest)) } return interceptor(ctx, in, info, handler) } -func _Query_QueryTokenMintedByProductAndAsset_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryTokenMintedByProductAndAssetRequest) +func _Query_QueryTokenMintedByAppAndAsset_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryTokenMintedByAppAndAssetRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).QueryTokenMintedByProductAndAsset(ctx, in) + return srv.(QueryServer).QueryTokenMintedByAppAndAsset(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/comdex.tokenmint.v1beta1.Query/QueryTokenMintedByProductAndAsset", + FullMethod: "/comdex.tokenmint.v1beta1.Query/QueryTokenMintedByAppAndAsset", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).QueryTokenMintedByProductAndAsset(ctx, req.(*QueryTokenMintedByProductAndAssetRequest)) + return srv.(QueryServer).QueryTokenMintedByAppAndAsset(ctx, req.(*QueryTokenMintedByAppAndAssetRequest)) } return interceptor(ctx, in, info, handler) } @@ -465,23 +453,23 @@ var _Query_serviceDesc = grpc.ServiceDesc{ HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { - MethodName: "QueryAllTokenMintedForAllProducts", - Handler: _Query_QueryAllTokenMintedForAllProducts_Handler, + MethodName: "QueryAllTokenMintedForAllApps", + Handler: _Query_QueryAllTokenMintedForAllApps_Handler, }, { - MethodName: "QueryTokenMintedByProduct", - Handler: _Query_QueryTokenMintedByProduct_Handler, + MethodName: "QueryTokenMintedByApp", + Handler: _Query_QueryTokenMintedByApp_Handler, }, { - MethodName: "QueryTokenMintedByProductAndAsset", - Handler: _Query_QueryTokenMintedByProductAndAsset_Handler, + MethodName: "QueryTokenMintedByAppAndAsset", + Handler: _Query_QueryTokenMintedByAppAndAsset_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "comdex/tokenmint/v1beta1/query.proto", } -func (m *QueryAllTokenMintedForAllProductsRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryAllTokenMintedForAllAppsRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -491,12 +479,12 @@ func (m *QueryAllTokenMintedForAllProductsRequest) Marshal() (dAtA []byte, err e return dAtA[:n], nil } -func (m *QueryAllTokenMintedForAllProductsRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryAllTokenMintedForAllAppsRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryAllTokenMintedForAllProductsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryAllTokenMintedForAllAppsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -516,7 +504,7 @@ func (m *QueryAllTokenMintedForAllProductsRequest) MarshalToSizedBuffer(dAtA []b return len(dAtA) - i, nil } -func (m *QueryAllTokenMintedForAllProductsResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryAllTokenMintedForAllAppsResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -526,12 +514,12 @@ func (m *QueryAllTokenMintedForAllProductsResponse) Marshal() (dAtA []byte, err return dAtA[:n], nil } -func (m *QueryAllTokenMintedForAllProductsResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryAllTokenMintedForAllAppsResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryAllTokenMintedForAllProductsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryAllTokenMintedForAllAppsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -565,7 +553,7 @@ func (m *QueryAllTokenMintedForAllProductsResponse) MarshalToSizedBuffer(dAtA [] return len(dAtA) - i, nil } -func (m *QueryTokenMintedByProductRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryTokenMintedByAppRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -575,12 +563,12 @@ func (m *QueryTokenMintedByProductRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryTokenMintedByProductRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryTokenMintedByAppRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryTokenMintedByProductRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryTokenMintedByAppRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -605,7 +593,7 @@ func (m *QueryTokenMintedByProductRequest) MarshalToSizedBuffer(dAtA []byte) (in return len(dAtA) - i, nil } -func (m *QueryTokenMintedByProductResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryTokenMintedByAppResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -615,12 +603,12 @@ func (m *QueryTokenMintedByProductResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryTokenMintedByProductResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryTokenMintedByAppResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryTokenMintedByProductResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryTokenMintedByAppResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -650,7 +638,7 @@ func (m *QueryTokenMintedByProductResponse) MarshalToSizedBuffer(dAtA []byte) (i return len(dAtA) - i, nil } -func (m *QueryTokenMintedByProductAndAssetRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryTokenMintedByAppAndAssetRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -660,12 +648,12 @@ func (m *QueryTokenMintedByProductAndAssetRequest) Marshal() (dAtA []byte, err e return dAtA[:n], nil } -func (m *QueryTokenMintedByProductAndAssetRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryTokenMintedByAppAndAssetRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryTokenMintedByProductAndAssetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryTokenMintedByAppAndAssetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -695,7 +683,7 @@ func (m *QueryTokenMintedByProductAndAssetRequest) MarshalToSizedBuffer(dAtA []b return len(dAtA) - i, nil } -func (m *QueryTokenMintedByProductAndAssetResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryTokenMintedByAppAndAssetResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -705,12 +693,12 @@ func (m *QueryTokenMintedByProductAndAssetResponse) Marshal() (dAtA []byte, err return dAtA[:n], nil } -func (m *QueryTokenMintedByProductAndAssetResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryTokenMintedByAppAndAssetResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryTokenMintedByProductAndAssetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryTokenMintedByAppAndAssetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -751,7 +739,7 @@ func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } -func (m *QueryAllTokenMintedForAllProductsRequest) Size() (n int) { +func (m *QueryAllTokenMintedForAllAppsRequest) Size() (n int) { if m == nil { return 0 } @@ -764,7 +752,7 @@ func (m *QueryAllTokenMintedForAllProductsRequest) Size() (n int) { return n } -func (m *QueryAllTokenMintedForAllProductsResponse) Size() (n int) { +func (m *QueryAllTokenMintedForAllAppsResponse) Size() (n int) { if m == nil { return 0 } @@ -783,7 +771,7 @@ func (m *QueryAllTokenMintedForAllProductsResponse) Size() (n int) { return n } -func (m *QueryTokenMintedByProductRequest) Size() (n int) { +func (m *QueryTokenMintedByAppRequest) Size() (n int) { if m == nil { return 0 } @@ -799,7 +787,7 @@ func (m *QueryTokenMintedByProductRequest) Size() (n int) { return n } -func (m *QueryTokenMintedByProductResponse) Size() (n int) { +func (m *QueryTokenMintedByAppResponse) Size() (n int) { if m == nil { return 0 } @@ -814,7 +802,7 @@ func (m *QueryTokenMintedByProductResponse) Size() (n int) { return n } -func (m *QueryTokenMintedByProductAndAssetRequest) Size() (n int) { +func (m *QueryTokenMintedByAppAndAssetRequest) Size() (n int) { if m == nil { return 0 } @@ -833,7 +821,7 @@ func (m *QueryTokenMintedByProductAndAssetRequest) Size() (n int) { return n } -func (m *QueryTokenMintedByProductAndAssetResponse) Size() (n int) { +func (m *QueryTokenMintedByAppAndAssetResponse) Size() (n int) { if m == nil { return 0 } @@ -854,7 +842,7 @@ func sovQuery(x uint64) (n int) { func sozQuery(x uint64) (n int) { return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } -func (m *QueryAllTokenMintedForAllProductsRequest) Unmarshal(dAtA []byte) error { +func (m *QueryAllTokenMintedForAllAppsRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -877,10 +865,10 @@ func (m *QueryAllTokenMintedForAllProductsRequest) Unmarshal(dAtA []byte) error fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAllTokenMintedForAllProductsRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryAllTokenMintedForAllAppsRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllTokenMintedForAllProductsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryAllTokenMintedForAllAppsRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -940,7 +928,7 @@ func (m *QueryAllTokenMintedForAllProductsRequest) Unmarshal(dAtA []byte) error } return nil } -func (m *QueryAllTokenMintedForAllProductsResponse) Unmarshal(dAtA []byte) error { +func (m *QueryAllTokenMintedForAllAppsResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -963,10 +951,10 @@ func (m *QueryAllTokenMintedForAllProductsResponse) Unmarshal(dAtA []byte) error fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAllTokenMintedForAllProductsResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryAllTokenMintedForAllAppsResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllTokenMintedForAllProductsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryAllTokenMintedForAllAppsResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -1060,7 +1048,7 @@ func (m *QueryAllTokenMintedForAllProductsResponse) Unmarshal(dAtA []byte) error } return nil } -func (m *QueryTokenMintedByProductRequest) Unmarshal(dAtA []byte) error { +func (m *QueryTokenMintedByAppRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -1083,10 +1071,10 @@ func (m *QueryTokenMintedByProductRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryTokenMintedByProductRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryTokenMintedByAppRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryTokenMintedByProductRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryTokenMintedByAppRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -1165,7 +1153,7 @@ func (m *QueryTokenMintedByProductRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryTokenMintedByProductResponse) Unmarshal(dAtA []byte) error { +func (m *QueryTokenMintedByAppResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -1188,10 +1176,10 @@ func (m *QueryTokenMintedByProductResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryTokenMintedByProductResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryTokenMintedByAppResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryTokenMintedByProductResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryTokenMintedByAppResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -1284,7 +1272,7 @@ func (m *QueryTokenMintedByProductResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryTokenMintedByProductAndAssetRequest) Unmarshal(dAtA []byte) error { +func (m *QueryTokenMintedByAppAndAssetRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -1307,10 +1295,10 @@ func (m *QueryTokenMintedByProductAndAssetRequest) Unmarshal(dAtA []byte) error fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryTokenMintedByProductAndAssetRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryTokenMintedByAppAndAssetRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryTokenMintedByProductAndAssetRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryTokenMintedByAppAndAssetRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -1408,7 +1396,7 @@ func (m *QueryTokenMintedByProductAndAssetRequest) Unmarshal(dAtA []byte) error } return nil } -func (m *QueryTokenMintedByProductAndAssetResponse) Unmarshal(dAtA []byte) error { +func (m *QueryTokenMintedByAppAndAssetResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -1431,10 +1419,10 @@ func (m *QueryTokenMintedByProductAndAssetResponse) Unmarshal(dAtA []byte) error fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryTokenMintedByProductAndAssetResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryTokenMintedByAppAndAssetResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryTokenMintedByProductAndAssetResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryTokenMintedByAppAndAssetResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: diff --git a/x/tokenmint/types/query.pb.gw.go b/x/tokenmint/types/query.pb.gw.go index dc746f6f5..7e4426967 100644 --- a/x/tokenmint/types/query.pb.gw.go +++ b/x/tokenmint/types/query.pb.gw.go @@ -34,47 +34,47 @@ var _ = descriptor.ForMessage var _ = metadata.Join var ( - filter_Query_QueryAllTokenMintedForAllProducts_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} + filter_Query_QueryAllTokenMintedForAllApps_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} ) -func request_Query_QueryAllTokenMintedForAllProducts_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryAllTokenMintedForAllProductsRequest +func request_Query_QueryAllTokenMintedForAllApps_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAllTokenMintedForAllAppsRequest 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_QueryAllTokenMintedForAllProducts_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_QueryAllTokenMintedForAllApps_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.QueryAllTokenMintedForAllProducts(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.QueryAllTokenMintedForAllApps(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_Query_QueryAllTokenMintedForAllProducts_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryAllTokenMintedForAllProductsRequest +func local_request_Query_QueryAllTokenMintedForAllApps_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAllTokenMintedForAllAppsRequest 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_QueryAllTokenMintedForAllProducts_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_QueryAllTokenMintedForAllApps_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.QueryAllTokenMintedForAllProducts(ctx, &protoReq) + msg, err := server.QueryAllTokenMintedForAllApps(ctx, &protoReq) return msg, metadata, err } var ( - filter_Query_QueryTokenMintedByProduct_0 = &utilities.DoubleArray{Encoding: map[string]int{"app_id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} + filter_Query_QueryTokenMintedByApp_0 = &utilities.DoubleArray{Encoding: map[string]int{"app_id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} ) -func request_Query_QueryTokenMintedByProduct_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryTokenMintedByProductRequest +func request_Query_QueryTokenMintedByApp_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryTokenMintedByAppRequest var metadata runtime.ServerMetadata var ( @@ -98,17 +98,17 @@ func request_Query_QueryTokenMintedByProduct_0(ctx context.Context, marshaler ru if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_QueryTokenMintedByProduct_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_QueryTokenMintedByApp_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.QueryTokenMintedByProduct(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.QueryTokenMintedByApp(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_Query_QueryTokenMintedByProduct_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryTokenMintedByProductRequest +func local_request_Query_QueryTokenMintedByApp_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryTokenMintedByAppRequest var metadata runtime.ServerMetadata var ( @@ -132,21 +132,21 @@ func local_request_Query_QueryTokenMintedByProduct_0(ctx context.Context, marsha if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_QueryTokenMintedByProduct_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_QueryTokenMintedByApp_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.QueryTokenMintedByProduct(ctx, &protoReq) + msg, err := server.QueryTokenMintedByApp(ctx, &protoReq) return msg, metadata, err } var ( - filter_Query_QueryTokenMintedByProductAndAsset_0 = &utilities.DoubleArray{Encoding: map[string]int{"app_id": 0, "asset_id": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} + filter_Query_QueryTokenMintedByAppAndAsset_0 = &utilities.DoubleArray{Encoding: map[string]int{"app_id": 0, "asset_id": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} ) -func request_Query_QueryTokenMintedByProductAndAsset_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryTokenMintedByProductAndAssetRequest +func request_Query_QueryTokenMintedByAppAndAsset_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryTokenMintedByAppAndAssetRequest var metadata runtime.ServerMetadata var ( @@ -181,17 +181,17 @@ func request_Query_QueryTokenMintedByProductAndAsset_0(ctx context.Context, mars if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_QueryTokenMintedByProductAndAsset_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_QueryTokenMintedByAppAndAsset_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.QueryTokenMintedByProductAndAsset(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.QueryTokenMintedByAppAndAsset(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_Query_QueryTokenMintedByProductAndAsset_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryTokenMintedByProductAndAssetRequest +func local_request_Query_QueryTokenMintedByAppAndAsset_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryTokenMintedByAppAndAssetRequest var metadata runtime.ServerMetadata var ( @@ -226,11 +226,11 @@ func local_request_Query_QueryTokenMintedByProductAndAsset_0(ctx context.Context if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_QueryTokenMintedByProductAndAsset_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_QueryTokenMintedByAppAndAsset_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.QueryTokenMintedByProductAndAsset(ctx, &protoReq) + msg, err := server.QueryTokenMintedByAppAndAsset(ctx, &protoReq) return msg, metadata, err } @@ -241,7 +241,7 @@ func local_request_Query_QueryTokenMintedByProductAndAsset_0(ctx context.Context // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead. func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error { - mux.Handle("GET", pattern_Query_QueryAllTokenMintedForAllProducts_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_QueryAllTokenMintedForAllApps_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -252,7 +252,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_QueryAllTokenMintedForAllProducts_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_QueryAllTokenMintedForAllApps_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -260,11 +260,11 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_QueryAllTokenMintedForAllProducts_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_QueryAllTokenMintedForAllApps_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_QueryTokenMintedByProduct_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_QueryTokenMintedByApp_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -275,7 +275,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_QueryTokenMintedByProduct_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_QueryTokenMintedByApp_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -283,11 +283,11 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_QueryTokenMintedByProduct_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_QueryTokenMintedByApp_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_QueryTokenMintedByProductAndAsset_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_QueryTokenMintedByAppAndAsset_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -298,7 +298,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_QueryTokenMintedByProductAndAsset_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_QueryTokenMintedByAppAndAsset_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -306,7 +306,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_QueryTokenMintedByProductAndAsset_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_QueryTokenMintedByAppAndAsset_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -351,7 +351,7 @@ func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc // "QueryClient" to call the correct interceptors. func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error { - mux.Handle("GET", pattern_Query_QueryAllTokenMintedForAllProducts_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_QueryAllTokenMintedForAllApps_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) @@ -360,18 +360,18 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Query_QueryAllTokenMintedForAllProducts_0(rctx, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Query_QueryAllTokenMintedForAllApps_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_QueryAllTokenMintedForAllProducts_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_QueryAllTokenMintedForAllApps_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_QueryTokenMintedByProduct_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_QueryTokenMintedByApp_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) @@ -380,18 +380,18 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Query_QueryTokenMintedByProduct_0(rctx, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Query_QueryTokenMintedByApp_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_QueryTokenMintedByProduct_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_QueryTokenMintedByApp_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_QueryTokenMintedByProductAndAsset_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_QueryTokenMintedByAppAndAsset_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) @@ -400,14 +400,14 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Query_QueryTokenMintedByProductAndAsset_0(rctx, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Query_QueryTokenMintedByAppAndAsset_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_QueryTokenMintedByProductAndAsset_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_QueryTokenMintedByAppAndAsset_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -415,17 +415,17 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } var ( - pattern_Query_QueryAllTokenMintedForAllProducts_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"comdex", "tokenmint", "v1beta1", "total-token-minted-all-products"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_QueryAllTokenMintedForAllApps_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"comdex", "tokenmint", "v1beta1", "total-token-minted-all-apps"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_QueryTokenMintedByProduct_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"comdex", "tokenmint", "v1beta1", "token-minted-by-product", "app_id"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_QueryTokenMintedByApp_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"comdex", "tokenmint", "v1beta1", "token-minted-by-app", "app_id"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_QueryTokenMintedByProductAndAsset_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"comdex", "tokenmint", "v1beta1", "token-minted-by-product-asset", "app_id", "asset_id"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_QueryTokenMintedByAppAndAsset_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"comdex", "tokenmint", "v1beta1", "token-minted-by-app-and-asset", "app_id", "asset_id"}, "", runtime.AssumeColonVerbOpt(false))) ) var ( - forward_Query_QueryAllTokenMintedForAllProducts_0 = runtime.ForwardResponseMessage + forward_Query_QueryAllTokenMintedForAllApps_0 = runtime.ForwardResponseMessage - forward_Query_QueryTokenMintedByProduct_0 = runtime.ForwardResponseMessage + forward_Query_QueryTokenMintedByApp_0 = runtime.ForwardResponseMessage - forward_Query_QueryTokenMintedByProductAndAsset_0 = runtime.ForwardResponseMessage + forward_Query_QueryTokenMintedByAppAndAsset_0 = runtime.ForwardResponseMessage ) diff --git a/x/tokenmint/types/tx.pb.go b/x/tokenmint/types/tx.pb.go index 755c5dc64..bd298c240 100644 --- a/x/tokenmint/types/tx.pb.go +++ b/x/tokenmint/types/tx.pb.go @@ -30,9 +30,9 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package //Will become governance proposal- will trigger token minting & sending type MsgMintNewTokensRequest struct { - From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty" yaml:"from"` - AppMappingId uint64 `protobuf:"varint,2,opt,name=app_mapping_id,json=appMappingId,proto3" json:"app_mapping_id,omitempty" yaml:"app_mapping_id"` - AssetId uint64 `protobuf:"varint,3,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty" yaml:"asset_id"` + From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty" yaml:"from"` + AppId uint64 `protobuf:"varint,2,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty" yaml:"app_id"` + AssetId uint64 `protobuf:"varint,3,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty" yaml:"asset_id"` } func (m *MsgMintNewTokensRequest) Reset() { *m = MsgMintNewTokensRequest{} } @@ -112,29 +112,28 @@ func init() { func init() { proto.RegisterFile("comdex/tokenmint/v1beta1/tx.proto", fileDescriptor_877e0eff92180c18) } var fileDescriptor_877e0eff92180c18 = []byte{ - // 339 bytes of a gzipped FileDescriptorProto + // 327 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x4c, 0xce, 0xcf, 0x4d, 0x49, 0xad, 0xd0, 0x2f, 0xc9, 0xcf, 0x4e, 0xcd, 0xcb, 0xcd, 0xcc, 0x2b, 0xd1, 0x2f, 0x33, 0x4c, 0x4a, 0x2d, 0x49, 0x34, 0xd4, 0x2f, 0xa9, 0xd0, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x92, 0x80, 0x28, 0xd1, 0x83, 0x2b, 0xd1, 0x83, 0x2a, 0x91, 0x12, 0x49, 0xcf, 0x4f, 0xcf, 0x07, 0x2b, 0xd2, - 0x07, 0xb1, 0x20, 0xea, 0x95, 0xf6, 0x33, 0x72, 0x89, 0xfb, 0x16, 0xa7, 0xfb, 0x66, 0xe6, 0x95, + 0x07, 0xb1, 0x20, 0xea, 0x95, 0x16, 0x32, 0x72, 0x89, 0xfb, 0x16, 0xa7, 0xfb, 0x66, 0xe6, 0x95, 0xf8, 0xa5, 0x96, 0x87, 0x80, 0x74, 0x15, 0x07, 0xa5, 0x16, 0x96, 0xa6, 0x16, 0x97, 0x08, 0x29, 0x73, 0xb1, 0xa4, 0x15, 0xe5, 0xe7, 0x4a, 0x30, 0x2a, 0x30, 0x6a, 0x70, 0x3a, 0xf1, 0x7f, 0xba, - 0x27, 0xcf, 0x5d, 0x99, 0x98, 0x9b, 0x63, 0xa5, 0x04, 0x12, 0x55, 0x0a, 0x02, 0x4b, 0x0a, 0xf9, - 0x73, 0xf1, 0x25, 0x16, 0x14, 0xc4, 0xe7, 0x26, 0x16, 0x14, 0x64, 0xe6, 0xa5, 0xc7, 0x67, 0xa6, - 0x48, 0x30, 0x29, 0x30, 0x6a, 0xb0, 0x38, 0x69, 0x3e, 0xba, 0x27, 0xcf, 0xe3, 0x58, 0x50, 0xe0, - 0x0b, 0x91, 0xf0, 0x4c, 0xf9, 0x74, 0x4f, 0x5e, 0x14, 0xa2, 0x1d, 0x55, 0xbd, 0x52, 0x10, 0x4f, - 0x22, 0x92, 0x32, 0x21, 0x3d, 0x2e, 0x8e, 0xc4, 0xe2, 0xe2, 0xd4, 0x12, 0x90, 0x51, 0xcc, 0x60, - 0xa3, 0x84, 0x3f, 0xdd, 0x93, 0xe7, 0x87, 0x6a, 0x85, 0xca, 0x28, 0x05, 0xb1, 0x83, 0x99, 0x9e, - 0x29, 0x4a, 0x52, 0x5c, 0x12, 0x98, 0x1e, 0x28, 0x2e, 0xc8, 0xcf, 0x2b, 0x4e, 0x35, 0x6a, 0x60, - 0xe4, 0x62, 0xf6, 0x2d, 0x4e, 0x17, 0xaa, 0xe4, 0x12, 0x40, 0x57, 0x23, 0x64, 0xa8, 0x87, 0x2b, - 0xa8, 0xf4, 0x70, 0x04, 0x88, 0x94, 0x11, 0x29, 0x5a, 0x20, 0x4e, 0x70, 0x0a, 0x3d, 0xf1, 0x50, - 0x8e, 0x61, 0xc5, 0x23, 0x39, 0x86, 0x13, 0x8f, 0xe4, 0x18, 0x2f, 0x3c, 0x92, 0x63, 0x7c, 0xf0, - 0x48, 0x8e, 0x71, 0xc2, 0x63, 0x39, 0x86, 0x0b, 0x8f, 0xe5, 0x18, 0x6e, 0x3c, 0x96, 0x63, 0x88, - 0x32, 0x4e, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0x02, 0x99, 0xad, 0x0f, 0x31, 0x5f, 0x37, 0x3f, 0x2d, - 0x2d, 0x33, 0x39, 0x33, 0x31, 0x07, 0xca, 0xd7, 0x47, 0x8e, 0xf2, 0x92, 0xca, 0x82, 0xd4, 0xe2, - 0x24, 0x36, 0x70, 0xf4, 0x19, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0x97, 0xa0, 0xc4, 0x77, 0x13, - 0x02, 0x00, 0x00, + 0x27, 0xcf, 0x5d, 0x99, 0x98, 0x9b, 0x63, 0xa5, 0x04, 0x12, 0x55, 0x0a, 0x02, 0x4b, 0x0a, 0x19, + 0x72, 0xb1, 0x25, 0x16, 0x14, 0xc4, 0x67, 0xa6, 0x48, 0x30, 0x29, 0x30, 0x6a, 0xb0, 0x38, 0x49, + 0x3d, 0xba, 0x27, 0xcf, 0xea, 0x58, 0x50, 0xe0, 0x99, 0xf2, 0xe9, 0x9e, 0x3c, 0x2f, 0x44, 0x3d, + 0x44, 0x81, 0x52, 0x10, 0x6b, 0x22, 0x48, 0x5c, 0x48, 0x8f, 0x8b, 0x23, 0xb1, 0xb8, 0x38, 0xb5, + 0x04, 0xa4, 0x89, 0x19, 0xac, 0x49, 0xf8, 0xd3, 0x3d, 0x79, 0x7e, 0xa8, 0x5a, 0xa8, 0x8c, 0x52, + 0x10, 0x3b, 0x98, 0xe9, 0x99, 0xa2, 0x24, 0xc5, 0x25, 0x81, 0xe9, 0xc4, 0xe2, 0x82, 0xfc, 0xbc, + 0xe2, 0x54, 0xa3, 0x06, 0x46, 0x2e, 0x66, 0xdf, 0xe2, 0x74, 0xa1, 0x4a, 0x2e, 0x01, 0x74, 0x35, + 0x42, 0x86, 0x7a, 0xb8, 0x02, 0x43, 0x0f, 0x87, 0x97, 0xa5, 0x8c, 0x48, 0xd1, 0x02, 0x71, 0x82, + 0x53, 0xe8, 0x89, 0x87, 0x72, 0x0c, 0x2b, 0x1e, 0xc9, 0x31, 0x9c, 0x78, 0x24, 0xc7, 0x78, 0xe1, + 0x91, 0x1c, 0xe3, 0x83, 0x47, 0x72, 0x8c, 0x13, 0x1e, 0xcb, 0x31, 0x5c, 0x78, 0x2c, 0xc7, 0x70, + 0xe3, 0xb1, 0x1c, 0x43, 0x94, 0x71, 0x7a, 0x66, 0x49, 0x46, 0x69, 0x12, 0xc8, 0x6c, 0x7d, 0x88, + 0xf9, 0xba, 0xf9, 0x69, 0x69, 0x99, 0xc9, 0x99, 0x89, 0x39, 0x50, 0xbe, 0x3e, 0x72, 0xa4, 0x96, + 0x54, 0x16, 0xa4, 0x16, 0x27, 0xb1, 0x81, 0x23, 0xc8, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0x9d, + 0xb1, 0xb2, 0x47, 0xf5, 0x01, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -242,8 +241,8 @@ func (m *MsgMintNewTokensRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) i-- dAtA[i] = 0x18 } - if m.AppMappingId != 0 { - i = encodeVarintTx(dAtA, i, uint64(m.AppMappingId)) + if m.AppId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.AppId)) i-- dAtA[i] = 0x10 } @@ -301,8 +300,8 @@ func (m *MsgMintNewTokensRequest) Size() (n int) { if l > 0 { n += 1 + l + sovTx(uint64(l)) } - if m.AppMappingId != 0 { - n += 1 + sovTx(uint64(m.AppMappingId)) + if m.AppId != 0 { + n += 1 + sovTx(uint64(m.AppId)) } if m.AssetId != 0 { n += 1 + sovTx(uint64(m.AssetId)) @@ -388,9 +387,9 @@ func (m *MsgMintNewTokensRequest) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AppMappingId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AppId", wireType) } - m.AppMappingId = 0 + m.AppId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -400,7 +399,7 @@ func (m *MsgMintNewTokensRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.AppMappingId |= uint64(b&0x7F) << shift + m.AppId |= uint64(b&0x7F) << shift if b < 0x80 { break } From 530b397efcf79d33ebc3ca4a21425118aef66afc Mon Sep 17 00:00:00 2001 From: Chandragupta Singh Date: Wed, 29 Jun 2022 04:25:30 +0530 Subject: [PATCH 5/5] collector naming changed --- .../comdex/collector/v1beta1/collector.proto | 14 - proto/comdex/collector/v1beta1/query.proto | 28 +- x/collector/client/cli/query.go | 38 +- x/collector/keeper/grpc_query.go | 28 +- x/collector/types/collector.pb.go | 575 +++--------------- x/collector/types/query.pb.go | 483 ++++++++------- x/collector/types/query.pb.gw.go | 88 +-- 7 files changed, 396 insertions(+), 858 deletions(-) diff --git a/proto/comdex/collector/v1beta1/collector.proto b/proto/comdex/collector/v1beta1/collector.proto index 7ba08ae96..04634dbe1 100644 --- a/proto/comdex/collector/v1beta1/collector.proto +++ b/proto/comdex/collector/v1beta1/collector.proto @@ -97,20 +97,6 @@ message AppToDenomsMapping { repeated uint64 asset_ids = 2 [(gogoproto.moretags) = "yaml:\"asset_ids\""]; } -/////////////////////////////////////////////////////////2222222222222 - - -message HistoricalAuction { - uint64 app_id = 1 [(gogoproto.moretags) = "yaml:\"app_id\""]; - repeated AssetToAuctionMapping asset_to_auction = 2 [(gogoproto.moretags) = "yaml:\"asset_to_auction\""]; -} - -message AssetToAuctionMapping { - uint64 auctionId = 1 [(gogoproto.moretags) = "yaml:\"auction_id\""]; - repeated string asset_denoms = 2 [(gogoproto.moretags) = "yaml:\"asset_denoms\""]; -} - -////////////////////////////////////////////////////////33333333333333 // key app id -> assets traverse this one message CollectorAuctionLookupTable { diff --git a/proto/comdex/collector/v1beta1/query.proto b/proto/comdex/collector/v1beta1/query.proto index 5f78a78fd..df33baa11 100644 --- a/proto/comdex/collector/v1beta1/query.proto +++ b/proto/comdex/collector/v1beta1/query.proto @@ -15,20 +15,20 @@ service Query { rpc Params(QueryParamsRequest) returns (QueryParamsResponse) { option (google.api.http).get = "/comdex-official/comdex/collector/params"; } - rpc QueryCollectorLookupByProduct(QueryCollectorLookupByProductRequest) returns (QueryCollectorLookupByProductResponse) { - option (google.api.http).get = "/comdex/collector/v1beta1/collector-lookup-by-product/{app_id}"; + rpc QueryCollectorLookupByApp(QueryCollectorLookupByAppRequest) returns (QueryCollectorLookupByAppResponse) { + option (google.api.http).get = "/comdex/collector/v1beta1/collector-lookup-by-app/{app_id}"; }; - rpc QueryCollectorLookupByProductAndAsset(QueryCollectorLookupByProductAndAssetRequest) returns (QueryCollectorLookupByProductAndAssetResponse) { - option (google.api.http).get = "/comdex/collector/v1beta1/collector-lookup-by-product-and-asset/{app_id}/{asset_id}"; + rpc QueryCollectorLookupByAppAndAsset(QueryCollectorLookupByAppAndAssetRequest) returns (QueryCollectorLookupByAppAndAssetResponse) { + option (google.api.http).get = "/comdex/collector/v1beta1/collector-lookup-by-app-and-asset/{app_id}/{asset_id}"; }; - rpc QueryCollectorDataByProductAndAsset(QueryCollectorDataByProductAndAssetRequest) returns (QueryCollectorDataByProductAndAssetResponse) { - option (google.api.http).get = "/comdex/collector/v1beta1/collector-data-by-product-and-asset/{app_id}/{asset_id}"; + rpc QueryCollectorDataByAppAndAsset(QueryCollectorDataByAppAndAssetRequest) returns (QueryCollectorDataByAppAndAssetResponse) { + option (google.api.http).get = "/comdex/collector/v1beta1/collector-data-by-app-and-asset/{app_id}/{asset_id}"; }; rpc QueryAuctionMappingForAppAndAsset(QueryAuctionMappingForAppAndAssetRequest) returns (QueryAuctionMappingForAppAndAssetResponse) { - option (google.api.http).get = "/comdex/collector/v1beta1/auction-data-by-product-and-asset/{app_id}/{asset_id}"; + option (google.api.http).get = "/comdex/collector/v1beta1/auction-data-by-app-and-asset/{app_id}/{asset_id}"; }; rpc QueryNetFeeCollectedForAppAndAsset(QueryNetFeeCollectedForAppAndAssetRequest) returns (QueryNetFeeCollectedForAppAndAssetResponse) { - option (google.api.http).get = "/comdex/collector/v1beta1/net-fee-data-by-product-and-asset/{app_id}/{asset_id}"; + option (google.api.http).get = "/comdex/collector/v1beta1/net-fee-data-by-app-and-asset/{app_id}/{asset_id}"; }; // this line is used by starport scaffolding # 2 @@ -45,31 +45,31 @@ message QueryParamsResponse { // this line is used by starport scaffolding # 3 -message QueryCollectorLookupByProductRequest { +message QueryCollectorLookupByAppRequest { uint64 app_id = 1 [ (gogoproto.moretags) = "yaml:\"app_id\"" ]; } -message QueryCollectorLookupByProductResponse { +message QueryCollectorLookupByAppResponse { repeated CollectorLookupTable collectorLookup = 1 [ (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"collectorLookup\"" ]; } -message QueryCollectorLookupByProductAndAssetRequest { +message QueryCollectorLookupByAppAndAssetRequest { uint64 app_id = 1 [ (gogoproto.moretags) = "yaml:\"app_id\"" ]; uint64 asset_id = 2 [ (gogoproto.moretags) = "yaml:\"asset_id\"" ]; } -message QueryCollectorLookupByProductAndAssetResponse { +message QueryCollectorLookupByAppAndAssetResponse { CollectorLookupTable collectorLookup = 1 [ (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"collectorLookup\"" ]; } -message QueryCollectorDataByProductAndAssetRequest { +message QueryCollectorDataByAppAndAssetRequest { uint64 app_id = 1 [ (gogoproto.moretags) = "yaml:\"app_id\"" ]; uint64 asset_id = 2 [ (gogoproto.moretags) = "yaml:\"asset_id\"" ]; } -message QueryCollectorDataByProductAndAssetResponse { +message QueryCollectorDataByAppAndAssetResponse { CollectorData collectorData = 1 [ (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"collectorData\"" ]; diff --git a/x/collector/client/cli/query.go b/x/collector/client/cli/query.go index 44682ef6e..3afbb2b82 100644 --- a/x/collector/client/cli/query.go +++ b/x/collector/client/cli/query.go @@ -26,9 +26,9 @@ func GetQueryCmd(queryRoute string) *cobra.Command { } cmd.AddCommand(CmdQueryParams(), - QueryCollectorLookupByProduct(), - QueryCollectorLookupByProductAndAsset(), - QueryCollectorDataByProductAndAsset(), + QueryCollectorLookupByApp(), + QueryCollectorLookupByAppAndAsset(), + QueryCollectorDataByAppAndAsset(), QueryAuctionMappingForAppAndAsset(), QueryNetFeeCollectedForAppAndAsset()) @@ -36,10 +36,10 @@ func GetQueryCmd(queryRoute string) *cobra.Command { } // QueryCollectorLookupByProduct query collector store by product -func QueryCollectorLookupByProduct() *cobra.Command { +func QueryCollectorLookupByApp() *cobra.Command { cmd := &cobra.Command{ - Use: "collector-lookup-by-product [app-id]", - Short: "collector lookup for a product", + Use: "collector-lookup-by-app [app-id]", + Short: "Query collector lookup for a app", Args: cobra.ExactArgs(1), RunE: func(cmd *cobra.Command, args []string) error { ctx, err := client.GetClientQueryContext(cmd) @@ -53,7 +53,7 @@ func QueryCollectorLookupByProduct() *cobra.Command { queryClient := types.NewQueryClient(ctx) - res, err := queryClient.QueryCollectorLookupByProduct(cmd.Context(), &types.QueryCollectorLookupByProductRequest{ + res, err := queryClient.QueryCollectorLookupByApp(cmd.Context(), &types.QueryCollectorLookupByAppRequest{ AppId: appID, }) @@ -69,10 +69,10 @@ func QueryCollectorLookupByProduct() *cobra.Command { } // QueryCollectorLookupByProductAndAsset query collector store by product and asset -func QueryCollectorLookupByProductAndAsset() *cobra.Command { +func QueryCollectorLookupByAppAndAsset() *cobra.Command { cmd := &cobra.Command{ - Use: "collector-lookup-by-product-and-asset [app-id] [asset-id]", - Short: "collector lookup for a product by asset id", + Use: "collector-lookup-by-app-and-asset [app-id] [asset-id]", + Short: "Query collector lookup for an app by asset id", Args: cobra.ExactArgs(2), RunE: func(cmd *cobra.Command, args []string) error { ctx, err := client.GetClientQueryContext(cmd) @@ -90,7 +90,7 @@ func QueryCollectorLookupByProductAndAsset() *cobra.Command { queryClient := types.NewQueryClient(ctx) - res, err := queryClient.QueryCollectorLookupByProductAndAsset(cmd.Context(), &types.QueryCollectorLookupByProductAndAssetRequest{ + res, err := queryClient.QueryCollectorLookupByAppAndAsset(cmd.Context(), &types.QueryCollectorLookupByAppAndAssetRequest{ AppId: appID, AssetId: assetID, }) @@ -107,10 +107,10 @@ func QueryCollectorLookupByProductAndAsset() *cobra.Command { } // QueryCollectorDataByProductAndAsset query collector store by product -func QueryCollectorDataByProductAndAsset() *cobra.Command { +func QueryCollectorDataByAppAndAsset() *cobra.Command { cmd := &cobra.Command{ - Use: "collector-data-by-product-and-asset [app-id] [asset_id]", - Short: "collector data for a product and asset", + Use: "collector-data-by-app-and-asset [app-id] [asset_id]", + Short: "Query collector data for an app and asset", Args: cobra.ExactArgs(2), RunE: func(cmd *cobra.Command, args []string) error { ctx, err := client.GetClientQueryContext(cmd) @@ -128,7 +128,7 @@ func QueryCollectorDataByProductAndAsset() *cobra.Command { queryClient := types.NewQueryClient(ctx) - res, err := queryClient.QueryCollectorDataByProductAndAsset(cmd.Context(), &types.QueryCollectorDataByProductAndAssetRequest{ + res, err := queryClient.QueryCollectorDataByAppAndAsset(cmd.Context(), &types.QueryCollectorDataByAppAndAssetRequest{ AppId: appID, AssetId: assetID, }) @@ -146,8 +146,8 @@ func QueryCollectorDataByProductAndAsset() *cobra.Command { func QueryAuctionMappingForAppAndAsset() *cobra.Command { cmd := &cobra.Command{ - Use: "auction-data-by-product-and-asset [app-id] [asset_id]", - Short: "auction data for a product and asset", + Use: "auction-data-by-app-and-asset [app-id] [asset_id]", + Short: "Query auction data for an app and asset", Args: cobra.ExactArgs(2), RunE: func(cmd *cobra.Command, args []string) error { ctx, err := client.GetClientQueryContext(cmd) @@ -183,8 +183,8 @@ func QueryAuctionMappingForAppAndAsset() *cobra.Command { func QueryNetFeeCollectedForAppAndAsset() *cobra.Command { cmd := &cobra.Command{ - Use: "net-fee-data-by-product-by-asset [app-id] [asset-id]", - Short: "net fee data for a product and asset", + Use: "net-fee-data-by-app-by-asset [app-id] [asset-id]", + Short: "Query net fee data for an app and asset", Args: cobra.ExactArgs(2), RunE: func(cmd *cobra.Command, args []string) error { ctx, err := client.GetClientQueryContext(cmd) diff --git a/x/collector/keeper/grpc_query.go b/x/collector/keeper/grpc_query.go index c5f93dcc0..eac891e57 100644 --- a/x/collector/keeper/grpc_query.go +++ b/x/collector/keeper/grpc_query.go @@ -23,7 +23,7 @@ func NewQueryServer(k Keeper) types.QueryServer { } } -func (q *QueryServer) QueryCollectorLookupByProduct(c context.Context, req *types.QueryCollectorLookupByProductRequest) (*types.QueryCollectorLookupByProductResponse, error) { +func (q *QueryServer) QueryCollectorLookupByApp(c context.Context, req *types.QueryCollectorLookupByAppRequest) (*types.QueryCollectorLookupByAppResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "request cannot be empty") } @@ -37,15 +37,15 @@ func (q *QueryServer) QueryCollectorLookupByProduct(c context.Context, req *type collectorLookupData, found := q.GetCollectorLookupTable(ctx, req.AppId) if !found { - return &types.QueryCollectorLookupByProductResponse{}, nil + return &types.QueryCollectorLookupByAppResponse{}, nil } - return &types.QueryCollectorLookupByProductResponse{ + return &types.QueryCollectorLookupByAppResponse{ CollectorLookup: collectorLookupData.AssetRateInfo, }, nil } -func (q *QueryServer) QueryCollectorLookupByProductAndAsset(c context.Context, req *types.QueryCollectorLookupByProductAndAssetRequest) (*types.QueryCollectorLookupByProductAndAssetResponse, error) { +func (q *QueryServer) QueryCollectorLookupByAppAndAsset(c context.Context, req *types.QueryCollectorLookupByAppAndAssetRequest) (*types.QueryCollectorLookupByAppAndAssetResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "request cannot be empty") } @@ -59,15 +59,15 @@ func (q *QueryServer) QueryCollectorLookupByProductAndAsset(c context.Context, r collectorLookupData, found := q.GetCollectorLookupByAsset(ctx, req.AppId, req.AssetId) if !found { - return &types.QueryCollectorLookupByProductAndAssetResponse{}, nil + return &types.QueryCollectorLookupByAppAndAssetResponse{}, nil } - return &types.QueryCollectorLookupByProductAndAssetResponse{ + return &types.QueryCollectorLookupByAppAndAssetResponse{ CollectorLookup: collectorLookupData, }, nil } -func (q *QueryServer) QueryCollectorDataByProductAndAsset(c context.Context, req *types.QueryCollectorDataByProductAndAssetRequest) (*types.QueryCollectorDataByProductAndAssetResponse, error) { +func (q *QueryServer) QueryCollectorDataByAppAndAsset(c context.Context, req *types.QueryCollectorDataByAppAndAssetRequest) (*types.QueryCollectorDataByAppAndAssetResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "request cannot be empty") } @@ -90,7 +90,7 @@ func (q *QueryServer) QueryCollectorDataByProductAndAsset(c context.Context, req } } - return &types.QueryCollectorDataByProductAndAssetResponse{ + return &types.QueryCollectorDataByAppAndAssetResponse{ CollectorData: collectorData, }, nil } @@ -147,14 +147,4 @@ func (q *QueryServer) QueryNetFeeCollectedForAppAndAsset(c context.Context, req return &types.QueryNetFeeCollectedForAppAndAssetResponse{ AssetIdToFeeCollected: assetIDToFeeCollected, }, nil -} - -func (k Keeper) QueryCollectorLookupByProduct(ctx context.Context, request *types.QueryCollectorLookupByProductRequest) (*types.QueryCollectorLookupByProductResponse, error) { - //TODO implement me - panic("implement me") -} - -func (k Keeper) QueryCollectorLookupByProductAndAsset(ctx context.Context, request *types.QueryCollectorLookupByProductAndAssetRequest) (*types.QueryCollectorLookupByProductAndAssetResponse, error) { - //TODO implement me - panic("implement me") -} +} \ No newline at end of file diff --git a/x/collector/types/collector.pb.go b/x/collector/types/collector.pb.go index f015594e3..e684b7e6b 100644 --- a/x/collector/types/collector.pb.go +++ b/x/collector/types/collector.pb.go @@ -463,110 +463,6 @@ func (m *AppToDenomsMapping) GetAssetIds() []uint64 { return nil } -type HistoricalAuction struct { - AppId uint64 `protobuf:"varint,1,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty" yaml:"app_id"` - AssetToAuction []*AssetToAuctionMapping `protobuf:"bytes,2,rep,name=asset_to_auction,json=assetToAuction,proto3" json:"asset_to_auction,omitempty" yaml:"asset_to_auction"` -} - -func (m *HistoricalAuction) Reset() { *m = HistoricalAuction{} } -func (m *HistoricalAuction) String() string { return proto.CompactTextString(m) } -func (*HistoricalAuction) ProtoMessage() {} -func (*HistoricalAuction) Descriptor() ([]byte, []int) { - return fileDescriptor_f18765a8dff2a43b, []int{8} -} -func (m *HistoricalAuction) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *HistoricalAuction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_HistoricalAuction.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 *HistoricalAuction) XXX_Merge(src proto.Message) { - xxx_messageInfo_HistoricalAuction.Merge(m, src) -} -func (m *HistoricalAuction) XXX_Size() int { - return m.Size() -} -func (m *HistoricalAuction) XXX_DiscardUnknown() { - xxx_messageInfo_HistoricalAuction.DiscardUnknown(m) -} - -var xxx_messageInfo_HistoricalAuction proto.InternalMessageInfo - -func (m *HistoricalAuction) GetAppId() uint64 { - if m != nil { - return m.AppId - } - return 0 -} - -func (m *HistoricalAuction) GetAssetToAuction() []*AssetToAuctionMapping { - if m != nil { - return m.AssetToAuction - } - return nil -} - -type AssetToAuctionMapping struct { - AuctionId uint64 `protobuf:"varint,1,opt,name=auctionId,proto3" json:"auctionId,omitempty" yaml:"auction_id"` - AssetDenoms []string `protobuf:"bytes,2,rep,name=asset_denoms,json=assetDenoms,proto3" json:"asset_denoms,omitempty" yaml:"asset_denoms"` -} - -func (m *AssetToAuctionMapping) Reset() { *m = AssetToAuctionMapping{} } -func (m *AssetToAuctionMapping) String() string { return proto.CompactTextString(m) } -func (*AssetToAuctionMapping) ProtoMessage() {} -func (*AssetToAuctionMapping) Descriptor() ([]byte, []int) { - return fileDescriptor_f18765a8dff2a43b, []int{9} -} -func (m *AssetToAuctionMapping) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AssetToAuctionMapping) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AssetToAuctionMapping.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 *AssetToAuctionMapping) XXX_Merge(src proto.Message) { - xxx_messageInfo_AssetToAuctionMapping.Merge(m, src) -} -func (m *AssetToAuctionMapping) XXX_Size() int { - return m.Size() -} -func (m *AssetToAuctionMapping) XXX_DiscardUnknown() { - xxx_messageInfo_AssetToAuctionMapping.DiscardUnknown(m) -} - -var xxx_messageInfo_AssetToAuctionMapping proto.InternalMessageInfo - -func (m *AssetToAuctionMapping) GetAuctionId() uint64 { - if m != nil { - return m.AuctionId - } - return 0 -} - -func (m *AssetToAuctionMapping) GetAssetDenoms() []string { - if m != nil { - return m.AssetDenoms - } - return nil -} - // key app id -> assets traverse this one type CollectorAuctionLookupTable struct { AppId uint64 `protobuf:"varint,1,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty" yaml:"app_id"` @@ -577,7 +473,7 @@ func (m *CollectorAuctionLookupTable) Reset() { *m = CollectorAuctionLoo func (m *CollectorAuctionLookupTable) String() string { return proto.CompactTextString(m) } func (*CollectorAuctionLookupTable) ProtoMessage() {} func (*CollectorAuctionLookupTable) Descriptor() ([]byte, []int) { - return fileDescriptor_f18765a8dff2a43b, []int{10} + return fileDescriptor_f18765a8dff2a43b, []int{8} } func (m *CollectorAuctionLookupTable) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -633,7 +529,7 @@ func (m *AssetIdToAuctionLookupTable) Reset() { *m = AssetIdToAuctionLoo func (m *AssetIdToAuctionLookupTable) String() string { return proto.CompactTextString(m) } func (*AssetIdToAuctionLookupTable) ProtoMessage() {} func (*AssetIdToAuctionLookupTable) Descriptor() ([]byte, []int) { - return fileDescriptor_f18765a8dff2a43b, []int{11} + return fileDescriptor_f18765a8dff2a43b, []int{9} } func (m *AssetIdToAuctionLookupTable) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -713,8 +609,6 @@ func init() { proto.RegisterType((*CollectorLookupTable)(nil), "comdex.collector.v1beta1.CollectorLookupTable") proto.RegisterType((*CollectorLookup)(nil), "comdex.collector.v1beta1.CollectorLookup") proto.RegisterType((*AppToDenomsMapping)(nil), "comdex.collector.v1beta1.AppToDenomsMapping") - proto.RegisterType((*HistoricalAuction)(nil), "comdex.collector.v1beta1.HistoricalAuction") - proto.RegisterType((*AssetToAuctionMapping)(nil), "comdex.collector.v1beta1.AssetToAuctionMapping") proto.RegisterType((*CollectorAuctionLookupTable)(nil), "comdex.collector.v1beta1.CollectorAuctionLookupTable") proto.RegisterType((*AssetIdToAuctionLookupTable)(nil), "comdex.collector.v1beta1.AssetIdToAuctionLookupTable") } @@ -724,82 +618,76 @@ func init() { } var fileDescriptor_f18765a8dff2a43b = []byte{ - // 1192 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x57, 0xcd, 0x6e, 0x1b, 0x37, - 0x10, 0xf6, 0xfa, 0x5f, 0x74, 0x1d, 0xc9, 0x6b, 0x3b, 0x56, 0xfc, 0xa3, 0x75, 0x88, 0xa2, 0x55, - 0x0f, 0x91, 0xe0, 0x18, 0xbd, 0x04, 0x3d, 0xd4, 0xb2, 0x61, 0x44, 0x70, 0x12, 0x07, 0xb4, 0x90, - 0x43, 0x2f, 0x04, 0xb5, 0x4b, 0xdb, 0x84, 0xd7, 0xe2, 0x66, 0x49, 0xb9, 0x95, 0x8f, 0x3d, 0xe5, - 0xd6, 0x1e, 0x8b, 0x3e, 0x42, 0xaf, 0x6d, 0x1f, 0xa0, 0x45, 0x0e, 0x39, 0xa6, 0xb7, 0xa2, 0x87, - 0x45, 0x61, 0xbf, 0x81, 0x9e, 0xa0, 0x58, 0x72, 0xff, 0x24, 0xd9, 0xa9, 0xb7, 0xe8, 0x49, 0xe2, - 0x37, 0xc3, 0x6f, 0x3e, 0xce, 0x0c, 0x87, 0x12, 0xa8, 0xda, 0xfc, 0xdc, 0xa1, 0xdf, 0xd4, 0x6d, - 0xee, 0xba, 0xd4, 0x96, 0xdc, 0xaf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6a, 0x7a, 0xf7, 0x86, 0x1c, 0x20, 0x9a, 0x67, 0x62, 0x8f, 0xb6, 0x65, 0xcc, - 0xf1, 0x14, 0x2c, 0xb0, 0x24, 0x08, 0x26, 0xb6, 0x64, 0x17, 0x54, 0xbd, 0x05, 0xb3, 0xd9, 0xb7, - 0x60, 0xc4, 0x05, 0xa2, 0x22, 0x8b, 0x75, 0xec, 0x28, 0xc4, 0x7c, 0x15, 0x15, 0x11, 0xf3, 0xae, - 0xc4, 0xdc, 0x27, 0xb6, 0x4b, 0xb1, 0xe7, 0x33, 0x9b, 0x96, 0x8b, 0x8a, 0xee, 0x61, 0x3f, 0xb0, - 0x36, 0xb2, 0x89, 0x19, 0xf6, 0x83, 0x68, 0x51, 0x19, 0x0e, 0xbb, 0xf2, 0x50, 0xc1, 0x2f, 0x43, - 0x34, 0x3c, 0x65, 0xea, 0xaf, 0x09, 0x4b, 0x2a, 0xd3, 0xab, 0xc3, 0x13, 0x26, 0x71, 0x88, 0x27, - 0xcc, 0x61, 0x57, 0x2a, 0x8e, 0xc6, 0xf3, 0x77, 0x57, 0x15, 0xe3, 0xfd, 0x55, 0xc5, 0xf8, 0xfb, - 0xaa, 0x62, 0x7c, 0x7f, 0x5d, 0x19, 0x7b, 0x7f, 0x5d, 0x19, 0xfb, 0xf3, 0xba, 0x32, 0xf6, 0xd5, - 0xf6, 0xc0, 0xdc, 0x0e, 0x9b, 0xec, 0x11, 0x3f, 0x3e, 0x66, 0x36, 0x23, 0x6e, 0xb4, 0xae, 0x67, - 0xff, 0xb0, 0xa9, 0x41, 0xde, 0x9e, 0x56, 0xff, 0xba, 0xb6, 0xff, 0x09, 0x00, 0x00, 0xff, 0xff, - 0xb3, 0x4c, 0xc3, 0xe8, 0xd1, 0x0d, 0x00, 0x00, + // 1099 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x57, 0xcb, 0x6e, 0xdb, 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, 0x06, 0x15, 0x26, 0xb0, + 0x6e, 0xe6, 0x8c, 0x69, 0x42, 0x33, 0xad, 0xe6, 0x8d, 0x33, 0xe4, 0x00, 0xd1, 0x02, 0x13, 0xbb, + 0xb4, 0x23, 0x33, 0x8e, 0x2f, 0xc0, 0x22, 0x33, 0x41, 0x30, 0x71, 0x25, 0xbb, 0xa4, 0x7a, 0x91, + 0xcd, 0x16, 0x17, 0xd9, 0x88, 0x0b, 0x44, 0x15, 0x96, 0xe9, 0xd8, 0xd6, 0x88, 0xfd, 0x2a, 0x2d, + 0x22, 0xe6, 0x5d, 0x89, 0x79, 0x44, 0x5c, 0x9f, 0xe2, 0x30, 0x62, 0x2e, 0x75, 0x2a, 0x9a, 0xee, + 0x51, 0x3f, 0xae, 0x6f, 0x14, 0x13, 0x33, 0xec, 0x07, 0xd1, 0x92, 0x36, 0x1c, 0x76, 0xe5, 0xa1, + 0x86, 0x5f, 0x2a, 0x54, 0xdd, 0x32, 0xf7, 0x4f, 0x08, 0xab, 0x3a, 0xd3, 0xab, 0xc3, 0xe3, 0x61, + 0x1c, 0xb2, 0xf1, 0x38, 0xec, 0x4a, 0xcd, 0xd1, 0x7e, 0xfe, 0xf6, 0xba, 0x66, 0xbd, 0xbb, 0xae, + 0x59, 0x7f, 0x5d, 0xd7, 0xac, 0xef, 0x6f, 0x6a, 0x63, 0xef, 0x6e, 0x6a, 0x63, 0x7f, 0xdc, 0xd4, + 0xc6, 0xbe, 0x7c, 0x3a, 0xb0, 0x74, 0x54, 0x93, 0x3d, 0xe6, 0x27, 0x27, 0xcc, 0x65, 0xc4, 0x4f, + 0x9f, 0x5b, 0xc5, 0xaf, 0x0d, 0xbd, 0x85, 0x3a, 0xd3, 0xfa, 0x93, 0xe1, 0xe9, 0xdf, 0x01, 0x00, + 0x00, 0xff, 0xff, 0xf4, 0x28, 0x9f, 0x42, 0x8e, 0x0c, 0x00, 0x00, } func (m *CollectorData) Marshal() (dAtA []byte, err error) { @@ -1191,85 +1079,6 @@ func (m *AppToDenomsMapping) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *HistoricalAuction) 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 *HistoricalAuction) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HistoricalAuction) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.AssetToAuction) > 0 { - for iNdEx := len(m.AssetToAuction) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.AssetToAuction[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCollector(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if m.AppId != 0 { - i = encodeVarintCollector(dAtA, i, uint64(m.AppId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *AssetToAuctionMapping) 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 *AssetToAuctionMapping) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AssetToAuctionMapping) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.AssetDenoms) > 0 { - for iNdEx := len(m.AssetDenoms) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.AssetDenoms[iNdEx]) - copy(dAtA[i:], m.AssetDenoms[iNdEx]) - i = encodeVarintCollector(dAtA, i, uint64(len(m.AssetDenoms[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - if m.AuctionId != 0 { - i = encodeVarintCollector(dAtA, i, uint64(m.AuctionId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - func (m *CollectorAuctionLookupTable) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -1550,42 +1359,6 @@ func (m *AppToDenomsMapping) Size() (n int) { return n } -func (m *HistoricalAuction) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.AppId != 0 { - n += 1 + sovCollector(uint64(m.AppId)) - } - if len(m.AssetToAuction) > 0 { - for _, e := range m.AssetToAuction { - l = e.Size() - n += 1 + l + sovCollector(uint64(l)) - } - } - return n -} - -func (m *AssetToAuctionMapping) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.AuctionId != 0 { - n += 1 + sovCollector(uint64(m.AuctionId)) - } - if len(m.AssetDenoms) > 0 { - for _, s := range m.AssetDenoms { - l = len(s) - n += 1 + l + sovCollector(uint64(l)) - } - } - return n -} - func (m *CollectorAuctionLookupTable) Size() (n int) { if m == nil { return 0 @@ -2733,210 +2506,6 @@ func (m *AppToDenomsMapping) Unmarshal(dAtA []byte) error { } return nil } -func (m *HistoricalAuction) 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 ErrIntOverflowCollector - } - 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: HistoricalAuction: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: HistoricalAuction: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AppId", wireType) - } - m.AppId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCollector - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.AppId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AssetToAuction", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCollector - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthCollector - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCollector - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AssetToAuction = append(m.AssetToAuction, &AssetToAuctionMapping{}) - if err := m.AssetToAuction[len(m.AssetToAuction)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCollector(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCollector - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AssetToAuctionMapping) 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 ErrIntOverflowCollector - } - 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: AssetToAuctionMapping: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AssetToAuctionMapping: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AuctionId", wireType) - } - m.AuctionId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCollector - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.AuctionId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AssetDenoms", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCollector - } - 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 ErrInvalidLengthCollector - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCollector - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AssetDenoms = append(m.AssetDenoms, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCollector(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCollector - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} func (m *CollectorAuctionLookupTable) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 diff --git a/x/collector/types/query.pb.go b/x/collector/types/query.pb.go index 9aed7a9f4..3ab6150de 100644 --- a/x/collector/types/query.pb.go +++ b/x/collector/types/query.pb.go @@ -112,22 +112,22 @@ func (m *QueryParamsResponse) GetParams() Params { return Params{} } -type QueryCollectorLookupByProductRequest struct { +type QueryCollectorLookupByAppRequest struct { AppId uint64 `protobuf:"varint,1,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty" yaml:"app_id"` } -func (m *QueryCollectorLookupByProductRequest) Reset() { *m = QueryCollectorLookupByProductRequest{} } -func (m *QueryCollectorLookupByProductRequest) String() string { return proto.CompactTextString(m) } -func (*QueryCollectorLookupByProductRequest) ProtoMessage() {} -func (*QueryCollectorLookupByProductRequest) Descriptor() ([]byte, []int) { +func (m *QueryCollectorLookupByAppRequest) Reset() { *m = QueryCollectorLookupByAppRequest{} } +func (m *QueryCollectorLookupByAppRequest) String() string { return proto.CompactTextString(m) } +func (*QueryCollectorLookupByAppRequest) ProtoMessage() {} +func (*QueryCollectorLookupByAppRequest) Descriptor() ([]byte, []int) { return fileDescriptor_1d4bd1f010dddda3, []int{2} } -func (m *QueryCollectorLookupByProductRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryCollectorLookupByAppRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryCollectorLookupByProductRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryCollectorLookupByAppRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryCollectorLookupByProductRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryCollectorLookupByAppRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -137,41 +137,41 @@ func (m *QueryCollectorLookupByProductRequest) XXX_Marshal(b []byte, determinist return b[:n], nil } } -func (m *QueryCollectorLookupByProductRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryCollectorLookupByProductRequest.Merge(m, src) +func (m *QueryCollectorLookupByAppRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryCollectorLookupByAppRequest.Merge(m, src) } -func (m *QueryCollectorLookupByProductRequest) XXX_Size() int { +func (m *QueryCollectorLookupByAppRequest) XXX_Size() int { return m.Size() } -func (m *QueryCollectorLookupByProductRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryCollectorLookupByProductRequest.DiscardUnknown(m) +func (m *QueryCollectorLookupByAppRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryCollectorLookupByAppRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryCollectorLookupByProductRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryCollectorLookupByAppRequest proto.InternalMessageInfo -func (m *QueryCollectorLookupByProductRequest) GetAppId() uint64 { +func (m *QueryCollectorLookupByAppRequest) GetAppId() uint64 { if m != nil { return m.AppId } return 0 } -type QueryCollectorLookupByProductResponse struct { +type QueryCollectorLookupByAppResponse struct { CollectorLookup []CollectorLookupTable `protobuf:"bytes,1,rep,name=collectorLookup,proto3" json:"collectorLookup" yaml:"collectorLookup"` } -func (m *QueryCollectorLookupByProductResponse) Reset() { *m = QueryCollectorLookupByProductResponse{} } -func (m *QueryCollectorLookupByProductResponse) String() string { return proto.CompactTextString(m) } -func (*QueryCollectorLookupByProductResponse) ProtoMessage() {} -func (*QueryCollectorLookupByProductResponse) Descriptor() ([]byte, []int) { +func (m *QueryCollectorLookupByAppResponse) Reset() { *m = QueryCollectorLookupByAppResponse{} } +func (m *QueryCollectorLookupByAppResponse) String() string { return proto.CompactTextString(m) } +func (*QueryCollectorLookupByAppResponse) ProtoMessage() {} +func (*QueryCollectorLookupByAppResponse) Descriptor() ([]byte, []int) { return fileDescriptor_1d4bd1f010dddda3, []int{3} } -func (m *QueryCollectorLookupByProductResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryCollectorLookupByAppResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryCollectorLookupByProductResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryCollectorLookupByAppResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryCollectorLookupByProductResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryCollectorLookupByAppResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -181,46 +181,44 @@ func (m *QueryCollectorLookupByProductResponse) XXX_Marshal(b []byte, determinis return b[:n], nil } } -func (m *QueryCollectorLookupByProductResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryCollectorLookupByProductResponse.Merge(m, src) +func (m *QueryCollectorLookupByAppResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryCollectorLookupByAppResponse.Merge(m, src) } -func (m *QueryCollectorLookupByProductResponse) XXX_Size() int { +func (m *QueryCollectorLookupByAppResponse) XXX_Size() int { return m.Size() } -func (m *QueryCollectorLookupByProductResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryCollectorLookupByProductResponse.DiscardUnknown(m) +func (m *QueryCollectorLookupByAppResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryCollectorLookupByAppResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryCollectorLookupByProductResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryCollectorLookupByAppResponse proto.InternalMessageInfo -func (m *QueryCollectorLookupByProductResponse) GetCollectorLookup() []CollectorLookupTable { +func (m *QueryCollectorLookupByAppResponse) GetCollectorLookup() []CollectorLookupTable { if m != nil { return m.CollectorLookup } return nil } -type QueryCollectorLookupByProductAndAssetRequest struct { +type QueryCollectorLookupByAppAndAssetRequest struct { AppId uint64 `protobuf:"varint,1,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty" yaml:"app_id"` AssetId uint64 `protobuf:"varint,2,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty" yaml:"asset_id"` } -func (m *QueryCollectorLookupByProductAndAssetRequest) Reset() { - *m = QueryCollectorLookupByProductAndAssetRequest{} +func (m *QueryCollectorLookupByAppAndAssetRequest) Reset() { + *m = QueryCollectorLookupByAppAndAssetRequest{} } -func (m *QueryCollectorLookupByProductAndAssetRequest) String() string { - return proto.CompactTextString(m) -} -func (*QueryCollectorLookupByProductAndAssetRequest) ProtoMessage() {} -func (*QueryCollectorLookupByProductAndAssetRequest) Descriptor() ([]byte, []int) { +func (m *QueryCollectorLookupByAppAndAssetRequest) String() string { return proto.CompactTextString(m) } +func (*QueryCollectorLookupByAppAndAssetRequest) ProtoMessage() {} +func (*QueryCollectorLookupByAppAndAssetRequest) Descriptor() ([]byte, []int) { return fileDescriptor_1d4bd1f010dddda3, []int{4} } -func (m *QueryCollectorLookupByProductAndAssetRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryCollectorLookupByAppAndAssetRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryCollectorLookupByProductAndAssetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryCollectorLookupByAppAndAssetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryCollectorLookupByProductAndAssetRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryCollectorLookupByAppAndAssetRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -230,52 +228,52 @@ func (m *QueryCollectorLookupByProductAndAssetRequest) XXX_Marshal(b []byte, det return b[:n], nil } } -func (m *QueryCollectorLookupByProductAndAssetRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryCollectorLookupByProductAndAssetRequest.Merge(m, src) +func (m *QueryCollectorLookupByAppAndAssetRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryCollectorLookupByAppAndAssetRequest.Merge(m, src) } -func (m *QueryCollectorLookupByProductAndAssetRequest) XXX_Size() int { +func (m *QueryCollectorLookupByAppAndAssetRequest) XXX_Size() int { return m.Size() } -func (m *QueryCollectorLookupByProductAndAssetRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryCollectorLookupByProductAndAssetRequest.DiscardUnknown(m) +func (m *QueryCollectorLookupByAppAndAssetRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryCollectorLookupByAppAndAssetRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryCollectorLookupByProductAndAssetRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryCollectorLookupByAppAndAssetRequest proto.InternalMessageInfo -func (m *QueryCollectorLookupByProductAndAssetRequest) GetAppId() uint64 { +func (m *QueryCollectorLookupByAppAndAssetRequest) GetAppId() uint64 { if m != nil { return m.AppId } return 0 } -func (m *QueryCollectorLookupByProductAndAssetRequest) GetAssetId() uint64 { +func (m *QueryCollectorLookupByAppAndAssetRequest) GetAssetId() uint64 { if m != nil { return m.AssetId } return 0 } -type QueryCollectorLookupByProductAndAssetResponse struct { +type QueryCollectorLookupByAppAndAssetResponse struct { CollectorLookup CollectorLookupTable `protobuf:"bytes,1,opt,name=collectorLookup,proto3" json:"collectorLookup" yaml:"collectorLookup"` } -func (m *QueryCollectorLookupByProductAndAssetResponse) Reset() { - *m = QueryCollectorLookupByProductAndAssetResponse{} +func (m *QueryCollectorLookupByAppAndAssetResponse) Reset() { + *m = QueryCollectorLookupByAppAndAssetResponse{} } -func (m *QueryCollectorLookupByProductAndAssetResponse) String() string { +func (m *QueryCollectorLookupByAppAndAssetResponse) String() string { return proto.CompactTextString(m) } -func (*QueryCollectorLookupByProductAndAssetResponse) ProtoMessage() {} -func (*QueryCollectorLookupByProductAndAssetResponse) Descriptor() ([]byte, []int) { +func (*QueryCollectorLookupByAppAndAssetResponse) ProtoMessage() {} +func (*QueryCollectorLookupByAppAndAssetResponse) Descriptor() ([]byte, []int) { return fileDescriptor_1d4bd1f010dddda3, []int{5} } -func (m *QueryCollectorLookupByProductAndAssetResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryCollectorLookupByAppAndAssetResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryCollectorLookupByProductAndAssetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryCollectorLookupByAppAndAssetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryCollectorLookupByProductAndAssetResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryCollectorLookupByAppAndAssetResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -285,46 +283,44 @@ func (m *QueryCollectorLookupByProductAndAssetResponse) XXX_Marshal(b []byte, de return b[:n], nil } } -func (m *QueryCollectorLookupByProductAndAssetResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryCollectorLookupByProductAndAssetResponse.Merge(m, src) +func (m *QueryCollectorLookupByAppAndAssetResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryCollectorLookupByAppAndAssetResponse.Merge(m, src) } -func (m *QueryCollectorLookupByProductAndAssetResponse) XXX_Size() int { +func (m *QueryCollectorLookupByAppAndAssetResponse) XXX_Size() int { return m.Size() } -func (m *QueryCollectorLookupByProductAndAssetResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryCollectorLookupByProductAndAssetResponse.DiscardUnknown(m) +func (m *QueryCollectorLookupByAppAndAssetResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryCollectorLookupByAppAndAssetResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryCollectorLookupByProductAndAssetResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryCollectorLookupByAppAndAssetResponse proto.InternalMessageInfo -func (m *QueryCollectorLookupByProductAndAssetResponse) GetCollectorLookup() CollectorLookupTable { +func (m *QueryCollectorLookupByAppAndAssetResponse) GetCollectorLookup() CollectorLookupTable { if m != nil { return m.CollectorLookup } return CollectorLookupTable{} } -type QueryCollectorDataByProductAndAssetRequest struct { +type QueryCollectorDataByAppAndAssetRequest struct { AppId uint64 `protobuf:"varint,1,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty" yaml:"app_id"` AssetId uint64 `protobuf:"varint,2,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty" yaml:"asset_id"` } -func (m *QueryCollectorDataByProductAndAssetRequest) Reset() { - *m = QueryCollectorDataByProductAndAssetRequest{} -} -func (m *QueryCollectorDataByProductAndAssetRequest) String() string { - return proto.CompactTextString(m) +func (m *QueryCollectorDataByAppAndAssetRequest) Reset() { + *m = QueryCollectorDataByAppAndAssetRequest{} } -func (*QueryCollectorDataByProductAndAssetRequest) ProtoMessage() {} -func (*QueryCollectorDataByProductAndAssetRequest) Descriptor() ([]byte, []int) { +func (m *QueryCollectorDataByAppAndAssetRequest) String() string { return proto.CompactTextString(m) } +func (*QueryCollectorDataByAppAndAssetRequest) ProtoMessage() {} +func (*QueryCollectorDataByAppAndAssetRequest) Descriptor() ([]byte, []int) { return fileDescriptor_1d4bd1f010dddda3, []int{6} } -func (m *QueryCollectorDataByProductAndAssetRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryCollectorDataByAppAndAssetRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryCollectorDataByProductAndAssetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryCollectorDataByAppAndAssetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryCollectorDataByProductAndAssetRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryCollectorDataByAppAndAssetRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -334,52 +330,50 @@ func (m *QueryCollectorDataByProductAndAssetRequest) XXX_Marshal(b []byte, deter return b[:n], nil } } -func (m *QueryCollectorDataByProductAndAssetRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryCollectorDataByProductAndAssetRequest.Merge(m, src) +func (m *QueryCollectorDataByAppAndAssetRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryCollectorDataByAppAndAssetRequest.Merge(m, src) } -func (m *QueryCollectorDataByProductAndAssetRequest) XXX_Size() int { +func (m *QueryCollectorDataByAppAndAssetRequest) XXX_Size() int { return m.Size() } -func (m *QueryCollectorDataByProductAndAssetRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryCollectorDataByProductAndAssetRequest.DiscardUnknown(m) +func (m *QueryCollectorDataByAppAndAssetRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryCollectorDataByAppAndAssetRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryCollectorDataByProductAndAssetRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryCollectorDataByAppAndAssetRequest proto.InternalMessageInfo -func (m *QueryCollectorDataByProductAndAssetRequest) GetAppId() uint64 { +func (m *QueryCollectorDataByAppAndAssetRequest) GetAppId() uint64 { if m != nil { return m.AppId } return 0 } -func (m *QueryCollectorDataByProductAndAssetRequest) GetAssetId() uint64 { +func (m *QueryCollectorDataByAppAndAssetRequest) GetAssetId() uint64 { if m != nil { return m.AssetId } return 0 } -type QueryCollectorDataByProductAndAssetResponse struct { +type QueryCollectorDataByAppAndAssetResponse struct { CollectorData CollectorData `protobuf:"bytes,1,opt,name=collectorData,proto3" json:"collectorData" yaml:"collectorData"` } -func (m *QueryCollectorDataByProductAndAssetResponse) Reset() { - *m = QueryCollectorDataByProductAndAssetResponse{} -} -func (m *QueryCollectorDataByProductAndAssetResponse) String() string { - return proto.CompactTextString(m) +func (m *QueryCollectorDataByAppAndAssetResponse) Reset() { + *m = QueryCollectorDataByAppAndAssetResponse{} } -func (*QueryCollectorDataByProductAndAssetResponse) ProtoMessage() {} -func (*QueryCollectorDataByProductAndAssetResponse) Descriptor() ([]byte, []int) { +func (m *QueryCollectorDataByAppAndAssetResponse) String() string { return proto.CompactTextString(m) } +func (*QueryCollectorDataByAppAndAssetResponse) ProtoMessage() {} +func (*QueryCollectorDataByAppAndAssetResponse) Descriptor() ([]byte, []int) { return fileDescriptor_1d4bd1f010dddda3, []int{7} } -func (m *QueryCollectorDataByProductAndAssetResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryCollectorDataByAppAndAssetResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryCollectorDataByProductAndAssetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryCollectorDataByAppAndAssetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryCollectorDataByProductAndAssetResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryCollectorDataByAppAndAssetResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -389,19 +383,19 @@ func (m *QueryCollectorDataByProductAndAssetResponse) XXX_Marshal(b []byte, dete return b[:n], nil } } -func (m *QueryCollectorDataByProductAndAssetResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryCollectorDataByProductAndAssetResponse.Merge(m, src) +func (m *QueryCollectorDataByAppAndAssetResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryCollectorDataByAppAndAssetResponse.Merge(m, src) } -func (m *QueryCollectorDataByProductAndAssetResponse) XXX_Size() int { +func (m *QueryCollectorDataByAppAndAssetResponse) XXX_Size() int { return m.Size() } -func (m *QueryCollectorDataByProductAndAssetResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryCollectorDataByProductAndAssetResponse.DiscardUnknown(m) +func (m *QueryCollectorDataByAppAndAssetResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryCollectorDataByAppAndAssetResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryCollectorDataByProductAndAssetResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryCollectorDataByAppAndAssetResponse proto.InternalMessageInfo -func (m *QueryCollectorDataByProductAndAssetResponse) GetCollectorData() CollectorData { +func (m *QueryCollectorDataByAppAndAssetResponse) GetCollectorData() CollectorData { if m != nil { return m.CollectorData } @@ -617,12 +611,12 @@ func (m *QueryNetFeeCollectedForAppAndAssetResponse) GetAssetIdToFeeCollected() func init() { proto.RegisterType((*QueryParamsRequest)(nil), "comdex.collector.v1beta1.QueryParamsRequest") proto.RegisterType((*QueryParamsResponse)(nil), "comdex.collector.v1beta1.QueryParamsResponse") - proto.RegisterType((*QueryCollectorLookupByProductRequest)(nil), "comdex.collector.v1beta1.QueryCollectorLookupByProductRequest") - proto.RegisterType((*QueryCollectorLookupByProductResponse)(nil), "comdex.collector.v1beta1.QueryCollectorLookupByProductResponse") - proto.RegisterType((*QueryCollectorLookupByProductAndAssetRequest)(nil), "comdex.collector.v1beta1.QueryCollectorLookupByProductAndAssetRequest") - proto.RegisterType((*QueryCollectorLookupByProductAndAssetResponse)(nil), "comdex.collector.v1beta1.QueryCollectorLookupByProductAndAssetResponse") - proto.RegisterType((*QueryCollectorDataByProductAndAssetRequest)(nil), "comdex.collector.v1beta1.QueryCollectorDataByProductAndAssetRequest") - proto.RegisterType((*QueryCollectorDataByProductAndAssetResponse)(nil), "comdex.collector.v1beta1.QueryCollectorDataByProductAndAssetResponse") + proto.RegisterType((*QueryCollectorLookupByAppRequest)(nil), "comdex.collector.v1beta1.QueryCollectorLookupByAppRequest") + proto.RegisterType((*QueryCollectorLookupByAppResponse)(nil), "comdex.collector.v1beta1.QueryCollectorLookupByAppResponse") + proto.RegisterType((*QueryCollectorLookupByAppAndAssetRequest)(nil), "comdex.collector.v1beta1.QueryCollectorLookupByAppAndAssetRequest") + proto.RegisterType((*QueryCollectorLookupByAppAndAssetResponse)(nil), "comdex.collector.v1beta1.QueryCollectorLookupByAppAndAssetResponse") + proto.RegisterType((*QueryCollectorDataByAppAndAssetRequest)(nil), "comdex.collector.v1beta1.QueryCollectorDataByAppAndAssetRequest") + proto.RegisterType((*QueryCollectorDataByAppAndAssetResponse)(nil), "comdex.collector.v1beta1.QueryCollectorDataByAppAndAssetResponse") proto.RegisterType((*QueryAuctionMappingForAppAndAssetRequest)(nil), "comdex.collector.v1beta1.QueryAuctionMappingForAppAndAssetRequest") proto.RegisterType((*QueryAuctionMappingForAppAndAssetResponse)(nil), "comdex.collector.v1beta1.QueryAuctionMappingForAppAndAssetResponse") proto.RegisterType((*QueryNetFeeCollectedForAppAndAssetRequest)(nil), "comdex.collector.v1beta1.QueryNetFeeCollectedForAppAndAssetRequest") @@ -634,59 +628,58 @@ func init() { } var fileDescriptor_1d4bd1f010dddda3 = []byte{ - // 823 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x97, 0xc1, 0x4f, 0x13, 0x4b, - 0x1c, 0xc7, 0x3b, 0x7d, 0xd0, 0xf7, 0x32, 0x84, 0x90, 0x37, 0xf0, 0x5e, 0xc8, 0x3e, 0x5e, 0x8b, - 0x23, 0xc4, 0x8a, 0x6c, 0x57, 0x20, 0x5e, 0x3c, 0xa0, 0x5d, 0xb0, 0x86, 0x44, 0x14, 0x16, 0x88, - 0x51, 0x0f, 0x66, 0xba, 0x3b, 0xd4, 0x86, 0xb2, 0x33, 0xb4, 0x5b, 0x43, 0x43, 0xb8, 0x18, 0x31, - 0x24, 0xc6, 0xc4, 0xc4, 0x18, 0x13, 0x6f, 0xc6, 0x93, 0xff, 0x82, 0xff, 0x80, 0x1c, 0x31, 0x5e, - 0x3c, 0x35, 0x06, 0x3c, 0x78, 0xe6, 0x2f, 0x30, 0x3b, 0x3b, 0xc5, 0xb6, 0xb0, 0xdd, 0x85, 0x26, - 0x78, 0xdb, 0xec, 0x7e, 0x7f, 0xdf, 0xf9, 0xfe, 0x3e, 0x9d, 0x99, 0x5f, 0x0a, 0x87, 0x4c, 0xb6, - 0x6a, 0xd1, 0x75, 0xcd, 0x64, 0x85, 0x02, 0x35, 0x1d, 0x56, 0xd4, 0x1e, 0x8f, 0x65, 0xa9, 0x43, - 0xc6, 0xb4, 0xb5, 0x32, 0x2d, 0x56, 0x52, 0xbc, 0xc8, 0x1c, 0x86, 0xfa, 0x3d, 0x55, 0xea, 0x50, - 0x95, 0x92, 0x2a, 0xa5, 0x2f, 0xc7, 0x72, 0x4c, 0x88, 0x34, 0xf7, 0xc9, 0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- 0xf3, 0xd8, 0x8a, 0xc2, 0x73, 0x81, 0xf7, 0x39, 0xd2, 0x03, 0xfa, 0x08, 0x31, 0x93, 0x94, 0xa9, - 0xb6, 0x3c, 0x24, 0x89, 0xbb, 0x82, 0xc4, 0x3c, 0xba, 0xe3, 0x4f, 0x82, 0x78, 0x3e, 0x27, 0xe4, - 0xb0, 0x1d, 0x85, 0x38, 0xf8, 0xee, 0x45, 0x41, 0x4d, 0x84, 0x99, 0x20, 0xca, 0x74, 0x7b, 0x26, - 0xe1, 0x51, 0xd8, 0xd4, 0x51, 0x97, 0x29, 0x3d, 0x19, 0x0a, 0x7d, 0x76, 0x67, 0x2f, 0x0e, 0x76, - 0xf7, 0xe2, 0xe0, 0xdb, 0x5e, 0x1c, 0xbc, 0xdc, 0x8f, 0x47, 0x76, 0xf7, 0xe3, 0x91, 0xaf, 0xfb, - 0xf1, 0xc8, 0xfd, 0x89, 0x5c, 0xde, 0x79, 0x54, 0xce, 0xba, 0xf1, 0xfd, 0xee, 0xdc, 0xfa, 0x18, - 0x4e, 0x85, 0xd3, 0x52, 0x36, 0x26, 0xfe, 0x7f, 0x4c, 0xfc, 0x0c, 0x00, 0x00, 0xff, 0xff, 0x9e, - 0xbd, 0x2d, 0xd8, 0x46, 0x0d, 0x00, 0x00, + // 805 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x97, 0x4f, 0x4f, 0x13, 0x4f, + 0x18, 0xc7, 0x3b, 0xfd, 0x41, 0x7f, 0x66, 0x08, 0x21, 0x0e, 0x68, 0xb0, 0x92, 0xb6, 0x4e, 0x50, + 0x2a, 0x71, 0xbb, 0x02, 0xf1, 0x82, 0xc6, 0xd8, 0x85, 0x90, 0x10, 0xa9, 0xc8, 0x0a, 0x31, 0xf1, + 0x62, 0xa6, 0xdd, 0xa1, 0x36, 0x94, 0x9d, 0xa1, 0xdd, 0x1a, 0x1a, 0xc2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50, 0xf2, 0x75, + 0x85, 0x70, 0xae, 0x6e, 0x38, 0x23, 0xb7, 0x89, 0x76, 0xa2, 0x3e, 0xbb, 0xb0, 0x39, 0x3a, 0x48, + 0xbb, 0x80, 0xcd, 0xb6, 0xf9, 0x8f, 0x4f, 0x5d, 0xaa, 0x87, 0x8c, 0xfc, 0x52, 0x44, 0x5e, 0x40, + 0xf3, 0xe7, 0x8e, 0xac, 0x10, 0xd3, 0x50, 0xc4, 0x08, 0x1e, 0x87, 0x57, 0x37, 0x9a, 0xff, 0x4c, + 0x9b, 0xe8, 0x2f, 0x80, 0xc9, 0x80, 0xf7, 0x1b, 0x3d, 0x09, 0x9b, 0xc0, 0x6b, 0xff, 0xc4, 0xb3, + 0x97, 0xe8, 0x20, 0x09, 0x2c, 0x09, 0x02, 0xf3, 0x28, 0x17, 0x86, 0x80, 0x41, 0x2c, 0x12, 0x2e, + 0xff, 0xbb, 0xe6, 0x1c, 0xf8, 0xbd, 0xcf, 0x81, 0x73, 0x10, 0x62, 0xc7, 0x04, 0xce, 0x41, 0x98, + 0x05, 0x81, 0x5f, 0x08, 0x0a, 0x39, 0xf4, 0xd4, 0x9b, 0x02, 0x71, 0xfa, 0x9c, 0x83, 0xc1, 0x76, + 0x14, 0xe2, 0xe0, 0x77, 0x14, 0x05, 0x05, 0x08, 0xb3, 0x0d, 0xe2, 0xd3, 0x97, 0x6b, 0x12, 0x1e, + 0x83, 0x49, 0x2d, 0x65, 0x99, 0xd2, 0xf0, 0x18, 0xb4, 0xdc, 0xee, 0x41, 0x02, 0xec, 0x1d, 0x24, + 0xc0, 0xef, 0x83, 0x04, 0xf8, 0x78, 0x98, 0x88, 0xec, 0x1d, 0x26, 0x22, 0xfb, 0x87, 0x89, 0xc8, + 0xab, 0x89, 0x62, 0xc9, 0x7a, 0x53, 0xcb, 0xdb, 0xd6, 0xbd, 0xde, 0x4e, 0xb7, 0x05, 0xab, 0xce, + 0x69, 0x35, 0x1f, 0x13, 0xbf, 0x17, 0x26, 0xfe, 0x05, 0x00, 0x00, 0xff, 0xff, 0x5e, 0x22, 0x76, + 0xc4, 0xf6, 0x0c, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -703,9 +696,9 @@ const _ = grpc.SupportPackageIsVersion4 type QueryClient interface { // Parameters queries the parameters of the module. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) - QueryCollectorLookupByProduct(ctx context.Context, in *QueryCollectorLookupByProductRequest, opts ...grpc.CallOption) (*QueryCollectorLookupByProductResponse, error) - QueryCollectorLookupByProductAndAsset(ctx context.Context, in *QueryCollectorLookupByProductAndAssetRequest, opts ...grpc.CallOption) (*QueryCollectorLookupByProductAndAssetResponse, error) - QueryCollectorDataByProductAndAsset(ctx context.Context, in *QueryCollectorDataByProductAndAssetRequest, opts ...grpc.CallOption) (*QueryCollectorDataByProductAndAssetResponse, error) + QueryCollectorLookupByApp(ctx context.Context, in *QueryCollectorLookupByAppRequest, opts ...grpc.CallOption) (*QueryCollectorLookupByAppResponse, error) + QueryCollectorLookupByAppAndAsset(ctx context.Context, in *QueryCollectorLookupByAppAndAssetRequest, opts ...grpc.CallOption) (*QueryCollectorLookupByAppAndAssetResponse, error) + QueryCollectorDataByAppAndAsset(ctx context.Context, in *QueryCollectorDataByAppAndAssetRequest, opts ...grpc.CallOption) (*QueryCollectorDataByAppAndAssetResponse, error) QueryAuctionMappingForAppAndAsset(ctx context.Context, in *QueryAuctionMappingForAppAndAssetRequest, opts ...grpc.CallOption) (*QueryAuctionMappingForAppAndAssetResponse, error) QueryNetFeeCollectedForAppAndAsset(ctx context.Context, in *QueryNetFeeCollectedForAppAndAssetRequest, opts ...grpc.CallOption) (*QueryNetFeeCollectedForAppAndAssetResponse, error) } @@ -727,27 +720,27 @@ func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts . return out, nil } -func (c *queryClient) QueryCollectorLookupByProduct(ctx context.Context, in *QueryCollectorLookupByProductRequest, opts ...grpc.CallOption) (*QueryCollectorLookupByProductResponse, error) { - out := new(QueryCollectorLookupByProductResponse) - err := c.cc.Invoke(ctx, "/comdex.collector.v1beta1.Query/QueryCollectorLookupByProduct", in, out, opts...) +func (c *queryClient) QueryCollectorLookupByApp(ctx context.Context, in *QueryCollectorLookupByAppRequest, opts ...grpc.CallOption) (*QueryCollectorLookupByAppResponse, error) { + out := new(QueryCollectorLookupByAppResponse) + err := c.cc.Invoke(ctx, "/comdex.collector.v1beta1.Query/QueryCollectorLookupByApp", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *queryClient) QueryCollectorLookupByProductAndAsset(ctx context.Context, in *QueryCollectorLookupByProductAndAssetRequest, opts ...grpc.CallOption) (*QueryCollectorLookupByProductAndAssetResponse, error) { - out := new(QueryCollectorLookupByProductAndAssetResponse) - err := c.cc.Invoke(ctx, "/comdex.collector.v1beta1.Query/QueryCollectorLookupByProductAndAsset", in, out, opts...) +func (c *queryClient) QueryCollectorLookupByAppAndAsset(ctx context.Context, in *QueryCollectorLookupByAppAndAssetRequest, opts ...grpc.CallOption) (*QueryCollectorLookupByAppAndAssetResponse, error) { + out := new(QueryCollectorLookupByAppAndAssetResponse) + err := c.cc.Invoke(ctx, "/comdex.collector.v1beta1.Query/QueryCollectorLookupByAppAndAsset", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *queryClient) QueryCollectorDataByProductAndAsset(ctx context.Context, in *QueryCollectorDataByProductAndAssetRequest, opts ...grpc.CallOption) (*QueryCollectorDataByProductAndAssetResponse, error) { - out := new(QueryCollectorDataByProductAndAssetResponse) - err := c.cc.Invoke(ctx, "/comdex.collector.v1beta1.Query/QueryCollectorDataByProductAndAsset", in, out, opts...) +func (c *queryClient) QueryCollectorDataByAppAndAsset(ctx context.Context, in *QueryCollectorDataByAppAndAssetRequest, opts ...grpc.CallOption) (*QueryCollectorDataByAppAndAssetResponse, error) { + out := new(QueryCollectorDataByAppAndAssetResponse) + err := c.cc.Invoke(ctx, "/comdex.collector.v1beta1.Query/QueryCollectorDataByAppAndAsset", in, out, opts...) if err != nil { return nil, err } @@ -776,9 +769,9 @@ func (c *queryClient) QueryNetFeeCollectedForAppAndAsset(ctx context.Context, in type QueryServer interface { // Parameters queries the parameters of the module. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) - QueryCollectorLookupByProduct(context.Context, *QueryCollectorLookupByProductRequest) (*QueryCollectorLookupByProductResponse, error) - QueryCollectorLookupByProductAndAsset(context.Context, *QueryCollectorLookupByProductAndAssetRequest) (*QueryCollectorLookupByProductAndAssetResponse, error) - QueryCollectorDataByProductAndAsset(context.Context, *QueryCollectorDataByProductAndAssetRequest) (*QueryCollectorDataByProductAndAssetResponse, error) + QueryCollectorLookupByApp(context.Context, *QueryCollectorLookupByAppRequest) (*QueryCollectorLookupByAppResponse, error) + QueryCollectorLookupByAppAndAsset(context.Context, *QueryCollectorLookupByAppAndAssetRequest) (*QueryCollectorLookupByAppAndAssetResponse, error) + QueryCollectorDataByAppAndAsset(context.Context, *QueryCollectorDataByAppAndAssetRequest) (*QueryCollectorDataByAppAndAssetResponse, error) QueryAuctionMappingForAppAndAsset(context.Context, *QueryAuctionMappingForAppAndAssetRequest) (*QueryAuctionMappingForAppAndAssetResponse, error) QueryNetFeeCollectedForAppAndAsset(context.Context, *QueryNetFeeCollectedForAppAndAssetRequest) (*QueryNetFeeCollectedForAppAndAssetResponse, error) } @@ -790,14 +783,14 @@ 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) QueryCollectorLookupByProduct(ctx context.Context, req *QueryCollectorLookupByProductRequest) (*QueryCollectorLookupByProductResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method QueryCollectorLookupByProduct not implemented") +func (*UnimplementedQueryServer) QueryCollectorLookupByApp(ctx context.Context, req *QueryCollectorLookupByAppRequest) (*QueryCollectorLookupByAppResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method QueryCollectorLookupByApp not implemented") } -func (*UnimplementedQueryServer) QueryCollectorLookupByProductAndAsset(ctx context.Context, req *QueryCollectorLookupByProductAndAssetRequest) (*QueryCollectorLookupByProductAndAssetResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method QueryCollectorLookupByProductAndAsset not implemented") +func (*UnimplementedQueryServer) QueryCollectorLookupByAppAndAsset(ctx context.Context, req *QueryCollectorLookupByAppAndAssetRequest) (*QueryCollectorLookupByAppAndAssetResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method QueryCollectorLookupByAppAndAsset not implemented") } -func (*UnimplementedQueryServer) QueryCollectorDataByProductAndAsset(ctx context.Context, req *QueryCollectorDataByProductAndAssetRequest) (*QueryCollectorDataByProductAndAssetResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method QueryCollectorDataByProductAndAsset not implemented") +func (*UnimplementedQueryServer) QueryCollectorDataByAppAndAsset(ctx context.Context, req *QueryCollectorDataByAppAndAssetRequest) (*QueryCollectorDataByAppAndAssetResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method QueryCollectorDataByAppAndAsset not implemented") } func (*UnimplementedQueryServer) QueryAuctionMappingForAppAndAsset(ctx context.Context, req *QueryAuctionMappingForAppAndAssetRequest) (*QueryAuctionMappingForAppAndAssetResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method QueryAuctionMappingForAppAndAsset not implemented") @@ -828,56 +821,56 @@ func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interf return interceptor(ctx, in, info, handler) } -func _Query_QueryCollectorLookupByProduct_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryCollectorLookupByProductRequest) +func _Query_QueryCollectorLookupByApp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryCollectorLookupByAppRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).QueryCollectorLookupByProduct(ctx, in) + return srv.(QueryServer).QueryCollectorLookupByApp(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/comdex.collector.v1beta1.Query/QueryCollectorLookupByProduct", + FullMethod: "/comdex.collector.v1beta1.Query/QueryCollectorLookupByApp", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).QueryCollectorLookupByProduct(ctx, req.(*QueryCollectorLookupByProductRequest)) + return srv.(QueryServer).QueryCollectorLookupByApp(ctx, req.(*QueryCollectorLookupByAppRequest)) } return interceptor(ctx, in, info, handler) } -func _Query_QueryCollectorLookupByProductAndAsset_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryCollectorLookupByProductAndAssetRequest) +func _Query_QueryCollectorLookupByAppAndAsset_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryCollectorLookupByAppAndAssetRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).QueryCollectorLookupByProductAndAsset(ctx, in) + return srv.(QueryServer).QueryCollectorLookupByAppAndAsset(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/comdex.collector.v1beta1.Query/QueryCollectorLookupByProductAndAsset", + FullMethod: "/comdex.collector.v1beta1.Query/QueryCollectorLookupByAppAndAsset", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).QueryCollectorLookupByProductAndAsset(ctx, req.(*QueryCollectorLookupByProductAndAssetRequest)) + return srv.(QueryServer).QueryCollectorLookupByAppAndAsset(ctx, req.(*QueryCollectorLookupByAppAndAssetRequest)) } return interceptor(ctx, in, info, handler) } -func _Query_QueryCollectorDataByProductAndAsset_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryCollectorDataByProductAndAssetRequest) +func _Query_QueryCollectorDataByAppAndAsset_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryCollectorDataByAppAndAssetRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).QueryCollectorDataByProductAndAsset(ctx, in) + return srv.(QueryServer).QueryCollectorDataByAppAndAsset(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/comdex.collector.v1beta1.Query/QueryCollectorDataByProductAndAsset", + FullMethod: "/comdex.collector.v1beta1.Query/QueryCollectorDataByAppAndAsset", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).QueryCollectorDataByProductAndAsset(ctx, req.(*QueryCollectorDataByProductAndAssetRequest)) + return srv.(QueryServer).QueryCollectorDataByAppAndAsset(ctx, req.(*QueryCollectorDataByAppAndAssetRequest)) } return interceptor(ctx, in, info, handler) } @@ -927,16 +920,16 @@ var _Query_serviceDesc = grpc.ServiceDesc{ Handler: _Query_Params_Handler, }, { - MethodName: "QueryCollectorLookupByProduct", - Handler: _Query_QueryCollectorLookupByProduct_Handler, + MethodName: "QueryCollectorLookupByApp", + Handler: _Query_QueryCollectorLookupByApp_Handler, }, { - MethodName: "QueryCollectorLookupByProductAndAsset", - Handler: _Query_QueryCollectorLookupByProductAndAsset_Handler, + MethodName: "QueryCollectorLookupByAppAndAsset", + Handler: _Query_QueryCollectorLookupByAppAndAsset_Handler, }, { - MethodName: "QueryCollectorDataByProductAndAsset", - Handler: _Query_QueryCollectorDataByProductAndAsset_Handler, + MethodName: "QueryCollectorDataByAppAndAsset", + Handler: _Query_QueryCollectorDataByAppAndAsset_Handler, }, { MethodName: "QueryAuctionMappingForAppAndAsset", @@ -1007,7 +1000,7 @@ func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *QueryCollectorLookupByProductRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryCollectorLookupByAppRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1017,12 +1010,12 @@ func (m *QueryCollectorLookupByProductRequest) Marshal() (dAtA []byte, err error return dAtA[:n], nil } -func (m *QueryCollectorLookupByProductRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryCollectorLookupByAppRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryCollectorLookupByProductRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryCollectorLookupByAppRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1035,7 +1028,7 @@ func (m *QueryCollectorLookupByProductRequest) MarshalToSizedBuffer(dAtA []byte) return len(dAtA) - i, nil } -func (m *QueryCollectorLookupByProductResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryCollectorLookupByAppResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1045,12 +1038,12 @@ func (m *QueryCollectorLookupByProductResponse) Marshal() (dAtA []byte, err erro return dAtA[:n], nil } -func (m *QueryCollectorLookupByProductResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryCollectorLookupByAppResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryCollectorLookupByProductResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryCollectorLookupByAppResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1072,7 +1065,7 @@ func (m *QueryCollectorLookupByProductResponse) MarshalToSizedBuffer(dAtA []byte return len(dAtA) - i, nil } -func (m *QueryCollectorLookupByProductAndAssetRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryCollectorLookupByAppAndAssetRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1082,12 +1075,12 @@ func (m *QueryCollectorLookupByProductAndAssetRequest) Marshal() (dAtA []byte, e return dAtA[:n], nil } -func (m *QueryCollectorLookupByProductAndAssetRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryCollectorLookupByAppAndAssetRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryCollectorLookupByProductAndAssetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryCollectorLookupByAppAndAssetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1105,7 +1098,7 @@ func (m *QueryCollectorLookupByProductAndAssetRequest) MarshalToSizedBuffer(dAtA return len(dAtA) - i, nil } -func (m *QueryCollectorLookupByProductAndAssetResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryCollectorLookupByAppAndAssetResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1115,12 +1108,12 @@ func (m *QueryCollectorLookupByProductAndAssetResponse) Marshal() (dAtA []byte, return dAtA[:n], nil } -func (m *QueryCollectorLookupByProductAndAssetResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryCollectorLookupByAppAndAssetResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryCollectorLookupByProductAndAssetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryCollectorLookupByAppAndAssetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1138,7 +1131,7 @@ func (m *QueryCollectorLookupByProductAndAssetResponse) MarshalToSizedBuffer(dAt return len(dAtA) - i, nil } -func (m *QueryCollectorDataByProductAndAssetRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryCollectorDataByAppAndAssetRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1148,12 +1141,12 @@ func (m *QueryCollectorDataByProductAndAssetRequest) Marshal() (dAtA []byte, err return dAtA[:n], nil } -func (m *QueryCollectorDataByProductAndAssetRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryCollectorDataByAppAndAssetRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryCollectorDataByProductAndAssetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryCollectorDataByAppAndAssetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1171,7 +1164,7 @@ func (m *QueryCollectorDataByProductAndAssetRequest) MarshalToSizedBuffer(dAtA [ return len(dAtA) - i, nil } -func (m *QueryCollectorDataByProductAndAssetResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryCollectorDataByAppAndAssetResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1181,12 +1174,12 @@ func (m *QueryCollectorDataByProductAndAssetResponse) Marshal() (dAtA []byte, er return dAtA[:n], nil } -func (m *QueryCollectorDataByProductAndAssetResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryCollectorDataByAppAndAssetResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryCollectorDataByProductAndAssetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryCollectorDataByAppAndAssetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1367,7 +1360,7 @@ func (m *QueryParamsResponse) Size() (n int) { return n } -func (m *QueryCollectorLookupByProductRequest) Size() (n int) { +func (m *QueryCollectorLookupByAppRequest) Size() (n int) { if m == nil { return 0 } @@ -1379,7 +1372,7 @@ func (m *QueryCollectorLookupByProductRequest) Size() (n int) { return n } -func (m *QueryCollectorLookupByProductResponse) Size() (n int) { +func (m *QueryCollectorLookupByAppResponse) Size() (n int) { if m == nil { return 0 } @@ -1394,7 +1387,7 @@ func (m *QueryCollectorLookupByProductResponse) Size() (n int) { return n } -func (m *QueryCollectorLookupByProductAndAssetRequest) Size() (n int) { +func (m *QueryCollectorLookupByAppAndAssetRequest) Size() (n int) { if m == nil { return 0 } @@ -1409,7 +1402,7 @@ func (m *QueryCollectorLookupByProductAndAssetRequest) Size() (n int) { return n } -func (m *QueryCollectorLookupByProductAndAssetResponse) Size() (n int) { +func (m *QueryCollectorLookupByAppAndAssetResponse) Size() (n int) { if m == nil { return 0 } @@ -1420,7 +1413,7 @@ func (m *QueryCollectorLookupByProductAndAssetResponse) Size() (n int) { return n } -func (m *QueryCollectorDataByProductAndAssetRequest) Size() (n int) { +func (m *QueryCollectorDataByAppAndAssetRequest) Size() (n int) { if m == nil { return 0 } @@ -1435,7 +1428,7 @@ func (m *QueryCollectorDataByProductAndAssetRequest) Size() (n int) { return n } -func (m *QueryCollectorDataByProductAndAssetResponse) Size() (n int) { +func (m *QueryCollectorDataByAppAndAssetResponse) Size() (n int) { if m == nil { return 0 } @@ -1637,7 +1630,7 @@ func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryCollectorLookupByProductRequest) Unmarshal(dAtA []byte) error { +func (m *QueryCollectorLookupByAppRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -1660,10 +1653,10 @@ func (m *QueryCollectorLookupByProductRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryCollectorLookupByProductRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryCollectorLookupByAppRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryCollectorLookupByProductRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryCollectorLookupByAppRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -1706,7 +1699,7 @@ func (m *QueryCollectorLookupByProductRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryCollectorLookupByProductResponse) Unmarshal(dAtA []byte) error { +func (m *QueryCollectorLookupByAppResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -1729,10 +1722,10 @@ func (m *QueryCollectorLookupByProductResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryCollectorLookupByProductResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryCollectorLookupByAppResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryCollectorLookupByProductResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryCollectorLookupByAppResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -1790,7 +1783,7 @@ func (m *QueryCollectorLookupByProductResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryCollectorLookupByProductAndAssetRequest) Unmarshal(dAtA []byte) error { +func (m *QueryCollectorLookupByAppAndAssetRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -1813,10 +1806,10 @@ func (m *QueryCollectorLookupByProductAndAssetRequest) Unmarshal(dAtA []byte) er fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryCollectorLookupByProductAndAssetRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryCollectorLookupByAppAndAssetRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryCollectorLookupByProductAndAssetRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryCollectorLookupByAppAndAssetRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -1878,7 +1871,7 @@ func (m *QueryCollectorLookupByProductAndAssetRequest) Unmarshal(dAtA []byte) er } return nil } -func (m *QueryCollectorLookupByProductAndAssetResponse) Unmarshal(dAtA []byte) error { +func (m *QueryCollectorLookupByAppAndAssetResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -1901,10 +1894,10 @@ func (m *QueryCollectorLookupByProductAndAssetResponse) Unmarshal(dAtA []byte) e fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryCollectorLookupByProductAndAssetResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryCollectorLookupByAppAndAssetResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryCollectorLookupByProductAndAssetResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryCollectorLookupByAppAndAssetResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -1961,7 +1954,7 @@ func (m *QueryCollectorLookupByProductAndAssetResponse) Unmarshal(dAtA []byte) e } return nil } -func (m *QueryCollectorDataByProductAndAssetRequest) Unmarshal(dAtA []byte) error { +func (m *QueryCollectorDataByAppAndAssetRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -1984,10 +1977,10 @@ func (m *QueryCollectorDataByProductAndAssetRequest) Unmarshal(dAtA []byte) erro fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryCollectorDataByProductAndAssetRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryCollectorDataByAppAndAssetRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryCollectorDataByProductAndAssetRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryCollectorDataByAppAndAssetRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -2049,7 +2042,7 @@ func (m *QueryCollectorDataByProductAndAssetRequest) Unmarshal(dAtA []byte) erro } return nil } -func (m *QueryCollectorDataByProductAndAssetResponse) Unmarshal(dAtA []byte) error { +func (m *QueryCollectorDataByAppAndAssetResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2072,10 +2065,10 @@ func (m *QueryCollectorDataByProductAndAssetResponse) Unmarshal(dAtA []byte) err fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryCollectorDataByProductAndAssetResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryCollectorDataByAppAndAssetResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryCollectorDataByProductAndAssetResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryCollectorDataByAppAndAssetResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: diff --git a/x/collector/types/query.pb.gw.go b/x/collector/types/query.pb.gw.go index c7281e0a2..2621a5fcc 100644 --- a/x/collector/types/query.pb.gw.go +++ b/x/collector/types/query.pb.gw.go @@ -51,8 +51,8 @@ func local_request_Query_Params_0(ctx context.Context, marshaler runtime.Marshal } -func request_Query_QueryCollectorLookupByProduct_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryCollectorLookupByProductRequest +func request_Query_QueryCollectorLookupByApp_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryCollectorLookupByAppRequest var metadata runtime.ServerMetadata var ( @@ -73,13 +73,13 @@ func request_Query_QueryCollectorLookupByProduct_0(ctx context.Context, marshale return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "app_id", err) } - msg, err := client.QueryCollectorLookupByProduct(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.QueryCollectorLookupByApp(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_Query_QueryCollectorLookupByProduct_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryCollectorLookupByProductRequest +func local_request_Query_QueryCollectorLookupByApp_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryCollectorLookupByAppRequest var metadata runtime.ServerMetadata var ( @@ -100,13 +100,13 @@ func local_request_Query_QueryCollectorLookupByProduct_0(ctx context.Context, ma return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "app_id", err) } - msg, err := server.QueryCollectorLookupByProduct(ctx, &protoReq) + msg, err := server.QueryCollectorLookupByApp(ctx, &protoReq) return msg, metadata, err } -func request_Query_QueryCollectorLookupByProductAndAsset_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryCollectorLookupByProductAndAssetRequest +func request_Query_QueryCollectorLookupByAppAndAsset_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryCollectorLookupByAppAndAssetRequest var metadata runtime.ServerMetadata var ( @@ -138,13 +138,13 @@ func request_Query_QueryCollectorLookupByProductAndAsset_0(ctx context.Context, return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "asset_id", err) } - msg, err := client.QueryCollectorLookupByProductAndAsset(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.QueryCollectorLookupByAppAndAsset(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_Query_QueryCollectorLookupByProductAndAsset_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryCollectorLookupByProductAndAssetRequest +func local_request_Query_QueryCollectorLookupByAppAndAsset_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryCollectorLookupByAppAndAssetRequest var metadata runtime.ServerMetadata var ( @@ -176,13 +176,13 @@ func local_request_Query_QueryCollectorLookupByProductAndAsset_0(ctx context.Con return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "asset_id", err) } - msg, err := server.QueryCollectorLookupByProductAndAsset(ctx, &protoReq) + msg, err := server.QueryCollectorLookupByAppAndAsset(ctx, &protoReq) return msg, metadata, err } -func request_Query_QueryCollectorDataByProductAndAsset_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryCollectorDataByProductAndAssetRequest +func request_Query_QueryCollectorDataByAppAndAsset_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryCollectorDataByAppAndAssetRequest var metadata runtime.ServerMetadata var ( @@ -214,13 +214,13 @@ func request_Query_QueryCollectorDataByProductAndAsset_0(ctx context.Context, ma return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "asset_id", err) } - msg, err := client.QueryCollectorDataByProductAndAsset(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.QueryCollectorDataByAppAndAsset(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_Query_QueryCollectorDataByProductAndAsset_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryCollectorDataByProductAndAssetRequest +func local_request_Query_QueryCollectorDataByAppAndAsset_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryCollectorDataByAppAndAssetRequest var metadata runtime.ServerMetadata var ( @@ -252,7 +252,7 @@ func local_request_Query_QueryCollectorDataByProductAndAsset_0(ctx context.Conte return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "asset_id", err) } - msg, err := server.QueryCollectorDataByProductAndAsset(ctx, &protoReq) + msg, err := server.QueryCollectorDataByAppAndAsset(ctx, &protoReq) return msg, metadata, err } @@ -438,7 +438,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) - mux.Handle("GET", pattern_Query_QueryCollectorLookupByProduct_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_QueryCollectorLookupByApp_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -449,7 +449,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_QueryCollectorLookupByProduct_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_QueryCollectorLookupByApp_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -457,11 +457,11 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_QueryCollectorLookupByProduct_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_QueryCollectorLookupByApp_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_QueryCollectorLookupByProductAndAsset_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_QueryCollectorLookupByAppAndAsset_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -472,7 +472,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_QueryCollectorLookupByProductAndAsset_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_QueryCollectorLookupByAppAndAsset_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -480,11 +480,11 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_QueryCollectorLookupByProductAndAsset_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_QueryCollectorLookupByAppAndAsset_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_QueryCollectorDataByProductAndAsset_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_QueryCollectorDataByAppAndAsset_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -495,7 +495,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_QueryCollectorDataByProductAndAsset_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_QueryCollectorDataByAppAndAsset_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -503,7 +503,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_QueryCollectorDataByProductAndAsset_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_QueryCollectorDataByAppAndAsset_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -614,7 +614,7 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) - mux.Handle("GET", pattern_Query_QueryCollectorLookupByProduct_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_QueryCollectorLookupByApp_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) @@ -623,18 +623,18 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Query_QueryCollectorLookupByProduct_0(rctx, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Query_QueryCollectorLookupByApp_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_QueryCollectorLookupByProduct_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_QueryCollectorLookupByApp_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_QueryCollectorLookupByProductAndAsset_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_QueryCollectorLookupByAppAndAsset_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) @@ -643,18 +643,18 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Query_QueryCollectorLookupByProductAndAsset_0(rctx, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Query_QueryCollectorLookupByAppAndAsset_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_QueryCollectorLookupByProductAndAsset_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_QueryCollectorLookupByAppAndAsset_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_QueryCollectorDataByProductAndAsset_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_QueryCollectorDataByAppAndAsset_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) @@ -663,14 +663,14 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Query_QueryCollectorDataByProductAndAsset_0(rctx, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Query_QueryCollectorDataByAppAndAsset_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_QueryCollectorDataByProductAndAsset_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_QueryCollectorDataByAppAndAsset_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -720,25 +720,25 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie var ( pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"comdex-official", "comdex", "collector", "params"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_QueryCollectorLookupByProduct_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"comdex", "collector", "v1beta1", "collector-lookup-by-product", "app_id"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_QueryCollectorLookupByApp_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"comdex", "collector", "v1beta1", "collector-lookup-by-app", "app_id"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_QueryCollectorLookupByProductAndAsset_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"comdex", "collector", "v1beta1", "collector-lookup-by-product-and-asset", "app_id", "asset_id"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_QueryCollectorLookupByAppAndAsset_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"comdex", "collector", "v1beta1", "collector-lookup-by-app-and-asset", "app_id", "asset_id"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_QueryCollectorDataByProductAndAsset_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"comdex", "collector", "v1beta1", "collector-data-by-product-and-asset", "app_id", "asset_id"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_QueryCollectorDataByAppAndAsset_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"comdex", "collector", "v1beta1", "collector-data-by-app-and-asset", "app_id", "asset_id"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_QueryAuctionMappingForAppAndAsset_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"comdex", "collector", "v1beta1", "auction-data-by-product-and-asset", "app_id", "asset_id"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_QueryAuctionMappingForAppAndAsset_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"comdex", "collector", "v1beta1", "auction-data-by-app-and-asset", "app_id", "asset_id"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_QueryNetFeeCollectedForAppAndAsset_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"comdex", "collector", "v1beta1", "net-fee-data-by-product-and-asset", "app_id", "asset_id"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_QueryNetFeeCollectedForAppAndAsset_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"comdex", "collector", "v1beta1", "net-fee-data-by-app-and-asset", "app_id", "asset_id"}, "", runtime.AssumeColonVerbOpt(false))) ) var ( forward_Query_Params_0 = runtime.ForwardResponseMessage - forward_Query_QueryCollectorLookupByProduct_0 = runtime.ForwardResponseMessage + forward_Query_QueryCollectorLookupByApp_0 = runtime.ForwardResponseMessage - forward_Query_QueryCollectorLookupByProductAndAsset_0 = runtime.ForwardResponseMessage + forward_Query_QueryCollectorLookupByAppAndAsset_0 = runtime.ForwardResponseMessage - forward_Query_QueryCollectorDataByProductAndAsset_0 = runtime.ForwardResponseMessage + forward_Query_QueryCollectorDataByAppAndAsset_0 = runtime.ForwardResponseMessage forward_Query_QueryAuctionMappingForAppAndAsset_0 = runtime.ForwardResponseMessage