From 60d7cb7b0c584f63a98eb49ab7ce1948b174ac57 Mon Sep 17 00:00:00 2001 From: Gefei Hou Date: Thu, 19 Dec 2024 17:26:20 +0800 Subject: [PATCH] Removed extra vue query test --- .../outputv4/akash/audit/v1beta1/audit.ts | 30 ++ .../outputv4/akash/audit/v1beta2/audit.ts | 30 ++ .../outputv4/akash/audit/v1beta2/genesis.ts | 4 + .../akash/audit/v1beta2/query.rpc.Query.ts | 2 +- .../outputv4/akash/audit/v1beta2/query.ts | 24 + .../outputv4/akash/base/v1beta1/attribute.ts | 13 + .../outputv4/akash/base/v1beta1/endpoint.ts | 4 + .../outputv4/akash/base/v1beta1/resource.ts | 19 + .../akash/base/v1beta1/resourcevalue.ts | 4 + .../outputv4/akash/base/v1beta2/attribute.ts | 13 + .../outputv4/akash/base/v1beta2/endpoint.ts | 5 + .../outputv4/akash/base/v1beta2/resource.ts | 14 + .../akash/base/v1beta2/resourceunits.ts | 7 + .../akash/base/v1beta2/resourcevalue.ts | 4 + .../outputv4/akash/cert/v1beta2/cert.ts | 25 + .../outputv4/akash/cert/v1beta2/genesis.ts | 8 + .../akash/cert/v1beta2/query.rpc.Query.ts | 52 +- .../outputv4/akash/cert/v1beta2/query.ts | 13 + .../akash/deployment/v1beta1/authz.ts | 4 + .../akash/deployment/v1beta1/deployment.ts | 38 ++ .../akash/deployment/v1beta1/genesis.ts | 9 + .../akash/deployment/v1beta1/group.ts | 34 ++ .../akash/deployment/v1beta1/params.ts | 4 + .../akash/deployment/v1beta1/query.ts | 23 + .../akash/deployment/v1beta2/authz.ts | 4 + .../akash/deployment/v1beta2/deployment.ts | 16 + .../akash/deployment/v1beta2/deploymentmsg.ts | 24 + .../akash/deployment/v1beta2/genesis.ts | 9 + .../akash/deployment/v1beta2/group.ts | 7 + .../akash/deployment/v1beta2/groupid.ts | 6 + .../akash/deployment/v1beta2/groupmsg.ts | 13 + .../akash/deployment/v1beta2/groupspec.ts | 6 + .../akash/deployment/v1beta2/params.ts | 4 + .../deployment/v1beta2/query.rpc.Query.ts | 2 +- .../akash/deployment/v1beta2/query.ts | 23 + .../akash/deployment/v1beta2/resource.ts | 6 + .../outputv4/akash/escrow/v1beta1/genesis.ts | 5 + .../akash/escrow/v1beta1/query.rpc.Query.ts | 2 +- .../outputv4/akash/escrow/v1beta1/query.ts | 24 + .../outputv4/akash/escrow/v1beta1/types.ts | 22 + .../outputv4/akash/escrow/v1beta2/genesis.ts | 5 + .../akash/escrow/v1beta2/query.rpc.Query.ts | 2 +- .../outputv4/akash/escrow/v1beta2/query.ts | 24 + .../outputv4/akash/escrow/v1beta2/types.ts | 24 + .../akash/inflation/v1beta2/genesis.ts | 4 + .../akash/inflation/v1beta2/params.ts | 6 + .../outputv4/akash/market/v1beta2/bid.ts | 33 ++ .../outputv4/akash/market/v1beta2/genesis.ts | 6 + .../outputv4/akash/market/v1beta2/lease.ts | 35 ++ .../outputv4/akash/market/v1beta2/order.ts | 20 + .../outputv4/akash/market/v1beta2/params.ts | 5 + .../akash/market/v1beta2/query.rpc.Query.ts | 2 +- .../outputv4/akash/market/v1beta2/query.ts | 45 ++ .../akash/provider/v1beta1/provider.ts | 29 ++ .../akash/provider/v1beta2/genesis.ts | 4 + .../akash/provider/v1beta2/provider.ts | 29 ++ .../akash/provider/v1beta2/query.rpc.Query.ts | 2 +- .../outputv4/akash/provider/v1beta2/query.ts | 14 + __fixtures__/v-next/outputv4/confio/proofs.ts | 70 +++ .../outputv4/cosmos/app/v1alpha1/config.ts | 8 + .../outputv4/cosmos/app/v1alpha1/module.ts | 13 + .../cosmos/app/v1alpha1/query.rpc.Query.ts | 2 +- .../outputv4/cosmos/app/v1alpha1/query.ts | 5 + .../outputv4/cosmos/auth/v1beta1/auth.ts | 19 + .../outputv4/cosmos/auth/v1beta1/genesis.ts | 5 + .../cosmos/auth/v1beta1/query.rpc.Query.ts | 2 +- .../outputv4/cosmos/auth/v1beta1/query.ts | 38 ++ .../outputv4/cosmos/authz/v1beta1/authz.ts | 17 + .../outputv4/cosmos/authz/v1beta1/genesis.ts | 4 + .../cosmos/authz/v1beta1/query.rpc.Query.ts | 2 +- .../outputv4/cosmos/authz/v1beta1/query.ts | 27 + .../outputv4/cosmos/authz/v1beta1/tx.ts | 20 + .../outputv4/cosmos/bank/v1beta1/authz.ts | 4 + .../outputv4/cosmos/bank/v1beta1/bank.ts | 35 ++ .../outputv4/cosmos/bank/v1beta1/genesis.ts | 11 + .../cosmos/bank/v1beta1/query.rpc.Query.ts | 296 ++++++++++- .../outputv4/cosmos/bank/v1beta1/query.ts | 66 +++ .../v-next/outputv4/cosmos/bank/v1beta1/tx.ts | 12 + .../outputv4/cosmos/base/abci/v1beta1/abci.ts | 59 +++ .../outputv4/cosmos/base/kv/v1beta1/kv.ts | 8 + .../cosmos/base/query/v1beta1/pagination.ts | 12 + .../base/reflection/v1beta1/reflection.ts | 11 + .../base/reflection/v2alpha1/reflection.ts | 82 +++ .../cosmos/base/snapshots/v1beta1/snapshot.ts | 42 ++ .../cosmos/base/store/v1beta1/commit_info.ts | 13 + .../cosmos/base/store/v1beta1/listening.ts | 7 + .../cosmos/base/tendermint/v1beta1/query.ts | 60 +++ .../outputv4/cosmos/base/v1beta1/coin.ts | 15 + .../cosmos/capability/v1beta1/capability.ts | 11 + .../cosmos/capability/v1beta1/genesis.ts | 9 + .../outputv4/cosmos/crisis/v1beta1/genesis.ts | 4 + .../outputv4/cosmos/crisis/v1beta1/tx.ts | 7 + .../outputv4/cosmos/crypto/ed25519/keys.ts | 7 + .../v-next/outputv4/cosmos/crypto/hd/v1/hd.ts | 8 + .../cosmos/crypto/keyring/v1/record.ts | 18 + .../outputv4/cosmos/crypto/multisig/keys.ts | 5 + .../crypto/multisig/v1beta1/multisig.ts | 8 + .../outputv4/cosmos/crypto/secp256k1/keys.ts | 7 + .../outputv4/cosmos/crypto/secp256r1/keys.ts | 7 + .../distribution/v1beta1/distribution.ts | 53 ++ .../cosmos/distribution/v1beta1/genesis.ts | 45 ++ .../distribution/v1beta1/query.rpc.Query.ts | 2 +- .../cosmos/distribution/v1beta1/query.ts | 57 +++ .../cosmos/distribution/v1beta1/tx.ts | 24 + .../cosmos/evidence/v1beta1/evidence.ts | 7 + .../cosmos/evidence/v1beta1/genesis.ts | 4 + .../evidence/v1beta1/query.rpc.Query.ts | 2 +- .../outputv4/cosmos/evidence/v1beta1/query.ts | 14 + .../outputv4/cosmos/evidence/v1beta1/tx.ts | 8 + .../cosmos/feegrant/v1beta1/feegrant.ts | 21 + .../cosmos/feegrant/v1beta1/genesis.ts | 4 + .../feegrant/v1beta1/query.rpc.Query.ts | 2 +- .../outputv4/cosmos/feegrant/v1beta1/query.ts | 24 + .../outputv4/cosmos/feegrant/v1beta1/tx.ts | 12 + .../cosmos/genutil/v1beta1/genesis.ts | 4 + .../v-next/outputv4/cosmos/gov/v1/genesis.ts | 10 + .../v-next/outputv4/cosmos/gov/v1/gov.ts | 46 ++ .../outputv4/cosmos/gov/v1/query.rpc.Query.ts | 257 +++++++++- .../v-next/outputv4/cosmos/gov/v1/query.ts | 61 +++ .../v-next/outputv4/cosmos/gov/v1/tx.ts | 35 ++ .../outputv4/cosmos/gov/v1beta1/genesis.ts | 10 + .../v-next/outputv4/cosmos/gov/v1beta1/gov.ts | 49 ++ .../cosmos/gov/v1beta1/query.rpc.Query.ts | 2 +- .../outputv4/cosmos/gov/v1beta1/query.ts | 61 +++ .../v-next/outputv4/cosmos/gov/v1beta1/tx.ts | 27 + .../v-next/outputv4/cosmos/group/v1/events.ts | 30 ++ .../outputv4/cosmos/group/v1/genesis.ts | 11 + .../cosmos/group/v1/query.rpc.Query.ts | 2 +- .../v-next/outputv4/cosmos/group/v1/query.ts | 96 ++++ .../v-next/outputv4/cosmos/group/v1/tx.ts | 99 ++++ .../v-next/outputv4/cosmos/group/v1/types.ts | 71 +++ .../outputv4/cosmos/mint/v1beta1/genesis.ts | 5 + .../outputv4/cosmos/mint/v1beta1/mint.ts | 13 + .../cosmos/mint/v1beta1/query.rpc.Query.ts | 2 +- .../outputv4/cosmos/mint/v1beta1/query.ts | 13 + .../outputv4/cosmos/nft/v1beta1/event.ts | 17 + .../outputv4/cosmos/nft/v1beta1/genesis.ts | 9 + .../v-next/outputv4/cosmos/nft/v1beta1/nft.ts | 17 + .../cosmos/nft/v1beta1/query.rpc.Query.ts | 2 +- .../outputv4/cosmos/nft/v1beta1/query.ts | 50 ++ .../v-next/outputv4/cosmos/nft/v1beta1/tx.ts | 8 + .../cosmos/orm/module/v1alpha1/module.ts | 2 + .../v-next/outputv4/cosmos/orm/v1/orm.ts | 18 + .../outputv4/cosmos/orm/v1alpha1/schema.ts | 10 + .../outputv4/cosmos/params/v1beta1/params.ts | 11 + .../cosmos/params/v1beta1/query.rpc.Query.ts | 2 +- .../outputv4/cosmos/params/v1beta1/query.ts | 16 + .../cosmos/slashing/v1beta1/genesis.ts | 18 + .../slashing/v1beta1/query.rpc.Query.ts | 2 +- .../outputv4/cosmos/slashing/v1beta1/query.ts | 18 + .../cosmos/slashing/v1beta1/slashing.ts | 16 + .../outputv4/cosmos/slashing/v1beta1/tx.ts | 5 + .../outputv4/cosmos/staking/v1beta1/authz.ts | 10 + .../cosmos/staking/v1beta1/genesis.ts | 15 + .../cosmos/staking/v1beta1/query.rpc.Query.ts | 447 +++++++++++++++- .../outputv4/cosmos/staking/v1beta1/query.ts | 100 ++++ .../cosmos/staking/v1beta1/staking.ts | 104 ++++ .../outputv4/cosmos/staking/v1beta1/tx.ts | 41 ++ .../cosmos/tx/signing/v1beta1/signing.ts | 21 + .../outputv4/cosmos/tx/v1beta1/service.ts | 43 ++ .../v-next/outputv4/cosmos/tx/v1beta1/tx.ts | 69 +++ .../cosmos/upgrade/v1beta1/query.rpc.Query.ts | 2 +- .../outputv4/cosmos/upgrade/v1beta1/query.ts | 27 + .../outputv4/cosmos/upgrade/v1beta1/tx.ts | 10 + .../cosmos/upgrade/v1beta1/upgrade.ts | 21 + .../outputv4/cosmos/vesting/v1beta1/tx.ts | 22 + .../cosmos/vesting/v1beta1/vesting.ts | 27 + .../v-next/outputv4/cosmos_proto/cosmos.ts | 10 + .../outputv4/cosmwasm/wasm/v1/genesis.ts | 28 ++ .../v-next/outputv4/cosmwasm/wasm/v1/ibc.ts | 10 + .../outputv4/cosmwasm/wasm/v1/proposal.ts | 60 +++ .../cosmwasm/wasm/v1/query.rpc.Query.ts | 2 +- .../v-next/outputv4/cosmwasm/wasm/v1/query.ts | 72 +++ .../v-next/outputv4/cosmwasm/wasm/v1/tx.ts | 50 ++ .../v-next/outputv4/cosmwasm/wasm/v1/types.ts | 41 ++ .../v-next/outputv4/evmos/claims/v1/claims.ts | 15 + .../outputv4/evmos/claims/v1/genesis.ts | 14 + .../evmos/claims/v1/query.rpc.Query.ts | 2 +- .../v-next/outputv4/evmos/claims/v1/query.ts | 23 + .../outputv4/evmos/epochs/v1/genesis.ts | 13 + .../evmos/epochs/v1/query.rpc.Query.ts | 2 +- .../v-next/outputv4/evmos/epochs/v1/query.ts | 14 + .../v-next/outputv4/evmos/erc20/v1/erc20.ts | 22 + .../v-next/outputv4/evmos/erc20/v1/genesis.ts | 9 + .../evmos/erc20/v1/query.rpc.Query.ts | 2 +- .../v-next/outputv4/evmos/erc20/v1/query.ts | 18 + .../v-next/outputv4/evmos/erc20/v1/tx.ts | 14 + .../v-next/outputv4/evmos/fees/v1/fees.ts | 6 + .../v-next/outputv4/evmos/fees/v1/genesis.ts | 12 + .../outputv4/evmos/fees/v1/query.rpc.Query.ts | 2 +- .../v-next/outputv4/evmos/fees/v1/query.ts | 26 + .../v-next/outputv4/evmos/fees/v1/tx.ts | 19 + .../outputv4/evmos/incentives/v1/genesis.ts | 12 + .../evmos/incentives/v1/incentives.ts | 25 + .../evmos/incentives/v1/query.rpc.Query.ts | 2 +- .../outputv4/evmos/incentives/v1/query.ts | 46 ++ .../outputv4/evmos/inflation/v1/genesis.ts | 14 + .../outputv4/evmos/inflation/v1/inflation.ts | 13 + .../evmos/inflation/v1/query.rpc.Query.ts | 2 +- .../outputv4/evmos/inflation/v1/query.ts | 25 + .../outputv4/evmos/recovery/v1/genesis.ts | 8 + .../evmos/recovery/v1/query.rpc.Query.ts | 2 +- .../outputv4/evmos/recovery/v1/query.ts | 5 + .../evmos/vesting/v1/query.rpc.Query.ts | 2 +- .../v-next/outputv4/evmos/vesting/v1/query.ts | 9 + .../v-next/outputv4/evmos/vesting/v1/tx.ts | 16 + .../outputv4/evmos/vesting/v1/vesting.ts | 8 + .../v-next/outputv4/google/api/auth.ts | 31 ++ .../v-next/outputv4/google/api/backend.ts | 15 + .../v-next/outputv4/google/api/billing.ts | 8 + .../outputv4/google/api/config_change.ts | 11 + .../v-next/outputv4/google/api/consumer.ts | 9 + .../v-next/outputv4/google/api/context.ts | 11 + .../v-next/outputv4/google/api/control.ts | 4 + .../outputv4/google/api/distribution.ts | 37 ++ .../outputv4/google/api/documentation.ts | 19 + .../v-next/outputv4/google/api/endpoint.ts | 7 + .../outputv4/google/api/error_reason.ts | 1 + .../v1alpha1/conformance_service.ts | 42 ++ .../google/api/expr/v1alpha1/checked.ts | 76 +++ .../outputv4/google/api/expr/v1alpha1/eval.ts | 20 + .../google/api/expr/v1alpha1/explain.ts | 9 + .../google/api/expr/v1alpha1/syntax.ts | 86 ++++ .../google/api/expr/v1alpha1/value.ts | 29 ++ .../outputv4/google/api/expr/v1beta1/decl.ts | 22 + .../outputv4/google/api/expr/v1beta1/eval.ts | 23 + .../outputv4/google/api/expr/v1beta1/expr.ts | 60 +++ .../google/api/expr/v1beta1/source.ts | 18 + .../outputv4/google/api/expr/v1beta1/value.ts | 29 ++ .../outputv4/google/api/field_behavior.ts | 1 + .../v-next/outputv4/google/api/http.ts | 21 + .../v-next/outputv4/google/api/httpbody.ts | 6 + .../v-next/outputv4/google/api/label.ts | 6 + .../outputv4/google/api/launch_stage.ts | 1 + .../v-next/outputv4/google/api/log.ts | 7 + .../v-next/outputv4/google/api/logging.ts | 9 + .../v-next/outputv4/google/api/metric.ts | 29 ++ .../outputv4/google/api/monitored_resource.ts | 29 ++ .../v-next/outputv4/google/api/monitoring.ts | 9 + .../v-next/outputv4/google/api/quota.ts | 33 ++ .../v-next/outputv4/google/api/resource.ts | 14 + .../v-next/outputv4/google/api/routing.ts | 8 + .../v-next/outputv4/google/api/service.ts | 28 ++ .../api/servicecontrol/v1/check_error.ts | 7 + .../api/servicecontrol/v1/distribution.ts | 26 + .../api/servicecontrol/v1/http_request.ts | 18 + .../google/api/servicecontrol/v1/log_entry.ts | 32 ++ .../api/servicecontrol/v1/metric_value.ts | 21 + .../google/api/servicecontrol/v1/operation.ts | 19 + .../api/servicecontrol/v1/quota_controller.ts | 32 ++ .../servicecontrol/v1/service_controller.ts | 36 ++ .../servicecontrol/v2/service_controller.ts | 31 ++ .../api/servicemanagement/v1/resources.ts | 54 ++ .../servicemanagement/v1/servicemanager.ts | 80 +++ .../google/api/serviceusage/v1/resources.ts | 22 + .../api/serviceusage/v1/serviceusage.ts | 47 ++ .../api/serviceusage/v1beta1/resources.ts | 87 ++++ .../api/serviceusage/v1beta1/serviceusage.ts | 137 +++++ .../v-next/outputv4/google/api/source_info.ts | 4 + .../outputv4/google/api/system_parameter.ts | 13 + .../v-next/outputv4/google/api/usage.ts | 11 + .../v-next/outputv4/google/api/visibility.ts | 8 + .../google/logging/type/http_request.ts | 18 + .../google/logging/type/log_severity.ts | 1 + .../outputv4/google/logging/v2/log_entry.ts | 42 ++ .../outputv4/google/logging/v2/logging.ts | 70 +++ .../google/logging/v2/logging_config.ts | 193 +++++++ .../google/logging/v2/logging_metrics.ts | 43 ++ .../outputv4/google/longrunning/operations.ts | 35 ++ .../v-next/outputv4/google/protobuf/any.ts | 6 + .../v-next/outputv4/google/protobuf/api.ts | 23 + .../google/protobuf/compiler/plugin.ts | 22 + .../outputv4/google/protobuf/descriptor.ts | 179 +++++++ .../outputv4/google/protobuf/duration.ts | 5 + .../v-next/outputv4/google/protobuf/empty.ts | 2 + .../outputv4/google/protobuf/field_mask.ts | 4 + .../google/protobuf/source_context.ts | 4 + .../v-next/outputv4/google/protobuf/struct.ts | 21 + .../outputv4/google/protobuf/timestamp.ts | 5 + .../v-next/outputv4/google/protobuf/type.ts | 37 ++ .../outputv4/google/protobuf/wrappers.ts | 28 ++ .../v-next/outputv4/google/rpc/code.ts | 1 + .../google/rpc/context/attribute_context.ts | 96 ++++ .../outputv4/google/rpc/error_details.ts | 62 +++ .../v-next/outputv4/google/rpc/status.ts | 6 + .../ibc/applications/transfer/v1/genesis.ts | 6 + .../transfer/v1/query.rpc.Query.ts | 2 +- .../ibc/applications/transfer/v1/query.ts | 18 + .../ibc/applications/transfer/v1/transfer.ts | 9 + .../ibc/applications/transfer/v1/tx.ts | 11 + .../ibc/applications/transfer/v2/packet.ts | 7 + .../outputv4/ibc/core/channel/v1/channel.ts | 41 ++ .../outputv4/ibc/core/channel/v1/genesis.ts | 16 + .../ibc/core/channel/v1/query.rpc.Query.ts | 2 +- .../outputv4/ibc/core/channel/v1/query.ts | 126 +++++ .../v-next/outputv4/ibc/core/channel/v1/tx.ts | 81 +++ .../outputv4/ibc/core/client/v1/client.ts | 32 ++ .../outputv4/ibc/core/client/v1/genesis.ts | 17 + .../ibc/core/client/v1/query.rpc.Query.ts | 2 +- .../outputv4/ibc/core/client/v1/query.ts | 53 ++ .../v-next/outputv4/ibc/core/client/v1/tx.ts | 28 ++ .../ibc/core/commitment/v1/commitment.ts | 13 + .../ibc/core/connection/v1/connection.ts | 35 ++ .../ibc/core/connection/v1/genesis.ts | 7 + .../ibc/core/connection/v1/query.rpc.Query.ts | 2 +- .../outputv4/ibc/core/connection/v1/query.ts | 44 ++ .../outputv4/ibc/core/connection/v1/tx.ts | 44 ++ .../ibc/core/port/v1/query.rpc.Query.ts | 2 +- .../v-next/outputv4/ibc/core/port/v1/query.ts | 12 + .../outputv4/ibc/core/types/v1/genesis.ts | 6 + .../lightclients/localhost/v1/localhost.ts | 5 + .../solomachine/v1/solomachine.ts | 77 +++ .../solomachine/v2/solomachine.ts | 77 +++ .../lightclients/tendermint/v1/tendermint.ts | 34 ++ __fixtures__/v-next/outputv4/index.ts | 1 + .../outputv4/osmosis/claim/v1beta1/claim.ts | 6 + .../outputv4/osmosis/claim/v1beta1/genesis.ts | 6 + .../outputv4/osmosis/claim/v1beta1/params.ts | 7 + .../osmosis/claim/v1beta1/query.rpc.Query.ts | 2 +- .../outputv4/osmosis/claim/v1beta1/query.ts | 28 ++ .../v-next/outputv4/osmosis/epochs/genesis.ts | 13 + .../osmosis/epochs/query.rpc.Query.ts | 2 +- .../v-next/outputv4/osmosis/epochs/query.ts | 11 + .../gamm/pool-models/balancer/balancerPool.ts | 25 + .../gamm/pool-models/balancer/tx/tx.ts | 10 + .../pool-models/stableswap/stableswap_pool.ts | 15 + .../osmosis/gamm/pool-models/stableswap/tx.ts | 18 + .../outputv4/osmosis/gamm/v1beta1/genesis.ts | 9 + .../osmosis/gamm/v1beta1/query.rpc.Query.ts | 475 +++++++++++++++++- .../outputv4/osmosis/gamm/v1beta1/query.ts | 104 ++++ .../outputv4/osmosis/gamm/v1beta1/tx.ts | 84 ++++ .../osmosis/gamm/v2/query.rpc.Query.ts | 56 ++- .../v-next/outputv4/osmosis/gamm/v2/query.ts | 9 + .../osmosis/ibc-rate-limit/v1beta1/params.ts | 4 + .../ibc-rate-limit/v1beta1/query.rpc.Query.ts | 2 +- .../osmosis/ibc-rate-limit/v1beta1/query.ts | 5 + .../outputv4/osmosis/incentives/gauge.ts | 14 + .../outputv4/osmosis/incentives/genesis.ts | 7 + .../outputv4/osmosis/incentives/params.ts | 4 + .../osmosis/incentives/query.rpc.Query.ts | 2 +- .../outputv4/osmosis/incentives/query.ts | 60 +++ .../v-next/outputv4/osmosis/incentives/tx.ts | 16 + .../v-next/outputv4/osmosis/lockup/genesis.ts | 6 + .../v-next/outputv4/osmosis/lockup/lock.ts | 20 + .../v-next/outputv4/osmosis/lockup/params.ts | 4 + .../osmosis/lockup/query.rpc.Query.ts | 2 +- .../v-next/outputv4/osmosis/lockup/query.ts | 108 ++++ .../v-next/outputv4/osmosis/lockup/tx.ts | 39 ++ .../outputv4/osmosis/mint/v1beta1/genesis.ts | 6 + .../outputv4/osmosis/mint/v1beta1/mint.ts | 24 + .../osmosis/mint/v1beta1/query.rpc.Query.ts | 2 +- .../outputv4/osmosis/mint/v1beta1/query.ts | 9 + .../pool-incentives/v1beta1/genesis.ts | 7 + .../osmosis/pool-incentives/v1beta1/gov.ts | 11 + .../pool-incentives/v1beta1/incentives.ts | 23 + .../v1beta1/query.rpc.Query.ts | 2 +- .../osmosis/pool-incentives/v1beta1/query.ts | 37 ++ .../outputv4/osmosis/sumtree/v1beta1/tree.ts | 11 + .../outputv4/osmosis/superfluid/genesis.ts | 8 + .../outputv4/osmosis/superfluid/params.ts | 4 + .../osmosis/superfluid/query.rpc.Query.ts | 2 +- .../outputv4/osmosis/superfluid/query.ts | 107 ++++ .../outputv4/osmosis/superfluid/superfluid.ts | 28 ++ .../v-next/outputv4/osmosis/superfluid/tx.ts | 32 ++ .../osmosis/superfluid/v1beta1/gov.ts | 17 + .../tokenfactory/v1beta1/authorityMetadata.ts | 4 + .../osmosis/tokenfactory/v1beta1/genesis.ts | 9 + .../osmosis/tokenfactory/v1beta1/params.ts | 4 + .../tokenfactory/v1beta1/query.rpc.Query.ts | 2 +- .../osmosis/tokenfactory/v1beta1/query.ts | 17 + .../osmosis/tokenfactory/v1beta1/tx.ts | 29 ++ .../outputv4/osmosis/twap/v1beta1/genesis.ts | 9 + .../outputv4/osmosis/twap/v1beta1/query.ts | 24 + .../osmosis/twap/v1beta1/twap_record.ts | 13 + .../osmosis/txfees/v1beta1/feetoken.ts | 5 + .../osmosis/txfees/v1beta1/genesis.ts | 5 + .../outputv4/osmosis/txfees/v1beta1/gov.ts | 6 + .../osmosis/txfees/v1beta1/query.rpc.Query.ts | 2 +- .../outputv4/osmosis/txfees/v1beta1/query.ts | 22 + .../v-next/outputv4/tendermint/abci/types.ts | 231 +++++++++ .../v-next/outputv4/tendermint/crypto/keys.ts | 5 + .../outputv4/tendermint/crypto/proof.ts | 24 + .../outputv4/tendermint/libs/bits/types.ts | 5 + .../v-next/outputv4/tendermint/p2p/types.ts | 31 ++ .../v-next/outputv4/tendermint/types/block.ts | 7 + .../outputv4/tendermint/types/evidence.ts | 22 + .../outputv4/tendermint/types/params.ts | 27 + .../v-next/outputv4/tendermint/types/types.ts | 83 +++ .../outputv4/tendermint/types/validator.ts | 16 + .../outputv4/tendermint/version/types.ts | 9 + __fixtures__/v-next/outputv4/vue-query.ts | 10 +- .../telescope/__tests__/telescope-v4.test.ts | 9 + .../__tests__/telescope-vuequery.test.ts | 288 ----------- 393 files changed, 10182 insertions(+), 344 deletions(-) delete mode 100644 packages/telescope/__tests__/telescope-vuequery.test.ts diff --git a/__fixtures__/v-next/outputv4/akash/audit/v1beta1/audit.ts b/__fixtures__/v-next/outputv4/akash/audit/v1beta1/audit.ts index 5091e8d3a3..1c92331e50 100644 --- a/__fixtures__/v-next/outputv4/akash/audit/v1beta1/audit.ts +++ b/__fixtures__/v-next/outputv4/akash/audit/v1beta1/audit.ts @@ -2,6 +2,7 @@ import { Attribute, AttributeSDKType } from "../../base/v1beta1/attribute.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial, Exact } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "akash.audit.v1beta1"; /** Provider stores owner auditor and attributes details */ export interface Provider { @@ -9,6 +10,11 @@ export interface Provider { auditor: string; attributes: Attribute[]; } +export interface ReactiveProvider { + owner: ComputedRef; + auditor: ComputedRef; + attributes: ComputedRef; +} export interface ProviderProtoMsg { typeUrl: "/akash.audit.v1beta1.Provider"; value: Uint8Array; @@ -25,6 +31,11 @@ export interface AuditedAttributes { auditor: string; attributes: Attribute[]; } +export interface ReactiveAuditedAttributes { + owner: ComputedRef; + auditor: ComputedRef; + attributes: ComputedRef; +} export interface AuditedAttributesProtoMsg { typeUrl: "/akash.audit.v1beta1.AuditedAttributes"; value: Uint8Array; @@ -39,6 +50,9 @@ export interface AuditedAttributesSDKType { export interface AttributesResponse { attributes: AuditedAttributes[]; } +export interface ReactiveAttributesResponse { + attributes: ComputedRef; +} export interface AttributesResponseProtoMsg { typeUrl: "/akash.audit.v1beta1.AttributesResponse"; value: Uint8Array; @@ -52,6 +66,10 @@ export interface AttributesFilters { auditors: string[]; owners: string[]; } +export interface ReactiveAttributesFilters { + auditors: ComputedRef; + owners: ComputedRef; +} export interface AttributesFiltersProtoMsg { typeUrl: "/akash.audit.v1beta1.AttributesFilters"; value: Uint8Array; @@ -67,6 +85,11 @@ export interface MsgSignProviderAttributes { auditor: string; attributes: Attribute[]; } +export interface ReactiveMsgSignProviderAttributes { + owner: ComputedRef; + auditor: ComputedRef; + attributes: ComputedRef; +} export interface MsgSignProviderAttributesProtoMsg { typeUrl: "/akash.audit.v1beta1.MsgSignProviderAttributes"; value: Uint8Array; @@ -79,6 +102,7 @@ export interface MsgSignProviderAttributesSDKType { } /** MsgSignProviderAttributesResponse defines the Msg/CreateProvider response type. */ export interface MsgSignProviderAttributesResponse {} +export interface ReactiveMsgSignProviderAttributesResponse {} export interface MsgSignProviderAttributesResponseProtoMsg { typeUrl: "/akash.audit.v1beta1.MsgSignProviderAttributesResponse"; value: Uint8Array; @@ -91,6 +115,11 @@ export interface MsgDeleteProviderAttributes { auditor: string; keys: string[]; } +export interface ReactiveMsgDeleteProviderAttributes { + owner: ComputedRef; + auditor: ComputedRef; + keys: ComputedRef; +} export interface MsgDeleteProviderAttributesProtoMsg { typeUrl: "/akash.audit.v1beta1.MsgDeleteProviderAttributes"; value: Uint8Array; @@ -103,6 +132,7 @@ export interface MsgDeleteProviderAttributesSDKType { } /** MsgDeleteProviderAttributesResponse defines the Msg/ProviderAttributes response type. */ export interface MsgDeleteProviderAttributesResponse {} +export interface ReactiveMsgDeleteProviderAttributesResponse {} export interface MsgDeleteProviderAttributesResponseProtoMsg { typeUrl: "/akash.audit.v1beta1.MsgDeleteProviderAttributesResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/akash/audit/v1beta2/audit.ts b/__fixtures__/v-next/outputv4/akash/audit/v1beta2/audit.ts index 6a533db05e..fb3a455735 100644 --- a/__fixtures__/v-next/outputv4/akash/audit/v1beta2/audit.ts +++ b/__fixtures__/v-next/outputv4/akash/audit/v1beta2/audit.ts @@ -2,6 +2,7 @@ import { Attribute, AttributeSDKType } from "../../base/v1beta2/attribute.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial, Exact } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "akash.audit.v1beta2"; /** Provider stores owner auditor and attributes details */ export interface Provider { @@ -9,6 +10,11 @@ export interface Provider { auditor: string; attributes: Attribute[]; } +export interface ReactiveProvider { + owner: ComputedRef; + auditor: ComputedRef; + attributes: ComputedRef; +} export interface ProviderProtoMsg { typeUrl: "/akash.audit.v1beta2.Provider"; value: Uint8Array; @@ -25,6 +31,11 @@ export interface AuditedAttributes { auditor: string; attributes: Attribute[]; } +export interface ReactiveAuditedAttributes { + owner: ComputedRef; + auditor: ComputedRef; + attributes: ComputedRef; +} export interface AuditedAttributesProtoMsg { typeUrl: "/akash.audit.v1beta2.AuditedAttributes"; value: Uint8Array; @@ -39,6 +50,9 @@ export interface AuditedAttributesSDKType { export interface AttributesResponse { attributes: AuditedAttributes[]; } +export interface ReactiveAttributesResponse { + attributes: ComputedRef; +} export interface AttributesResponseProtoMsg { typeUrl: "/akash.audit.v1beta2.AttributesResponse"; value: Uint8Array; @@ -52,6 +66,10 @@ export interface AttributesFilters { auditors: string[]; owners: string[]; } +export interface ReactiveAttributesFilters { + auditors: ComputedRef; + owners: ComputedRef; +} export interface AttributesFiltersProtoMsg { typeUrl: "/akash.audit.v1beta2.AttributesFilters"; value: Uint8Array; @@ -67,6 +85,11 @@ export interface MsgSignProviderAttributes { auditor: string; attributes: Attribute[]; } +export interface ReactiveMsgSignProviderAttributes { + owner: ComputedRef; + auditor: ComputedRef; + attributes: ComputedRef; +} export interface MsgSignProviderAttributesProtoMsg { typeUrl: "/akash.audit.v1beta2.MsgSignProviderAttributes"; value: Uint8Array; @@ -79,6 +102,7 @@ export interface MsgSignProviderAttributesSDKType { } /** MsgSignProviderAttributesResponse defines the Msg/CreateProvider response type. */ export interface MsgSignProviderAttributesResponse {} +export interface ReactiveMsgSignProviderAttributesResponse {} export interface MsgSignProviderAttributesResponseProtoMsg { typeUrl: "/akash.audit.v1beta2.MsgSignProviderAttributesResponse"; value: Uint8Array; @@ -91,6 +115,11 @@ export interface MsgDeleteProviderAttributes { auditor: string; keys: string[]; } +export interface ReactiveMsgDeleteProviderAttributes { + owner: ComputedRef; + auditor: ComputedRef; + keys: ComputedRef; +} export interface MsgDeleteProviderAttributesProtoMsg { typeUrl: "/akash.audit.v1beta2.MsgDeleteProviderAttributes"; value: Uint8Array; @@ -103,6 +132,7 @@ export interface MsgDeleteProviderAttributesSDKType { } /** MsgDeleteProviderAttributesResponse defines the Msg/ProviderAttributes response type. */ export interface MsgDeleteProviderAttributesResponse {} +export interface ReactiveMsgDeleteProviderAttributesResponse {} export interface MsgDeleteProviderAttributesResponseProtoMsg { typeUrl: "/akash.audit.v1beta2.MsgDeleteProviderAttributesResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/akash/audit/v1beta2/genesis.ts b/__fixtures__/v-next/outputv4/akash/audit/v1beta2/genesis.ts index d8761d76e8..9897157c30 100644 --- a/__fixtures__/v-next/outputv4/akash/audit/v1beta2/genesis.ts +++ b/__fixtures__/v-next/outputv4/akash/audit/v1beta2/genesis.ts @@ -2,11 +2,15 @@ import { AuditedAttributes, AuditedAttributesSDKType } from "./audit.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { JsonSafe } from "../../../json-safe.js"; import { DeepPartial, Exact } from "../../../helpers.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "akash.audit.v1beta2"; /** GenesisState defines the basic genesis state used by audit module */ export interface GenesisState { attributes: AuditedAttributes[]; } +export interface ReactiveGenesisState { + attributes: ComputedRef; +} export interface GenesisStateProtoMsg { typeUrl: "/akash.audit.v1beta2.GenesisState"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/akash/audit/v1beta2/query.rpc.Query.ts b/__fixtures__/v-next/outputv4/akash/audit/v1beta2/query.rpc.Query.ts index 2b2e2c3db5..e0fd0971d5 100644 --- a/__fixtures__/v-next/outputv4/akash/audit/v1beta2/query.rpc.Query.ts +++ b/__fixtures__/v-next/outputv4/akash/audit/v1beta2/query.rpc.Query.ts @@ -3,7 +3,7 @@ import { Provider, ProviderSDKType } from "./audit.js"; import { Rpc } from "../../../helpers.js"; import { BinaryReader } from "../../../binary.js"; import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryAllProvidersAttributesRequest, QueryAllProvidersAttributesRequestSDKType, QueryProvidersResponse, QueryProvidersResponseSDKType, QueryProviderAttributesRequest, QueryProviderAttributesRequestSDKType, QueryProviderAuditorRequest, QueryProviderAuditorRequestSDKType, QueryAuditorAttributesRequest, QueryAuditorAttributesRequestSDKType } from "./query.js"; +import { QueryAllProvidersAttributesRequest, QueryAllProvidersAttributesRequestSDKType, QueryProvidersResponse, QueryProvidersResponseSDKType, QueryProviderAttributesRequest, QueryProviderAttributesRequestSDKType, QueryProviderAuditorRequest, QueryProviderAuditorRequestSDKType, QueryAuditorAttributesRequest, QueryAuditorAttributesRequestSDKType, ReactiveQueryAllProvidersAttributesRequest, ReactiveQueryProviderAttributesRequest, ReactiveQueryProviderAuditorRequest, ReactiveQueryAuditorAttributesRequest } from "./query.js"; /** Query defines the gRPC querier service */ export interface Query { /** diff --git a/__fixtures__/v-next/outputv4/akash/audit/v1beta2/query.ts b/__fixtures__/v-next/outputv4/akash/audit/v1beta2/query.ts index 0610b399f4..67c4a6b383 100644 --- a/__fixtures__/v-next/outputv4/akash/audit/v1beta2/query.ts +++ b/__fixtures__/v-next/outputv4/akash/audit/v1beta2/query.ts @@ -3,12 +3,17 @@ import { Provider, ProviderSDKType } from "./audit.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial, Exact } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "akash.audit.v1beta2"; /** QueryProvidersResponse is response type for the Query/Providers RPC method */ export interface QueryProvidersResponse { providers: Provider[]; pagination?: PageResponse; } +export interface ReactiveQueryProvidersResponse { + providers: ComputedRef; + pagination?: ComputedRef; +} export interface QueryProvidersResponseProtoMsg { typeUrl: "/akash.audit.v1beta2.QueryProvidersResponse"; value: Uint8Array; @@ -23,6 +28,10 @@ export interface QueryProviderRequest { auditor: string; owner: string; } +export interface ReactiveQueryProviderRequest { + auditor: ComputedRef; + owner: ComputedRef; +} export interface QueryProviderRequestProtoMsg { typeUrl: "/akash.audit.v1beta2.QueryProviderRequest"; value: Uint8Array; @@ -36,6 +45,9 @@ export interface QueryProviderRequestSDKType { export interface QueryAllProvidersAttributesRequest { pagination?: PageRequest; } +export interface ReactiveQueryAllProvidersAttributesRequest { + pagination?: ComputedRef; +} export interface QueryAllProvidersAttributesRequestProtoMsg { typeUrl: "/akash.audit.v1beta2.QueryAllProvidersAttributesRequest"; value: Uint8Array; @@ -49,6 +61,10 @@ export interface QueryProviderAttributesRequest { owner: string; pagination?: PageRequest; } +export interface ReactiveQueryProviderAttributesRequest { + owner: ComputedRef; + pagination?: ComputedRef; +} export interface QueryProviderAttributesRequestProtoMsg { typeUrl: "/akash.audit.v1beta2.QueryProviderAttributesRequest"; value: Uint8Array; @@ -63,6 +79,10 @@ export interface QueryProviderAuditorRequest { auditor: string; owner: string; } +export interface ReactiveQueryProviderAuditorRequest { + auditor: ComputedRef; + owner: ComputedRef; +} export interface QueryProviderAuditorRequestProtoMsg { typeUrl: "/akash.audit.v1beta2.QueryProviderAuditorRequest"; value: Uint8Array; @@ -77,6 +97,10 @@ export interface QueryAuditorAttributesRequest { auditor: string; pagination?: PageRequest; } +export interface ReactiveQueryAuditorAttributesRequest { + auditor: ComputedRef; + pagination?: ComputedRef; +} export interface QueryAuditorAttributesRequestProtoMsg { typeUrl: "/akash.audit.v1beta2.QueryAuditorAttributesRequest"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/akash/base/v1beta1/attribute.ts b/__fixtures__/v-next/outputv4/akash/base/v1beta1/attribute.ts index 631a835c33..9440847615 100644 --- a/__fixtures__/v-next/outputv4/akash/base/v1beta1/attribute.ts +++ b/__fixtures__/v-next/outputv4/akash/base/v1beta1/attribute.ts @@ -1,12 +1,17 @@ import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial, Exact } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "akash.base.v1beta1"; /** Attribute represents key value pair */ export interface Attribute { key: string; value: string; } +export interface ReactiveAttribute { + key: ComputedRef; + value: ComputedRef; +} export interface AttributeProtoMsg { typeUrl: "/akash.base.v1beta1.Attribute"; value: Uint8Array; @@ -28,6 +33,10 @@ export interface SignedBy { /** any_of at least of of the keys from the list must have signed attributes */ anyOf: string[]; } +export interface ReactiveSignedBy { + allOf: ComputedRef; + anyOf: ComputedRef; +} export interface SignedByProtoMsg { typeUrl: "/akash.base.v1beta1.SignedBy"; value: Uint8Array; @@ -49,6 +58,10 @@ export interface PlacementRequirements { /** Attribute list of attributes tenant expects from the provider */ attributes: Attribute[]; } +export interface ReactivePlacementRequirements { + signedBy: ComputedRef; + attributes: ComputedRef; +} export interface PlacementRequirementsProtoMsg { typeUrl: "/akash.base.v1beta1.PlacementRequirements"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/akash/base/v1beta1/endpoint.ts b/__fixtures__/v-next/outputv4/akash/base/v1beta1/endpoint.ts index 46d46f2d6c..bc215df4ca 100644 --- a/__fixtures__/v-next/outputv4/akash/base/v1beta1/endpoint.ts +++ b/__fixtures__/v-next/outputv4/akash/base/v1beta1/endpoint.ts @@ -1,6 +1,7 @@ import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial, Exact } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "akash.base.v1beta1"; /** This describes how the endpoint is implemented when the lease is deployed */ export enum Endpoint_Kind { @@ -40,6 +41,9 @@ export function endpoint_KindToJSON(object: Endpoint_Kind): string { export interface Endpoint { kind: Endpoint_Kind; } +export interface ReactiveEndpoint { + kind: ComputedRef; +} export interface EndpointProtoMsg { typeUrl: "/akash.base.v1beta1.Endpoint"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/akash/base/v1beta1/resource.ts b/__fixtures__/v-next/outputv4/akash/base/v1beta1/resource.ts index edcfb36d7f..7ca01d2a44 100644 --- a/__fixtures__/v-next/outputv4/akash/base/v1beta1/resource.ts +++ b/__fixtures__/v-next/outputv4/akash/base/v1beta1/resource.ts @@ -4,12 +4,17 @@ import { Endpoint, EndpointSDKType } from "./endpoint.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial, Exact } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "akash.base.v1beta1"; /** CPU stores resource units and cpu config attributes */ export interface CPU { units: ResourceValue; attributes: Attribute[]; } +export interface ReactiveCPU { + units: ComputedRef; + attributes: ComputedRef; +} export interface CPUProtoMsg { typeUrl: "/akash.base.v1beta1.CPU"; value: Uint8Array; @@ -24,6 +29,10 @@ export interface Memory { quantity: ResourceValue; attributes: Attribute[]; } +export interface ReactiveMemory { + quantity: ComputedRef; + attributes: ComputedRef; +} export interface MemoryProtoMsg { typeUrl: "/akash.base.v1beta1.Memory"; value: Uint8Array; @@ -38,6 +47,10 @@ export interface Storage { quantity: ResourceValue; attributes: Attribute[]; } +export interface ReactiveStorage { + quantity: ComputedRef; + attributes: ComputedRef; +} export interface StorageProtoMsg { typeUrl: "/akash.base.v1beta1.Storage"; value: Uint8Array; @@ -57,6 +70,12 @@ export interface ResourceUnits { storage?: Storage; endpoints: Endpoint[]; } +export interface ReactiveResourceUnits { + cpu?: ComputedRef; + memory?: ComputedRef; + storage?: ComputedRef; + endpoints: ComputedRef; +} export interface ResourceUnitsProtoMsg { typeUrl: "/akash.base.v1beta1.ResourceUnits"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/akash/base/v1beta1/resourcevalue.ts b/__fixtures__/v-next/outputv4/akash/base/v1beta1/resourcevalue.ts index e5bb736a5c..7b61743fe2 100644 --- a/__fixtures__/v-next/outputv4/akash/base/v1beta1/resourcevalue.ts +++ b/__fixtures__/v-next/outputv4/akash/base/v1beta1/resourcevalue.ts @@ -1,11 +1,15 @@ import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, bytesFromBase64, base64FromBytes, DeepPartial, Exact } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "akash.base.v1beta1"; /** Unit stores cpu, memory and storage metrics */ export interface ResourceValue { val: Uint8Array; } +export interface ReactiveResourceValue { + val: ComputedRef; +} export interface ResourceValueProtoMsg { typeUrl: "/akash.base.v1beta1.ResourceValue"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/akash/base/v1beta2/attribute.ts b/__fixtures__/v-next/outputv4/akash/base/v1beta2/attribute.ts index ebd6e8f64f..a98ae148c8 100644 --- a/__fixtures__/v-next/outputv4/akash/base/v1beta2/attribute.ts +++ b/__fixtures__/v-next/outputv4/akash/base/v1beta2/attribute.ts @@ -1,12 +1,17 @@ import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial, Exact } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "akash.base.v1beta2"; /** Attribute represents key value pair */ export interface Attribute { key: string; value: string; } +export interface ReactiveAttribute { + key: ComputedRef; + value: ComputedRef; +} export interface AttributeProtoMsg { typeUrl: "/akash.base.v1beta2.Attribute"; value: Uint8Array; @@ -28,6 +33,10 @@ export interface SignedBy { /** any_of at least of of the keys from the list must have signed attributes */ anyOf: string[]; } +export interface ReactiveSignedBy { + allOf: ComputedRef; + anyOf: ComputedRef; +} export interface SignedByProtoMsg { typeUrl: "/akash.base.v1beta2.SignedBy"; value: Uint8Array; @@ -49,6 +58,10 @@ export interface PlacementRequirements { /** Attribute list of attributes tenant expects from the provider */ attributes: Attribute[]; } +export interface ReactivePlacementRequirements { + signedBy: ComputedRef; + attributes: ComputedRef; +} export interface PlacementRequirementsProtoMsg { typeUrl: "/akash.base.v1beta2.PlacementRequirements"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/akash/base/v1beta2/endpoint.ts b/__fixtures__/v-next/outputv4/akash/base/v1beta2/endpoint.ts index 5acb0a01fc..39e5b470a4 100644 --- a/__fixtures__/v-next/outputv4/akash/base/v1beta2/endpoint.ts +++ b/__fixtures__/v-next/outputv4/akash/base/v1beta2/endpoint.ts @@ -1,6 +1,7 @@ import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial, Exact } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "akash.base.v1beta2"; /** This describes how the endpoint is implemented when the lease is deployed */ export enum Endpoint_Kind { @@ -48,6 +49,10 @@ export interface Endpoint { kind: Endpoint_Kind; sequenceNumber: number; } +export interface ReactiveEndpoint { + kind: ComputedRef; + sequenceNumber: ComputedRef; +} export interface EndpointProtoMsg { typeUrl: "/akash.base.v1beta2.Endpoint"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/akash/base/v1beta2/resource.ts b/__fixtures__/v-next/outputv4/akash/base/v1beta2/resource.ts index 242720eb13..a686c266a4 100644 --- a/__fixtures__/v-next/outputv4/akash/base/v1beta2/resource.ts +++ b/__fixtures__/v-next/outputv4/akash/base/v1beta2/resource.ts @@ -3,12 +3,17 @@ import { Attribute, AttributeSDKType } from "./attribute.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial, Exact } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "akash.base.v1beta2"; /** CPU stores resource units and cpu config attributes */ export interface CPU { units: ResourceValue; attributes: Attribute[]; } +export interface ReactiveCPU { + units: ComputedRef; + attributes: ComputedRef; +} export interface CPUProtoMsg { typeUrl: "/akash.base.v1beta2.CPU"; value: Uint8Array; @@ -23,6 +28,10 @@ export interface Memory { quantity: ResourceValue; attributes: Attribute[]; } +export interface ReactiveMemory { + quantity: ComputedRef; + attributes: ComputedRef; +} export interface MemoryProtoMsg { typeUrl: "/akash.base.v1beta2.Memory"; value: Uint8Array; @@ -38,6 +47,11 @@ export interface Storage { quantity: ResourceValue; attributes: Attribute[]; } +export interface ReactiveStorage { + name: ComputedRef; + quantity: ComputedRef; + attributes: ComputedRef; +} export interface StorageProtoMsg { typeUrl: "/akash.base.v1beta2.Storage"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/akash/base/v1beta2/resourceunits.ts b/__fixtures__/v-next/outputv4/akash/base/v1beta2/resourceunits.ts index 9b9a8160ce..91ca6dc0e6 100644 --- a/__fixtures__/v-next/outputv4/akash/base/v1beta2/resourceunits.ts +++ b/__fixtures__/v-next/outputv4/akash/base/v1beta2/resourceunits.ts @@ -3,6 +3,7 @@ import { Endpoint, EndpointSDKType } from "./endpoint.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial, Exact } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "akash.base.v1beta2"; /** * ResourceUnits describes all available resources types for deployment/node etc @@ -14,6 +15,12 @@ export interface ResourceUnits { storage: Storage[]; endpoints: Endpoint[]; } +export interface ReactiveResourceUnits { + cpu?: ComputedRef; + memory?: ComputedRef; + storage: ComputedRef; + endpoints: ComputedRef; +} export interface ResourceUnitsProtoMsg { typeUrl: "/akash.base.v1beta2.ResourceUnits"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/akash/base/v1beta2/resourcevalue.ts b/__fixtures__/v-next/outputv4/akash/base/v1beta2/resourcevalue.ts index 4566de985a..5471256603 100644 --- a/__fixtures__/v-next/outputv4/akash/base/v1beta2/resourcevalue.ts +++ b/__fixtures__/v-next/outputv4/akash/base/v1beta2/resourcevalue.ts @@ -1,11 +1,15 @@ import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, bytesFromBase64, base64FromBytes, DeepPartial, Exact } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "akash.base.v1beta2"; /** Unit stores cpu, memory and storage metrics */ export interface ResourceValue { val: Uint8Array; } +export interface ReactiveResourceValue { + val: ComputedRef; +} export interface ResourceValueProtoMsg { typeUrl: "/akash.base.v1beta2.ResourceValue"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/akash/cert/v1beta2/cert.ts b/__fixtures__/v-next/outputv4/akash/cert/v1beta2/cert.ts index 178e9adc0c..e474971387 100644 --- a/__fixtures__/v-next/outputv4/akash/cert/v1beta2/cert.ts +++ b/__fixtures__/v-next/outputv4/akash/cert/v1beta2/cert.ts @@ -1,6 +1,7 @@ import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial, Exact, bytesFromBase64, base64FromBytes } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "akash.cert.v1beta2"; /** State is an enum which refers to state of deployment */ export enum Certificate_State { @@ -48,6 +49,10 @@ export interface CertificateID { owner: string; serial: string; } +export interface ReactiveCertificateID { + owner: ComputedRef; + serial: ComputedRef; +} export interface CertificateIDProtoMsg { typeUrl: "/akash.cert.v1beta2.CertificateID"; value: Uint8Array; @@ -63,6 +68,11 @@ export interface Certificate { cert: Uint8Array; pubkey: Uint8Array; } +export interface ReactiveCertificate { + state: ComputedRef; + cert: ComputedRef; + pubkey: ComputedRef; +} export interface CertificateProtoMsg { typeUrl: "/akash.cert.v1beta2.Certificate"; value: Uint8Array; @@ -79,6 +89,11 @@ export interface CertificateFilter { serial: string; state: string; } +export interface ReactiveCertificateFilter { + owner: ComputedRef; + serial: ComputedRef; + state: ComputedRef; +} export interface CertificateFilterProtoMsg { typeUrl: "/akash.cert.v1beta2.CertificateFilter"; value: Uint8Array; @@ -95,6 +110,11 @@ export interface MsgCreateCertificate { cert: Uint8Array; pubkey: Uint8Array; } +export interface ReactiveMsgCreateCertificate { + owner: ComputedRef; + cert: ComputedRef; + pubkey: ComputedRef; +} export interface MsgCreateCertificateProtoMsg { typeUrl: "/akash.cert.v1beta2.MsgCreateCertificate"; value: Uint8Array; @@ -107,6 +127,7 @@ export interface MsgCreateCertificateSDKType { } /** MsgCreateCertificateResponse defines the Msg/CreateCertificate response type. */ export interface MsgCreateCertificateResponse {} +export interface ReactiveMsgCreateCertificateResponse {} export interface MsgCreateCertificateResponseProtoMsg { typeUrl: "/akash.cert.v1beta2.MsgCreateCertificateResponse"; value: Uint8Array; @@ -117,6 +138,9 @@ export interface MsgCreateCertificateResponseSDKType {} export interface MsgRevokeCertificate { id: CertificateID; } +export interface ReactiveMsgRevokeCertificate { + id: ComputedRef; +} export interface MsgRevokeCertificateProtoMsg { typeUrl: "/akash.cert.v1beta2.MsgRevokeCertificate"; value: Uint8Array; @@ -127,6 +151,7 @@ export interface MsgRevokeCertificateSDKType { } /** MsgRevokeCertificateResponse defines the Msg/RevokeCertificate response type. */ export interface MsgRevokeCertificateResponse {} +export interface ReactiveMsgRevokeCertificateResponse {} export interface MsgRevokeCertificateResponseProtoMsg { typeUrl: "/akash.cert.v1beta2.MsgRevokeCertificateResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/akash/cert/v1beta2/genesis.ts b/__fixtures__/v-next/outputv4/akash/cert/v1beta2/genesis.ts index 6961fe42ac..80fca64d28 100644 --- a/__fixtures__/v-next/outputv4/akash/cert/v1beta2/genesis.ts +++ b/__fixtures__/v-next/outputv4/akash/cert/v1beta2/genesis.ts @@ -2,12 +2,17 @@ import { Certificate, CertificateSDKType } from "./cert.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial, Exact } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "akash.cert.v1beta2"; /** GenesisCertificate defines certificate entry at genesis */ export interface GenesisCertificate { owner: string; certificate: Certificate; } +export interface ReactiveGenesisCertificate { + owner: ComputedRef; + certificate: ComputedRef; +} export interface GenesisCertificateProtoMsg { typeUrl: "/akash.cert.v1beta2.GenesisCertificate"; value: Uint8Array; @@ -21,6 +26,9 @@ export interface GenesisCertificateSDKType { export interface GenesisState { certificates: GenesisCertificate[]; } +export interface ReactiveGenesisState { + certificates: ComputedRef; +} export interface GenesisStateProtoMsg { typeUrl: "/akash.cert.v1beta2.GenesisState"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/akash/cert/v1beta2/query.rpc.Query.ts b/__fixtures__/v-next/outputv4/akash/cert/v1beta2/query.rpc.Query.ts index e161d47fa8..5ee2692e27 100644 --- a/__fixtures__/v-next/outputv4/akash/cert/v1beta2/query.rpc.Query.ts +++ b/__fixtures__/v-next/outputv4/akash/cert/v1beta2/query.rpc.Query.ts @@ -4,10 +4,13 @@ import { Rpc } from "../../../helpers.js"; import { BinaryReader } from "../../../binary.js"; import { QueryClient, createProtobufRpcClient, ProtobufRpcClient } from "@cosmjs/stargate"; import { ReactQueryParams } from "../../../react-query.js"; +import { VueQueryParams } from "../../../vue-query.js"; import { useQuery } from "@tanstack/react-query"; +import { ComputedRef, computed, Ref } from "vue"; +import { useQuery } from "@tanstack/vue-query"; import { QueryStore, MobxResponse } from "../../../mobx.js"; import { makeObservable, override } from "mobx"; -import { QueryCertificatesRequest, QueryCertificatesRequestSDKType, QueryCertificatesResponse, QueryCertificatesResponseSDKType } from "./query.js"; +import { QueryCertificatesRequest, QueryCertificatesRequestSDKType, QueryCertificatesResponse, QueryCertificatesResponseSDKType, ReactiveQueryCertificatesRequest } from "./query.js"; /** Query defines the gRPC querier service */ export interface Query { /** Certificates queries certificates */ @@ -47,6 +50,22 @@ const getQueryService = (rpc: ProtobufRpcClient | undefined): QueryClientImpl | _queryClients.set(rpc, queryService); return queryService; }; +export interface UseCertificatesQuery extends VueQueryParams { + request: ReactiveQueryCertificatesRequest; +} +export const useQueryService = (rpc: Ref): ComputedRef => { + const _queryClients = new WeakMap(); + return computed(() => { + if (rpc.value) { + if (_queryClients.has(rpc.value)) { + return _queryClients.get(rpc.value); + } + const queryService = new QueryClientImpl(rpc.value); + _queryClients.set(rpc.value, queryService); + return queryService; + } + }); +}; export const createRpcQueryHooks = (rpc: ProtobufRpcClient | undefined) => { const queryService = getQueryService(rpc); const useCertificates = ({ @@ -62,6 +81,37 @@ export const createRpcQueryHooks = (rpc: ProtobufRpcClient | undefined) => { /** Certificates queries certificates */useCertificates }; }; +export const createRpcQueryHooks = (rpc: Ref) => { + const queryService = useQueryService(rpc); + const useCertificates = ({ + request, + options + }: UseCertificatesQuery) => { + const queryKey = ["certificatesQuery", queryService]; + if (request) { + Object.values(request).forEach((val: any) => { + queryKey.push(val); + }); + } + return useQuery({ + queryKey, + queryFn: () => { + if (!queryService.value) throw new Error("Query Service not initialized"); + let params = ({} as any); + if (request) { + Object.entries(request).forEach(([key, val]) => { + params[key] = val.value; + }); + } + return queryService.value.certificates(params); + }, + ...options + }); + }; + return { + /** Certificates queries certificates */useCertificates + }; +}; export const createRpcQueryMobxStores = (rpc: ProtobufRpcClient | undefined) => { const queryService = getQueryService(rpc); class QueryCertificatesStore { diff --git a/__fixtures__/v-next/outputv4/akash/cert/v1beta2/query.ts b/__fixtures__/v-next/outputv4/akash/cert/v1beta2/query.ts index 7aa12c9328..05148b4499 100644 --- a/__fixtures__/v-next/outputv4/akash/cert/v1beta2/query.ts +++ b/__fixtures__/v-next/outputv4/akash/cert/v1beta2/query.ts @@ -3,12 +3,17 @@ import { PageRequest, PageRequestSDKType, PageResponse, PageResponseSDKType } fr import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial, Exact } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "akash.cert.v1beta2"; /** CertificateResponse contains a single X509 certificate and its serial number */ export interface CertificateResponse { certificate: Certificate; serial: string; } +export interface ReactiveCertificateResponse { + certificate: ComputedRef; + serial: ComputedRef; +} export interface CertificateResponseProtoMsg { typeUrl: "/akash.cert.v1beta2.CertificateResponse"; value: Uint8Array; @@ -23,6 +28,10 @@ export interface QueryCertificatesRequest { filter: CertificateFilter; pagination?: PageRequest; } +export interface ReactiveQueryCertificatesRequest { + filter: ComputedRef; + pagination?: ComputedRef; +} export interface QueryCertificatesRequestProtoMsg { typeUrl: "/akash.cert.v1beta2.QueryCertificatesRequest"; value: Uint8Array; @@ -37,6 +46,10 @@ export interface QueryCertificatesResponse { certificates: CertificateResponse[]; pagination?: PageResponse; } +export interface ReactiveQueryCertificatesResponse { + certificates: ComputedRef; + pagination?: ComputedRef; +} export interface QueryCertificatesResponseProtoMsg { typeUrl: "/akash.cert.v1beta2.QueryCertificatesResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/akash/deployment/v1beta1/authz.ts b/__fixtures__/v-next/outputv4/akash/deployment/v1beta1/authz.ts index 53b769fd9f..0a7d201867 100644 --- a/__fixtures__/v-next/outputv4/akash/deployment/v1beta1/authz.ts +++ b/__fixtures__/v-next/outputv4/akash/deployment/v1beta1/authz.ts @@ -2,6 +2,7 @@ import { Coin, CoinSDKType } from "../../../cosmos/base/v1beta1/coin.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, Exact } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "akash.deployment.v1beta1"; /** * DepositDeploymentAuthorization allows the grantee to deposit up to spend_limit coins from @@ -14,6 +15,9 @@ export interface DepositDeploymentAuthorization { */ spendLimit: Coin | undefined; } +export interface ReactiveDepositDeploymentAuthorization { + spendLimit: ComputedRef; +} export interface DepositDeploymentAuthorizationProtoMsg { typeUrl: "/akash.deployment.v1beta1.DepositDeploymentAuthorization"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/akash/deployment/v1beta1/deployment.ts b/__fixtures__/v-next/outputv4/akash/deployment/v1beta1/deployment.ts index 31b1ed7c86..59acc0c840 100644 --- a/__fixtures__/v-next/outputv4/akash/deployment/v1beta1/deployment.ts +++ b/__fixtures__/v-next/outputv4/akash/deployment/v1beta1/deployment.ts @@ -5,6 +5,7 @@ import { Coin, CoinSDKType } from "../../../cosmos/base/v1beta1/coin.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, bytesFromBase64, base64FromBytes, Exact, Rpc } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "akash.deployment.v1beta1"; /** State is an enum which refers to state of deployment */ export enum Deployment_State { @@ -54,6 +55,12 @@ export interface MsgCreateDeployment { version: Uint8Array; deposit: Coin | undefined; } +export interface ReactiveMsgCreateDeployment { + id: ComputedRef; + groups: ComputedRef; + version: ComputedRef; + deposit: ComputedRef; +} export interface MsgCreateDeploymentProtoMsg { typeUrl: "/akash.deployment.v1beta1.MsgCreateDeployment"; value: Uint8Array; @@ -67,6 +74,7 @@ export interface MsgCreateDeploymentSDKType { } /** MsgCreateDeploymentResponse defines the Msg/CreateDeployment response type. */ export interface MsgCreateDeploymentResponse {} +export interface ReactiveMsgCreateDeploymentResponse {} export interface MsgCreateDeploymentResponseProtoMsg { typeUrl: "/akash.deployment.v1beta1.MsgCreateDeploymentResponse"; value: Uint8Array; @@ -78,6 +86,10 @@ export interface MsgDepositDeployment { id: DeploymentID | undefined; amount: Coin | undefined; } +export interface ReactiveMsgDepositDeployment { + id: ComputedRef; + amount: ComputedRef; +} export interface MsgDepositDeploymentProtoMsg { typeUrl: "/akash.deployment.v1beta1.MsgDepositDeployment"; value: Uint8Array; @@ -89,6 +101,7 @@ export interface MsgDepositDeploymentSDKType { } /** MsgCreateDeploymentResponse defines the Msg/CreateDeployment response type. */ export interface MsgDepositDeploymentResponse {} +export interface ReactiveMsgDepositDeploymentResponse {} export interface MsgDepositDeploymentResponseProtoMsg { typeUrl: "/akash.deployment.v1beta1.MsgDepositDeploymentResponse"; value: Uint8Array; @@ -101,6 +114,11 @@ export interface MsgUpdateDeployment { groups: GroupSpec[]; version: Uint8Array; } +export interface ReactiveMsgUpdateDeployment { + id: ComputedRef; + groups: ComputedRef; + version: ComputedRef; +} export interface MsgUpdateDeploymentProtoMsg { typeUrl: "/akash.deployment.v1beta1.MsgUpdateDeployment"; value: Uint8Array; @@ -113,6 +131,7 @@ export interface MsgUpdateDeploymentSDKType { } /** MsgUpdateDeploymentResponse defines the Msg/UpdateDeployment response type. */ export interface MsgUpdateDeploymentResponse {} +export interface ReactiveMsgUpdateDeploymentResponse {} export interface MsgUpdateDeploymentResponseProtoMsg { typeUrl: "/akash.deployment.v1beta1.MsgUpdateDeploymentResponse"; value: Uint8Array; @@ -123,6 +142,9 @@ export interface MsgUpdateDeploymentResponseSDKType {} export interface MsgCloseDeployment { id: DeploymentID | undefined; } +export interface ReactiveMsgCloseDeployment { + id: ComputedRef; +} export interface MsgCloseDeploymentProtoMsg { typeUrl: "/akash.deployment.v1beta1.MsgCloseDeployment"; value: Uint8Array; @@ -133,6 +155,7 @@ export interface MsgCloseDeploymentSDKType { } /** MsgCloseDeploymentResponse defines the Msg/CloseDeployment response type. */ export interface MsgCloseDeploymentResponse {} +export interface ReactiveMsgCloseDeploymentResponse {} export interface MsgCloseDeploymentResponseProtoMsg { typeUrl: "/akash.deployment.v1beta1.MsgCloseDeploymentResponse"; value: Uint8Array; @@ -144,6 +167,10 @@ export interface DeploymentID { owner: string; dseq: bigint; } +export interface ReactiveDeploymentID { + owner: ComputedRef; + dseq: ComputedRef; +} export interface DeploymentIDProtoMsg { typeUrl: "/akash.deployment.v1beta1.DeploymentID"; value: Uint8Array; @@ -160,6 +187,12 @@ export interface Deployment { version: Uint8Array; createdAt: bigint; } +export interface ReactiveDeployment { + deploymentId: ComputedRef; + state: ComputedRef; + version: ComputedRef; + createdAt: ComputedRef; +} export interface DeploymentProtoMsg { typeUrl: "/akash.deployment.v1beta1.Deployment"; value: Uint8Array; @@ -177,6 +210,11 @@ export interface DeploymentFilters { dseq: bigint; state: string; } +export interface ReactiveDeploymentFilters { + owner: ComputedRef; + dseq: ComputedRef; + state: ComputedRef; +} export interface DeploymentFiltersProtoMsg { typeUrl: "/akash.deployment.v1beta1.DeploymentFilters"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/akash/deployment/v1beta1/genesis.ts b/__fixtures__/v-next/outputv4/akash/deployment/v1beta1/genesis.ts index d913620200..fb2b91d270 100644 --- a/__fixtures__/v-next/outputv4/akash/deployment/v1beta1/genesis.ts +++ b/__fixtures__/v-next/outputv4/akash/deployment/v1beta1/genesis.ts @@ -4,12 +4,17 @@ import { Params, ParamsSDKType } from "./params.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, Exact } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "akash.deployment.v1beta1"; /** GenesisDeployment defines the basic genesis state used by deployment module */ export interface GenesisDeployment { deployment: Deployment | undefined; groups: Group[]; } +export interface ReactiveGenesisDeployment { + deployment: ComputedRef; + groups: ComputedRef; +} export interface GenesisDeploymentProtoMsg { typeUrl: "/akash.deployment.v1beta1.GenesisDeployment"; value: Uint8Array; @@ -24,6 +29,10 @@ export interface GenesisState { deployments: GenesisDeployment[]; params: Params | undefined; } +export interface ReactiveGenesisState { + deployments: ComputedRef; + params: ComputedRef; +} export interface GenesisStateProtoMsg { typeUrl: "/akash.deployment.v1beta1.GenesisState"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/akash/deployment/v1beta1/group.ts b/__fixtures__/v-next/outputv4/akash/deployment/v1beta1/group.ts index 33f785f03f..44efa034d3 100644 --- a/__fixtures__/v-next/outputv4/akash/deployment/v1beta1/group.ts +++ b/__fixtures__/v-next/outputv4/akash/deployment/v1beta1/group.ts @@ -4,6 +4,7 @@ import { Coin, CoinSDKType } from "../../../cosmos/base/v1beta1/coin.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, Exact } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "akash.deployment.v1beta1"; /** State is an enum which refers to state of group */ export enum Group_State { @@ -64,6 +65,9 @@ export function group_StateToJSON(object: Group_State): string { export interface MsgCloseGroup { id: GroupID | undefined; } +export interface ReactiveMsgCloseGroup { + id: ComputedRef; +} export interface MsgCloseGroupProtoMsg { typeUrl: "/akash.deployment.v1beta1.MsgCloseGroup"; value: Uint8Array; @@ -74,6 +78,7 @@ export interface MsgCloseGroupSDKType { } /** MsgCloseGroupResponse defines the Msg/CloseGroup response type. */ export interface MsgCloseGroupResponse {} +export interface ReactiveMsgCloseGroupResponse {} export interface MsgCloseGroupResponseProtoMsg { typeUrl: "/akash.deployment.v1beta1.MsgCloseGroupResponse"; value: Uint8Array; @@ -84,6 +89,9 @@ export interface MsgCloseGroupResponseSDKType {} export interface MsgPauseGroup { id: GroupID | undefined; } +export interface ReactiveMsgPauseGroup { + id: ComputedRef; +} export interface MsgPauseGroupProtoMsg { typeUrl: "/akash.deployment.v1beta1.MsgPauseGroup"; value: Uint8Array; @@ -94,6 +102,7 @@ export interface MsgPauseGroupSDKType { } /** MsgPauseGroupResponse defines the Msg/PauseGroup response type. */ export interface MsgPauseGroupResponse {} +export interface ReactiveMsgPauseGroupResponse {} export interface MsgPauseGroupResponseProtoMsg { typeUrl: "/akash.deployment.v1beta1.MsgPauseGroupResponse"; value: Uint8Array; @@ -104,6 +113,9 @@ export interface MsgPauseGroupResponseSDKType {} export interface MsgStartGroup { id: GroupID | undefined; } +export interface ReactiveMsgStartGroup { + id: ComputedRef; +} export interface MsgStartGroupProtoMsg { typeUrl: "/akash.deployment.v1beta1.MsgStartGroup"; value: Uint8Array; @@ -114,6 +126,7 @@ export interface MsgStartGroupSDKType { } /** MsgStartGroupResponse defines the Msg/StartGroup response type. */ export interface MsgStartGroupResponse {} +export interface ReactiveMsgStartGroupResponse {} export interface MsgStartGroupResponseProtoMsg { typeUrl: "/akash.deployment.v1beta1.MsgStartGroupResponse"; value: Uint8Array; @@ -126,6 +139,11 @@ export interface GroupID { dseq: bigint; gseq: number; } +export interface ReactiveGroupID { + owner: ComputedRef; + dseq: ComputedRef; + gseq: ComputedRef; +} export interface GroupIDProtoMsg { typeUrl: "/akash.deployment.v1beta1.GroupID"; value: Uint8Array; @@ -142,6 +160,11 @@ export interface GroupSpec { requirements: PlacementRequirements | undefined; resources: Resource[]; } +export interface ReactiveGroupSpec { + name: ComputedRef; + requirements: ComputedRef; + resources: ComputedRef; +} export interface GroupSpecProtoMsg { typeUrl: "/akash.deployment.v1beta1.GroupSpec"; value: Uint8Array; @@ -159,6 +182,12 @@ export interface Group { groupSpec: GroupSpec | undefined; createdAt: bigint; } +export interface ReactiveGroup { + groupId: ComputedRef; + state: ComputedRef; + groupSpec: ComputedRef; + createdAt: ComputedRef; +} export interface GroupProtoMsg { typeUrl: "/akash.deployment.v1beta1.Group"; value: Uint8Array; @@ -176,6 +205,11 @@ export interface Resource { count: number; price: Coin | undefined; } +export interface ReactiveResource { + resources: ComputedRef; + count: ComputedRef; + price: ComputedRef; +} export interface ResourceProtoMsg { typeUrl: "/akash.deployment.v1beta1.Resource"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/akash/deployment/v1beta1/params.ts b/__fixtures__/v-next/outputv4/akash/deployment/v1beta1/params.ts index e50fba78db..12491e1090 100644 --- a/__fixtures__/v-next/outputv4/akash/deployment/v1beta1/params.ts +++ b/__fixtures__/v-next/outputv4/akash/deployment/v1beta1/params.ts @@ -2,11 +2,15 @@ import { Coin, CoinSDKType } from "../../../cosmos/base/v1beta1/coin.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, Exact } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "akash.deployment.v1beta1"; /** Params defines the parameters for the x/deployment package */ export interface Params { deploymentMinDeposit: Coin | undefined; } +export interface ReactiveParams { + deploymentMinDeposit: ComputedRef; +} export interface ParamsProtoMsg { typeUrl: "/akash.deployment.v1beta1.Params"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/akash/deployment/v1beta1/query.ts b/__fixtures__/v-next/outputv4/akash/deployment/v1beta1/query.ts index c14cc3a793..eef573ce72 100644 --- a/__fixtures__/v-next/outputv4/akash/deployment/v1beta1/query.ts +++ b/__fixtures__/v-next/outputv4/akash/deployment/v1beta1/query.ts @@ -6,12 +6,17 @@ import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, Exact, Rpc } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; +import { ComputedRef } from "vue"; export const protobufPackage = "akash.deployment.v1beta1"; /** QueryDeploymentsRequest is request type for the Query/Deployments RPC method */ export interface QueryDeploymentsRequest { filters: DeploymentFilters | undefined; pagination?: PageRequest | undefined; } +export interface ReactiveQueryDeploymentsRequest { + filters: ComputedRef; + pagination?: ComputedRef; +} export interface QueryDeploymentsRequestProtoMsg { typeUrl: "/akash.deployment.v1beta1.QueryDeploymentsRequest"; value: Uint8Array; @@ -26,6 +31,10 @@ export interface QueryDeploymentsResponse { deployments: QueryDeploymentResponse[]; pagination?: PageResponse | undefined; } +export interface ReactiveQueryDeploymentsResponse { + deployments: ComputedRef; + pagination?: ComputedRef; +} export interface QueryDeploymentsResponseProtoMsg { typeUrl: "/akash.deployment.v1beta1.QueryDeploymentsResponse"; value: Uint8Array; @@ -39,6 +48,9 @@ export interface QueryDeploymentsResponseSDKType { export interface QueryDeploymentRequest { id: DeploymentID | undefined; } +export interface ReactiveQueryDeploymentRequest { + id: ComputedRef; +} export interface QueryDeploymentRequestProtoMsg { typeUrl: "/akash.deployment.v1beta1.QueryDeploymentRequest"; value: Uint8Array; @@ -53,6 +65,11 @@ export interface QueryDeploymentResponse { groups: Group[]; escrowAccount: Account | undefined; } +export interface ReactiveQueryDeploymentResponse { + deployment: ComputedRef; + groups: ComputedRef; + escrowAccount: ComputedRef; +} export interface QueryDeploymentResponseProtoMsg { typeUrl: "/akash.deployment.v1beta1.QueryDeploymentResponse"; value: Uint8Array; @@ -67,6 +84,9 @@ export interface QueryDeploymentResponseSDKType { export interface QueryGroupRequest { id: GroupID | undefined; } +export interface ReactiveQueryGroupRequest { + id: ComputedRef; +} export interface QueryGroupRequestProtoMsg { typeUrl: "/akash.deployment.v1beta1.QueryGroupRequest"; value: Uint8Array; @@ -79,6 +99,9 @@ export interface QueryGroupRequestSDKType { export interface QueryGroupResponse { group: Group | undefined; } +export interface ReactiveQueryGroupResponse { + group: ComputedRef; +} export interface QueryGroupResponseProtoMsg { typeUrl: "/akash.deployment.v1beta1.QueryGroupResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/akash/deployment/v1beta2/authz.ts b/__fixtures__/v-next/outputv4/akash/deployment/v1beta2/authz.ts index dcdf559d64..591b5a38ff 100644 --- a/__fixtures__/v-next/outputv4/akash/deployment/v1beta2/authz.ts +++ b/__fixtures__/v-next/outputv4/akash/deployment/v1beta2/authz.ts @@ -2,6 +2,7 @@ import { Coin, CoinSDKType } from "../../../cosmos/base/v1beta1/coin.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial, Exact } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "akash.deployment.v1beta2"; /** * DepositDeploymentAuthorization allows the grantee to deposit up to spend_limit coins from @@ -14,6 +15,9 @@ export interface DepositDeploymentAuthorization { */ spendLimit: Coin; } +export interface ReactiveDepositDeploymentAuthorization { + spendLimit: ComputedRef; +} export interface DepositDeploymentAuthorizationProtoMsg { typeUrl: "/akash.deployment.v1beta2.DepositDeploymentAuthorization"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/akash/deployment/v1beta2/deployment.ts b/__fixtures__/v-next/outputv4/akash/deployment/v1beta2/deployment.ts index 623a6d0d5d..cc38c4bbc0 100644 --- a/__fixtures__/v-next/outputv4/akash/deployment/v1beta2/deployment.ts +++ b/__fixtures__/v-next/outputv4/akash/deployment/v1beta2/deployment.ts @@ -1,6 +1,7 @@ import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial, Exact, bytesFromBase64, base64FromBytes } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "akash.deployment.v1beta2"; /** State is an enum which refers to state of deployment */ export enum Deployment_State { @@ -48,6 +49,10 @@ export interface DeploymentID { owner: string; dseq: bigint; } +export interface ReactiveDeploymentID { + owner: ComputedRef; + dseq: ComputedRef; +} export interface DeploymentIDProtoMsg { typeUrl: "/akash.deployment.v1beta2.DeploymentID"; value: Uint8Array; @@ -64,6 +69,12 @@ export interface Deployment { version: Uint8Array; createdAt: bigint; } +export interface ReactiveDeployment { + deploymentId: ComputedRef; + state: ComputedRef; + version: ComputedRef; + createdAt: ComputedRef; +} export interface DeploymentProtoMsg { typeUrl: "/akash.deployment.v1beta2.Deployment"; value: Uint8Array; @@ -81,6 +92,11 @@ export interface DeploymentFilters { dseq: bigint; state: string; } +export interface ReactiveDeploymentFilters { + owner: ComputedRef; + dseq: ComputedRef; + state: ComputedRef; +} export interface DeploymentFiltersProtoMsg { typeUrl: "/akash.deployment.v1beta2.DeploymentFilters"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/akash/deployment/v1beta2/deploymentmsg.ts b/__fixtures__/v-next/outputv4/akash/deployment/v1beta2/deploymentmsg.ts index cb585d0d10..79a9b6969a 100644 --- a/__fixtures__/v-next/outputv4/akash/deployment/v1beta2/deploymentmsg.ts +++ b/__fixtures__/v-next/outputv4/akash/deployment/v1beta2/deploymentmsg.ts @@ -4,6 +4,7 @@ import { Coin, CoinSDKType } from "../../../cosmos/base/v1beta1/coin.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, bytesFromBase64, base64FromBytes, DeepPartial, Exact } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "akash.deployment.v1beta2"; /** MsgCreateDeployment defines an SDK message for creating deployment */ export interface MsgCreateDeployment { @@ -14,6 +15,13 @@ export interface MsgCreateDeployment { /** Depositor pays for the deposit */ depositor: string; } +export interface ReactiveMsgCreateDeployment { + id: ComputedRef; + groups: ComputedRef; + version: ComputedRef; + deposit: ComputedRef; + depositor: ComputedRef; +} export interface MsgCreateDeploymentProtoMsg { typeUrl: "/akash.deployment.v1beta2.MsgCreateDeployment"; value: Uint8Array; @@ -28,6 +36,7 @@ export interface MsgCreateDeploymentSDKType { } /** MsgCreateDeploymentResponse defines the Msg/CreateDeployment response type. */ export interface MsgCreateDeploymentResponse {} +export interface ReactiveMsgCreateDeploymentResponse {} export interface MsgCreateDeploymentResponseProtoMsg { typeUrl: "/akash.deployment.v1beta2.MsgCreateDeploymentResponse"; value: Uint8Array; @@ -41,6 +50,11 @@ export interface MsgDepositDeployment { /** Depositor pays for the deposit */ depositor: string; } +export interface ReactiveMsgDepositDeployment { + id: ComputedRef; + amount: ComputedRef; + depositor: ComputedRef; +} export interface MsgDepositDeploymentProtoMsg { typeUrl: "/akash.deployment.v1beta2.MsgDepositDeployment"; value: Uint8Array; @@ -53,6 +67,7 @@ export interface MsgDepositDeploymentSDKType { } /** MsgCreateDeploymentResponse defines the Msg/CreateDeployment response type. */ export interface MsgDepositDeploymentResponse {} +export interface ReactiveMsgDepositDeploymentResponse {} export interface MsgDepositDeploymentResponseProtoMsg { typeUrl: "/akash.deployment.v1beta2.MsgDepositDeploymentResponse"; value: Uint8Array; @@ -64,6 +79,10 @@ export interface MsgUpdateDeployment { id: DeploymentID; version: Uint8Array; } +export interface ReactiveMsgUpdateDeployment { + id: ComputedRef; + version: ComputedRef; +} export interface MsgUpdateDeploymentProtoMsg { typeUrl: "/akash.deployment.v1beta2.MsgUpdateDeployment"; value: Uint8Array; @@ -75,6 +94,7 @@ export interface MsgUpdateDeploymentSDKType { } /** MsgUpdateDeploymentResponse defines the Msg/UpdateDeployment response type. */ export interface MsgUpdateDeploymentResponse {} +export interface ReactiveMsgUpdateDeploymentResponse {} export interface MsgUpdateDeploymentResponseProtoMsg { typeUrl: "/akash.deployment.v1beta2.MsgUpdateDeploymentResponse"; value: Uint8Array; @@ -85,6 +105,9 @@ export interface MsgUpdateDeploymentResponseSDKType {} export interface MsgCloseDeployment { id: DeploymentID; } +export interface ReactiveMsgCloseDeployment { + id: ComputedRef; +} export interface MsgCloseDeploymentProtoMsg { typeUrl: "/akash.deployment.v1beta2.MsgCloseDeployment"; value: Uint8Array; @@ -95,6 +118,7 @@ export interface MsgCloseDeploymentSDKType { } /** MsgCloseDeploymentResponse defines the Msg/CloseDeployment response type. */ export interface MsgCloseDeploymentResponse {} +export interface ReactiveMsgCloseDeploymentResponse {} export interface MsgCloseDeploymentResponseProtoMsg { typeUrl: "/akash.deployment.v1beta2.MsgCloseDeploymentResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/akash/deployment/v1beta2/genesis.ts b/__fixtures__/v-next/outputv4/akash/deployment/v1beta2/genesis.ts index 0f45748d43..a6848f06a8 100644 --- a/__fixtures__/v-next/outputv4/akash/deployment/v1beta2/genesis.ts +++ b/__fixtures__/v-next/outputv4/akash/deployment/v1beta2/genesis.ts @@ -4,12 +4,17 @@ import { Params, ParamsSDKType } from "./params.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial, Exact } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "akash.deployment.v1beta2"; /** GenesisDeployment defines the basic genesis state used by deployment module */ export interface GenesisDeployment { deployment: Deployment; groups: Group[]; } +export interface ReactiveGenesisDeployment { + deployment: ComputedRef; + groups: ComputedRef; +} export interface GenesisDeploymentProtoMsg { typeUrl: "/akash.deployment.v1beta2.GenesisDeployment"; value: Uint8Array; @@ -24,6 +29,10 @@ export interface GenesisState { deployments: GenesisDeployment[]; params: Params; } +export interface ReactiveGenesisState { + deployments: ComputedRef; + params: ComputedRef; +} export interface GenesisStateProtoMsg { typeUrl: "/akash.deployment.v1beta2.GenesisState"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/akash/deployment/v1beta2/group.ts b/__fixtures__/v-next/outputv4/akash/deployment/v1beta2/group.ts index c4c93334e5..0e4940cfb2 100644 --- a/__fixtures__/v-next/outputv4/akash/deployment/v1beta2/group.ts +++ b/__fixtures__/v-next/outputv4/akash/deployment/v1beta2/group.ts @@ -3,6 +3,7 @@ import { GroupSpec, GroupSpecSDKType } from "./groupspec.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial, Exact } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "akash.deployment.v1beta2"; /** State is an enum which refers to state of group */ export enum Group_State { @@ -66,6 +67,12 @@ export interface Group { groupSpec: GroupSpec; createdAt: bigint; } +export interface ReactiveGroup { + groupId: ComputedRef; + state: ComputedRef; + groupSpec: ComputedRef; + createdAt: ComputedRef; +} export interface GroupProtoMsg { typeUrl: "/akash.deployment.v1beta2.Group"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/akash/deployment/v1beta2/groupid.ts b/__fixtures__/v-next/outputv4/akash/deployment/v1beta2/groupid.ts index 7fc3b96ad9..6c943dcfe5 100644 --- a/__fixtures__/v-next/outputv4/akash/deployment/v1beta2/groupid.ts +++ b/__fixtures__/v-next/outputv4/akash/deployment/v1beta2/groupid.ts @@ -1,6 +1,7 @@ import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial, Exact } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "akash.deployment.v1beta2"; /** GroupID stores owner, deployment sequence number and group sequence number */ export interface GroupID { @@ -8,6 +9,11 @@ export interface GroupID { dseq: bigint; gseq: number; } +export interface ReactiveGroupID { + owner: ComputedRef; + dseq: ComputedRef; + gseq: ComputedRef; +} export interface GroupIDProtoMsg { typeUrl: "/akash.deployment.v1beta2.GroupID"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/akash/deployment/v1beta2/groupmsg.ts b/__fixtures__/v-next/outputv4/akash/deployment/v1beta2/groupmsg.ts index f6e5c96efb..23809b538f 100644 --- a/__fixtures__/v-next/outputv4/akash/deployment/v1beta2/groupmsg.ts +++ b/__fixtures__/v-next/outputv4/akash/deployment/v1beta2/groupmsg.ts @@ -2,11 +2,15 @@ import { GroupID, GroupIDSDKType } from "./groupid.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial, Exact } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "akash.deployment.v1beta2"; /** MsgCloseGroup defines SDK message to close a single Group within a Deployment. */ export interface MsgCloseGroup { id: GroupID; } +export interface ReactiveMsgCloseGroup { + id: ComputedRef; +} export interface MsgCloseGroupProtoMsg { typeUrl: "/akash.deployment.v1beta2.MsgCloseGroup"; value: Uint8Array; @@ -17,6 +21,7 @@ export interface MsgCloseGroupSDKType { } /** MsgCloseGroupResponse defines the Msg/CloseGroup response type. */ export interface MsgCloseGroupResponse {} +export interface ReactiveMsgCloseGroupResponse {} export interface MsgCloseGroupResponseProtoMsg { typeUrl: "/akash.deployment.v1beta2.MsgCloseGroupResponse"; value: Uint8Array; @@ -27,6 +32,9 @@ export interface MsgCloseGroupResponseSDKType {} export interface MsgPauseGroup { id: GroupID; } +export interface ReactiveMsgPauseGroup { + id: ComputedRef; +} export interface MsgPauseGroupProtoMsg { typeUrl: "/akash.deployment.v1beta2.MsgPauseGroup"; value: Uint8Array; @@ -37,6 +45,7 @@ export interface MsgPauseGroupSDKType { } /** MsgPauseGroupResponse defines the Msg/PauseGroup response type. */ export interface MsgPauseGroupResponse {} +export interface ReactiveMsgPauseGroupResponse {} export interface MsgPauseGroupResponseProtoMsg { typeUrl: "/akash.deployment.v1beta2.MsgPauseGroupResponse"; value: Uint8Array; @@ -47,6 +56,9 @@ export interface MsgPauseGroupResponseSDKType {} export interface MsgStartGroup { id: GroupID; } +export interface ReactiveMsgStartGroup { + id: ComputedRef; +} export interface MsgStartGroupProtoMsg { typeUrl: "/akash.deployment.v1beta2.MsgStartGroup"; value: Uint8Array; @@ -57,6 +69,7 @@ export interface MsgStartGroupSDKType { } /** MsgStartGroupResponse defines the Msg/StartGroup response type. */ export interface MsgStartGroupResponse {} +export interface ReactiveMsgStartGroupResponse {} export interface MsgStartGroupResponseProtoMsg { typeUrl: "/akash.deployment.v1beta2.MsgStartGroupResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/akash/deployment/v1beta2/groupspec.ts b/__fixtures__/v-next/outputv4/akash/deployment/v1beta2/groupspec.ts index 88e3b3c3ba..204f60c3cd 100644 --- a/__fixtures__/v-next/outputv4/akash/deployment/v1beta2/groupspec.ts +++ b/__fixtures__/v-next/outputv4/akash/deployment/v1beta2/groupspec.ts @@ -3,6 +3,7 @@ import { Resource, ResourceSDKType } from "./resource.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial, Exact } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "akash.deployment.v1beta2"; /** GroupSpec stores group specifications */ export interface GroupSpec { @@ -10,6 +11,11 @@ export interface GroupSpec { requirements: PlacementRequirements; resources: Resource[]; } +export interface ReactiveGroupSpec { + name: ComputedRef; + requirements: ComputedRef; + resources: ComputedRef; +} export interface GroupSpecProtoMsg { typeUrl: "/akash.deployment.v1beta2.GroupSpec"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/akash/deployment/v1beta2/params.ts b/__fixtures__/v-next/outputv4/akash/deployment/v1beta2/params.ts index c80222742a..fd67e55113 100644 --- a/__fixtures__/v-next/outputv4/akash/deployment/v1beta2/params.ts +++ b/__fixtures__/v-next/outputv4/akash/deployment/v1beta2/params.ts @@ -2,11 +2,15 @@ import { Coin, CoinSDKType } from "../../../cosmos/base/v1beta1/coin.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial, Exact } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "akash.deployment.v1beta2"; /** Params defines the parameters for the x/deployment package */ export interface Params { deploymentMinDeposit: Coin; } +export interface ReactiveParams { + deploymentMinDeposit: ComputedRef; +} export interface ParamsProtoMsg { typeUrl: "/akash.deployment.v1beta2.Params"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/akash/deployment/v1beta2/query.rpc.Query.ts b/__fixtures__/v-next/outputv4/akash/deployment/v1beta2/query.rpc.Query.ts index 8f46132593..d23dba8619 100644 --- a/__fixtures__/v-next/outputv4/akash/deployment/v1beta2/query.rpc.Query.ts +++ b/__fixtures__/v-next/outputv4/akash/deployment/v1beta2/query.rpc.Query.ts @@ -6,7 +6,7 @@ import { Account, AccountSDKType } from "../../escrow/v1beta2/types.js"; import { Rpc } from "../../../helpers.js"; import { BinaryReader } from "../../../binary.js"; import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryDeploymentsRequest, QueryDeploymentsRequestSDKType, QueryDeploymentsResponse, QueryDeploymentsResponseSDKType, QueryDeploymentRequest, QueryDeploymentRequestSDKType, QueryDeploymentResponse, QueryDeploymentResponseSDKType, QueryGroupRequest, QueryGroupRequestSDKType, QueryGroupResponse, QueryGroupResponseSDKType } from "./query.js"; +import { QueryDeploymentsRequest, QueryDeploymentsRequestSDKType, QueryDeploymentsResponse, QueryDeploymentsResponseSDKType, QueryDeploymentRequest, QueryDeploymentRequestSDKType, QueryDeploymentResponse, QueryDeploymentResponseSDKType, QueryGroupRequest, QueryGroupRequestSDKType, QueryGroupResponse, QueryGroupResponseSDKType, ReactiveQueryDeploymentsRequest, ReactiveQueryDeploymentRequest, ReactiveQueryGroupRequest } from "./query.js"; /** Query defines the gRPC querier service */ export interface Query { /** Deployments queries deployments */ diff --git a/__fixtures__/v-next/outputv4/akash/deployment/v1beta2/query.ts b/__fixtures__/v-next/outputv4/akash/deployment/v1beta2/query.ts index ed4ebc976b..8980c71309 100644 --- a/__fixtures__/v-next/outputv4/akash/deployment/v1beta2/query.ts +++ b/__fixtures__/v-next/outputv4/akash/deployment/v1beta2/query.ts @@ -6,12 +6,17 @@ import { Account, AccountSDKType } from "../../escrow/v1beta2/types.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial, Exact } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "akash.deployment.v1beta2"; /** QueryDeploymentsRequest is request type for the Query/Deployments RPC method */ export interface QueryDeploymentsRequest { filters: DeploymentFilters; pagination?: PageRequest; } +export interface ReactiveQueryDeploymentsRequest { + filters: ComputedRef; + pagination?: ComputedRef; +} export interface QueryDeploymentsRequestProtoMsg { typeUrl: "/akash.deployment.v1beta2.QueryDeploymentsRequest"; value: Uint8Array; @@ -26,6 +31,10 @@ export interface QueryDeploymentsResponse { deployments: QueryDeploymentResponse[]; pagination?: PageResponse; } +export interface ReactiveQueryDeploymentsResponse { + deployments: ComputedRef; + pagination?: ComputedRef; +} export interface QueryDeploymentsResponseProtoMsg { typeUrl: "/akash.deployment.v1beta2.QueryDeploymentsResponse"; value: Uint8Array; @@ -39,6 +48,9 @@ export interface QueryDeploymentsResponseSDKType { export interface QueryDeploymentRequest { id: DeploymentID; } +export interface ReactiveQueryDeploymentRequest { + id: ComputedRef; +} export interface QueryDeploymentRequestProtoMsg { typeUrl: "/akash.deployment.v1beta2.QueryDeploymentRequest"; value: Uint8Array; @@ -53,6 +65,11 @@ export interface QueryDeploymentResponse { groups: Group[]; escrowAccount: Account; } +export interface ReactiveQueryDeploymentResponse { + deployment: ComputedRef; + groups: ComputedRef; + escrowAccount: ComputedRef; +} export interface QueryDeploymentResponseProtoMsg { typeUrl: "/akash.deployment.v1beta2.QueryDeploymentResponse"; value: Uint8Array; @@ -67,6 +84,9 @@ export interface QueryDeploymentResponseSDKType { export interface QueryGroupRequest { id: GroupID; } +export interface ReactiveQueryGroupRequest { + id: ComputedRef; +} export interface QueryGroupRequestProtoMsg { typeUrl: "/akash.deployment.v1beta2.QueryGroupRequest"; value: Uint8Array; @@ -79,6 +99,9 @@ export interface QueryGroupRequestSDKType { export interface QueryGroupResponse { group: Group; } +export interface ReactiveQueryGroupResponse { + group: ComputedRef; +} export interface QueryGroupResponseProtoMsg { typeUrl: "/akash.deployment.v1beta2.QueryGroupResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/akash/deployment/v1beta2/resource.ts b/__fixtures__/v-next/outputv4/akash/deployment/v1beta2/resource.ts index ae349812fe..f7357a283e 100644 --- a/__fixtures__/v-next/outputv4/akash/deployment/v1beta2/resource.ts +++ b/__fixtures__/v-next/outputv4/akash/deployment/v1beta2/resource.ts @@ -3,6 +3,7 @@ import { DecCoin, DecCoinSDKType } from "../../../cosmos/base/v1beta1/coin.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial, Exact } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "akash.deployment.v1beta2"; /** Resource stores unit, total count and price of resource */ export interface Resource { @@ -10,6 +11,11 @@ export interface Resource { count: number; price: DecCoin; } +export interface ReactiveResource { + resources: ComputedRef; + count: ComputedRef; + price: ComputedRef; +} export interface ResourceProtoMsg { typeUrl: "/akash.deployment.v1beta2.Resource"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/akash/escrow/v1beta1/genesis.ts b/__fixtures__/v-next/outputv4/akash/escrow/v1beta1/genesis.ts index d5f63cbc70..007cbd2c8c 100644 --- a/__fixtures__/v-next/outputv4/akash/escrow/v1beta1/genesis.ts +++ b/__fixtures__/v-next/outputv4/akash/escrow/v1beta1/genesis.ts @@ -2,12 +2,17 @@ import { Account, AccountSDKType, Payment, PaymentSDKType } from "./types.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { JsonSafe } from "../../../json-safe.js"; import { DeepPartial, Exact } from "../../../helpers.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "akash.escrow.v1beta1"; /** GenesisState defines the basic genesis state used by escrow module */ export interface GenesisState { accounts: Account[]; payments: Payment[]; } +export interface ReactiveGenesisState { + accounts: ComputedRef; + payments: ComputedRef; +} export interface GenesisStateProtoMsg { typeUrl: "/akash.escrow.v1beta1.GenesisState"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/akash/escrow/v1beta1/query.rpc.Query.ts b/__fixtures__/v-next/outputv4/akash/escrow/v1beta1/query.rpc.Query.ts index 5b8a13eb57..2e87d11de3 100644 --- a/__fixtures__/v-next/outputv4/akash/escrow/v1beta1/query.rpc.Query.ts +++ b/__fixtures__/v-next/outputv4/akash/escrow/v1beta1/query.rpc.Query.ts @@ -3,7 +3,7 @@ import { Account, AccountSDKType, Payment, PaymentSDKType } from "./types.js"; import { Rpc } from "../../../helpers.js"; import { BinaryReader } from "../../../binary.js"; import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryAccountsRequest, QueryAccountsRequestSDKType, QueryAccountsResponse, QueryAccountsResponseSDKType, QueryPaymentsRequest, QueryPaymentsRequestSDKType, QueryPaymentsResponse, QueryPaymentsResponseSDKType } from "./query.js"; +import { QueryAccountsRequest, QueryAccountsRequestSDKType, QueryAccountsResponse, QueryAccountsResponseSDKType, QueryPaymentsRequest, QueryPaymentsRequestSDKType, QueryPaymentsResponse, QueryPaymentsResponseSDKType, ReactiveQueryAccountsRequest, ReactiveQueryPaymentsRequest } from "./query.js"; /** Query defines the gRPC querier service */ export interface Query { /** diff --git a/__fixtures__/v-next/outputv4/akash/escrow/v1beta1/query.ts b/__fixtures__/v-next/outputv4/akash/escrow/v1beta1/query.ts index 41d131decd..da8e7ea04c 100644 --- a/__fixtures__/v-next/outputv4/akash/escrow/v1beta1/query.ts +++ b/__fixtures__/v-next/outputv4/akash/escrow/v1beta1/query.ts @@ -3,6 +3,7 @@ import { Account, AccountSDKType, Payment, PaymentSDKType } from "./types.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial, Exact } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "akash.escrow.v1beta1"; /** QueryAccountRequest is request type for the Query/Account RPC method */ export interface QueryAccountsRequest { @@ -12,6 +13,13 @@ export interface QueryAccountsRequest { state: string; pagination?: PageRequest; } +export interface ReactiveQueryAccountsRequest { + scope: ComputedRef; + xid: ComputedRef; + owner: ComputedRef; + state: ComputedRef; + pagination?: ComputedRef; +} export interface QueryAccountsRequestProtoMsg { typeUrl: "/akash.escrow.v1beta1.QueryAccountsRequest"; value: Uint8Array; @@ -29,6 +37,10 @@ export interface QueryAccountsResponse { accounts: Account[]; pagination?: PageResponse; } +export interface ReactiveQueryAccountsResponse { + accounts: ComputedRef; + pagination?: ComputedRef; +} export interface QueryAccountsResponseProtoMsg { typeUrl: "/akash.escrow.v1beta1.QueryAccountsResponse"; value: Uint8Array; @@ -47,6 +59,14 @@ export interface QueryPaymentsRequest { state: string; pagination?: PageRequest; } +export interface ReactiveQueryPaymentsRequest { + scope: ComputedRef; + xid: ComputedRef; + id: ComputedRef; + owner: ComputedRef; + state: ComputedRef; + pagination?: ComputedRef; +} export interface QueryPaymentsRequestProtoMsg { typeUrl: "/akash.escrow.v1beta1.QueryPaymentsRequest"; value: Uint8Array; @@ -65,6 +85,10 @@ export interface QueryPaymentsResponse { payments: Payment[]; pagination?: PageResponse; } +export interface ReactiveQueryPaymentsResponse { + payments: ComputedRef; + pagination?: ComputedRef; +} export interface QueryPaymentsResponseProtoMsg { typeUrl: "/akash.escrow.v1beta1.QueryPaymentsResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/akash/escrow/v1beta1/types.ts b/__fixtures__/v-next/outputv4/akash/escrow/v1beta1/types.ts index 9f121e6d6b..be7a70a1c1 100644 --- a/__fixtures__/v-next/outputv4/akash/escrow/v1beta1/types.ts +++ b/__fixtures__/v-next/outputv4/akash/escrow/v1beta1/types.ts @@ -2,6 +2,7 @@ import { Coin, CoinSDKType } from "../../../cosmos/base/v1beta1/coin.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial, Exact } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "akash.escrow.v1beta1"; /** State stores state for an escrow account */ export enum Account_State { @@ -104,6 +105,10 @@ export interface AccountID { scope: string; xid: string; } +export interface ReactiveAccountID { + scope: ComputedRef; + xid: ComputedRef; +} export interface AccountIDProtoMsg { typeUrl: "/akash.escrow.v1beta1.AccountID"; value: Uint8Array; @@ -128,6 +133,14 @@ export interface Account { /** block height at which this account was last settled */ settledAt: bigint; } +export interface ReactiveAccount { + id: ComputedRef; + owner: ComputedRef; + state: ComputedRef; + balance: ComputedRef; + transferred: ComputedRef; + settledAt: ComputedRef; +} export interface AccountProtoMsg { typeUrl: "/akash.escrow.v1beta1.Account"; value: Uint8Array; @@ -151,6 +164,15 @@ export interface Payment { balance: Coin; withdrawn: Coin; } +export interface ReactivePayment { + accountId: ComputedRef; + paymentId: ComputedRef; + owner: ComputedRef; + state: ComputedRef; + rate: ComputedRef; + balance: ComputedRef; + withdrawn: ComputedRef; +} export interface PaymentProtoMsg { typeUrl: "/akash.escrow.v1beta1.Payment"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/akash/escrow/v1beta2/genesis.ts b/__fixtures__/v-next/outputv4/akash/escrow/v1beta2/genesis.ts index 289b809e01..9bdcf3fee7 100644 --- a/__fixtures__/v-next/outputv4/akash/escrow/v1beta2/genesis.ts +++ b/__fixtures__/v-next/outputv4/akash/escrow/v1beta2/genesis.ts @@ -2,12 +2,17 @@ import { Account, AccountSDKType, FractionalPayment, FractionalPaymentSDKType } import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { JsonSafe } from "../../../json-safe.js"; import { DeepPartial, Exact } from "../../../helpers.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "akash.escrow.v1beta2"; /** GenesisState defines the basic genesis state used by escrow module */ export interface GenesisState { accounts: Account[]; payments: FractionalPayment[]; } +export interface ReactiveGenesisState { + accounts: ComputedRef; + payments: ComputedRef; +} export interface GenesisStateProtoMsg { typeUrl: "/akash.escrow.v1beta2.GenesisState"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/akash/escrow/v1beta2/query.rpc.Query.ts b/__fixtures__/v-next/outputv4/akash/escrow/v1beta2/query.rpc.Query.ts index e6c0ec9480..06c55a9120 100644 --- a/__fixtures__/v-next/outputv4/akash/escrow/v1beta2/query.rpc.Query.ts +++ b/__fixtures__/v-next/outputv4/akash/escrow/v1beta2/query.rpc.Query.ts @@ -3,7 +3,7 @@ import { Account, AccountSDKType, FractionalPayment, FractionalPaymentSDKType } import { Rpc } from "../../../helpers.js"; import { BinaryReader } from "../../../binary.js"; import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryAccountsRequest, QueryAccountsRequestSDKType, QueryAccountsResponse, QueryAccountsResponseSDKType, QueryPaymentsRequest, QueryPaymentsRequestSDKType, QueryPaymentsResponse, QueryPaymentsResponseSDKType } from "./query.js"; +import { QueryAccountsRequest, QueryAccountsRequestSDKType, QueryAccountsResponse, QueryAccountsResponseSDKType, QueryPaymentsRequest, QueryPaymentsRequestSDKType, QueryPaymentsResponse, QueryPaymentsResponseSDKType, ReactiveQueryAccountsRequest, ReactiveQueryPaymentsRequest } from "./query.js"; /** Query defines the gRPC querier service */ export interface Query { /** diff --git a/__fixtures__/v-next/outputv4/akash/escrow/v1beta2/query.ts b/__fixtures__/v-next/outputv4/akash/escrow/v1beta2/query.ts index e7f7c1359a..80b6bd2460 100644 --- a/__fixtures__/v-next/outputv4/akash/escrow/v1beta2/query.ts +++ b/__fixtures__/v-next/outputv4/akash/escrow/v1beta2/query.ts @@ -3,6 +3,7 @@ import { Account, AccountSDKType, FractionalPayment, FractionalPaymentSDKType } import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial, Exact } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "akash.escrow.v1beta2"; /** QueryAccountRequest is request type for the Query/Account RPC method */ export interface QueryAccountsRequest { @@ -12,6 +13,13 @@ export interface QueryAccountsRequest { state: string; pagination?: PageRequest; } +export interface ReactiveQueryAccountsRequest { + scope: ComputedRef; + xid: ComputedRef; + owner: ComputedRef; + state: ComputedRef; + pagination?: ComputedRef; +} export interface QueryAccountsRequestProtoMsg { typeUrl: "/akash.escrow.v1beta2.QueryAccountsRequest"; value: Uint8Array; @@ -29,6 +37,10 @@ export interface QueryAccountsResponse { accounts: Account[]; pagination?: PageResponse; } +export interface ReactiveQueryAccountsResponse { + accounts: ComputedRef; + pagination?: ComputedRef; +} export interface QueryAccountsResponseProtoMsg { typeUrl: "/akash.escrow.v1beta2.QueryAccountsResponse"; value: Uint8Array; @@ -47,6 +59,14 @@ export interface QueryPaymentsRequest { state: string; pagination?: PageRequest; } +export interface ReactiveQueryPaymentsRequest { + scope: ComputedRef; + xid: ComputedRef; + id: ComputedRef; + owner: ComputedRef; + state: ComputedRef; + pagination?: ComputedRef; +} export interface QueryPaymentsRequestProtoMsg { typeUrl: "/akash.escrow.v1beta2.QueryPaymentsRequest"; value: Uint8Array; @@ -65,6 +85,10 @@ export interface QueryPaymentsResponse { payments: FractionalPayment[]; pagination?: PageResponse; } +export interface ReactiveQueryPaymentsResponse { + payments: ComputedRef; + pagination?: ComputedRef; +} export interface QueryPaymentsResponseProtoMsg { typeUrl: "/akash.escrow.v1beta2.QueryPaymentsResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/akash/escrow/v1beta2/types.ts b/__fixtures__/v-next/outputv4/akash/escrow/v1beta2/types.ts index a206e98d98..2d7557c98c 100644 --- a/__fixtures__/v-next/outputv4/akash/escrow/v1beta2/types.ts +++ b/__fixtures__/v-next/outputv4/akash/escrow/v1beta2/types.ts @@ -2,6 +2,7 @@ import { DecCoin, DecCoinSDKType, Coin, CoinSDKType } from "../../../cosmos/base import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial, Exact } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "akash.escrow.v1beta2"; /** State stores state for an escrow account */ export enum Account_State { @@ -104,6 +105,10 @@ export interface AccountID { scope: string; xid: string; } +export interface ReactiveAccountID { + scope: ComputedRef; + xid: ComputedRef; +} export interface AccountIDProtoMsg { typeUrl: "/akash.escrow.v1beta2.AccountID"; value: Uint8Array; @@ -139,6 +144,16 @@ export interface Account { */ funds: DecCoin; } +export interface ReactiveAccount { + id: ComputedRef; + owner: ComputedRef; + state: ComputedRef; + balance: ComputedRef; + transferred: ComputedRef; + settledAt: ComputedRef; + depositor: ComputedRef; + funds: ComputedRef; +} export interface AccountProtoMsg { typeUrl: "/akash.escrow.v1beta2.Account"; value: Uint8Array; @@ -164,6 +179,15 @@ export interface FractionalPayment { balance: DecCoin; withdrawn: Coin; } +export interface ReactiveFractionalPayment { + accountId: ComputedRef; + paymentId: ComputedRef; + owner: ComputedRef; + state: ComputedRef; + rate: ComputedRef; + balance: ComputedRef; + withdrawn: ComputedRef; +} export interface FractionalPaymentProtoMsg { typeUrl: "/akash.escrow.v1beta2.FractionalPayment"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/akash/inflation/v1beta2/genesis.ts b/__fixtures__/v-next/outputv4/akash/inflation/v1beta2/genesis.ts index a98c988f1e..4f2385212b 100644 --- a/__fixtures__/v-next/outputv4/akash/inflation/v1beta2/genesis.ts +++ b/__fixtures__/v-next/outputv4/akash/inflation/v1beta2/genesis.ts @@ -2,11 +2,15 @@ import { Params, ParamsSDKType } from "./params.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial, Exact } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "akash.inflation.v1beta2"; /** GenesisState stores slice of genesis deployment instance */ export interface GenesisState { params: Params; } +export interface ReactiveGenesisState { + params: ComputedRef; +} export interface GenesisStateProtoMsg { typeUrl: "/akash.inflation.v1beta2.GenesisState"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/akash/inflation/v1beta2/params.ts b/__fixtures__/v-next/outputv4/akash/inflation/v1beta2/params.ts index 4dc44acea8..4ec0983391 100644 --- a/__fixtures__/v-next/outputv4/akash/inflation/v1beta2/params.ts +++ b/__fixtures__/v-next/outputv4/akash/inflation/v1beta2/params.ts @@ -2,6 +2,7 @@ import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { Decimal } from "@cosmjs/math"; import { isSet, DeepPartial, Exact } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "akash.inflation.v1beta2"; /** Params defines the parameters for the x/deployment package */ export interface Params { @@ -18,6 +19,11 @@ export interface Params { */ variance: string; } +export interface ReactiveParams { + inflationDecayFactor: ComputedRef; + initialInflation: ComputedRef; + variance: ComputedRef; +} export interface ParamsProtoMsg { typeUrl: "/akash.inflation.v1beta2.Params"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/akash/market/v1beta2/bid.ts b/__fixtures__/v-next/outputv4/akash/market/v1beta2/bid.ts index 3c4a677ee0..eec6370e37 100644 --- a/__fixtures__/v-next/outputv4/akash/market/v1beta2/bid.ts +++ b/__fixtures__/v-next/outputv4/akash/market/v1beta2/bid.ts @@ -3,6 +3,7 @@ import { DecCoin, DecCoinSDKType, Coin, CoinSDKType } from "../../../cosmos/base import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial, Exact } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "akash.market.v1beta2"; /** State is an enum which refers to state of bid */ export enum Bid_State { @@ -66,6 +67,12 @@ export interface MsgCreateBid { price: DecCoin; deposit: Coin; } +export interface ReactiveMsgCreateBid { + order: ComputedRef; + provider: ComputedRef; + price: ComputedRef; + deposit: ComputedRef; +} export interface MsgCreateBidProtoMsg { typeUrl: "/akash.market.v1beta2.MsgCreateBid"; value: Uint8Array; @@ -79,6 +86,7 @@ export interface MsgCreateBidSDKType { } /** MsgCreateBidResponse defines the Msg/CreateBid response type. */ export interface MsgCreateBidResponse {} +export interface ReactiveMsgCreateBidResponse {} export interface MsgCreateBidResponseProtoMsg { typeUrl: "/akash.market.v1beta2.MsgCreateBidResponse"; value: Uint8Array; @@ -89,6 +97,9 @@ export interface MsgCreateBidResponseSDKType {} export interface MsgCloseBid { bidId: BidID; } +export interface ReactiveMsgCloseBid { + bidId: ComputedRef; +} export interface MsgCloseBidProtoMsg { typeUrl: "/akash.market.v1beta2.MsgCloseBid"; value: Uint8Array; @@ -99,6 +110,7 @@ export interface MsgCloseBidSDKType { } /** MsgCloseBidResponse defines the Msg/CloseBid response type. */ export interface MsgCloseBidResponse {} +export interface ReactiveMsgCloseBidResponse {} export interface MsgCloseBidResponseProtoMsg { typeUrl: "/akash.market.v1beta2.MsgCloseBidResponse"; value: Uint8Array; @@ -116,6 +128,13 @@ export interface BidID { oseq: number; provider: string; } +export interface ReactiveBidID { + owner: ComputedRef; + dseq: ComputedRef; + gseq: ComputedRef; + oseq: ComputedRef; + provider: ComputedRef; +} export interface BidIDProtoMsg { typeUrl: "/akash.market.v1beta2.BidID"; value: Uint8Array; @@ -138,6 +157,12 @@ export interface Bid { price: DecCoin; createdAt: bigint; } +export interface ReactiveBid { + bidId: ComputedRef; + state: ComputedRef; + price: ComputedRef; + createdAt: ComputedRef; +} export interface BidProtoMsg { typeUrl: "/akash.market.v1beta2.Bid"; value: Uint8Array; @@ -158,6 +183,14 @@ export interface BidFilters { provider: string; state: string; } +export interface ReactiveBidFilters { + owner: ComputedRef; + dseq: ComputedRef; + gseq: ComputedRef; + oseq: ComputedRef; + provider: ComputedRef; + state: ComputedRef; +} export interface BidFiltersProtoMsg { typeUrl: "/akash.market.v1beta2.BidFilters"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/akash/market/v1beta2/genesis.ts b/__fixtures__/v-next/outputv4/akash/market/v1beta2/genesis.ts index 0f3383be41..75ecd1cbe8 100644 --- a/__fixtures__/v-next/outputv4/akash/market/v1beta2/genesis.ts +++ b/__fixtures__/v-next/outputv4/akash/market/v1beta2/genesis.ts @@ -4,6 +4,7 @@ import { Params, ParamsSDKType } from "./params.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial, Exact } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "akash.market.v1beta2"; /** GenesisState defines the basic genesis state used by market module */ export interface GenesisState { @@ -11,6 +12,11 @@ export interface GenesisState { leases: Lease[]; params: Params; } +export interface ReactiveGenesisState { + orders: ComputedRef; + leases: ComputedRef; + params: ComputedRef; +} export interface GenesisStateProtoMsg { typeUrl: "/akash.market.v1beta2.GenesisState"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/akash/market/v1beta2/lease.ts b/__fixtures__/v-next/outputv4/akash/market/v1beta2/lease.ts index ee2ab39e69..68b9d6a203 100644 --- a/__fixtures__/v-next/outputv4/akash/market/v1beta2/lease.ts +++ b/__fixtures__/v-next/outputv4/akash/market/v1beta2/lease.ts @@ -3,6 +3,7 @@ import { BidID, BidIDSDKType } from "./bid.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial, Exact } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "akash.market.v1beta2"; /** State is an enum which refers to state of lease */ export enum Lease_State { @@ -60,6 +61,13 @@ export interface LeaseID { oseq: number; provider: string; } +export interface ReactiveLeaseID { + owner: ComputedRef; + dseq: ComputedRef; + gseq: ComputedRef; + oseq: ComputedRef; + provider: ComputedRef; +} export interface LeaseIDProtoMsg { typeUrl: "/akash.market.v1beta2.LeaseID"; value: Uint8Array; @@ -80,6 +88,13 @@ export interface Lease { createdAt: bigint; closedOn: bigint; } +export interface ReactiveLease { + leaseId: ComputedRef; + state: ComputedRef; + price: ComputedRef; + createdAt: ComputedRef; + closedOn: ComputedRef; +} export interface LeaseProtoMsg { typeUrl: "/akash.market.v1beta2.Lease"; value: Uint8Array; @@ -101,6 +116,14 @@ export interface LeaseFilters { provider: string; state: string; } +export interface ReactiveLeaseFilters { + owner: ComputedRef; + dseq: ComputedRef; + gseq: ComputedRef; + oseq: ComputedRef; + provider: ComputedRef; + state: ComputedRef; +} export interface LeaseFiltersProtoMsg { typeUrl: "/akash.market.v1beta2.LeaseFilters"; value: Uint8Array; @@ -118,6 +141,9 @@ export interface LeaseFiltersSDKType { export interface MsgCreateLease { bidId: BidID; } +export interface ReactiveMsgCreateLease { + bidId: ComputedRef; +} export interface MsgCreateLeaseProtoMsg { typeUrl: "/akash.market.v1beta2.MsgCreateLease"; value: Uint8Array; @@ -128,6 +154,7 @@ export interface MsgCreateLeaseSDKType { } /** MsgCreateLeaseResponse is the response from creating a lease */ export interface MsgCreateLeaseResponse {} +export interface ReactiveMsgCreateLeaseResponse {} export interface MsgCreateLeaseResponseProtoMsg { typeUrl: "/akash.market.v1beta2.MsgCreateLeaseResponse"; value: Uint8Array; @@ -138,6 +165,9 @@ export interface MsgCreateLeaseResponseSDKType {} export interface MsgWithdrawLease { bidId: LeaseID; } +export interface ReactiveMsgWithdrawLease { + bidId: ComputedRef; +} export interface MsgWithdrawLeaseProtoMsg { typeUrl: "/akash.market.v1beta2.MsgWithdrawLease"; value: Uint8Array; @@ -148,6 +178,7 @@ export interface MsgWithdrawLeaseSDKType { } /** MsgWithdrawLeaseResponse defines the Msg/WithdrawLease response type. */ export interface MsgWithdrawLeaseResponse {} +export interface ReactiveMsgWithdrawLeaseResponse {} export interface MsgWithdrawLeaseResponseProtoMsg { typeUrl: "/akash.market.v1beta2.MsgWithdrawLeaseResponse"; value: Uint8Array; @@ -158,6 +189,9 @@ export interface MsgWithdrawLeaseResponseSDKType {} export interface MsgCloseLease { leaseId: LeaseID; } +export interface ReactiveMsgCloseLease { + leaseId: ComputedRef; +} export interface MsgCloseLeaseProtoMsg { typeUrl: "/akash.market.v1beta2.MsgCloseLease"; value: Uint8Array; @@ -168,6 +202,7 @@ export interface MsgCloseLeaseSDKType { } /** MsgCloseLeaseResponse defines the Msg/CloseLease response type. */ export interface MsgCloseLeaseResponse {} +export interface ReactiveMsgCloseLeaseResponse {} export interface MsgCloseLeaseResponseProtoMsg { typeUrl: "/akash.market.v1beta2.MsgCloseLeaseResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/akash/market/v1beta2/order.ts b/__fixtures__/v-next/outputv4/akash/market/v1beta2/order.ts index e363e20ccf..798b465ccc 100644 --- a/__fixtures__/v-next/outputv4/akash/market/v1beta2/order.ts +++ b/__fixtures__/v-next/outputv4/akash/market/v1beta2/order.ts @@ -2,6 +2,7 @@ import { GroupSpec, GroupSpecSDKType } from "../../deployment/v1beta2/groupspec. import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial, Exact } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "akash.market.v1beta2"; /** State is an enum which refers to state of order */ export enum Order_State { @@ -58,6 +59,12 @@ export interface OrderID { gseq: number; oseq: number; } +export interface ReactiveOrderID { + owner: ComputedRef; + dseq: ComputedRef; + gseq: ComputedRef; + oseq: ComputedRef; +} export interface OrderIDProtoMsg { typeUrl: "/akash.market.v1beta2.OrderID"; value: Uint8Array; @@ -76,6 +83,12 @@ export interface Order { spec: GroupSpec; createdAt: bigint; } +export interface ReactiveOrder { + orderId: ComputedRef; + state: ComputedRef; + spec: ComputedRef; + createdAt: ComputedRef; +} export interface OrderProtoMsg { typeUrl: "/akash.market.v1beta2.Order"; value: Uint8Array; @@ -95,6 +108,13 @@ export interface OrderFilters { oseq: number; state: string; } +export interface ReactiveOrderFilters { + owner: ComputedRef; + dseq: ComputedRef; + gseq: ComputedRef; + oseq: ComputedRef; + state: ComputedRef; +} export interface OrderFiltersProtoMsg { typeUrl: "/akash.market.v1beta2.OrderFilters"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/akash/market/v1beta2/params.ts b/__fixtures__/v-next/outputv4/akash/market/v1beta2/params.ts index 5c7b12159d..39292c6945 100644 --- a/__fixtures__/v-next/outputv4/akash/market/v1beta2/params.ts +++ b/__fixtures__/v-next/outputv4/akash/market/v1beta2/params.ts @@ -2,12 +2,17 @@ import { Coin, CoinSDKType } from "../../../cosmos/base/v1beta1/coin.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial, Exact } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "akash.market.v1beta2"; /** Params is the params for the x/market module */ export interface Params { bidMinDeposit: Coin; orderMaxBids: number; } +export interface ReactiveParams { + bidMinDeposit: ComputedRef; + orderMaxBids: ComputedRef; +} export interface ParamsProtoMsg { typeUrl: "/akash.market.v1beta2.Params"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/akash/market/v1beta2/query.rpc.Query.ts b/__fixtures__/v-next/outputv4/akash/market/v1beta2/query.rpc.Query.ts index 652548c361..fd5063a6a4 100644 --- a/__fixtures__/v-next/outputv4/akash/market/v1beta2/query.rpc.Query.ts +++ b/__fixtures__/v-next/outputv4/akash/market/v1beta2/query.rpc.Query.ts @@ -6,7 +6,7 @@ import { Account, AccountSDKType, FractionalPayment, FractionalPaymentSDKType } import { Rpc } from "../../../helpers.js"; import { BinaryReader } from "../../../binary.js"; import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryOrdersRequest, QueryOrdersRequestSDKType, QueryOrdersResponse, QueryOrdersResponseSDKType, QueryOrderRequest, QueryOrderRequestSDKType, QueryOrderResponse, QueryOrderResponseSDKType, QueryBidsRequest, QueryBidsRequestSDKType, QueryBidsResponse, QueryBidsResponseSDKType, QueryBidRequest, QueryBidRequestSDKType, QueryBidResponse, QueryBidResponseSDKType, QueryLeasesRequest, QueryLeasesRequestSDKType, QueryLeasesResponse, QueryLeasesResponseSDKType, QueryLeaseRequest, QueryLeaseRequestSDKType, QueryLeaseResponse, QueryLeaseResponseSDKType } from "./query.js"; +import { QueryOrdersRequest, QueryOrdersRequestSDKType, QueryOrdersResponse, QueryOrdersResponseSDKType, QueryOrderRequest, QueryOrderRequestSDKType, QueryOrderResponse, QueryOrderResponseSDKType, QueryBidsRequest, QueryBidsRequestSDKType, QueryBidsResponse, QueryBidsResponseSDKType, QueryBidRequest, QueryBidRequestSDKType, QueryBidResponse, QueryBidResponseSDKType, QueryLeasesRequest, QueryLeasesRequestSDKType, QueryLeasesResponse, QueryLeasesResponseSDKType, QueryLeaseRequest, QueryLeaseRequestSDKType, QueryLeaseResponse, QueryLeaseResponseSDKType, ReactiveQueryOrdersRequest, ReactiveQueryOrderRequest, ReactiveQueryBidsRequest, ReactiveQueryBidRequest, ReactiveQueryLeasesRequest, ReactiveQueryLeaseRequest } from "./query.js"; /** Query defines the gRPC querier service */ export interface Query { /** Orders queries orders with filters */ diff --git a/__fixtures__/v-next/outputv4/akash/market/v1beta2/query.ts b/__fixtures__/v-next/outputv4/akash/market/v1beta2/query.ts index 38745eae85..dcbd905a46 100644 --- a/__fixtures__/v-next/outputv4/akash/market/v1beta2/query.ts +++ b/__fixtures__/v-next/outputv4/akash/market/v1beta2/query.ts @@ -6,12 +6,17 @@ import { Account, AccountSDKType, FractionalPayment, FractionalPaymentSDKType } import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial, Exact } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "akash.market.v1beta2"; /** QueryOrdersRequest is request type for the Query/Orders RPC method */ export interface QueryOrdersRequest { filters: OrderFilters; pagination?: PageRequest; } +export interface ReactiveQueryOrdersRequest { + filters: ComputedRef; + pagination?: ComputedRef; +} export interface QueryOrdersRequestProtoMsg { typeUrl: "/akash.market.v1beta2.QueryOrdersRequest"; value: Uint8Array; @@ -26,6 +31,10 @@ export interface QueryOrdersResponse { orders: Order[]; pagination?: PageResponse; } +export interface ReactiveQueryOrdersResponse { + orders: ComputedRef; + pagination?: ComputedRef; +} export interface QueryOrdersResponseProtoMsg { typeUrl: "/akash.market.v1beta2.QueryOrdersResponse"; value: Uint8Array; @@ -39,6 +48,9 @@ export interface QueryOrdersResponseSDKType { export interface QueryOrderRequest { id: OrderID; } +export interface ReactiveQueryOrderRequest { + id: ComputedRef; +} export interface QueryOrderRequestProtoMsg { typeUrl: "/akash.market.v1beta2.QueryOrderRequest"; value: Uint8Array; @@ -51,6 +63,9 @@ export interface QueryOrderRequestSDKType { export interface QueryOrderResponse { order: Order; } +export interface ReactiveQueryOrderResponse { + order: ComputedRef; +} export interface QueryOrderResponseProtoMsg { typeUrl: "/akash.market.v1beta2.QueryOrderResponse"; value: Uint8Array; @@ -64,6 +79,10 @@ export interface QueryBidsRequest { filters: BidFilters; pagination?: PageRequest; } +export interface ReactiveQueryBidsRequest { + filters: ComputedRef; + pagination?: ComputedRef; +} export interface QueryBidsRequestProtoMsg { typeUrl: "/akash.market.v1beta2.QueryBidsRequest"; value: Uint8Array; @@ -78,6 +97,10 @@ export interface QueryBidsResponse { bids: QueryBidResponse[]; pagination?: PageResponse; } +export interface ReactiveQueryBidsResponse { + bids: ComputedRef; + pagination?: ComputedRef; +} export interface QueryBidsResponseProtoMsg { typeUrl: "/akash.market.v1beta2.QueryBidsResponse"; value: Uint8Array; @@ -91,6 +114,9 @@ export interface QueryBidsResponseSDKType { export interface QueryBidRequest { id: BidID; } +export interface ReactiveQueryBidRequest { + id: ComputedRef; +} export interface QueryBidRequestProtoMsg { typeUrl: "/akash.market.v1beta2.QueryBidRequest"; value: Uint8Array; @@ -104,6 +130,10 @@ export interface QueryBidResponse { bid: Bid; escrowAccount: Account; } +export interface ReactiveQueryBidResponse { + bid: ComputedRef; + escrowAccount: ComputedRef; +} export interface QueryBidResponseProtoMsg { typeUrl: "/akash.market.v1beta2.QueryBidResponse"; value: Uint8Array; @@ -118,6 +148,10 @@ export interface QueryLeasesRequest { filters: LeaseFilters; pagination?: PageRequest; } +export interface ReactiveQueryLeasesRequest { + filters: ComputedRef; + pagination?: ComputedRef; +} export interface QueryLeasesRequestProtoMsg { typeUrl: "/akash.market.v1beta2.QueryLeasesRequest"; value: Uint8Array; @@ -132,6 +166,10 @@ export interface QueryLeasesResponse { leases: QueryLeaseResponse[]; pagination?: PageResponse; } +export interface ReactiveQueryLeasesResponse { + leases: ComputedRef; + pagination?: ComputedRef; +} export interface QueryLeasesResponseProtoMsg { typeUrl: "/akash.market.v1beta2.QueryLeasesResponse"; value: Uint8Array; @@ -145,6 +183,9 @@ export interface QueryLeasesResponseSDKType { export interface QueryLeaseRequest { id: LeaseID; } +export interface ReactiveQueryLeaseRequest { + id: ComputedRef; +} export interface QueryLeaseRequestProtoMsg { typeUrl: "/akash.market.v1beta2.QueryLeaseRequest"; value: Uint8Array; @@ -158,6 +199,10 @@ export interface QueryLeaseResponse { lease: Lease; escrowPayment: FractionalPayment; } +export interface ReactiveQueryLeaseResponse { + lease: ComputedRef; + escrowPayment: ComputedRef; +} export interface QueryLeaseResponseProtoMsg { typeUrl: "/akash.market.v1beta2.QueryLeaseResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/akash/provider/v1beta1/provider.ts b/__fixtures__/v-next/outputv4/akash/provider/v1beta1/provider.ts index 5625191cf3..213d26bbc9 100644 --- a/__fixtures__/v-next/outputv4/akash/provider/v1beta1/provider.ts +++ b/__fixtures__/v-next/outputv4/akash/provider/v1beta1/provider.ts @@ -2,12 +2,17 @@ import { Attribute, AttributeSDKType } from "../../base/v1beta1/attribute.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial, Exact } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "akash.provider.v1beta1"; /** ProviderInfo */ export interface ProviderInfo { email: string; website: string; } +export interface ReactiveProviderInfo { + email: ComputedRef; + website: ComputedRef; +} export interface ProviderInfoProtoMsg { typeUrl: "/akash.provider.v1beta1.ProviderInfo"; value: Uint8Array; @@ -24,6 +29,12 @@ export interface MsgCreateProvider { attributes: Attribute[]; info: ProviderInfo; } +export interface ReactiveMsgCreateProvider { + owner: ComputedRef; + hostUri: ComputedRef; + attributes: ComputedRef; + info: ComputedRef; +} export interface MsgCreateProviderProtoMsg { typeUrl: "/akash.provider.v1beta1.MsgCreateProvider"; value: Uint8Array; @@ -37,6 +48,7 @@ export interface MsgCreateProviderSDKType { } /** MsgCreateProviderResponse defines the Msg/CreateProvider response type. */ export interface MsgCreateProviderResponse {} +export interface ReactiveMsgCreateProviderResponse {} export interface MsgCreateProviderResponseProtoMsg { typeUrl: "/akash.provider.v1beta1.MsgCreateProviderResponse"; value: Uint8Array; @@ -50,6 +62,12 @@ export interface MsgUpdateProvider { attributes: Attribute[]; info: ProviderInfo; } +export interface ReactiveMsgUpdateProvider { + owner: ComputedRef; + hostUri: ComputedRef; + attributes: ComputedRef; + info: ComputedRef; +} export interface MsgUpdateProviderProtoMsg { typeUrl: "/akash.provider.v1beta1.MsgUpdateProvider"; value: Uint8Array; @@ -63,6 +81,7 @@ export interface MsgUpdateProviderSDKType { } /** MsgUpdateProviderResponse defines the Msg/UpdateProvider response type. */ export interface MsgUpdateProviderResponse {} +export interface ReactiveMsgUpdateProviderResponse {} export interface MsgUpdateProviderResponseProtoMsg { typeUrl: "/akash.provider.v1beta1.MsgUpdateProviderResponse"; value: Uint8Array; @@ -73,6 +92,9 @@ export interface MsgUpdateProviderResponseSDKType {} export interface MsgDeleteProvider { owner: string; } +export interface ReactiveMsgDeleteProvider { + owner: ComputedRef; +} export interface MsgDeleteProviderProtoMsg { typeUrl: "/akash.provider.v1beta1.MsgDeleteProvider"; value: Uint8Array; @@ -83,6 +105,7 @@ export interface MsgDeleteProviderSDKType { } /** MsgDeleteProviderResponse defines the Msg/DeleteProvider response type. */ export interface MsgDeleteProviderResponse {} +export interface ReactiveMsgDeleteProviderResponse {} export interface MsgDeleteProviderResponseProtoMsg { typeUrl: "/akash.provider.v1beta1.MsgDeleteProviderResponse"; value: Uint8Array; @@ -96,6 +119,12 @@ export interface Provider { attributes: Attribute[]; info: ProviderInfo; } +export interface ReactiveProvider { + owner: ComputedRef; + hostUri: ComputedRef; + attributes: ComputedRef; + info: ComputedRef; +} export interface ProviderProtoMsg { typeUrl: "/akash.provider.v1beta1.Provider"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/akash/provider/v1beta2/genesis.ts b/__fixtures__/v-next/outputv4/akash/provider/v1beta2/genesis.ts index ae7e15bff3..85ae4a3640 100644 --- a/__fixtures__/v-next/outputv4/akash/provider/v1beta2/genesis.ts +++ b/__fixtures__/v-next/outputv4/akash/provider/v1beta2/genesis.ts @@ -2,11 +2,15 @@ import { Provider, ProviderSDKType } from "./provider.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { JsonSafe } from "../../../json-safe.js"; import { DeepPartial, Exact } from "../../../helpers.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "akash.provider.v1beta2"; /** GenesisState defines the basic genesis state used by provider module */ export interface GenesisState { providers: Provider[]; } +export interface ReactiveGenesisState { + providers: ComputedRef; +} export interface GenesisStateProtoMsg { typeUrl: "/akash.provider.v1beta2.GenesisState"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/akash/provider/v1beta2/provider.ts b/__fixtures__/v-next/outputv4/akash/provider/v1beta2/provider.ts index 046d435970..419c024291 100644 --- a/__fixtures__/v-next/outputv4/akash/provider/v1beta2/provider.ts +++ b/__fixtures__/v-next/outputv4/akash/provider/v1beta2/provider.ts @@ -2,12 +2,17 @@ import { Attribute, AttributeSDKType } from "../../base/v1beta2/attribute.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial, Exact } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "akash.provider.v1beta2"; /** ProviderInfo */ export interface ProviderInfo { email: string; website: string; } +export interface ReactiveProviderInfo { + email: ComputedRef; + website: ComputedRef; +} export interface ProviderInfoProtoMsg { typeUrl: "/akash.provider.v1beta2.ProviderInfo"; value: Uint8Array; @@ -24,6 +29,12 @@ export interface MsgCreateProvider { attributes: Attribute[]; info: ProviderInfo; } +export interface ReactiveMsgCreateProvider { + owner: ComputedRef; + hostUri: ComputedRef; + attributes: ComputedRef; + info: ComputedRef; +} export interface MsgCreateProviderProtoMsg { typeUrl: "/akash.provider.v1beta2.MsgCreateProvider"; value: Uint8Array; @@ -37,6 +48,7 @@ export interface MsgCreateProviderSDKType { } /** MsgCreateProviderResponse defines the Msg/CreateProvider response type. */ export interface MsgCreateProviderResponse {} +export interface ReactiveMsgCreateProviderResponse {} export interface MsgCreateProviderResponseProtoMsg { typeUrl: "/akash.provider.v1beta2.MsgCreateProviderResponse"; value: Uint8Array; @@ -50,6 +62,12 @@ export interface MsgUpdateProvider { attributes: Attribute[]; info: ProviderInfo; } +export interface ReactiveMsgUpdateProvider { + owner: ComputedRef; + hostUri: ComputedRef; + attributes: ComputedRef; + info: ComputedRef; +} export interface MsgUpdateProviderProtoMsg { typeUrl: "/akash.provider.v1beta2.MsgUpdateProvider"; value: Uint8Array; @@ -63,6 +81,7 @@ export interface MsgUpdateProviderSDKType { } /** MsgUpdateProviderResponse defines the Msg/UpdateProvider response type. */ export interface MsgUpdateProviderResponse {} +export interface ReactiveMsgUpdateProviderResponse {} export interface MsgUpdateProviderResponseProtoMsg { typeUrl: "/akash.provider.v1beta2.MsgUpdateProviderResponse"; value: Uint8Array; @@ -73,6 +92,9 @@ export interface MsgUpdateProviderResponseSDKType {} export interface MsgDeleteProvider { owner: string; } +export interface ReactiveMsgDeleteProvider { + owner: ComputedRef; +} export interface MsgDeleteProviderProtoMsg { typeUrl: "/akash.provider.v1beta2.MsgDeleteProvider"; value: Uint8Array; @@ -83,6 +105,7 @@ export interface MsgDeleteProviderSDKType { } /** MsgDeleteProviderResponse defines the Msg/DeleteProvider response type. */ export interface MsgDeleteProviderResponse {} +export interface ReactiveMsgDeleteProviderResponse {} export interface MsgDeleteProviderResponseProtoMsg { typeUrl: "/akash.provider.v1beta2.MsgDeleteProviderResponse"; value: Uint8Array; @@ -96,6 +119,12 @@ export interface Provider { attributes: Attribute[]; info: ProviderInfo; } +export interface ReactiveProvider { + owner: ComputedRef; + hostUri: ComputedRef; + attributes: ComputedRef; + info: ComputedRef; +} export interface ProviderProtoMsg { typeUrl: "/akash.provider.v1beta2.Provider"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/akash/provider/v1beta2/query.rpc.Query.ts b/__fixtures__/v-next/outputv4/akash/provider/v1beta2/query.rpc.Query.ts index ca9b6e7fa6..224baa61e4 100644 --- a/__fixtures__/v-next/outputv4/akash/provider/v1beta2/query.rpc.Query.ts +++ b/__fixtures__/v-next/outputv4/akash/provider/v1beta2/query.rpc.Query.ts @@ -3,7 +3,7 @@ import { Provider, ProviderSDKType } from "./provider.js"; import { Rpc } from "../../../helpers.js"; import { BinaryReader } from "../../../binary.js"; import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryProvidersRequest, QueryProvidersRequestSDKType, QueryProvidersResponse, QueryProvidersResponseSDKType, QueryProviderRequest, QueryProviderRequestSDKType, QueryProviderResponse, QueryProviderResponseSDKType } from "./query.js"; +import { QueryProvidersRequest, QueryProvidersRequestSDKType, QueryProvidersResponse, QueryProvidersResponseSDKType, QueryProviderRequest, QueryProviderRequestSDKType, QueryProviderResponse, QueryProviderResponseSDKType, ReactiveQueryProvidersRequest, ReactiveQueryProviderRequest } from "./query.js"; /** Query defines the gRPC querier service */ export interface Query { /** Providers queries providers */ diff --git a/__fixtures__/v-next/outputv4/akash/provider/v1beta2/query.ts b/__fixtures__/v-next/outputv4/akash/provider/v1beta2/query.ts index 88b8d7245e..630a75c6b6 100644 --- a/__fixtures__/v-next/outputv4/akash/provider/v1beta2/query.ts +++ b/__fixtures__/v-next/outputv4/akash/provider/v1beta2/query.ts @@ -3,11 +3,15 @@ import { Provider, ProviderSDKType } from "./provider.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial, Exact } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "akash.provider.v1beta2"; /** QueryProvidersRequest is request type for the Query/Providers RPC method */ export interface QueryProvidersRequest { pagination?: PageRequest; } +export interface ReactiveQueryProvidersRequest { + pagination?: ComputedRef; +} export interface QueryProvidersRequestProtoMsg { typeUrl: "/akash.provider.v1beta2.QueryProvidersRequest"; value: Uint8Array; @@ -21,6 +25,10 @@ export interface QueryProvidersResponse { providers: Provider[]; pagination?: PageResponse; } +export interface ReactiveQueryProvidersResponse { + providers: ComputedRef; + pagination?: ComputedRef; +} export interface QueryProvidersResponseProtoMsg { typeUrl: "/akash.provider.v1beta2.QueryProvidersResponse"; value: Uint8Array; @@ -34,6 +42,9 @@ export interface QueryProvidersResponseSDKType { export interface QueryProviderRequest { owner: string; } +export interface ReactiveQueryProviderRequest { + owner: ComputedRef; +} export interface QueryProviderRequestProtoMsg { typeUrl: "/akash.provider.v1beta2.QueryProviderRequest"; value: Uint8Array; @@ -46,6 +57,9 @@ export interface QueryProviderRequestSDKType { export interface QueryProviderResponse { provider: Provider; } +export interface ReactiveQueryProviderResponse { + provider: ComputedRef; +} export interface QueryProviderResponseProtoMsg { typeUrl: "/akash.provider.v1beta2.QueryProviderResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/confio/proofs.ts b/__fixtures__/v-next/outputv4/confio/proofs.ts index 6f55951877..cd90cb64ba 100644 --- a/__fixtures__/v-next/outputv4/confio/proofs.ts +++ b/__fixtures__/v-next/outputv4/confio/proofs.ts @@ -1,6 +1,7 @@ import { BinaryReader, BinaryWriter } from "../binary.js"; import { isSet, bytesFromBase64, base64FromBytes, DeepPartial } from "../helpers.js"; import { JsonSafe } from "../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "ics23"; export enum HashOp { /** NO_HASH - NO_HASH is the default if no data passed. Note this is an illegal argument some places. */ @@ -174,6 +175,12 @@ export interface ExistenceProof { leaf?: LeafOp; path: InnerOp[]; } +export interface ReactiveExistenceProof { + key: ComputedRef; + value: ComputedRef; + leaf?: ComputedRef; + path: ComputedRef; +} export interface ExistenceProofProtoMsg { typeUrl: "/ics23.ExistenceProof"; value: Uint8Array; @@ -216,6 +223,11 @@ export interface NonExistenceProof { left?: ExistenceProof; right?: ExistenceProof; } +export interface ReactiveNonExistenceProof { + key: ComputedRef; + left?: ComputedRef; + right?: ComputedRef; +} export interface NonExistenceProofProtoMsg { typeUrl: "/ics23.NonExistenceProof"; value: Uint8Array; @@ -237,6 +249,12 @@ export interface CommitmentProof { batch?: BatchProof; compressed?: CompressedBatchProof; } +export interface ReactiveCommitmentProof { + exist?: ComputedRef; + nonexist?: ComputedRef; + batch?: ComputedRef; + compressed?: ComputedRef; +} export interface CommitmentProofProtoMsg { typeUrl: "/ics23.CommitmentProof"; value: Uint8Array; @@ -275,6 +293,13 @@ export interface LeafOp { */ prefix: Uint8Array; } +export interface ReactiveLeafOp { + hash: ComputedRef; + prehashKey: ComputedRef; + prehashValue: ComputedRef; + length: ComputedRef; + prefix: ComputedRef; +} export interface LeafOpProtoMsg { typeUrl: "/ics23.LeafOp"; value: Uint8Array; @@ -324,6 +349,11 @@ export interface InnerOp { prefix: Uint8Array; suffix: Uint8Array; } +export interface ReactiveInnerOp { + hash: ComputedRef; + prefix: ComputedRef; + suffix: ComputedRef; +} export interface InnerOpProtoMsg { typeUrl: "/ics23.InnerOp"; value: Uint8Array; @@ -374,6 +404,12 @@ export interface ProofSpec { /** min_depth (if > 0) is the minimum number of InnerOps allowed (mainly for fixed-depth tries) */ minDepth: number; } +export interface ReactiveProofSpec { + leafSpec?: ComputedRef; + innerSpec?: ComputedRef; + maxDepth: ComputedRef; + minDepth: ComputedRef; +} export interface ProofSpecProtoMsg { typeUrl: "/ics23.ProofSpec"; value: Uint8Array; @@ -421,6 +457,14 @@ export interface InnerSpec { /** hash is the algorithm that must be used for each InnerOp */ hash: HashOp; } +export interface ReactiveInnerSpec { + childOrder: ComputedRef; + childSize: ComputedRef; + minPrefixLength: ComputedRef; + maxPrefixLength: ComputedRef; + emptyChild: ComputedRef; + hash: ComputedRef; +} export interface InnerSpecProtoMsg { typeUrl: "/ics23.InnerSpec"; value: Uint8Array; @@ -447,6 +491,9 @@ export interface InnerSpecSDKType { export interface BatchProof { entries: BatchEntry[]; } +export interface ReactiveBatchProof { + entries: ComputedRef; +} export interface BatchProofProtoMsg { typeUrl: "/ics23.BatchProof"; value: Uint8Array; @@ -460,6 +507,10 @@ export interface BatchEntry { exist?: ExistenceProof; nonexist?: NonExistenceProof; } +export interface ReactiveBatchEntry { + exist?: ComputedRef; + nonexist?: ComputedRef; +} export interface BatchEntryProtoMsg { typeUrl: "/ics23.BatchEntry"; value: Uint8Array; @@ -473,6 +524,10 @@ export interface CompressedBatchProof { entries: CompressedBatchEntry[]; lookupInners: InnerOp[]; } +export interface ReactiveCompressedBatchProof { + entries: ComputedRef; + lookupInners: ComputedRef; +} export interface CompressedBatchProofProtoMsg { typeUrl: "/ics23.CompressedBatchProof"; value: Uint8Array; @@ -486,6 +541,10 @@ export interface CompressedBatchEntry { exist?: CompressedExistenceProof; nonexist?: CompressedNonExistenceProof; } +export interface ReactiveCompressedBatchEntry { + exist?: ComputedRef; + nonexist?: ComputedRef; +} export interface CompressedBatchEntryProtoMsg { typeUrl: "/ics23.CompressedBatchEntry"; value: Uint8Array; @@ -502,6 +561,12 @@ export interface CompressedExistenceProof { /** these are indexes into the lookup_inners table in CompressedBatchProof */ path: number[]; } +export interface ReactiveCompressedExistenceProof { + key: ComputedRef; + value: ComputedRef; + leaf?: ComputedRef; + path: ComputedRef; +} export interface CompressedExistenceProofProtoMsg { typeUrl: "/ics23.CompressedExistenceProof"; value: Uint8Array; @@ -518,6 +583,11 @@ export interface CompressedNonExistenceProof { left?: CompressedExistenceProof; right?: CompressedExistenceProof; } +export interface ReactiveCompressedNonExistenceProof { + key: ComputedRef; + left?: ComputedRef; + right?: ComputedRef; +} export interface CompressedNonExistenceProofProtoMsg { typeUrl: "/ics23.CompressedNonExistenceProof"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/app/v1alpha1/config.ts b/__fixtures__/v-next/outputv4/cosmos/app/v1alpha1/config.ts index 655de8ba2d..7887e1bbcc 100644 --- a/__fixtures__/v-next/outputv4/cosmos/app/v1alpha1/config.ts +++ b/__fixtures__/v-next/outputv4/cosmos/app/v1alpha1/config.ts @@ -2,6 +2,7 @@ import { Any, AnySDKType } from "../../../google/protobuf/any.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { JsonSafe } from "../../../json-safe.js"; import { DeepPartial, isSet } from "../../../helpers.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.app.v1alpha1"; /** * Config represents the configuration for a Cosmos SDK ABCI app. @@ -16,6 +17,9 @@ export interface Config { /** modules are the module configurations for the app. */ modules: ModuleConfig[]; } +export interface ReactiveConfig { + modules: ComputedRef; +} export interface ConfigProtoMsg { typeUrl: "/cosmos.app.v1alpha1.Config"; value: Uint8Array; @@ -53,6 +57,10 @@ export interface ModuleConfig { */ config?: Any; } +export interface ReactiveModuleConfig { + name: ComputedRef; + config?: ComputedRef; +} export interface ModuleConfigProtoMsg { typeUrl: "/cosmos.app.v1alpha1.ModuleConfig"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/app/v1alpha1/module.ts b/__fixtures__/v-next/outputv4/cosmos/app/v1alpha1/module.ts index 6e822531b2..6fa0481dd4 100644 --- a/__fixtures__/v-next/outputv4/cosmos/app/v1alpha1/module.ts +++ b/__fixtures__/v-next/outputv4/cosmos/app/v1alpha1/module.ts @@ -1,6 +1,7 @@ import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.app.v1alpha1"; /** ModuleDescriptor describes an app module. */ export interface ModuleDescriptor { @@ -30,6 +31,11 @@ export interface ModuleDescriptor { */ canMigrateFrom: MigrateFromInfo[]; } +export interface ReactiveModuleDescriptor { + goImport: ComputedRef; + usePackage: ComputedRef; + canMigrateFrom: ComputedRef; +} export interface ModuleDescriptorProtoMsg { typeUrl: "/cosmos.app.v1alpha1.ModuleDescriptor"; value: Uint8Array; @@ -83,6 +89,10 @@ export interface PackageReference { */ revision: number; } +export interface ReactivePackageReference { + name: ComputedRef; + revision: ComputedRef; +} export interface PackageReferenceProtoMsg { typeUrl: "/cosmos.app.v1alpha1.PackageReference"; value: Uint8Array; @@ -103,6 +113,9 @@ export interface MigrateFromInfo { */ module: string; } +export interface ReactiveMigrateFromInfo { + module: ComputedRef; +} export interface MigrateFromInfoProtoMsg { typeUrl: "/cosmos.app.v1alpha1.MigrateFromInfo"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/app/v1alpha1/query.rpc.Query.ts b/__fixtures__/v-next/outputv4/cosmos/app/v1alpha1/query.rpc.Query.ts index ac71cea766..8d7fc1d640 100644 --- a/__fixtures__/v-next/outputv4/cosmos/app/v1alpha1/query.rpc.Query.ts +++ b/__fixtures__/v-next/outputv4/cosmos/app/v1alpha1/query.rpc.Query.ts @@ -2,7 +2,7 @@ import { Config, ConfigSDKType } from "./config.js"; import { Rpc } from "../../../helpers.js"; import { BinaryReader } from "../../../binary.js"; import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryConfigRequest, QueryConfigRequestSDKType, QueryConfigResponse, QueryConfigResponseSDKType } from "./query.js"; +import { QueryConfigRequest, QueryConfigRequestSDKType, QueryConfigResponse, QueryConfigResponseSDKType, ReactiveQueryConfigRequest } from "./query.js"; /** Query is the app module query service. */ export interface Query { /** Config returns the current app config. */ diff --git a/__fixtures__/v-next/outputv4/cosmos/app/v1alpha1/query.ts b/__fixtures__/v-next/outputv4/cosmos/app/v1alpha1/query.ts index bf417a9732..c614690d50 100644 --- a/__fixtures__/v-next/outputv4/cosmos/app/v1alpha1/query.ts +++ b/__fixtures__/v-next/outputv4/cosmos/app/v1alpha1/query.ts @@ -2,9 +2,11 @@ import { Config, ConfigSDKType } from "./config.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { JsonSafe } from "../../../json-safe.js"; import { DeepPartial, isSet } from "../../../helpers.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.app.v1alpha1"; /** QueryConfigRequest is the Query/Config request type. */ export interface QueryConfigRequest {} +export interface ReactiveQueryConfigRequest {} export interface QueryConfigRequestProtoMsg { typeUrl: "/cosmos.app.v1alpha1.QueryConfigRequest"; value: Uint8Array; @@ -16,6 +18,9 @@ export interface QueryConfigResponse { /** config is the current app config. */ config?: Config; } +export interface ReactiveQueryConfigResponse { + config?: ComputedRef; +} export interface QueryConfigResponseProtoMsg { typeUrl: "/cosmos.app.v1alpha1.QueryConfigResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/auth/v1beta1/auth.ts b/__fixtures__/v-next/outputv4/cosmos/auth/v1beta1/auth.ts index ee309a091c..eb46b2c65d 100644 --- a/__fixtures__/v-next/outputv4/cosmos/auth/v1beta1/auth.ts +++ b/__fixtures__/v-next/outputv4/cosmos/auth/v1beta1/auth.ts @@ -2,6 +2,7 @@ import { Any, AnySDKType } from "../../../google/protobuf/any.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.auth.v1beta1"; /** * BaseAccount defines a base account type. It contains all the necessary fields @@ -14,6 +15,12 @@ export interface BaseAccount { accountNumber: bigint; sequence: bigint; } +export interface ReactiveBaseAccount { + address: ComputedRef; + pubKey?: ComputedRef; + accountNumber: ComputedRef; + sequence: ComputedRef; +} export interface BaseAccountProtoMsg { typeUrl: "/cosmos.auth.v1beta1.BaseAccount"; value: Uint8Array; @@ -35,6 +42,11 @@ export interface ModuleAccount { name: string; permissions: string[]; } +export interface ReactiveModuleAccount { + baseAccount?: ComputedRef; + name: ComputedRef; + permissions: ComputedRef; +} export interface ModuleAccountProtoMsg { typeUrl: "/cosmos.auth.v1beta1.ModuleAccount"; value: Uint8Array; @@ -53,6 +65,13 @@ export interface Params { sigVerifyCostEd25519: bigint; sigVerifyCostSecp256k1: bigint; } +export interface ReactiveParams { + maxMemoCharacters: ComputedRef; + txSigLimit: ComputedRef; + txSizeCostPerByte: ComputedRef; + sigVerifyCostEd25519: ComputedRef; + sigVerifyCostSecp256k1: ComputedRef; +} export interface ParamsProtoMsg { typeUrl: "/cosmos.auth.v1beta1.Params"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/auth/v1beta1/genesis.ts b/__fixtures__/v-next/outputv4/cosmos/auth/v1beta1/genesis.ts index dde14ad56e..ca0f67c6f1 100644 --- a/__fixtures__/v-next/outputv4/cosmos/auth/v1beta1/genesis.ts +++ b/__fixtures__/v-next/outputv4/cosmos/auth/v1beta1/genesis.ts @@ -3,6 +3,7 @@ import { Any, AnySDKType } from "../../../google/protobuf/any.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.auth.v1beta1"; /** GenesisState defines the auth module's genesis state. */ export interface GenesisState { @@ -11,6 +12,10 @@ export interface GenesisState { /** accounts are the accounts present at genesis. */ accounts: Any[]; } +export interface ReactiveGenesisState { + params: ComputedRef; + accounts: ComputedRef; +} export interface GenesisStateProtoMsg { typeUrl: "/cosmos.auth.v1beta1.GenesisState"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/auth/v1beta1/query.rpc.Query.ts b/__fixtures__/v-next/outputv4/cosmos/auth/v1beta1/query.rpc.Query.ts index 828662a3b0..65a6829751 100644 --- a/__fixtures__/v-next/outputv4/cosmos/auth/v1beta1/query.rpc.Query.ts +++ b/__fixtures__/v-next/outputv4/cosmos/auth/v1beta1/query.rpc.Query.ts @@ -6,7 +6,7 @@ import { BinaryReader } from "../../../binary.js"; import { QueryClient, createProtobufRpcClient, ProtobufRpcClient } from "@cosmjs/stargate"; import { ReactQueryParams } from "../../../react-query.js"; import { useQuery } from "@tanstack/react-query"; -import { QueryAccountsRequest, QueryAccountsRequestSDKType, QueryAccountsResponse, QueryAccountsResponseSDKType, QueryAccountRequest, QueryAccountRequestSDKType, QueryAccountResponse, QueryAccountResponseSDKType, QueryParamsRequest, QueryParamsRequestSDKType, QueryParamsResponse, QueryParamsResponseSDKType, QueryModuleAccountsRequest, QueryModuleAccountsRequestSDKType, QueryModuleAccountsResponse, QueryModuleAccountsResponseSDKType, Bech32PrefixRequest, Bech32PrefixRequestSDKType, Bech32PrefixResponse, Bech32PrefixResponseSDKType, AddressBytesToStringRequest, AddressBytesToStringRequestSDKType, AddressBytesToStringResponse, AddressBytesToStringResponseSDKType, AddressStringToBytesRequest, AddressStringToBytesRequestSDKType, AddressStringToBytesResponse, AddressStringToBytesResponseSDKType } from "./query.js"; +import { QueryAccountsRequest, QueryAccountsRequestSDKType, QueryAccountsResponse, QueryAccountsResponseSDKType, QueryAccountRequest, QueryAccountRequestSDKType, QueryAccountResponse, QueryAccountResponseSDKType, QueryParamsRequest, QueryParamsRequestSDKType, QueryParamsResponse, QueryParamsResponseSDKType, QueryModuleAccountsRequest, QueryModuleAccountsRequestSDKType, QueryModuleAccountsResponse, QueryModuleAccountsResponseSDKType, Bech32PrefixRequest, Bech32PrefixRequestSDKType, Bech32PrefixResponse, Bech32PrefixResponseSDKType, AddressBytesToStringRequest, AddressBytesToStringRequestSDKType, AddressBytesToStringResponse, AddressBytesToStringResponseSDKType, AddressStringToBytesRequest, AddressStringToBytesRequestSDKType, AddressStringToBytesResponse, AddressStringToBytesResponseSDKType, ReactiveQueryAccountsRequest, ReactiveQueryAccountRequest, ReactiveQueryParamsRequest, ReactiveQueryModuleAccountsRequest } from "./query.js"; /** Query defines the gRPC querier service. */ export interface Query { /** diff --git a/__fixtures__/v-next/outputv4/cosmos/auth/v1beta1/query.ts b/__fixtures__/v-next/outputv4/cosmos/auth/v1beta1/query.ts index 6af28ab2b6..e8f79dd3a7 100644 --- a/__fixtures__/v-next/outputv4/cosmos/auth/v1beta1/query.ts +++ b/__fixtures__/v-next/outputv4/cosmos/auth/v1beta1/query.ts @@ -4,6 +4,7 @@ import { Params, ParamsSDKType } from "./auth.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial, bytesFromBase64, base64FromBytes } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.auth.v1beta1"; /** * QueryAccountsRequest is the request type for the Query/Accounts RPC method. @@ -14,6 +15,9 @@ export interface QueryAccountsRequest { /** pagination defines an optional pagination for the request. */ pagination?: PageRequest; } +export interface ReactiveQueryAccountsRequest { + pagination?: ComputedRef; +} export interface QueryAccountsRequestProtoMsg { typeUrl: "/cosmos.auth.v1beta1.QueryAccountsRequest"; value: Uint8Array; @@ -37,6 +41,10 @@ export interface QueryAccountsResponse { /** pagination defines the pagination in the response. */ pagination?: PageResponse; } +export interface ReactiveQueryAccountsResponse { + accounts: ComputedRef; + pagination?: ComputedRef; +} export interface QueryAccountsResponseProtoMsg { typeUrl: "/cosmos.auth.v1beta1.QueryAccountsResponse"; value: Uint8Array; @@ -55,6 +63,9 @@ export interface QueryAccountRequest { /** address defines the address to query for. */ address: string; } +export interface ReactiveQueryAccountRequest { + address: ComputedRef; +} export interface QueryAccountRequestProtoMsg { typeUrl: "/cosmos.auth.v1beta1.QueryAccountRequest"; value: Uint8Array; @@ -65,6 +76,7 @@ export interface QueryAccountRequestSDKType { } /** QueryModuleAccountsRequest is the request type for the Query/ModuleAccounts RPC method. */ export interface QueryModuleAccountsRequest {} +export interface ReactiveQueryModuleAccountsRequest {} export interface QueryModuleAccountsRequestProtoMsg { typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountsRequest"; value: Uint8Array; @@ -76,6 +88,9 @@ export interface QueryParamsResponse { /** params defines the parameters of the module. */ params: Params; } +export interface ReactiveQueryParamsResponse { + params: ComputedRef; +} export interface QueryParamsResponseProtoMsg { typeUrl: "/cosmos.auth.v1beta1.QueryParamsResponse"; value: Uint8Array; @@ -89,6 +104,9 @@ export interface QueryAccountResponse { /** account defines the account of the corresponding address. */ account?: Any; } +export interface ReactiveQueryAccountResponse { + account?: ComputedRef; +} export interface QueryAccountResponseProtoMsg { typeUrl: "/cosmos.auth.v1beta1.QueryAccountResponse"; value: Uint8Array; @@ -99,6 +117,7 @@ export interface QueryAccountResponseSDKType { } /** QueryParamsRequest is the request type for the Query/Params RPC method. */ export interface QueryParamsRequest {} +export interface ReactiveQueryParamsRequest {} export interface QueryParamsRequestProtoMsg { typeUrl: "/cosmos.auth.v1beta1.QueryParamsRequest"; value: Uint8Array; @@ -109,6 +128,9 @@ export interface QueryParamsRequestSDKType {} export interface QueryModuleAccountsResponse { accounts: Any[]; } +export interface ReactiveQueryModuleAccountsResponse { + accounts: ComputedRef; +} export interface QueryModuleAccountsResponseProtoMsg { typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountsResponse"; value: Uint8Array; @@ -119,6 +141,7 @@ export interface QueryModuleAccountsResponseSDKType { } /** Bech32PrefixRequest is the request type for Bech32Prefix rpc method */ export interface Bech32PrefixRequest {} +export interface ReactiveBech32PrefixRequest {} export interface Bech32PrefixRequestProtoMsg { typeUrl: "/cosmos.auth.v1beta1.Bech32PrefixRequest"; value: Uint8Array; @@ -129,6 +152,9 @@ export interface Bech32PrefixRequestSDKType {} export interface Bech32PrefixResponse { bech32Prefix: string; } +export interface ReactiveBech32PrefixResponse { + bech32Prefix: ComputedRef; +} export interface Bech32PrefixResponseProtoMsg { typeUrl: "/cosmos.auth.v1beta1.Bech32PrefixResponse"; value: Uint8Array; @@ -141,6 +167,9 @@ export interface Bech32PrefixResponseSDKType { export interface AddressBytesToStringRequest { addressBytes: Uint8Array; } +export interface ReactiveAddressBytesToStringRequest { + addressBytes: ComputedRef; +} export interface AddressBytesToStringRequestProtoMsg { typeUrl: "/cosmos.auth.v1beta1.AddressBytesToStringRequest"; value: Uint8Array; @@ -153,6 +182,9 @@ export interface AddressBytesToStringRequestSDKType { export interface AddressBytesToStringResponse { addressString: string; } +export interface ReactiveAddressBytesToStringResponse { + addressString: ComputedRef; +} export interface AddressBytesToStringResponseProtoMsg { typeUrl: "/cosmos.auth.v1beta1.AddressBytesToStringResponse"; value: Uint8Array; @@ -165,6 +197,9 @@ export interface AddressBytesToStringResponseSDKType { export interface AddressStringToBytesRequest { addressString: string; } +export interface ReactiveAddressStringToBytesRequest { + addressString: ComputedRef; +} export interface AddressStringToBytesRequestProtoMsg { typeUrl: "/cosmos.auth.v1beta1.AddressStringToBytesRequest"; value: Uint8Array; @@ -177,6 +212,9 @@ export interface AddressStringToBytesRequestSDKType { export interface AddressStringToBytesResponse { addressBytes: Uint8Array; } +export interface ReactiveAddressStringToBytesResponse { + addressBytes: ComputedRef; +} export interface AddressStringToBytesResponseProtoMsg { typeUrl: "/cosmos.auth.v1beta1.AddressStringToBytesResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/authz/v1beta1/authz.ts b/__fixtures__/v-next/outputv4/cosmos/authz/v1beta1/authz.ts index b29eecedfa..739e6e91cf 100644 --- a/__fixtures__/v-next/outputv4/cosmos/authz/v1beta1/authz.ts +++ b/__fixtures__/v-next/outputv4/cosmos/authz/v1beta1/authz.ts @@ -3,6 +3,7 @@ import { Timestamp, TimestampSDKType } from "../../../google/protobuf/timestamp. import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial, toTimestamp, fromTimestamp } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.authz.v1beta1"; /** * GenericAuthorization gives the grantee unrestricted permissions to execute @@ -12,6 +13,9 @@ export interface GenericAuthorization { /** Msg, identified by it's type URL, to grant unrestricted permissions to execute */ msg: string; } +export interface ReactiveGenericAuthorization { + msg: ComputedRef; +} export interface GenericAuthorizationProtoMsg { typeUrl: "/cosmos.authz.v1beta1.GenericAuthorization"; value: Uint8Array; @@ -36,6 +40,10 @@ export interface Grant { */ expiration?: Date; } +export interface ReactiveGrant { + authorization?: ComputedRef; + expiration?: ComputedRef; +} export interface GrantProtoMsg { typeUrl: "/cosmos.authz.v1beta1.Grant"; value: Uint8Array; @@ -58,6 +66,12 @@ export interface GrantAuthorization { authorization?: Any; expiration?: Date; } +export interface ReactiveGrantAuthorization { + granter: ComputedRef; + grantee: ComputedRef; + authorization?: ComputedRef; + expiration?: ComputedRef; +} export interface GrantAuthorizationProtoMsg { typeUrl: "/cosmos.authz.v1beta1.GrantAuthorization"; value: Uint8Array; @@ -77,6 +91,9 @@ export interface GrantQueueItem { /** msg_type_urls contains the list of TypeURL of a sdk.Msg. */ msgTypeUrls: string[]; } +export interface ReactiveGrantQueueItem { + msgTypeUrls: ComputedRef; +} export interface GrantQueueItemProtoMsg { typeUrl: "/cosmos.authz.v1beta1.GrantQueueItem"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/authz/v1beta1/genesis.ts b/__fixtures__/v-next/outputv4/cosmos/authz/v1beta1/genesis.ts index 7ca6262d39..7c9f6b8e10 100644 --- a/__fixtures__/v-next/outputv4/cosmos/authz/v1beta1/genesis.ts +++ b/__fixtures__/v-next/outputv4/cosmos/authz/v1beta1/genesis.ts @@ -2,11 +2,15 @@ import { GrantAuthorization, GrantAuthorizationSDKType } from "./authz.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { JsonSafe } from "../../../json-safe.js"; import { DeepPartial } from "../../../helpers.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.authz.v1beta1"; /** GenesisState defines the authz module's genesis state. */ export interface GenesisState { authorization: GrantAuthorization[]; } +export interface ReactiveGenesisState { + authorization: ComputedRef; +} export interface GenesisStateProtoMsg { typeUrl: "/cosmos.authz.v1beta1.GenesisState"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/authz/v1beta1/query.rpc.Query.ts b/__fixtures__/v-next/outputv4/cosmos/authz/v1beta1/query.rpc.Query.ts index e22e435eb1..b57202843e 100644 --- a/__fixtures__/v-next/outputv4/cosmos/authz/v1beta1/query.rpc.Query.ts +++ b/__fixtures__/v-next/outputv4/cosmos/authz/v1beta1/query.rpc.Query.ts @@ -3,7 +3,7 @@ import { Grant, GrantSDKType, GrantAuthorization, GrantAuthorizationSDKType } fr import { Rpc } from "../../../helpers.js"; import { BinaryReader } from "../../../binary.js"; import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryGrantsRequest, QueryGrantsRequestSDKType, QueryGrantsResponse, QueryGrantsResponseSDKType, QueryGranterGrantsRequest, QueryGranterGrantsRequestSDKType, QueryGranterGrantsResponse, QueryGranterGrantsResponseSDKType, QueryGranteeGrantsRequest, QueryGranteeGrantsRequestSDKType, QueryGranteeGrantsResponse, QueryGranteeGrantsResponseSDKType } from "./query.js"; +import { QueryGrantsRequest, QueryGrantsRequestSDKType, QueryGrantsResponse, QueryGrantsResponseSDKType, QueryGranterGrantsRequest, QueryGranterGrantsRequestSDKType, QueryGranterGrantsResponse, QueryGranterGrantsResponseSDKType, QueryGranteeGrantsRequest, QueryGranteeGrantsRequestSDKType, QueryGranteeGrantsResponse, QueryGranteeGrantsResponseSDKType, ReactiveQueryGrantsRequest, ReactiveQueryGranterGrantsRequest, ReactiveQueryGranteeGrantsRequest } from "./query.js"; /** Query defines the gRPC querier service. */ export interface Query { /** Returns list of `Authorization`, granted to the grantee by the granter. */ diff --git a/__fixtures__/v-next/outputv4/cosmos/authz/v1beta1/query.ts b/__fixtures__/v-next/outputv4/cosmos/authz/v1beta1/query.ts index 7cdddb1aa4..36102b3b05 100644 --- a/__fixtures__/v-next/outputv4/cosmos/authz/v1beta1/query.ts +++ b/__fixtures__/v-next/outputv4/cosmos/authz/v1beta1/query.ts @@ -3,6 +3,7 @@ import { Grant, GrantSDKType, GrantAuthorization, GrantAuthorizationSDKType } fr import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.authz.v1beta1"; /** QueryGrantsRequest is the request type for the Query/Grants RPC method. */ export interface QueryGrantsRequest { @@ -13,6 +14,12 @@ export interface QueryGrantsRequest { /** pagination defines an pagination for the request. */ pagination?: PageRequest; } +export interface ReactiveQueryGrantsRequest { + granter: ComputedRef; + grantee: ComputedRef; + msgTypeUrl: ComputedRef; + pagination?: ComputedRef; +} export interface QueryGrantsRequestProtoMsg { typeUrl: "/cosmos.authz.v1beta1.QueryGrantsRequest"; value: Uint8Array; @@ -31,6 +38,10 @@ export interface QueryGrantsResponse { /** pagination defines an pagination for the response. */ pagination?: PageResponse; } +export interface ReactiveQueryGrantsResponse { + grants: ComputedRef; + pagination?: ComputedRef; +} export interface QueryGrantsResponseProtoMsg { typeUrl: "/cosmos.authz.v1beta1.QueryGrantsResponse"; value: Uint8Array; @@ -46,6 +57,10 @@ export interface QueryGranterGrantsRequest { /** pagination defines an pagination for the request. */ pagination?: PageRequest; } +export interface ReactiveQueryGranterGrantsRequest { + granter: ComputedRef; + pagination?: ComputedRef; +} export interface QueryGranterGrantsRequestProtoMsg { typeUrl: "/cosmos.authz.v1beta1.QueryGranterGrantsRequest"; value: Uint8Array; @@ -62,6 +77,10 @@ export interface QueryGranterGrantsResponse { /** pagination defines an pagination for the response. */ pagination?: PageResponse; } +export interface ReactiveQueryGranterGrantsResponse { + grants: ComputedRef; + pagination?: ComputedRef; +} export interface QueryGranterGrantsResponseProtoMsg { typeUrl: "/cosmos.authz.v1beta1.QueryGranterGrantsResponse"; value: Uint8Array; @@ -77,6 +96,10 @@ export interface QueryGranteeGrantsRequest { /** pagination defines an pagination for the request. */ pagination?: PageRequest; } +export interface ReactiveQueryGranteeGrantsRequest { + grantee: ComputedRef; + pagination?: ComputedRef; +} export interface QueryGranteeGrantsRequestProtoMsg { typeUrl: "/cosmos.authz.v1beta1.QueryGranteeGrantsRequest"; value: Uint8Array; @@ -93,6 +116,10 @@ export interface QueryGranteeGrantsResponse { /** pagination defines an pagination for the response. */ pagination?: PageResponse; } +export interface ReactiveQueryGranteeGrantsResponse { + grants: ComputedRef; + pagination?: ComputedRef; +} export interface QueryGranteeGrantsResponseProtoMsg { typeUrl: "/cosmos.authz.v1beta1.QueryGranteeGrantsResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/authz/v1beta1/tx.ts b/__fixtures__/v-next/outputv4/cosmos/authz/v1beta1/tx.ts index 667deb9668..7f4225592a 100644 --- a/__fixtures__/v-next/outputv4/cosmos/authz/v1beta1/tx.ts +++ b/__fixtures__/v-next/outputv4/cosmos/authz/v1beta1/tx.ts @@ -3,6 +3,7 @@ import { Any, AnySDKType } from "../../../google/protobuf/any.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial, bytesFromBase64, base64FromBytes } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.authz.v1beta1"; /** * MsgGrant is a request type for Grant method. It declares authorization to the grantee @@ -13,6 +14,11 @@ export interface MsgGrant { grantee: string; grant: Grant; } +export interface ReactiveMsgGrant { + granter: ComputedRef; + grantee: ComputedRef; + grant: ComputedRef; +} export interface MsgGrantProtoMsg { typeUrl: "/cosmos.authz.v1beta1.MsgGrant"; value: Uint8Array; @@ -30,6 +36,9 @@ export interface MsgGrantSDKType { export interface MsgExecResponse { results: Uint8Array[]; } +export interface ReactiveMsgExecResponse { + results: ComputedRef; +} export interface MsgExecResponseProtoMsg { typeUrl: "/cosmos.authz.v1beta1.MsgExecResponse"; value: Uint8Array; @@ -52,6 +61,10 @@ export interface MsgExec { */ msgs: Any[]; } +export interface ReactiveMsgExec { + grantee: ComputedRef; + msgs: ComputedRef; +} export interface MsgExecProtoMsg { typeUrl: "/cosmos.authz.v1beta1.MsgExec"; value: Uint8Array; @@ -67,6 +80,7 @@ export interface MsgExecSDKType { } /** MsgGrantResponse defines the Msg/MsgGrant response type. */ export interface MsgGrantResponse {} +export interface ReactiveMsgGrantResponse {} export interface MsgGrantResponseProtoMsg { typeUrl: "/cosmos.authz.v1beta1.MsgGrantResponse"; value: Uint8Array; @@ -82,6 +96,11 @@ export interface MsgRevoke { grantee: string; msgTypeUrl: string; } +export interface ReactiveMsgRevoke { + granter: ComputedRef; + grantee: ComputedRef; + msgTypeUrl: ComputedRef; +} export interface MsgRevokeProtoMsg { typeUrl: "/cosmos.authz.v1beta1.MsgRevoke"; value: Uint8Array; @@ -97,6 +116,7 @@ export interface MsgRevokeSDKType { } /** MsgRevokeResponse defines the Msg/MsgRevokeResponse response type. */ export interface MsgRevokeResponse {} +export interface ReactiveMsgRevokeResponse {} export interface MsgRevokeResponseProtoMsg { typeUrl: "/cosmos.authz.v1beta1.MsgRevokeResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/bank/v1beta1/authz.ts b/__fixtures__/v-next/outputv4/cosmos/bank/v1beta1/authz.ts index b7fb75d211..b98ea430fa 100644 --- a/__fixtures__/v-next/outputv4/cosmos/bank/v1beta1/authz.ts +++ b/__fixtures__/v-next/outputv4/cosmos/bank/v1beta1/authz.ts @@ -2,6 +2,7 @@ import { Coin, CoinSDKType } from "../../base/v1beta1/coin.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { JsonSafe } from "../../../json-safe.js"; import { DeepPartial } from "../../../helpers.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.bank.v1beta1"; /** * SendAuthorization allows the grantee to spend up to spend_limit coins from @@ -12,6 +13,9 @@ export const protobufPackage = "cosmos.bank.v1beta1"; export interface SendAuthorization { spendLimit: Coin[]; } +export interface ReactiveSendAuthorization { + spendLimit: ComputedRef; +} export interface SendAuthorizationProtoMsg { typeUrl: "/cosmos.bank.v1beta1.SendAuthorization"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/bank/v1beta1/bank.ts b/__fixtures__/v-next/outputv4/cosmos/bank/v1beta1/bank.ts index c7c7a9835d..68d908b022 100644 --- a/__fixtures__/v-next/outputv4/cosmos/bank/v1beta1/bank.ts +++ b/__fixtures__/v-next/outputv4/cosmos/bank/v1beta1/bank.ts @@ -2,12 +2,17 @@ import { Coin, CoinSDKType } from "../../base/v1beta1/coin.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.bank.v1beta1"; /** Params defines the parameters for the bank module. */ export interface Params { sendEnabled: SendEnabled[]; defaultSendEnabled: boolean; } +export interface ReactiveParams { + sendEnabled: ComputedRef; + defaultSendEnabled: ComputedRef; +} export interface ParamsProtoMsg { typeUrl: "/cosmos.bank.v1beta1.Params"; value: Uint8Array; @@ -25,6 +30,10 @@ export interface SendEnabled { denom: string; enabled: boolean; } +export interface ReactiveSendEnabled { + denom: ComputedRef; + enabled: ComputedRef; +} export interface SendEnabledProtoMsg { typeUrl: "/cosmos.bank.v1beta1.SendEnabled"; value: Uint8Array; @@ -42,6 +51,10 @@ export interface Input { address: string; coins: Coin[]; } +export interface ReactiveInput { + address: ComputedRef; + coins: ComputedRef; +} export interface InputProtoMsg { typeUrl: "/cosmos.bank.v1beta1.Input"; value: Uint8Array; @@ -56,6 +69,10 @@ export interface Output { address: string; coins: Coin[]; } +export interface ReactiveOutput { + address: ComputedRef; + coins: ComputedRef; +} export interface OutputProtoMsg { typeUrl: "/cosmos.bank.v1beta1.Output"; value: Uint8Array; @@ -74,6 +91,9 @@ export interface OutputSDKType { export interface Supply { total: Coin[]; } +export interface ReactiveSupply { + total: ComputedRef; +} export interface SupplyProtoMsg { typeUrl: "/cosmos.bank.v1beta1.Supply"; value: Uint8Array; @@ -105,6 +125,11 @@ export interface DenomUnit { /** aliases is a list of string aliases for the given denom */ aliases: string[]; } +export interface ReactiveDenomUnit { + denom: ComputedRef; + exponent: ComputedRef; + aliases: ComputedRef; +} export interface DenomUnitProtoMsg { typeUrl: "/cosmos.bank.v1beta1.DenomUnit"; value: Uint8Array; @@ -160,6 +185,16 @@ export interface Metadata { */ uriHash: string; } +export interface ReactiveMetadata { + description: ComputedRef; + denomUnits: ComputedRef; + base: ComputedRef; + display: ComputedRef; + name: ComputedRef; + symbol: ComputedRef; + uri: ComputedRef; + uriHash: ComputedRef; +} export interface MetadataProtoMsg { typeUrl: "/cosmos.bank.v1beta1.Metadata"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/bank/v1beta1/genesis.ts b/__fixtures__/v-next/outputv4/cosmos/bank/v1beta1/genesis.ts index 4aa1c8a320..a9e0d08830 100644 --- a/__fixtures__/v-next/outputv4/cosmos/bank/v1beta1/genesis.ts +++ b/__fixtures__/v-next/outputv4/cosmos/bank/v1beta1/genesis.ts @@ -3,6 +3,7 @@ import { Coin, CoinSDKType } from "../../base/v1beta1/coin.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.bank.v1beta1"; /** GenesisState defines the bank module's genesis state. */ export interface GenesisState { @@ -18,6 +19,12 @@ export interface GenesisState { /** denom_metadata defines the metadata of the differents coins. */ denomMetadata: Metadata[]; } +export interface ReactiveGenesisState { + params: ComputedRef; + balances: ComputedRef; + supply: ComputedRef; + denomMetadata: ComputedRef; +} export interface GenesisStateProtoMsg { typeUrl: "/cosmos.bank.v1beta1.GenesisState"; value: Uint8Array; @@ -39,6 +46,10 @@ export interface Balance { /** coins defines the different coins this balance holds. */ coins: Coin[]; } +export interface ReactiveBalance { + address: ComputedRef; + coins: ComputedRef; +} export interface BalanceProtoMsg { typeUrl: "/cosmos.bank.v1beta1.Balance"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/bank/v1beta1/query.rpc.Query.ts b/__fixtures__/v-next/outputv4/cosmos/bank/v1beta1/query.rpc.Query.ts index a89321c1bb..344ece499a 100644 --- a/__fixtures__/v-next/outputv4/cosmos/bank/v1beta1/query.rpc.Query.ts +++ b/__fixtures__/v-next/outputv4/cosmos/bank/v1beta1/query.rpc.Query.ts @@ -5,8 +5,11 @@ import { Rpc } from "../../../helpers.js"; import { BinaryReader } from "../../../binary.js"; import { QueryClient, createProtobufRpcClient, ProtobufRpcClient } from "@cosmjs/stargate"; import { ReactQueryParams } from "../../../react-query.js"; +import { VueQueryParams } from "../../../vue-query.js"; import { useQuery } from "@tanstack/react-query"; -import { QueryBalanceRequest, QueryBalanceRequestSDKType, QueryBalanceResponse, QueryBalanceResponseSDKType, QueryAllBalancesRequest, QueryAllBalancesRequestSDKType, QueryAllBalancesResponse, QueryAllBalancesResponseSDKType, QuerySpendableBalancesRequest, QuerySpendableBalancesRequestSDKType, QuerySpendableBalancesResponse, QuerySpendableBalancesResponseSDKType, QueryTotalSupplyRequest, QueryTotalSupplyRequestSDKType, QueryTotalSupplyResponse, QueryTotalSupplyResponseSDKType, QuerySupplyOfRequest, QuerySupplyOfRequestSDKType, QuerySupplyOfResponse, QuerySupplyOfResponseSDKType, QueryParamsRequest, QueryParamsRequestSDKType, QueryParamsResponse, QueryParamsResponseSDKType, QueryDenomMetadataRequest, QueryDenomMetadataRequestSDKType, QueryDenomMetadataResponse, QueryDenomMetadataResponseSDKType, QueryDenomsMetadataRequest, QueryDenomsMetadataRequestSDKType, QueryDenomsMetadataResponse, QueryDenomsMetadataResponseSDKType, QueryDenomOwnersRequest, QueryDenomOwnersRequestSDKType, QueryDenomOwnersResponse, QueryDenomOwnersResponseSDKType } from "./query.js"; +import { ComputedRef, computed, Ref } from "vue"; +import { useQuery } from "@tanstack/vue-query"; +import { QueryBalanceRequest, QueryBalanceRequestSDKType, QueryBalanceResponse, QueryBalanceResponseSDKType, QueryAllBalancesRequest, QueryAllBalancesRequestSDKType, QueryAllBalancesResponse, QueryAllBalancesResponseSDKType, QuerySpendableBalancesRequest, QuerySpendableBalancesRequestSDKType, QuerySpendableBalancesResponse, QuerySpendableBalancesResponseSDKType, QueryTotalSupplyRequest, QueryTotalSupplyRequestSDKType, QueryTotalSupplyResponse, QueryTotalSupplyResponseSDKType, QuerySupplyOfRequest, QuerySupplyOfRequestSDKType, QuerySupplyOfResponse, QuerySupplyOfResponseSDKType, QueryParamsRequest, QueryParamsRequestSDKType, QueryParamsResponse, QueryParamsResponseSDKType, QueryDenomMetadataRequest, QueryDenomMetadataRequestSDKType, QueryDenomMetadataResponse, QueryDenomMetadataResponseSDKType, QueryDenomsMetadataRequest, QueryDenomsMetadataRequestSDKType, QueryDenomsMetadataResponse, QueryDenomsMetadataResponseSDKType, QueryDenomOwnersRequest, QueryDenomOwnersRequestSDKType, QueryDenomOwnersResponse, QueryDenomOwnersResponseSDKType, ReactiveQueryBalanceRequest, ReactiveQueryAllBalancesRequest, ReactiveQuerySpendableBalancesRequest, ReactiveQueryTotalSupplyRequest, ReactiveQuerySupplyOfRequest, ReactiveQueryParamsRequest, ReactiveQueryDenomMetadataRequest, ReactiveQueryDenomsMetadataRequest, ReactiveQueryDenomOwnersRequest } from "./query.js"; /** Query defines the gRPC querier service. */ export interface Query { /** Balance queries the balance of a single coin for a single account. */ @@ -171,6 +174,46 @@ const getQueryService = (rpc: ProtobufRpcClient | undefined): QueryClientImpl | _queryClients.set(rpc, queryService); return queryService; }; +export interface UseBalanceQuery extends VueQueryParams { + request: ReactiveQueryBalanceRequest; +} +export interface UseAllBalancesQuery extends VueQueryParams { + request: ReactiveQueryAllBalancesRequest; +} +export interface UseSpendableBalancesQuery extends VueQueryParams { + request: ReactiveQuerySpendableBalancesRequest; +} +export interface UseTotalSupplyQuery extends VueQueryParams { + request?: ReactiveQueryTotalSupplyRequest; +} +export interface UseSupplyOfQuery extends VueQueryParams { + request: ReactiveQuerySupplyOfRequest; +} +export interface UseParamsQuery extends VueQueryParams { + request?: ReactiveQueryParamsRequest; +} +export interface UseDenomMetadataQuery extends VueQueryParams { + request: ReactiveQueryDenomMetadataRequest; +} +export interface UseDenomsMetadataQuery extends VueQueryParams { + request?: ReactiveQueryDenomsMetadataRequest; +} +export interface UseDenomOwnersQuery extends VueQueryParams { + request: ReactiveQueryDenomOwnersRequest; +} +export const useQueryService = (rpc: Ref): ComputedRef => { + const _queryClients = new WeakMap(); + return computed(() => { + if (rpc.value) { + if (_queryClients.has(rpc.value)) { + return _queryClients.get(rpc.value); + } + const queryService = new QueryClientImpl(rpc.value); + _queryClients.set(rpc.value, queryService); + return queryService; + } + }); +}; export const createRpcQueryHooks = (rpc: ProtobufRpcClient | undefined) => { const queryService = getQueryService(rpc); const useBalance = ({ @@ -277,4 +320,255 @@ export const createRpcQueryHooks = (rpc: ProtobufRpcClient | undefined) => { */ useDenomOwners }; +}; +export const createRpcQueryHooks = (rpc: Ref) => { + const queryService = useQueryService(rpc); + const useBalance = ({ + request, + options + }: UseBalanceQuery) => { + const queryKey = ["balanceQuery", queryService]; + if (request) { + Object.values(request).forEach((val: any) => { + queryKey.push(val); + }); + } + return useQuery({ + queryKey, + queryFn: () => { + if (!queryService.value) throw new Error("Query Service not initialized"); + let params = ({} as any); + if (request) { + Object.entries(request).forEach(([key, val]) => { + params[key] = val.value; + }); + } + return queryService.value.balance(params); + }, + ...options + }); + }; + const useAllBalances = ({ + request, + options + }: UseAllBalancesQuery) => { + const queryKey = ["allBalancesQuery", queryService]; + if (request) { + Object.values(request).forEach((val: any) => { + queryKey.push(val); + }); + } + return useQuery({ + queryKey, + queryFn: () => { + if (!queryService.value) throw new Error("Query Service not initialized"); + let params = ({} as any); + if (request) { + Object.entries(request).forEach(([key, val]) => { + params[key] = val.value; + }); + } + return queryService.value.allBalances(params); + }, + ...options + }); + }; + const useSpendableBalances = ({ + request, + options + }: UseSpendableBalancesQuery) => { + const queryKey = ["spendableBalancesQuery", queryService]; + if (request) { + Object.values(request).forEach((val: any) => { + queryKey.push(val); + }); + } + return useQuery({ + queryKey, + queryFn: () => { + if (!queryService.value) throw new Error("Query Service not initialized"); + let params = ({} as any); + if (request) { + Object.entries(request).forEach(([key, val]) => { + params[key] = val.value; + }); + } + return queryService.value.spendableBalances(params); + }, + ...options + }); + }; + const useTotalSupply = ({ + request, + options + }: UseTotalSupplyQuery) => { + const queryKey = ["totalSupplyQuery", queryService]; + if (request) { + Object.values(request).forEach((val: any) => { + queryKey.push(val); + }); + } + return useQuery({ + queryKey, + queryFn: () => { + if (!queryService.value) throw new Error("Query Service not initialized"); + let params = ({} as any); + if (request) { + Object.entries(request).forEach(([key, val]) => { + params[key] = val.value; + }); + } + return queryService.value.totalSupply(params); + }, + ...options + }); + }; + const useSupplyOf = ({ + request, + options + }: UseSupplyOfQuery) => { + const queryKey = ["supplyOfQuery", queryService]; + if (request) { + Object.values(request).forEach((val: any) => { + queryKey.push(val); + }); + } + return useQuery({ + queryKey, + queryFn: () => { + if (!queryService.value) throw new Error("Query Service not initialized"); + let params = ({} as any); + if (request) { + Object.entries(request).forEach(([key, val]) => { + params[key] = val.value; + }); + } + return queryService.value.supplyOf(params); + }, + ...options + }); + }; + const useParams = ({ + request, + options + }: UseParamsQuery) => { + const queryKey = ["paramsQuery", queryService]; + if (request) { + Object.values(request).forEach((val: any) => { + queryKey.push(val); + }); + } + return useQuery({ + queryKey, + queryFn: () => { + if (!queryService.value) throw new Error("Query Service not initialized"); + let params = ({} as any); + if (request) { + Object.entries(request).forEach(([key, val]) => { + params[key] = val.value; + }); + } + return queryService.value.params(params); + }, + ...options + }); + }; + const useDenomMetadata = ({ + request, + options + }: UseDenomMetadataQuery) => { + const queryKey = ["denomMetadataQuery", queryService]; + if (request) { + Object.values(request).forEach((val: any) => { + queryKey.push(val); + }); + } + return useQuery({ + queryKey, + queryFn: () => { + if (!queryService.value) throw new Error("Query Service not initialized"); + let params = ({} as any); + if (request) { + Object.entries(request).forEach(([key, val]) => { + params[key] = val.value; + }); + } + return queryService.value.denomMetadata(params); + }, + ...options + }); + }; + const useDenomsMetadata = ({ + request, + options + }: UseDenomsMetadataQuery) => { + const queryKey = ["denomsMetadataQuery", queryService]; + if (request) { + Object.values(request).forEach((val: any) => { + queryKey.push(val); + }); + } + return useQuery({ + queryKey, + queryFn: () => { + if (!queryService.value) throw new Error("Query Service not initialized"); + let params = ({} as any); + if (request) { + Object.entries(request).forEach(([key, val]) => { + params[key] = val.value; + }); + } + return queryService.value.denomsMetadata(params); + }, + ...options + }); + }; + const useDenomOwners = ({ + request, + options + }: UseDenomOwnersQuery) => { + const queryKey = ["denomOwnersQuery", queryService]; + if (request) { + Object.values(request).forEach((val: any) => { + queryKey.push(val); + }); + } + return useQuery({ + queryKey, + queryFn: () => { + if (!queryService.value) throw new Error("Query Service not initialized"); + let params = ({} as any); + if (request) { + Object.entries(request).forEach(([key, val]) => { + params[key] = val.value; + }); + } + return queryService.value.denomOwners(params); + }, + ...options + }); + }; + return { + /** Balance queries the balance of a single coin for a single account. */useBalance, + /** AllBalances queries the balance of all coins for a single account. */useAllBalances, + /** + * SpendableBalances queries the spenable balance of all coins for a single + * account. + */ + useSpendableBalances, + /** TotalSupply queries the total supply of all coins. */useTotalSupply, + /** SupplyOf queries the supply of a single coin. */useSupplyOf, + /** Params queries the parameters of x/bank module. */useParams, + /** DenomsMetadata queries the client metadata of a given coin denomination. */useDenomMetadata, + /** + * DenomsMetadata queries the client metadata for all registered coin + * denominations. + */ + useDenomsMetadata, + /** + * DenomOwners queries for all account addresses that own a particular token + * denomination. + */ + useDenomOwners + }; }; \ No newline at end of file diff --git a/__fixtures__/v-next/outputv4/cosmos/bank/v1beta1/query.ts b/__fixtures__/v-next/outputv4/cosmos/bank/v1beta1/query.ts index 5245f7ff3a..397cbdb23b 100644 --- a/__fixtures__/v-next/outputv4/cosmos/bank/v1beta1/query.ts +++ b/__fixtures__/v-next/outputv4/cosmos/bank/v1beta1/query.ts @@ -4,6 +4,7 @@ import { Params, ParamsSDKType, Metadata, MetadataSDKType } from "./bank.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.bank.v1beta1"; /** QueryBalanceRequest is the request type for the Query/Balance RPC method. */ export interface QueryBalanceRequest { @@ -12,6 +13,10 @@ export interface QueryBalanceRequest { /** denom is the coin denom to query balances for. */ denom: string; } +export interface ReactiveQueryBalanceRequest { + address: ComputedRef; + denom: ComputedRef; +} export interface QueryBalanceRequestProtoMsg { typeUrl: "/cosmos.bank.v1beta1.QueryBalanceRequest"; value: Uint8Array; @@ -26,6 +31,9 @@ export interface QueryBalanceResponse { /** balance is the balance of the coin. */ balance?: Coin; } +export interface ReactiveQueryBalanceResponse { + balance?: ComputedRef; +} export interface QueryBalanceResponseProtoMsg { typeUrl: "/cosmos.bank.v1beta1.QueryBalanceResponse"; value: Uint8Array; @@ -41,6 +49,10 @@ export interface QueryAllBalancesRequest { /** pagination defines an optional pagination for the request. */ pagination?: PageRequest; } +export interface ReactiveQueryAllBalancesRequest { + address: ComputedRef; + pagination?: ComputedRef; +} export interface QueryAllBalancesRequestProtoMsg { typeUrl: "/cosmos.bank.v1beta1.QueryAllBalancesRequest"; value: Uint8Array; @@ -60,6 +72,10 @@ export interface QueryAllBalancesResponse { /** pagination defines the pagination in the response. */ pagination?: PageResponse; } +export interface ReactiveQueryAllBalancesResponse { + balances: ComputedRef; + pagination?: ComputedRef; +} export interface QueryAllBalancesResponseProtoMsg { typeUrl: "/cosmos.bank.v1beta1.QueryAllBalancesResponse"; value: Uint8Array; @@ -82,6 +98,10 @@ export interface QuerySpendableBalancesRequest { /** pagination defines an optional pagination for the request. */ pagination?: PageRequest; } +export interface ReactiveQuerySpendableBalancesRequest { + address: ComputedRef; + pagination?: ComputedRef; +} export interface QuerySpendableBalancesRequestProtoMsg { typeUrl: "/cosmos.bank.v1beta1.QuerySpendableBalancesRequest"; value: Uint8Array; @@ -104,6 +124,10 @@ export interface QuerySpendableBalancesResponse { /** pagination defines the pagination in the response. */ pagination?: PageResponse; } +export interface ReactiveQuerySpendableBalancesResponse { + balances: ComputedRef; + pagination?: ComputedRef; +} export interface QuerySpendableBalancesResponseProtoMsg { typeUrl: "/cosmos.bank.v1beta1.QuerySpendableBalancesResponse"; value: Uint8Array; @@ -128,6 +152,9 @@ export interface QueryTotalSupplyRequest { */ pagination?: PageRequest; } +export interface ReactiveQueryTotalSupplyRequest { + pagination?: ComputedRef; +} export interface QueryTotalSupplyRequestProtoMsg { typeUrl: "/cosmos.bank.v1beta1.QueryTotalSupplyRequest"; value: Uint8Array; @@ -153,6 +180,10 @@ export interface QueryTotalSupplyResponse { */ pagination?: PageResponse; } +export interface ReactiveQueryTotalSupplyResponse { + supply: ComputedRef; + pagination?: ComputedRef; +} export interface QueryTotalSupplyResponseProtoMsg { typeUrl: "/cosmos.bank.v1beta1.QueryTotalSupplyResponse"; value: Uint8Array; @@ -170,6 +201,9 @@ export interface QuerySupplyOfRequest { /** denom is the coin denom to query balances for. */ denom: string; } +export interface ReactiveQuerySupplyOfRequest { + denom: ComputedRef; +} export interface QuerySupplyOfRequestProtoMsg { typeUrl: "/cosmos.bank.v1beta1.QuerySupplyOfRequest"; value: Uint8Array; @@ -183,6 +217,9 @@ export interface QuerySupplyOfResponse { /** amount is the supply of the coin. */ amount: Coin; } +export interface ReactiveQuerySupplyOfResponse { + amount: ComputedRef; +} export interface QuerySupplyOfResponseProtoMsg { typeUrl: "/cosmos.bank.v1beta1.QuerySupplyOfResponse"; value: Uint8Array; @@ -193,6 +230,7 @@ export interface QuerySupplyOfResponseSDKType { } /** QueryParamsRequest defines the request type for querying x/bank parameters. */ export interface QueryParamsRequest {} +export interface ReactiveQueryParamsRequest {} export interface QueryParamsRequestProtoMsg { typeUrl: "/cosmos.bank.v1beta1.QueryParamsRequest"; value: Uint8Array; @@ -203,6 +241,9 @@ export interface QueryParamsRequestSDKType {} export interface QueryParamsResponse { params: Params; } +export interface ReactiveQueryParamsResponse { + params: ComputedRef; +} export interface QueryParamsResponseProtoMsg { typeUrl: "/cosmos.bank.v1beta1.QueryParamsResponse"; value: Uint8Array; @@ -216,6 +257,9 @@ export interface QueryDenomsMetadataRequest { /** pagination defines an optional pagination for the request. */ pagination?: PageRequest; } +export interface ReactiveQueryDenomsMetadataRequest { + pagination?: ComputedRef; +} export interface QueryDenomsMetadataRequestProtoMsg { typeUrl: "/cosmos.bank.v1beta1.QueryDenomsMetadataRequest"; value: Uint8Array; @@ -234,6 +278,10 @@ export interface QueryDenomsMetadataResponse { /** pagination defines the pagination in the response. */ pagination?: PageResponse; } +export interface ReactiveQueryDenomsMetadataResponse { + metadatas: ComputedRef; + pagination?: ComputedRef; +} export interface QueryDenomsMetadataResponseProtoMsg { typeUrl: "/cosmos.bank.v1beta1.QueryDenomsMetadataResponse"; value: Uint8Array; @@ -251,6 +299,9 @@ export interface QueryDenomMetadataRequest { /** denom is the coin denom to query the metadata for. */ denom: string; } +export interface ReactiveQueryDenomMetadataRequest { + denom: ComputedRef; +} export interface QueryDenomMetadataRequestProtoMsg { typeUrl: "/cosmos.bank.v1beta1.QueryDenomMetadataRequest"; value: Uint8Array; @@ -267,6 +318,9 @@ export interface QueryDenomMetadataResponse { /** metadata describes and provides all the client information for the requested token. */ metadata: Metadata; } +export interface ReactiveQueryDenomMetadataResponse { + metadata: ComputedRef; +} export interface QueryDenomMetadataResponseProtoMsg { typeUrl: "/cosmos.bank.v1beta1.QueryDenomMetadataResponse"; value: Uint8Array; @@ -289,6 +343,10 @@ export interface QueryDenomOwnersRequest { /** pagination defines an optional pagination for the request. */ pagination?: PageRequest; } +export interface ReactiveQueryDenomOwnersRequest { + denom: ComputedRef; + pagination?: ComputedRef; +} export interface QueryDenomOwnersRequestProtoMsg { typeUrl: "/cosmos.bank.v1beta1.QueryDenomOwnersRequest"; value: Uint8Array; @@ -313,6 +371,10 @@ export interface DenomOwner { /** balance is the balance of the denominated coin for an account. */ balance: Coin; } +export interface ReactiveDenomOwner { + address: ComputedRef; + balance: ComputedRef; +} export interface DenomOwnerProtoMsg { typeUrl: "/cosmos.bank.v1beta1.DenomOwner"; value: Uint8Array; @@ -332,6 +394,10 @@ export interface QueryDenomOwnersResponse { /** pagination defines the pagination in the response. */ pagination?: PageResponse; } +export interface ReactiveQueryDenomOwnersResponse { + denomOwners: ComputedRef; + pagination?: ComputedRef; +} export interface QueryDenomOwnersResponseProtoMsg { typeUrl: "/cosmos.bank.v1beta1.QueryDenomOwnersResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/bank/v1beta1/tx.ts b/__fixtures__/v-next/outputv4/cosmos/bank/v1beta1/tx.ts index 56a4850e78..a59400b270 100644 --- a/__fixtures__/v-next/outputv4/cosmos/bank/v1beta1/tx.ts +++ b/__fixtures__/v-next/outputv4/cosmos/bank/v1beta1/tx.ts @@ -3,6 +3,7 @@ import { Input, InputSDKType, Output, OutputSDKType } from "./bank.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.bank.v1beta1"; /** MsgSend represents a message to send coins from one account to another. */ export interface MsgSend { @@ -10,6 +11,11 @@ export interface MsgSend { toAddress: string; amount: Coin[]; } +export interface ReactiveMsgSend { + fromAddress: ComputedRef; + toAddress: ComputedRef; + amount: ComputedRef; +} export interface MsgSendProtoMsg { typeUrl: "/cosmos.bank.v1beta1.MsgSend"; value: Uint8Array; @@ -22,6 +28,7 @@ export interface MsgSendSDKType { } /** MsgSendResponse defines the Msg/Send response type. */ export interface MsgSendResponse {} +export interface ReactiveMsgSendResponse {} export interface MsgSendResponseProtoMsg { typeUrl: "/cosmos.bank.v1beta1.MsgSendResponse"; value: Uint8Array; @@ -33,6 +40,10 @@ export interface MsgMultiSend { inputs: Input[]; outputs: Output[]; } +export interface ReactiveMsgMultiSend { + inputs: ComputedRef; + outputs: ComputedRef; +} export interface MsgMultiSendProtoMsg { typeUrl: "/cosmos.bank.v1beta1.MsgMultiSend"; value: Uint8Array; @@ -44,6 +55,7 @@ export interface MsgMultiSendSDKType { } /** MsgMultiSendResponse defines the Msg/MultiSend response type. */ export interface MsgMultiSendResponse {} +export interface ReactiveMsgMultiSendResponse {} export interface MsgMultiSendResponseProtoMsg { typeUrl: "/cosmos.bank.v1beta1.MsgMultiSendResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/base/abci/v1beta1/abci.ts b/__fixtures__/v-next/outputv4/cosmos/base/abci/v1beta1/abci.ts index 6386533ede..9f42cb9e35 100644 --- a/__fixtures__/v-next/outputv4/cosmos/base/abci/v1beta1/abci.ts +++ b/__fixtures__/v-next/outputv4/cosmos/base/abci/v1beta1/abci.ts @@ -3,6 +3,7 @@ import { Event, EventSDKType } from "../../../../tendermint/abci/types.js"; import { BinaryReader, BinaryWriter } from "../../../../binary.js"; import { isSet, DeepPartial, bytesFromBase64, base64FromBytes } from "../../../../helpers.js"; import { JsonSafe } from "../../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.base.abci.v1beta1"; /** * TxResponse defines a structure containing relevant tx data and metadata. The @@ -50,6 +51,21 @@ export interface TxResponse { */ events: Event[]; } +export interface ReactiveTxResponse { + height: ComputedRef; + txhash: ComputedRef; + codespace: ComputedRef; + code: ComputedRef; + data: ComputedRef; + rawLog: ComputedRef; + logs: ComputedRef; + info: ComputedRef; + gasWanted: ComputedRef; + gasUsed: ComputedRef; + tx?: ComputedRef; + timestamp: ComputedRef; + events: ComputedRef; +} export interface TxResponseProtoMsg { typeUrl: "/cosmos.base.abci.v1beta1.TxResponse"; value: Uint8Array; @@ -83,6 +99,11 @@ export interface ABCIMessageLog { */ events: StringEvent[]; } +export interface ReactiveABCIMessageLog { + msgIndex: ComputedRef; + log: ComputedRef; + events: ComputedRef; +} export interface ABCIMessageLogProtoMsg { typeUrl: "/cosmos.base.abci.v1beta1.ABCIMessageLog"; value: Uint8Array; @@ -101,6 +122,10 @@ export interface StringEvent { type: string; attributes: Attribute[]; } +export interface ReactiveStringEvent { + type: ComputedRef; + attributes: ComputedRef; +} export interface StringEventProtoMsg { typeUrl: "/cosmos.base.abci.v1beta1.StringEvent"; value: Uint8Array; @@ -121,6 +146,10 @@ export interface Attribute { key: string; value: string; } +export interface ReactiveAttribute { + key: ComputedRef; + value: ComputedRef; +} export interface AttributeProtoMsg { typeUrl: "/cosmos.base.abci.v1beta1.Attribute"; value: Uint8Array; @@ -140,6 +169,10 @@ export interface GasInfo { /** GasUsed is the amount of gas actually consumed. */ gasUsed: bigint; } +export interface ReactiveGasInfo { + gasWanted: ComputedRef; + gasUsed: ComputedRef; +} export interface GasInfoProtoMsg { typeUrl: "/cosmos.base.abci.v1beta1.GasInfo"; value: Uint8Array; @@ -173,6 +206,12 @@ export interface Result { */ msgResponses: Any[]; } +export interface ReactiveResult { + data: ComputedRef; + log: ComputedRef; + events: ComputedRef; + msgResponses: ComputedRef; +} export interface ResultProtoMsg { typeUrl: "/cosmos.base.abci.v1beta1.Result"; value: Uint8Array; @@ -193,6 +232,10 @@ export interface SimulationResponse { gasInfo: GasInfo; result?: Result; } +export interface ReactiveSimulationResponse { + gasInfo: ComputedRef; + result?: ComputedRef; +} export interface SimulationResponseProtoMsg { typeUrl: "/cosmos.base.abci.v1beta1.SimulationResponse"; value: Uint8Array; @@ -214,6 +257,10 @@ export interface MsgData { msgType: string; data: Uint8Array; } +export interface ReactiveMsgData { + msgType: ComputedRef; + data: ComputedRef; +} export interface MsgDataProtoMsg { typeUrl: "/cosmos.base.abci.v1beta1.MsgData"; value: Uint8Array; @@ -242,6 +289,10 @@ export interface TxMsgData { */ msgResponses: Any[]; } +export interface ReactiveTxMsgData { + data: ComputedRef; + msgResponses: ComputedRef; +} export interface TxMsgDataProtoMsg { typeUrl: "/cosmos.base.abci.v1beta1.TxMsgData"; value: Uint8Array; @@ -270,6 +321,14 @@ export interface SearchTxsResult { /** List of txs in current page */ txs: TxResponse[]; } +export interface ReactiveSearchTxsResult { + totalCount: ComputedRef; + count: ComputedRef; + pageNumber: ComputedRef; + pageTotal: ComputedRef; + limit: ComputedRef; + txs: ComputedRef; +} export interface SearchTxsResultProtoMsg { typeUrl: "/cosmos.base.abci.v1beta1.SearchTxsResult"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/base/kv/v1beta1/kv.ts b/__fixtures__/v-next/outputv4/cosmos/base/kv/v1beta1/kv.ts index 35623ceee7..0cf264fd0d 100644 --- a/__fixtures__/v-next/outputv4/cosmos/base/kv/v1beta1/kv.ts +++ b/__fixtures__/v-next/outputv4/cosmos/base/kv/v1beta1/kv.ts @@ -1,11 +1,15 @@ import { BinaryReader, BinaryWriter } from "../../../../binary.js"; import { JsonSafe } from "../../../../json-safe.js"; import { DeepPartial, isSet, bytesFromBase64, base64FromBytes } from "../../../../helpers.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.base.kv.v1beta1"; /** Pairs defines a repeated slice of Pair objects. */ export interface Pairs { pairs: Pair[]; } +export interface ReactivePairs { + pairs: ComputedRef; +} export interface PairsProtoMsg { typeUrl: "/cosmos.base.kv.v1beta1.Pairs"; value: Uint8Array; @@ -19,6 +23,10 @@ export interface Pair { key: Uint8Array; value: Uint8Array; } +export interface ReactivePair { + key: ComputedRef; + value: ComputedRef; +} export interface PairProtoMsg { typeUrl: "/cosmos.base.kv.v1beta1.Pair"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/base/query/v1beta1/pagination.ts b/__fixtures__/v-next/outputv4/cosmos/base/query/v1beta1/pagination.ts index 9eae3d6ce2..4401b71003 100644 --- a/__fixtures__/v-next/outputv4/cosmos/base/query/v1beta1/pagination.ts +++ b/__fixtures__/v-next/outputv4/cosmos/base/query/v1beta1/pagination.ts @@ -1,6 +1,7 @@ import { BinaryReader, BinaryWriter } from "../../../../binary.js"; import { isSet, bytesFromBase64, base64FromBytes, DeepPartial } from "../../../../helpers.js"; import { JsonSafe } from "../../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.base.query.v1beta1"; /** * PageRequest is to be embedded in gRPC request messages for efficient @@ -43,6 +44,13 @@ export interface PageRequest { */ reverse: boolean; } +export interface ReactivePageRequest { + key: ComputedRef; + offset: ComputedRef; + limit: ComputedRef; + countTotal: ComputedRef; + reverse: ComputedRef; +} export interface PageRequestProtoMsg { typeUrl: "/cosmos.base.query.v1beta1.PageRequest"; value: Uint8Array; @@ -85,6 +93,10 @@ export interface PageResponse { */ total: bigint; } +export interface ReactivePageResponse { + nextKey: ComputedRef; + total: ComputedRef; +} export interface PageResponseProtoMsg { typeUrl: "/cosmos.base.query.v1beta1.PageResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/base/reflection/v1beta1/reflection.ts b/__fixtures__/v-next/outputv4/cosmos/base/reflection/v1beta1/reflection.ts index c5ddf87e1d..b4fd662fcf 100644 --- a/__fixtures__/v-next/outputv4/cosmos/base/reflection/v1beta1/reflection.ts +++ b/__fixtures__/v-next/outputv4/cosmos/base/reflection/v1beta1/reflection.ts @@ -1,9 +1,11 @@ import { BinaryReader, BinaryWriter } from "../../../../binary.js"; import { JsonSafe } from "../../../../json-safe.js"; import { DeepPartial, isSet } from "../../../../helpers.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.base.reflection.v1beta1"; /** ListAllInterfacesRequest is the request type of the ListAllInterfaces RPC. */ export interface ListAllInterfacesRequest {} +export interface ReactiveListAllInterfacesRequest {} export interface ListAllInterfacesRequestProtoMsg { typeUrl: "/cosmos.base.reflection.v1beta1.ListAllInterfacesRequest"; value: Uint8Array; @@ -15,6 +17,9 @@ export interface ListAllInterfacesResponse { /** interface_names is an array of all the registered interfaces. */ interfaceNames: string[]; } +export interface ReactiveListAllInterfacesResponse { + interfaceNames: ComputedRef; +} export interface ListAllInterfacesResponseProtoMsg { typeUrl: "/cosmos.base.reflection.v1beta1.ListAllInterfacesResponse"; value: Uint8Array; @@ -31,6 +36,9 @@ export interface ListImplementationsRequest { /** interface_name defines the interface to query the implementations for. */ interfaceName: string; } +export interface ReactiveListImplementationsRequest { + interfaceName: ComputedRef; +} export interface ListImplementationsRequestProtoMsg { typeUrl: "/cosmos.base.reflection.v1beta1.ListImplementationsRequest"; value: Uint8Array; @@ -49,6 +57,9 @@ export interface ListImplementationsRequestSDKType { export interface ListImplementationsResponse { implementationMessageNames: string[]; } +export interface ReactiveListImplementationsResponse { + implementationMessageNames: ComputedRef; +} export interface ListImplementationsResponseProtoMsg { typeUrl: "/cosmos.base.reflection.v1beta1.ListImplementationsResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/base/reflection/v2alpha1/reflection.ts b/__fixtures__/v-next/outputv4/cosmos/base/reflection/v2alpha1/reflection.ts index 715868c0a0..1f3080b584 100644 --- a/__fixtures__/v-next/outputv4/cosmos/base/reflection/v2alpha1/reflection.ts +++ b/__fixtures__/v-next/outputv4/cosmos/base/reflection/v2alpha1/reflection.ts @@ -1,6 +1,7 @@ import { BinaryReader, BinaryWriter } from "../../../../binary.js"; import { isSet, DeepPartial } from "../../../../helpers.js"; import { JsonSafe } from "../../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.base.reflection.v2alpha1"; /** AppDescriptor describes a cosmos-sdk based application */ export interface AppDescriptor { @@ -20,6 +21,14 @@ export interface AppDescriptor { /** tx provides metadata information regarding how to send transactions to the given application */ tx?: TxDescriptor; } +export interface ReactiveAppDescriptor { + authn?: ComputedRef; + chain?: ComputedRef; + codec?: ComputedRef; + configuration?: ComputedRef; + queryServices?: ComputedRef; + tx?: ComputedRef; +} export interface AppDescriptorProtoMsg { typeUrl: "/cosmos.base.reflection.v2alpha1.AppDescriptor"; value: Uint8Array; @@ -44,6 +53,10 @@ export interface TxDescriptor { /** msgs lists the accepted application messages (sdk.Msg) */ msgs: MsgDescriptor[]; } +export interface ReactiveTxDescriptor { + fullname: ComputedRef; + msgs: ComputedRef; +} export interface TxDescriptorProtoMsg { typeUrl: "/cosmos.base.reflection.v2alpha1.TxDescriptor"; value: Uint8Array; @@ -61,6 +74,9 @@ export interface AuthnDescriptor { /** sign_modes defines the supported signature algorithm */ signModes: SigningModeDescriptor[]; } +export interface ReactiveAuthnDescriptor { + signModes: ComputedRef; +} export interface AuthnDescriptorProtoMsg { typeUrl: "/cosmos.base.reflection.v2alpha1.AuthnDescriptor"; value: Uint8Array; @@ -89,6 +105,11 @@ export interface SigningModeDescriptor { */ authnInfoProviderMethodFullname: string; } +export interface ReactiveSigningModeDescriptor { + name: ComputedRef; + number: ComputedRef; + authnInfoProviderMethodFullname: ComputedRef; +} export interface SigningModeDescriptorProtoMsg { typeUrl: "/cosmos.base.reflection.v2alpha1.SigningModeDescriptor"; value: Uint8Array; @@ -109,6 +130,9 @@ export interface ChainDescriptor { /** id is the chain id */ id: string; } +export interface ReactiveChainDescriptor { + id: ComputedRef; +} export interface ChainDescriptorProtoMsg { typeUrl: "/cosmos.base.reflection.v2alpha1.ChainDescriptor"; value: Uint8Array; @@ -122,6 +146,9 @@ export interface CodecDescriptor { /** interfaces is a list of the registerted interfaces descriptors */ interfaces: InterfaceDescriptor[]; } +export interface ReactiveCodecDescriptor { + interfaces: ComputedRef; +} export interface CodecDescriptorProtoMsg { typeUrl: "/cosmos.base.reflection.v2alpha1.CodecDescriptor"; value: Uint8Array; @@ -142,6 +169,11 @@ export interface InterfaceDescriptor { /** interface_implementers is a list of the descriptors of the interface implementers */ interfaceImplementers: InterfaceImplementerDescriptor[]; } +export interface ReactiveInterfaceDescriptor { + fullname: ComputedRef; + interfaceAcceptingMessages: ComputedRef; + interfaceImplementers: ComputedRef; +} export interface InterfaceDescriptorProtoMsg { typeUrl: "/cosmos.base.reflection.v2alpha1.InterfaceDescriptor"; value: Uint8Array; @@ -164,6 +196,10 @@ export interface InterfaceImplementerDescriptor { */ typeUrl: string; } +export interface ReactiveInterfaceImplementerDescriptor { + fullname: ComputedRef; + typeUrl: ComputedRef; +} export interface InterfaceImplementerDescriptorProtoMsg { typeUrl: "/cosmos.base.reflection.v2alpha1.InterfaceImplementerDescriptor"; value: Uint8Array; @@ -187,6 +223,10 @@ export interface InterfaceAcceptingMessageDescriptor { */ fieldDescriptorNames: string[]; } +export interface ReactiveInterfaceAcceptingMessageDescriptor { + fullname: ComputedRef; + fieldDescriptorNames: ComputedRef; +} export interface InterfaceAcceptingMessageDescriptorProtoMsg { typeUrl: "/cosmos.base.reflection.v2alpha1.InterfaceAcceptingMessageDescriptor"; value: Uint8Array; @@ -204,6 +244,9 @@ export interface ConfigurationDescriptor { /** bech32_account_address_prefix is the account address prefix */ bech32AccountAddressPrefix: string; } +export interface ReactiveConfigurationDescriptor { + bech32AccountAddressPrefix: ComputedRef; +} export interface ConfigurationDescriptorProtoMsg { typeUrl: "/cosmos.base.reflection.v2alpha1.ConfigurationDescriptor"; value: Uint8Array; @@ -217,6 +260,9 @@ export interface MsgDescriptor { /** msg_type_url contains the TypeURL of a sdk.Msg. */ msgTypeUrl: string; } +export interface ReactiveMsgDescriptor { + msgTypeUrl: ComputedRef; +} export interface MsgDescriptorProtoMsg { typeUrl: "/cosmos.base.reflection.v2alpha1.MsgDescriptor"; value: Uint8Array; @@ -227,6 +273,7 @@ export interface MsgDescriptorSDKType { } /** GetAuthnDescriptorRequest is the request used for the GetAuthnDescriptor RPC */ export interface GetAuthnDescriptorRequest {} +export interface ReactiveGetAuthnDescriptorRequest {} export interface GetAuthnDescriptorRequestProtoMsg { typeUrl: "/cosmos.base.reflection.v2alpha1.GetAuthnDescriptorRequest"; value: Uint8Array; @@ -238,6 +285,9 @@ export interface GetAuthnDescriptorResponse { /** authn describes how to authenticate to the application when sending transactions */ authn?: AuthnDescriptor; } +export interface ReactiveGetAuthnDescriptorResponse { + authn?: ComputedRef; +} export interface GetAuthnDescriptorResponseProtoMsg { typeUrl: "/cosmos.base.reflection.v2alpha1.GetAuthnDescriptorResponse"; value: Uint8Array; @@ -248,6 +298,7 @@ export interface GetAuthnDescriptorResponseSDKType { } /** GetChainDescriptorRequest is the request used for the GetChainDescriptor RPC */ export interface GetChainDescriptorRequest {} +export interface ReactiveGetChainDescriptorRequest {} export interface GetChainDescriptorRequestProtoMsg { typeUrl: "/cosmos.base.reflection.v2alpha1.GetChainDescriptorRequest"; value: Uint8Array; @@ -259,6 +310,9 @@ export interface GetChainDescriptorResponse { /** chain describes application chain information */ chain?: ChainDescriptor; } +export interface ReactiveGetChainDescriptorResponse { + chain?: ComputedRef; +} export interface GetChainDescriptorResponseProtoMsg { typeUrl: "/cosmos.base.reflection.v2alpha1.GetChainDescriptorResponse"; value: Uint8Array; @@ -269,6 +323,7 @@ export interface GetChainDescriptorResponseSDKType { } /** GetCodecDescriptorRequest is the request used for the GetCodecDescriptor RPC */ export interface GetCodecDescriptorRequest {} +export interface ReactiveGetCodecDescriptorRequest {} export interface GetCodecDescriptorRequestProtoMsg { typeUrl: "/cosmos.base.reflection.v2alpha1.GetCodecDescriptorRequest"; value: Uint8Array; @@ -280,6 +335,9 @@ export interface GetCodecDescriptorResponse { /** codec describes the application codec such as registered interfaces and implementations */ codec?: CodecDescriptor; } +export interface ReactiveGetCodecDescriptorResponse { + codec?: ComputedRef; +} export interface GetCodecDescriptorResponseProtoMsg { typeUrl: "/cosmos.base.reflection.v2alpha1.GetCodecDescriptorResponse"; value: Uint8Array; @@ -290,6 +348,7 @@ export interface GetCodecDescriptorResponseSDKType { } /** GetConfigurationDescriptorRequest is the request used for the GetConfigurationDescriptor RPC */ export interface GetConfigurationDescriptorRequest {} +export interface ReactiveGetConfigurationDescriptorRequest {} export interface GetConfigurationDescriptorRequestProtoMsg { typeUrl: "/cosmos.base.reflection.v2alpha1.GetConfigurationDescriptorRequest"; value: Uint8Array; @@ -301,6 +360,9 @@ export interface GetConfigurationDescriptorResponse { /** config describes the application's sdk.Config */ config?: ConfigurationDescriptor; } +export interface ReactiveGetConfigurationDescriptorResponse { + config?: ComputedRef; +} export interface GetConfigurationDescriptorResponseProtoMsg { typeUrl: "/cosmos.base.reflection.v2alpha1.GetConfigurationDescriptorResponse"; value: Uint8Array; @@ -311,6 +373,7 @@ export interface GetConfigurationDescriptorResponseSDKType { } /** GetQueryServicesDescriptorRequest is the request used for the GetQueryServicesDescriptor RPC */ export interface GetQueryServicesDescriptorRequest {} +export interface ReactiveGetQueryServicesDescriptorRequest {} export interface GetQueryServicesDescriptorRequestProtoMsg { typeUrl: "/cosmos.base.reflection.v2alpha1.GetQueryServicesDescriptorRequest"; value: Uint8Array; @@ -322,6 +385,9 @@ export interface GetQueryServicesDescriptorResponse { /** queries provides information on the available queryable services */ queries?: QueryServicesDescriptor; } +export interface ReactiveGetQueryServicesDescriptorResponse { + queries?: ComputedRef; +} export interface GetQueryServicesDescriptorResponseProtoMsg { typeUrl: "/cosmos.base.reflection.v2alpha1.GetQueryServicesDescriptorResponse"; value: Uint8Array; @@ -332,6 +398,7 @@ export interface GetQueryServicesDescriptorResponseSDKType { } /** GetTxDescriptorRequest is the request used for the GetTxDescriptor RPC */ export interface GetTxDescriptorRequest {} +export interface ReactiveGetTxDescriptorRequest {} export interface GetTxDescriptorRequestProtoMsg { typeUrl: "/cosmos.base.reflection.v2alpha1.GetTxDescriptorRequest"; value: Uint8Array; @@ -346,6 +413,9 @@ export interface GetTxDescriptorResponse { */ tx?: TxDescriptor; } +export interface ReactiveGetTxDescriptorResponse { + tx?: ComputedRef; +} export interface GetTxDescriptorResponseProtoMsg { typeUrl: "/cosmos.base.reflection.v2alpha1.GetTxDescriptorResponse"; value: Uint8Array; @@ -359,6 +429,9 @@ export interface QueryServicesDescriptor { /** query_services is a list of cosmos-sdk QueryServiceDescriptor */ queryServices: QueryServiceDescriptor[]; } +export interface ReactiveQueryServicesDescriptor { + queryServices: ComputedRef; +} export interface QueryServicesDescriptorProtoMsg { typeUrl: "/cosmos.base.reflection.v2alpha1.QueryServicesDescriptor"; value: Uint8Array; @@ -376,6 +449,11 @@ export interface QueryServiceDescriptor { /** methods provides a list of query service methods */ methods: QueryMethodDescriptor[]; } +export interface ReactiveQueryServiceDescriptor { + fullname: ComputedRef; + isModule: ComputedRef; + methods: ComputedRef; +} export interface QueryServiceDescriptorProtoMsg { typeUrl: "/cosmos.base.reflection.v2alpha1.QueryServiceDescriptor"; value: Uint8Array; @@ -400,6 +478,10 @@ export interface QueryMethodDescriptor { */ fullQueryPath: string; } +export interface ReactiveQueryMethodDescriptor { + name: ComputedRef; + fullQueryPath: ComputedRef; +} export interface QueryMethodDescriptorProtoMsg { typeUrl: "/cosmos.base.reflection.v2alpha1.QueryMethodDescriptor"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/base/snapshots/v1beta1/snapshot.ts b/__fixtures__/v-next/outputv4/cosmos/base/snapshots/v1beta1/snapshot.ts index 3cfc54bea2..9f833fa64a 100644 --- a/__fixtures__/v-next/outputv4/cosmos/base/snapshots/v1beta1/snapshot.ts +++ b/__fixtures__/v-next/outputv4/cosmos/base/snapshots/v1beta1/snapshot.ts @@ -1,6 +1,7 @@ import { BinaryReader, BinaryWriter } from "../../../../binary.js"; import { isSet, bytesFromBase64, base64FromBytes, DeepPartial } from "../../../../helpers.js"; import { JsonSafe } from "../../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.base.snapshots.v1beta1"; /** Snapshot contains Tendermint state sync snapshot info. */ export interface Snapshot { @@ -10,6 +11,13 @@ export interface Snapshot { hash: Uint8Array; metadata: Metadata; } +export interface ReactiveSnapshot { + height: ComputedRef; + format: ComputedRef; + chunks: ComputedRef; + hash: ComputedRef; + metadata: ComputedRef; +} export interface SnapshotProtoMsg { typeUrl: "/cosmos.base.snapshots.v1beta1.Snapshot"; value: Uint8Array; @@ -27,6 +35,9 @@ export interface Metadata { /** SHA-256 chunk hashes */ chunkHashes: Uint8Array[]; } +export interface ReactiveMetadata { + chunkHashes: ComputedRef; +} export interface MetadataProtoMsg { typeUrl: "/cosmos.base.snapshots.v1beta1.Metadata"; value: Uint8Array; @@ -44,6 +55,14 @@ export interface SnapshotItem { kv?: SnapshotKVItem; schema?: SnapshotSchema; } +export interface ReactiveSnapshotItem { + store?: ComputedRef; + iavl?: ComputedRef; + extension?: ComputedRef; + extensionPayload?: ComputedRef; + kv?: ComputedRef; + schema?: ComputedRef; +} export interface SnapshotItemProtoMsg { typeUrl: "/cosmos.base.snapshots.v1beta1.SnapshotItem"; value: Uint8Array; @@ -61,6 +80,9 @@ export interface SnapshotItemSDKType { export interface SnapshotStoreItem { name: string; } +export interface ReactiveSnapshotStoreItem { + name: ComputedRef; +} export interface SnapshotStoreItemProtoMsg { typeUrl: "/cosmos.base.snapshots.v1beta1.SnapshotStoreItem"; value: Uint8Array; @@ -78,6 +100,12 @@ export interface SnapshotIAVLItem { /** height is depth of the tree. */ height: number; } +export interface ReactiveSnapshotIAVLItem { + key: ComputedRef; + value: ComputedRef; + version: ComputedRef; + height: ComputedRef; +} export interface SnapshotIAVLItemProtoMsg { typeUrl: "/cosmos.base.snapshots.v1beta1.SnapshotIAVLItem"; value: Uint8Array; @@ -94,6 +122,10 @@ export interface SnapshotExtensionMeta { name: string; format: number; } +export interface ReactiveSnapshotExtensionMeta { + name: ComputedRef; + format: ComputedRef; +} export interface SnapshotExtensionMetaProtoMsg { typeUrl: "/cosmos.base.snapshots.v1beta1.SnapshotExtensionMeta"; value: Uint8Array; @@ -107,6 +139,9 @@ export interface SnapshotExtensionMetaSDKType { export interface SnapshotExtensionPayload { payload: Uint8Array; } +export interface ReactiveSnapshotExtensionPayload { + payload: ComputedRef; +} export interface SnapshotExtensionPayloadProtoMsg { typeUrl: "/cosmos.base.snapshots.v1beta1.SnapshotExtensionPayload"; value: Uint8Array; @@ -120,6 +155,10 @@ export interface SnapshotKVItem { key: Uint8Array; value: Uint8Array; } +export interface ReactiveSnapshotKVItem { + key: ComputedRef; + value: ComputedRef; +} export interface SnapshotKVItemProtoMsg { typeUrl: "/cosmos.base.snapshots.v1beta1.SnapshotKVItem"; value: Uint8Array; @@ -133,6 +172,9 @@ export interface SnapshotKVItemSDKType { export interface SnapshotSchema { keys: Uint8Array[]; } +export interface ReactiveSnapshotSchema { + keys: ComputedRef; +} export interface SnapshotSchemaProtoMsg { typeUrl: "/cosmos.base.snapshots.v1beta1.SnapshotSchema"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/base/store/v1beta1/commit_info.ts b/__fixtures__/v-next/outputv4/cosmos/base/store/v1beta1/commit_info.ts index 9c8e1946f2..1f3c1f9ebc 100644 --- a/__fixtures__/v-next/outputv4/cosmos/base/store/v1beta1/commit_info.ts +++ b/__fixtures__/v-next/outputv4/cosmos/base/store/v1beta1/commit_info.ts @@ -1,6 +1,7 @@ import { BinaryReader, BinaryWriter } from "../../../../binary.js"; import { isSet, DeepPartial, bytesFromBase64, base64FromBytes } from "../../../../helpers.js"; import { JsonSafe } from "../../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.base.store.v1beta1"; /** * CommitInfo defines commit information used by the multi-store when committing @@ -10,6 +11,10 @@ export interface CommitInfo { version: bigint; storeInfos: StoreInfo[]; } +export interface ReactiveCommitInfo { + version: ComputedRef; + storeInfos: ComputedRef; +} export interface CommitInfoProtoMsg { typeUrl: "/cosmos.base.store.v1beta1.CommitInfo"; value: Uint8Array; @@ -30,6 +35,10 @@ export interface StoreInfo { name: string; commitId: CommitID; } +export interface ReactiveStoreInfo { + name: ComputedRef; + commitId: ComputedRef; +} export interface StoreInfoProtoMsg { typeUrl: "/cosmos.base.store.v1beta1.StoreInfo"; value: Uint8Array; @@ -50,6 +59,10 @@ export interface CommitID { version: bigint; hash: Uint8Array; } +export interface ReactiveCommitID { + version: ComputedRef; + hash: ComputedRef; +} export interface CommitIDProtoMsg { typeUrl: "/cosmos.base.store.v1beta1.CommitID"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/base/store/v1beta1/listening.ts b/__fixtures__/v-next/outputv4/cosmos/base/store/v1beta1/listening.ts index 5a9b392344..7afadfb917 100644 --- a/__fixtures__/v-next/outputv4/cosmos/base/store/v1beta1/listening.ts +++ b/__fixtures__/v-next/outputv4/cosmos/base/store/v1beta1/listening.ts @@ -1,6 +1,7 @@ import { BinaryReader, BinaryWriter } from "../../../../binary.js"; import { isSet, bytesFromBase64, base64FromBytes, DeepPartial } from "../../../../helpers.js"; import { JsonSafe } from "../../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.base.store.v1beta1"; /** * StoreKVPair is a KVStore KVPair used for listening to state changes (Sets and Deletes) @@ -17,6 +18,12 @@ export interface StoreKVPair { key: Uint8Array; value: Uint8Array; } +export interface ReactiveStoreKVPair { + storeKey: ComputedRef; + delete: ComputedRef; + key: ComputedRef; + value: ComputedRef; +} export interface StoreKVPairProtoMsg { typeUrl: "/cosmos.base.store.v1beta1.StoreKVPair"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/base/tendermint/v1beta1/query.ts b/__fixtures__/v-next/outputv4/cosmos/base/tendermint/v1beta1/query.ts index 8c264dc512..da003cce06 100644 --- a/__fixtures__/v-next/outputv4/cosmos/base/tendermint/v1beta1/query.ts +++ b/__fixtures__/v-next/outputv4/cosmos/base/tendermint/v1beta1/query.ts @@ -6,6 +6,7 @@ import { NodeInfo, NodeInfoSDKType } from "../../../../tendermint/p2p/types.js"; import { BinaryReader, BinaryWriter } from "../../../../binary.js"; import { isSet, DeepPartial } from "../../../../helpers.js"; import { JsonSafe } from "../../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.base.tendermint.v1beta1"; /** GetValidatorSetByHeightRequest is the request type for the Query/GetValidatorSetByHeight RPC method. */ export interface GetValidatorSetByHeightRequest { @@ -13,6 +14,10 @@ export interface GetValidatorSetByHeightRequest { /** pagination defines an pagination for the request. */ pagination?: PageRequest; } +export interface ReactiveGetValidatorSetByHeightRequest { + height: ComputedRef; + pagination?: ComputedRef; +} export interface GetValidatorSetByHeightRequestProtoMsg { typeUrl: "/cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest"; value: Uint8Array; @@ -29,6 +34,11 @@ export interface GetValidatorSetByHeightResponse { /** pagination defines an pagination for the response. */ pagination?: PageResponse; } +export interface ReactiveGetValidatorSetByHeightResponse { + blockHeight: ComputedRef; + validators: ComputedRef; + pagination?: ComputedRef; +} export interface GetValidatorSetByHeightResponseProtoMsg { typeUrl: "/cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse"; value: Uint8Array; @@ -44,6 +54,9 @@ export interface GetLatestValidatorSetRequest { /** pagination defines an pagination for the request. */ pagination?: PageRequest; } +export interface ReactiveGetLatestValidatorSetRequest { + pagination?: ComputedRef; +} export interface GetLatestValidatorSetRequestProtoMsg { typeUrl: "/cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest"; value: Uint8Array; @@ -59,6 +72,11 @@ export interface GetLatestValidatorSetResponse { /** pagination defines an pagination for the response. */ pagination?: PageResponse; } +export interface ReactiveGetLatestValidatorSetResponse { + blockHeight: ComputedRef; + validators: ComputedRef; + pagination?: ComputedRef; +} export interface GetLatestValidatorSetResponseProtoMsg { typeUrl: "/cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse"; value: Uint8Array; @@ -76,6 +94,12 @@ export interface Validator { votingPower: bigint; proposerPriority: bigint; } +export interface ReactiveValidator { + address: ComputedRef; + pubKey?: ComputedRef; + votingPower: ComputedRef; + proposerPriority: ComputedRef; +} export interface ValidatorProtoMsg { typeUrl: "/cosmos.base.tendermint.v1beta1.Validator"; value: Uint8Array; @@ -91,6 +115,9 @@ export interface ValidatorSDKType { export interface GetBlockByHeightRequest { height: bigint; } +export interface ReactiveGetBlockByHeightRequest { + height: ComputedRef; +} export interface GetBlockByHeightRequestProtoMsg { typeUrl: "/cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest"; value: Uint8Array; @@ -104,6 +131,10 @@ export interface GetBlockByHeightResponse { blockId?: BlockID; block?: Block; } +export interface ReactiveGetBlockByHeightResponse { + blockId?: ComputedRef; + block?: ComputedRef; +} export interface GetBlockByHeightResponseProtoMsg { typeUrl: "/cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse"; value: Uint8Array; @@ -115,6 +146,7 @@ export interface GetBlockByHeightResponseSDKType { } /** GetLatestBlockRequest is the request type for the Query/GetLatestBlock RPC method. */ export interface GetLatestBlockRequest {} +export interface ReactiveGetLatestBlockRequest {} export interface GetLatestBlockRequestProtoMsg { typeUrl: "/cosmos.base.tendermint.v1beta1.GetLatestBlockRequest"; value: Uint8Array; @@ -126,6 +158,10 @@ export interface GetLatestBlockResponse { blockId?: BlockID; block?: Block; } +export interface ReactiveGetLatestBlockResponse { + blockId?: ComputedRef; + block?: ComputedRef; +} export interface GetLatestBlockResponseProtoMsg { typeUrl: "/cosmos.base.tendermint.v1beta1.GetLatestBlockResponse"; value: Uint8Array; @@ -137,6 +173,7 @@ export interface GetLatestBlockResponseSDKType { } /** GetSyncingRequest is the request type for the Query/GetSyncing RPC method. */ export interface GetSyncingRequest {} +export interface ReactiveGetSyncingRequest {} export interface GetSyncingRequestProtoMsg { typeUrl: "/cosmos.base.tendermint.v1beta1.GetSyncingRequest"; value: Uint8Array; @@ -147,6 +184,9 @@ export interface GetSyncingRequestSDKType {} export interface GetSyncingResponse { syncing: boolean; } +export interface ReactiveGetSyncingResponse { + syncing: ComputedRef; +} export interface GetSyncingResponseProtoMsg { typeUrl: "/cosmos.base.tendermint.v1beta1.GetSyncingResponse"; value: Uint8Array; @@ -157,6 +197,7 @@ export interface GetSyncingResponseSDKType { } /** GetNodeInfoRequest is the request type for the Query/GetNodeInfo RPC method. */ export interface GetNodeInfoRequest {} +export interface ReactiveGetNodeInfoRequest {} export interface GetNodeInfoRequestProtoMsg { typeUrl: "/cosmos.base.tendermint.v1beta1.GetNodeInfoRequest"; value: Uint8Array; @@ -168,6 +209,10 @@ export interface GetNodeInfoResponse { nodeInfo?: NodeInfo; applicationVersion?: VersionInfo; } +export interface ReactiveGetNodeInfoResponse { + nodeInfo?: ComputedRef; + applicationVersion?: ComputedRef; +} export interface GetNodeInfoResponseProtoMsg { typeUrl: "/cosmos.base.tendermint.v1beta1.GetNodeInfoResponse"; value: Uint8Array; @@ -189,6 +234,16 @@ export interface VersionInfo { /** Since: cosmos-sdk 0.43 */ cosmosSdkVersion: string; } +export interface ReactiveVersionInfo { + name: ComputedRef; + appName: ComputedRef; + version: ComputedRef; + gitCommit: ComputedRef; + buildTags: ComputedRef; + goVersion: ComputedRef; + buildDeps: ComputedRef; + cosmosSdkVersion: ComputedRef; +} export interface VersionInfoProtoMsg { typeUrl: "/cosmos.base.tendermint.v1beta1.VersionInfo"; value: Uint8Array; @@ -213,6 +268,11 @@ export interface Module { /** checksum */ sum: string; } +export interface ReactiveModule { + path: ComputedRef; + version: ComputedRef; + sum: ComputedRef; +} export interface ModuleProtoMsg { typeUrl: "/cosmos.base.tendermint.v1beta1.Module"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/base/v1beta1/coin.ts b/__fixtures__/v-next/outputv4/cosmos/base/v1beta1/coin.ts index 407c9ff584..7cab10bb96 100644 --- a/__fixtures__/v-next/outputv4/cosmos/base/v1beta1/coin.ts +++ b/__fixtures__/v-next/outputv4/cosmos/base/v1beta1/coin.ts @@ -1,6 +1,7 @@ import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.base.v1beta1"; /** * Coin defines a token with a denomination and an amount. @@ -12,6 +13,10 @@ export interface Coin { denom: string; amount: string; } +export interface ReactiveCoin { + denom: ComputedRef; + amount: ComputedRef; +} export interface CoinProtoMsg { typeUrl: "/cosmos.base.v1beta1.Coin"; value: Uint8Array; @@ -36,6 +41,10 @@ export interface DecCoin { denom: string; amount: string; } +export interface ReactiveDecCoin { + denom: ComputedRef; + amount: ComputedRef; +} export interface DecCoinProtoMsg { typeUrl: "/cosmos.base.v1beta1.DecCoin"; value: Uint8Array; @@ -54,6 +63,9 @@ export interface DecCoinSDKType { export interface IntProto { int: string; } +export interface ReactiveIntProto { + int: ComputedRef; +} export interface IntProtoProtoMsg { typeUrl: "/cosmos.base.v1beta1.IntProto"; value: Uint8Array; @@ -66,6 +78,9 @@ export interface IntProtoSDKType { export interface DecProto { dec: string; } +export interface ReactiveDecProto { + dec: ComputedRef; +} export interface DecProtoProtoMsg { typeUrl: "/cosmos.base.v1beta1.DecProto"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/capability/v1beta1/capability.ts b/__fixtures__/v-next/outputv4/cosmos/capability/v1beta1/capability.ts index 3fde99f58a..2ae65882a5 100644 --- a/__fixtures__/v-next/outputv4/cosmos/capability/v1beta1/capability.ts +++ b/__fixtures__/v-next/outputv4/cosmos/capability/v1beta1/capability.ts @@ -1,6 +1,7 @@ import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.capability.v1beta1"; /** * Capability defines an implementation of an object capability. The index @@ -9,6 +10,9 @@ export const protobufPackage = "cosmos.capability.v1beta1"; export interface Capability { index: bigint; } +export interface ReactiveCapability { + index: ComputedRef; +} export interface CapabilityProtoMsg { typeUrl: "/cosmos.capability.v1beta1.Capability"; value: Uint8Array; @@ -28,6 +32,10 @@ export interface Owner { module: string; name: string; } +export interface ReactiveOwner { + module: ComputedRef; + name: ComputedRef; +} export interface OwnerProtoMsg { typeUrl: "/cosmos.capability.v1beta1.Owner"; value: Uint8Array; @@ -47,6 +55,9 @@ export interface OwnerSDKType { export interface CapabilityOwners { owners: Owner[]; } +export interface ReactiveCapabilityOwners { + owners: ComputedRef; +} export interface CapabilityOwnersProtoMsg { typeUrl: "/cosmos.capability.v1beta1.CapabilityOwners"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/capability/v1beta1/genesis.ts b/__fixtures__/v-next/outputv4/cosmos/capability/v1beta1/genesis.ts index 79d97d8f70..3b11ea2b23 100644 --- a/__fixtures__/v-next/outputv4/cosmos/capability/v1beta1/genesis.ts +++ b/__fixtures__/v-next/outputv4/cosmos/capability/v1beta1/genesis.ts @@ -2,6 +2,7 @@ import { CapabilityOwners, CapabilityOwnersSDKType } from "./capability.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.capability.v1beta1"; /** GenesisOwners defines the capability owners with their corresponding index. */ export interface GenesisOwners { @@ -10,6 +11,10 @@ export interface GenesisOwners { /** index_owners are the owners at the given index. */ indexOwners: CapabilityOwners; } +export interface ReactiveGenesisOwners { + index: ComputedRef; + indexOwners: ComputedRef; +} export interface GenesisOwnersProtoMsg { typeUrl: "/cosmos.capability.v1beta1.GenesisOwners"; value: Uint8Array; @@ -29,6 +34,10 @@ export interface GenesisState { */ owners: GenesisOwners[]; } +export interface ReactiveGenesisState { + index: ComputedRef; + owners: ComputedRef; +} export interface GenesisStateProtoMsg { typeUrl: "/cosmos.capability.v1beta1.GenesisState"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/crisis/v1beta1/genesis.ts b/__fixtures__/v-next/outputv4/cosmos/crisis/v1beta1/genesis.ts index 154e7e2242..8035f984b0 100644 --- a/__fixtures__/v-next/outputv4/cosmos/crisis/v1beta1/genesis.ts +++ b/__fixtures__/v-next/outputv4/cosmos/crisis/v1beta1/genesis.ts @@ -2,6 +2,7 @@ import { Coin, CoinSDKType } from "../../base/v1beta1/coin.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.crisis.v1beta1"; /** GenesisState defines the crisis module's genesis state. */ export interface GenesisState { @@ -11,6 +12,9 @@ export interface GenesisState { */ constantFee: Coin; } +export interface ReactiveGenesisState { + constantFee: ComputedRef; +} export interface GenesisStateProtoMsg { typeUrl: "/cosmos.crisis.v1beta1.GenesisState"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/crisis/v1beta1/tx.ts b/__fixtures__/v-next/outputv4/cosmos/crisis/v1beta1/tx.ts index 7e586b8d41..fb3d7ea14e 100644 --- a/__fixtures__/v-next/outputv4/cosmos/crisis/v1beta1/tx.ts +++ b/__fixtures__/v-next/outputv4/cosmos/crisis/v1beta1/tx.ts @@ -1,6 +1,7 @@ import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.crisis.v1beta1"; /** MsgVerifyInvariant represents a message to verify a particular invariance. */ export interface MsgVerifyInvariant { @@ -8,6 +9,11 @@ export interface MsgVerifyInvariant { invariantModuleName: string; invariantRoute: string; } +export interface ReactiveMsgVerifyInvariant { + sender: ComputedRef; + invariantModuleName: ComputedRef; + invariantRoute: ComputedRef; +} export interface MsgVerifyInvariantProtoMsg { typeUrl: "/cosmos.crisis.v1beta1.MsgVerifyInvariant"; value: Uint8Array; @@ -20,6 +26,7 @@ export interface MsgVerifyInvariantSDKType { } /** MsgVerifyInvariantResponse defines the Msg/VerifyInvariant response type. */ export interface MsgVerifyInvariantResponse {} +export interface ReactiveMsgVerifyInvariantResponse {} export interface MsgVerifyInvariantResponseProtoMsg { typeUrl: "/cosmos.crisis.v1beta1.MsgVerifyInvariantResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/crypto/ed25519/keys.ts b/__fixtures__/v-next/outputv4/cosmos/crypto/ed25519/keys.ts index efe200065e..155f460db0 100644 --- a/__fixtures__/v-next/outputv4/cosmos/crypto/ed25519/keys.ts +++ b/__fixtures__/v-next/outputv4/cosmos/crypto/ed25519/keys.ts @@ -1,6 +1,7 @@ import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, bytesFromBase64, base64FromBytes, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.crypto.ed25519"; /** * PubKey is an ed25519 public key for handling Tendermint keys in SDK. @@ -12,6 +13,9 @@ export const protobufPackage = "cosmos.crypto.ed25519"; export interface PubKey { key: Uint8Array; } +export interface ReactivePubKey { + key: ComputedRef; +} export interface PubKeyProtoMsg { typeUrl: "/cosmos.crypto.ed25519.PubKey"; value: Uint8Array; @@ -33,6 +37,9 @@ export interface PubKeySDKType { export interface PrivKey { key: Uint8Array; } +export interface ReactivePrivKey { + key: ComputedRef; +} export interface PrivKeyProtoMsg { typeUrl: "/cosmos.crypto.ed25519.PrivKey"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/crypto/hd/v1/hd.ts b/__fixtures__/v-next/outputv4/cosmos/crypto/hd/v1/hd.ts index 8bf057ec74..128dccaaa8 100644 --- a/__fixtures__/v-next/outputv4/cosmos/crypto/hd/v1/hd.ts +++ b/__fixtures__/v-next/outputv4/cosmos/crypto/hd/v1/hd.ts @@ -1,6 +1,7 @@ import { BinaryReader, BinaryWriter } from "../../../../binary.js"; import { isSet, DeepPartial } from "../../../../helpers.js"; import { JsonSafe } from "../../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.crypto.hd.v1"; /** BIP44Params is used as path field in ledger item in Record. */ export interface BIP44Params { @@ -18,6 +19,13 @@ export interface BIP44Params { /** address_index is used as child index in BIP32 derivation */ addressIndex: number; } +export interface ReactiveBIP44Params { + purpose: ComputedRef; + coinType: ComputedRef; + account: ComputedRef; + change: ComputedRef; + addressIndex: ComputedRef; +} export interface BIP44ParamsProtoMsg { typeUrl: "/cosmos.crypto.hd.v1.BIP44Params"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/crypto/keyring/v1/record.ts b/__fixtures__/v-next/outputv4/cosmos/crypto/keyring/v1/record.ts index 12341d7b3e..12527ea496 100644 --- a/__fixtures__/v-next/outputv4/cosmos/crypto/keyring/v1/record.ts +++ b/__fixtures__/v-next/outputv4/cosmos/crypto/keyring/v1/record.ts @@ -3,6 +3,7 @@ import { BIP44Params, BIP44ParamsSDKType } from "../../hd/v1/hd.js"; import { BinaryReader, BinaryWriter } from "../../../../binary.js"; import { isSet, DeepPartial } from "../../../../helpers.js"; import { JsonSafe } from "../../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.crypto.keyring.v1"; /** Record is used for representing a key in the keyring. */ export interface Record { @@ -19,6 +20,14 @@ export interface Record { /** Offline does not store any information. */ offline?: Record_Offline; } +export interface ReactiveRecord { + name: ComputedRef; + pubKey?: ComputedRef; + local?: ComputedRef; + ledger?: ComputedRef; + multi?: ComputedRef; + offline?: ComputedRef; +} export interface RecordProtoMsg { typeUrl: "/cosmos.crypto.keyring.v1.Record"; value: Uint8Array; @@ -40,6 +49,10 @@ export interface Record_Local { privKey?: Any; privKeyType: string; } +export interface ReactiveRecord_Local { + privKey?: ComputedRef; + privKeyType: ComputedRef; +} export interface Record_LocalProtoMsg { typeUrl: "/cosmos.crypto.keyring.v1.Local"; value: Uint8Array; @@ -56,6 +69,9 @@ export interface Record_LocalSDKType { export interface Record_Ledger { path?: BIP44Params; } +export interface ReactiveRecord_Ledger { + path?: ComputedRef; +} export interface Record_LedgerProtoMsg { typeUrl: "/cosmos.crypto.keyring.v1.Ledger"; value: Uint8Array; @@ -66,6 +82,7 @@ export interface Record_LedgerSDKType { } /** Multi item */ export interface Record_Multi {} +export interface ReactiveRecord_Multi {} export interface Record_MultiProtoMsg { typeUrl: "/cosmos.crypto.keyring.v1.Multi"; value: Uint8Array; @@ -74,6 +91,7 @@ export interface Record_MultiProtoMsg { export interface Record_MultiSDKType {} /** Offline item */ export interface Record_Offline {} +export interface ReactiveRecord_Offline {} export interface Record_OfflineProtoMsg { typeUrl: "/cosmos.crypto.keyring.v1.Offline"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/crypto/multisig/keys.ts b/__fixtures__/v-next/outputv4/cosmos/crypto/multisig/keys.ts index 2f0309f153..ccb243f23f 100644 --- a/__fixtures__/v-next/outputv4/cosmos/crypto/multisig/keys.ts +++ b/__fixtures__/v-next/outputv4/cosmos/crypto/multisig/keys.ts @@ -2,6 +2,7 @@ import { Any, AnySDKType } from "../../../google/protobuf/any.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.crypto.multisig"; /** * LegacyAminoPubKey specifies a public key type @@ -12,6 +13,10 @@ export interface LegacyAminoPubKey { threshold: number; publicKeys: Any[]; } +export interface ReactiveLegacyAminoPubKey { + threshold: ComputedRef; + publicKeys: ComputedRef; +} export interface LegacyAminoPubKeyProtoMsg { typeUrl: "/cosmos.crypto.multisig.LegacyAminoPubKey"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/crypto/multisig/v1beta1/multisig.ts b/__fixtures__/v-next/outputv4/cosmos/crypto/multisig/v1beta1/multisig.ts index 4a98732634..fe52889f37 100644 --- a/__fixtures__/v-next/outputv4/cosmos/crypto/multisig/v1beta1/multisig.ts +++ b/__fixtures__/v-next/outputv4/cosmos/crypto/multisig/v1beta1/multisig.ts @@ -1,6 +1,7 @@ import { BinaryReader, BinaryWriter } from "../../../../binary.js"; import { bytesFromBase64, base64FromBytes, DeepPartial, isSet } from "../../../../helpers.js"; import { JsonSafe } from "../../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.crypto.multisig.v1beta1"; /** * MultiSignature wraps the signatures from a multisig.LegacyAminoPubKey. @@ -10,6 +11,9 @@ export const protobufPackage = "cosmos.crypto.multisig.v1beta1"; export interface MultiSignature { signatures: Uint8Array[]; } +export interface ReactiveMultiSignature { + signatures: ComputedRef; +} export interface MultiSignatureProtoMsg { typeUrl: "/cosmos.crypto.multisig.v1beta1.MultiSignature"; value: Uint8Array; @@ -32,6 +36,10 @@ export interface CompactBitArray { extraBitsStored: number; elems: Uint8Array; } +export interface ReactiveCompactBitArray { + extraBitsStored: ComputedRef; + elems: ComputedRef; +} export interface CompactBitArrayProtoMsg { typeUrl: "/cosmos.crypto.multisig.v1beta1.CompactBitArray"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/crypto/secp256k1/keys.ts b/__fixtures__/v-next/outputv4/cosmos/crypto/secp256k1/keys.ts index d76f05865d..2800931192 100644 --- a/__fixtures__/v-next/outputv4/cosmos/crypto/secp256k1/keys.ts +++ b/__fixtures__/v-next/outputv4/cosmos/crypto/secp256k1/keys.ts @@ -1,6 +1,7 @@ import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, bytesFromBase64, base64FromBytes, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.crypto.secp256k1"; /** * PubKey defines a secp256k1 public key @@ -12,6 +13,9 @@ export const protobufPackage = "cosmos.crypto.secp256k1"; export interface PubKey { key: Uint8Array; } +export interface ReactivePubKey { + key: ComputedRef; +} export interface PubKeyProtoMsg { typeUrl: "/cosmos.crypto.secp256k1.PubKey"; value: Uint8Array; @@ -30,6 +34,9 @@ export interface PubKeySDKType { export interface PrivKey { key: Uint8Array; } +export interface ReactivePrivKey { + key: ComputedRef; +} export interface PrivKeyProtoMsg { typeUrl: "/cosmos.crypto.secp256k1.PrivKey"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/crypto/secp256r1/keys.ts b/__fixtures__/v-next/outputv4/cosmos/crypto/secp256r1/keys.ts index 4033485992..885458efd6 100644 --- a/__fixtures__/v-next/outputv4/cosmos/crypto/secp256r1/keys.ts +++ b/__fixtures__/v-next/outputv4/cosmos/crypto/secp256r1/keys.ts @@ -1,6 +1,7 @@ import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, bytesFromBase64, base64FromBytes, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.crypto.secp256r1"; /** PubKey defines a secp256r1 ECDSA public key. */ export interface PubKey { @@ -10,6 +11,9 @@ export interface PubKey { */ key: Uint8Array; } +export interface ReactivePubKey { + key: ComputedRef; +} export interface PubKeyProtoMsg { typeUrl: "/cosmos.crypto.secp256r1.PubKey"; value: Uint8Array; @@ -23,6 +27,9 @@ export interface PrivKey { /** secret number serialized using big-endian encoding */ secret: Uint8Array; } +export interface ReactivePrivKey { + secret: ComputedRef; +} export interface PrivKeyProtoMsg { typeUrl: "/cosmos.crypto.secp256r1.PrivKey"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/distribution/v1beta1/distribution.ts b/__fixtures__/v-next/outputv4/cosmos/distribution/v1beta1/distribution.ts index 730006fc36..807089dece 100644 --- a/__fixtures__/v-next/outputv4/cosmos/distribution/v1beta1/distribution.ts +++ b/__fixtures__/v-next/outputv4/cosmos/distribution/v1beta1/distribution.ts @@ -3,6 +3,7 @@ import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { Decimal } from "@cosmjs/math"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.distribution.v1beta1"; /** Params defines the set of params for the distribution module. */ export interface Params { @@ -11,6 +12,12 @@ export interface Params { bonusProposerReward: string; withdrawAddrEnabled: boolean; } +export interface ReactiveParams { + communityTax: ComputedRef; + baseProposerReward: ComputedRef; + bonusProposerReward: ComputedRef; + withdrawAddrEnabled: ComputedRef; +} export interface ParamsProtoMsg { typeUrl: "/cosmos.distribution.v1beta1.Params"; value: Uint8Array; @@ -40,6 +47,10 @@ export interface ValidatorHistoricalRewards { cumulativeRewardRatio: DecCoin[]; referenceCount: number; } +export interface ReactiveValidatorHistoricalRewards { + cumulativeRewardRatio: ComputedRef; + referenceCount: ComputedRef; +} export interface ValidatorHistoricalRewardsProtoMsg { typeUrl: "/cosmos.distribution.v1beta1.ValidatorHistoricalRewards"; value: Uint8Array; @@ -71,6 +82,10 @@ export interface ValidatorCurrentRewards { rewards: DecCoin[]; period: bigint; } +export interface ReactiveValidatorCurrentRewards { + rewards: ComputedRef; + period: ComputedRef; +} export interface ValidatorCurrentRewardsProtoMsg { typeUrl: "/cosmos.distribution.v1beta1.ValidatorCurrentRewards"; value: Uint8Array; @@ -91,6 +106,9 @@ export interface ValidatorCurrentRewardsSDKType { export interface ValidatorAccumulatedCommission { commission: DecCoin[]; } +export interface ReactiveValidatorAccumulatedCommission { + commission: ComputedRef; +} export interface ValidatorAccumulatedCommissionProtoMsg { typeUrl: "/cosmos.distribution.v1beta1.ValidatorAccumulatedCommission"; value: Uint8Array; @@ -109,6 +127,9 @@ export interface ValidatorAccumulatedCommissionSDKType { export interface ValidatorOutstandingRewards { rewards: DecCoin[]; } +export interface ReactiveValidatorOutstandingRewards { + rewards: ComputedRef; +} export interface ValidatorOutstandingRewardsProtoMsg { typeUrl: "/cosmos.distribution.v1beta1.ValidatorOutstandingRewards"; value: Uint8Array; @@ -130,6 +151,10 @@ export interface ValidatorSlashEvent { validatorPeriod: bigint; fraction: string; } +export interface ReactiveValidatorSlashEvent { + validatorPeriod: ComputedRef; + fraction: ComputedRef; +} export interface ValidatorSlashEventProtoMsg { typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEvent"; value: Uint8Array; @@ -148,6 +173,9 @@ export interface ValidatorSlashEventSDKType { export interface ValidatorSlashEvents { validatorSlashEvents: ValidatorSlashEvent[]; } +export interface ReactiveValidatorSlashEvents { + validatorSlashEvents: ComputedRef; +} export interface ValidatorSlashEventsProtoMsg { typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEvents"; value: Uint8Array; @@ -160,6 +188,9 @@ export interface ValidatorSlashEventsSDKType { export interface FeePool { communityPool: DecCoin[]; } +export interface ReactiveFeePool { + communityPool: ComputedRef; +} export interface FeePoolProtoMsg { typeUrl: "/cosmos.distribution.v1beta1.FeePool"; value: Uint8Array; @@ -179,6 +210,12 @@ export interface CommunityPoolSpendProposal { recipient: string; amount: Coin[]; } +export interface ReactiveCommunityPoolSpendProposal { + title: ComputedRef; + description: ComputedRef; + recipient: ComputedRef; + amount: ComputedRef; +} export interface CommunityPoolSpendProposalProtoMsg { typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposal"; value: Uint8Array; @@ -207,6 +244,11 @@ export interface DelegatorStartingInfo { stake: string; height: bigint; } +export interface ReactiveDelegatorStartingInfo { + previousPeriod: ComputedRef; + stake: ComputedRef; + height: ComputedRef; +} export interface DelegatorStartingInfoProtoMsg { typeUrl: "/cosmos.distribution.v1beta1.DelegatorStartingInfo"; value: Uint8Array; @@ -232,6 +274,10 @@ export interface DelegationDelegatorReward { validatorAddress: string; reward: DecCoin[]; } +export interface ReactiveDelegationDelegatorReward { + validatorAddress: ComputedRef; + reward: ComputedRef; +} export interface DelegationDelegatorRewardProtoMsg { typeUrl: "/cosmos.distribution.v1beta1.DelegationDelegatorReward"; value: Uint8Array; @@ -255,6 +301,13 @@ export interface CommunityPoolSpendProposalWithDeposit { amount: string; deposit: string; } +export interface ReactiveCommunityPoolSpendProposalWithDeposit { + title: ComputedRef; + description: ComputedRef; + recipient: ComputedRef; + amount: ComputedRef; + deposit: ComputedRef; +} export interface CommunityPoolSpendProposalWithDepositProtoMsg { typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/distribution/v1beta1/genesis.ts b/__fixtures__/v-next/outputv4/cosmos/distribution/v1beta1/genesis.ts index 3c27190861..05c419465a 100644 --- a/__fixtures__/v-next/outputv4/cosmos/distribution/v1beta1/genesis.ts +++ b/__fixtures__/v-next/outputv4/cosmos/distribution/v1beta1/genesis.ts @@ -3,6 +3,7 @@ import { ValidatorAccumulatedCommission, ValidatorAccumulatedCommissionSDKType, import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.distribution.v1beta1"; /** * DelegatorWithdrawInfo is the address for where distributions rewards are @@ -15,6 +16,10 @@ export interface DelegatorWithdrawInfo { /** withdraw_address is the address to withdraw the delegation rewards to. */ withdrawAddress: string; } +export interface ReactiveDelegatorWithdrawInfo { + delegatorAddress: ComputedRef; + withdrawAddress: ComputedRef; +} export interface DelegatorWithdrawInfoProtoMsg { typeUrl: "/cosmos.distribution.v1beta1.DelegatorWithdrawInfo"; value: Uint8Array; @@ -35,6 +40,10 @@ export interface ValidatorOutstandingRewardsRecord { /** outstanding_rewards represents the oustanding rewards of a validator. */ outstandingRewards: DecCoin[]; } +export interface ReactiveValidatorOutstandingRewardsRecord { + validatorAddress: ComputedRef; + outstandingRewards: ComputedRef; +} export interface ValidatorOutstandingRewardsRecordProtoMsg { typeUrl: "/cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord"; value: Uint8Array; @@ -54,6 +63,10 @@ export interface ValidatorAccumulatedCommissionRecord { /** accumulated is the accumulated commission of a validator. */ accumulated: ValidatorAccumulatedCommission; } +export interface ReactiveValidatorAccumulatedCommissionRecord { + validatorAddress: ComputedRef; + accumulated: ComputedRef; +} export interface ValidatorAccumulatedCommissionRecordProtoMsg { typeUrl: "/cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord"; value: Uint8Array; @@ -78,6 +91,11 @@ export interface ValidatorHistoricalRewardsRecord { /** rewards defines the historical rewards of a validator. */ rewards: ValidatorHistoricalRewards; } +export interface ReactiveValidatorHistoricalRewardsRecord { + validatorAddress: ComputedRef; + period: ComputedRef; + rewards: ComputedRef; +} export interface ValidatorHistoricalRewardsRecordProtoMsg { typeUrl: "/cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord"; value: Uint8Array; @@ -98,6 +116,10 @@ export interface ValidatorCurrentRewardsRecord { /** rewards defines the current rewards of a validator. */ rewards: ValidatorCurrentRewards; } +export interface ReactiveValidatorCurrentRewardsRecord { + validatorAddress: ComputedRef; + rewards: ComputedRef; +} export interface ValidatorCurrentRewardsRecordProtoMsg { typeUrl: "/cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord"; value: Uint8Array; @@ -116,6 +138,11 @@ export interface DelegatorStartingInfoRecord { /** starting_info defines the starting info of a delegator. */ startingInfo: DelegatorStartingInfo; } +export interface ReactiveDelegatorStartingInfoRecord { + delegatorAddress: ComputedRef; + validatorAddress: ComputedRef; + startingInfo: ComputedRef; +} export interface DelegatorStartingInfoRecordProtoMsg { typeUrl: "/cosmos.distribution.v1beta1.DelegatorStartingInfoRecord"; value: Uint8Array; @@ -137,6 +164,12 @@ export interface ValidatorSlashEventRecord { /** validator_slash_event describes the slash event. */ validatorSlashEvent: ValidatorSlashEvent; } +export interface ReactiveValidatorSlashEventRecord { + validatorAddress: ComputedRef; + height: ComputedRef; + period: ComputedRef; + validatorSlashEvent: ComputedRef; +} export interface ValidatorSlashEventRecordProtoMsg { typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEventRecord"; value: Uint8Array; @@ -171,6 +204,18 @@ export interface GenesisState { /** fee_pool defines the validator slash events at genesis. */ validatorSlashEvents: ValidatorSlashEventRecord[]; } +export interface ReactiveGenesisState { + params: ComputedRef; + feePool: ComputedRef; + delegatorWithdrawInfos: ComputedRef; + previousProposer: ComputedRef; + outstandingRewards: ComputedRef; + validatorAccumulatedCommissions: ComputedRef; + validatorHistoricalRewards: ComputedRef; + validatorCurrentRewards: ComputedRef; + delegatorStartingInfos: ComputedRef; + validatorSlashEvents: ComputedRef; +} export interface GenesisStateProtoMsg { typeUrl: "/cosmos.distribution.v1beta1.GenesisState"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/distribution/v1beta1/query.rpc.Query.ts b/__fixtures__/v-next/outputv4/cosmos/distribution/v1beta1/query.rpc.Query.ts index 5226a4c28c..33e3f28361 100644 --- a/__fixtures__/v-next/outputv4/cosmos/distribution/v1beta1/query.rpc.Query.ts +++ b/__fixtures__/v-next/outputv4/cosmos/distribution/v1beta1/query.rpc.Query.ts @@ -4,7 +4,7 @@ import { DecCoin, DecCoinSDKType } from "../../base/v1beta1/coin.js"; import { Rpc } from "../../../helpers.js"; import { BinaryReader } from "../../../binary.js"; import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryParamsRequest, QueryParamsRequestSDKType, QueryParamsResponse, QueryParamsResponseSDKType, QueryValidatorOutstandingRewardsRequest, QueryValidatorOutstandingRewardsRequestSDKType, QueryValidatorOutstandingRewardsResponse, QueryValidatorOutstandingRewardsResponseSDKType, QueryValidatorCommissionRequest, QueryValidatorCommissionRequestSDKType, QueryValidatorCommissionResponse, QueryValidatorCommissionResponseSDKType, QueryValidatorSlashesRequest, QueryValidatorSlashesRequestSDKType, QueryValidatorSlashesResponse, QueryValidatorSlashesResponseSDKType, QueryDelegationRewardsRequest, QueryDelegationRewardsRequestSDKType, QueryDelegationRewardsResponse, QueryDelegationRewardsResponseSDKType, QueryDelegationTotalRewardsRequest, QueryDelegationTotalRewardsRequestSDKType, QueryDelegationTotalRewardsResponse, QueryDelegationTotalRewardsResponseSDKType, QueryDelegatorValidatorsRequest, QueryDelegatorValidatorsRequestSDKType, QueryDelegatorValidatorsResponse, QueryDelegatorValidatorsResponseSDKType, QueryDelegatorWithdrawAddressRequest, QueryDelegatorWithdrawAddressRequestSDKType, QueryDelegatorWithdrawAddressResponse, QueryDelegatorWithdrawAddressResponseSDKType, QueryCommunityPoolRequest, QueryCommunityPoolRequestSDKType, QueryCommunityPoolResponse, QueryCommunityPoolResponseSDKType } from "./query.js"; +import { QueryParamsRequest, QueryParamsRequestSDKType, QueryParamsResponse, QueryParamsResponseSDKType, QueryValidatorOutstandingRewardsRequest, QueryValidatorOutstandingRewardsRequestSDKType, QueryValidatorOutstandingRewardsResponse, QueryValidatorOutstandingRewardsResponseSDKType, QueryValidatorCommissionRequest, QueryValidatorCommissionRequestSDKType, QueryValidatorCommissionResponse, QueryValidatorCommissionResponseSDKType, QueryValidatorSlashesRequest, QueryValidatorSlashesRequestSDKType, QueryValidatorSlashesResponse, QueryValidatorSlashesResponseSDKType, QueryDelegationRewardsRequest, QueryDelegationRewardsRequestSDKType, QueryDelegationRewardsResponse, QueryDelegationRewardsResponseSDKType, QueryDelegationTotalRewardsRequest, QueryDelegationTotalRewardsRequestSDKType, QueryDelegationTotalRewardsResponse, QueryDelegationTotalRewardsResponseSDKType, QueryDelegatorValidatorsRequest, QueryDelegatorValidatorsRequestSDKType, QueryDelegatorValidatorsResponse, QueryDelegatorValidatorsResponseSDKType, QueryDelegatorWithdrawAddressRequest, QueryDelegatorWithdrawAddressRequestSDKType, QueryDelegatorWithdrawAddressResponse, QueryDelegatorWithdrawAddressResponseSDKType, QueryCommunityPoolRequest, QueryCommunityPoolRequestSDKType, QueryCommunityPoolResponse, QueryCommunityPoolResponseSDKType, ReactiveQueryParamsRequest, ReactiveQueryValidatorOutstandingRewardsRequest, ReactiveQueryValidatorCommissionRequest, ReactiveQueryValidatorSlashesRequest, ReactiveQueryDelegationRewardsRequest, ReactiveQueryDelegationTotalRewardsRequest, ReactiveQueryDelegatorValidatorsRequest, ReactiveQueryDelegatorWithdrawAddressRequest, ReactiveQueryCommunityPoolRequest } from "./query.js"; /** Query defines the gRPC querier service for distribution module. */ export interface Query { /** Params queries params of the distribution module. */ diff --git a/__fixtures__/v-next/outputv4/cosmos/distribution/v1beta1/query.ts b/__fixtures__/v-next/outputv4/cosmos/distribution/v1beta1/query.ts index a3b02bf64b..20802dd710 100644 --- a/__fixtures__/v-next/outputv4/cosmos/distribution/v1beta1/query.ts +++ b/__fixtures__/v-next/outputv4/cosmos/distribution/v1beta1/query.ts @@ -4,9 +4,11 @@ import { DecCoin, DecCoinSDKType } from "../../base/v1beta1/coin.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { JsonSafe } from "../../../json-safe.js"; import { DeepPartial, isSet } from "../../../helpers.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.distribution.v1beta1"; /** QueryParamsRequest is the request type for the Query/Params RPC method. */ export interface QueryParamsRequest {} +export interface ReactiveQueryParamsRequest {} export interface QueryParamsRequestProtoMsg { typeUrl: "/cosmos.distribution.v1beta1.QueryParamsRequest"; value: Uint8Array; @@ -18,6 +20,9 @@ export interface QueryParamsResponse { /** params defines the parameters of the module. */ params: Params; } +export interface ReactiveQueryParamsResponse { + params: ComputedRef; +} export interface QueryParamsResponseProtoMsg { typeUrl: "/cosmos.distribution.v1beta1.QueryParamsResponse"; value: Uint8Array; @@ -34,6 +39,9 @@ export interface QueryValidatorOutstandingRewardsRequest { /** validator_address defines the validator address to query for. */ validatorAddress: string; } +export interface ReactiveQueryValidatorOutstandingRewardsRequest { + validatorAddress: ComputedRef; +} export interface QueryValidatorOutstandingRewardsRequestProtoMsg { typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest"; value: Uint8Array; @@ -52,6 +60,9 @@ export interface QueryValidatorOutstandingRewardsRequestSDKType { export interface QueryValidatorOutstandingRewardsResponse { rewards: ValidatorOutstandingRewards; } +export interface ReactiveQueryValidatorOutstandingRewardsResponse { + rewards: ComputedRef; +} export interface QueryValidatorOutstandingRewardsResponseProtoMsg { typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse"; value: Uint8Array; @@ -71,6 +82,9 @@ export interface QueryValidatorCommissionRequest { /** validator_address defines the validator address to query for. */ validatorAddress: string; } +export interface ReactiveQueryValidatorCommissionRequest { + validatorAddress: ComputedRef; +} export interface QueryValidatorCommissionRequestProtoMsg { typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorCommissionRequest"; value: Uint8Array; @@ -90,6 +104,9 @@ export interface QueryValidatorCommissionResponse { /** commission defines the commision the validator received. */ commission: ValidatorAccumulatedCommission; } +export interface ReactiveQueryValidatorCommissionResponse { + commission: ComputedRef; +} export interface QueryValidatorCommissionResponseProtoMsg { typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorCommissionResponse"; value: Uint8Array; @@ -115,6 +132,12 @@ export interface QueryValidatorSlashesRequest { /** pagination defines an optional pagination for the request. */ pagination?: PageRequest; } +export interface ReactiveQueryValidatorSlashesRequest { + validatorAddress: ComputedRef; + startingHeight: ComputedRef; + endingHeight: ComputedRef; + pagination?: ComputedRef; +} export interface QueryValidatorSlashesRequestProtoMsg { typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorSlashesRequest"; value: Uint8Array; @@ -139,6 +162,10 @@ export interface QueryValidatorSlashesResponse { /** pagination defines the pagination in the response. */ pagination?: PageResponse; } +export interface ReactiveQueryValidatorSlashesResponse { + slashes: ComputedRef; + pagination?: ComputedRef; +} export interface QueryValidatorSlashesResponseProtoMsg { typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorSlashesResponse"; value: Uint8Array; @@ -161,6 +188,10 @@ export interface QueryDelegationRewardsRequest { /** validator_address defines the validator address to query for. */ validatorAddress: string; } +export interface ReactiveQueryDelegationRewardsRequest { + delegatorAddress: ComputedRef; + validatorAddress: ComputedRef; +} export interface QueryDelegationRewardsRequestProtoMsg { typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationRewardsRequest"; value: Uint8Array; @@ -181,6 +212,9 @@ export interface QueryDelegationRewardsResponse { /** rewards defines the rewards accrued by a delegation. */ rewards: DecCoin[]; } +export interface ReactiveQueryDelegationRewardsResponse { + rewards: ComputedRef; +} export interface QueryDelegationRewardsResponseProtoMsg { typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationRewardsResponse"; value: Uint8Array; @@ -200,6 +234,9 @@ export interface QueryDelegationTotalRewardsRequest { /** delegator_address defines the delegator address to query for. */ delegatorAddress: string; } +export interface ReactiveQueryDelegationTotalRewardsRequest { + delegatorAddress: ComputedRef; +} export interface QueryDelegationTotalRewardsRequestProtoMsg { typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest"; value: Uint8Array; @@ -221,6 +258,10 @@ export interface QueryDelegationTotalRewardsResponse { /** total defines the sum of all the rewards. */ total: DecCoin[]; } +export interface ReactiveQueryDelegationTotalRewardsResponse { + rewards: ComputedRef; + total: ComputedRef; +} export interface QueryDelegationTotalRewardsResponseProtoMsg { typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse"; value: Uint8Array; @@ -241,6 +282,9 @@ export interface QueryDelegatorValidatorsRequest { /** delegator_address defines the delegator address to query for. */ delegatorAddress: string; } +export interface ReactiveQueryDelegatorValidatorsRequest { + delegatorAddress: ComputedRef; +} export interface QueryDelegatorValidatorsRequestProtoMsg { typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest"; value: Uint8Array; @@ -260,6 +304,9 @@ export interface QueryDelegatorValidatorsResponse { /** validators defines the validators a delegator is delegating for. */ validators: string[]; } +export interface ReactiveQueryDelegatorValidatorsResponse { + validators: ComputedRef; +} export interface QueryDelegatorValidatorsResponseProtoMsg { typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse"; value: Uint8Array; @@ -279,6 +326,9 @@ export interface QueryDelegatorWithdrawAddressRequest { /** delegator_address defines the delegator address to query for. */ delegatorAddress: string; } +export interface ReactiveQueryDelegatorWithdrawAddressRequest { + delegatorAddress: ComputedRef; +} export interface QueryDelegatorWithdrawAddressRequestProtoMsg { typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest"; value: Uint8Array; @@ -298,6 +348,9 @@ export interface QueryDelegatorWithdrawAddressResponse { /** withdraw_address defines the delegator address to query for. */ withdrawAddress: string; } +export interface ReactiveQueryDelegatorWithdrawAddressResponse { + withdrawAddress: ComputedRef; +} export interface QueryDelegatorWithdrawAddressResponseProtoMsg { typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse"; value: Uint8Array; @@ -314,6 +367,7 @@ export interface QueryDelegatorWithdrawAddressResponseSDKType { * method. */ export interface QueryCommunityPoolRequest {} +export interface ReactiveQueryCommunityPoolRequest {} export interface QueryCommunityPoolRequestProtoMsg { typeUrl: "/cosmos.distribution.v1beta1.QueryCommunityPoolRequest"; value: Uint8Array; @@ -331,6 +385,9 @@ export interface QueryCommunityPoolResponse { /** pool defines community pool's coins. */ pool: DecCoin[]; } +export interface ReactiveQueryCommunityPoolResponse { + pool: ComputedRef; +} export interface QueryCommunityPoolResponseProtoMsg { typeUrl: "/cosmos.distribution.v1beta1.QueryCommunityPoolResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/distribution/v1beta1/tx.ts b/__fixtures__/v-next/outputv4/cosmos/distribution/v1beta1/tx.ts index 53fef0f09b..dcab28295f 100644 --- a/__fixtures__/v-next/outputv4/cosmos/distribution/v1beta1/tx.ts +++ b/__fixtures__/v-next/outputv4/cosmos/distribution/v1beta1/tx.ts @@ -2,6 +2,7 @@ import { Coin, CoinSDKType } from "../../base/v1beta1/coin.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.distribution.v1beta1"; /** * MsgSetWithdrawAddress sets the withdraw address for @@ -11,6 +12,10 @@ export interface MsgSetWithdrawAddress { delegatorAddress: string; withdrawAddress: string; } +export interface ReactiveMsgSetWithdrawAddress { + delegatorAddress: ComputedRef; + withdrawAddress: ComputedRef; +} export interface MsgSetWithdrawAddressProtoMsg { typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress"; value: Uint8Array; @@ -25,6 +30,7 @@ export interface MsgSetWithdrawAddressSDKType { } /** MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress response type. */ export interface MsgSetWithdrawAddressResponse {} +export interface ReactiveMsgSetWithdrawAddressResponse {} export interface MsgSetWithdrawAddressResponseProtoMsg { typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse"; value: Uint8Array; @@ -39,6 +45,10 @@ export interface MsgWithdrawDelegatorReward { delegatorAddress: string; validatorAddress: string; } +export interface ReactiveMsgWithdrawDelegatorReward { + delegatorAddress: ComputedRef; + validatorAddress: ComputedRef; +} export interface MsgWithdrawDelegatorRewardProtoMsg { typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward"; value: Uint8Array; @@ -55,6 +65,9 @@ export interface MsgWithdrawDelegatorRewardSDKType { export interface MsgWithdrawDelegatorRewardResponse { amount: Coin[]; } +export interface ReactiveMsgWithdrawDelegatorRewardResponse { + amount: ComputedRef; +} export interface MsgWithdrawDelegatorRewardResponseProtoMsg { typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse"; value: Uint8Array; @@ -70,6 +83,9 @@ export interface MsgWithdrawDelegatorRewardResponseSDKType { export interface MsgWithdrawValidatorCommission { validatorAddress: string; } +export interface ReactiveMsgWithdrawValidatorCommission { + validatorAddress: ComputedRef; +} export interface MsgWithdrawValidatorCommissionProtoMsg { typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission"; value: Uint8Array; @@ -85,6 +101,9 @@ export interface MsgWithdrawValidatorCommissionSDKType { export interface MsgWithdrawValidatorCommissionResponse { amount: Coin[]; } +export interface ReactiveMsgWithdrawValidatorCommissionResponse { + amount: ComputedRef; +} export interface MsgWithdrawValidatorCommissionResponseProtoMsg { typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse"; value: Uint8Array; @@ -101,6 +120,10 @@ export interface MsgFundCommunityPool { amount: Coin[]; depositor: string; } +export interface ReactiveMsgFundCommunityPool { + amount: ComputedRef; + depositor: ComputedRef; +} export interface MsgFundCommunityPoolProtoMsg { typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPool"; value: Uint8Array; @@ -115,6 +138,7 @@ export interface MsgFundCommunityPoolSDKType { } /** MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool response type. */ export interface MsgFundCommunityPoolResponse {} +export interface ReactiveMsgFundCommunityPoolResponse {} export interface MsgFundCommunityPoolResponseProtoMsg { typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/evidence/v1beta1/evidence.ts b/__fixtures__/v-next/outputv4/cosmos/evidence/v1beta1/evidence.ts index 42ad777489..935e6c31f8 100644 --- a/__fixtures__/v-next/outputv4/cosmos/evidence/v1beta1/evidence.ts +++ b/__fixtures__/v-next/outputv4/cosmos/evidence/v1beta1/evidence.ts @@ -2,6 +2,7 @@ import { Timestamp, TimestampSDKType } from "../../../google/protobuf/timestamp. import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { toTimestamp, fromTimestamp, isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.evidence.v1beta1"; /** * Equivocation implements the Evidence interface and defines evidence of double @@ -13,6 +14,12 @@ export interface Equivocation { power: bigint; consensusAddress: string; } +export interface ReactiveEquivocation { + height: ComputedRef; + time: ComputedRef; + power: ComputedRef; + consensusAddress: ComputedRef; +} export interface EquivocationProtoMsg { typeUrl: "/cosmos.evidence.v1beta1.Equivocation"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/evidence/v1beta1/genesis.ts b/__fixtures__/v-next/outputv4/cosmos/evidence/v1beta1/genesis.ts index 7b0be1fb00..dafc087019 100644 --- a/__fixtures__/v-next/outputv4/cosmos/evidence/v1beta1/genesis.ts +++ b/__fixtures__/v-next/outputv4/cosmos/evidence/v1beta1/genesis.ts @@ -2,12 +2,16 @@ import { Any, AnySDKType } from "../../../google/protobuf/any.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { JsonSafe } from "../../../json-safe.js"; import { DeepPartial } from "../../../helpers.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.evidence.v1beta1"; /** GenesisState defines the evidence module's genesis state. */ export interface GenesisState { /** evidence defines all the evidence at genesis. */ evidence: Any[]; } +export interface ReactiveGenesisState { + evidence: ComputedRef; +} export interface GenesisStateProtoMsg { typeUrl: "/cosmos.evidence.v1beta1.GenesisState"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/evidence/v1beta1/query.rpc.Query.ts b/__fixtures__/v-next/outputv4/cosmos/evidence/v1beta1/query.rpc.Query.ts index 92090f9b74..d61a42c977 100644 --- a/__fixtures__/v-next/outputv4/cosmos/evidence/v1beta1/query.rpc.Query.ts +++ b/__fixtures__/v-next/outputv4/cosmos/evidence/v1beta1/query.rpc.Query.ts @@ -3,7 +3,7 @@ import { Any, AnySDKType } from "../../../google/protobuf/any.js"; import { Rpc } from "../../../helpers.js"; import { BinaryReader } from "../../../binary.js"; import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryEvidenceRequest, QueryEvidenceRequestSDKType, QueryEvidenceResponse, QueryEvidenceResponseSDKType, QueryAllEvidenceRequest, QueryAllEvidenceRequestSDKType, QueryAllEvidenceResponse, QueryAllEvidenceResponseSDKType } from "./query.js"; +import { QueryEvidenceRequest, QueryEvidenceRequestSDKType, QueryEvidenceResponse, QueryEvidenceResponseSDKType, QueryAllEvidenceRequest, QueryAllEvidenceRequestSDKType, QueryAllEvidenceResponse, QueryAllEvidenceResponseSDKType, ReactiveQueryEvidenceRequest, ReactiveQueryAllEvidenceRequest } from "./query.js"; /** Query defines the gRPC querier service. */ export interface Query { /** Evidence queries evidence based on evidence hash. */ diff --git a/__fixtures__/v-next/outputv4/cosmos/evidence/v1beta1/query.ts b/__fixtures__/v-next/outputv4/cosmos/evidence/v1beta1/query.ts index d7ac8657f3..449522406f 100644 --- a/__fixtures__/v-next/outputv4/cosmos/evidence/v1beta1/query.ts +++ b/__fixtures__/v-next/outputv4/cosmos/evidence/v1beta1/query.ts @@ -3,12 +3,16 @@ import { Any, AnySDKType } from "../../../google/protobuf/any.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, bytesFromBase64, base64FromBytes, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.evidence.v1beta1"; /** QueryEvidenceRequest is the request type for the Query/Evidence RPC method. */ export interface QueryEvidenceRequest { /** evidence_hash defines the hash of the requested evidence. */ evidenceHash: Uint8Array; } +export interface ReactiveQueryEvidenceRequest { + evidenceHash: ComputedRef; +} export interface QueryEvidenceRequestProtoMsg { typeUrl: "/cosmos.evidence.v1beta1.QueryEvidenceRequest"; value: Uint8Array; @@ -22,6 +26,9 @@ export interface QueryEvidenceResponse { /** evidence returns the requested evidence. */ evidence?: Any; } +export interface ReactiveQueryEvidenceResponse { + evidence?: ComputedRef; +} export interface QueryEvidenceResponseProtoMsg { typeUrl: "/cosmos.evidence.v1beta1.QueryEvidenceResponse"; value: Uint8Array; @@ -38,6 +45,9 @@ export interface QueryAllEvidenceRequest { /** pagination defines an optional pagination for the request. */ pagination?: PageRequest; } +export interface ReactiveQueryAllEvidenceRequest { + pagination?: ComputedRef; +} export interface QueryAllEvidenceRequestProtoMsg { typeUrl: "/cosmos.evidence.v1beta1.QueryAllEvidenceRequest"; value: Uint8Array; @@ -59,6 +69,10 @@ export interface QueryAllEvidenceResponse { /** pagination defines the pagination in the response. */ pagination?: PageResponse; } +export interface ReactiveQueryAllEvidenceResponse { + evidence: ComputedRef; + pagination?: ComputedRef; +} export interface QueryAllEvidenceResponseProtoMsg { typeUrl: "/cosmos.evidence.v1beta1.QueryAllEvidenceResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/evidence/v1beta1/tx.ts b/__fixtures__/v-next/outputv4/cosmos/evidence/v1beta1/tx.ts index ba89cf9236..01d37fdff7 100644 --- a/__fixtures__/v-next/outputv4/cosmos/evidence/v1beta1/tx.ts +++ b/__fixtures__/v-next/outputv4/cosmos/evidence/v1beta1/tx.ts @@ -2,6 +2,7 @@ import { Any, AnySDKType } from "../../../google/protobuf/any.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial, bytesFromBase64, base64FromBytes } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.evidence.v1beta1"; /** * MsgSubmitEvidence represents a message that supports submitting arbitrary @@ -11,6 +12,10 @@ export interface MsgSubmitEvidence { submitter: string; evidence?: Any; } +export interface ReactiveMsgSubmitEvidence { + submitter: ComputedRef; + evidence?: ComputedRef; +} export interface MsgSubmitEvidenceProtoMsg { typeUrl: "/cosmos.evidence.v1beta1.MsgSubmitEvidence"; value: Uint8Array; @@ -28,6 +33,9 @@ export interface MsgSubmitEvidenceResponse { /** hash defines the hash of the evidence. */ hash: Uint8Array; } +export interface ReactiveMsgSubmitEvidenceResponse { + hash: ComputedRef; +} export interface MsgSubmitEvidenceResponseProtoMsg { typeUrl: "/cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/feegrant/v1beta1/feegrant.ts b/__fixtures__/v-next/outputv4/cosmos/feegrant/v1beta1/feegrant.ts index 6499a4e22c..e0d9e7b6c4 100644 --- a/__fixtures__/v-next/outputv4/cosmos/feegrant/v1beta1/feegrant.ts +++ b/__fixtures__/v-next/outputv4/cosmos/feegrant/v1beta1/feegrant.ts @@ -5,6 +5,7 @@ import { Any, AnySDKType } from "../../../google/protobuf/any.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { toTimestamp, fromTimestamp, isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.feegrant.v1beta1"; /** * BasicAllowance implements Allowance with a one-time grant of tokens @@ -20,6 +21,10 @@ export interface BasicAllowance { /** expiration specifies an optional time when this allowance expires */ expiration?: Date; } +export interface ReactiveBasicAllowance { + spendLimit: ComputedRef; + expiration?: ComputedRef; +} export interface BasicAllowanceProtoMsg { typeUrl: "/cosmos.feegrant.v1beta1.BasicAllowance"; value: Uint8Array; @@ -58,6 +63,13 @@ export interface PeriodicAllowance { */ periodReset: Date; } +export interface ReactivePeriodicAllowance { + basic: ComputedRef; + period: ComputedRef; + periodSpendLimit: ComputedRef; + periodCanSpend: ComputedRef; + periodReset: ComputedRef; +} export interface PeriodicAllowanceProtoMsg { typeUrl: "/cosmos.feegrant.v1beta1.PeriodicAllowance"; value: Uint8Array; @@ -80,6 +92,10 @@ export interface AllowedMsgAllowance { /** allowed_messages are the messages for which the grantee has the access. */ allowedMessages: string[]; } +export interface ReactiveAllowedMsgAllowance { + allowance?: ComputedRef; + allowedMessages: ComputedRef; +} export interface AllowedMsgAllowanceProtoMsg { typeUrl: "/cosmos.feegrant.v1beta1.AllowedMsgAllowance"; value: Uint8Array; @@ -98,6 +114,11 @@ export interface Grant { /** allowance can be any of basic, periodic, allowed fee allowance. */ allowance?: Any; } +export interface ReactiveGrant { + granter: ComputedRef; + grantee: ComputedRef; + allowance?: ComputedRef; +} export interface GrantProtoMsg { typeUrl: "/cosmos.feegrant.v1beta1.Grant"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/feegrant/v1beta1/genesis.ts b/__fixtures__/v-next/outputv4/cosmos/feegrant/v1beta1/genesis.ts index 9befff2814..a9479d7627 100644 --- a/__fixtures__/v-next/outputv4/cosmos/feegrant/v1beta1/genesis.ts +++ b/__fixtures__/v-next/outputv4/cosmos/feegrant/v1beta1/genesis.ts @@ -2,11 +2,15 @@ import { Grant, GrantSDKType } from "./feegrant.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { JsonSafe } from "../../../json-safe.js"; import { DeepPartial } from "../../../helpers.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.feegrant.v1beta1"; /** GenesisState contains a set of fee allowances, persisted from the store */ export interface GenesisState { allowances: Grant[]; } +export interface ReactiveGenesisState { + allowances: ComputedRef; +} export interface GenesisStateProtoMsg { typeUrl: "/cosmos.feegrant.v1beta1.GenesisState"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/feegrant/v1beta1/query.rpc.Query.ts b/__fixtures__/v-next/outputv4/cosmos/feegrant/v1beta1/query.rpc.Query.ts index ce3428cbd6..a72c198fcc 100644 --- a/__fixtures__/v-next/outputv4/cosmos/feegrant/v1beta1/query.rpc.Query.ts +++ b/__fixtures__/v-next/outputv4/cosmos/feegrant/v1beta1/query.rpc.Query.ts @@ -3,7 +3,7 @@ import { Grant, GrantSDKType } from "./feegrant.js"; import { Rpc } from "../../../helpers.js"; import { BinaryReader } from "../../../binary.js"; import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryAllowanceRequest, QueryAllowanceRequestSDKType, QueryAllowanceResponse, QueryAllowanceResponseSDKType, QueryAllowancesRequest, QueryAllowancesRequestSDKType, QueryAllowancesResponse, QueryAllowancesResponseSDKType, QueryAllowancesByGranterRequest, QueryAllowancesByGranterRequestSDKType, QueryAllowancesByGranterResponse, QueryAllowancesByGranterResponseSDKType } from "./query.js"; +import { QueryAllowanceRequest, QueryAllowanceRequestSDKType, QueryAllowanceResponse, QueryAllowanceResponseSDKType, QueryAllowancesRequest, QueryAllowancesRequestSDKType, QueryAllowancesResponse, QueryAllowancesResponseSDKType, QueryAllowancesByGranterRequest, QueryAllowancesByGranterRequestSDKType, QueryAllowancesByGranterResponse, QueryAllowancesByGranterResponseSDKType, ReactiveQueryAllowanceRequest, ReactiveQueryAllowancesRequest, ReactiveQueryAllowancesByGranterRequest } from "./query.js"; /** Query defines the gRPC querier service. */ export interface Query { /** Allowance returns fee granted to the grantee by the granter. */ diff --git a/__fixtures__/v-next/outputv4/cosmos/feegrant/v1beta1/query.ts b/__fixtures__/v-next/outputv4/cosmos/feegrant/v1beta1/query.ts index 73dae7790c..d734b671ec 100644 --- a/__fixtures__/v-next/outputv4/cosmos/feegrant/v1beta1/query.ts +++ b/__fixtures__/v-next/outputv4/cosmos/feegrant/v1beta1/query.ts @@ -3,6 +3,7 @@ import { Grant, GrantSDKType } from "./feegrant.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.feegrant.v1beta1"; /** QueryAllowanceRequest is the request type for the Query/Allowance RPC method. */ export interface QueryAllowanceRequest { @@ -11,6 +12,10 @@ export interface QueryAllowanceRequest { /** grantee is the address of the user being granted an allowance of another user's funds. */ grantee: string; } +export interface ReactiveQueryAllowanceRequest { + granter: ComputedRef; + grantee: ComputedRef; +} export interface QueryAllowanceRequestProtoMsg { typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowanceRequest"; value: Uint8Array; @@ -25,6 +30,9 @@ export interface QueryAllowanceResponse { /** allowance is a allowance granted for grantee by granter. */ allowance?: Grant; } +export interface ReactiveQueryAllowanceResponse { + allowance?: ComputedRef; +} export interface QueryAllowanceResponseProtoMsg { typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowanceResponse"; value: Uint8Array; @@ -39,6 +47,10 @@ export interface QueryAllowancesRequest { /** pagination defines an pagination for the request. */ pagination?: PageRequest; } +export interface ReactiveQueryAllowancesRequest { + grantee: ComputedRef; + pagination?: ComputedRef; +} export interface QueryAllowancesRequestProtoMsg { typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesRequest"; value: Uint8Array; @@ -55,6 +67,10 @@ export interface QueryAllowancesResponse { /** pagination defines an pagination for the response. */ pagination?: PageResponse; } +export interface ReactiveQueryAllowancesResponse { + allowances: ComputedRef; + pagination?: ComputedRef; +} export interface QueryAllowancesResponseProtoMsg { typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesResponse"; value: Uint8Array; @@ -70,6 +86,10 @@ export interface QueryAllowancesByGranterRequest { /** pagination defines an pagination for the request. */ pagination?: PageRequest; } +export interface ReactiveQueryAllowancesByGranterRequest { + granter: ComputedRef; + pagination?: ComputedRef; +} export interface QueryAllowancesByGranterRequestProtoMsg { typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesByGranterRequest"; value: Uint8Array; @@ -86,6 +106,10 @@ export interface QueryAllowancesByGranterResponse { /** pagination defines an pagination for the response. */ pagination?: PageResponse; } +export interface ReactiveQueryAllowancesByGranterResponse { + allowances: ComputedRef; + pagination?: ComputedRef; +} export interface QueryAllowancesByGranterResponseProtoMsg { typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesByGranterResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/feegrant/v1beta1/tx.ts b/__fixtures__/v-next/outputv4/cosmos/feegrant/v1beta1/tx.ts index 5f75d8f93a..a226a879fa 100644 --- a/__fixtures__/v-next/outputv4/cosmos/feegrant/v1beta1/tx.ts +++ b/__fixtures__/v-next/outputv4/cosmos/feegrant/v1beta1/tx.ts @@ -2,6 +2,7 @@ import { Any, AnySDKType } from "../../../google/protobuf/any.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.feegrant.v1beta1"; /** * MsgGrantAllowance adds permission for Grantee to spend up to Allowance @@ -15,6 +16,11 @@ export interface MsgGrantAllowance { /** allowance can be any of basic, periodic, allowed fee allowance. */ allowance?: Any; } +export interface ReactiveMsgGrantAllowance { + granter: ComputedRef; + grantee: ComputedRef; + allowance?: ComputedRef; +} export interface MsgGrantAllowanceProtoMsg { typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowance"; value: Uint8Array; @@ -30,6 +36,7 @@ export interface MsgGrantAllowanceSDKType { } /** MsgGrantAllowanceResponse defines the Msg/GrantAllowanceResponse response type. */ export interface MsgGrantAllowanceResponse {} +export interface ReactiveMsgGrantAllowanceResponse {} export interface MsgGrantAllowanceResponseProtoMsg { typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowanceResponse"; value: Uint8Array; @@ -43,6 +50,10 @@ export interface MsgRevokeAllowance { /** grantee is the address of the user being granted an allowance of another user's funds. */ grantee: string; } +export interface ReactiveMsgRevokeAllowance { + granter: ComputedRef; + grantee: ComputedRef; +} export interface MsgRevokeAllowanceProtoMsg { typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowance"; value: Uint8Array; @@ -54,6 +65,7 @@ export interface MsgRevokeAllowanceSDKType { } /** MsgRevokeAllowanceResponse defines the Msg/RevokeAllowanceResponse response type. */ export interface MsgRevokeAllowanceResponse {} +export interface ReactiveMsgRevokeAllowanceResponse {} export interface MsgRevokeAllowanceResponseProtoMsg { typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowanceResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/genutil/v1beta1/genesis.ts b/__fixtures__/v-next/outputv4/cosmos/genutil/v1beta1/genesis.ts index 82a969fb99..513c51eb49 100644 --- a/__fixtures__/v-next/outputv4/cosmos/genutil/v1beta1/genesis.ts +++ b/__fixtures__/v-next/outputv4/cosmos/genutil/v1beta1/genesis.ts @@ -1,12 +1,16 @@ import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { bytesFromBase64, base64FromBytes, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.genutil.v1beta1"; /** GenesisState defines the raw genesis transaction in JSON. */ export interface GenesisState { /** gen_txs defines the genesis transactions. */ genTxs: Uint8Array[]; } +export interface ReactiveGenesisState { + genTxs: ComputedRef; +} export interface GenesisStateProtoMsg { typeUrl: "/cosmos.genutil.v1beta1.GenesisState"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/gov/v1/genesis.ts b/__fixtures__/v-next/outputv4/cosmos/gov/v1/genesis.ts index 63a6c949db..89a444ba8f 100644 --- a/__fixtures__/v-next/outputv4/cosmos/gov/v1/genesis.ts +++ b/__fixtures__/v-next/outputv4/cosmos/gov/v1/genesis.ts @@ -2,6 +2,7 @@ import { Deposit, DepositSDKType, Vote, VoteSDKType, Proposal, ProposalSDKType, import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.gov.v1"; /** GenesisState defines the gov module's genesis state. */ export interface GenesisState { @@ -20,6 +21,15 @@ export interface GenesisState { /** params defines all the paramaters of related to tally. */ tallyParams?: TallyParams; } +export interface ReactiveGenesisState { + startingProposalId: ComputedRef; + deposits: ComputedRef; + votes: ComputedRef; + proposals: ComputedRef; + depositParams?: ComputedRef; + votingParams?: ComputedRef; + tallyParams?: ComputedRef; +} export interface GenesisStateProtoMsg { typeUrl: "/cosmos.gov.v1.GenesisState"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/gov/v1/gov.ts b/__fixtures__/v-next/outputv4/cosmos/gov/v1/gov.ts index 727f29ec9f..739b2e18d8 100644 --- a/__fixtures__/v-next/outputv4/cosmos/gov/v1/gov.ts +++ b/__fixtures__/v-next/outputv4/cosmos/gov/v1/gov.ts @@ -5,6 +5,7 @@ import { Duration, DurationSDKType } from "../../../google/protobuf/duration.js" import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial, toTimestamp, fromTimestamp } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.gov.v1"; /** VoteOption enumerates the valid vote options for a given governance proposal. */ export enum VoteOption { @@ -143,6 +144,10 @@ export interface WeightedVoteOption { option: VoteOption; weight: string; } +export interface ReactiveWeightedVoteOption { + option: ComputedRef; + weight: ComputedRef; +} export interface WeightedVoteOptionProtoMsg { typeUrl: "/cosmos.gov.v1.WeightedVoteOption"; value: Uint8Array; @@ -161,6 +166,11 @@ export interface Deposit { depositor: string; amount: Coin[]; } +export interface ReactiveDeposit { + proposalId: ComputedRef; + depositor: ComputedRef; + amount: ComputedRef; +} export interface DepositProtoMsg { typeUrl: "/cosmos.gov.v1.Deposit"; value: Uint8Array; @@ -193,6 +203,18 @@ export interface Proposal { /** metadata is any arbitrary metadata attached to the proposal. */ metadata: string; } +export interface ReactiveProposal { + id: ComputedRef; + messages: ComputedRef; + status: ComputedRef; + finalTallyResult?: ComputedRef; + submitTime?: ComputedRef; + depositEndTime?: ComputedRef; + totalDeposit: ComputedRef; + votingStartTime?: ComputedRef; + votingEndTime?: ComputedRef; + metadata: ComputedRef; +} export interface ProposalProtoMsg { typeUrl: "/cosmos.gov.v1.Proposal"; value: Uint8Array; @@ -217,6 +239,12 @@ export interface TallyResult { noCount: string; noWithVetoCount: string; } +export interface ReactiveTallyResult { + yesCount: ComputedRef; + abstainCount: ComputedRef; + noCount: ComputedRef; + noWithVetoCount: ComputedRef; +} export interface TallyResultProtoMsg { typeUrl: "/cosmos.gov.v1.TallyResult"; value: Uint8Array; @@ -239,6 +267,12 @@ export interface Vote { /** metadata is any arbitrary metadata to attached to the vote. */ metadata: string; } +export interface ReactiveVote { + proposalId: ComputedRef; + voter: ComputedRef; + options: ComputedRef; + metadata: ComputedRef; +} export interface VoteProtoMsg { typeUrl: "/cosmos.gov.v1.Vote"; value: Uint8Array; @@ -263,6 +297,10 @@ export interface DepositParams { */ maxDepositPeriod?: Duration; } +export interface ReactiveDepositParams { + minDeposit: ComputedRef; + maxDepositPeriod?: ComputedRef; +} export interface DepositParamsProtoMsg { typeUrl: "/cosmos.gov.v1.DepositParams"; value: Uint8Array; @@ -277,6 +315,9 @@ export interface VotingParams { /** Length of the voting period. */ votingPeriod?: Duration; } +export interface ReactiveVotingParams { + votingPeriod?: ComputedRef; +} export interface VotingParamsProtoMsg { typeUrl: "/cosmos.gov.v1.VotingParams"; value: Uint8Array; @@ -300,6 +341,11 @@ export interface TallyParams { */ vetoThreshold: string; } +export interface ReactiveTallyParams { + quorum: ComputedRef; + threshold: ComputedRef; + vetoThreshold: ComputedRef; +} export interface TallyParamsProtoMsg { typeUrl: "/cosmos.gov.v1.TallyParams"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/gov/v1/query.rpc.Query.ts b/__fixtures__/v-next/outputv4/cosmos/gov/v1/query.rpc.Query.ts index a2c2f959ff..aab51e6ddb 100644 --- a/__fixtures__/v-next/outputv4/cosmos/gov/v1/query.rpc.Query.ts +++ b/__fixtures__/v-next/outputv4/cosmos/gov/v1/query.rpc.Query.ts @@ -2,8 +2,11 @@ import { ProposalStatus, ProposalStatusSDKType, Proposal, ProposalSDKType, Vote, import { PageRequest, PageRequestSDKType, PageResponse, PageResponseSDKType } from "../../base/query/v1beta1/pagination.js"; import { Rpc } from "../../../helpers.js"; import { BinaryReader } from "../../../binary.js"; -import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryProposalRequest, QueryProposalRequestSDKType, QueryProposalResponse, QueryProposalResponseSDKType, QueryProposalsRequest, QueryProposalsRequestSDKType, QueryProposalsResponse, QueryProposalsResponseSDKType, QueryVoteRequest, QueryVoteRequestSDKType, QueryVoteResponse, QueryVoteResponseSDKType, QueryVotesRequest, QueryVotesRequestSDKType, QueryVotesResponse, QueryVotesResponseSDKType, QueryParamsRequest, QueryParamsRequestSDKType, QueryParamsResponse, QueryParamsResponseSDKType, QueryDepositRequest, QueryDepositRequestSDKType, QueryDepositResponse, QueryDepositResponseSDKType, QueryDepositsRequest, QueryDepositsRequestSDKType, QueryDepositsResponse, QueryDepositsResponseSDKType, QueryTallyResultRequest, QueryTallyResultRequestSDKType, QueryTallyResultResponse, QueryTallyResultResponseSDKType } from "./query.js"; +import { QueryClient, createProtobufRpcClient, ProtobufRpcClient } from "@cosmjs/stargate"; +import { VueQueryParams } from "../../../vue-query.js"; +import { ComputedRef, computed, Ref } from "vue"; +import { useQuery } from "@tanstack/vue-query"; +import { QueryProposalRequest, QueryProposalRequestSDKType, QueryProposalResponse, QueryProposalResponseSDKType, QueryProposalsRequest, QueryProposalsRequestSDKType, QueryProposalsResponse, QueryProposalsResponseSDKType, QueryVoteRequest, QueryVoteRequestSDKType, QueryVoteResponse, QueryVoteResponseSDKType, QueryVotesRequest, QueryVotesRequestSDKType, QueryVotesResponse, QueryVotesResponseSDKType, QueryParamsRequest, QueryParamsRequestSDKType, QueryParamsResponse, QueryParamsResponseSDKType, QueryDepositRequest, QueryDepositRequestSDKType, QueryDepositResponse, QueryDepositResponseSDKType, QueryDepositsRequest, QueryDepositsRequestSDKType, QueryDepositsResponse, QueryDepositsResponseSDKType, QueryTallyResultRequest, QueryTallyResultRequestSDKType, QueryTallyResultResponse, QueryTallyResultResponseSDKType, ReactiveQueryProposalRequest, ReactiveQueryProposalsRequest, ReactiveQueryVoteRequest, ReactiveQueryVotesRequest, ReactiveQueryParamsRequest, ReactiveQueryDepositRequest, ReactiveQueryDepositsRequest, ReactiveQueryTallyResultRequest } from "./query.js"; /** Query defines the gRPC querier service for gov module */ export interface Query { /** Proposal queries proposal details based on ProposalID. */ @@ -106,4 +109,254 @@ export const createRpcQueryExtension = (base: QueryClient) => { return queryService.tallyResult(request); } }; +}; +export interface UseProposalQuery extends VueQueryParams { + request: ReactiveQueryProposalRequest; +} +export interface UseProposalsQuery extends VueQueryParams { + request: ReactiveQueryProposalsRequest; +} +export interface UseVoteQuery extends VueQueryParams { + request: ReactiveQueryVoteRequest; +} +export interface UseVotesQuery extends VueQueryParams { + request: ReactiveQueryVotesRequest; +} +export interface UseParamsQuery extends VueQueryParams { + request: ReactiveQueryParamsRequest; +} +export interface UseDepositQuery extends VueQueryParams { + request: ReactiveQueryDepositRequest; +} +export interface UseDepositsQuery extends VueQueryParams { + request: ReactiveQueryDepositsRequest; +} +export interface UseTallyResultQuery extends VueQueryParams { + request: ReactiveQueryTallyResultRequest; +} +export const useQueryService = (rpc: Ref): ComputedRef => { + const _queryClients = new WeakMap(); + return computed(() => { + if (rpc.value) { + if (_queryClients.has(rpc.value)) { + return _queryClients.get(rpc.value); + } + const queryService = new QueryClientImpl(rpc.value); + _queryClients.set(rpc.value, queryService); + return queryService; + } + }); +}; +export const createRpcQueryHooks = (rpc: Ref) => { + const queryService = useQueryService(rpc); + const useProposal = ({ + request, + options + }: UseProposalQuery) => { + const queryKey = ["proposalQuery", queryService]; + if (request) { + Object.values(request).forEach((val: any) => { + queryKey.push(val); + }); + } + return useQuery({ + queryKey, + queryFn: () => { + if (!queryService.value) throw new Error("Query Service not initialized"); + let params = ({} as any); + if (request) { + Object.entries(request).forEach(([key, val]) => { + params[key] = val.value; + }); + } + return queryService.value.proposal(params); + }, + ...options + }); + }; + const useProposals = ({ + request, + options + }: UseProposalsQuery) => { + const queryKey = ["proposalsQuery", queryService]; + if (request) { + Object.values(request).forEach((val: any) => { + queryKey.push(val); + }); + } + return useQuery({ + queryKey, + queryFn: () => { + if (!queryService.value) throw new Error("Query Service not initialized"); + let params = ({} as any); + if (request) { + Object.entries(request).forEach(([key, val]) => { + params[key] = val.value; + }); + } + return queryService.value.proposals(params); + }, + ...options + }); + }; + const useVote = ({ + request, + options + }: UseVoteQuery) => { + const queryKey = ["voteQuery", queryService]; + if (request) { + Object.values(request).forEach((val: any) => { + queryKey.push(val); + }); + } + return useQuery({ + queryKey, + queryFn: () => { + if (!queryService.value) throw new Error("Query Service not initialized"); + let params = ({} as any); + if (request) { + Object.entries(request).forEach(([key, val]) => { + params[key] = val.value; + }); + } + return queryService.value.vote(params); + }, + ...options + }); + }; + const useVotes = ({ + request, + options + }: UseVotesQuery) => { + const queryKey = ["votesQuery", queryService]; + if (request) { + Object.values(request).forEach((val: any) => { + queryKey.push(val); + }); + } + return useQuery({ + queryKey, + queryFn: () => { + if (!queryService.value) throw new Error("Query Service not initialized"); + let params = ({} as any); + if (request) { + Object.entries(request).forEach(([key, val]) => { + params[key] = val.value; + }); + } + return queryService.value.votes(params); + }, + ...options + }); + }; + const useParams = ({ + request, + options + }: UseParamsQuery) => { + const queryKey = ["paramsQuery", queryService]; + if (request) { + Object.values(request).forEach((val: any) => { + queryKey.push(val); + }); + } + return useQuery({ + queryKey, + queryFn: () => { + if (!queryService.value) throw new Error("Query Service not initialized"); + let params = ({} as any); + if (request) { + Object.entries(request).forEach(([key, val]) => { + params[key] = val.value; + }); + } + return queryService.value.params(params); + }, + ...options + }); + }; + const useDeposit = ({ + request, + options + }: UseDepositQuery) => { + const queryKey = ["depositQuery", queryService]; + if (request) { + Object.values(request).forEach((val: any) => { + queryKey.push(val); + }); + } + return useQuery({ + queryKey, + queryFn: () => { + if (!queryService.value) throw new Error("Query Service not initialized"); + let params = ({} as any); + if (request) { + Object.entries(request).forEach(([key, val]) => { + params[key] = val.value; + }); + } + return queryService.value.deposit(params); + }, + ...options + }); + }; + const useDeposits = ({ + request, + options + }: UseDepositsQuery) => { + const queryKey = ["depositsQuery", queryService]; + if (request) { + Object.values(request).forEach((val: any) => { + queryKey.push(val); + }); + } + return useQuery({ + queryKey, + queryFn: () => { + if (!queryService.value) throw new Error("Query Service not initialized"); + let params = ({} as any); + if (request) { + Object.entries(request).forEach(([key, val]) => { + params[key] = val.value; + }); + } + return queryService.value.deposits(params); + }, + ...options + }); + }; + const useTallyResult = ({ + request, + options + }: UseTallyResultQuery) => { + const queryKey = ["tallyResultQuery", queryService]; + if (request) { + Object.values(request).forEach((val: any) => { + queryKey.push(val); + }); + } + return useQuery({ + queryKey, + queryFn: () => { + if (!queryService.value) throw new Error("Query Service not initialized"); + let params = ({} as any); + if (request) { + Object.entries(request).forEach(([key, val]) => { + params[key] = val.value; + }); + } + return queryService.value.tallyResult(params); + }, + ...options + }); + }; + return { + /** Proposal queries proposal details based on ProposalID. */useProposal, + /** Proposals queries all proposals based on given status. */useProposals, + /** Vote queries voted information based on proposalID, voterAddr. */useVote, + /** Votes queries votes of a given proposal. */useVotes, + /** Params queries all parameters of the gov module. */useParams, + /** Deposit queries single deposit information based proposalID, depositAddr. */useDeposit, + /** Deposits queries all deposits of a single proposal. */useDeposits, + /** TallyResult queries the tally of a proposal vote. */useTallyResult + }; }; \ No newline at end of file diff --git a/__fixtures__/v-next/outputv4/cosmos/gov/v1/query.ts b/__fixtures__/v-next/outputv4/cosmos/gov/v1/query.ts index b0032e8b67..a49e3207b2 100644 --- a/__fixtures__/v-next/outputv4/cosmos/gov/v1/query.ts +++ b/__fixtures__/v-next/outputv4/cosmos/gov/v1/query.ts @@ -3,12 +3,16 @@ import { PageRequest, PageRequestSDKType, PageResponse, PageResponseSDKType } fr import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.gov.v1"; /** QueryProposalRequest is the request type for the Query/Proposal RPC method. */ export interface QueryProposalRequest { /** proposal_id defines the unique id of the proposal. */ proposalId: bigint; } +export interface ReactiveQueryProposalRequest { + proposalId: ComputedRef; +} export interface QueryProposalRequestProtoMsg { typeUrl: "/cosmos.gov.v1.QueryProposalRequest"; value: Uint8Array; @@ -21,6 +25,9 @@ export interface QueryProposalRequestSDKType { export interface QueryProposalResponse { proposal?: Proposal; } +export interface ReactiveQueryProposalResponse { + proposal?: ComputedRef; +} export interface QueryProposalResponseProtoMsg { typeUrl: "/cosmos.gov.v1.QueryProposalResponse"; value: Uint8Array; @@ -40,6 +47,12 @@ export interface QueryProposalsRequest { /** pagination defines an optional pagination for the request. */ pagination?: PageRequest; } +export interface ReactiveQueryProposalsRequest { + proposalStatus: ComputedRef; + voter: ComputedRef; + depositor: ComputedRef; + pagination?: ComputedRef; +} export interface QueryProposalsRequestProtoMsg { typeUrl: "/cosmos.gov.v1.QueryProposalsRequest"; value: Uint8Array; @@ -60,6 +73,10 @@ export interface QueryProposalsResponse { /** pagination defines the pagination in the response. */ pagination?: PageResponse; } +export interface ReactiveQueryProposalsResponse { + proposals: ComputedRef; + pagination?: ComputedRef; +} export interface QueryProposalsResponseProtoMsg { typeUrl: "/cosmos.gov.v1.QueryProposalsResponse"; value: Uint8Array; @@ -79,6 +96,10 @@ export interface QueryVoteRequest { /** voter defines the oter address for the proposals. */ voter: string; } +export interface ReactiveQueryVoteRequest { + proposalId: ComputedRef; + voter: ComputedRef; +} export interface QueryVoteRequestProtoMsg { typeUrl: "/cosmos.gov.v1.QueryVoteRequest"; value: Uint8Array; @@ -93,6 +114,9 @@ export interface QueryVoteResponse { /** vote defined the queried vote. */ vote?: Vote; } +export interface ReactiveQueryVoteResponse { + vote?: ComputedRef; +} export interface QueryVoteResponseProtoMsg { typeUrl: "/cosmos.gov.v1.QueryVoteResponse"; value: Uint8Array; @@ -108,6 +132,10 @@ export interface QueryVotesRequest { /** pagination defines an optional pagination for the request. */ pagination?: PageRequest; } +export interface ReactiveQueryVotesRequest { + proposalId: ComputedRef; + pagination?: ComputedRef; +} export interface QueryVotesRequestProtoMsg { typeUrl: "/cosmos.gov.v1.QueryVotesRequest"; value: Uint8Array; @@ -124,6 +152,10 @@ export interface QueryVotesResponse { /** pagination defines the pagination in the response. */ pagination?: PageResponse; } +export interface ReactiveQueryVotesResponse { + votes: ComputedRef; + pagination?: ComputedRef; +} export interface QueryVotesResponseProtoMsg { typeUrl: "/cosmos.gov.v1.QueryVotesResponse"; value: Uint8Array; @@ -141,6 +173,9 @@ export interface QueryParamsRequest { */ paramsType: string; } +export interface ReactiveQueryParamsRequest { + paramsType: ComputedRef; +} export interface QueryParamsRequestProtoMsg { typeUrl: "/cosmos.gov.v1.QueryParamsRequest"; value: Uint8Array; @@ -158,6 +193,11 @@ export interface QueryParamsResponse { /** tally_params defines the parameters related to tally. */ tallyParams?: TallyParams; } +export interface ReactiveQueryParamsResponse { + votingParams?: ComputedRef; + depositParams?: ComputedRef; + tallyParams?: ComputedRef; +} export interface QueryParamsResponseProtoMsg { typeUrl: "/cosmos.gov.v1.QueryParamsResponse"; value: Uint8Array; @@ -175,6 +215,10 @@ export interface QueryDepositRequest { /** depositor defines the deposit addresses from the proposals. */ depositor: string; } +export interface ReactiveQueryDepositRequest { + proposalId: ComputedRef; + depositor: ComputedRef; +} export interface QueryDepositRequestProtoMsg { typeUrl: "/cosmos.gov.v1.QueryDepositRequest"; value: Uint8Array; @@ -189,6 +233,9 @@ export interface QueryDepositResponse { /** deposit defines the requested deposit. */ deposit?: Deposit; } +export interface ReactiveQueryDepositResponse { + deposit?: ComputedRef; +} export interface QueryDepositResponseProtoMsg { typeUrl: "/cosmos.gov.v1.QueryDepositResponse"; value: Uint8Array; @@ -204,6 +251,10 @@ export interface QueryDepositsRequest { /** pagination defines an optional pagination for the request. */ pagination?: PageRequest; } +export interface ReactiveQueryDepositsRequest { + proposalId: ComputedRef; + pagination?: ComputedRef; +} export interface QueryDepositsRequestProtoMsg { typeUrl: "/cosmos.gov.v1.QueryDepositsRequest"; value: Uint8Array; @@ -219,6 +270,10 @@ export interface QueryDepositsResponse { /** pagination defines the pagination in the response. */ pagination?: PageResponse; } +export interface ReactiveQueryDepositsResponse { + deposits: ComputedRef; + pagination?: ComputedRef; +} export interface QueryDepositsResponseProtoMsg { typeUrl: "/cosmos.gov.v1.QueryDepositsResponse"; value: Uint8Array; @@ -233,6 +288,9 @@ export interface QueryTallyResultRequest { /** proposal_id defines the unique id of the proposal. */ proposalId: bigint; } +export interface ReactiveQueryTallyResultRequest { + proposalId: ComputedRef; +} export interface QueryTallyResultRequestProtoMsg { typeUrl: "/cosmos.gov.v1.QueryTallyResultRequest"; value: Uint8Array; @@ -246,6 +304,9 @@ export interface QueryTallyResultResponse { /** tally defines the requested tally. */ tally?: TallyResult; } +export interface ReactiveQueryTallyResultResponse { + tally?: ComputedRef; +} export interface QueryTallyResultResponseProtoMsg { typeUrl: "/cosmos.gov.v1.QueryTallyResultResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/gov/v1/tx.ts b/__fixtures__/v-next/outputv4/cosmos/gov/v1/tx.ts index 2c23564371..8504dfa0fd 100644 --- a/__fixtures__/v-next/outputv4/cosmos/gov/v1/tx.ts +++ b/__fixtures__/v-next/outputv4/cosmos/gov/v1/tx.ts @@ -4,6 +4,7 @@ import { VoteOption, VoteOptionSDKType, WeightedVoteOption, WeightedVoteOptionSD import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.gov.v1"; /** * MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary @@ -16,6 +17,12 @@ export interface MsgSubmitProposal { /** metadata is any arbitrary metadata attached to the proposal. */ metadata: string; } +export interface ReactiveMsgSubmitProposal { + messages: ComputedRef; + initialDeposit: ComputedRef; + proposer: ComputedRef; + metadata: ComputedRef; +} export interface MsgSubmitProposalProtoMsg { typeUrl: "/cosmos.gov.v1.MsgSubmitProposal"; value: Uint8Array; @@ -34,6 +41,9 @@ export interface MsgSubmitProposalSDKType { export interface MsgSubmitProposalResponse { proposalId: bigint; } +export interface ReactiveMsgSubmitProposalResponse { + proposalId: ComputedRef; +} export interface MsgSubmitProposalResponseProtoMsg { typeUrl: "/cosmos.gov.v1.MsgSubmitProposalResponse"; value: Uint8Array; @@ -52,6 +62,10 @@ export interface MsgExecLegacyContent { /** authority must be the gov module address. */ authority: string; } +export interface ReactiveMsgExecLegacyContent { + content?: ComputedRef; + authority: ComputedRef; +} export interface MsgExecLegacyContentProtoMsg { typeUrl: "/cosmos.gov.v1.MsgExecLegacyContent"; value: Uint8Array; @@ -66,6 +80,7 @@ export interface MsgExecLegacyContentSDKType { } /** MsgExecLegacyContentResponse defines the Msg/ExecLegacyContent response type. */ export interface MsgExecLegacyContentResponse {} +export interface ReactiveMsgExecLegacyContentResponse {} export interface MsgExecLegacyContentResponseProtoMsg { typeUrl: "/cosmos.gov.v1.MsgExecLegacyContentResponse"; value: Uint8Array; @@ -79,6 +94,12 @@ export interface MsgVote { option: VoteOption; metadata: string; } +export interface ReactiveMsgVote { + proposalId: ComputedRef; + voter: ComputedRef; + option: ComputedRef; + metadata: ComputedRef; +} export interface MsgVoteProtoMsg { typeUrl: "/cosmos.gov.v1.MsgVote"; value: Uint8Array; @@ -92,6 +113,7 @@ export interface MsgVoteSDKType { } /** MsgVoteResponse defines the Msg/Vote response type. */ export interface MsgVoteResponse {} +export interface ReactiveMsgVoteResponse {} export interface MsgVoteResponseProtoMsg { typeUrl: "/cosmos.gov.v1.MsgVoteResponse"; value: Uint8Array; @@ -105,6 +127,12 @@ export interface MsgVoteWeighted { options: WeightedVoteOption[]; metadata: string; } +export interface ReactiveMsgVoteWeighted { + proposalId: ComputedRef; + voter: ComputedRef; + options: ComputedRef; + metadata: ComputedRef; +} export interface MsgVoteWeightedProtoMsg { typeUrl: "/cosmos.gov.v1.MsgVoteWeighted"; value: Uint8Array; @@ -118,6 +146,7 @@ export interface MsgVoteWeightedSDKType { } /** MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. */ export interface MsgVoteWeightedResponse {} +export interface ReactiveMsgVoteWeightedResponse {} export interface MsgVoteWeightedResponseProtoMsg { typeUrl: "/cosmos.gov.v1.MsgVoteWeightedResponse"; value: Uint8Array; @@ -130,6 +159,11 @@ export interface MsgDeposit { depositor: string; amount: Coin[]; } +export interface ReactiveMsgDeposit { + proposalId: ComputedRef; + depositor: ComputedRef; + amount: ComputedRef; +} export interface MsgDepositProtoMsg { typeUrl: "/cosmos.gov.v1.MsgDeposit"; value: Uint8Array; @@ -142,6 +176,7 @@ export interface MsgDepositSDKType { } /** MsgDepositResponse defines the Msg/Deposit response type. */ export interface MsgDepositResponse {} +export interface ReactiveMsgDepositResponse {} export interface MsgDepositResponseProtoMsg { typeUrl: "/cosmos.gov.v1.MsgDepositResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/gov/v1beta1/genesis.ts b/__fixtures__/v-next/outputv4/cosmos/gov/v1beta1/genesis.ts index 75087fe5df..b2be457be9 100644 --- a/__fixtures__/v-next/outputv4/cosmos/gov/v1beta1/genesis.ts +++ b/__fixtures__/v-next/outputv4/cosmos/gov/v1beta1/genesis.ts @@ -2,6 +2,7 @@ import { Deposit, DepositSDKType, Vote, VoteSDKType, Proposal, ProposalSDKType, import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.gov.v1beta1"; /** GenesisState defines the gov module's genesis state. */ export interface GenesisState { @@ -20,6 +21,15 @@ export interface GenesisState { /** params defines all the paramaters of related to tally. */ tallyParams: TallyParams; } +export interface ReactiveGenesisState { + startingProposalId: ComputedRef; + deposits: ComputedRef; + votes: ComputedRef; + proposals: ComputedRef; + depositParams: ComputedRef; + votingParams: ComputedRef; + tallyParams: ComputedRef; +} export interface GenesisStateProtoMsg { typeUrl: "/cosmos.gov.v1beta1.GenesisState"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/gov/v1beta1/gov.ts b/__fixtures__/v-next/outputv4/cosmos/gov/v1beta1/gov.ts index b1a3feeae6..96b712ea86 100644 --- a/__fixtures__/v-next/outputv4/cosmos/gov/v1beta1/gov.ts +++ b/__fixtures__/v-next/outputv4/cosmos/gov/v1beta1/gov.ts @@ -6,6 +6,7 @@ import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { Decimal } from "@cosmjs/math"; import { isSet, DeepPartial, toTimestamp, fromTimestamp, bytesFromBase64, base64FromBytes } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.gov.v1beta1"; /** VoteOption enumerates the valid vote options for a given governance proposal. */ export enum VoteOption { @@ -148,6 +149,10 @@ export interface WeightedVoteOption { option: VoteOption; weight: string; } +export interface ReactiveWeightedVoteOption { + option: ComputedRef; + weight: ComputedRef; +} export interface WeightedVoteOptionProtoMsg { typeUrl: "/cosmos.gov.v1beta1.WeightedVoteOption"; value: Uint8Array; @@ -169,6 +174,10 @@ export interface TextProposal { title: string; description: string; } +export interface ReactiveTextProposal { + title: ComputedRef; + description: ComputedRef; +} export interface TextProposalProtoMsg { typeUrl: "/cosmos.gov.v1beta1.TextProposal"; value: Uint8Array; @@ -190,6 +199,11 @@ export interface Deposit { depositor: string; amount: Coin[]; } +export interface ReactiveDeposit { + proposalId: ComputedRef; + depositor: ComputedRef; + amount: ComputedRef; +} export interface DepositProtoMsg { typeUrl: "/cosmos.gov.v1beta1.Deposit"; value: Uint8Array; @@ -220,6 +234,17 @@ export interface Proposal { votingStartTime: Date; votingEndTime: Date; } +export interface ReactiveProposal { + proposalId: ComputedRef; + content?: ComputedRef; + status: ComputedRef; + finalTallyResult: ComputedRef; + submitTime: ComputedRef; + depositEndTime: ComputedRef; + totalDeposit: ComputedRef; + votingStartTime: ComputedRef; + votingEndTime: ComputedRef; +} export interface ProposalProtoMsg { typeUrl: "/cosmos.gov.v1beta1.Proposal"; value: Uint8Array; @@ -243,6 +268,12 @@ export interface TallyResult { no: string; noWithVeto: string; } +export interface ReactiveTallyResult { + yes: ComputedRef; + abstain: ComputedRef; + no: ComputedRef; + noWithVeto: ComputedRef; +} export interface TallyResultProtoMsg { typeUrl: "/cosmos.gov.v1beta1.TallyResult"; value: Uint8Array; @@ -271,6 +302,12 @@ export interface Vote { /** Since: cosmos-sdk 0.43 */ options: WeightedVoteOption[]; } +export interface ReactiveVote { + proposalId: ComputedRef; + voter: ComputedRef; + option: ComputedRef; + options: ComputedRef; +} export interface VoteProtoMsg { typeUrl: "/cosmos.gov.v1beta1.Vote"; value: Uint8Array; @@ -296,6 +333,10 @@ export interface DepositParams { */ maxDepositPeriod: Duration; } +export interface ReactiveDepositParams { + minDeposit: ComputedRef; + maxDepositPeriod: ComputedRef; +} export interface DepositParamsProtoMsg { typeUrl: "/cosmos.gov.v1beta1.DepositParams"; value: Uint8Array; @@ -310,6 +351,9 @@ export interface VotingParams { /** Length of the voting period. */ votingPeriod: Duration; } +export interface ReactiveVotingParams { + votingPeriod: ComputedRef; +} export interface VotingParamsProtoMsg { typeUrl: "/cosmos.gov.v1beta1.VotingParams"; value: Uint8Array; @@ -333,6 +377,11 @@ export interface TallyParams { */ vetoThreshold: Uint8Array; } +export interface ReactiveTallyParams { + quorum: ComputedRef; + threshold: ComputedRef; + vetoThreshold: ComputedRef; +} export interface TallyParamsProtoMsg { typeUrl: "/cosmos.gov.v1beta1.TallyParams"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/gov/v1beta1/query.rpc.Query.ts b/__fixtures__/v-next/outputv4/cosmos/gov/v1beta1/query.rpc.Query.ts index 636bddd19b..3f89775b39 100644 --- a/__fixtures__/v-next/outputv4/cosmos/gov/v1beta1/query.rpc.Query.ts +++ b/__fixtures__/v-next/outputv4/cosmos/gov/v1beta1/query.rpc.Query.ts @@ -5,7 +5,7 @@ import { BinaryReader } from "../../../binary.js"; import { QueryClient, createProtobufRpcClient, ProtobufRpcClient } from "@cosmjs/stargate"; import { QueryStore, MobxResponse } from "../../../mobx.js"; import { makeObservable, override } from "mobx"; -import { QueryProposalRequest, QueryProposalRequestSDKType, QueryProposalResponse, QueryProposalResponseSDKType, QueryProposalsRequest, QueryProposalsRequestSDKType, QueryProposalsResponse, QueryProposalsResponseSDKType, QueryVoteRequest, QueryVoteRequestSDKType, QueryVoteResponse, QueryVoteResponseSDKType, QueryVotesRequest, QueryVotesRequestSDKType, QueryVotesResponse, QueryVotesResponseSDKType, QueryParamsRequest, QueryParamsRequestSDKType, QueryParamsResponse, QueryParamsResponseSDKType, QueryDepositRequest, QueryDepositRequestSDKType, QueryDepositResponse, QueryDepositResponseSDKType, QueryDepositsRequest, QueryDepositsRequestSDKType, QueryDepositsResponse, QueryDepositsResponseSDKType, QueryTallyResultRequest, QueryTallyResultRequestSDKType, QueryTallyResultResponse, QueryTallyResultResponseSDKType } from "./query.js"; +import { QueryProposalRequest, QueryProposalRequestSDKType, QueryProposalResponse, QueryProposalResponseSDKType, QueryProposalsRequest, QueryProposalsRequestSDKType, QueryProposalsResponse, QueryProposalsResponseSDKType, QueryVoteRequest, QueryVoteRequestSDKType, QueryVoteResponse, QueryVoteResponseSDKType, QueryVotesRequest, QueryVotesRequestSDKType, QueryVotesResponse, QueryVotesResponseSDKType, QueryParamsRequest, QueryParamsRequestSDKType, QueryParamsResponse, QueryParamsResponseSDKType, QueryDepositRequest, QueryDepositRequestSDKType, QueryDepositResponse, QueryDepositResponseSDKType, QueryDepositsRequest, QueryDepositsRequestSDKType, QueryDepositsResponse, QueryDepositsResponseSDKType, QueryTallyResultRequest, QueryTallyResultRequestSDKType, QueryTallyResultResponse, QueryTallyResultResponseSDKType, ReactiveQueryProposalRequest, ReactiveQueryProposalsRequest, ReactiveQueryVoteRequest, ReactiveQueryVotesRequest, ReactiveQueryParamsRequest, ReactiveQueryDepositRequest, ReactiveQueryDepositsRequest, ReactiveQueryTallyResultRequest } from "./query.js"; /** Query defines the gRPC querier service for gov module */ export interface Query { /** Proposal queries proposal details based on ProposalID. */ diff --git a/__fixtures__/v-next/outputv4/cosmos/gov/v1beta1/query.ts b/__fixtures__/v-next/outputv4/cosmos/gov/v1beta1/query.ts index d107c800b8..f5b9c8ed57 100644 --- a/__fixtures__/v-next/outputv4/cosmos/gov/v1beta1/query.ts +++ b/__fixtures__/v-next/outputv4/cosmos/gov/v1beta1/query.ts @@ -3,12 +3,16 @@ import { PageRequest, PageRequestSDKType, PageResponse, PageResponseSDKType } fr import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.gov.v1beta1"; /** QueryProposalRequest is the request type for the Query/Proposal RPC method. */ export interface QueryProposalRequest { /** proposal_id defines the unique id of the proposal. */ proposalId: bigint; } +export interface ReactiveQueryProposalRequest { + proposalId: ComputedRef; +} export interface QueryProposalRequestProtoMsg { typeUrl: "/cosmos.gov.v1beta1.QueryProposalRequest"; value: Uint8Array; @@ -21,6 +25,9 @@ export interface QueryProposalRequestSDKType { export interface QueryProposalResponse { proposal: Proposal; } +export interface ReactiveQueryProposalResponse { + proposal: ComputedRef; +} export interface QueryProposalResponseProtoMsg { typeUrl: "/cosmos.gov.v1beta1.QueryProposalResponse"; value: Uint8Array; @@ -40,6 +47,12 @@ export interface QueryProposalsRequest { /** pagination defines an optional pagination for the request. */ pagination?: PageRequest; } +export interface ReactiveQueryProposalsRequest { + proposalStatus: ComputedRef; + voter: ComputedRef; + depositor: ComputedRef; + pagination?: ComputedRef; +} export interface QueryProposalsRequestProtoMsg { typeUrl: "/cosmos.gov.v1beta1.QueryProposalsRequest"; value: Uint8Array; @@ -60,6 +73,10 @@ export interface QueryProposalsResponse { /** pagination defines the pagination in the response. */ pagination?: PageResponse; } +export interface ReactiveQueryProposalsResponse { + proposals: ComputedRef; + pagination?: ComputedRef; +} export interface QueryProposalsResponseProtoMsg { typeUrl: "/cosmos.gov.v1beta1.QueryProposalsResponse"; value: Uint8Array; @@ -79,6 +96,10 @@ export interface QueryVoteRequest { /** voter defines the oter address for the proposals. */ voter: string; } +export interface ReactiveQueryVoteRequest { + proposalId: ComputedRef; + voter: ComputedRef; +} export interface QueryVoteRequestProtoMsg { typeUrl: "/cosmos.gov.v1beta1.QueryVoteRequest"; value: Uint8Array; @@ -93,6 +114,9 @@ export interface QueryVoteResponse { /** vote defined the queried vote. */ vote: Vote; } +export interface ReactiveQueryVoteResponse { + vote: ComputedRef; +} export interface QueryVoteResponseProtoMsg { typeUrl: "/cosmos.gov.v1beta1.QueryVoteResponse"; value: Uint8Array; @@ -108,6 +132,10 @@ export interface QueryVotesRequest { /** pagination defines an optional pagination for the request. */ pagination?: PageRequest; } +export interface ReactiveQueryVotesRequest { + proposalId: ComputedRef; + pagination?: ComputedRef; +} export interface QueryVotesRequestProtoMsg { typeUrl: "/cosmos.gov.v1beta1.QueryVotesRequest"; value: Uint8Array; @@ -124,6 +152,10 @@ export interface QueryVotesResponse { /** pagination defines the pagination in the response. */ pagination?: PageResponse; } +export interface ReactiveQueryVotesResponse { + votes: ComputedRef; + pagination?: ComputedRef; +} export interface QueryVotesResponseProtoMsg { typeUrl: "/cosmos.gov.v1beta1.QueryVotesResponse"; value: Uint8Array; @@ -141,6 +173,9 @@ export interface QueryParamsRequest { */ paramsType: string; } +export interface ReactiveQueryParamsRequest { + paramsType: ComputedRef; +} export interface QueryParamsRequestProtoMsg { typeUrl: "/cosmos.gov.v1beta1.QueryParamsRequest"; value: Uint8Array; @@ -158,6 +193,11 @@ export interface QueryParamsResponse { /** tally_params defines the parameters related to tally. */ tallyParams: TallyParams; } +export interface ReactiveQueryParamsResponse { + votingParams: ComputedRef; + depositParams: ComputedRef; + tallyParams: ComputedRef; +} export interface QueryParamsResponseProtoMsg { typeUrl: "/cosmos.gov.v1beta1.QueryParamsResponse"; value: Uint8Array; @@ -175,6 +215,10 @@ export interface QueryDepositRequest { /** depositor defines the deposit addresses from the proposals. */ depositor: string; } +export interface ReactiveQueryDepositRequest { + proposalId: ComputedRef; + depositor: ComputedRef; +} export interface QueryDepositRequestProtoMsg { typeUrl: "/cosmos.gov.v1beta1.QueryDepositRequest"; value: Uint8Array; @@ -189,6 +233,9 @@ export interface QueryDepositResponse { /** deposit defines the requested deposit. */ deposit: Deposit; } +export interface ReactiveQueryDepositResponse { + deposit: ComputedRef; +} export interface QueryDepositResponseProtoMsg { typeUrl: "/cosmos.gov.v1beta1.QueryDepositResponse"; value: Uint8Array; @@ -204,6 +251,10 @@ export interface QueryDepositsRequest { /** pagination defines an optional pagination for the request. */ pagination?: PageRequest; } +export interface ReactiveQueryDepositsRequest { + proposalId: ComputedRef; + pagination?: ComputedRef; +} export interface QueryDepositsRequestProtoMsg { typeUrl: "/cosmos.gov.v1beta1.QueryDepositsRequest"; value: Uint8Array; @@ -219,6 +270,10 @@ export interface QueryDepositsResponse { /** pagination defines the pagination in the response. */ pagination?: PageResponse; } +export interface ReactiveQueryDepositsResponse { + deposits: ComputedRef; + pagination?: ComputedRef; +} export interface QueryDepositsResponseProtoMsg { typeUrl: "/cosmos.gov.v1beta1.QueryDepositsResponse"; value: Uint8Array; @@ -233,6 +288,9 @@ export interface QueryTallyResultRequest { /** proposal_id defines the unique id of the proposal. */ proposalId: bigint; } +export interface ReactiveQueryTallyResultRequest { + proposalId: ComputedRef; +} export interface QueryTallyResultRequestProtoMsg { typeUrl: "/cosmos.gov.v1beta1.QueryTallyResultRequest"; value: Uint8Array; @@ -246,6 +304,9 @@ export interface QueryTallyResultResponse { /** tally defines the requested tally. */ tally: TallyResult; } +export interface ReactiveQueryTallyResultResponse { + tally: ComputedRef; +} export interface QueryTallyResultResponseProtoMsg { typeUrl: "/cosmos.gov.v1beta1.QueryTallyResultResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/gov/v1beta1/tx.ts b/__fixtures__/v-next/outputv4/cosmos/gov/v1beta1/tx.ts index e4600c0f18..432e6b8dbc 100644 --- a/__fixtures__/v-next/outputv4/cosmos/gov/v1beta1/tx.ts +++ b/__fixtures__/v-next/outputv4/cosmos/gov/v1beta1/tx.ts @@ -4,6 +4,7 @@ import { VoteOption, VoteOptionSDKType, WeightedVoteOption, WeightedVoteOptionSD import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.gov.v1beta1"; /** * MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary @@ -14,6 +15,11 @@ export interface MsgSubmitProposal { initialDeposit: Coin[]; proposer: string; } +export interface ReactiveMsgSubmitProposal { + content?: ComputedRef; + initialDeposit: ComputedRef; + proposer: ComputedRef; +} export interface MsgSubmitProposalProtoMsg { typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposal"; value: Uint8Array; @@ -31,6 +37,9 @@ export interface MsgSubmitProposalSDKType { export interface MsgSubmitProposalResponse { proposalId: bigint; } +export interface ReactiveMsgSubmitProposalResponse { + proposalId: ComputedRef; +} export interface MsgSubmitProposalResponseProtoMsg { typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposalResponse"; value: Uint8Array; @@ -45,6 +54,11 @@ export interface MsgVote { voter: string; option: VoteOption; } +export interface ReactiveMsgVote { + proposalId: ComputedRef; + voter: ComputedRef; + option: ComputedRef; +} export interface MsgVoteProtoMsg { typeUrl: "/cosmos.gov.v1beta1.MsgVote"; value: Uint8Array; @@ -57,6 +71,7 @@ export interface MsgVoteSDKType { } /** MsgVoteResponse defines the Msg/Vote response type. */ export interface MsgVoteResponse {} +export interface ReactiveMsgVoteResponse {} export interface MsgVoteResponseProtoMsg { typeUrl: "/cosmos.gov.v1beta1.MsgVoteResponse"; value: Uint8Array; @@ -73,6 +88,11 @@ export interface MsgVoteWeighted { voter: string; options: WeightedVoteOption[]; } +export interface ReactiveMsgVoteWeighted { + proposalId: ComputedRef; + voter: ComputedRef; + options: ComputedRef; +} export interface MsgVoteWeightedProtoMsg { typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeighted"; value: Uint8Array; @@ -93,6 +113,7 @@ export interface MsgVoteWeightedSDKType { * Since: cosmos-sdk 0.43 */ export interface MsgVoteWeightedResponse {} +export interface ReactiveMsgVoteWeightedResponse {} export interface MsgVoteWeightedResponseProtoMsg { typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeightedResponse"; value: Uint8Array; @@ -109,6 +130,11 @@ export interface MsgDeposit { depositor: string; amount: Coin[]; } +export interface ReactiveMsgDeposit { + proposalId: ComputedRef; + depositor: ComputedRef; + amount: ComputedRef; +} export interface MsgDepositProtoMsg { typeUrl: "/cosmos.gov.v1beta1.MsgDeposit"; value: Uint8Array; @@ -121,6 +147,7 @@ export interface MsgDepositSDKType { } /** MsgDepositResponse defines the Msg/Deposit response type. */ export interface MsgDepositResponse {} +export interface ReactiveMsgDepositResponse {} export interface MsgDepositResponseProtoMsg { typeUrl: "/cosmos.gov.v1beta1.MsgDepositResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/group/v1/events.ts b/__fixtures__/v-next/outputv4/cosmos/group/v1/events.ts index 4218f5633e..cd2c8ffa1b 100644 --- a/__fixtures__/v-next/outputv4/cosmos/group/v1/events.ts +++ b/__fixtures__/v-next/outputv4/cosmos/group/v1/events.ts @@ -2,12 +2,16 @@ import { ProposalExecutorResult, ProposalExecutorResultSDKType, proposalExecutor import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.group.v1"; /** EventCreateGroup is an event emitted when a group is created. */ export interface EventCreateGroup { /** group_id is the unique ID of the group. */ groupId: bigint; } +export interface ReactiveEventCreateGroup { + groupId: ComputedRef; +} export interface EventCreateGroupProtoMsg { typeUrl: "/cosmos.group.v1.EventCreateGroup"; value: Uint8Array; @@ -21,6 +25,9 @@ export interface EventUpdateGroup { /** group_id is the unique ID of the group. */ groupId: bigint; } +export interface ReactiveEventUpdateGroup { + groupId: ComputedRef; +} export interface EventUpdateGroupProtoMsg { typeUrl: "/cosmos.group.v1.EventUpdateGroup"; value: Uint8Array; @@ -34,6 +41,9 @@ export interface EventCreateGroupPolicy { /** address is the account address of the group policy. */ address: string; } +export interface ReactiveEventCreateGroupPolicy { + address: ComputedRef; +} export interface EventCreateGroupPolicyProtoMsg { typeUrl: "/cosmos.group.v1.EventCreateGroupPolicy"; value: Uint8Array; @@ -47,6 +57,9 @@ export interface EventUpdateGroupPolicy { /** address is the account address of the group policy. */ address: string; } +export interface ReactiveEventUpdateGroupPolicy { + address: ComputedRef; +} export interface EventUpdateGroupPolicyProtoMsg { typeUrl: "/cosmos.group.v1.EventUpdateGroupPolicy"; value: Uint8Array; @@ -60,6 +73,9 @@ export interface EventSubmitProposal { /** proposal_id is the unique ID of the proposal. */ proposalId: bigint; } +export interface ReactiveEventSubmitProposal { + proposalId: ComputedRef; +} export interface EventSubmitProposalProtoMsg { typeUrl: "/cosmos.group.v1.EventSubmitProposal"; value: Uint8Array; @@ -73,6 +89,9 @@ export interface EventWithdrawProposal { /** proposal_id is the unique ID of the proposal. */ proposalId: bigint; } +export interface ReactiveEventWithdrawProposal { + proposalId: ComputedRef; +} export interface EventWithdrawProposalProtoMsg { typeUrl: "/cosmos.group.v1.EventWithdrawProposal"; value: Uint8Array; @@ -86,6 +105,9 @@ export interface EventVote { /** proposal_id is the unique ID of the proposal. */ proposalId: bigint; } +export interface ReactiveEventVote { + proposalId: ComputedRef; +} export interface EventVoteProtoMsg { typeUrl: "/cosmos.group.v1.EventVote"; value: Uint8Array; @@ -101,6 +123,10 @@ export interface EventExec { /** result is the proposal execution result. */ result: ProposalExecutorResult; } +export interface ReactiveEventExec { + proposalId: ComputedRef; + result: ComputedRef; +} export interface EventExecProtoMsg { typeUrl: "/cosmos.group.v1.EventExec"; value: Uint8Array; @@ -117,6 +143,10 @@ export interface EventLeaveGroup { /** address is the account address of the group member. */ address: string; } +export interface ReactiveEventLeaveGroup { + groupId: ComputedRef; + address: ComputedRef; +} export interface EventLeaveGroupProtoMsg { typeUrl: "/cosmos.group.v1.EventLeaveGroup"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/group/v1/genesis.ts b/__fixtures__/v-next/outputv4/cosmos/group/v1/genesis.ts index 1c6320c3fd..ce4e88e27b 100644 --- a/__fixtures__/v-next/outputv4/cosmos/group/v1/genesis.ts +++ b/__fixtures__/v-next/outputv4/cosmos/group/v1/genesis.ts @@ -2,6 +2,7 @@ import { GroupInfo, GroupInfoSDKType, GroupMember, GroupMemberSDKType, GroupPoli import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.group.v1"; /** GenesisState defines the group module's genesis state. */ export interface GenesisState { @@ -31,6 +32,16 @@ export interface GenesisState { /** votes is the list of votes. */ votes: Vote[]; } +export interface ReactiveGenesisState { + groupSeq: ComputedRef; + groups: ComputedRef; + groupMembers: ComputedRef; + groupPolicySeq: ComputedRef; + groupPolicies: ComputedRef; + proposalSeq: ComputedRef; + proposals: ComputedRef; + votes: ComputedRef; +} export interface GenesisStateProtoMsg { typeUrl: "/cosmos.group.v1.GenesisState"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/group/v1/query.rpc.Query.ts b/__fixtures__/v-next/outputv4/cosmos/group/v1/query.rpc.Query.ts index 9c11b2042f..8a5ff64bea 100644 --- a/__fixtures__/v-next/outputv4/cosmos/group/v1/query.rpc.Query.ts +++ b/__fixtures__/v-next/outputv4/cosmos/group/v1/query.rpc.Query.ts @@ -3,7 +3,7 @@ import { GroupInfo, GroupInfoSDKType, GroupPolicyInfo, GroupPolicyInfoSDKType, G import { Rpc } from "../../../helpers.js"; import { BinaryReader } from "../../../binary.js"; import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryGroupInfoRequest, QueryGroupInfoRequestSDKType, QueryGroupInfoResponse, QueryGroupInfoResponseSDKType, QueryGroupPolicyInfoRequest, QueryGroupPolicyInfoRequestSDKType, QueryGroupPolicyInfoResponse, QueryGroupPolicyInfoResponseSDKType, QueryGroupMembersRequest, QueryGroupMembersRequestSDKType, QueryGroupMembersResponse, QueryGroupMembersResponseSDKType, QueryGroupsByAdminRequest, QueryGroupsByAdminRequestSDKType, QueryGroupsByAdminResponse, QueryGroupsByAdminResponseSDKType, QueryGroupPoliciesByGroupRequest, QueryGroupPoliciesByGroupRequestSDKType, QueryGroupPoliciesByGroupResponse, QueryGroupPoliciesByGroupResponseSDKType, QueryGroupPoliciesByAdminRequest, QueryGroupPoliciesByAdminRequestSDKType, QueryGroupPoliciesByAdminResponse, QueryGroupPoliciesByAdminResponseSDKType, QueryProposalRequest, QueryProposalRequestSDKType, QueryProposalResponse, QueryProposalResponseSDKType, QueryProposalsByGroupPolicyRequest, QueryProposalsByGroupPolicyRequestSDKType, QueryProposalsByGroupPolicyResponse, QueryProposalsByGroupPolicyResponseSDKType, QueryVoteByProposalVoterRequest, QueryVoteByProposalVoterRequestSDKType, QueryVoteByProposalVoterResponse, QueryVoteByProposalVoterResponseSDKType, QueryVotesByProposalRequest, QueryVotesByProposalRequestSDKType, QueryVotesByProposalResponse, QueryVotesByProposalResponseSDKType, QueryVotesByVoterRequest, QueryVotesByVoterRequestSDKType, QueryVotesByVoterResponse, QueryVotesByVoterResponseSDKType, QueryGroupsByMemberRequest, QueryGroupsByMemberRequestSDKType, QueryGroupsByMemberResponse, QueryGroupsByMemberResponseSDKType, QueryTallyResultRequest, QueryTallyResultRequestSDKType, QueryTallyResultResponse, QueryTallyResultResponseSDKType } from "./query.js"; +import { QueryGroupInfoRequest, QueryGroupInfoRequestSDKType, QueryGroupInfoResponse, QueryGroupInfoResponseSDKType, QueryGroupPolicyInfoRequest, QueryGroupPolicyInfoRequestSDKType, QueryGroupPolicyInfoResponse, QueryGroupPolicyInfoResponseSDKType, QueryGroupMembersRequest, QueryGroupMembersRequestSDKType, QueryGroupMembersResponse, QueryGroupMembersResponseSDKType, QueryGroupsByAdminRequest, QueryGroupsByAdminRequestSDKType, QueryGroupsByAdminResponse, QueryGroupsByAdminResponseSDKType, QueryGroupPoliciesByGroupRequest, QueryGroupPoliciesByGroupRequestSDKType, QueryGroupPoliciesByGroupResponse, QueryGroupPoliciesByGroupResponseSDKType, QueryGroupPoliciesByAdminRequest, QueryGroupPoliciesByAdminRequestSDKType, QueryGroupPoliciesByAdminResponse, QueryGroupPoliciesByAdminResponseSDKType, QueryProposalRequest, QueryProposalRequestSDKType, QueryProposalResponse, QueryProposalResponseSDKType, QueryProposalsByGroupPolicyRequest, QueryProposalsByGroupPolicyRequestSDKType, QueryProposalsByGroupPolicyResponse, QueryProposalsByGroupPolicyResponseSDKType, QueryVoteByProposalVoterRequest, QueryVoteByProposalVoterRequestSDKType, QueryVoteByProposalVoterResponse, QueryVoteByProposalVoterResponseSDKType, QueryVotesByProposalRequest, QueryVotesByProposalRequestSDKType, QueryVotesByProposalResponse, QueryVotesByProposalResponseSDKType, QueryVotesByVoterRequest, QueryVotesByVoterRequestSDKType, QueryVotesByVoterResponse, QueryVotesByVoterResponseSDKType, QueryGroupsByMemberRequest, QueryGroupsByMemberRequestSDKType, QueryGroupsByMemberResponse, QueryGroupsByMemberResponseSDKType, QueryTallyResultRequest, QueryTallyResultRequestSDKType, QueryTallyResultResponse, QueryTallyResultResponseSDKType, ReactiveQueryGroupInfoRequest, ReactiveQueryGroupPolicyInfoRequest, ReactiveQueryGroupMembersRequest, ReactiveQueryGroupsByAdminRequest, ReactiveQueryGroupPoliciesByGroupRequest, ReactiveQueryGroupPoliciesByAdminRequest, ReactiveQueryProposalRequest, ReactiveQueryProposalsByGroupPolicyRequest, ReactiveQueryVoteByProposalVoterRequest, ReactiveQueryVotesByProposalRequest, ReactiveQueryVotesByVoterRequest, ReactiveQueryGroupsByMemberRequest, ReactiveQueryTallyResultRequest } from "./query.js"; /** Query is the cosmos.group.v1 Query service. */ export interface Query { /** GroupInfo queries group info based on group id. */ diff --git a/__fixtures__/v-next/outputv4/cosmos/group/v1/query.ts b/__fixtures__/v-next/outputv4/cosmos/group/v1/query.ts index 562060d013..f918f8e59a 100644 --- a/__fixtures__/v-next/outputv4/cosmos/group/v1/query.ts +++ b/__fixtures__/v-next/outputv4/cosmos/group/v1/query.ts @@ -3,12 +3,16 @@ import { GroupInfo, GroupInfoSDKType, GroupPolicyInfo, GroupPolicyInfoSDKType, G import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.group.v1"; /** QueryGroupInfoRequest is the Query/GroupInfo request type. */ export interface QueryGroupInfoRequest { /** group_id is the unique ID of the group. */ groupId: bigint; } +export interface ReactiveQueryGroupInfoRequest { + groupId: ComputedRef; +} export interface QueryGroupInfoRequestProtoMsg { typeUrl: "/cosmos.group.v1.QueryGroupInfoRequest"; value: Uint8Array; @@ -22,6 +26,9 @@ export interface QueryGroupInfoResponse { /** info is the GroupInfo for the group. */ info?: GroupInfo; } +export interface ReactiveQueryGroupInfoResponse { + info?: ComputedRef; +} export interface QueryGroupInfoResponseProtoMsg { typeUrl: "/cosmos.group.v1.QueryGroupInfoResponse"; value: Uint8Array; @@ -35,6 +42,9 @@ export interface QueryGroupPolicyInfoRequest { /** address is the account address of the group policy. */ address: string; } +export interface ReactiveQueryGroupPolicyInfoRequest { + address: ComputedRef; +} export interface QueryGroupPolicyInfoRequestProtoMsg { typeUrl: "/cosmos.group.v1.QueryGroupPolicyInfoRequest"; value: Uint8Array; @@ -48,6 +58,9 @@ export interface QueryGroupPolicyInfoResponse { /** info is the GroupPolicyInfo for the group policy. */ info?: GroupPolicyInfo; } +export interface ReactiveQueryGroupPolicyInfoResponse { + info?: ComputedRef; +} export interface QueryGroupPolicyInfoResponseProtoMsg { typeUrl: "/cosmos.group.v1.QueryGroupPolicyInfoResponse"; value: Uint8Array; @@ -63,6 +76,10 @@ export interface QueryGroupMembersRequest { /** pagination defines an optional pagination for the request. */ pagination?: PageRequest; } +export interface ReactiveQueryGroupMembersRequest { + groupId: ComputedRef; + pagination?: ComputedRef; +} export interface QueryGroupMembersRequestProtoMsg { typeUrl: "/cosmos.group.v1.QueryGroupMembersRequest"; value: Uint8Array; @@ -79,6 +96,10 @@ export interface QueryGroupMembersResponse { /** pagination defines the pagination in the response. */ pagination?: PageResponse; } +export interface ReactiveQueryGroupMembersResponse { + members: ComputedRef; + pagination?: ComputedRef; +} export interface QueryGroupMembersResponseProtoMsg { typeUrl: "/cosmos.group.v1.QueryGroupMembersResponse"; value: Uint8Array; @@ -95,6 +116,10 @@ export interface QueryGroupsByAdminRequest { /** pagination defines an optional pagination for the request. */ pagination?: PageRequest; } +export interface ReactiveQueryGroupsByAdminRequest { + admin: ComputedRef; + pagination?: ComputedRef; +} export interface QueryGroupsByAdminRequestProtoMsg { typeUrl: "/cosmos.group.v1.QueryGroupsByAdminRequest"; value: Uint8Array; @@ -111,6 +136,10 @@ export interface QueryGroupsByAdminResponse { /** pagination defines the pagination in the response. */ pagination?: PageResponse; } +export interface ReactiveQueryGroupsByAdminResponse { + groups: ComputedRef; + pagination?: ComputedRef; +} export interface QueryGroupsByAdminResponseProtoMsg { typeUrl: "/cosmos.group.v1.QueryGroupsByAdminResponse"; value: Uint8Array; @@ -127,6 +156,10 @@ export interface QueryGroupPoliciesByGroupRequest { /** pagination defines an optional pagination for the request. */ pagination?: PageRequest; } +export interface ReactiveQueryGroupPoliciesByGroupRequest { + groupId: ComputedRef; + pagination?: ComputedRef; +} export interface QueryGroupPoliciesByGroupRequestProtoMsg { typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByGroupRequest"; value: Uint8Array; @@ -143,6 +176,10 @@ export interface QueryGroupPoliciesByGroupResponse { /** pagination defines the pagination in the response. */ pagination?: PageResponse; } +export interface ReactiveQueryGroupPoliciesByGroupResponse { + groupPolicies: ComputedRef; + pagination?: ComputedRef; +} export interface QueryGroupPoliciesByGroupResponseProtoMsg { typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByGroupResponse"; value: Uint8Array; @@ -159,6 +196,10 @@ export interface QueryGroupPoliciesByAdminRequest { /** pagination defines an optional pagination for the request. */ pagination?: PageRequest; } +export interface ReactiveQueryGroupPoliciesByAdminRequest { + admin: ComputedRef; + pagination?: ComputedRef; +} export interface QueryGroupPoliciesByAdminRequestProtoMsg { typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByAdminRequest"; value: Uint8Array; @@ -175,6 +216,10 @@ export interface QueryGroupPoliciesByAdminResponse { /** pagination defines the pagination in the response. */ pagination?: PageResponse; } +export interface ReactiveQueryGroupPoliciesByAdminResponse { + groupPolicies: ComputedRef; + pagination?: ComputedRef; +} export interface QueryGroupPoliciesByAdminResponseProtoMsg { typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByAdminResponse"; value: Uint8Array; @@ -189,6 +234,9 @@ export interface QueryProposalRequest { /** proposal_id is the unique ID of a proposal. */ proposalId: bigint; } +export interface ReactiveQueryProposalRequest { + proposalId: ComputedRef; +} export interface QueryProposalRequestProtoMsg { typeUrl: "/cosmos.group.v1.QueryProposalRequest"; value: Uint8Array; @@ -202,6 +250,9 @@ export interface QueryProposalResponse { /** proposal is the proposal info. */ proposal?: Proposal; } +export interface ReactiveQueryProposalResponse { + proposal?: ComputedRef; +} export interface QueryProposalResponseProtoMsg { typeUrl: "/cosmos.group.v1.QueryProposalResponse"; value: Uint8Array; @@ -217,6 +268,10 @@ export interface QueryProposalsByGroupPolicyRequest { /** pagination defines an optional pagination for the request. */ pagination?: PageRequest; } +export interface ReactiveQueryProposalsByGroupPolicyRequest { + address: ComputedRef; + pagination?: ComputedRef; +} export interface QueryProposalsByGroupPolicyRequestProtoMsg { typeUrl: "/cosmos.group.v1.QueryProposalsByGroupPolicyRequest"; value: Uint8Array; @@ -233,6 +288,10 @@ export interface QueryProposalsByGroupPolicyResponse { /** pagination defines the pagination in the response. */ pagination?: PageResponse; } +export interface ReactiveQueryProposalsByGroupPolicyResponse { + proposals: ComputedRef; + pagination?: ComputedRef; +} export interface QueryProposalsByGroupPolicyResponseProtoMsg { typeUrl: "/cosmos.group.v1.QueryProposalsByGroupPolicyResponse"; value: Uint8Array; @@ -249,6 +308,10 @@ export interface QueryVoteByProposalVoterRequest { /** voter is a proposal voter account address. */ voter: string; } +export interface ReactiveQueryVoteByProposalVoterRequest { + proposalId: ComputedRef; + voter: ComputedRef; +} export interface QueryVoteByProposalVoterRequestProtoMsg { typeUrl: "/cosmos.group.v1.QueryVoteByProposalVoterRequest"; value: Uint8Array; @@ -263,6 +326,9 @@ export interface QueryVoteByProposalVoterResponse { /** vote is the vote with given proposal_id and voter. */ vote?: Vote; } +export interface ReactiveQueryVoteByProposalVoterResponse { + vote?: ComputedRef; +} export interface QueryVoteByProposalVoterResponseProtoMsg { typeUrl: "/cosmos.group.v1.QueryVoteByProposalVoterResponse"; value: Uint8Array; @@ -278,6 +344,10 @@ export interface QueryVotesByProposalRequest { /** pagination defines an optional pagination for the request. */ pagination?: PageRequest; } +export interface ReactiveQueryVotesByProposalRequest { + proposalId: ComputedRef; + pagination?: ComputedRef; +} export interface QueryVotesByProposalRequestProtoMsg { typeUrl: "/cosmos.group.v1.QueryVotesByProposalRequest"; value: Uint8Array; @@ -294,6 +364,10 @@ export interface QueryVotesByProposalResponse { /** pagination defines the pagination in the response. */ pagination?: PageResponse; } +export interface ReactiveQueryVotesByProposalResponse { + votes: ComputedRef; + pagination?: ComputedRef; +} export interface QueryVotesByProposalResponseProtoMsg { typeUrl: "/cosmos.group.v1.QueryVotesByProposalResponse"; value: Uint8Array; @@ -310,6 +384,10 @@ export interface QueryVotesByVoterRequest { /** pagination defines an optional pagination for the request. */ pagination?: PageRequest; } +export interface ReactiveQueryVotesByVoterRequest { + voter: ComputedRef; + pagination?: ComputedRef; +} export interface QueryVotesByVoterRequestProtoMsg { typeUrl: "/cosmos.group.v1.QueryVotesByVoterRequest"; value: Uint8Array; @@ -326,6 +404,10 @@ export interface QueryVotesByVoterResponse { /** pagination defines the pagination in the response. */ pagination?: PageResponse; } +export interface ReactiveQueryVotesByVoterResponse { + votes: ComputedRef; + pagination?: ComputedRef; +} export interface QueryVotesByVoterResponseProtoMsg { typeUrl: "/cosmos.group.v1.QueryVotesByVoterResponse"; value: Uint8Array; @@ -342,6 +424,10 @@ export interface QueryGroupsByMemberRequest { /** pagination defines an optional pagination for the request. */ pagination?: PageRequest; } +export interface ReactiveQueryGroupsByMemberRequest { + address: ComputedRef; + pagination?: ComputedRef; +} export interface QueryGroupsByMemberRequestProtoMsg { typeUrl: "/cosmos.group.v1.QueryGroupsByMemberRequest"; value: Uint8Array; @@ -358,6 +444,10 @@ export interface QueryGroupsByMemberResponse { /** pagination defines the pagination in the response. */ pagination?: PageResponse; } +export interface ReactiveQueryGroupsByMemberResponse { + groups: ComputedRef; + pagination?: ComputedRef; +} export interface QueryGroupsByMemberResponseProtoMsg { typeUrl: "/cosmos.group.v1.QueryGroupsByMemberResponse"; value: Uint8Array; @@ -372,6 +462,9 @@ export interface QueryTallyResultRequest { /** proposal_id is the unique id of a proposal. */ proposalId: bigint; } +export interface ReactiveQueryTallyResultRequest { + proposalId: ComputedRef; +} export interface QueryTallyResultRequestProtoMsg { typeUrl: "/cosmos.group.v1.QueryTallyResultRequest"; value: Uint8Array; @@ -385,6 +478,9 @@ export interface QueryTallyResultResponse { /** tally defines the requested tally. */ tally: TallyResult; } +export interface ReactiveQueryTallyResultResponse { + tally: ComputedRef; +} export interface QueryTallyResultResponseProtoMsg { typeUrl: "/cosmos.group.v1.QueryTallyResultResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/group/v1/tx.ts b/__fixtures__/v-next/outputv4/cosmos/group/v1/tx.ts index 781a3a119b..5fc9cf950c 100644 --- a/__fixtures__/v-next/outputv4/cosmos/group/v1/tx.ts +++ b/__fixtures__/v-next/outputv4/cosmos/group/v1/tx.ts @@ -3,6 +3,7 @@ import { Any, AnySDKType } from "../../../google/protobuf/any.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.group.v1"; /** Exec defines modes of execution of a proposal on creation or on new vote. */ export enum Exec { @@ -55,6 +56,11 @@ export interface MsgCreateGroup { /** metadata is any arbitrary metadata to attached to the group. */ metadata: string; } +export interface ReactiveMsgCreateGroup { + admin: ComputedRef; + members: ComputedRef; + metadata: ComputedRef; +} export interface MsgCreateGroupProtoMsg { typeUrl: "/cosmos.group.v1.MsgCreateGroup"; value: Uint8Array; @@ -70,6 +76,9 @@ export interface MsgCreateGroupResponse { /** group_id is the unique ID of the newly created group. */ groupId: bigint; } +export interface ReactiveMsgCreateGroupResponse { + groupId: ComputedRef; +} export interface MsgCreateGroupResponseProtoMsg { typeUrl: "/cosmos.group.v1.MsgCreateGroupResponse"; value: Uint8Array; @@ -90,6 +99,11 @@ export interface MsgUpdateGroupMembers { */ memberUpdates: Member[]; } +export interface ReactiveMsgUpdateGroupMembers { + admin: ComputedRef; + groupId: ComputedRef; + memberUpdates: ComputedRef; +} export interface MsgUpdateGroupMembersProtoMsg { typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembers"; value: Uint8Array; @@ -102,6 +116,7 @@ export interface MsgUpdateGroupMembersSDKType { } /** MsgUpdateGroupMembersResponse is the Msg/UpdateGroupMembers response type. */ export interface MsgUpdateGroupMembersResponse {} +export interface ReactiveMsgUpdateGroupMembersResponse {} export interface MsgUpdateGroupMembersResponseProtoMsg { typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembersResponse"; value: Uint8Array; @@ -117,6 +132,11 @@ export interface MsgUpdateGroupAdmin { /** new_admin is the group new admin account address. */ newAdmin: string; } +export interface ReactiveMsgUpdateGroupAdmin { + admin: ComputedRef; + groupId: ComputedRef; + newAdmin: ComputedRef; +} export interface MsgUpdateGroupAdminProtoMsg { typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdmin"; value: Uint8Array; @@ -129,6 +149,7 @@ export interface MsgUpdateGroupAdminSDKType { } /** MsgUpdateGroupAdminResponse is the Msg/UpdateGroupAdmin response type. */ export interface MsgUpdateGroupAdminResponse {} +export interface ReactiveMsgUpdateGroupAdminResponse {} export interface MsgUpdateGroupAdminResponseProtoMsg { typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdminResponse"; value: Uint8Array; @@ -144,6 +165,11 @@ export interface MsgUpdateGroupMetadata { /** metadata is the updated group's metadata. */ metadata: string; } +export interface ReactiveMsgUpdateGroupMetadata { + admin: ComputedRef; + groupId: ComputedRef; + metadata: ComputedRef; +} export interface MsgUpdateGroupMetadataProtoMsg { typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadata"; value: Uint8Array; @@ -156,6 +182,7 @@ export interface MsgUpdateGroupMetadataSDKType { } /** MsgUpdateGroupMetadataResponse is the Msg/UpdateGroupMetadata response type. */ export interface MsgUpdateGroupMetadataResponse {} +export interface ReactiveMsgUpdateGroupMetadataResponse {} export interface MsgUpdateGroupMetadataResponseProtoMsg { typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadataResponse"; value: Uint8Array; @@ -173,6 +200,12 @@ export interface MsgCreateGroupPolicy { /** decision_policy specifies the group policy's decision policy. */ decisionPolicy?: Any; } +export interface ReactiveMsgCreateGroupPolicy { + admin: ComputedRef; + groupId: ComputedRef; + metadata: ComputedRef; + decisionPolicy?: ComputedRef; +} export interface MsgCreateGroupPolicyProtoMsg { typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicy"; value: Uint8Array; @@ -189,6 +222,9 @@ export interface MsgCreateGroupPolicyResponse { /** address is the account address of the newly created group policy. */ address: string; } +export interface ReactiveMsgCreateGroupPolicyResponse { + address: ComputedRef; +} export interface MsgCreateGroupPolicyResponseProtoMsg { typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicyResponse"; value: Uint8Array; @@ -206,6 +242,11 @@ export interface MsgUpdateGroupPolicyAdmin { /** new_admin is the new group policy admin. */ newAdmin: string; } +export interface ReactiveMsgUpdateGroupPolicyAdmin { + admin: ComputedRef; + address: ComputedRef; + newAdmin: ComputedRef; +} export interface MsgUpdateGroupPolicyAdminProtoMsg { typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin"; value: Uint8Array; @@ -231,6 +272,14 @@ export interface MsgCreateGroupWithPolicy { /** decision_policy specifies the group policy's decision policy. */ decisionPolicy?: Any; } +export interface ReactiveMsgCreateGroupWithPolicy { + admin: ComputedRef; + members: ComputedRef; + groupMetadata: ComputedRef; + groupPolicyMetadata: ComputedRef; + groupPolicyAsAdmin: ComputedRef; + decisionPolicy?: ComputedRef; +} export interface MsgCreateGroupWithPolicyProtoMsg { typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicy"; value: Uint8Array; @@ -251,6 +300,10 @@ export interface MsgCreateGroupWithPolicyResponse { /** group_policy_address is the account address of the newly created group policy. */ groupPolicyAddress: string; } +export interface ReactiveMsgCreateGroupWithPolicyResponse { + groupId: ComputedRef; + groupPolicyAddress: ComputedRef; +} export interface MsgCreateGroupWithPolicyResponseProtoMsg { typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicyResponse"; value: Uint8Array; @@ -262,6 +315,7 @@ export interface MsgCreateGroupWithPolicyResponseSDKType { } /** MsgUpdateGroupPolicyAdminResponse is the Msg/UpdateGroupPolicyAdmin response type. */ export interface MsgUpdateGroupPolicyAdminResponse {} +export interface ReactiveMsgUpdateGroupPolicyAdminResponse {} export interface MsgUpdateGroupPolicyAdminResponseProtoMsg { typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdminResponse"; value: Uint8Array; @@ -277,6 +331,11 @@ export interface MsgUpdateGroupPolicyDecisionPolicy { /** decision_policy is the updated group policy's decision policy. */ decisionPolicy?: Any; } +export interface ReactiveMsgUpdateGroupPolicyDecisionPolicy { + admin: ComputedRef; + address: ComputedRef; + decisionPolicy?: ComputedRef; +} export interface MsgUpdateGroupPolicyDecisionPolicyProtoMsg { typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy"; value: Uint8Array; @@ -289,6 +348,7 @@ export interface MsgUpdateGroupPolicyDecisionPolicySDKType { } /** MsgUpdateGroupPolicyDecisionPolicyResponse is the Msg/UpdateGroupPolicyDecisionPolicy response type. */ export interface MsgUpdateGroupPolicyDecisionPolicyResponse {} +export interface ReactiveMsgUpdateGroupPolicyDecisionPolicyResponse {} export interface MsgUpdateGroupPolicyDecisionPolicyResponseProtoMsg { typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse"; value: Uint8Array; @@ -304,6 +364,11 @@ export interface MsgUpdateGroupPolicyMetadata { /** metadata is the updated group policy metadata. */ metadata: string; } +export interface ReactiveMsgUpdateGroupPolicyMetadata { + admin: ComputedRef; + address: ComputedRef; + metadata: ComputedRef; +} export interface MsgUpdateGroupPolicyMetadataProtoMsg { typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata"; value: Uint8Array; @@ -316,6 +381,7 @@ export interface MsgUpdateGroupPolicyMetadataSDKType { } /** MsgUpdateGroupPolicyMetadataResponse is the Msg/UpdateGroupPolicyMetadata response type. */ export interface MsgUpdateGroupPolicyMetadataResponse {} +export interface ReactiveMsgUpdateGroupPolicyMetadataResponse {} export interface MsgUpdateGroupPolicyMetadataResponseProtoMsg { typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse"; value: Uint8Array; @@ -342,6 +408,13 @@ export interface MsgSubmitProposal { */ exec: Exec; } +export interface ReactiveMsgSubmitProposal { + address: ComputedRef; + proposers: ComputedRef; + metadata: ComputedRef; + messages: ComputedRef; + exec: ComputedRef; +} export interface MsgSubmitProposalProtoMsg { typeUrl: "/cosmos.group.v1.MsgSubmitProposal"; value: Uint8Array; @@ -359,6 +432,9 @@ export interface MsgSubmitProposalResponse { /** proposal is the unique ID of the proposal. */ proposalId: bigint; } +export interface ReactiveMsgSubmitProposalResponse { + proposalId: ComputedRef; +} export interface MsgSubmitProposalResponseProtoMsg { typeUrl: "/cosmos.group.v1.MsgSubmitProposalResponse"; value: Uint8Array; @@ -374,6 +450,10 @@ export interface MsgWithdrawProposal { /** address is the admin of the group policy or one of the proposer of the proposal. */ address: string; } +export interface ReactiveMsgWithdrawProposal { + proposalId: ComputedRef; + address: ComputedRef; +} export interface MsgWithdrawProposalProtoMsg { typeUrl: "/cosmos.group.v1.MsgWithdrawProposal"; value: Uint8Array; @@ -385,6 +465,7 @@ export interface MsgWithdrawProposalSDKType { } /** MsgWithdrawProposalResponse is the Msg/WithdrawProposal response type. */ export interface MsgWithdrawProposalResponse {} +export interface ReactiveMsgWithdrawProposalResponse {} export interface MsgWithdrawProposalResponseProtoMsg { typeUrl: "/cosmos.group.v1.MsgWithdrawProposalResponse"; value: Uint8Array; @@ -407,6 +488,13 @@ export interface MsgVote { */ exec: Exec; } +export interface ReactiveMsgVote { + proposalId: ComputedRef; + voter: ComputedRef; + option: ComputedRef; + metadata: ComputedRef; + exec: ComputedRef; +} export interface MsgVoteProtoMsg { typeUrl: "/cosmos.group.v1.MsgVote"; value: Uint8Array; @@ -421,6 +509,7 @@ export interface MsgVoteSDKType { } /** MsgVoteResponse is the Msg/Vote response type. */ export interface MsgVoteResponse {} +export interface ReactiveMsgVoteResponse {} export interface MsgVoteResponseProtoMsg { typeUrl: "/cosmos.group.v1.MsgVoteResponse"; value: Uint8Array; @@ -434,6 +523,10 @@ export interface MsgExec { /** signer is the account address used to execute the proposal. */ signer: string; } +export interface ReactiveMsgExec { + proposalId: ComputedRef; + signer: ComputedRef; +} export interface MsgExecProtoMsg { typeUrl: "/cosmos.group.v1.MsgExec"; value: Uint8Array; @@ -445,6 +538,7 @@ export interface MsgExecSDKType { } /** MsgExecResponse is the Msg/Exec request type. */ export interface MsgExecResponse {} +export interface ReactiveMsgExecResponse {} export interface MsgExecResponseProtoMsg { typeUrl: "/cosmos.group.v1.MsgExecResponse"; value: Uint8Array; @@ -458,6 +552,10 @@ export interface MsgLeaveGroup { /** group_id is the unique ID of the group. */ groupId: bigint; } +export interface ReactiveMsgLeaveGroup { + address: ComputedRef; + groupId: ComputedRef; +} export interface MsgLeaveGroupProtoMsg { typeUrl: "/cosmos.group.v1.MsgLeaveGroup"; value: Uint8Array; @@ -469,6 +567,7 @@ export interface MsgLeaveGroupSDKType { } /** MsgLeaveGroupResponse is the Msg/LeaveGroup response type. */ export interface MsgLeaveGroupResponse {} +export interface ReactiveMsgLeaveGroupResponse {} export interface MsgLeaveGroupResponseProtoMsg { typeUrl: "/cosmos.group.v1.MsgLeaveGroupResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/group/v1/types.ts b/__fixtures__/v-next/outputv4/cosmos/group/v1/types.ts index c4caae9c4f..8676c5475d 100644 --- a/__fixtures__/v-next/outputv4/cosmos/group/v1/types.ts +++ b/__fixtures__/v-next/outputv4/cosmos/group/v1/types.ts @@ -4,6 +4,7 @@ import { Any, AnySDKType } from "../../../google/protobuf/any.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { toTimestamp, fromTimestamp, isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.group.v1"; /** VoteOption enumerates the valid vote options for a given proposal. */ export enum VoteOption { @@ -228,6 +229,12 @@ export interface Member { /** added_at is a timestamp specifying when a member was added. */ addedAt: Date; } +export interface ReactiveMember { + address: ComputedRef; + weight: ComputedRef; + metadata: ComputedRef; + addedAt: ComputedRef; +} export interface MemberProtoMsg { typeUrl: "/cosmos.group.v1.Member"; value: Uint8Array; @@ -247,6 +254,9 @@ export interface Members { /** members is the list of members. */ members: Member[]; } +export interface ReactiveMembers { + members: ComputedRef; +} export interface MembersProtoMsg { typeUrl: "/cosmos.group.v1.Members"; value: Uint8Array; @@ -262,6 +272,10 @@ export interface ThresholdDecisionPolicy { /** windows defines the different windows for voting and execution. */ windows?: DecisionPolicyWindows; } +export interface ReactiveThresholdDecisionPolicy { + threshold: ComputedRef; + windows?: ComputedRef; +} export interface ThresholdDecisionPolicyProtoMsg { typeUrl: "/cosmos.group.v1.ThresholdDecisionPolicy"; value: Uint8Array; @@ -278,6 +292,10 @@ export interface PercentageDecisionPolicy { /** windows defines the different windows for voting and execution. */ windows?: DecisionPolicyWindows; } +export interface ReactivePercentageDecisionPolicy { + percentage: ComputedRef; + windows?: ComputedRef; +} export interface PercentageDecisionPolicyProtoMsg { typeUrl: "/cosmos.group.v1.PercentageDecisionPolicy"; value: Uint8Array; @@ -309,6 +327,10 @@ export interface DecisionPolicyWindows { */ minExecutionPeriod: Duration; } +export interface ReactiveDecisionPolicyWindows { + votingPeriod: ComputedRef; + minExecutionPeriod: ComputedRef; +} export interface DecisionPolicyWindowsProtoMsg { typeUrl: "/cosmos.group.v1.DecisionPolicyWindows"; value: Uint8Array; @@ -338,6 +360,14 @@ export interface GroupInfo { /** created_at is a timestamp specifying when a group was created. */ createdAt: Date; } +export interface ReactiveGroupInfo { + id: ComputedRef; + admin: ComputedRef; + metadata: ComputedRef; + version: ComputedRef; + totalWeight: ComputedRef; + createdAt: ComputedRef; +} export interface GroupInfoProtoMsg { typeUrl: "/cosmos.group.v1.GroupInfo"; value: Uint8Array; @@ -358,6 +388,10 @@ export interface GroupMember { /** member is the member data. */ member?: Member; } +export interface ReactiveGroupMember { + groupId: ComputedRef; + member?: ComputedRef; +} export interface GroupMemberProtoMsg { typeUrl: "/cosmos.group.v1.GroupMember"; value: Uint8Array; @@ -387,6 +421,15 @@ export interface GroupPolicyInfo { /** created_at is a timestamp specifying when a group policy was created. */ createdAt: Date; } +export interface ReactiveGroupPolicyInfo { + address: ComputedRef; + groupId: ComputedRef; + admin: ComputedRef; + metadata: ComputedRef; + version: ComputedRef; + decisionPolicy?: ComputedRef; + createdAt: ComputedRef; +} export interface GroupPolicyInfoProtoMsg { typeUrl: "/cosmos.group.v1.GroupPolicyInfo"; value: Uint8Array; @@ -455,6 +498,21 @@ export interface Proposal { /** messages is a list of Msgs that will be executed if the proposal passes. */ messages: Any[]; } +export interface ReactiveProposal { + id: ComputedRef; + address: ComputedRef; + metadata: ComputedRef; + proposers: ComputedRef; + submitTime: ComputedRef; + groupVersion: ComputedRef; + groupPolicyVersion: ComputedRef; + status: ComputedRef; + result: ComputedRef; + finalTallyResult: ComputedRef; + votingPeriodEnd: ComputedRef; + executorResult: ComputedRef; + messages: ComputedRef; +} export interface ProposalProtoMsg { typeUrl: "/cosmos.group.v1.Proposal"; value: Uint8Array; @@ -491,6 +549,12 @@ export interface TallyResult { /** no_with_veto_count is the weighted sum of veto. */ noWithVetoCount: string; } +export interface ReactiveTallyResult { + yesCount: ComputedRef; + abstainCount: ComputedRef; + noCount: ComputedRef; + noWithVetoCount: ComputedRef; +} export interface TallyResultProtoMsg { typeUrl: "/cosmos.group.v1.TallyResult"; value: Uint8Array; @@ -515,6 +579,13 @@ export interface Vote { /** submit_time is the timestamp when the vote was submitted. */ submitTime: Date; } +export interface ReactiveVote { + proposalId: ComputedRef; + voter: ComputedRef; + option: ComputedRef; + metadata: ComputedRef; + submitTime: ComputedRef; +} export interface VoteProtoMsg { typeUrl: "/cosmos.group.v1.Vote"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/mint/v1beta1/genesis.ts b/__fixtures__/v-next/outputv4/cosmos/mint/v1beta1/genesis.ts index 0e2ff61b68..77b75050c1 100644 --- a/__fixtures__/v-next/outputv4/cosmos/mint/v1beta1/genesis.ts +++ b/__fixtures__/v-next/outputv4/cosmos/mint/v1beta1/genesis.ts @@ -2,6 +2,7 @@ import { Minter, MinterSDKType, Params, ParamsSDKType } from "./mint.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.mint.v1beta1"; /** GenesisState defines the mint module's genesis state. */ export interface GenesisState { @@ -10,6 +11,10 @@ export interface GenesisState { /** params defines all the paramaters of the module. */ params: Params; } +export interface ReactiveGenesisState { + minter: ComputedRef; + params: ComputedRef; +} export interface GenesisStateProtoMsg { typeUrl: "/cosmos.mint.v1beta1.GenesisState"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/mint/v1beta1/mint.ts b/__fixtures__/v-next/outputv4/cosmos/mint/v1beta1/mint.ts index 313d2b1a56..750f594647 100644 --- a/__fixtures__/v-next/outputv4/cosmos/mint/v1beta1/mint.ts +++ b/__fixtures__/v-next/outputv4/cosmos/mint/v1beta1/mint.ts @@ -2,6 +2,7 @@ import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { Decimal } from "@cosmjs/math"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.mint.v1beta1"; /** Minter represents the minting state. */ export interface Minter { @@ -10,6 +11,10 @@ export interface Minter { /** current annual expected provisions */ annualProvisions: string; } +export interface ReactiveMinter { + inflation: ComputedRef; + annualProvisions: ComputedRef; +} export interface MinterProtoMsg { typeUrl: "/cosmos.mint.v1beta1.Minter"; value: Uint8Array; @@ -34,6 +39,14 @@ export interface Params { /** expected blocks per year */ blocksPerYear: bigint; } +export interface ReactiveParams { + mintDenom: ComputedRef; + inflationRateChange: ComputedRef; + inflationMax: ComputedRef; + inflationMin: ComputedRef; + goalBonded: ComputedRef; + blocksPerYear: ComputedRef; +} export interface ParamsProtoMsg { typeUrl: "/cosmos.mint.v1beta1.Params"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/mint/v1beta1/query.rpc.Query.ts b/__fixtures__/v-next/outputv4/cosmos/mint/v1beta1/query.rpc.Query.ts index 60a24be7ad..dcb49efbc6 100644 --- a/__fixtures__/v-next/outputv4/cosmos/mint/v1beta1/query.rpc.Query.ts +++ b/__fixtures__/v-next/outputv4/cosmos/mint/v1beta1/query.rpc.Query.ts @@ -2,7 +2,7 @@ import { Params, ParamsSDKType } from "./mint.js"; import { Rpc } from "../../../helpers.js"; import { BinaryReader } from "../../../binary.js"; import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryParamsRequest, QueryParamsRequestSDKType, QueryParamsResponse, QueryParamsResponseSDKType, QueryInflationRequest, QueryInflationRequestSDKType, QueryInflationResponse, QueryInflationResponseSDKType, QueryAnnualProvisionsRequest, QueryAnnualProvisionsRequestSDKType, QueryAnnualProvisionsResponse, QueryAnnualProvisionsResponseSDKType } from "./query.js"; +import { QueryParamsRequest, QueryParamsRequestSDKType, QueryParamsResponse, QueryParamsResponseSDKType, QueryInflationRequest, QueryInflationRequestSDKType, QueryInflationResponse, QueryInflationResponseSDKType, QueryAnnualProvisionsRequest, QueryAnnualProvisionsRequestSDKType, QueryAnnualProvisionsResponse, QueryAnnualProvisionsResponseSDKType, ReactiveQueryParamsRequest, ReactiveQueryInflationRequest, ReactiveQueryAnnualProvisionsRequest } from "./query.js"; /** Query provides defines the gRPC querier service. */ export interface Query { /** Params returns the total set of minting parameters. */ diff --git a/__fixtures__/v-next/outputv4/cosmos/mint/v1beta1/query.ts b/__fixtures__/v-next/outputv4/cosmos/mint/v1beta1/query.ts index bedcf3f214..6cf5e499d3 100644 --- a/__fixtures__/v-next/outputv4/cosmos/mint/v1beta1/query.ts +++ b/__fixtures__/v-next/outputv4/cosmos/mint/v1beta1/query.ts @@ -2,9 +2,11 @@ import { Params, ParamsSDKType } from "./mint.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { JsonSafe } from "../../../json-safe.js"; import { DeepPartial, isSet, bytesFromBase64, base64FromBytes } from "../../../helpers.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.mint.v1beta1"; /** QueryParamsRequest is the request type for the Query/Params RPC method. */ export interface QueryParamsRequest {} +export interface ReactiveQueryParamsRequest {} export interface QueryParamsRequestProtoMsg { typeUrl: "/cosmos.mint.v1beta1.QueryParamsRequest"; value: Uint8Array; @@ -16,6 +18,9 @@ export interface QueryParamsResponse { /** params defines the parameters of the module. */ params: Params; } +export interface ReactiveQueryParamsResponse { + params: ComputedRef; +} export interface QueryParamsResponseProtoMsg { typeUrl: "/cosmos.mint.v1beta1.QueryParamsResponse"; value: Uint8Array; @@ -26,6 +31,7 @@ export interface QueryParamsResponseSDKType { } /** QueryInflationRequest is the request type for the Query/Inflation RPC method. */ export interface QueryInflationRequest {} +export interface ReactiveQueryInflationRequest {} export interface QueryInflationRequestProtoMsg { typeUrl: "/cosmos.mint.v1beta1.QueryInflationRequest"; value: Uint8Array; @@ -40,6 +46,9 @@ export interface QueryInflationResponse { /** inflation is the current minting inflation value. */ inflation: Uint8Array; } +export interface ReactiveQueryInflationResponse { + inflation: ComputedRef; +} export interface QueryInflationResponseProtoMsg { typeUrl: "/cosmos.mint.v1beta1.QueryInflationResponse"; value: Uint8Array; @@ -56,6 +65,7 @@ export interface QueryInflationResponseSDKType { * Query/AnnualProvisions RPC method. */ export interface QueryAnnualProvisionsRequest {} +export interface ReactiveQueryAnnualProvisionsRequest {} export interface QueryAnnualProvisionsRequestProtoMsg { typeUrl: "/cosmos.mint.v1beta1.QueryAnnualProvisionsRequest"; value: Uint8Array; @@ -73,6 +83,9 @@ export interface QueryAnnualProvisionsResponse { /** annual_provisions is the current minting annual provisions value. */ annualProvisions: Uint8Array; } +export interface ReactiveQueryAnnualProvisionsResponse { + annualProvisions: ComputedRef; +} export interface QueryAnnualProvisionsResponseProtoMsg { typeUrl: "/cosmos.mint.v1beta1.QueryAnnualProvisionsResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/nft/v1beta1/event.ts b/__fixtures__/v-next/outputv4/cosmos/nft/v1beta1/event.ts index 4acae30a1d..802909697e 100644 --- a/__fixtures__/v-next/outputv4/cosmos/nft/v1beta1/event.ts +++ b/__fixtures__/v-next/outputv4/cosmos/nft/v1beta1/event.ts @@ -1,6 +1,7 @@ import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.nft.v1beta1"; /** EventSend is emitted on Msg/Send */ export interface EventSend { @@ -9,6 +10,12 @@ export interface EventSend { sender: string; receiver: string; } +export interface ReactiveEventSend { + classId: ComputedRef; + id: ComputedRef; + sender: ComputedRef; + receiver: ComputedRef; +} export interface EventSendProtoMsg { typeUrl: "/cosmos.nft.v1beta1.EventSend"; value: Uint8Array; @@ -26,6 +33,11 @@ export interface EventMint { id: string; owner: string; } +export interface ReactiveEventMint { + classId: ComputedRef; + id: ComputedRef; + owner: ComputedRef; +} export interface EventMintProtoMsg { typeUrl: "/cosmos.nft.v1beta1.EventMint"; value: Uint8Array; @@ -42,6 +54,11 @@ export interface EventBurn { id: string; owner: string; } +export interface ReactiveEventBurn { + classId: ComputedRef; + id: ComputedRef; + owner: ComputedRef; +} export interface EventBurnProtoMsg { typeUrl: "/cosmos.nft.v1beta1.EventBurn"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/nft/v1beta1/genesis.ts b/__fixtures__/v-next/outputv4/cosmos/nft/v1beta1/genesis.ts index ee5576545b..140ffcaf26 100644 --- a/__fixtures__/v-next/outputv4/cosmos/nft/v1beta1/genesis.ts +++ b/__fixtures__/v-next/outputv4/cosmos/nft/v1beta1/genesis.ts @@ -2,6 +2,7 @@ import { Class, ClassSDKType, NFT, NFTSDKType } from "./nft.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { JsonSafe } from "../../../json-safe.js"; import { DeepPartial, isSet } from "../../../helpers.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.nft.v1beta1"; /** GenesisState defines the nft module's genesis state. */ export interface GenesisState { @@ -9,6 +10,10 @@ export interface GenesisState { classes: Class[]; entries: Entry[]; } +export interface ReactiveGenesisState { + classes: ComputedRef; + entries: ComputedRef; +} export interface GenesisStateProtoMsg { typeUrl: "/cosmos.nft.v1beta1.GenesisState"; value: Uint8Array; @@ -25,6 +30,10 @@ export interface Entry { /** nfts is a group of nfts of the same owner */ nfts: NFT[]; } +export interface ReactiveEntry { + owner: ComputedRef; + nfts: ComputedRef; +} export interface EntryProtoMsg { typeUrl: "/cosmos.nft.v1beta1.Entry"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/nft/v1beta1/nft.ts b/__fixtures__/v-next/outputv4/cosmos/nft/v1beta1/nft.ts index 9ae4741ebd..a5daf87110 100644 --- a/__fixtures__/v-next/outputv4/cosmos/nft/v1beta1/nft.ts +++ b/__fixtures__/v-next/outputv4/cosmos/nft/v1beta1/nft.ts @@ -2,6 +2,7 @@ import { Any, AnySDKType } from "../../../google/protobuf/any.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.nft.v1beta1"; /** Class defines the class of the nft type. */ export interface Class { @@ -20,6 +21,15 @@ export interface Class { /** data is the app specific metadata of the NFT class. Optional */ data?: Any; } +export interface ReactiveClass { + id: ComputedRef; + name: ComputedRef; + symbol: ComputedRef; + description: ComputedRef; + uri: ComputedRef; + uriHash: ComputedRef; + data?: ComputedRef; +} export interface ClassProtoMsg { typeUrl: "/cosmos.nft.v1beta1.Class"; value: Uint8Array; @@ -47,6 +57,13 @@ export interface NFT { /** data is an app specific data of the NFT. Optional */ data?: Any; } +export interface ReactiveNFT { + classId: ComputedRef; + id: ComputedRef; + uri: ComputedRef; + uriHash: ComputedRef; + data?: ComputedRef; +} export interface NFTProtoMsg { typeUrl: "/cosmos.nft.v1beta1.NFT"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/nft/v1beta1/query.rpc.Query.ts b/__fixtures__/v-next/outputv4/cosmos/nft/v1beta1/query.rpc.Query.ts index abe44f5797..dc097833ff 100644 --- a/__fixtures__/v-next/outputv4/cosmos/nft/v1beta1/query.rpc.Query.ts +++ b/__fixtures__/v-next/outputv4/cosmos/nft/v1beta1/query.rpc.Query.ts @@ -5,7 +5,7 @@ import { BinaryReader } from "../../../binary.js"; import { QueryClient, createProtobufRpcClient, ProtobufRpcClient } from "@cosmjs/stargate"; import { ReactQueryParams } from "../../../react-query.js"; import { useQuery } from "@tanstack/react-query"; -import { QueryBalanceRequest, QueryBalanceRequestSDKType, QueryBalanceResponse, QueryBalanceResponseSDKType, QueryOwnerRequest, QueryOwnerRequestSDKType, QueryOwnerResponse, QueryOwnerResponseSDKType, QuerySupplyRequest, QuerySupplyRequestSDKType, QuerySupplyResponse, QuerySupplyResponseSDKType, QueryNFTsRequest, QueryNFTsRequestSDKType, QueryNFTsResponse, QueryNFTsResponseSDKType, QueryNFTRequest, QueryNFTRequestSDKType, QueryNFTResponse, QueryNFTResponseSDKType, QueryClassRequest, QueryClassRequestSDKType, QueryClassResponse, QueryClassResponseSDKType, QueryClassesRequest, QueryClassesRequestSDKType, QueryClassesResponse, QueryClassesResponseSDKType } from "./query.js"; +import { QueryBalanceRequest, QueryBalanceRequestSDKType, QueryBalanceResponse, QueryBalanceResponseSDKType, QueryOwnerRequest, QueryOwnerRequestSDKType, QueryOwnerResponse, QueryOwnerResponseSDKType, QuerySupplyRequest, QuerySupplyRequestSDKType, QuerySupplyResponse, QuerySupplyResponseSDKType, QueryNFTsRequest, QueryNFTsRequestSDKType, QueryNFTsResponse, QueryNFTsResponseSDKType, QueryNFTRequest, QueryNFTRequestSDKType, QueryNFTResponse, QueryNFTResponseSDKType, QueryClassRequest, QueryClassRequestSDKType, QueryClassResponse, QueryClassResponseSDKType, QueryClassesRequest, QueryClassesRequestSDKType, QueryClassesResponse, QueryClassesResponseSDKType, ReactiveQueryBalanceRequest, ReactiveQueryOwnerRequest, ReactiveQuerySupplyRequest, ReactiveQueryNFTsRequest, ReactiveQueryNFTRequest, ReactiveQueryClassRequest, ReactiveQueryClassesRequest } from "./query.js"; /** Query defines the gRPC querier service. */ export interface Query { /** Balance queries the number of NFTs of a given class owned by the owner, same as balanceOf in ERC721 */ diff --git a/__fixtures__/v-next/outputv4/cosmos/nft/v1beta1/query.ts b/__fixtures__/v-next/outputv4/cosmos/nft/v1beta1/query.ts index 625bac32e8..91c5bdcb9d 100644 --- a/__fixtures__/v-next/outputv4/cosmos/nft/v1beta1/query.ts +++ b/__fixtures__/v-next/outputv4/cosmos/nft/v1beta1/query.ts @@ -3,12 +3,17 @@ import { NFT, NFTSDKType, Class, ClassSDKType } from "./nft.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.nft.v1beta1"; /** QueryBalanceRequest is the request type for the Query/Balance RPC method */ export interface QueryBalanceRequest { classId: string; owner: string; } +export interface ReactiveQueryBalanceRequest { + classId: ComputedRef; + owner: ComputedRef; +} export interface QueryBalanceRequestProtoMsg { typeUrl: "/cosmos.nft.v1beta1.QueryBalanceRequest"; value: Uint8Array; @@ -22,6 +27,9 @@ export interface QueryBalanceRequestSDKType { export interface QueryBalanceResponse { amount: bigint; } +export interface ReactiveQueryBalanceResponse { + amount: ComputedRef; +} export interface QueryBalanceResponseProtoMsg { typeUrl: "/cosmos.nft.v1beta1.QueryBalanceResponse"; value: Uint8Array; @@ -35,6 +43,10 @@ export interface QueryOwnerRequest { classId: string; id: string; } +export interface ReactiveQueryOwnerRequest { + classId: ComputedRef; + id: ComputedRef; +} export interface QueryOwnerRequestProtoMsg { typeUrl: "/cosmos.nft.v1beta1.QueryOwnerRequest"; value: Uint8Array; @@ -48,6 +60,9 @@ export interface QueryOwnerRequestSDKType { export interface QueryOwnerResponse { owner: string; } +export interface ReactiveQueryOwnerResponse { + owner: ComputedRef; +} export interface QueryOwnerResponseProtoMsg { typeUrl: "/cosmos.nft.v1beta1.QueryOwnerResponse"; value: Uint8Array; @@ -60,6 +75,9 @@ export interface QueryOwnerResponseSDKType { export interface QuerySupplyRequest { classId: string; } +export interface ReactiveQuerySupplyRequest { + classId: ComputedRef; +} export interface QuerySupplyRequestProtoMsg { typeUrl: "/cosmos.nft.v1beta1.QuerySupplyRequest"; value: Uint8Array; @@ -72,6 +90,9 @@ export interface QuerySupplyRequestSDKType { export interface QuerySupplyResponse { amount: bigint; } +export interface ReactiveQuerySupplyResponse { + amount: ComputedRef; +} export interface QuerySupplyResponseProtoMsg { typeUrl: "/cosmos.nft.v1beta1.QuerySupplyResponse"; value: Uint8Array; @@ -86,6 +107,11 @@ export interface QueryNFTsRequest { owner: string; pagination?: PageRequest; } +export interface ReactiveQueryNFTsRequest { + classId: ComputedRef; + owner: ComputedRef; + pagination?: ComputedRef; +} export interface QueryNFTsRequestProtoMsg { typeUrl: "/cosmos.nft.v1beta1.QueryNFTsRequest"; value: Uint8Array; @@ -101,6 +127,10 @@ export interface QueryNFTsResponse { nfts: NFT[]; pagination?: PageResponse; } +export interface ReactiveQueryNFTsResponse { + nfts: ComputedRef; + pagination?: ComputedRef; +} export interface QueryNFTsResponseProtoMsg { typeUrl: "/cosmos.nft.v1beta1.QueryNFTsResponse"; value: Uint8Array; @@ -115,6 +145,10 @@ export interface QueryNFTRequest { classId: string; id: string; } +export interface ReactiveQueryNFTRequest { + classId: ComputedRef; + id: ComputedRef; +} export interface QueryNFTRequestProtoMsg { typeUrl: "/cosmos.nft.v1beta1.QueryNFTRequest"; value: Uint8Array; @@ -128,6 +162,9 @@ export interface QueryNFTRequestSDKType { export interface QueryNFTResponse { nft?: NFT; } +export interface ReactiveQueryNFTResponse { + nft?: ComputedRef; +} export interface QueryNFTResponseProtoMsg { typeUrl: "/cosmos.nft.v1beta1.QueryNFTResponse"; value: Uint8Array; @@ -140,6 +177,9 @@ export interface QueryNFTResponseSDKType { export interface QueryClassRequest { classId: string; } +export interface ReactiveQueryClassRequest { + classId: ComputedRef; +} export interface QueryClassRequestProtoMsg { typeUrl: "/cosmos.nft.v1beta1.QueryClassRequest"; value: Uint8Array; @@ -152,6 +192,9 @@ export interface QueryClassRequestSDKType { export interface QueryClassResponse { class?: Class; } +export interface ReactiveQueryClassResponse { + class?: ComputedRef; +} export interface QueryClassResponseProtoMsg { typeUrl: "/cosmos.nft.v1beta1.QueryClassResponse"; value: Uint8Array; @@ -165,6 +208,9 @@ export interface QueryClassesRequest { /** pagination defines an optional pagination for the request. */ pagination?: PageRequest; } +export interface ReactiveQueryClassesRequest { + pagination?: ComputedRef; +} export interface QueryClassesRequestProtoMsg { typeUrl: "/cosmos.nft.v1beta1.QueryClassesRequest"; value: Uint8Array; @@ -178,6 +224,10 @@ export interface QueryClassesResponse { classes: Class[]; pagination?: PageResponse; } +export interface ReactiveQueryClassesResponse { + classes: ComputedRef; + pagination?: ComputedRef; +} export interface QueryClassesResponseProtoMsg { typeUrl: "/cosmos.nft.v1beta1.QueryClassesResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/nft/v1beta1/tx.ts b/__fixtures__/v-next/outputv4/cosmos/nft/v1beta1/tx.ts index 1406834d09..8ce8c2141e 100644 --- a/__fixtures__/v-next/outputv4/cosmos/nft/v1beta1/tx.ts +++ b/__fixtures__/v-next/outputv4/cosmos/nft/v1beta1/tx.ts @@ -1,6 +1,7 @@ import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.nft.v1beta1"; /** MsgSend represents a message to send a nft from one account to another account. */ export interface MsgSend { @@ -13,6 +14,12 @@ export interface MsgSend { /** receiver is the receiver address of nft */ receiver: string; } +export interface ReactiveMsgSend { + classId: ComputedRef; + id: ComputedRef; + sender: ComputedRef; + receiver: ComputedRef; +} export interface MsgSendProtoMsg { typeUrl: "/cosmos.nft.v1beta1.MsgSend"; value: Uint8Array; @@ -26,6 +33,7 @@ export interface MsgSendSDKType { } /** MsgSendResponse defines the Msg/Send response type. */ export interface MsgSendResponse {} +export interface ReactiveMsgSendResponse {} export interface MsgSendResponseProtoMsg { typeUrl: "/cosmos.nft.v1beta1.MsgSendResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/orm/module/v1alpha1/module.ts b/__fixtures__/v-next/outputv4/cosmos/orm/module/v1alpha1/module.ts index 0ddd6499a8..a3edd08ab7 100644 --- a/__fixtures__/v-next/outputv4/cosmos/orm/module/v1alpha1/module.ts +++ b/__fixtures__/v-next/outputv4/cosmos/orm/module/v1alpha1/module.ts @@ -1,6 +1,7 @@ import { BinaryReader, BinaryWriter } from "../../../../binary.js"; import { JsonSafe } from "../../../../json-safe.js"; import { DeepPartial } from "../../../../helpers.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.orm.module.v1alpha1"; /** * Module defines the ORM module which adds providers to the app container for @@ -8,6 +9,7 @@ export const protobufPackage = "cosmos.orm.module.v1alpha1"; * with ORM data. */ export interface Module {} +export interface ReactiveModule {} export interface ModuleProtoMsg { typeUrl: "/cosmos.orm.module.v1alpha1.Module"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/orm/v1/orm.ts b/__fixtures__/v-next/outputv4/cosmos/orm/v1/orm.ts index 2210cff480..a59f25f2a9 100644 --- a/__fixtures__/v-next/outputv4/cosmos/orm/v1/orm.ts +++ b/__fixtures__/v-next/outputv4/cosmos/orm/v1/orm.ts @@ -1,6 +1,7 @@ import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.orm.v1"; /** TableDescriptor describes an ORM table. */ export interface TableDescriptor { @@ -15,6 +16,11 @@ export interface TableDescriptor { */ id: number; } +export interface ReactiveTableDescriptor { + primaryKey?: ComputedRef; + index: ComputedRef; + id: ComputedRef; +} export interface TableDescriptorProtoMsg { typeUrl: "/cosmos.orm.v1.TableDescriptor"; value: Uint8Array; @@ -67,6 +73,10 @@ export interface PrimaryKeyDescriptor { */ autoIncrement: boolean; } +export interface ReactivePrimaryKeyDescriptor { + fields: ComputedRef; + autoIncrement: ComputedRef; +} export interface PrimaryKeyDescriptorProtoMsg { typeUrl: "/cosmos.orm.v1.PrimaryKeyDescriptor"; value: Uint8Array; @@ -99,6 +109,11 @@ export interface SecondaryIndexDescriptor { /** unique specifies that this an unique index. */ unique: boolean; } +export interface ReactiveSecondaryIndexDescriptor { + fields: ComputedRef; + id: ComputedRef; + unique: ComputedRef; +} export interface SecondaryIndexDescriptorProtoMsg { typeUrl: "/cosmos.orm.v1.SecondaryIndexDescriptor"; value: Uint8Array; @@ -118,6 +133,9 @@ export interface SingletonDescriptor { */ id: number; } +export interface ReactiveSingletonDescriptor { + id: ComputedRef; +} export interface SingletonDescriptorProtoMsg { typeUrl: "/cosmos.orm.v1.SingletonDescriptor"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/orm/v1alpha1/schema.ts b/__fixtures__/v-next/outputv4/cosmos/orm/v1alpha1/schema.ts index cc5c217cf8..28bd2dc205 100644 --- a/__fixtures__/v-next/outputv4/cosmos/orm/v1alpha1/schema.ts +++ b/__fixtures__/v-next/outputv4/cosmos/orm/v1alpha1/schema.ts @@ -1,6 +1,7 @@ import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, bytesFromBase64, base64FromBytes, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.orm.v1alpha1"; /** StorageType */ export enum StorageType { @@ -95,6 +96,10 @@ export interface ModuleSchemaDescriptor { */ prefix: Uint8Array; } +export interface ReactiveModuleSchemaDescriptor { + schemaFile: ComputedRef; + prefix: ComputedRef; +} export interface ModuleSchemaDescriptorProtoMsg { typeUrl: "/cosmos.orm.v1alpha1.ModuleSchemaDescriptor"; value: Uint8Array; @@ -124,6 +129,11 @@ export interface ModuleSchemaDescriptor_FileEntry { */ storageType: StorageType; } +export interface ReactiveModuleSchemaDescriptor_FileEntry { + id: ComputedRef; + protoFileName: ComputedRef; + storageType: ComputedRef; +} export interface ModuleSchemaDescriptor_FileEntryProtoMsg { typeUrl: "/cosmos.orm.v1alpha1.FileEntry"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/params/v1beta1/params.ts b/__fixtures__/v-next/outputv4/cosmos/params/v1beta1/params.ts index 2253d97aac..46cf22777d 100644 --- a/__fixtures__/v-next/outputv4/cosmos/params/v1beta1/params.ts +++ b/__fixtures__/v-next/outputv4/cosmos/params/v1beta1/params.ts @@ -1,6 +1,7 @@ import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.params.v1beta1"; /** ParameterChangeProposal defines a proposal to change one or more parameters. */ export interface ParameterChangeProposal { @@ -8,6 +9,11 @@ export interface ParameterChangeProposal { description: string; changes: ParamChange[]; } +export interface ReactiveParameterChangeProposal { + title: ComputedRef; + description: ComputedRef; + changes: ComputedRef; +} export interface ParameterChangeProposalProtoMsg { typeUrl: "/cosmos.params.v1beta1.ParameterChangeProposal"; value: Uint8Array; @@ -27,6 +33,11 @@ export interface ParamChange { key: string; value: string; } +export interface ReactiveParamChange { + subspace: ComputedRef; + key: ComputedRef; + value: ComputedRef; +} export interface ParamChangeProtoMsg { typeUrl: "/cosmos.params.v1beta1.ParamChange"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/params/v1beta1/query.rpc.Query.ts b/__fixtures__/v-next/outputv4/cosmos/params/v1beta1/query.rpc.Query.ts index 79b76656f2..30575d99b9 100644 --- a/__fixtures__/v-next/outputv4/cosmos/params/v1beta1/query.rpc.Query.ts +++ b/__fixtures__/v-next/outputv4/cosmos/params/v1beta1/query.rpc.Query.ts @@ -2,7 +2,7 @@ import { ParamChange, ParamChangeSDKType } from "./params.js"; import { Rpc } from "../../../helpers.js"; import { BinaryReader } from "../../../binary.js"; import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryParamsRequest, QueryParamsRequestSDKType, QueryParamsResponse, QueryParamsResponseSDKType, QuerySubspacesRequest, QuerySubspacesRequestSDKType, QuerySubspacesResponse, QuerySubspacesResponseSDKType } from "./query.js"; +import { QueryParamsRequest, QueryParamsRequestSDKType, QueryParamsResponse, QueryParamsResponseSDKType, QuerySubspacesRequest, QuerySubspacesRequestSDKType, QuerySubspacesResponse, QuerySubspacesResponseSDKType, ReactiveQueryParamsRequest, ReactiveQuerySubspacesRequest } from "./query.js"; /** Query defines the gRPC querier service. */ export interface Query { /** diff --git a/__fixtures__/v-next/outputv4/cosmos/params/v1beta1/query.ts b/__fixtures__/v-next/outputv4/cosmos/params/v1beta1/query.ts index 206aeb146a..b4bcc4912b 100644 --- a/__fixtures__/v-next/outputv4/cosmos/params/v1beta1/query.ts +++ b/__fixtures__/v-next/outputv4/cosmos/params/v1beta1/query.ts @@ -2,6 +2,7 @@ import { ParamChange, ParamChangeSDKType } from "./params.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.params.v1beta1"; /** QueryParamsRequest is request type for the Query/Params RPC method. */ export interface QueryParamsRequest { @@ -10,6 +11,10 @@ export interface QueryParamsRequest { /** key defines the key of the parameter in the subspace. */ key: string; } +export interface ReactiveQueryParamsRequest { + subspace: ComputedRef; + key: ComputedRef; +} export interface QueryParamsRequestProtoMsg { typeUrl: "/cosmos.params.v1beta1.QueryParamsRequest"; value: Uint8Array; @@ -24,6 +29,9 @@ export interface QueryParamsResponse { /** param defines the queried parameter. */ param: ParamChange; } +export interface ReactiveQueryParamsResponse { + param: ComputedRef; +} export interface QueryParamsResponseProtoMsg { typeUrl: "/cosmos.params.v1beta1.QueryParamsResponse"; value: Uint8Array; @@ -37,6 +45,7 @@ export interface QueryParamsResponseSDKType { * subspaces and all keys for a subspace. */ export interface QuerySubspacesRequest {} +export interface ReactiveQuerySubspacesRequest {} export interface QuerySubspacesRequestProtoMsg { typeUrl: "/cosmos.params.v1beta1.QuerySubspacesRequest"; value: Uint8Array; @@ -53,6 +62,9 @@ export interface QuerySubspacesRequestSDKType {} export interface QuerySubspacesResponse { subspaces: Subspace[]; } +export interface ReactiveQuerySubspacesResponse { + subspaces: ComputedRef; +} export interface QuerySubspacesResponseProtoMsg { typeUrl: "/cosmos.params.v1beta1.QuerySubspacesResponse"; value: Uint8Array; @@ -72,6 +84,10 @@ export interface Subspace { subspace: string; keys: string[]; } +export interface ReactiveSubspace { + subspace: ComputedRef; + keys: ComputedRef; +} export interface SubspaceProtoMsg { typeUrl: "/cosmos.params.v1beta1.Subspace"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/slashing/v1beta1/genesis.ts b/__fixtures__/v-next/outputv4/cosmos/slashing/v1beta1/genesis.ts index d99b4d75ce..334e57414c 100644 --- a/__fixtures__/v-next/outputv4/cosmos/slashing/v1beta1/genesis.ts +++ b/__fixtures__/v-next/outputv4/cosmos/slashing/v1beta1/genesis.ts @@ -2,6 +2,7 @@ import { Params, ParamsSDKType, ValidatorSigningInfo, ValidatorSigningInfoSDKTyp import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.slashing.v1beta1"; /** GenesisState defines the slashing module's genesis state. */ export interface GenesisState { @@ -18,6 +19,11 @@ export interface GenesisState { */ missedBlocks: ValidatorMissedBlocks[]; } +export interface ReactiveGenesisState { + params: ComputedRef; + signingInfos: ComputedRef; + missedBlocks: ComputedRef; +} export interface GenesisStateProtoMsg { typeUrl: "/cosmos.slashing.v1beta1.GenesisState"; value: Uint8Array; @@ -35,6 +41,10 @@ export interface SigningInfo { /** validator_signing_info represents the signing info of this validator. */ validatorSigningInfo: ValidatorSigningInfo; } +export interface ReactiveSigningInfo { + address: ComputedRef; + validatorSigningInfo: ComputedRef; +} export interface SigningInfoProtoMsg { typeUrl: "/cosmos.slashing.v1beta1.SigningInfo"; value: Uint8Array; @@ -54,6 +64,10 @@ export interface ValidatorMissedBlocks { /** missed_blocks is an array of missed blocks by the validator. */ missedBlocks: MissedBlock[]; } +export interface ReactiveValidatorMissedBlocks { + address: ComputedRef; + missedBlocks: ComputedRef; +} export interface ValidatorMissedBlocksProtoMsg { typeUrl: "/cosmos.slashing.v1beta1.ValidatorMissedBlocks"; value: Uint8Array; @@ -73,6 +87,10 @@ export interface MissedBlock { /** missed is the missed status. */ missed: boolean; } +export interface ReactiveMissedBlock { + index: ComputedRef; + missed: ComputedRef; +} export interface MissedBlockProtoMsg { typeUrl: "/cosmos.slashing.v1beta1.MissedBlock"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/slashing/v1beta1/query.rpc.Query.ts b/__fixtures__/v-next/outputv4/cosmos/slashing/v1beta1/query.rpc.Query.ts index 0808cf79b5..57893a7e11 100644 --- a/__fixtures__/v-next/outputv4/cosmos/slashing/v1beta1/query.rpc.Query.ts +++ b/__fixtures__/v-next/outputv4/cosmos/slashing/v1beta1/query.rpc.Query.ts @@ -3,7 +3,7 @@ import { Params, ParamsSDKType, ValidatorSigningInfo, ValidatorSigningInfoSDKTyp import { Rpc } from "../../../helpers.js"; import { BinaryReader } from "../../../binary.js"; import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryParamsRequest, QueryParamsRequestSDKType, QueryParamsResponse, QueryParamsResponseSDKType, QuerySigningInfoRequest, QuerySigningInfoRequestSDKType, QuerySigningInfoResponse, QuerySigningInfoResponseSDKType, QuerySigningInfosRequest, QuerySigningInfosRequestSDKType, QuerySigningInfosResponse, QuerySigningInfosResponseSDKType } from "./query.js"; +import { QueryParamsRequest, QueryParamsRequestSDKType, QueryParamsResponse, QueryParamsResponseSDKType, QuerySigningInfoRequest, QuerySigningInfoRequestSDKType, QuerySigningInfoResponse, QuerySigningInfoResponseSDKType, QuerySigningInfosRequest, QuerySigningInfosRequestSDKType, QuerySigningInfosResponse, QuerySigningInfosResponseSDKType, ReactiveQueryParamsRequest, ReactiveQuerySigningInfoRequest, ReactiveQuerySigningInfosRequest } from "./query.js"; /** Query provides defines the gRPC querier service */ export interface Query { /** Params queries the parameters of slashing module */ diff --git a/__fixtures__/v-next/outputv4/cosmos/slashing/v1beta1/query.ts b/__fixtures__/v-next/outputv4/cosmos/slashing/v1beta1/query.ts index 2156c1bcbb..e1fae18f07 100644 --- a/__fixtures__/v-next/outputv4/cosmos/slashing/v1beta1/query.ts +++ b/__fixtures__/v-next/outputv4/cosmos/slashing/v1beta1/query.ts @@ -3,9 +3,11 @@ import { Params, ParamsSDKType, ValidatorSigningInfo, ValidatorSigningInfoSDKTyp import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { JsonSafe } from "../../../json-safe.js"; import { DeepPartial, isSet } from "../../../helpers.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.slashing.v1beta1"; /** QueryParamsRequest is the request type for the Query/Params RPC method */ export interface QueryParamsRequest {} +export interface ReactiveQueryParamsRequest {} export interface QueryParamsRequestProtoMsg { typeUrl: "/cosmos.slashing.v1beta1.QueryParamsRequest"; value: Uint8Array; @@ -16,6 +18,9 @@ export interface QueryParamsRequestSDKType {} export interface QueryParamsResponse { params: Params; } +export interface ReactiveQueryParamsResponse { + params: ComputedRef; +} export interface QueryParamsResponseProtoMsg { typeUrl: "/cosmos.slashing.v1beta1.QueryParamsResponse"; value: Uint8Array; @@ -32,6 +37,9 @@ export interface QuerySigningInfoRequest { /** cons_address is the address to query signing info of */ consAddress: string; } +export interface ReactiveQuerySigningInfoRequest { + consAddress: ComputedRef; +} export interface QuerySigningInfoRequestProtoMsg { typeUrl: "/cosmos.slashing.v1beta1.QuerySigningInfoRequest"; value: Uint8Array; @@ -51,6 +59,9 @@ export interface QuerySigningInfoResponse { /** val_signing_info is the signing info of requested val cons address */ valSigningInfo: ValidatorSigningInfo; } +export interface ReactiveQuerySigningInfoResponse { + valSigningInfo: ComputedRef; +} export interface QuerySigningInfoResponseProtoMsg { typeUrl: "/cosmos.slashing.v1beta1.QuerySigningInfoResponse"; value: Uint8Array; @@ -69,6 +80,9 @@ export interface QuerySigningInfoResponseSDKType { export interface QuerySigningInfosRequest { pagination?: PageRequest; } +export interface ReactiveQuerySigningInfosRequest { + pagination?: ComputedRef; +} export interface QuerySigningInfosRequestProtoMsg { typeUrl: "/cosmos.slashing.v1beta1.QuerySigningInfosRequest"; value: Uint8Array; @@ -89,6 +103,10 @@ export interface QuerySigningInfosResponse { info: ValidatorSigningInfo[]; pagination?: PageResponse; } +export interface ReactiveQuerySigningInfosResponse { + info: ComputedRef; + pagination?: ComputedRef; +} export interface QuerySigningInfosResponseProtoMsg { typeUrl: "/cosmos.slashing.v1beta1.QuerySigningInfosResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/slashing/v1beta1/slashing.ts b/__fixtures__/v-next/outputv4/cosmos/slashing/v1beta1/slashing.ts index 288dc3e078..659cf817cd 100644 --- a/__fixtures__/v-next/outputv4/cosmos/slashing/v1beta1/slashing.ts +++ b/__fixtures__/v-next/outputv4/cosmos/slashing/v1beta1/slashing.ts @@ -3,6 +3,7 @@ import { Duration, DurationSDKType } from "../../../google/protobuf/duration.js" import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { toTimestamp, fromTimestamp, isSet, DeepPartial, bytesFromBase64, base64FromBytes } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.slashing.v1beta1"; /** * ValidatorSigningInfo defines a validator's signing info for monitoring their @@ -31,6 +32,14 @@ export interface ValidatorSigningInfo { */ missedBlocksCounter: bigint; } +export interface ReactiveValidatorSigningInfo { + address: ComputedRef; + startHeight: ComputedRef; + indexOffset: ComputedRef; + jailedUntil: ComputedRef; + tombstoned: ComputedRef; + missedBlocksCounter: ComputedRef; +} export interface ValidatorSigningInfoProtoMsg { typeUrl: "/cosmos.slashing.v1beta1.ValidatorSigningInfo"; value: Uint8Array; @@ -55,6 +64,13 @@ export interface Params { slashFractionDoubleSign: Uint8Array; slashFractionDowntime: Uint8Array; } +export interface ReactiveParams { + signedBlocksWindow: ComputedRef; + minSignedPerWindow: ComputedRef; + downtimeJailDuration: ComputedRef; + slashFractionDoubleSign: ComputedRef; + slashFractionDowntime: ComputedRef; +} export interface ParamsProtoMsg { typeUrl: "/cosmos.slashing.v1beta1.Params"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/slashing/v1beta1/tx.ts b/__fixtures__/v-next/outputv4/cosmos/slashing/v1beta1/tx.ts index e46a2ba6f1..841c1abd28 100644 --- a/__fixtures__/v-next/outputv4/cosmos/slashing/v1beta1/tx.ts +++ b/__fixtures__/v-next/outputv4/cosmos/slashing/v1beta1/tx.ts @@ -1,11 +1,15 @@ import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.slashing.v1beta1"; /** MsgUnjail defines the Msg/Unjail request type */ export interface MsgUnjail { validatorAddr: string; } +export interface ReactiveMsgUnjail { + validatorAddr: ComputedRef; +} export interface MsgUnjailProtoMsg { typeUrl: "/cosmos.slashing.v1beta1.MsgUnjail"; value: Uint8Array; @@ -16,6 +20,7 @@ export interface MsgUnjailSDKType { } /** MsgUnjailResponse defines the Msg/Unjail response type */ export interface MsgUnjailResponse {} +export interface ReactiveMsgUnjailResponse {} export interface MsgUnjailResponseProtoMsg { typeUrl: "/cosmos.slashing.v1beta1.MsgUnjailResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/staking/v1beta1/authz.ts b/__fixtures__/v-next/outputv4/cosmos/staking/v1beta1/authz.ts index eb1307bbe3..aa170a3e02 100644 --- a/__fixtures__/v-next/outputv4/cosmos/staking/v1beta1/authz.ts +++ b/__fixtures__/v-next/outputv4/cosmos/staking/v1beta1/authz.ts @@ -2,6 +2,7 @@ import { Coin, CoinSDKType } from "../../base/v1beta1/coin.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.staking.v1beta1"; /** * AuthorizationType defines the type of staking module authorization type @@ -76,6 +77,12 @@ export interface StakeAuthorization { /** authorization_type defines one of AuthorizationType. */ authorizationType: AuthorizationType; } +export interface ReactiveStakeAuthorization { + maxTokens?: ComputedRef; + allowList?: ComputedRef; + denyList?: ComputedRef; + authorizationType: ComputedRef; +} export interface StakeAuthorizationProtoMsg { typeUrl: "/cosmos.staking.v1beta1.StakeAuthorization"; value: Uint8Array; @@ -95,6 +102,9 @@ export interface StakeAuthorizationSDKType { export interface StakeAuthorization_Validators { address: string[]; } +export interface ReactiveStakeAuthorization_Validators { + address: ComputedRef; +} export interface StakeAuthorization_ValidatorsProtoMsg { typeUrl: "/cosmos.staking.v1beta1.Validators"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/staking/v1beta1/genesis.ts b/__fixtures__/v-next/outputv4/cosmos/staking/v1beta1/genesis.ts index 17b0b3094d..3e7e531398 100644 --- a/__fixtures__/v-next/outputv4/cosmos/staking/v1beta1/genesis.ts +++ b/__fixtures__/v-next/outputv4/cosmos/staking/v1beta1/genesis.ts @@ -2,6 +2,7 @@ import { Params, ParamsSDKType, Validator, ValidatorSDKType, Delegation, Delegat import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, bytesFromBase64, base64FromBytes, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.staking.v1beta1"; /** GenesisState defines the staking module's genesis state. */ export interface GenesisState { @@ -27,6 +28,16 @@ export interface GenesisState { redelegations: Redelegation[]; exported: boolean; } +export interface ReactiveGenesisState { + params: ComputedRef; + lastTotalPower: ComputedRef; + lastValidatorPowers: ComputedRef; + validators: ComputedRef; + delegations: ComputedRef; + unbondingDelegations: ComputedRef; + redelegations: ComputedRef; + exported: ComputedRef; +} export interface GenesisStateProtoMsg { typeUrl: "/cosmos.staking.v1beta1.GenesisState"; value: Uint8Array; @@ -49,6 +60,10 @@ export interface LastValidatorPower { /** power defines the power of the validator. */ power: bigint; } +export interface ReactiveLastValidatorPower { + address: ComputedRef; + power: ComputedRef; +} export interface LastValidatorPowerProtoMsg { typeUrl: "/cosmos.staking.v1beta1.LastValidatorPower"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/staking/v1beta1/query.rpc.Query.ts b/__fixtures__/v-next/outputv4/cosmos/staking/v1beta1/query.rpc.Query.ts index 6cb4037052..456cbf7344 100644 --- a/__fixtures__/v-next/outputv4/cosmos/staking/v1beta1/query.rpc.Query.ts +++ b/__fixtures__/v-next/outputv4/cosmos/staking/v1beta1/query.rpc.Query.ts @@ -2,8 +2,11 @@ import { PageRequest, PageRequestSDKType, PageResponse, PageResponseSDKType } fr import { Validator, ValidatorSDKType, DelegationResponse, DelegationResponseSDKType, UnbondingDelegation, UnbondingDelegationSDKType, RedelegationResponse, RedelegationResponseSDKType, HistoricalInfo, HistoricalInfoSDKType, Pool, PoolSDKType, Params, ParamsSDKType } from "./staking.js"; import { Rpc } from "../../../helpers.js"; import { BinaryReader } from "../../../binary.js"; -import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryValidatorsRequest, QueryValidatorsRequestSDKType, QueryValidatorsResponse, QueryValidatorsResponseSDKType, QueryValidatorRequest, QueryValidatorRequestSDKType, QueryValidatorResponse, QueryValidatorResponseSDKType, QueryValidatorDelegationsRequest, QueryValidatorDelegationsRequestSDKType, QueryValidatorDelegationsResponse, QueryValidatorDelegationsResponseSDKType, QueryValidatorUnbondingDelegationsRequest, QueryValidatorUnbondingDelegationsRequestSDKType, QueryValidatorUnbondingDelegationsResponse, QueryValidatorUnbondingDelegationsResponseSDKType, QueryDelegationRequest, QueryDelegationRequestSDKType, QueryDelegationResponse, QueryDelegationResponseSDKType, QueryUnbondingDelegationRequest, QueryUnbondingDelegationRequestSDKType, QueryUnbondingDelegationResponse, QueryUnbondingDelegationResponseSDKType, QueryDelegatorDelegationsRequest, QueryDelegatorDelegationsRequestSDKType, QueryDelegatorDelegationsResponse, QueryDelegatorDelegationsResponseSDKType, QueryDelegatorUnbondingDelegationsRequest, QueryDelegatorUnbondingDelegationsRequestSDKType, QueryDelegatorUnbondingDelegationsResponse, QueryDelegatorUnbondingDelegationsResponseSDKType, QueryRedelegationsRequest, QueryRedelegationsRequestSDKType, QueryRedelegationsResponse, QueryRedelegationsResponseSDKType, QueryDelegatorValidatorsRequest, QueryDelegatorValidatorsRequestSDKType, QueryDelegatorValidatorsResponse, QueryDelegatorValidatorsResponseSDKType, QueryDelegatorValidatorRequest, QueryDelegatorValidatorRequestSDKType, QueryDelegatorValidatorResponse, QueryDelegatorValidatorResponseSDKType, QueryHistoricalInfoRequest, QueryHistoricalInfoRequestSDKType, QueryHistoricalInfoResponse, QueryHistoricalInfoResponseSDKType, QueryPoolRequest, QueryPoolRequestSDKType, QueryPoolResponse, QueryPoolResponseSDKType, QueryParamsRequest, QueryParamsRequestSDKType, QueryParamsResponse, QueryParamsResponseSDKType } from "./query.js"; +import { QueryClient, createProtobufRpcClient, ProtobufRpcClient } from "@cosmjs/stargate"; +import { VueQueryParams } from "../../../vue-query.js"; +import { ComputedRef, computed, Ref } from "vue"; +import { useQuery } from "@tanstack/vue-query"; +import { QueryValidatorsRequest, QueryValidatorsRequestSDKType, QueryValidatorsResponse, QueryValidatorsResponseSDKType, QueryValidatorRequest, QueryValidatorRequestSDKType, QueryValidatorResponse, QueryValidatorResponseSDKType, QueryValidatorDelegationsRequest, QueryValidatorDelegationsRequestSDKType, QueryValidatorDelegationsResponse, QueryValidatorDelegationsResponseSDKType, QueryValidatorUnbondingDelegationsRequest, QueryValidatorUnbondingDelegationsRequestSDKType, QueryValidatorUnbondingDelegationsResponse, QueryValidatorUnbondingDelegationsResponseSDKType, QueryDelegationRequest, QueryDelegationRequestSDKType, QueryDelegationResponse, QueryDelegationResponseSDKType, QueryUnbondingDelegationRequest, QueryUnbondingDelegationRequestSDKType, QueryUnbondingDelegationResponse, QueryUnbondingDelegationResponseSDKType, QueryDelegatorDelegationsRequest, QueryDelegatorDelegationsRequestSDKType, QueryDelegatorDelegationsResponse, QueryDelegatorDelegationsResponseSDKType, QueryDelegatorUnbondingDelegationsRequest, QueryDelegatorUnbondingDelegationsRequestSDKType, QueryDelegatorUnbondingDelegationsResponse, QueryDelegatorUnbondingDelegationsResponseSDKType, QueryRedelegationsRequest, QueryRedelegationsRequestSDKType, QueryRedelegationsResponse, QueryRedelegationsResponseSDKType, QueryDelegatorValidatorsRequest, QueryDelegatorValidatorsRequestSDKType, QueryDelegatorValidatorsResponse, QueryDelegatorValidatorsResponseSDKType, QueryDelegatorValidatorRequest, QueryDelegatorValidatorRequestSDKType, QueryDelegatorValidatorResponse, QueryDelegatorValidatorResponseSDKType, QueryHistoricalInfoRequest, QueryHistoricalInfoRequestSDKType, QueryHistoricalInfoResponse, QueryHistoricalInfoResponseSDKType, QueryPoolRequest, QueryPoolRequestSDKType, QueryPoolResponse, QueryPoolResponseSDKType, QueryParamsRequest, QueryParamsRequestSDKType, QueryParamsResponse, QueryParamsResponseSDKType, ReactiveQueryValidatorsRequest, ReactiveQueryValidatorRequest, ReactiveQueryValidatorDelegationsRequest, ReactiveQueryValidatorUnbondingDelegationsRequest, ReactiveQueryDelegationRequest, ReactiveQueryUnbondingDelegationRequest, ReactiveQueryDelegatorDelegationsRequest, ReactiveQueryDelegatorUnbondingDelegationsRequest, ReactiveQueryRedelegationsRequest, ReactiveQueryDelegatorValidatorsRequest, ReactiveQueryDelegatorValidatorRequest, ReactiveQueryHistoricalInfoRequest, ReactiveQueryPoolRequest, ReactiveQueryParamsRequest } from "./query.js"; /** Query defines the gRPC querier service. */ export interface Query { /** Validators queries all validators that match the given status. */ @@ -184,4 +187,444 @@ export const createRpcQueryExtension = (base: QueryClient) => { return queryService.params(request); } }; +}; +export interface UseValidatorsQuery extends VueQueryParams { + request: ReactiveQueryValidatorsRequest; +} +export interface UseValidatorQuery extends VueQueryParams { + request: ReactiveQueryValidatorRequest; +} +export interface UseValidatorDelegationsQuery extends VueQueryParams { + request: ReactiveQueryValidatorDelegationsRequest; +} +export interface UseValidatorUnbondingDelegationsQuery extends VueQueryParams { + request: ReactiveQueryValidatorUnbondingDelegationsRequest; +} +export interface UseDelegationQuery extends VueQueryParams { + request: ReactiveQueryDelegationRequest; +} +export interface UseUnbondingDelegationQuery extends VueQueryParams { + request: ReactiveQueryUnbondingDelegationRequest; +} +export interface UseDelegatorDelegationsQuery extends VueQueryParams { + request: ReactiveQueryDelegatorDelegationsRequest; +} +export interface UseDelegatorUnbondingDelegationsQuery extends VueQueryParams { + request: ReactiveQueryDelegatorUnbondingDelegationsRequest; +} +export interface UseRedelegationsQuery extends VueQueryParams { + request: ReactiveQueryRedelegationsRequest; +} +export interface UseDelegatorValidatorsQuery extends VueQueryParams { + request: ReactiveQueryDelegatorValidatorsRequest; +} +export interface UseDelegatorValidatorQuery extends VueQueryParams { + request: ReactiveQueryDelegatorValidatorRequest; +} +export interface UseHistoricalInfoQuery extends VueQueryParams { + request: ReactiveQueryHistoricalInfoRequest; +} +export interface UsePoolQuery extends VueQueryParams { + request?: ReactiveQueryPoolRequest; +} +export interface UseParamsQuery extends VueQueryParams { + request?: ReactiveQueryParamsRequest; +} +export const useQueryService = (rpc: Ref): ComputedRef => { + const _queryClients = new WeakMap(); + return computed(() => { + if (rpc.value) { + if (_queryClients.has(rpc.value)) { + return _queryClients.get(rpc.value); + } + const queryService = new QueryClientImpl(rpc.value); + _queryClients.set(rpc.value, queryService); + return queryService; + } + }); +}; +export const createRpcQueryHooks = (rpc: Ref) => { + const queryService = useQueryService(rpc); + const useValidators = ({ + request, + options + }: UseValidatorsQuery) => { + const queryKey = ["validatorsQuery", queryService]; + if (request) { + Object.values(request).forEach((val: any) => { + queryKey.push(val); + }); + } + return useQuery({ + queryKey, + queryFn: () => { + if (!queryService.value) throw new Error("Query Service not initialized"); + let params = ({} as any); + if (request) { + Object.entries(request).forEach(([key, val]) => { + params[key] = val.value; + }); + } + return queryService.value.validators(params); + }, + ...options + }); + }; + const useValidator = ({ + request, + options + }: UseValidatorQuery) => { + const queryKey = ["validatorQuery", queryService]; + if (request) { + Object.values(request).forEach((val: any) => { + queryKey.push(val); + }); + } + return useQuery({ + queryKey, + queryFn: () => { + if (!queryService.value) throw new Error("Query Service not initialized"); + let params = ({} as any); + if (request) { + Object.entries(request).forEach(([key, val]) => { + params[key] = val.value; + }); + } + return queryService.value.validator(params); + }, + ...options + }); + }; + const useValidatorDelegations = ({ + request, + options + }: UseValidatorDelegationsQuery) => { + const queryKey = ["validatorDelegationsQuery", queryService]; + if (request) { + Object.values(request).forEach((val: any) => { + queryKey.push(val); + }); + } + return useQuery({ + queryKey, + queryFn: () => { + if (!queryService.value) throw new Error("Query Service not initialized"); + let params = ({} as any); + if (request) { + Object.entries(request).forEach(([key, val]) => { + params[key] = val.value; + }); + } + return queryService.value.validatorDelegations(params); + }, + ...options + }); + }; + const useValidatorUnbondingDelegations = ({ + request, + options + }: UseValidatorUnbondingDelegationsQuery) => { + const queryKey = ["validatorUnbondingDelegationsQuery", queryService]; + if (request) { + Object.values(request).forEach((val: any) => { + queryKey.push(val); + }); + } + return useQuery({ + queryKey, + queryFn: () => { + if (!queryService.value) throw new Error("Query Service not initialized"); + let params = ({} as any); + if (request) { + Object.entries(request).forEach(([key, val]) => { + params[key] = val.value; + }); + } + return queryService.value.validatorUnbondingDelegations(params); + }, + ...options + }); + }; + const useDelegation = ({ + request, + options + }: UseDelegationQuery) => { + const queryKey = ["delegationQuery", queryService]; + if (request) { + Object.values(request).forEach((val: any) => { + queryKey.push(val); + }); + } + return useQuery({ + queryKey, + queryFn: () => { + if (!queryService.value) throw new Error("Query Service not initialized"); + let params = ({} as any); + if (request) { + Object.entries(request).forEach(([key, val]) => { + params[key] = val.value; + }); + } + return queryService.value.delegation(params); + }, + ...options + }); + }; + const useUnbondingDelegation = ({ + request, + options + }: UseUnbondingDelegationQuery) => { + const queryKey = ["unbondingDelegationQuery", queryService]; + if (request) { + Object.values(request).forEach((val: any) => { + queryKey.push(val); + }); + } + return useQuery({ + queryKey, + queryFn: () => { + if (!queryService.value) throw new Error("Query Service not initialized"); + let params = ({} as any); + if (request) { + Object.entries(request).forEach(([key, val]) => { + params[key] = val.value; + }); + } + return queryService.value.unbondingDelegation(params); + }, + ...options + }); + }; + const useDelegatorDelegations = ({ + request, + options + }: UseDelegatorDelegationsQuery) => { + const queryKey = ["delegatorDelegationsQuery", queryService]; + if (request) { + Object.values(request).forEach((val: any) => { + queryKey.push(val); + }); + } + return useQuery({ + queryKey, + queryFn: () => { + if (!queryService.value) throw new Error("Query Service not initialized"); + let params = ({} as any); + if (request) { + Object.entries(request).forEach(([key, val]) => { + params[key] = val.value; + }); + } + return queryService.value.delegatorDelegations(params); + }, + ...options + }); + }; + const useDelegatorUnbondingDelegations = ({ + request, + options + }: UseDelegatorUnbondingDelegationsQuery) => { + const queryKey = ["delegatorUnbondingDelegationsQuery", queryService]; + if (request) { + Object.values(request).forEach((val: any) => { + queryKey.push(val); + }); + } + return useQuery({ + queryKey, + queryFn: () => { + if (!queryService.value) throw new Error("Query Service not initialized"); + let params = ({} as any); + if (request) { + Object.entries(request).forEach(([key, val]) => { + params[key] = val.value; + }); + } + return queryService.value.delegatorUnbondingDelegations(params); + }, + ...options + }); + }; + const useRedelegations = ({ + request, + options + }: UseRedelegationsQuery) => { + const queryKey = ["redelegationsQuery", queryService]; + if (request) { + Object.values(request).forEach((val: any) => { + queryKey.push(val); + }); + } + return useQuery({ + queryKey, + queryFn: () => { + if (!queryService.value) throw new Error("Query Service not initialized"); + let params = ({} as any); + if (request) { + Object.entries(request).forEach(([key, val]) => { + params[key] = val.value; + }); + } + return queryService.value.redelegations(params); + }, + ...options + }); + }; + const useDelegatorValidators = ({ + request, + options + }: UseDelegatorValidatorsQuery) => { + const queryKey = ["delegatorValidatorsQuery", queryService]; + if (request) { + Object.values(request).forEach((val: any) => { + queryKey.push(val); + }); + } + return useQuery({ + queryKey, + queryFn: () => { + if (!queryService.value) throw new Error("Query Service not initialized"); + let params = ({} as any); + if (request) { + Object.entries(request).forEach(([key, val]) => { + params[key] = val.value; + }); + } + return queryService.value.delegatorValidators(params); + }, + ...options + }); + }; + const useDelegatorValidator = ({ + request, + options + }: UseDelegatorValidatorQuery) => { + const queryKey = ["delegatorValidatorQuery", queryService]; + if (request) { + Object.values(request).forEach((val: any) => { + queryKey.push(val); + }); + } + return useQuery({ + queryKey, + queryFn: () => { + if (!queryService.value) throw new Error("Query Service not initialized"); + let params = ({} as any); + if (request) { + Object.entries(request).forEach(([key, val]) => { + params[key] = val.value; + }); + } + return queryService.value.delegatorValidator(params); + }, + ...options + }); + }; + const useHistoricalInfo = ({ + request, + options + }: UseHistoricalInfoQuery) => { + const queryKey = ["historicalInfoQuery", queryService]; + if (request) { + Object.values(request).forEach((val: any) => { + queryKey.push(val); + }); + } + return useQuery({ + queryKey, + queryFn: () => { + if (!queryService.value) throw new Error("Query Service not initialized"); + let params = ({} as any); + if (request) { + Object.entries(request).forEach(([key, val]) => { + params[key] = val.value; + }); + } + return queryService.value.historicalInfo(params); + }, + ...options + }); + }; + const usePool = ({ + request, + options + }: UsePoolQuery) => { + const queryKey = ["poolQuery", queryService]; + if (request) { + Object.values(request).forEach((val: any) => { + queryKey.push(val); + }); + } + return useQuery({ + queryKey, + queryFn: () => { + if (!queryService.value) throw new Error("Query Service not initialized"); + let params = ({} as any); + if (request) { + Object.entries(request).forEach(([key, val]) => { + params[key] = val.value; + }); + } + return queryService.value.pool(params); + }, + ...options + }); + }; + const useParams = ({ + request, + options + }: UseParamsQuery) => { + const queryKey = ["paramsQuery", queryService]; + if (request) { + Object.values(request).forEach((val: any) => { + queryKey.push(val); + }); + } + return useQuery({ + queryKey, + queryFn: () => { + if (!queryService.value) throw new Error("Query Service not initialized"); + let params = ({} as any); + if (request) { + Object.entries(request).forEach(([key, val]) => { + params[key] = val.value; + }); + } + return queryService.value.params(params); + }, + ...options + }); + }; + return { + /** Validators queries all validators that match the given status. */useValidators, + /** Validator queries validator info for given validator address. */useValidator, + /** ValidatorDelegations queries delegate info for given validator. */useValidatorDelegations, + /** ValidatorUnbondingDelegations queries unbonding delegations of a validator. */useValidatorUnbondingDelegations, + /** Delegation queries delegate info for given validator delegator pair. */useDelegation, + /** + * UnbondingDelegation queries unbonding info for given validator delegator + * pair. + */ + useUnbondingDelegation, + /** DelegatorDelegations queries all delegations of a given delegator address. */useDelegatorDelegations, + /** + * DelegatorUnbondingDelegations queries all unbonding delegations of a given + * delegator address. + */ + useDelegatorUnbondingDelegations, + /** Redelegations queries redelegations of given address. */useRedelegations, + /** + * DelegatorValidators queries all validators info for given delegator + * address. + */ + useDelegatorValidators, + /** + * DelegatorValidator queries validator info for given delegator validator + * pair. + */ + useDelegatorValidator, + /** HistoricalInfo queries the historical info for given height. */useHistoricalInfo, + /** Pool queries the pool info. */usePool, + /** Parameters queries the staking parameters. */useParams + }; }; \ No newline at end of file diff --git a/__fixtures__/v-next/outputv4/cosmos/staking/v1beta1/query.ts b/__fixtures__/v-next/outputv4/cosmos/staking/v1beta1/query.ts index a89bebd5d4..8acdac442f 100644 --- a/__fixtures__/v-next/outputv4/cosmos/staking/v1beta1/query.ts +++ b/__fixtures__/v-next/outputv4/cosmos/staking/v1beta1/query.ts @@ -3,6 +3,7 @@ import { Validator, ValidatorSDKType, DelegationResponse, DelegationResponseSDKT import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.staking.v1beta1"; /** QueryValidatorsRequest is request type for Query/Validators RPC method. */ export interface QueryValidatorsRequest { @@ -11,6 +12,10 @@ export interface QueryValidatorsRequest { /** pagination defines an optional pagination for the request. */ pagination?: PageRequest; } +export interface ReactiveQueryValidatorsRequest { + status: ComputedRef; + pagination?: ComputedRef; +} export interface QueryValidatorsRequestProtoMsg { typeUrl: "/cosmos.staking.v1beta1.QueryValidatorsRequest"; value: Uint8Array; @@ -27,6 +32,10 @@ export interface QueryValidatorsResponse { /** pagination defines the pagination in the response. */ pagination?: PageResponse; } +export interface ReactiveQueryValidatorsResponse { + validators: ComputedRef; + pagination?: ComputedRef; +} export interface QueryValidatorsResponseProtoMsg { typeUrl: "/cosmos.staking.v1beta1.QueryValidatorsResponse"; value: Uint8Array; @@ -41,6 +50,9 @@ export interface QueryValidatorRequest { /** validator_addr defines the validator address to query for. */ validatorAddr: string; } +export interface ReactiveQueryValidatorRequest { + validatorAddr: ComputedRef; +} export interface QueryValidatorRequestProtoMsg { typeUrl: "/cosmos.staking.v1beta1.QueryValidatorRequest"; value: Uint8Array; @@ -54,6 +66,9 @@ export interface QueryValidatorResponse { /** validator defines the the validator info. */ validator: Validator; } +export interface ReactiveQueryValidatorResponse { + validator: ComputedRef; +} export interface QueryValidatorResponseProtoMsg { typeUrl: "/cosmos.staking.v1beta1.QueryValidatorResponse"; value: Uint8Array; @@ -72,6 +87,10 @@ export interface QueryValidatorDelegationsRequest { /** pagination defines an optional pagination for the request. */ pagination?: PageRequest; } +export interface ReactiveQueryValidatorDelegationsRequest { + validatorAddr: ComputedRef; + pagination?: ComputedRef; +} export interface QueryValidatorDelegationsRequestProtoMsg { typeUrl: "/cosmos.staking.v1beta1.QueryValidatorDelegationsRequest"; value: Uint8Array; @@ -93,6 +112,10 @@ export interface QueryValidatorDelegationsResponse { /** pagination defines the pagination in the response. */ pagination?: PageResponse; } +export interface ReactiveQueryValidatorDelegationsResponse { + delegationResponses: ComputedRef; + pagination?: ComputedRef; +} export interface QueryValidatorDelegationsResponseProtoMsg { typeUrl: "/cosmos.staking.v1beta1.QueryValidatorDelegationsResponse"; value: Uint8Array; @@ -115,6 +138,10 @@ export interface QueryValidatorUnbondingDelegationsRequest { /** pagination defines an optional pagination for the request. */ pagination?: PageRequest; } +export interface ReactiveQueryValidatorUnbondingDelegationsRequest { + validatorAddr: ComputedRef; + pagination?: ComputedRef; +} export interface QueryValidatorUnbondingDelegationsRequestProtoMsg { typeUrl: "/cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest"; value: Uint8Array; @@ -136,6 +163,10 @@ export interface QueryValidatorUnbondingDelegationsResponse { /** pagination defines the pagination in the response. */ pagination?: PageResponse; } +export interface ReactiveQueryValidatorUnbondingDelegationsResponse { + unbondingResponses: ComputedRef; + pagination?: ComputedRef; +} export interface QueryValidatorUnbondingDelegationsResponseProtoMsg { typeUrl: "/cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse"; value: Uint8Array; @@ -155,6 +186,10 @@ export interface QueryDelegationRequest { /** validator_addr defines the validator address to query for. */ validatorAddr: string; } +export interface ReactiveQueryDelegationRequest { + delegatorAddr: ComputedRef; + validatorAddr: ComputedRef; +} export interface QueryDelegationRequestProtoMsg { typeUrl: "/cosmos.staking.v1beta1.QueryDelegationRequest"; value: Uint8Array; @@ -169,6 +204,9 @@ export interface QueryDelegationResponse { /** delegation_responses defines the delegation info of a delegation. */ delegationResponse?: DelegationResponse; } +export interface ReactiveQueryDelegationResponse { + delegationResponse?: ComputedRef; +} export interface QueryDelegationResponseProtoMsg { typeUrl: "/cosmos.staking.v1beta1.QueryDelegationResponse"; value: Uint8Array; @@ -187,6 +225,10 @@ export interface QueryUnbondingDelegationRequest { /** validator_addr defines the validator address to query for. */ validatorAddr: string; } +export interface ReactiveQueryUnbondingDelegationRequest { + delegatorAddr: ComputedRef; + validatorAddr: ComputedRef; +} export interface QueryUnbondingDelegationRequestProtoMsg { typeUrl: "/cosmos.staking.v1beta1.QueryUnbondingDelegationRequest"; value: Uint8Array; @@ -207,6 +249,9 @@ export interface QueryUnbondingDelegationResponse { /** unbond defines the unbonding information of a delegation. */ unbond: UnbondingDelegation; } +export interface ReactiveQueryUnbondingDelegationResponse { + unbond: ComputedRef; +} export interface QueryUnbondingDelegationResponseProtoMsg { typeUrl: "/cosmos.staking.v1beta1.QueryUnbondingDelegationResponse"; value: Uint8Array; @@ -228,6 +273,10 @@ export interface QueryDelegatorDelegationsRequest { /** pagination defines an optional pagination for the request. */ pagination?: PageRequest; } +export interface ReactiveQueryDelegatorDelegationsRequest { + delegatorAddr: ComputedRef; + pagination?: ComputedRef; +} export interface QueryDelegatorDelegationsRequestProtoMsg { typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest"; value: Uint8Array; @@ -250,6 +299,10 @@ export interface QueryDelegatorDelegationsResponse { /** pagination defines the pagination in the response. */ pagination?: PageResponse; } +export interface ReactiveQueryDelegatorDelegationsResponse { + delegationResponses: ComputedRef; + pagination?: ComputedRef; +} export interface QueryDelegatorDelegationsResponseProtoMsg { typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse"; value: Uint8Array; @@ -272,6 +325,10 @@ export interface QueryDelegatorUnbondingDelegationsRequest { /** pagination defines an optional pagination for the request. */ pagination?: PageRequest; } +export interface ReactiveQueryDelegatorUnbondingDelegationsRequest { + delegatorAddr: ComputedRef; + pagination?: ComputedRef; +} export interface QueryDelegatorUnbondingDelegationsRequestProtoMsg { typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest"; value: Uint8Array; @@ -293,6 +350,10 @@ export interface QueryDelegatorUnbondingDelegationsResponse { /** pagination defines the pagination in the response. */ pagination?: PageResponse; } +export interface ReactiveQueryDelegatorUnbondingDelegationsResponse { + unbondingResponses: ComputedRef; + pagination?: ComputedRef; +} export interface QueryDelegatorUnbondingDelegationsResponseProtoMsg { typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse"; value: Uint8Array; @@ -319,6 +380,12 @@ export interface QueryRedelegationsRequest { /** pagination defines an optional pagination for the request. */ pagination?: PageRequest; } +export interface ReactiveQueryRedelegationsRequest { + delegatorAddr: ComputedRef; + srcValidatorAddr: ComputedRef; + dstValidatorAddr: ComputedRef; + pagination?: ComputedRef; +} export interface QueryRedelegationsRequestProtoMsg { typeUrl: "/cosmos.staking.v1beta1.QueryRedelegationsRequest"; value: Uint8Array; @@ -342,6 +409,10 @@ export interface QueryRedelegationsResponse { /** pagination defines the pagination in the response. */ pagination?: PageResponse; } +export interface ReactiveQueryRedelegationsResponse { + redelegationResponses: ComputedRef; + pagination?: ComputedRef; +} export interface QueryRedelegationsResponseProtoMsg { typeUrl: "/cosmos.staking.v1beta1.QueryRedelegationsResponse"; value: Uint8Array; @@ -364,6 +435,10 @@ export interface QueryDelegatorValidatorsRequest { /** pagination defines an optional pagination for the request. */ pagination?: PageRequest; } +export interface ReactiveQueryDelegatorValidatorsRequest { + delegatorAddr: ComputedRef; + pagination?: ComputedRef; +} export interface QueryDelegatorValidatorsRequestProtoMsg { typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest"; value: Uint8Array; @@ -386,6 +461,10 @@ export interface QueryDelegatorValidatorsResponse { /** pagination defines the pagination in the response. */ pagination?: PageResponse; } +export interface ReactiveQueryDelegatorValidatorsResponse { + validators: ComputedRef; + pagination?: ComputedRef; +} export interface QueryDelegatorValidatorsResponseProtoMsg { typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse"; value: Uint8Array; @@ -408,6 +487,10 @@ export interface QueryDelegatorValidatorRequest { /** validator_addr defines the validator address to query for. */ validatorAddr: string; } +export interface ReactiveQueryDelegatorValidatorRequest { + delegatorAddr: ComputedRef; + validatorAddr: ComputedRef; +} export interface QueryDelegatorValidatorRequestProtoMsg { typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorRequest"; value: Uint8Array; @@ -428,6 +511,9 @@ export interface QueryDelegatorValidatorResponse { /** validator defines the the validator info. */ validator: Validator; } +export interface ReactiveQueryDelegatorValidatorResponse { + validator: ComputedRef; +} export interface QueryDelegatorValidatorResponseProtoMsg { typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorResponse"; value: Uint8Array; @@ -447,6 +533,9 @@ export interface QueryHistoricalInfoRequest { /** height defines at which height to query the historical info. */ height: bigint; } +export interface ReactiveQueryHistoricalInfoRequest { + height: ComputedRef; +} export interface QueryHistoricalInfoRequestProtoMsg { typeUrl: "/cosmos.staking.v1beta1.QueryHistoricalInfoRequest"; value: Uint8Array; @@ -466,6 +555,9 @@ export interface QueryHistoricalInfoResponse { /** hist defines the historical info at the given height. */ hist?: HistoricalInfo; } +export interface ReactiveQueryHistoricalInfoResponse { + hist?: ComputedRef; +} export interface QueryHistoricalInfoResponseProtoMsg { typeUrl: "/cosmos.staking.v1beta1.QueryHistoricalInfoResponse"; value: Uint8Array; @@ -479,6 +571,7 @@ export interface QueryHistoricalInfoResponseSDKType { } /** QueryPoolRequest is request type for the Query/Pool RPC method. */ export interface QueryPoolRequest {} +export interface ReactiveQueryPoolRequest {} export interface QueryPoolRequestProtoMsg { typeUrl: "/cosmos.staking.v1beta1.QueryPoolRequest"; value: Uint8Array; @@ -490,6 +583,9 @@ export interface QueryPoolResponse { /** pool defines the pool info. */ pool: Pool; } +export interface ReactiveQueryPoolResponse { + pool: ComputedRef; +} export interface QueryPoolResponseProtoMsg { typeUrl: "/cosmos.staking.v1beta1.QueryPoolResponse"; value: Uint8Array; @@ -500,6 +596,7 @@ export interface QueryPoolResponseSDKType { } /** QueryParamsRequest is request type for the Query/Params RPC method. */ export interface QueryParamsRequest {} +export interface ReactiveQueryParamsRequest {} export interface QueryParamsRequestProtoMsg { typeUrl: "/cosmos.staking.v1beta1.QueryParamsRequest"; value: Uint8Array; @@ -511,6 +608,9 @@ export interface QueryParamsResponse { /** params holds all the parameters of this module. */ params: Params; } +export interface ReactiveQueryParamsResponse { + params: ComputedRef; +} export interface QueryParamsResponseProtoMsg { typeUrl: "/cosmos.staking.v1beta1.QueryParamsResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/staking/v1beta1/staking.ts b/__fixtures__/v-next/outputv4/cosmos/staking/v1beta1/staking.ts index 2ed6ddbcbd..f2edc0c645 100644 --- a/__fixtures__/v-next/outputv4/cosmos/staking/v1beta1/staking.ts +++ b/__fixtures__/v-next/outputv4/cosmos/staking/v1beta1/staking.ts @@ -8,6 +8,7 @@ import { isSet, DeepPartial, toTimestamp, fromTimestamp } from "../../../helpers import { JsonSafe } from "../../../json-safe.js"; import { Decimal } from "@cosmjs/math"; import { encodePubkey, decodePubkey } from "@cosmjs/proto-signing"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.staking.v1beta1"; /** BondStatus is the status of a validator. */ export enum BondStatus { @@ -67,6 +68,10 @@ export interface HistoricalInfo { header: Header; valset: Validator[]; } +export interface ReactiveHistoricalInfo { + header: ComputedRef
; + valset: ComputedRef; +} export interface HistoricalInfoProtoMsg { typeUrl: "/cosmos.staking.v1beta1.HistoricalInfo"; value: Uint8Array; @@ -93,6 +98,11 @@ export interface CommissionRates { /** max_change_rate defines the maximum daily increase of the validator commission, as a fraction. */ maxChangeRate: string; } +export interface ReactiveCommissionRates { + rate: ComputedRef; + maxRate: ComputedRef; + maxChangeRate: ComputedRef; +} export interface CommissionRatesProtoMsg { typeUrl: "/cosmos.staking.v1beta1.CommissionRates"; value: Uint8Array; @@ -113,6 +123,10 @@ export interface Commission { /** update_time is the last time the commission rate was changed. */ updateTime: Date; } +export interface ReactiveCommission { + commissionRates: ComputedRef; + updateTime: ComputedRef; +} export interface CommissionProtoMsg { typeUrl: "/cosmos.staking.v1beta1.Commission"; value: Uint8Array; @@ -135,6 +149,13 @@ export interface Description { /** details define other optional details. */ details: string; } +export interface ReactiveDescription { + moniker: ComputedRef; + identity: ComputedRef; + website: ComputedRef; + securityContact: ComputedRef; + details: ComputedRef; +} export interface DescriptionProtoMsg { typeUrl: "/cosmos.staking.v1beta1.Description"; value: Uint8Array; @@ -181,6 +202,19 @@ export interface Validator { /** min_self_delegation is the validator's self declared minimum self delegation. */ minSelfDelegation: string; } +export interface ReactiveValidator { + operatorAddress: ComputedRef; + consensusPubkey?: ComputedRef; + jailed: ComputedRef; + status: ComputedRef; + tokens: ComputedRef; + delegatorShares: ComputedRef; + description: ComputedRef; + unbondingHeight: ComputedRef; + unbondingTime: ComputedRef; + commission: ComputedRef; + minSelfDelegation: ComputedRef; +} export interface ValidatorProtoMsg { typeUrl: "/cosmos.staking.v1beta1.Validator"; value: Uint8Array; @@ -212,6 +246,9 @@ export interface ValidatorSDKType { export interface ValAddresses { addresses: string[]; } +export interface ReactiveValAddresses { + addresses: ComputedRef; +} export interface ValAddressesProtoMsg { typeUrl: "/cosmos.staking.v1beta1.ValAddresses"; value: Uint8Array; @@ -229,6 +266,10 @@ export interface DVPair { delegatorAddress: string; validatorAddress: string; } +export interface ReactiveDVPair { + delegatorAddress: ComputedRef; + validatorAddress: ComputedRef; +} export interface DVPairProtoMsg { typeUrl: "/cosmos.staking.v1beta1.DVPair"; value: Uint8Array; @@ -246,6 +287,9 @@ export interface DVPairSDKType { export interface DVPairs { pairs: DVPair[]; } +export interface ReactiveDVPairs { + pairs: ComputedRef; +} export interface DVPairsProtoMsg { typeUrl: "/cosmos.staking.v1beta1.DVPairs"; value: Uint8Array; @@ -265,6 +309,11 @@ export interface DVVTriplet { validatorSrcAddress: string; validatorDstAddress: string; } +export interface ReactiveDVVTriplet { + delegatorAddress: ComputedRef; + validatorSrcAddress: ComputedRef; + validatorDstAddress: ComputedRef; +} export interface DVVTripletProtoMsg { typeUrl: "/cosmos.staking.v1beta1.DVVTriplet"; value: Uint8Array; @@ -284,6 +333,9 @@ export interface DVVTripletSDKType { export interface DVVTriplets { triplets: DVVTriplet[]; } +export interface ReactiveDVVTriplets { + triplets: ComputedRef; +} export interface DVVTripletsProtoMsg { typeUrl: "/cosmos.staking.v1beta1.DVVTriplets"; value: Uint8Array; @@ -305,6 +357,11 @@ export interface Delegation { /** shares define the delegation shares received. */ shares: string; } +export interface ReactiveDelegation { + delegatorAddress: ComputedRef; + validatorAddress: ComputedRef; + shares: ComputedRef; +} export interface DelegationProtoMsg { typeUrl: "/cosmos.staking.v1beta1.Delegation"; value: Uint8Array; @@ -331,6 +388,11 @@ export interface UnbondingDelegation { /** entries are the unbonding delegation entries. */ entries: UnbondingDelegationEntry[]; } +export interface ReactiveUnbondingDelegation { + delegatorAddress: ComputedRef; + validatorAddress: ComputedRef; + entries: ComputedRef; +} export interface UnbondingDelegationProtoMsg { typeUrl: "/cosmos.staking.v1beta1.UnbondingDelegation"; value: Uint8Array; @@ -355,6 +417,12 @@ export interface UnbondingDelegationEntry { /** balance defines the tokens to receive at completion. */ balance: string; } +export interface ReactiveUnbondingDelegationEntry { + creationHeight: ComputedRef; + completionTime: ComputedRef; + initialBalance: ComputedRef; + balance: ComputedRef; +} export interface UnbondingDelegationEntryProtoMsg { typeUrl: "/cosmos.staking.v1beta1.UnbondingDelegationEntry"; value: Uint8Array; @@ -377,6 +445,12 @@ export interface RedelegationEntry { /** shares_dst is the amount of destination-validator shares created by redelegation. */ sharesDst: string; } +export interface ReactiveRedelegationEntry { + creationHeight: ComputedRef; + completionTime: ComputedRef; + initialBalance: ComputedRef; + sharesDst: ComputedRef; +} export interface RedelegationEntryProtoMsg { typeUrl: "/cosmos.staking.v1beta1.RedelegationEntry"; value: Uint8Array; @@ -402,6 +476,12 @@ export interface Redelegation { /** entries are the redelegation entries. */ entries: RedelegationEntry[]; } +export interface ReactiveRedelegation { + delegatorAddress: ComputedRef; + validatorSrcAddress: ComputedRef; + validatorDstAddress: ComputedRef; + entries: ComputedRef; +} export interface RedelegationProtoMsg { typeUrl: "/cosmos.staking.v1beta1.Redelegation"; value: Uint8Array; @@ -431,6 +511,14 @@ export interface Params { /** min_commission_rate is the chain-wide minimum commission rate that a validator can charge their delegators */ minCommissionRate: string; } +export interface ReactiveParams { + unbondingTime: ComputedRef; + maxValidators: ComputedRef; + maxEntries: ComputedRef; + historicalEntries: ComputedRef; + bondDenom: ComputedRef; + minCommissionRate: ComputedRef; +} export interface ParamsProtoMsg { typeUrl: "/cosmos.staking.v1beta1.Params"; value: Uint8Array; @@ -452,6 +540,10 @@ export interface DelegationResponse { delegation: Delegation; balance: Coin; } +export interface ReactiveDelegationResponse { + delegation: ComputedRef; + balance: ComputedRef; +} export interface DelegationResponseProtoMsg { typeUrl: "/cosmos.staking.v1beta1.DelegationResponse"; value: Uint8Array; @@ -473,6 +565,10 @@ export interface RedelegationEntryResponse { redelegationEntry: RedelegationEntry; balance: string; } +export interface ReactiveRedelegationEntryResponse { + redelegationEntry: ComputedRef; + balance: ComputedRef; +} export interface RedelegationEntryResponseProtoMsg { typeUrl: "/cosmos.staking.v1beta1.RedelegationEntryResponse"; value: Uint8Array; @@ -495,6 +591,10 @@ export interface RedelegationResponse { redelegation: Redelegation; entries: RedelegationEntryResponse[]; } +export interface ReactiveRedelegationResponse { + redelegation: ComputedRef; + entries: ComputedRef; +} export interface RedelegationResponseProtoMsg { typeUrl: "/cosmos.staking.v1beta1.RedelegationResponse"; value: Uint8Array; @@ -516,6 +616,10 @@ export interface Pool { notBondedTokens: string; bondedTokens: string; } +export interface ReactivePool { + notBondedTokens: ComputedRef; + bondedTokens: ComputedRef; +} export interface PoolProtoMsg { typeUrl: "/cosmos.staking.v1beta1.Pool"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/staking/v1beta1/tx.ts b/__fixtures__/v-next/outputv4/cosmos/staking/v1beta1/tx.ts index 2fc07ea2b2..00e830a28d 100644 --- a/__fixtures__/v-next/outputv4/cosmos/staking/v1beta1/tx.ts +++ b/__fixtures__/v-next/outputv4/cosmos/staking/v1beta1/tx.ts @@ -7,6 +7,7 @@ import { isSet, DeepPartial, toTimestamp, fromTimestamp } from "../../../helpers import { JsonSafe } from "../../../json-safe.js"; import { encodePubkey, decodePubkey } from "@cosmjs/proto-signing"; import { Decimal } from "@cosmjs/math"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.staking.v1beta1"; /** MsgCreateValidator defines a SDK message for creating a new validator. */ export interface MsgCreateValidator { @@ -18,6 +19,15 @@ export interface MsgCreateValidator { pubkey?: Any; value: Coin; } +export interface ReactiveMsgCreateValidator { + description: ComputedRef; + commission: ComputedRef; + minSelfDelegation: ComputedRef; + delegatorAddress: ComputedRef; + validatorAddress: ComputedRef; + pubkey?: ComputedRef; + value: ComputedRef; +} export interface MsgCreateValidatorProtoMsg { typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator"; value: Uint8Array; @@ -34,6 +44,7 @@ export interface MsgCreateValidatorSDKType { } /** MsgCreateValidatorResponse defines the Msg/CreateValidator response type. */ export interface MsgCreateValidatorResponse {} +export interface ReactiveMsgCreateValidatorResponse {} export interface MsgCreateValidatorResponseProtoMsg { typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidatorResponse"; value: Uint8Array; @@ -53,6 +64,12 @@ export interface MsgEditValidator { commissionRate: string; minSelfDelegation: string; } +export interface ReactiveMsgEditValidator { + description: ComputedRef; + validatorAddress: ComputedRef; + commissionRate: ComputedRef; + minSelfDelegation: ComputedRef; +} export interface MsgEditValidatorProtoMsg { typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator"; value: Uint8Array; @@ -66,6 +83,7 @@ export interface MsgEditValidatorSDKType { } /** MsgEditValidatorResponse defines the Msg/EditValidator response type. */ export interface MsgEditValidatorResponse {} +export interface ReactiveMsgEditValidatorResponse {} export interface MsgEditValidatorResponseProtoMsg { typeUrl: "/cosmos.staking.v1beta1.MsgEditValidatorResponse"; value: Uint8Array; @@ -81,6 +99,11 @@ export interface MsgDelegate { validatorAddress: string; amount: Coin; } +export interface ReactiveMsgDelegate { + delegatorAddress: ComputedRef; + validatorAddress: ComputedRef; + amount: ComputedRef; +} export interface MsgDelegateProtoMsg { typeUrl: "/cosmos.staking.v1beta1.MsgDelegate"; value: Uint8Array; @@ -96,6 +119,7 @@ export interface MsgDelegateSDKType { } /** MsgDelegateResponse defines the Msg/Delegate response type. */ export interface MsgDelegateResponse {} +export interface ReactiveMsgDelegateResponse {} export interface MsgDelegateResponseProtoMsg { typeUrl: "/cosmos.staking.v1beta1.MsgDelegateResponse"; value: Uint8Array; @@ -112,6 +136,12 @@ export interface MsgBeginRedelegate { validatorDstAddress: string; amount: Coin; } +export interface ReactiveMsgBeginRedelegate { + delegatorAddress: ComputedRef; + validatorSrcAddress: ComputedRef; + validatorDstAddress: ComputedRef; + amount: ComputedRef; +} export interface MsgBeginRedelegateProtoMsg { typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate"; value: Uint8Array; @@ -130,6 +160,9 @@ export interface MsgBeginRedelegateSDKType { export interface MsgBeginRedelegateResponse { completionTime: Date; } +export interface ReactiveMsgBeginRedelegateResponse { + completionTime: ComputedRef; +} export interface MsgBeginRedelegateResponseProtoMsg { typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegateResponse"; value: Uint8Array; @@ -147,6 +180,11 @@ export interface MsgUndelegate { validatorAddress: string; amount: Coin; } +export interface ReactiveMsgUndelegate { + delegatorAddress: ComputedRef; + validatorAddress: ComputedRef; + amount: ComputedRef; +} export interface MsgUndelegateProtoMsg { typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate"; value: Uint8Array; @@ -164,6 +202,9 @@ export interface MsgUndelegateSDKType { export interface MsgUndelegateResponse { completionTime: Date; } +export interface ReactiveMsgUndelegateResponse { + completionTime: ComputedRef; +} export interface MsgUndelegateResponseProtoMsg { typeUrl: "/cosmos.staking.v1beta1.MsgUndelegateResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/tx/signing/v1beta1/signing.ts b/__fixtures__/v-next/outputv4/cosmos/tx/signing/v1beta1/signing.ts index 5e627b7fc1..517b5cfe92 100644 --- a/__fixtures__/v-next/outputv4/cosmos/tx/signing/v1beta1/signing.ts +++ b/__fixtures__/v-next/outputv4/cosmos/tx/signing/v1beta1/signing.ts @@ -3,6 +3,7 @@ import { Any, AnySDKType } from "../../../../google/protobuf/any.js"; import { BinaryReader, BinaryWriter } from "../../../../binary.js"; import { JsonSafe } from "../../../../json-safe.js"; import { DeepPartial, isSet, bytesFromBase64, base64FromBytes } from "../../../../helpers.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.tx.signing.v1beta1"; /** * SignMode represents a signing mode with its own security guarantees. @@ -93,6 +94,9 @@ export interface SignatureDescriptors { /** signatures are the signature descriptors */ signatures: SignatureDescriptor[]; } +export interface ReactiveSignatureDescriptors { + signatures: ComputedRef; +} export interface SignatureDescriptorsProtoMsg { typeUrl: "/cosmos.tx.signing.v1beta1.SignatureDescriptors"; value: Uint8Array; @@ -118,6 +122,11 @@ export interface SignatureDescriptor { */ sequence: bigint; } +export interface ReactiveSignatureDescriptor { + publicKey?: ComputedRef; + data?: ComputedRef; + sequence: ComputedRef; +} export interface SignatureDescriptorProtoMsg { typeUrl: "/cosmos.tx.signing.v1beta1.SignatureDescriptor"; value: Uint8Array; @@ -140,6 +149,10 @@ export interface SignatureDescriptor_Data { /** multi represents a multisig signer */ multi?: SignatureDescriptor_Data_Multi; } +export interface ReactiveSignatureDescriptor_Data { + single?: ComputedRef; + multi?: ComputedRef; +} export interface SignatureDescriptor_DataProtoMsg { typeUrl: "/cosmos.tx.signing.v1beta1.Data"; value: Uint8Array; @@ -156,6 +169,10 @@ export interface SignatureDescriptor_Data_Single { /** signature is the raw signature bytes */ signature: Uint8Array; } +export interface ReactiveSignatureDescriptor_Data_Single { + mode: ComputedRef; + signature: ComputedRef; +} export interface SignatureDescriptor_Data_SingleProtoMsg { typeUrl: "/cosmos.tx.signing.v1beta1.Single"; value: Uint8Array; @@ -172,6 +189,10 @@ export interface SignatureDescriptor_Data_Multi { /** signatures is the signatures of the multi-signature */ signatures: SignatureDescriptor_Data[]; } +export interface ReactiveSignatureDescriptor_Data_Multi { + bitarray?: ComputedRef; + signatures: ComputedRef; +} export interface SignatureDescriptor_Data_MultiProtoMsg { typeUrl: "/cosmos.tx.signing.v1beta1.Multi"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/tx/v1beta1/service.ts b/__fixtures__/v-next/outputv4/cosmos/tx/v1beta1/service.ts index b0919e5265..d2048c78e0 100644 --- a/__fixtures__/v-next/outputv4/cosmos/tx/v1beta1/service.ts +++ b/__fixtures__/v-next/outputv4/cosmos/tx/v1beta1/service.ts @@ -6,6 +6,7 @@ import { Block, BlockSDKType } from "../../../tendermint/types/block.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial, bytesFromBase64, base64FromBytes } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.tx.v1beta1"; /** OrderBy defines the sorting order */ export enum OrderBy { @@ -116,6 +117,11 @@ export interface GetTxsEventRequest { pagination?: PageRequest; orderBy: OrderBy; } +export interface ReactiveGetTxsEventRequest { + events: ComputedRef; + pagination?: ComputedRef; + orderBy: ComputedRef; +} export interface GetTxsEventRequestProtoMsg { typeUrl: "/cosmos.tx.v1beta1.GetTxsEventRequest"; value: Uint8Array; @@ -141,6 +147,11 @@ export interface GetTxsEventResponse { /** pagination defines a pagination for the response. */ pagination?: PageResponse; } +export interface ReactiveGetTxsEventResponse { + txs: ComputedRef; + txResponses: ComputedRef; + pagination?: ComputedRef; +} export interface GetTxsEventResponseProtoMsg { typeUrl: "/cosmos.tx.v1beta1.GetTxsEventResponse"; value: Uint8Array; @@ -163,6 +174,10 @@ export interface BroadcastTxRequest { txBytes: Uint8Array; mode: BroadcastMode; } +export interface ReactiveBroadcastTxRequest { + txBytes: ComputedRef; + mode: ComputedRef; +} export interface BroadcastTxRequestProtoMsg { typeUrl: "/cosmos.tx.v1beta1.BroadcastTxRequest"; value: Uint8Array; @@ -183,6 +198,9 @@ export interface BroadcastTxResponse { /** tx_response is the queried TxResponses. */ txResponse?: TxResponse; } +export interface ReactiveBroadcastTxResponse { + txResponse?: ComputedRef; +} export interface BroadcastTxResponseProtoMsg { typeUrl: "/cosmos.tx.v1beta1.BroadcastTxResponse"; value: Uint8Array; @@ -212,6 +230,10 @@ export interface SimulateRequest { */ txBytes: Uint8Array; } +export interface ReactiveSimulateRequest { + tx?: ComputedRef; + txBytes: ComputedRef; +} export interface SimulateRequestProtoMsg { typeUrl: "/cosmos.tx.v1beta1.SimulateRequest"; value: Uint8Array; @@ -235,6 +257,10 @@ export interface SimulateResponse { /** result is the result of the simulation. */ result?: Result; } +export interface ReactiveSimulateResponse { + gasInfo?: ComputedRef; + result?: ComputedRef; +} export interface SimulateResponseProtoMsg { typeUrl: "/cosmos.tx.v1beta1.SimulateResponse"; value: Uint8Array; @@ -255,6 +281,9 @@ export interface GetTxRequest { /** hash is the tx hash to query, encoded as a hex string. */ hash: string; } +export interface ReactiveGetTxRequest { + hash: ComputedRef; +} export interface GetTxRequestProtoMsg { typeUrl: "/cosmos.tx.v1beta1.GetTxRequest"; value: Uint8Array; @@ -273,6 +302,10 @@ export interface GetTxResponse { /** tx_response is the queried TxResponses. */ txResponse?: TxResponse; } +export interface ReactiveGetTxResponse { + tx?: ComputedRef; + txResponse?: ComputedRef; +} export interface GetTxResponseProtoMsg { typeUrl: "/cosmos.tx.v1beta1.GetTxResponse"; value: Uint8Array; @@ -294,6 +327,10 @@ export interface GetBlockWithTxsRequest { /** pagination defines a pagination for the request. */ pagination?: PageRequest; } +export interface ReactiveGetBlockWithTxsRequest { + height: ComputedRef; + pagination?: ComputedRef; +} export interface GetBlockWithTxsRequestProtoMsg { typeUrl: "/cosmos.tx.v1beta1.GetBlockWithTxsRequest"; value: Uint8Array; @@ -321,6 +358,12 @@ export interface GetBlockWithTxsResponse { /** pagination defines a pagination for the response. */ pagination?: PageResponse; } +export interface ReactiveGetBlockWithTxsResponse { + txs: ComputedRef; + blockId?: ComputedRef; + block?: ComputedRef; + pagination?: ComputedRef; +} export interface GetBlockWithTxsResponseProtoMsg { typeUrl: "/cosmos.tx.v1beta1.GetBlockWithTxsResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/tx/v1beta1/tx.ts b/__fixtures__/v-next/outputv4/cosmos/tx/v1beta1/tx.ts index 13eadffee6..9ea4a598b4 100644 --- a/__fixtures__/v-next/outputv4/cosmos/tx/v1beta1/tx.ts +++ b/__fixtures__/v-next/outputv4/cosmos/tx/v1beta1/tx.ts @@ -5,6 +5,7 @@ import { Coin, CoinSDKType } from "../../base/v1beta1/coin.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, bytesFromBase64, base64FromBytes, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.tx.v1beta1"; /** Tx is the standard type used for broadcasting transactions. */ export interface Tx { @@ -22,6 +23,11 @@ export interface Tx { */ signatures: Uint8Array[]; } +export interface ReactiveTx { + body?: ComputedRef; + authInfo?: ComputedRef; + signatures: ComputedRef; +} export interface TxProtoMsg { typeUrl: "/cosmos.tx.v1beta1.Tx"; value: Uint8Array; @@ -57,6 +63,11 @@ export interface TxRaw { */ signatures: Uint8Array[]; } +export interface ReactiveTxRaw { + bodyBytes: ComputedRef; + authInfoBytes: ComputedRef; + signatures: ComputedRef; +} export interface TxRawProtoMsg { typeUrl: "/cosmos.tx.v1beta1.TxRaw"; value: Uint8Array; @@ -94,6 +105,12 @@ export interface SignDoc { /** account_number is the account number of the account in state */ accountNumber: bigint; } +export interface ReactiveSignDoc { + bodyBytes: ComputedRef; + authInfoBytes: ComputedRef; + chainId: ComputedRef; + accountNumber: ComputedRef; +} export interface SignDocProtoMsg { typeUrl: "/cosmos.tx.v1beta1.SignDoc"; value: Uint8Array; @@ -135,6 +152,14 @@ export interface SignDocDirectAux { */ tip?: Tip; } +export interface ReactiveSignDocDirectAux { + bodyBytes: ComputedRef; + publicKey?: ComputedRef; + chainId: ComputedRef; + accountNumber: ComputedRef; + sequence: ComputedRef; + tip?: ComputedRef; +} export interface SignDocDirectAuxProtoMsg { typeUrl: "/cosmos.tx.v1beta1.SignDocDirectAux"; value: Uint8Array; @@ -189,6 +214,13 @@ export interface TxBody { */ nonCriticalExtensionOptions: Any[]; } +export interface ReactiveTxBody { + messages: ComputedRef; + memo: ComputedRef; + timeoutHeight: ComputedRef; + extensionOptions: ComputedRef; + nonCriticalExtensionOptions: ComputedRef; +} export interface TxBodyProtoMsg { typeUrl: "/cosmos.tx.v1beta1.TxBody"; value: Uint8Array; @@ -227,6 +259,11 @@ export interface AuthInfo { */ tip?: Tip; } +export interface ReactiveAuthInfo { + signerInfos: ComputedRef; + fee?: ComputedRef; + tip?: ComputedRef; +} export interface AuthInfoProtoMsg { typeUrl: "/cosmos.tx.v1beta1.AuthInfo"; value: Uint8Array; @@ -263,6 +300,11 @@ export interface SignerInfo { */ sequence: bigint; } +export interface ReactiveSignerInfo { + publicKey?: ComputedRef; + modeInfo?: ComputedRef; + sequence: ComputedRef; +} export interface SignerInfoProtoMsg { typeUrl: "/cosmos.tx.v1beta1.SignerInfo"; value: Uint8Array; @@ -283,6 +325,10 @@ export interface ModeInfo { /** multi represents a nested multisig signer */ multi?: ModeInfo_Multi; } +export interface ReactiveModeInfo { + single?: ComputedRef; + multi?: ComputedRef; +} export interface ModeInfoProtoMsg { typeUrl: "/cosmos.tx.v1beta1.ModeInfo"; value: Uint8Array; @@ -301,6 +347,9 @@ export interface ModeInfo_Single { /** mode is the signing mode of the single signer */ mode: SignMode; } +export interface ReactiveModeInfo_Single { + mode: ComputedRef; +} export interface ModeInfo_SingleProtoMsg { typeUrl: "/cosmos.tx.v1beta1.Single"; value: Uint8Array; @@ -323,6 +372,10 @@ export interface ModeInfo_Multi { */ modeInfos: ModeInfo[]; } +export interface ReactiveModeInfo_Multi { + bitarray?: ComputedRef; + modeInfos: ComputedRef; +} export interface ModeInfo_MultiProtoMsg { typeUrl: "/cosmos.tx.v1beta1.Multi"; value: Uint8Array; @@ -358,6 +411,12 @@ export interface Fee { */ granter: string; } +export interface ReactiveFee { + amount: ComputedRef; + gasLimit: ComputedRef; + payer: ComputedRef; + granter: ComputedRef; +} export interface FeeProtoMsg { typeUrl: "/cosmos.tx.v1beta1.Fee"; value: Uint8Array; @@ -384,6 +443,10 @@ export interface Tip { /** tipper is the address of the account paying for the tip */ tipper: string; } +export interface ReactiveTip { + amount: ComputedRef; + tipper: ComputedRef; +} export interface TipProtoMsg { typeUrl: "/cosmos.tx.v1beta1.Tip"; value: Uint8Array; @@ -423,6 +486,12 @@ export interface AuxSignerData { /** sig is the signature of the sign doc. */ sig: Uint8Array; } +export interface ReactiveAuxSignerData { + address: ComputedRef; + signDoc?: ComputedRef; + mode: ComputedRef; + sig: ComputedRef; +} export interface AuxSignerDataProtoMsg { typeUrl: "/cosmos.tx.v1beta1.AuxSignerData"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/upgrade/v1beta1/query.rpc.Query.ts b/__fixtures__/v-next/outputv4/cosmos/upgrade/v1beta1/query.rpc.Query.ts index 80d127d58d..288edda1ff 100644 --- a/__fixtures__/v-next/outputv4/cosmos/upgrade/v1beta1/query.rpc.Query.ts +++ b/__fixtures__/v-next/outputv4/cosmos/upgrade/v1beta1/query.rpc.Query.ts @@ -2,7 +2,7 @@ import { Plan, PlanSDKType, ModuleVersion, ModuleVersionSDKType } from "./upgrad import { Rpc } from "../../../helpers.js"; import { BinaryReader } from "../../../binary.js"; import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryCurrentPlanRequest, QueryCurrentPlanRequestSDKType, QueryCurrentPlanResponse, QueryCurrentPlanResponseSDKType, QueryAppliedPlanRequest, QueryAppliedPlanRequestSDKType, QueryAppliedPlanResponse, QueryAppliedPlanResponseSDKType, QueryUpgradedConsensusStateRequest, QueryUpgradedConsensusStateRequestSDKType, QueryUpgradedConsensusStateResponse, QueryUpgradedConsensusStateResponseSDKType, QueryModuleVersionsRequest, QueryModuleVersionsRequestSDKType, QueryModuleVersionsResponse, QueryModuleVersionsResponseSDKType, QueryAuthorityRequest, QueryAuthorityRequestSDKType, QueryAuthorityResponse, QueryAuthorityResponseSDKType } from "./query.js"; +import { QueryCurrentPlanRequest, QueryCurrentPlanRequestSDKType, QueryCurrentPlanResponse, QueryCurrentPlanResponseSDKType, QueryAppliedPlanRequest, QueryAppliedPlanRequestSDKType, QueryAppliedPlanResponse, QueryAppliedPlanResponseSDKType, QueryUpgradedConsensusStateRequest, QueryUpgradedConsensusStateRequestSDKType, QueryUpgradedConsensusStateResponse, QueryUpgradedConsensusStateResponseSDKType, QueryModuleVersionsRequest, QueryModuleVersionsRequestSDKType, QueryModuleVersionsResponse, QueryModuleVersionsResponseSDKType, QueryAuthorityRequest, QueryAuthorityRequestSDKType, QueryAuthorityResponse, QueryAuthorityResponseSDKType, ReactiveQueryCurrentPlanRequest, ReactiveQueryAppliedPlanRequest, ReactiveQueryUpgradedConsensusStateRequest, ReactiveQueryModuleVersionsRequest, ReactiveQueryAuthorityRequest } from "./query.js"; /** Query defines the gRPC upgrade querier service. */ export interface Query { /** CurrentPlan queries the current upgrade plan. */ diff --git a/__fixtures__/v-next/outputv4/cosmos/upgrade/v1beta1/query.ts b/__fixtures__/v-next/outputv4/cosmos/upgrade/v1beta1/query.ts index 65e3031521..75de59a65b 100644 --- a/__fixtures__/v-next/outputv4/cosmos/upgrade/v1beta1/query.ts +++ b/__fixtures__/v-next/outputv4/cosmos/upgrade/v1beta1/query.ts @@ -2,12 +2,14 @@ import { Plan, PlanSDKType, ModuleVersion, ModuleVersionSDKType } from "./upgrad import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { JsonSafe } from "../../../json-safe.js"; import { DeepPartial, isSet, bytesFromBase64, base64FromBytes } from "../../../helpers.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.upgrade.v1beta1"; /** * QueryCurrentPlanRequest is the request type for the Query/CurrentPlan RPC * method. */ export interface QueryCurrentPlanRequest {} +export interface ReactiveQueryCurrentPlanRequest {} export interface QueryCurrentPlanRequestProtoMsg { typeUrl: "/cosmos.upgrade.v1beta1.QueryCurrentPlanRequest"; value: Uint8Array; @@ -25,6 +27,9 @@ export interface QueryCurrentPlanResponse { /** plan is the current upgrade plan. */ plan?: Plan; } +export interface ReactiveQueryCurrentPlanResponse { + plan?: ComputedRef; +} export interface QueryCurrentPlanResponseProtoMsg { typeUrl: "/cosmos.upgrade.v1beta1.QueryCurrentPlanResponse"; value: Uint8Array; @@ -44,6 +49,9 @@ export interface QueryAppliedPlanRequest { /** name is the name of the applied plan to query for. */ name: string; } +export interface ReactiveQueryAppliedPlanRequest { + name: ComputedRef; +} export interface QueryAppliedPlanRequestProtoMsg { typeUrl: "/cosmos.upgrade.v1beta1.QueryAppliedPlanRequest"; value: Uint8Array; @@ -63,6 +71,9 @@ export interface QueryAppliedPlanResponse { /** height is the block height at which the plan was applied. */ height: bigint; } +export interface ReactiveQueryAppliedPlanResponse { + height: ComputedRef; +} export interface QueryAppliedPlanResponseProtoMsg { typeUrl: "/cosmos.upgrade.v1beta1.QueryAppliedPlanResponse"; value: Uint8Array; @@ -86,6 +97,9 @@ export interface QueryUpgradedConsensusStateRequest { */ lastHeight: bigint; } +export interface ReactiveQueryUpgradedConsensusStateRequest { + lastHeight: ComputedRef; +} export interface QueryUpgradedConsensusStateRequestProtoMsg { typeUrl: "/cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest"; value: Uint8Array; @@ -107,6 +121,9 @@ export interface QueryUpgradedConsensusStateResponse { /** Since: cosmos-sdk 0.43 */ upgradedConsensusState: Uint8Array; } +export interface ReactiveQueryUpgradedConsensusStateResponse { + upgradedConsensusState: ComputedRef; +} export interface QueryUpgradedConsensusStateResponseProtoMsg { typeUrl: "/cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse"; value: Uint8Array; @@ -133,6 +150,9 @@ export interface QueryModuleVersionsRequest { */ moduleName: string; } +export interface ReactiveQueryModuleVersionsRequest { + moduleName: ComputedRef; +} export interface QueryModuleVersionsRequestProtoMsg { typeUrl: "/cosmos.upgrade.v1beta1.QueryModuleVersionsRequest"; value: Uint8Array; @@ -156,6 +176,9 @@ export interface QueryModuleVersionsResponse { /** module_versions is a list of module names with their consensus versions. */ moduleVersions: ModuleVersion[]; } +export interface ReactiveQueryModuleVersionsResponse { + moduleVersions: ComputedRef; +} export interface QueryModuleVersionsResponseProtoMsg { typeUrl: "/cosmos.upgrade.v1beta1.QueryModuleVersionsResponse"; value: Uint8Array; @@ -175,6 +198,7 @@ export interface QueryModuleVersionsResponseSDKType { * Since: cosmos-sdk 0.46 */ export interface QueryAuthorityRequest {} +export interface ReactiveQueryAuthorityRequest {} export interface QueryAuthorityRequestProtoMsg { typeUrl: "/cosmos.upgrade.v1beta1.QueryAuthorityRequest"; value: Uint8Array; @@ -193,6 +217,9 @@ export interface QueryAuthorityRequestSDKType {} export interface QueryAuthorityResponse { address: string; } +export interface ReactiveQueryAuthorityResponse { + address: ComputedRef; +} export interface QueryAuthorityResponseProtoMsg { typeUrl: "/cosmos.upgrade.v1beta1.QueryAuthorityResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/upgrade/v1beta1/tx.ts b/__fixtures__/v-next/outputv4/cosmos/upgrade/v1beta1/tx.ts index e1e807d4af..9d0197715c 100644 --- a/__fixtures__/v-next/outputv4/cosmos/upgrade/v1beta1/tx.ts +++ b/__fixtures__/v-next/outputv4/cosmos/upgrade/v1beta1/tx.ts @@ -2,6 +2,7 @@ import { Plan, PlanSDKType } from "./upgrade.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.upgrade.v1beta1"; /** * MsgSoftwareUpgrade is the Msg/SoftwareUpgrade request type. @@ -14,6 +15,10 @@ export interface MsgSoftwareUpgrade { /** plan is the upgrade plan. */ plan: Plan; } +export interface ReactiveMsgSoftwareUpgrade { + authority: ComputedRef; + plan: ComputedRef; +} export interface MsgSoftwareUpgradeProtoMsg { typeUrl: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade"; value: Uint8Array; @@ -33,6 +38,7 @@ export interface MsgSoftwareUpgradeSDKType { * Since: cosmos-sdk 0.46 */ export interface MsgSoftwareUpgradeResponse {} +export interface ReactiveMsgSoftwareUpgradeResponse {} export interface MsgSoftwareUpgradeResponseProtoMsg { typeUrl: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgradeResponse"; value: Uint8Array; @@ -52,6 +58,9 @@ export interface MsgCancelUpgrade { /** authority is the address of the governance account. */ authority: string; } +export interface ReactiveMsgCancelUpgrade { + authority: ComputedRef; +} export interface MsgCancelUpgradeProtoMsg { typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgrade"; value: Uint8Array; @@ -70,6 +79,7 @@ export interface MsgCancelUpgradeSDKType { * Since: cosmos-sdk 0.46 */ export interface MsgCancelUpgradeResponse {} +export interface ReactiveMsgCancelUpgradeResponse {} export interface MsgCancelUpgradeResponseProtoMsg { typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgradeResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/upgrade/v1beta1/upgrade.ts b/__fixtures__/v-next/outputv4/cosmos/upgrade/v1beta1/upgrade.ts index 0c594529ac..02395a597a 100644 --- a/__fixtures__/v-next/outputv4/cosmos/upgrade/v1beta1/upgrade.ts +++ b/__fixtures__/v-next/outputv4/cosmos/upgrade/v1beta1/upgrade.ts @@ -3,6 +3,7 @@ import { Any, AnySDKType } from "../../../google/protobuf/any.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { toTimestamp, fromTimestamp, isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.upgrade.v1beta1"; /** Plan specifies information about a planned upgrade and when it should occur. */ export interface Plan { @@ -41,6 +42,13 @@ export interface Plan { /** @deprecated */ upgradedClientState?: Any; } +export interface ReactivePlan { + name: ComputedRef; + time: ComputedRef; + height: ComputedRef; + info: ComputedRef; + upgradedClientState?: ComputedRef; +} export interface PlanProtoMsg { typeUrl: "/cosmos.upgrade.v1beta1.Plan"; value: Uint8Array; @@ -67,6 +75,11 @@ export interface SoftwareUpgradeProposal { description: string; plan: Plan; } +export interface ReactiveSoftwareUpgradeProposal { + title: ComputedRef; + description: ComputedRef; + plan: ComputedRef; +} export interface SoftwareUpgradeProposalProtoMsg { typeUrl: "/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal"; value: Uint8Array; @@ -94,6 +107,10 @@ export interface CancelSoftwareUpgradeProposal { title: string; description: string; } +export interface ReactiveCancelSoftwareUpgradeProposal { + title: ComputedRef; + description: ComputedRef; +} export interface CancelSoftwareUpgradeProposalProtoMsg { typeUrl: "/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal"; value: Uint8Array; @@ -120,6 +137,10 @@ export interface ModuleVersion { /** consensus version of the app module */ version: bigint; } +export interface ReactiveModuleVersion { + name: ComputedRef; + version: ComputedRef; +} export interface ModuleVersionProtoMsg { typeUrl: "/cosmos.upgrade.v1beta1.ModuleVersion"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/vesting/v1beta1/tx.ts b/__fixtures__/v-next/outputv4/cosmos/vesting/v1beta1/tx.ts index 89f9703250..251a21ade2 100644 --- a/__fixtures__/v-next/outputv4/cosmos/vesting/v1beta1/tx.ts +++ b/__fixtures__/v-next/outputv4/cosmos/vesting/v1beta1/tx.ts @@ -3,6 +3,7 @@ import { Period, PeriodSDKType } from "./vesting.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.vesting.v1beta1"; /** * MsgCreateVestingAccount defines a message that enables creating a vesting @@ -15,6 +16,13 @@ export interface MsgCreateVestingAccount { endTime: bigint; delayed: boolean; } +export interface ReactiveMsgCreateVestingAccount { + fromAddress: ComputedRef; + toAddress: ComputedRef; + amount: ComputedRef; + endTime: ComputedRef; + delayed: ComputedRef; +} export interface MsgCreateVestingAccountProtoMsg { typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccount"; value: Uint8Array; @@ -32,6 +40,7 @@ export interface MsgCreateVestingAccountSDKType { } /** MsgCreateVestingAccountResponse defines the Msg/CreateVestingAccount response type. */ export interface MsgCreateVestingAccountResponse {} +export interface ReactiveMsgCreateVestingAccountResponse {} export interface MsgCreateVestingAccountResponseProtoMsg { typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse"; value: Uint8Array; @@ -47,6 +56,11 @@ export interface MsgCreatePermanentLockedAccount { toAddress: string; amount: Coin[]; } +export interface ReactiveMsgCreatePermanentLockedAccount { + fromAddress: ComputedRef; + toAddress: ComputedRef; + amount: ComputedRef; +} export interface MsgCreatePermanentLockedAccountProtoMsg { typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount"; value: Uint8Array; @@ -62,6 +76,7 @@ export interface MsgCreatePermanentLockedAccountSDKType { } /** MsgCreatePermanentLockedAccountResponse defines the Msg/CreatePermanentLockedAccount response type. */ export interface MsgCreatePermanentLockedAccountResponse {} +export interface ReactiveMsgCreatePermanentLockedAccountResponse {} export interface MsgCreatePermanentLockedAccountResponseProtoMsg { typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccountResponse"; value: Uint8Array; @@ -78,6 +93,12 @@ export interface MsgCreatePeriodicVestingAccount { startTime: bigint; vestingPeriods: Period[]; } +export interface ReactiveMsgCreatePeriodicVestingAccount { + fromAddress: ComputedRef; + toAddress: ComputedRef; + startTime: ComputedRef; + vestingPeriods: ComputedRef; +} export interface MsgCreatePeriodicVestingAccountProtoMsg { typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount"; value: Uint8Array; @@ -97,6 +118,7 @@ export interface MsgCreatePeriodicVestingAccountSDKType { * response type. */ export interface MsgCreatePeriodicVestingAccountResponse {} +export interface ReactiveMsgCreatePeriodicVestingAccountResponse {} export interface MsgCreatePeriodicVestingAccountResponseProtoMsg { typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccountResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos/vesting/v1beta1/vesting.ts b/__fixtures__/v-next/outputv4/cosmos/vesting/v1beta1/vesting.ts index cc55ab14df..7d3979483c 100644 --- a/__fixtures__/v-next/outputv4/cosmos/vesting/v1beta1/vesting.ts +++ b/__fixtures__/v-next/outputv4/cosmos/vesting/v1beta1/vesting.ts @@ -3,6 +3,7 @@ import { Coin, CoinSDKType } from "../../base/v1beta1/coin.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos.vesting.v1beta1"; /** * BaseVestingAccount implements the VestingAccount interface. It contains all @@ -15,6 +16,13 @@ export interface BaseVestingAccount { delegatedVesting: Coin[]; endTime: bigint; } +export interface ReactiveBaseVestingAccount { + baseAccount?: ComputedRef; + originalVesting: ComputedRef; + delegatedFree: ComputedRef; + delegatedVesting: ComputedRef; + endTime: ComputedRef; +} export interface BaseVestingAccountProtoMsg { typeUrl: "/cosmos.vesting.v1beta1.BaseVestingAccount"; value: Uint8Array; @@ -38,6 +46,10 @@ export interface ContinuousVestingAccount { baseVestingAccount?: BaseVestingAccount; startTime: bigint; } +export interface ReactiveContinuousVestingAccount { + baseVestingAccount?: ComputedRef; + startTime: ComputedRef; +} export interface ContinuousVestingAccountProtoMsg { typeUrl: "/cosmos.vesting.v1beta1.ContinuousVestingAccount"; value: Uint8Array; @@ -58,6 +70,9 @@ export interface ContinuousVestingAccountSDKType { export interface DelayedVestingAccount { baseVestingAccount?: BaseVestingAccount; } +export interface ReactiveDelayedVestingAccount { + baseVestingAccount?: ComputedRef; +} export interface DelayedVestingAccountProtoMsg { typeUrl: "/cosmos.vesting.v1beta1.DelayedVestingAccount"; value: Uint8Array; @@ -75,6 +90,10 @@ export interface Period { length: bigint; amount: Coin[]; } +export interface ReactivePeriod { + length: ComputedRef; + amount: ComputedRef; +} export interface PeriodProtoMsg { typeUrl: "/cosmos.vesting.v1beta1.Period"; value: Uint8Array; @@ -93,6 +112,11 @@ export interface PeriodicVestingAccount { startTime: bigint; vestingPeriods: Period[]; } +export interface ReactivePeriodicVestingAccount { + baseVestingAccount?: ComputedRef; + startTime: ComputedRef; + vestingPeriods: ComputedRef; +} export interface PeriodicVestingAccountProtoMsg { typeUrl: "/cosmos.vesting.v1beta1.PeriodicVestingAccount"; value: Uint8Array; @@ -116,6 +140,9 @@ export interface PeriodicVestingAccountSDKType { export interface PermanentLockedAccount { baseVestingAccount?: BaseVestingAccount; } +export interface ReactivePermanentLockedAccount { + baseVestingAccount?: ComputedRef; +} export interface PermanentLockedAccountProtoMsg { typeUrl: "/cosmos.vesting.v1beta1.PermanentLockedAccount"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmos_proto/cosmos.ts b/__fixtures__/v-next/outputv4/cosmos_proto/cosmos.ts index c0ca244aba..d86aedf322 100644 --- a/__fixtures__/v-next/outputv4/cosmos_proto/cosmos.ts +++ b/__fixtures__/v-next/outputv4/cosmos_proto/cosmos.ts @@ -1,6 +1,7 @@ import { BinaryReader, BinaryWriter } from "../binary.js"; import { isSet, DeepPartial } from "../helpers.js"; import { JsonSafe } from "../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmos_proto"; export enum ScalarType { SCALAR_TYPE_UNSPECIFIED = 0, @@ -57,6 +58,10 @@ export interface InterfaceDescriptor { */ description: string; } +export interface ReactiveInterfaceDescriptor { + name: ComputedRef; + description: ComputedRef; +} export interface InterfaceDescriptorProtoMsg { typeUrl: "/cosmos_proto.InterfaceDescriptor"; value: Uint8Array; @@ -100,6 +105,11 @@ export interface ScalarDescriptor { */ fieldType: ScalarType[]; } +export interface ReactiveScalarDescriptor { + name: ComputedRef; + description: ComputedRef; + fieldType: ComputedRef; +} export interface ScalarDescriptorProtoMsg { typeUrl: "/cosmos_proto.ScalarDescriptor"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmwasm/wasm/v1/genesis.ts b/__fixtures__/v-next/outputv4/cosmwasm/wasm/v1/genesis.ts index 2add1007dc..b1da100f8b 100644 --- a/__fixtures__/v-next/outputv4/cosmwasm/wasm/v1/genesis.ts +++ b/__fixtures__/v-next/outputv4/cosmwasm/wasm/v1/genesis.ts @@ -3,6 +3,7 @@ import { Params, ParamsSDKType, CodeInfo, CodeInfoSDKType, ContractInfo, Contrac import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial, bytesFromBase64, base64FromBytes } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmwasm.wasm.v1"; /** GenesisState - genesis state of x/wasm */ export interface GenesisState { @@ -12,6 +13,13 @@ export interface GenesisState { sequences: Sequence[]; genMsgs: GenesisState_GenMsgs[]; } +export interface ReactiveGenesisState { + params: ComputedRef; + codes: ComputedRef; + contracts: ComputedRef; + sequences: ComputedRef; + genMsgs: ComputedRef; +} export interface GenesisStateProtoMsg { typeUrl: "/cosmwasm.wasm.v1.GenesisState"; value: Uint8Array; @@ -33,6 +41,11 @@ export interface GenesisState_GenMsgs { instantiateContract?: MsgInstantiateContract; executeContract?: MsgExecuteContract; } +export interface ReactiveGenesisState_GenMsgs { + storeCode?: ComputedRef; + instantiateContract?: ComputedRef; + executeContract?: ComputedRef; +} export interface GenesisState_GenMsgsProtoMsg { typeUrl: "/cosmwasm.wasm.v1.GenMsgs"; value: Uint8Array; @@ -54,6 +67,12 @@ export interface Code { /** Pinned to wasmvm cache */ pinned: boolean; } +export interface ReactiveCode { + codeId: ComputedRef; + codeInfo: ComputedRef; + codeBytes: ComputedRef; + pinned: ComputedRef; +} export interface CodeProtoMsg { typeUrl: "/cosmwasm.wasm.v1.Code"; value: Uint8Array; @@ -71,6 +90,11 @@ export interface Contract { contractInfo: ContractInfo; contractState: Model[]; } +export interface ReactiveContract { + contractAddress: ComputedRef; + contractInfo: ComputedRef; + contractState: ComputedRef; +} export interface ContractProtoMsg { typeUrl: "/cosmwasm.wasm.v1.Contract"; value: Uint8Array; @@ -86,6 +110,10 @@ export interface Sequence { idKey: Uint8Array; value: bigint; } +export interface ReactiveSequence { + idKey: ComputedRef; + value: ComputedRef; +} export interface SequenceProtoMsg { typeUrl: "/cosmwasm.wasm.v1.Sequence"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmwasm/wasm/v1/ibc.ts b/__fixtures__/v-next/outputv4/cosmwasm/wasm/v1/ibc.ts index 246a4c7a40..866a761f20 100644 --- a/__fixtures__/v-next/outputv4/cosmwasm/wasm/v1/ibc.ts +++ b/__fixtures__/v-next/outputv4/cosmwasm/wasm/v1/ibc.ts @@ -1,6 +1,7 @@ import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, bytesFromBase64, base64FromBytes, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmwasm.wasm.v1"; /** MsgIBCSend */ export interface MsgIBCSend { @@ -22,6 +23,12 @@ export interface MsgIBCSend { */ data: Uint8Array; } +export interface ReactiveMsgIBCSend { + channel: ComputedRef; + timeoutHeight: ComputedRef; + timeoutTimestamp: ComputedRef; + data: ComputedRef; +} export interface MsgIBCSendProtoMsg { typeUrl: "/cosmwasm.wasm.v1.MsgIBCSend"; value: Uint8Array; @@ -37,6 +44,9 @@ export interface MsgIBCSendSDKType { export interface MsgIBCCloseChannel { channel: string; } +export interface ReactiveMsgIBCCloseChannel { + channel: ComputedRef; +} export interface MsgIBCCloseChannelProtoMsg { typeUrl: "/cosmwasm.wasm.v1.MsgIBCCloseChannel"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmwasm/wasm/v1/proposal.ts b/__fixtures__/v-next/outputv4/cosmwasm/wasm/v1/proposal.ts index dd73766a61..2a446e5b0a 100644 --- a/__fixtures__/v-next/outputv4/cosmwasm/wasm/v1/proposal.ts +++ b/__fixtures__/v-next/outputv4/cosmwasm/wasm/v1/proposal.ts @@ -4,6 +4,7 @@ import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, bytesFromBase64, base64FromBytes, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; import { fromBase64, toBase64, toUtf8, fromUtf8 } from "@cosmjs/encoding"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmwasm.wasm.v1"; /** StoreCodeProposal gov proposal content type to submit WASM code to the system */ export interface StoreCodeProposal { @@ -18,6 +19,13 @@ export interface StoreCodeProposal { /** InstantiatePermission to apply on contract creation, optional */ instantiatePermission?: AccessConfig; } +export interface ReactiveStoreCodeProposal { + title: ComputedRef; + description: ComputedRef; + runAs: ComputedRef; + wasmByteCode: ComputedRef; + instantiatePermission?: ComputedRef; +} export interface StoreCodeProposalProtoMsg { typeUrl: "/cosmwasm.wasm.v1.StoreCodeProposal"; value: Uint8Array; @@ -52,6 +60,16 @@ export interface InstantiateContractProposal { /** Funds coins that are transferred to the contract on instantiation */ funds: Coin[]; } +export interface ReactiveInstantiateContractProposal { + title: ComputedRef; + description: ComputedRef; + runAs: ComputedRef; + admin: ComputedRef; + codeId: ComputedRef; + label: ComputedRef; + msg: ComputedRef; + funds: ComputedRef; +} export interface InstantiateContractProposalProtoMsg { typeUrl: "/cosmwasm.wasm.v1.InstantiateContractProposal"; value: Uint8Array; @@ -83,6 +101,13 @@ export interface MigrateContractProposal { /** Msg json encoded message to be passed to the contract on migration */ msg: Uint8Array; } +export interface ReactiveMigrateContractProposal { + title: ComputedRef; + description: ComputedRef; + contract: ComputedRef; + codeId: ComputedRef; + msg: ComputedRef; +} export interface MigrateContractProposalProtoMsg { typeUrl: "/cosmwasm.wasm.v1.MigrateContractProposal"; value: Uint8Array; @@ -106,6 +131,12 @@ export interface SudoContractProposal { /** Msg json encoded message to be passed to the contract as sudo */ msg: Uint8Array; } +export interface ReactiveSudoContractProposal { + title: ComputedRef; + description: ComputedRef; + contract: ComputedRef; + msg: ComputedRef; +} export interface SudoContractProposalProtoMsg { typeUrl: "/cosmwasm.wasm.v1.SudoContractProposal"; value: Uint8Array; @@ -135,6 +166,14 @@ export interface ExecuteContractProposal { /** Funds coins that are transferred to the contract on instantiation */ funds: Coin[]; } +export interface ReactiveExecuteContractProposal { + title: ComputedRef; + description: ComputedRef; + runAs: ComputedRef; + contract: ComputedRef; + msg: ComputedRef; + funds: ComputedRef; +} export interface ExecuteContractProposalProtoMsg { typeUrl: "/cosmwasm.wasm.v1.ExecuteContractProposal"; value: Uint8Array; @@ -162,6 +201,12 @@ export interface UpdateAdminProposal { /** Contract is the address of the smart contract */ contract: string; } +export interface ReactiveUpdateAdminProposal { + title: ComputedRef; + description: ComputedRef; + newAdmin: ComputedRef; + contract: ComputedRef; +} export interface UpdateAdminProposalProtoMsg { typeUrl: "/cosmwasm.wasm.v1.UpdateAdminProposal"; value: Uint8Array; @@ -185,6 +230,11 @@ export interface ClearAdminProposal { /** Contract is the address of the smart contract */ contract: string; } +export interface ReactiveClearAdminProposal { + title: ComputedRef; + description: ComputedRef; + contract: ComputedRef; +} export interface ClearAdminProposalProtoMsg { typeUrl: "/cosmwasm.wasm.v1.ClearAdminProposal"; value: Uint8Array; @@ -210,6 +260,11 @@ export interface PinCodesProposal { /** CodeIDs references the new WASM codes */ codeIds: bigint[]; } +export interface ReactivePinCodesProposal { + title: ComputedRef; + description: ComputedRef; + codeIds: ComputedRef; +} export interface PinCodesProposalProtoMsg { typeUrl: "/cosmwasm.wasm.v1.PinCodesProposal"; value: Uint8Array; @@ -235,6 +290,11 @@ export interface UnpinCodesProposal { /** CodeIDs references the WASM codes */ codeIds: bigint[]; } +export interface ReactiveUnpinCodesProposal { + title: ComputedRef; + description: ComputedRef; + codeIds: ComputedRef; +} export interface UnpinCodesProposalProtoMsg { typeUrl: "/cosmwasm.wasm.v1.UnpinCodesProposal"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmwasm/wasm/v1/query.rpc.Query.ts b/__fixtures__/v-next/outputv4/cosmwasm/wasm/v1/query.rpc.Query.ts index 69dbaff5bd..c4853a76b0 100644 --- a/__fixtures__/v-next/outputv4/cosmwasm/wasm/v1/query.rpc.Query.ts +++ b/__fixtures__/v-next/outputv4/cosmwasm/wasm/v1/query.rpc.Query.ts @@ -3,7 +3,7 @@ import { ContractInfo, ContractInfoSDKType, ContractCodeHistoryEntry, ContractCo import { Rpc } from "../../../helpers.js"; import { BinaryReader } from "../../../binary.js"; import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryContractInfoRequest, QueryContractInfoRequestSDKType, QueryContractInfoResponse, QueryContractInfoResponseSDKType, QueryContractHistoryRequest, QueryContractHistoryRequestSDKType, QueryContractHistoryResponse, QueryContractHistoryResponseSDKType, QueryContractsByCodeRequest, QueryContractsByCodeRequestSDKType, QueryContractsByCodeResponse, QueryContractsByCodeResponseSDKType, QueryAllContractStateRequest, QueryAllContractStateRequestSDKType, QueryAllContractStateResponse, QueryAllContractStateResponseSDKType, QueryRawContractStateRequest, QueryRawContractStateRequestSDKType, QueryRawContractStateResponse, QueryRawContractStateResponseSDKType, QuerySmartContractStateRequest, QuerySmartContractStateRequestSDKType, QuerySmartContractStateResponse, QuerySmartContractStateResponseSDKType, QueryCodeRequest, QueryCodeRequestSDKType, QueryCodeResponse, QueryCodeResponseSDKType, QueryCodesRequest, QueryCodesRequestSDKType, QueryCodesResponse, QueryCodesResponseSDKType, QueryPinnedCodesRequest, QueryPinnedCodesRequestSDKType, QueryPinnedCodesResponse, QueryPinnedCodesResponseSDKType } from "./query.js"; +import { QueryContractInfoRequest, QueryContractInfoRequestSDKType, QueryContractInfoResponse, QueryContractInfoResponseSDKType, QueryContractHistoryRequest, QueryContractHistoryRequestSDKType, QueryContractHistoryResponse, QueryContractHistoryResponseSDKType, QueryContractsByCodeRequest, QueryContractsByCodeRequestSDKType, QueryContractsByCodeResponse, QueryContractsByCodeResponseSDKType, QueryAllContractStateRequest, QueryAllContractStateRequestSDKType, QueryAllContractStateResponse, QueryAllContractStateResponseSDKType, QueryRawContractStateRequest, QueryRawContractStateRequestSDKType, QueryRawContractStateResponse, QueryRawContractStateResponseSDKType, QuerySmartContractStateRequest, QuerySmartContractStateRequestSDKType, QuerySmartContractStateResponse, QuerySmartContractStateResponseSDKType, QueryCodeRequest, QueryCodeRequestSDKType, QueryCodeResponse, QueryCodeResponseSDKType, QueryCodesRequest, QueryCodesRequestSDKType, QueryCodesResponse, QueryCodesResponseSDKType, QueryPinnedCodesRequest, QueryPinnedCodesRequestSDKType, QueryPinnedCodesResponse, QueryPinnedCodesResponseSDKType, ReactiveQueryContractInfoRequest, ReactiveQueryContractHistoryRequest, ReactiveQueryContractsByCodeRequest, ReactiveQueryAllContractStateRequest, ReactiveQueryRawContractStateRequest, ReactiveQuerySmartContractStateRequest, ReactiveQueryCodeRequest, ReactiveQueryCodesRequest, ReactiveQueryPinnedCodesRequest } from "./query.js"; /** Query provides defines the gRPC querier service */ export interface Query { /** ContractInfo gets the contract meta data */ diff --git a/__fixtures__/v-next/outputv4/cosmwasm/wasm/v1/query.ts b/__fixtures__/v-next/outputv4/cosmwasm/wasm/v1/query.ts index 262e35e445..2d29c931a0 100644 --- a/__fixtures__/v-next/outputv4/cosmwasm/wasm/v1/query.ts +++ b/__fixtures__/v-next/outputv4/cosmwasm/wasm/v1/query.ts @@ -4,6 +4,7 @@ import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial, bytesFromBase64, base64FromBytes } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; import { toUtf8, fromUtf8 } from "@cosmjs/encoding"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmwasm.wasm.v1"; /** * QueryContractInfoRequest is the request type for the Query/ContractInfo RPC @@ -13,6 +14,9 @@ export interface QueryContractInfoRequest { /** address is the address of the contract to query */ address: string; } +export interface ReactiveQueryContractInfoRequest { + address: ComputedRef; +} export interface QueryContractInfoRequestProtoMsg { typeUrl: "/cosmwasm.wasm.v1.QueryContractInfoRequest"; value: Uint8Array; @@ -33,6 +37,10 @@ export interface QueryContractInfoResponse { address: string; contractInfo: ContractInfo; } +export interface ReactiveQueryContractInfoResponse { + address: ComputedRef; + contractInfo: ComputedRef; +} export interface QueryContractInfoResponseProtoMsg { typeUrl: "/cosmwasm.wasm.v1.QueryContractInfoResponse"; value: Uint8Array; @@ -55,6 +63,10 @@ export interface QueryContractHistoryRequest { /** pagination defines an optional pagination for the request. */ pagination?: PageRequest; } +export interface ReactiveQueryContractHistoryRequest { + address: ComputedRef; + pagination?: ComputedRef; +} export interface QueryContractHistoryRequestProtoMsg { typeUrl: "/cosmwasm.wasm.v1.QueryContractHistoryRequest"; value: Uint8Array; @@ -76,6 +88,10 @@ export interface QueryContractHistoryResponse { /** pagination defines the pagination in the response. */ pagination?: PageResponse; } +export interface ReactiveQueryContractHistoryResponse { + entries: ComputedRef; + pagination?: ComputedRef; +} export interface QueryContractHistoryResponseProtoMsg { typeUrl: "/cosmwasm.wasm.v1.QueryContractHistoryResponse"; value: Uint8Array; @@ -98,6 +114,10 @@ export interface QueryContractsByCodeRequest { /** pagination defines an optional pagination for the request. */ pagination?: PageRequest; } +export interface ReactiveQueryContractsByCodeRequest { + codeId: ComputedRef; + pagination?: ComputedRef; +} export interface QueryContractsByCodeRequestProtoMsg { typeUrl: "/cosmwasm.wasm.v1.QueryContractsByCodeRequest"; value: Uint8Array; @@ -120,6 +140,10 @@ export interface QueryContractsByCodeResponse { /** pagination defines the pagination in the response. */ pagination?: PageResponse; } +export interface ReactiveQueryContractsByCodeResponse { + contracts: ComputedRef; + pagination?: ComputedRef; +} export interface QueryContractsByCodeResponseProtoMsg { typeUrl: "/cosmwasm.wasm.v1.QueryContractsByCodeResponse"; value: Uint8Array; @@ -142,6 +166,10 @@ export interface QueryAllContractStateRequest { /** pagination defines an optional pagination for the request. */ pagination?: PageRequest; } +export interface ReactiveQueryAllContractStateRequest { + address: ComputedRef; + pagination?: ComputedRef; +} export interface QueryAllContractStateRequestProtoMsg { typeUrl: "/cosmwasm.wasm.v1.QueryAllContractStateRequest"; value: Uint8Array; @@ -163,6 +191,10 @@ export interface QueryAllContractStateResponse { /** pagination defines the pagination in the response. */ pagination?: PageResponse; } +export interface ReactiveQueryAllContractStateResponse { + models: ComputedRef; + pagination?: ComputedRef; +} export interface QueryAllContractStateResponseProtoMsg { typeUrl: "/cosmwasm.wasm.v1.QueryAllContractStateResponse"; value: Uint8Array; @@ -184,6 +216,10 @@ export interface QueryRawContractStateRequest { address: string; queryData: Uint8Array; } +export interface ReactiveQueryRawContractStateRequest { + address: ComputedRef; + queryData: ComputedRef; +} export interface QueryRawContractStateRequestProtoMsg { typeUrl: "/cosmwasm.wasm.v1.QueryRawContractStateRequest"; value: Uint8Array; @@ -204,6 +240,9 @@ export interface QueryRawContractStateResponse { /** Data contains the raw store data */ data: Uint8Array; } +export interface ReactiveQueryRawContractStateResponse { + data: ComputedRef; +} export interface QueryRawContractStateResponseProtoMsg { typeUrl: "/cosmwasm.wasm.v1.QueryRawContractStateResponse"; value: Uint8Array; @@ -225,6 +264,10 @@ export interface QuerySmartContractStateRequest { /** QueryData contains the query data passed to the contract */ queryData: Uint8Array; } +export interface ReactiveQuerySmartContractStateRequest { + address: ComputedRef; + queryData: ComputedRef; +} export interface QuerySmartContractStateRequestProtoMsg { typeUrl: "/cosmwasm.wasm.v1.QuerySmartContractStateRequest"; value: Uint8Array; @@ -245,6 +288,9 @@ export interface QuerySmartContractStateResponse { /** Data contains the json data returned from the smart contract */ data: Uint8Array; } +export interface ReactiveQuerySmartContractStateResponse { + data: ComputedRef; +} export interface QuerySmartContractStateResponseProtoMsg { typeUrl: "/cosmwasm.wasm.v1.QuerySmartContractStateResponse"; value: Uint8Array; @@ -261,6 +307,9 @@ export interface QueryCodeRequest { /** grpc-gateway_out does not support Go style CodID */ codeId: bigint; } +export interface ReactiveQueryCodeRequest { + codeId: ComputedRef; +} export interface QueryCodeRequestProtoMsg { typeUrl: "/cosmwasm.wasm.v1.QueryCodeRequest"; value: Uint8Array; @@ -275,6 +324,11 @@ export interface CodeInfoResponse { creator: string; dataHash: Uint8Array; } +export interface ReactiveCodeInfoResponse { + codeId: ComputedRef; + creator: ComputedRef; + dataHash: ComputedRef; +} export interface CodeInfoResponseProtoMsg { typeUrl: "/cosmwasm.wasm.v1.CodeInfoResponse"; value: Uint8Array; @@ -290,6 +344,10 @@ export interface QueryCodeResponse { codeInfo?: CodeInfoResponse; data: Uint8Array; } +export interface ReactiveQueryCodeResponse { + codeInfo?: ComputedRef; + data: ComputedRef; +} export interface QueryCodeResponseProtoMsg { typeUrl: "/cosmwasm.wasm.v1.QueryCodeResponse"; value: Uint8Array; @@ -304,6 +362,9 @@ export interface QueryCodesRequest { /** pagination defines an optional pagination for the request. */ pagination?: PageRequest; } +export interface ReactiveQueryCodesRequest { + pagination?: ComputedRef; +} export interface QueryCodesRequestProtoMsg { typeUrl: "/cosmwasm.wasm.v1.QueryCodesRequest"; value: Uint8Array; @@ -318,6 +379,10 @@ export interface QueryCodesResponse { /** pagination defines the pagination in the response. */ pagination?: PageResponse; } +export interface ReactiveQueryCodesResponse { + codeInfos: ComputedRef; + pagination?: ComputedRef; +} export interface QueryCodesResponseProtoMsg { typeUrl: "/cosmwasm.wasm.v1.QueryCodesResponse"; value: Uint8Array; @@ -335,6 +400,9 @@ export interface QueryPinnedCodesRequest { /** pagination defines an optional pagination for the request. */ pagination?: PageRequest; } +export interface ReactiveQueryPinnedCodesRequest { + pagination?: ComputedRef; +} export interface QueryPinnedCodesRequestProtoMsg { typeUrl: "/cosmwasm.wasm.v1.QueryPinnedCodesRequest"; value: Uint8Array; @@ -355,6 +423,10 @@ export interface QueryPinnedCodesResponse { /** pagination defines the pagination in the response. */ pagination?: PageResponse; } +export interface ReactiveQueryPinnedCodesResponse { + codeIds: ComputedRef; + pagination?: ComputedRef; +} export interface QueryPinnedCodesResponseProtoMsg { typeUrl: "/cosmwasm.wasm.v1.QueryPinnedCodesResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmwasm/wasm/v1/tx.ts b/__fixtures__/v-next/outputv4/cosmwasm/wasm/v1/tx.ts index 6561ef6f9f..216fbbb49d 100644 --- a/__fixtures__/v-next/outputv4/cosmwasm/wasm/v1/tx.ts +++ b/__fixtures__/v-next/outputv4/cosmwasm/wasm/v1/tx.ts @@ -4,6 +4,7 @@ import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, bytesFromBase64, base64FromBytes, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; import { fromBase64, toBase64, toUtf8, fromUtf8 } from "@cosmjs/encoding"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmwasm.wasm.v1"; /** MsgStoreCode submit Wasm code to the system */ export interface MsgStoreCode { @@ -17,6 +18,11 @@ export interface MsgStoreCode { */ instantiatePermission?: AccessConfig; } +export interface ReactiveMsgStoreCode { + sender: ComputedRef; + wasmByteCode: ComputedRef; + instantiatePermission?: ComputedRef; +} export interface MsgStoreCodeProtoMsg { typeUrl: "/cosmwasm.wasm.v1.MsgStoreCode"; value: Uint8Array; @@ -32,6 +38,9 @@ export interface MsgStoreCodeResponse { /** CodeID is the reference to the stored WASM code */ codeId: bigint; } +export interface ReactiveMsgStoreCodeResponse { + codeId: ComputedRef; +} export interface MsgStoreCodeResponseProtoMsg { typeUrl: "/cosmwasm.wasm.v1.MsgStoreCodeResponse"; value: Uint8Array; @@ -58,6 +67,14 @@ export interface MsgInstantiateContract { /** Funds coins that are transferred to the contract on instantiation */ funds: Coin[]; } +export interface ReactiveMsgInstantiateContract { + sender: ComputedRef; + admin: ComputedRef; + codeId: ComputedRef; + label: ComputedRef; + msg: ComputedRef; + funds: ComputedRef; +} export interface MsgInstantiateContractProtoMsg { typeUrl: "/cosmwasm.wasm.v1.MsgInstantiateContract"; value: Uint8Array; @@ -81,6 +98,10 @@ export interface MsgInstantiateContractResponse { /** Data contains base64-encoded bytes to returned from the contract */ data: Uint8Array; } +export interface ReactiveMsgInstantiateContractResponse { + address: ComputedRef; + data: ComputedRef; +} export interface MsgInstantiateContractResponseProtoMsg { typeUrl: "/cosmwasm.wasm.v1.MsgInstantiateContractResponse"; value: Uint8Array; @@ -101,6 +122,12 @@ export interface MsgExecuteContract { /** Funds coins that are transferred to the contract on execution */ funds: Coin[]; } +export interface ReactiveMsgExecuteContract { + sender: ComputedRef; + contract: ComputedRef; + msg: ComputedRef; + funds: ComputedRef; +} export interface MsgExecuteContractProtoMsg { typeUrl: "/cosmwasm.wasm.v1.MsgExecuteContract"; value: Uint8Array; @@ -117,6 +144,9 @@ export interface MsgExecuteContractResponse { /** Data contains base64-encoded bytes to returned from the contract */ data: Uint8Array; } +export interface ReactiveMsgExecuteContractResponse { + data: ComputedRef; +} export interface MsgExecuteContractResponseProtoMsg { typeUrl: "/cosmwasm.wasm.v1.MsgExecuteContractResponse"; value: Uint8Array; @@ -136,6 +166,12 @@ export interface MsgMigrateContract { /** Msg json encoded message to be passed to the contract on migration */ msg: Uint8Array; } +export interface ReactiveMsgMigrateContract { + sender: ComputedRef; + contract: ComputedRef; + codeId: ComputedRef; + msg: ComputedRef; +} export interface MsgMigrateContractProtoMsg { typeUrl: "/cosmwasm.wasm.v1.MsgMigrateContract"; value: Uint8Array; @@ -155,6 +191,9 @@ export interface MsgMigrateContractResponse { */ data: Uint8Array; } +export interface ReactiveMsgMigrateContractResponse { + data: ComputedRef; +} export interface MsgMigrateContractResponseProtoMsg { typeUrl: "/cosmwasm.wasm.v1.MsgMigrateContractResponse"; value: Uint8Array; @@ -172,6 +211,11 @@ export interface MsgUpdateAdmin { /** Contract is the address of the smart contract */ contract: string; } +export interface ReactiveMsgUpdateAdmin { + sender: ComputedRef; + newAdmin: ComputedRef; + contract: ComputedRef; +} export interface MsgUpdateAdminProtoMsg { typeUrl: "/cosmwasm.wasm.v1.MsgUpdateAdmin"; value: Uint8Array; @@ -184,6 +228,7 @@ export interface MsgUpdateAdminSDKType { } /** MsgUpdateAdminResponse returns empty data */ export interface MsgUpdateAdminResponse {} +export interface ReactiveMsgUpdateAdminResponse {} export interface MsgUpdateAdminResponseProtoMsg { typeUrl: "/cosmwasm.wasm.v1.MsgUpdateAdminResponse"; value: Uint8Array; @@ -197,6 +242,10 @@ export interface MsgClearAdmin { /** Contract is the address of the smart contract */ contract: string; } +export interface ReactiveMsgClearAdmin { + sender: ComputedRef; + contract: ComputedRef; +} export interface MsgClearAdminProtoMsg { typeUrl: "/cosmwasm.wasm.v1.MsgClearAdmin"; value: Uint8Array; @@ -208,6 +257,7 @@ export interface MsgClearAdminSDKType { } /** MsgClearAdminResponse returns empty data */ export interface MsgClearAdminResponse {} +export interface ReactiveMsgClearAdminResponse {} export interface MsgClearAdminResponseProtoMsg { typeUrl: "/cosmwasm.wasm.v1.MsgClearAdminResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/cosmwasm/wasm/v1/types.ts b/__fixtures__/v-next/outputv4/cosmwasm/wasm/v1/types.ts index 2bc908fd64..3cfd568351 100644 --- a/__fixtures__/v-next/outputv4/cosmwasm/wasm/v1/types.ts +++ b/__fixtures__/v-next/outputv4/cosmwasm/wasm/v1/types.ts @@ -3,6 +3,7 @@ import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial, bytesFromBase64, base64FromBytes } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; import { toUtf8, fromUtf8 } from "@cosmjs/encoding"; +import { ComputedRef } from "vue"; export const protobufPackage = "cosmwasm.wasm.v1"; /** AccessType permission types */ export enum AccessType { @@ -104,6 +105,9 @@ export function contractCodeHistoryOperationTypeToJSON(object: ContractCodeHisto export interface AccessTypeParam { value: AccessType; } +export interface ReactiveAccessTypeParam { + value: ComputedRef; +} export interface AccessTypeParamProtoMsg { typeUrl: "/cosmwasm.wasm.v1.AccessTypeParam"; value: Uint8Array; @@ -117,6 +121,10 @@ export interface AccessConfig { permission: AccessType; address: string; } +export interface ReactiveAccessConfig { + permission: ComputedRef; + address: ComputedRef; +} export interface AccessConfigProtoMsg { typeUrl: "/cosmwasm.wasm.v1.AccessConfig"; value: Uint8Array; @@ -132,6 +140,11 @@ export interface Params { instantiateDefaultPermission: AccessType; maxWasmCodeSize: bigint; } +export interface ReactiveParams { + codeUploadAccess: ComputedRef; + instantiateDefaultPermission: ComputedRef; + maxWasmCodeSize: ComputedRef; +} export interface ParamsProtoMsg { typeUrl: "/cosmwasm.wasm.v1.Params"; value: Uint8Array; @@ -151,6 +164,11 @@ export interface CodeInfo { /** InstantiateConfig access control to apply on contract creation, optional */ instantiateConfig: AccessConfig; } +export interface ReactiveCodeInfo { + codeHash: ComputedRef; + creator: ComputedRef; + instantiateConfig: ComputedRef; +} export interface CodeInfoProtoMsg { typeUrl: "/cosmwasm.wasm.v1.CodeInfo"; value: Uint8Array; @@ -184,6 +202,15 @@ export interface ContractInfo { */ extension?: Any; } +export interface ReactiveContractInfo { + codeId: ComputedRef; + creator: ComputedRef; + admin: ComputedRef; + label: ComputedRef; + created?: ComputedRef; + ibcPortId: ComputedRef; + extension?: ComputedRef; +} export interface ContractInfoProtoMsg { typeUrl: "/cosmwasm.wasm.v1.ContractInfo"; value: Uint8Array; @@ -207,6 +234,12 @@ export interface ContractCodeHistoryEntry { updated?: AbsoluteTxPosition; msg: Uint8Array; } +export interface ReactiveContractCodeHistoryEntry { + operation: ComputedRef; + codeId: ComputedRef; + updated?: ComputedRef; + msg: ComputedRef; +} export interface ContractCodeHistoryEntryProtoMsg { typeUrl: "/cosmwasm.wasm.v1.ContractCodeHistoryEntry"; value: Uint8Array; @@ -231,6 +264,10 @@ export interface AbsoluteTxPosition { */ txIndex: bigint; } +export interface ReactiveAbsoluteTxPosition { + blockHeight: ComputedRef; + txIndex: ComputedRef; +} export interface AbsoluteTxPositionProtoMsg { typeUrl: "/cosmwasm.wasm.v1.AbsoluteTxPosition"; value: Uint8Array; @@ -250,6 +287,10 @@ export interface Model { /** base64-encode raw value */ value: Uint8Array; } +export interface ReactiveModel { + key: ComputedRef; + value: ComputedRef; +} export interface ModelProtoMsg { typeUrl: "/cosmwasm.wasm.v1.Model"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/evmos/claims/v1/claims.ts b/__fixtures__/v-next/outputv4/evmos/claims/v1/claims.ts index 4bc258e731..ca378910c6 100644 --- a/__fixtures__/v-next/outputv4/evmos/claims/v1/claims.ts +++ b/__fixtures__/v-next/outputv4/evmos/claims/v1/claims.ts @@ -1,6 +1,7 @@ import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "evmos.claims.v1"; /** Action defines the list of available actions to claim the airdrop tokens. */ export enum Action { @@ -69,6 +70,11 @@ export interface Claim { /** claimable token amount for the action. Zero if completed */ claimableAmount: string; } +export interface ReactiveClaim { + action: ComputedRef; + completed: ComputedRef; + claimableAmount: ComputedRef; +} export interface ClaimProtoMsg { typeUrl: "/evmos.claims.v1.Claim"; value: Uint8Array; @@ -91,6 +97,11 @@ export interface ClaimsRecordAddress { /** slice of the available actions completed */ actionsCompleted: boolean[]; } +export interface ReactiveClaimsRecordAddress { + address: ComputedRef; + initialClaimableAmount: ComputedRef; + actionsCompleted: ComputedRef; +} export interface ClaimsRecordAddressProtoMsg { typeUrl: "/evmos.claims.v1.ClaimsRecordAddress"; value: Uint8Array; @@ -111,6 +122,10 @@ export interface ClaimsRecord { /** slice of the available actions completed */ actionsCompleted: boolean[]; } +export interface ReactiveClaimsRecord { + initialClaimableAmount: ComputedRef; + actionsCompleted: ComputedRef; +} export interface ClaimsRecordProtoMsg { typeUrl: "/evmos.claims.v1.ClaimsRecord"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/evmos/claims/v1/genesis.ts b/__fixtures__/v-next/outputv4/evmos/claims/v1/genesis.ts index df1fc00863..aa2947d97e 100644 --- a/__fixtures__/v-next/outputv4/evmos/claims/v1/genesis.ts +++ b/__fixtures__/v-next/outputv4/evmos/claims/v1/genesis.ts @@ -4,6 +4,7 @@ import { Duration, DurationSDKType } from "../../../google/protobuf/duration.js" import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial, toTimestamp, fromTimestamp } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "evmos.claims.v1"; /** GenesisState define the claims module's genesis state. */ export interface GenesisState { @@ -12,6 +13,10 @@ export interface GenesisState { /** list of claim records with the corresponding airdrop recipient */ claimsRecords: ClaimsRecordAddress[]; } +export interface ReactiveGenesisState { + params: ComputedRef; + claimsRecords: ComputedRef; +} export interface GenesisStateProtoMsg { typeUrl: "/evmos.claims.v1.GenesisState"; value: Uint8Array; @@ -41,6 +46,15 @@ export interface Params { /** list of channel identifiers from EVM compatible chains */ evmChannels: string[]; } +export interface ReactiveParams { + enableClaims: ComputedRef; + airdropStartTime: ComputedRef; + durationUntilDecay: ComputedRef; + durationOfDecay: ComputedRef; + claimsDenom: ComputedRef; + authorizedChannels: ComputedRef; + evmChannels: ComputedRef; +} export interface ParamsProtoMsg { typeUrl: "/evmos.claims.v1.Params"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/evmos/claims/v1/query.rpc.Query.ts b/__fixtures__/v-next/outputv4/evmos/claims/v1/query.rpc.Query.ts index d477a713d7..bbefee7903 100644 --- a/__fixtures__/v-next/outputv4/evmos/claims/v1/query.rpc.Query.ts +++ b/__fixtures__/v-next/outputv4/evmos/claims/v1/query.rpc.Query.ts @@ -5,7 +5,7 @@ import { ClaimsRecordAddress, ClaimsRecordAddressSDKType, Claim, ClaimSDKType } import { Rpc } from "../../../helpers.js"; import { BinaryReader } from "../../../binary.js"; import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryTotalUnclaimedRequest, QueryTotalUnclaimedRequestSDKType, QueryTotalUnclaimedResponse, QueryTotalUnclaimedResponseSDKType, QueryParamsRequest, QueryParamsRequestSDKType, QueryParamsResponse, QueryParamsResponseSDKType, QueryClaimsRecordsRequest, QueryClaimsRecordsRequestSDKType, QueryClaimsRecordsResponse, QueryClaimsRecordsResponseSDKType, QueryClaimsRecordRequest, QueryClaimsRecordRequestSDKType, QueryClaimsRecordResponse, QueryClaimsRecordResponseSDKType } from "./query.js"; +import { QueryTotalUnclaimedRequest, QueryTotalUnclaimedRequestSDKType, QueryTotalUnclaimedResponse, QueryTotalUnclaimedResponseSDKType, QueryParamsRequest, QueryParamsRequestSDKType, QueryParamsResponse, QueryParamsResponseSDKType, QueryClaimsRecordsRequest, QueryClaimsRecordsRequestSDKType, QueryClaimsRecordsResponse, QueryClaimsRecordsResponseSDKType, QueryClaimsRecordRequest, QueryClaimsRecordRequestSDKType, QueryClaimsRecordResponse, QueryClaimsRecordResponseSDKType, ReactiveQueryTotalUnclaimedRequest, ReactiveQueryParamsRequest, ReactiveQueryClaimsRecordsRequest, ReactiveQueryClaimsRecordRequest } from "./query.js"; /** Query defines the gRPC querier service. */ export interface Query { /** TotalUnclaimed queries the total unclaimed tokens from the airdrop */ diff --git a/__fixtures__/v-next/outputv4/evmos/claims/v1/query.ts b/__fixtures__/v-next/outputv4/evmos/claims/v1/query.ts index c79acec275..dd53e9a738 100644 --- a/__fixtures__/v-next/outputv4/evmos/claims/v1/query.ts +++ b/__fixtures__/v-next/outputv4/evmos/claims/v1/query.ts @@ -5,12 +5,14 @@ import { ClaimsRecordAddress, ClaimsRecordAddressSDKType, Claim, ClaimSDKType } import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { JsonSafe } from "../../../json-safe.js"; import { DeepPartial, isSet } from "../../../helpers.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "evmos.claims.v1"; /** * QueryTotalUnclaimedRequest is the request type for the Query/TotalUnclaimed * RPC method. */ export interface QueryTotalUnclaimedRequest {} +export interface ReactiveQueryTotalUnclaimedRequest {} export interface QueryTotalUnclaimedRequestProtoMsg { typeUrl: "/evmos.claims.v1.QueryTotalUnclaimedRequest"; value: Uint8Array; @@ -28,6 +30,9 @@ export interface QueryTotalUnclaimedResponse { /** coins defines the unclaimed coins */ coins: Coin[]; } +export interface ReactiveQueryTotalUnclaimedResponse { + coins: ComputedRef; +} export interface QueryTotalUnclaimedResponseProtoMsg { typeUrl: "/evmos.claims.v1.QueryTotalUnclaimedResponse"; value: Uint8Array; @@ -41,6 +46,7 @@ export interface QueryTotalUnclaimedResponseSDKType { } /** QueryParamsRequest is the request type for the Query/Params RPC method. */ export interface QueryParamsRequest {} +export interface ReactiveQueryParamsRequest {} export interface QueryParamsRequestProtoMsg { typeUrl: "/evmos.claims.v1.QueryParamsRequest"; value: Uint8Array; @@ -52,6 +58,9 @@ export interface QueryParamsResponse { /** params defines the parameters of the module. */ params: Params; } +export interface ReactiveQueryParamsResponse { + params: ComputedRef; +} export interface QueryParamsResponseProtoMsg { typeUrl: "/evmos.claims.v1.QueryParamsResponse"; value: Uint8Array; @@ -68,6 +77,9 @@ export interface QueryClaimsRecordsRequest { /** pagination defines an optional pagination for the request. */ pagination?: PageRequest; } +export interface ReactiveQueryClaimsRecordsRequest { + pagination?: ComputedRef; +} export interface QueryClaimsRecordsRequestProtoMsg { typeUrl: "/evmos.claims.v1.QueryClaimsRecordsRequest"; value: Uint8Array; @@ -89,6 +101,10 @@ export interface QueryClaimsRecordsResponse { /** pagination defines the pagination in the response. */ pagination?: PageResponse; } +export interface ReactiveQueryClaimsRecordsResponse { + claims: ComputedRef; + pagination?: ComputedRef; +} export interface QueryClaimsRecordsResponseProtoMsg { typeUrl: "/evmos.claims.v1.QueryClaimsRecordsResponse"; value: Uint8Array; @@ -109,6 +125,9 @@ export interface QueryClaimsRecordRequest { /** address defines the user to query claims record for */ address: string; } +export interface ReactiveQueryClaimsRecordRequest { + address: ComputedRef; +} export interface QueryClaimsRecordRequestProtoMsg { typeUrl: "/evmos.claims.v1.QueryClaimsRecordRequest"; value: Uint8Array; @@ -130,6 +149,10 @@ export interface QueryClaimsRecordResponse { /** the claims of the user */ claims: Claim[]; } +export interface ReactiveQueryClaimsRecordResponse { + initialClaimableAmount: ComputedRef; + claims: ComputedRef; +} export interface QueryClaimsRecordResponseProtoMsg { typeUrl: "/evmos.claims.v1.QueryClaimsRecordResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/evmos/epochs/v1/genesis.ts b/__fixtures__/v-next/outputv4/evmos/epochs/v1/genesis.ts index 7bb574f8bd..72f6841f2d 100644 --- a/__fixtures__/v-next/outputv4/evmos/epochs/v1/genesis.ts +++ b/__fixtures__/v-next/outputv4/evmos/epochs/v1/genesis.ts @@ -3,6 +3,7 @@ import { Duration, DurationSDKType } from "../../../google/protobuf/duration.js" import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { toTimestamp, fromTimestamp, isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "evmos.epochs.v1"; export interface EpochInfo { identifier: string; @@ -13,6 +14,15 @@ export interface EpochInfo { epochCountingStarted: boolean; currentEpochStartHeight: bigint; } +export interface ReactiveEpochInfo { + identifier: ComputedRef; + startTime: ComputedRef; + duration: ComputedRef; + currentEpoch: ComputedRef; + currentEpochStartTime: ComputedRef; + epochCountingStarted: ComputedRef; + currentEpochStartHeight: ComputedRef; +} export interface EpochInfoProtoMsg { typeUrl: "/evmos.epochs.v1.EpochInfo"; value: Uint8Array; @@ -30,6 +40,9 @@ export interface EpochInfoSDKType { export interface GenesisState { epochs: EpochInfo[]; } +export interface ReactiveGenesisState { + epochs: ComputedRef; +} export interface GenesisStateProtoMsg { typeUrl: "/evmos.epochs.v1.GenesisState"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/evmos/epochs/v1/query.rpc.Query.ts b/__fixtures__/v-next/outputv4/evmos/epochs/v1/query.rpc.Query.ts index fce4616b32..dd6f9c52da 100644 --- a/__fixtures__/v-next/outputv4/evmos/epochs/v1/query.rpc.Query.ts +++ b/__fixtures__/v-next/outputv4/evmos/epochs/v1/query.rpc.Query.ts @@ -3,7 +3,7 @@ import { EpochInfo, EpochInfoSDKType } from "./genesis.js"; import { Rpc } from "../../../helpers.js"; import { BinaryReader } from "../../../binary.js"; import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryEpochsInfoRequest, QueryEpochsInfoRequestSDKType, QueryEpochsInfoResponse, QueryEpochsInfoResponseSDKType, QueryCurrentEpochRequest, QueryCurrentEpochRequestSDKType, QueryCurrentEpochResponse, QueryCurrentEpochResponseSDKType } from "./query.js"; +import { QueryEpochsInfoRequest, QueryEpochsInfoRequestSDKType, QueryEpochsInfoResponse, QueryEpochsInfoResponseSDKType, QueryCurrentEpochRequest, QueryCurrentEpochRequestSDKType, QueryCurrentEpochResponse, QueryCurrentEpochResponseSDKType, ReactiveQueryEpochsInfoRequest, ReactiveQueryCurrentEpochRequest } from "./query.js"; /** Query defines the gRPC querier service. */ export interface Query { /** EpochInfos provide running epochInfos */ diff --git a/__fixtures__/v-next/outputv4/evmos/epochs/v1/query.ts b/__fixtures__/v-next/outputv4/evmos/epochs/v1/query.ts index 1c985d7ede..5da6a1e5c3 100644 --- a/__fixtures__/v-next/outputv4/evmos/epochs/v1/query.ts +++ b/__fixtures__/v-next/outputv4/evmos/epochs/v1/query.ts @@ -3,10 +3,14 @@ import { EpochInfo, EpochInfoSDKType } from "./genesis.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "evmos.epochs.v1"; export interface QueryEpochsInfoRequest { pagination?: PageRequest; } +export interface ReactiveQueryEpochsInfoRequest { + pagination?: ComputedRef; +} export interface QueryEpochsInfoRequestProtoMsg { typeUrl: "/evmos.epochs.v1.QueryEpochsInfoRequest"; value: Uint8Array; @@ -18,6 +22,10 @@ export interface QueryEpochsInfoResponse { epochs: EpochInfo[]; pagination?: PageResponse; } +export interface ReactiveQueryEpochsInfoResponse { + epochs: ComputedRef; + pagination?: ComputedRef; +} export interface QueryEpochsInfoResponseProtoMsg { typeUrl: "/evmos.epochs.v1.QueryEpochsInfoResponse"; value: Uint8Array; @@ -29,6 +37,9 @@ export interface QueryEpochsInfoResponseSDKType { export interface QueryCurrentEpochRequest { identifier: string; } +export interface ReactiveQueryCurrentEpochRequest { + identifier: ComputedRef; +} export interface QueryCurrentEpochRequestProtoMsg { typeUrl: "/evmos.epochs.v1.QueryCurrentEpochRequest"; value: Uint8Array; @@ -39,6 +50,9 @@ export interface QueryCurrentEpochRequestSDKType { export interface QueryCurrentEpochResponse { currentEpoch: bigint; } +export interface ReactiveQueryCurrentEpochResponse { + currentEpoch: ComputedRef; +} export interface QueryCurrentEpochResponseProtoMsg { typeUrl: "/evmos.epochs.v1.QueryCurrentEpochResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/evmos/erc20/v1/erc20.ts b/__fixtures__/v-next/outputv4/evmos/erc20/v1/erc20.ts index 0f907122ba..8eee28f43b 100644 --- a/__fixtures__/v-next/outputv4/evmos/erc20/v1/erc20.ts +++ b/__fixtures__/v-next/outputv4/evmos/erc20/v1/erc20.ts @@ -2,6 +2,7 @@ import { Metadata, MetadataSDKType } from "../../../cosmos/bank/v1beta1/bank.js" import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "evmos.erc20.v1"; /** Owner enumerates the ownership of a ERC20 contract. */ export enum Owner { @@ -58,6 +59,12 @@ export interface TokenPair { /** ERC20 owner address ENUM (0 invalid, 1 ModuleAccount, 2 external address) */ contractOwner: Owner; } +export interface ReactiveTokenPair { + erc20Address: ComputedRef; + denom: ComputedRef; + enabled: ComputedRef; + contractOwner: ComputedRef; +} export interface TokenPairProtoMsg { typeUrl: "/evmos.erc20.v1.TokenPair"; value: Uint8Array; @@ -84,6 +91,11 @@ export interface RegisterCoinProposal { /** metadata of the native Cosmos coin */ metadata: Metadata; } +export interface ReactiveRegisterCoinProposal { + title: ComputedRef; + description: ComputedRef; + metadata: ComputedRef; +} export interface RegisterCoinProposalProtoMsg { typeUrl: "/evmos.erc20.v1.RegisterCoinProposal"; value: Uint8Array; @@ -109,6 +121,11 @@ export interface RegisterERC20Proposal { /** contract address of ERC20 token */ erc20address: string; } +export interface ReactiveRegisterERC20Proposal { + title: ComputedRef; + description: ComputedRef; + erc20address: ComputedRef; +} export interface RegisterERC20ProposalProtoMsg { typeUrl: "/evmos.erc20.v1.RegisterERC20Proposal"; value: Uint8Array; @@ -137,6 +154,11 @@ export interface ToggleTokenConversionProposal { */ token: string; } +export interface ReactiveToggleTokenConversionProposal { + title: ComputedRef; + description: ComputedRef; + token: ComputedRef; +} export interface ToggleTokenConversionProposalProtoMsg { typeUrl: "/evmos.erc20.v1.ToggleTokenConversionProposal"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/evmos/erc20/v1/genesis.ts b/__fixtures__/v-next/outputv4/evmos/erc20/v1/genesis.ts index ab01fa0129..615a7b59e3 100644 --- a/__fixtures__/v-next/outputv4/evmos/erc20/v1/genesis.ts +++ b/__fixtures__/v-next/outputv4/evmos/erc20/v1/genesis.ts @@ -2,6 +2,7 @@ import { TokenPair, TokenPairSDKType } from "./erc20.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "evmos.erc20.v1"; /** GenesisState defines the module's genesis state. */ export interface GenesisState { @@ -10,6 +11,10 @@ export interface GenesisState { /** registered token pairs */ tokenPairs: TokenPair[]; } +export interface ReactiveGenesisState { + params: ComputedRef; + tokenPairs: ComputedRef; +} export interface GenesisStateProtoMsg { typeUrl: "/evmos.erc20.v1.GenesisState"; value: Uint8Array; @@ -30,6 +35,10 @@ export interface Params { */ enableEvmHook: boolean; } +export interface ReactiveParams { + enableErc20: ComputedRef; + enableEvmHook: ComputedRef; +} export interface ParamsProtoMsg { typeUrl: "/evmos.erc20.v1.Params"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/evmos/erc20/v1/query.rpc.Query.ts b/__fixtures__/v-next/outputv4/evmos/erc20/v1/query.rpc.Query.ts index 39cb552d59..d219201fc0 100644 --- a/__fixtures__/v-next/outputv4/evmos/erc20/v1/query.rpc.Query.ts +++ b/__fixtures__/v-next/outputv4/evmos/erc20/v1/query.rpc.Query.ts @@ -4,7 +4,7 @@ import { Params, ParamsSDKType } from "./genesis.js"; import { Rpc } from "../../../helpers.js"; import { BinaryReader } from "../../../binary.js"; import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryTokenPairsRequest, QueryTokenPairsRequestSDKType, QueryTokenPairsResponse, QueryTokenPairsResponseSDKType, QueryTokenPairRequest, QueryTokenPairRequestSDKType, QueryTokenPairResponse, QueryTokenPairResponseSDKType, QueryParamsRequest, QueryParamsRequestSDKType, QueryParamsResponse, QueryParamsResponseSDKType } from "./query.js"; +import { QueryTokenPairsRequest, QueryTokenPairsRequestSDKType, QueryTokenPairsResponse, QueryTokenPairsResponseSDKType, QueryTokenPairRequest, QueryTokenPairRequestSDKType, QueryTokenPairResponse, QueryTokenPairResponseSDKType, QueryParamsRequest, QueryParamsRequestSDKType, QueryParamsResponse, QueryParamsResponseSDKType, ReactiveQueryTokenPairsRequest, ReactiveQueryTokenPairRequest, ReactiveQueryParamsRequest } from "./query.js"; /** Query defines the gRPC querier service. */ export interface Query { /** TokenPairs retrieves registered token pairs */ diff --git a/__fixtures__/v-next/outputv4/evmos/erc20/v1/query.ts b/__fixtures__/v-next/outputv4/evmos/erc20/v1/query.ts index f61037c59e..a141f38769 100644 --- a/__fixtures__/v-next/outputv4/evmos/erc20/v1/query.ts +++ b/__fixtures__/v-next/outputv4/evmos/erc20/v1/query.ts @@ -4,6 +4,7 @@ import { Params, ParamsSDKType } from "./genesis.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "evmos.erc20.v1"; /** * QueryTokenPairsRequest is the request type for the Query/TokenPairs RPC @@ -13,6 +14,9 @@ export interface QueryTokenPairsRequest { /** pagination defines an optional pagination for the request. */ pagination?: PageRequest; } +export interface ReactiveQueryTokenPairsRequest { + pagination?: ComputedRef; +} export interface QueryTokenPairsRequestProtoMsg { typeUrl: "/evmos.erc20.v1.QueryTokenPairsRequest"; value: Uint8Array; @@ -33,6 +37,10 @@ export interface QueryTokenPairsResponse { /** pagination defines the pagination in the response. */ pagination?: PageResponse; } +export interface ReactiveQueryTokenPairsResponse { + tokenPairs: ComputedRef; + pagination?: ComputedRef; +} export interface QueryTokenPairsResponseProtoMsg { typeUrl: "/evmos.erc20.v1.QueryTokenPairsResponse"; value: Uint8Array; @@ -53,6 +61,9 @@ export interface QueryTokenPairRequest { */ token: string; } +export interface ReactiveQueryTokenPairRequest { + token: ComputedRef; +} export interface QueryTokenPairRequestProtoMsg { typeUrl: "/evmos.erc20.v1.QueryTokenPairRequest"; value: Uint8Array; @@ -68,6 +79,9 @@ export interface QueryTokenPairRequestSDKType { export interface QueryTokenPairResponse { tokenPair: TokenPair; } +export interface ReactiveQueryTokenPairResponse { + tokenPair: ComputedRef; +} export interface QueryTokenPairResponseProtoMsg { typeUrl: "/evmos.erc20.v1.QueryTokenPairResponse"; value: Uint8Array; @@ -81,6 +95,7 @@ export interface QueryTokenPairResponseSDKType { } /** QueryParamsRequest is the request type for the Query/Params RPC method. */ export interface QueryParamsRequest {} +export interface ReactiveQueryParamsRequest {} export interface QueryParamsRequestProtoMsg { typeUrl: "/evmos.erc20.v1.QueryParamsRequest"; value: Uint8Array; @@ -94,6 +109,9 @@ export interface QueryParamsRequestSDKType {} export interface QueryParamsResponse { params: Params; } +export interface ReactiveQueryParamsResponse { + params: ComputedRef; +} export interface QueryParamsResponseProtoMsg { typeUrl: "/evmos.erc20.v1.QueryParamsResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/evmos/erc20/v1/tx.ts b/__fixtures__/v-next/outputv4/evmos/erc20/v1/tx.ts index 1eceacd9a2..3d8ec105fa 100644 --- a/__fixtures__/v-next/outputv4/evmos/erc20/v1/tx.ts +++ b/__fixtures__/v-next/outputv4/evmos/erc20/v1/tx.ts @@ -2,6 +2,7 @@ import { Coin, CoinSDKType } from "../../../cosmos/base/v1beta1/coin.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "evmos.erc20.v1"; /** MsgConvertCoin defines a Msg to convert a native Cosmos coin to a ERC20 token */ export interface MsgConvertCoin { @@ -15,6 +16,11 @@ export interface MsgConvertCoin { /** cosmos bech32 address from the owner of the given Cosmos coins */ sender: string; } +export interface ReactiveMsgConvertCoin { + coin: ComputedRef; + receiver: ComputedRef; + sender: ComputedRef; +} export interface MsgConvertCoinProtoMsg { typeUrl: "/evmos.erc20.v1.MsgConvertCoin"; value: Uint8Array; @@ -27,6 +33,7 @@ export interface MsgConvertCoinSDKType { } /** MsgConvertCoinResponse returns no fields */ export interface MsgConvertCoinResponse {} +export interface ReactiveMsgConvertCoinResponse {} export interface MsgConvertCoinResponseProtoMsg { typeUrl: "/evmos.erc20.v1.MsgConvertCoinResponse"; value: Uint8Array; @@ -47,6 +54,12 @@ export interface MsgConvertERC20 { /** sender hex address from the owner of the given ERC20 tokens */ sender: string; } +export interface ReactiveMsgConvertERC20 { + contractAddress: ComputedRef; + amount: ComputedRef; + receiver: ComputedRef; + sender: ComputedRef; +} export interface MsgConvertERC20ProtoMsg { typeUrl: "/evmos.erc20.v1.MsgConvertERC20"; value: Uint8Array; @@ -63,6 +76,7 @@ export interface MsgConvertERC20SDKType { } /** MsgConvertERC20Response returns no fields */ export interface MsgConvertERC20Response {} +export interface ReactiveMsgConvertERC20Response {} export interface MsgConvertERC20ResponseProtoMsg { typeUrl: "/evmos.erc20.v1.MsgConvertERC20Response"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/evmos/fees/v1/fees.ts b/__fixtures__/v-next/outputv4/evmos/fees/v1/fees.ts index f6dbec7d70..a1df68ed66 100644 --- a/__fixtures__/v-next/outputv4/evmos/fees/v1/fees.ts +++ b/__fixtures__/v-next/outputv4/evmos/fees/v1/fees.ts @@ -1,6 +1,7 @@ import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "evmos.fees.v1"; /** * DevFeeInfo defines an instance that organizes fee distribution conditions @@ -17,6 +18,11 @@ export interface DevFeeInfo { */ withdrawAddress: string; } +export interface ReactiveDevFeeInfo { + contractAddress: ComputedRef; + deployerAddress: ComputedRef; + withdrawAddress: ComputedRef; +} export interface DevFeeInfoProtoMsg { typeUrl: "/evmos.fees.v1.DevFeeInfo"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/evmos/fees/v1/genesis.ts b/__fixtures__/v-next/outputv4/evmos/fees/v1/genesis.ts index 28a14bc369..5566e44972 100644 --- a/__fixtures__/v-next/outputv4/evmos/fees/v1/genesis.ts +++ b/__fixtures__/v-next/outputv4/evmos/fees/v1/genesis.ts @@ -3,6 +3,7 @@ import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; import { Decimal } from "@cosmjs/math"; +import { ComputedRef } from "vue"; export const protobufPackage = "evmos.fees.v1"; /** GenesisState defines the module's genesis state. */ export interface GenesisState { @@ -11,6 +12,10 @@ export interface GenesisState { /** active registered contracts */ devFeeInfos: DevFeeInfo[]; } +export interface ReactiveGenesisState { + params: ComputedRef; + devFeeInfos: ComputedRef; +} export interface GenesisStateProtoMsg { typeUrl: "/evmos.fees.v1.GenesisState"; value: Uint8Array; @@ -42,6 +47,13 @@ export interface Params { /** min_gas_price defines the minimum gas price value for cosmos and eth transactions */ minGasPrice: string; } +export interface ReactiveParams { + enableFees: ComputedRef; + developerShares: ComputedRef; + validatorShares: ComputedRef; + addrDerivationCostCreate: ComputedRef; + minGasPrice: ComputedRef; +} export interface ParamsProtoMsg { typeUrl: "/evmos.fees.v1.Params"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/evmos/fees/v1/query.rpc.Query.ts b/__fixtures__/v-next/outputv4/evmos/fees/v1/query.rpc.Query.ts index a7297b6f74..1935b774b3 100644 --- a/__fixtures__/v-next/outputv4/evmos/fees/v1/query.rpc.Query.ts +++ b/__fixtures__/v-next/outputv4/evmos/fees/v1/query.rpc.Query.ts @@ -4,7 +4,7 @@ import { Params, ParamsSDKType } from "./genesis.js"; import { Rpc } from "../../../helpers.js"; import { BinaryReader } from "../../../binary.js"; import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryDevFeeInfosRequest, QueryDevFeeInfosRequestSDKType, QueryDevFeeInfosResponse, QueryDevFeeInfosResponseSDKType, QueryDevFeeInfoRequest, QueryDevFeeInfoRequestSDKType, QueryDevFeeInfoResponse, QueryDevFeeInfoResponseSDKType, QueryParamsRequest, QueryParamsRequestSDKType, QueryParamsResponse, QueryParamsResponseSDKType, QueryDevFeeInfosPerDeployerRequest, QueryDevFeeInfosPerDeployerRequestSDKType, QueryDevFeeInfosPerDeployerResponse, QueryDevFeeInfosPerDeployerResponseSDKType } from "./query.js"; +import { QueryDevFeeInfosRequest, QueryDevFeeInfosRequestSDKType, QueryDevFeeInfosResponse, QueryDevFeeInfosResponseSDKType, QueryDevFeeInfoRequest, QueryDevFeeInfoRequestSDKType, QueryDevFeeInfoResponse, QueryDevFeeInfoResponseSDKType, QueryParamsRequest, QueryParamsRequestSDKType, QueryParamsResponse, QueryParamsResponseSDKType, QueryDevFeeInfosPerDeployerRequest, QueryDevFeeInfosPerDeployerRequestSDKType, QueryDevFeeInfosPerDeployerResponse, QueryDevFeeInfosPerDeployerResponseSDKType, ReactiveQueryDevFeeInfosRequest, ReactiveQueryDevFeeInfoRequest, ReactiveQueryParamsRequest, ReactiveQueryDevFeeInfosPerDeployerRequest } from "./query.js"; /** Query defines the gRPC querier service. */ export interface Query { /** DevFeeInfos retrieves all registered contracts for fee distribution */ diff --git a/__fixtures__/v-next/outputv4/evmos/fees/v1/query.ts b/__fixtures__/v-next/outputv4/evmos/fees/v1/query.ts index 3b1df4fbb6..9f5c4fed5b 100644 --- a/__fixtures__/v-next/outputv4/evmos/fees/v1/query.ts +++ b/__fixtures__/v-next/outputv4/evmos/fees/v1/query.ts @@ -4,6 +4,7 @@ import { Params, ParamsSDKType } from "./genesis.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "evmos.fees.v1"; /** * QueryDevFeeInfosRequest is the request type for the Query/DevFeeInfos RPC @@ -13,6 +14,9 @@ export interface QueryDevFeeInfosRequest { /** pagination defines an optional pagination for the request. */ pagination?: PageRequest; } +export interface ReactiveQueryDevFeeInfosRequest { + pagination?: ComputedRef; +} export interface QueryDevFeeInfosRequestProtoMsg { typeUrl: "/evmos.fees.v1.QueryDevFeeInfosRequest"; value: Uint8Array; @@ -33,6 +37,10 @@ export interface QueryDevFeeInfosResponse { /** pagination defines the pagination in the response. */ pagination?: PageResponse; } +export interface ReactiveQueryDevFeeInfosResponse { + fees: ComputedRef; + pagination?: ComputedRef; +} export interface QueryDevFeeInfosResponseProtoMsg { typeUrl: "/evmos.fees.v1.QueryDevFeeInfosResponse"; value: Uint8Array; @@ -53,6 +61,9 @@ export interface QueryDevFeeInfoRequest { /** contract identifier is the hex contract address of a contract */ contractAddress: string; } +export interface ReactiveQueryDevFeeInfoRequest { + contractAddress: ComputedRef; +} export interface QueryDevFeeInfoRequestProtoMsg { typeUrl: "/evmos.fees.v1.QueryDevFeeInfoRequest"; value: Uint8Array; @@ -71,6 +82,9 @@ export interface QueryDevFeeInfoRequestSDKType { export interface QueryDevFeeInfoResponse { fee: DevFeeInfo; } +export interface ReactiveQueryDevFeeInfoResponse { + fee: ComputedRef; +} export interface QueryDevFeeInfoResponseProtoMsg { typeUrl: "/evmos.fees.v1.QueryDevFeeInfoResponse"; value: Uint8Array; @@ -84,6 +98,7 @@ export interface QueryDevFeeInfoResponseSDKType { } /** QueryParamsRequest is the request type for the Query/Params RPC method. */ export interface QueryParamsRequest {} +export interface ReactiveQueryParamsRequest {} export interface QueryParamsRequestProtoMsg { typeUrl: "/evmos.fees.v1.QueryParamsRequest"; value: Uint8Array; @@ -97,6 +112,9 @@ export interface QueryParamsRequestSDKType {} export interface QueryParamsResponse { params: Params; } +export interface ReactiveQueryParamsResponse { + params: ComputedRef; +} export interface QueryParamsResponseProtoMsg { typeUrl: "/evmos.fees.v1.QueryParamsResponse"; value: Uint8Array; @@ -118,6 +136,10 @@ export interface QueryDevFeeInfosPerDeployerRequest { /** pagination defines an optional pagination for the request. */ pagination?: PageRequest; } +export interface ReactiveQueryDevFeeInfosPerDeployerRequest { + deployerAddress: ComputedRef; + pagination?: ComputedRef; +} export interface QueryDevFeeInfosPerDeployerRequestProtoMsg { typeUrl: "/evmos.fees.v1.QueryDevFeeInfosPerDeployerRequest"; value: Uint8Array; @@ -139,6 +161,10 @@ export interface QueryDevFeeInfosPerDeployerResponse { /** pagination defines the pagination in the response. */ pagination?: PageResponse; } +export interface ReactiveQueryDevFeeInfosPerDeployerResponse { + fees: ComputedRef; + pagination?: ComputedRef; +} export interface QueryDevFeeInfosPerDeployerResponseProtoMsg { typeUrl: "/evmos.fees.v1.QueryDevFeeInfosPerDeployerResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/evmos/fees/v1/tx.ts b/__fixtures__/v-next/outputv4/evmos/fees/v1/tx.ts index 73c0171c9c..134dacd9c6 100644 --- a/__fixtures__/v-next/outputv4/evmos/fees/v1/tx.ts +++ b/__fixtures__/v-next/outputv4/evmos/fees/v1/tx.ts @@ -1,6 +1,7 @@ import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "evmos.fees.v1"; /** MsgRegisterFeesContract defines a message that registers a DevFeeInfo */ export interface MsgRegisterDevFeeInfo { @@ -20,6 +21,12 @@ export interface MsgRegisterDevFeeInfo { */ nonces: bigint[]; } +export interface ReactiveMsgRegisterDevFeeInfo { + contractAddress: ComputedRef; + deployerAddress: ComputedRef; + withdrawAddress: ComputedRef; + nonces: ComputedRef; +} export interface MsgRegisterDevFeeInfoProtoMsg { typeUrl: "/evmos.fees.v1.MsgRegisterDevFeeInfo"; value: Uint8Array; @@ -36,6 +43,7 @@ export interface MsgRegisterDevFeeInfoSDKType { * type */ export interface MsgRegisterDevFeeInfoResponse {} +export interface ReactiveMsgRegisterDevFeeInfoResponse {} export interface MsgRegisterDevFeeInfoResponseProtoMsg { typeUrl: "/evmos.fees.v1.MsgRegisterDevFeeInfoResponse"; value: Uint8Array; @@ -55,6 +63,10 @@ export interface MsgCancelDevFeeInfo { /** deployer bech32 address */ deployerAddress: string; } +export interface ReactiveMsgCancelDevFeeInfo { + contractAddress: ComputedRef; + deployerAddress: ComputedRef; +} export interface MsgCancelDevFeeInfoProtoMsg { typeUrl: "/evmos.fees.v1.MsgCancelDevFeeInfo"; value: Uint8Array; @@ -69,6 +81,7 @@ export interface MsgCancelDevFeeInfoSDKType { } /** MsgCancelDevFeeInfoResponse defines the MsgCancelDevFeeInfo response type */ export interface MsgCancelDevFeeInfoResponse {} +export interface ReactiveMsgCancelDevFeeInfoResponse {} export interface MsgCancelDevFeeInfoResponseProtoMsg { typeUrl: "/evmos.fees.v1.MsgCancelDevFeeInfoResponse"; value: Uint8Array; @@ -87,6 +100,11 @@ export interface MsgUpdateDevFeeInfo { /** new withdraw bech32 address for receiving the transaction fees */ withdrawAddress: string; } +export interface ReactiveMsgUpdateDevFeeInfo { + contractAddress: ComputedRef; + deployerAddress: ComputedRef; + withdrawAddress: ComputedRef; +} export interface MsgUpdateDevFeeInfoProtoMsg { typeUrl: "/evmos.fees.v1.MsgUpdateDevFeeInfo"; value: Uint8Array; @@ -102,6 +120,7 @@ export interface MsgUpdateDevFeeInfoSDKType { } /** MsgUpdateDevFeeInfoResponse defines the MsgUpdateDevFeeInfo response type */ export interface MsgUpdateDevFeeInfoResponse {} +export interface ReactiveMsgUpdateDevFeeInfoResponse {} export interface MsgUpdateDevFeeInfoResponseProtoMsg { typeUrl: "/evmos.fees.v1.MsgUpdateDevFeeInfoResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/evmos/incentives/v1/genesis.ts b/__fixtures__/v-next/outputv4/evmos/incentives/v1/genesis.ts index de48b538ca..d8185ad685 100644 --- a/__fixtures__/v-next/outputv4/evmos/incentives/v1/genesis.ts +++ b/__fixtures__/v-next/outputv4/evmos/incentives/v1/genesis.ts @@ -3,6 +3,7 @@ import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; import { Decimal } from "@cosmjs/math"; +import { ComputedRef } from "vue"; export const protobufPackage = "evmos.incentives.v1"; /** GenesisState defines the module's genesis state. */ export interface GenesisState { @@ -13,6 +14,11 @@ export interface GenesisState { /** active Gasmeters */ gasMeters: GasMeter[]; } +export interface ReactiveGenesisState { + params: ComputedRef; + incentives: ComputedRef; + gasMeters: ComputedRef; +} export interface GenesisStateProtoMsg { typeUrl: "/evmos.incentives.v1.GenesisState"; value: Uint8Array; @@ -34,6 +40,12 @@ export interface Params { /** scaling factor for capping rewards */ rewardScaler: string; } +export interface ReactiveParams { + enableIncentives: ComputedRef; + allocationLimit: ComputedRef; + incentivesEpochIdentifier: ComputedRef; + rewardScaler: ComputedRef; +} export interface ParamsProtoMsg { typeUrl: "/evmos.incentives.v1.Params"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/evmos/incentives/v1/incentives.ts b/__fixtures__/v-next/outputv4/evmos/incentives/v1/incentives.ts index 10773706f2..24263c5cb8 100644 --- a/__fixtures__/v-next/outputv4/evmos/incentives/v1/incentives.ts +++ b/__fixtures__/v-next/outputv4/evmos/incentives/v1/incentives.ts @@ -3,6 +3,7 @@ import { Timestamp, TimestampSDKType } from "../../../google/protobuf/timestamp. import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { toTimestamp, fromTimestamp, isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "evmos.incentives.v1"; /** * Incentive defines an instance that organizes distribution conditions for a @@ -20,6 +21,13 @@ export interface Incentive { /** cumulative gas spent by all gasmeters of the incentive during the epoch */ totalGas: bigint; } +export interface ReactiveIncentive { + contract: ComputedRef; + allocations: ComputedRef; + epochs: ComputedRef; + startTime: ComputedRef; + totalGas: ComputedRef; +} export interface IncentiveProtoMsg { typeUrl: "/evmos.incentives.v1.Incentive"; value: Uint8Array; @@ -44,6 +52,11 @@ export interface GasMeter { /** cumulative gas spent during the epoch */ cumulativeGas: bigint; } +export interface ReactiveGasMeter { + contract: ComputedRef; + participant: ComputedRef; + cumulativeGas: ComputedRef; +} export interface GasMeterProtoMsg { typeUrl: "/evmos.incentives.v1.GasMeter"; value: Uint8Array; @@ -67,6 +80,13 @@ export interface RegisterIncentiveProposal { /** number of remaining epochs */ epochs: number; } +export interface ReactiveRegisterIncentiveProposal { + title: ComputedRef; + description: ComputedRef; + contract: ComputedRef; + allocations: ComputedRef; + epochs: ComputedRef; +} export interface RegisterIncentiveProposalProtoMsg { typeUrl: "/evmos.incentives.v1.RegisterIncentiveProposal"; value: Uint8Array; @@ -88,6 +108,11 @@ export interface CancelIncentiveProposal { /** contract address */ contract: string; } +export interface ReactiveCancelIncentiveProposal { + title: ComputedRef; + description: ComputedRef; + contract: ComputedRef; +} export interface CancelIncentiveProposalProtoMsg { typeUrl: "/evmos.incentives.v1.CancelIncentiveProposal"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/evmos/incentives/v1/query.rpc.Query.ts b/__fixtures__/v-next/outputv4/evmos/incentives/v1/query.rpc.Query.ts index fbb2185e21..0f042bd666 100644 --- a/__fixtures__/v-next/outputv4/evmos/incentives/v1/query.rpc.Query.ts +++ b/__fixtures__/v-next/outputv4/evmos/incentives/v1/query.rpc.Query.ts @@ -5,7 +5,7 @@ import { Params, ParamsSDKType } from "./genesis.js"; import { Rpc } from "../../../helpers.js"; import { BinaryReader } from "../../../binary.js"; import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryIncentivesRequest, QueryIncentivesRequestSDKType, QueryIncentivesResponse, QueryIncentivesResponseSDKType, QueryIncentiveRequest, QueryIncentiveRequestSDKType, QueryIncentiveResponse, QueryIncentiveResponseSDKType, QueryGasMetersRequest, QueryGasMetersRequestSDKType, QueryGasMetersResponse, QueryGasMetersResponseSDKType, QueryGasMeterRequest, QueryGasMeterRequestSDKType, QueryGasMeterResponse, QueryGasMeterResponseSDKType, QueryAllocationMetersRequest, QueryAllocationMetersRequestSDKType, QueryAllocationMetersResponse, QueryAllocationMetersResponseSDKType, QueryAllocationMeterRequest, QueryAllocationMeterRequestSDKType, QueryAllocationMeterResponse, QueryAllocationMeterResponseSDKType, QueryParamsRequest, QueryParamsRequestSDKType, QueryParamsResponse, QueryParamsResponseSDKType } from "./query.js"; +import { QueryIncentivesRequest, QueryIncentivesRequestSDKType, QueryIncentivesResponse, QueryIncentivesResponseSDKType, QueryIncentiveRequest, QueryIncentiveRequestSDKType, QueryIncentiveResponse, QueryIncentiveResponseSDKType, QueryGasMetersRequest, QueryGasMetersRequestSDKType, QueryGasMetersResponse, QueryGasMetersResponseSDKType, QueryGasMeterRequest, QueryGasMeterRequestSDKType, QueryGasMeterResponse, QueryGasMeterResponseSDKType, QueryAllocationMetersRequest, QueryAllocationMetersRequestSDKType, QueryAllocationMetersResponse, QueryAllocationMetersResponseSDKType, QueryAllocationMeterRequest, QueryAllocationMeterRequestSDKType, QueryAllocationMeterResponse, QueryAllocationMeterResponseSDKType, QueryParamsRequest, QueryParamsRequestSDKType, QueryParamsResponse, QueryParamsResponseSDKType, ReactiveQueryIncentivesRequest, ReactiveQueryIncentiveRequest, ReactiveQueryGasMetersRequest, ReactiveQueryGasMeterRequest, ReactiveQueryAllocationMetersRequest, ReactiveQueryAllocationMeterRequest, ReactiveQueryParamsRequest } from "./query.js"; /** Query defines the gRPC querier service. */ export interface Query { /** Incentives retrieves registered incentives */ diff --git a/__fixtures__/v-next/outputv4/evmos/incentives/v1/query.ts b/__fixtures__/v-next/outputv4/evmos/incentives/v1/query.ts index 269c2b95ea..8c106db0a6 100644 --- a/__fixtures__/v-next/outputv4/evmos/incentives/v1/query.ts +++ b/__fixtures__/v-next/outputv4/evmos/incentives/v1/query.ts @@ -5,6 +5,7 @@ import { Params, ParamsSDKType } from "./genesis.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "evmos.incentives.v1"; /** * QueryIncentivesRequest is the request type for the Query/Incentives RPC @@ -14,6 +15,9 @@ export interface QueryIncentivesRequest { /** pagination defines an optional pagination for the request. */ pagination?: PageRequest; } +export interface ReactiveQueryIncentivesRequest { + pagination?: ComputedRef; +} export interface QueryIncentivesRequestProtoMsg { typeUrl: "/evmos.incentives.v1.QueryIncentivesRequest"; value: Uint8Array; @@ -34,6 +38,10 @@ export interface QueryIncentivesResponse { /** pagination defines the pagination in the response. */ pagination?: PageResponse; } +export interface ReactiveQueryIncentivesResponse { + incentives: ComputedRef; + pagination?: ComputedRef; +} export interface QueryIncentivesResponseProtoMsg { typeUrl: "/evmos.incentives.v1.QueryIncentivesResponse"; value: Uint8Array; @@ -51,6 +59,9 @@ export interface QueryIncentiveRequest { /** contract identifier is the hex contract address of a contract */ contract: string; } +export interface ReactiveQueryIncentiveRequest { + contract: ComputedRef; +} export interface QueryIncentiveRequestProtoMsg { typeUrl: "/evmos.incentives.v1.QueryIncentiveRequest"; value: Uint8Array; @@ -66,6 +77,9 @@ export interface QueryIncentiveRequestSDKType { export interface QueryIncentiveResponse { incentive: Incentive; } +export interface ReactiveQueryIncentiveResponse { + incentive: ComputedRef; +} export interface QueryIncentiveResponseProtoMsg { typeUrl: "/evmos.incentives.v1.QueryIncentiveResponse"; value: Uint8Array; @@ -87,6 +101,10 @@ export interface QueryGasMetersRequest { /** pagination defines an optional pagination for the request. */ pagination?: PageRequest; } +export interface ReactiveQueryGasMetersRequest { + contract: ComputedRef; + pagination?: ComputedRef; +} export interface QueryGasMetersRequestProtoMsg { typeUrl: "/evmos.incentives.v1.QueryGasMetersRequest"; value: Uint8Array; @@ -108,6 +126,10 @@ export interface QueryGasMetersResponse { /** pagination defines the pagination in the response. */ pagination?: PageResponse; } +export interface ReactiveQueryGasMetersResponse { + gasMeters: ComputedRef; + pagination?: ComputedRef; +} export interface QueryGasMetersResponseProtoMsg { typeUrl: "/evmos.incentives.v1.QueryGasMetersResponse"; value: Uint8Array; @@ -127,6 +149,10 @@ export interface QueryGasMeterRequest { /** participant identifier is the hex address of a user */ participant: string; } +export interface ReactiveQueryGasMeterRequest { + contract: ComputedRef; + participant: ComputedRef; +} export interface QueryGasMeterRequestProtoMsg { typeUrl: "/evmos.incentives.v1.QueryGasMeterRequest"; value: Uint8Array; @@ -143,6 +169,9 @@ export interface QueryGasMeterRequestSDKType { export interface QueryGasMeterResponse { gasMeter: bigint; } +export interface ReactiveQueryGasMeterResponse { + gasMeter: ComputedRef; +} export interface QueryGasMeterResponseProtoMsg { typeUrl: "/evmos.incentives.v1.QueryGasMeterResponse"; value: Uint8Array; @@ -162,6 +191,9 @@ export interface QueryAllocationMetersRequest { /** pagination defines an optional pagination for the request. */ pagination?: PageRequest; } +export interface ReactiveQueryAllocationMetersRequest { + pagination?: ComputedRef; +} export interface QueryAllocationMetersRequestProtoMsg { typeUrl: "/evmos.incentives.v1.QueryAllocationMetersRequest"; value: Uint8Array; @@ -182,6 +214,10 @@ export interface QueryAllocationMetersResponse { /** pagination defines the pagination in the response. */ pagination?: PageResponse; } +export interface ReactiveQueryAllocationMetersResponse { + allocationMeters: ComputedRef; + pagination?: ComputedRef; +} export interface QueryAllocationMetersResponseProtoMsg { typeUrl: "/evmos.incentives.v1.QueryAllocationMetersResponse"; value: Uint8Array; @@ -202,6 +238,9 @@ export interface QueryAllocationMeterRequest { /** denom is the coin denom to query an allocation meter for. */ denom: string; } +export interface ReactiveQueryAllocationMeterRequest { + denom: ComputedRef; +} export interface QueryAllocationMeterRequestProtoMsg { typeUrl: "/evmos.incentives.v1.QueryAllocationMeterRequest"; value: Uint8Array; @@ -220,6 +259,9 @@ export interface QueryAllocationMeterRequestSDKType { export interface QueryAllocationMeterResponse { allocationMeter: DecCoin; } +export interface ReactiveQueryAllocationMeterResponse { + allocationMeter: ComputedRef; +} export interface QueryAllocationMeterResponseProtoMsg { typeUrl: "/evmos.incentives.v1.QueryAllocationMeterResponse"; value: Uint8Array; @@ -233,6 +275,7 @@ export interface QueryAllocationMeterResponseSDKType { } /** QueryParamsRequest is the request type for the Query/Params RPC method. */ export interface QueryParamsRequest {} +export interface ReactiveQueryParamsRequest {} export interface QueryParamsRequestProtoMsg { typeUrl: "/evmos.incentives.v1.QueryParamsRequest"; value: Uint8Array; @@ -246,6 +289,9 @@ export interface QueryParamsRequestSDKType {} export interface QueryParamsResponse { params: Params; } +export interface ReactiveQueryParamsResponse { + params: ComputedRef; +} export interface QueryParamsResponseProtoMsg { typeUrl: "/evmos.incentives.v1.QueryParamsResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/evmos/inflation/v1/genesis.ts b/__fixtures__/v-next/outputv4/evmos/inflation/v1/genesis.ts index afd1e2695b..c80927179e 100644 --- a/__fixtures__/v-next/outputv4/evmos/inflation/v1/genesis.ts +++ b/__fixtures__/v-next/outputv4/evmos/inflation/v1/genesis.ts @@ -2,6 +2,7 @@ import { ExponentialCalculation, ExponentialCalculationSDKType, InflationDistrib import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "evmos.inflation.v1"; /** GenesisState defines the inflation module's genesis state. */ export interface GenesisState { @@ -16,6 +17,13 @@ export interface GenesisState { /** number of epochs that have passed while inflation is disabled */ skippedEpochs: bigint; } +export interface ReactiveGenesisState { + params: ComputedRef; + period: ComputedRef; + epochIdentifier: ComputedRef; + epochsPerPeriod: ComputedRef; + skippedEpochs: ComputedRef; +} export interface GenesisStateProtoMsg { typeUrl: "/evmos.inflation.v1.GenesisState"; value: Uint8Array; @@ -39,6 +47,12 @@ export interface Params { /** parameter to enable inflation and halt increasing the skipped_epochs */ enableInflation: boolean; } +export interface ReactiveParams { + mintDenom: ComputedRef; + exponentialCalculation: ComputedRef; + inflationDistribution: ComputedRef; + enableInflation: ComputedRef; +} export interface ParamsProtoMsg { typeUrl: "/evmos.inflation.v1.Params"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/evmos/inflation/v1/inflation.ts b/__fixtures__/v-next/outputv4/evmos/inflation/v1/inflation.ts index 3e3e763054..e5bf6489a5 100644 --- a/__fixtures__/v-next/outputv4/evmos/inflation/v1/inflation.ts +++ b/__fixtures__/v-next/outputv4/evmos/inflation/v1/inflation.ts @@ -2,6 +2,7 @@ import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { Decimal } from "@cosmjs/math"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "evmos.inflation.v1"; /** * InflationDistribution defines the distribution in which inflation is @@ -29,6 +30,11 @@ export interface InflationDistribution { */ communityPool: string; } +export interface ReactiveInflationDistribution { + stakingRewards: ComputedRef; + usageIncentives: ComputedRef; + communityPool: ComputedRef; +} export interface InflationDistributionProtoMsg { typeUrl: "/evmos.inflation.v1.InflationDistribution"; value: Uint8Array; @@ -66,6 +72,13 @@ export interface ExponentialCalculation { /** max variance */ maxVariance: string; } +export interface ReactiveExponentialCalculation { + a: ComputedRef; + r: ComputedRef; + c: ComputedRef; + bondingTarget: ComputedRef; + maxVariance: ComputedRef; +} export interface ExponentialCalculationProtoMsg { typeUrl: "/evmos.inflation.v1.ExponentialCalculation"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/evmos/inflation/v1/query.rpc.Query.ts b/__fixtures__/v-next/outputv4/evmos/inflation/v1/query.rpc.Query.ts index 8fd4bb0327..3307971ef0 100644 --- a/__fixtures__/v-next/outputv4/evmos/inflation/v1/query.rpc.Query.ts +++ b/__fixtures__/v-next/outputv4/evmos/inflation/v1/query.rpc.Query.ts @@ -3,7 +3,7 @@ import { Params, ParamsSDKType } from "./genesis.js"; import { Rpc } from "../../../helpers.js"; import { BinaryReader } from "../../../binary.js"; import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryPeriodRequest, QueryPeriodRequestSDKType, QueryPeriodResponse, QueryPeriodResponseSDKType, QueryEpochMintProvisionRequest, QueryEpochMintProvisionRequestSDKType, QueryEpochMintProvisionResponse, QueryEpochMintProvisionResponseSDKType, QuerySkippedEpochsRequest, QuerySkippedEpochsRequestSDKType, QuerySkippedEpochsResponse, QuerySkippedEpochsResponseSDKType, QueryCirculatingSupplyRequest, QueryCirculatingSupplyRequestSDKType, QueryCirculatingSupplyResponse, QueryCirculatingSupplyResponseSDKType, QueryInflationRateRequest, QueryInflationRateRequestSDKType, QueryInflationRateResponse, QueryInflationRateResponseSDKType, QueryParamsRequest, QueryParamsRequestSDKType, QueryParamsResponse, QueryParamsResponseSDKType } from "./query.js"; +import { QueryPeriodRequest, QueryPeriodRequestSDKType, QueryPeriodResponse, QueryPeriodResponseSDKType, QueryEpochMintProvisionRequest, QueryEpochMintProvisionRequestSDKType, QueryEpochMintProvisionResponse, QueryEpochMintProvisionResponseSDKType, QuerySkippedEpochsRequest, QuerySkippedEpochsRequestSDKType, QuerySkippedEpochsResponse, QuerySkippedEpochsResponseSDKType, QueryCirculatingSupplyRequest, QueryCirculatingSupplyRequestSDKType, QueryCirculatingSupplyResponse, QueryCirculatingSupplyResponseSDKType, QueryInflationRateRequest, QueryInflationRateRequestSDKType, QueryInflationRateResponse, QueryInflationRateResponseSDKType, QueryParamsRequest, QueryParamsRequestSDKType, QueryParamsResponse, QueryParamsResponseSDKType, ReactiveQueryPeriodRequest, ReactiveQueryEpochMintProvisionRequest, ReactiveQuerySkippedEpochsRequest, ReactiveQueryCirculatingSupplyRequest, ReactiveQueryInflationRateRequest, ReactiveQueryParamsRequest } from "./query.js"; /** Query provides defines the gRPC querier service. */ export interface Query { /** Period retrieves current period. */ diff --git a/__fixtures__/v-next/outputv4/evmos/inflation/v1/query.ts b/__fixtures__/v-next/outputv4/evmos/inflation/v1/query.ts index 3baa5c0dde..5f0d851ceb 100644 --- a/__fixtures__/v-next/outputv4/evmos/inflation/v1/query.ts +++ b/__fixtures__/v-next/outputv4/evmos/inflation/v1/query.ts @@ -4,9 +4,11 @@ import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { JsonSafe } from "../../../json-safe.js"; import { DeepPartial, isSet } from "../../../helpers.js"; import { Decimal } from "@cosmjs/math"; +import { ComputedRef } from "vue"; export const protobufPackage = "evmos.inflation.v1"; /** QueryPeriodRequest is the request type for the Query/Period RPC method. */ export interface QueryPeriodRequest {} +export interface ReactiveQueryPeriodRequest {} export interface QueryPeriodRequestProtoMsg { typeUrl: "/evmos.inflation.v1.QueryPeriodRequest"; value: Uint8Array; @@ -18,6 +20,9 @@ export interface QueryPeriodResponse { /** period is the current minting per epoch provision value. */ period: bigint; } +export interface ReactiveQueryPeriodResponse { + period: ComputedRef; +} export interface QueryPeriodResponseProtoMsg { typeUrl: "/evmos.inflation.v1.QueryPeriodResponse"; value: Uint8Array; @@ -31,6 +36,7 @@ export interface QueryPeriodResponseSDKType { * Query/EpochMintProvision RPC method. */ export interface QueryEpochMintProvisionRequest {} +export interface ReactiveQueryEpochMintProvisionRequest {} export interface QueryEpochMintProvisionRequestProtoMsg { typeUrl: "/evmos.inflation.v1.QueryEpochMintProvisionRequest"; value: Uint8Array; @@ -48,6 +54,9 @@ export interface QueryEpochMintProvisionResponse { /** epoch_mint_provision is the current minting per epoch provision value. */ epochMintProvision: DecCoin; } +export interface ReactiveQueryEpochMintProvisionResponse { + epochMintProvision: ComputedRef; +} export interface QueryEpochMintProvisionResponseProtoMsg { typeUrl: "/evmos.inflation.v1.QueryEpochMintProvisionResponse"; value: Uint8Array; @@ -64,6 +73,7 @@ export interface QueryEpochMintProvisionResponseSDKType { * method. */ export interface QuerySkippedEpochsRequest {} +export interface ReactiveQuerySkippedEpochsRequest {} export interface QuerySkippedEpochsRequestProtoMsg { typeUrl: "/evmos.inflation.v1.QuerySkippedEpochsRequest"; value: Uint8Array; @@ -81,6 +91,9 @@ export interface QuerySkippedEpochsResponse { /** number of epochs that the inflation module has been disabled. */ skippedEpochs: bigint; } +export interface ReactiveQuerySkippedEpochsResponse { + skippedEpochs: ComputedRef; +} export interface QuerySkippedEpochsResponseProtoMsg { typeUrl: "/evmos.inflation.v1.QuerySkippedEpochsResponse"; value: Uint8Array; @@ -97,6 +110,7 @@ export interface QuerySkippedEpochsResponseSDKType { * Query/CirculatingSupply RPC method. */ export interface QueryCirculatingSupplyRequest {} +export interface ReactiveQueryCirculatingSupplyRequest {} export interface QueryCirculatingSupplyRequestProtoMsg { typeUrl: "/evmos.inflation.v1.QueryCirculatingSupplyRequest"; value: Uint8Array; @@ -114,6 +128,9 @@ export interface QueryCirculatingSupplyResponse { /** total amount of coins in circulation */ circulatingSupply: DecCoin; } +export interface ReactiveQueryCirculatingSupplyResponse { + circulatingSupply: ComputedRef; +} export interface QueryCirculatingSupplyResponseProtoMsg { typeUrl: "/evmos.inflation.v1.QueryCirculatingSupplyResponse"; value: Uint8Array; @@ -130,6 +147,7 @@ export interface QueryCirculatingSupplyResponseSDKType { * method. */ export interface QueryInflationRateRequest {} +export interface ReactiveQueryInflationRateRequest {} export interface QueryInflationRateRequestProtoMsg { typeUrl: "/evmos.inflation.v1.QueryInflationRateRequest"; value: Uint8Array; @@ -147,6 +165,9 @@ export interface QueryInflationRateResponse { /** rate by which the total supply increases within one period */ inflationRate: string; } +export interface ReactiveQueryInflationRateResponse { + inflationRate: ComputedRef; +} export interface QueryInflationRateResponseProtoMsg { typeUrl: "/evmos.inflation.v1.QueryInflationRateResponse"; value: Uint8Array; @@ -160,6 +181,7 @@ export interface QueryInflationRateResponseSDKType { } /** QueryParamsRequest is the request type for the Query/Params RPC method. */ export interface QueryParamsRequest {} +export interface ReactiveQueryParamsRequest {} export interface QueryParamsRequestProtoMsg { typeUrl: "/evmos.inflation.v1.QueryParamsRequest"; value: Uint8Array; @@ -171,6 +193,9 @@ export interface QueryParamsResponse { /** params defines the parameters of the module. */ params: Params; } +export interface ReactiveQueryParamsResponse { + params: ComputedRef; +} export interface QueryParamsResponseProtoMsg { typeUrl: "/evmos.inflation.v1.QueryParamsResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/evmos/recovery/v1/genesis.ts b/__fixtures__/v-next/outputv4/evmos/recovery/v1/genesis.ts index 846a95ccb1..1fd628e40a 100644 --- a/__fixtures__/v-next/outputv4/evmos/recovery/v1/genesis.ts +++ b/__fixtures__/v-next/outputv4/evmos/recovery/v1/genesis.ts @@ -2,12 +2,16 @@ import { Duration, DurationSDKType } from "../../../google/protobuf/duration.js" import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "evmos.recovery.v1"; /** GenesisState defines the recovery module's genesis state. */ export interface GenesisState { /** params defines all the paramaters of the module. */ params: Params; } +export interface ReactiveGenesisState { + params: ComputedRef; +} export interface GenesisStateProtoMsg { typeUrl: "/evmos.recovery.v1.GenesisState"; value: Uint8Array; @@ -23,6 +27,10 @@ export interface Params { /** duration added to timeout timestamp for balances recovered via IBC packets */ packetTimeoutDuration: Duration; } +export interface ReactiveParams { + enableRecovery: ComputedRef; + packetTimeoutDuration: ComputedRef; +} export interface ParamsProtoMsg { typeUrl: "/evmos.recovery.v1.Params"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/evmos/recovery/v1/query.rpc.Query.ts b/__fixtures__/v-next/outputv4/evmos/recovery/v1/query.rpc.Query.ts index c04b6e4e94..950b0c8d1a 100644 --- a/__fixtures__/v-next/outputv4/evmos/recovery/v1/query.rpc.Query.ts +++ b/__fixtures__/v-next/outputv4/evmos/recovery/v1/query.rpc.Query.ts @@ -2,7 +2,7 @@ import { Params, ParamsSDKType } from "./genesis.js"; import { Rpc } from "../../../helpers.js"; import { BinaryReader } from "../../../binary.js"; import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryParamsRequest, QueryParamsRequestSDKType, QueryParamsResponse, QueryParamsResponseSDKType } from "./query.js"; +import { QueryParamsRequest, QueryParamsRequestSDKType, QueryParamsResponse, QueryParamsResponseSDKType, ReactiveQueryParamsRequest } from "./query.js"; /** Query defines the gRPC querier service. */ export interface Query { /** Params retrieves the total set of recovery parameters. */ diff --git a/__fixtures__/v-next/outputv4/evmos/recovery/v1/query.ts b/__fixtures__/v-next/outputv4/evmos/recovery/v1/query.ts index 42c4a10bd4..c1c0d7d5d5 100644 --- a/__fixtures__/v-next/outputv4/evmos/recovery/v1/query.ts +++ b/__fixtures__/v-next/outputv4/evmos/recovery/v1/query.ts @@ -2,9 +2,11 @@ import { Params, ParamsSDKType } from "./genesis.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { JsonSafe } from "../../../json-safe.js"; import { DeepPartial, isSet } from "../../../helpers.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "evmos.recovery.v1"; /** QueryParamsRequest is the request type for the Query/Params RPC method. */ export interface QueryParamsRequest {} +export interface ReactiveQueryParamsRequest {} export interface QueryParamsRequestProtoMsg { typeUrl: "/evmos.recovery.v1.QueryParamsRequest"; value: Uint8Array; @@ -16,6 +18,9 @@ export interface QueryParamsResponse { /** params defines the parameters of the module. */ params: Params; } +export interface ReactiveQueryParamsResponse { + params: ComputedRef; +} export interface QueryParamsResponseProtoMsg { typeUrl: "/evmos.recovery.v1.QueryParamsResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/evmos/vesting/v1/query.rpc.Query.ts b/__fixtures__/v-next/outputv4/evmos/vesting/v1/query.rpc.Query.ts index f74296c6ac..b3d964e2b4 100644 --- a/__fixtures__/v-next/outputv4/evmos/vesting/v1/query.rpc.Query.ts +++ b/__fixtures__/v-next/outputv4/evmos/vesting/v1/query.rpc.Query.ts @@ -2,7 +2,7 @@ import { Coin, CoinSDKType } from "../../../cosmos/base/v1beta1/coin.js"; import { Rpc } from "../../../helpers.js"; import { BinaryReader } from "../../../binary.js"; import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryBalancesRequest, QueryBalancesRequestSDKType, QueryBalancesResponse, QueryBalancesResponseSDKType } from "./query.js"; +import { QueryBalancesRequest, QueryBalancesRequestSDKType, QueryBalancesResponse, QueryBalancesResponseSDKType, ReactiveQueryBalancesRequest } from "./query.js"; /** Query defines the gRPC querier service. */ export interface Query { /** Retrieves the unvested, vested and locked tokens for a vesting account */ diff --git a/__fixtures__/v-next/outputv4/evmos/vesting/v1/query.ts b/__fixtures__/v-next/outputv4/evmos/vesting/v1/query.ts index 9327e5db67..409e5e6067 100644 --- a/__fixtures__/v-next/outputv4/evmos/vesting/v1/query.ts +++ b/__fixtures__/v-next/outputv4/evmos/vesting/v1/query.ts @@ -2,12 +2,16 @@ import { Coin, CoinSDKType } from "../../../cosmos/base/v1beta1/coin.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "evmos.vesting.v1"; /** QueryBalancesRequest is the request type for the Query/Balances RPC method. */ export interface QueryBalancesRequest { /** address of the clawback vesting account */ address: string; } +export interface ReactiveQueryBalancesRequest { + address: ComputedRef; +} export interface QueryBalancesRequestProtoMsg { typeUrl: "/evmos.vesting.v1.QueryBalancesRequest"; value: Uint8Array; @@ -28,6 +32,11 @@ export interface QueryBalancesResponse { /** current amount of vested tokens */ vested: Coin[]; } +export interface ReactiveQueryBalancesResponse { + locked: ComputedRef; + unvested: ComputedRef; + vested: ComputedRef; +} export interface QueryBalancesResponseProtoMsg { typeUrl: "/evmos.vesting.v1.QueryBalancesResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/evmos/vesting/v1/tx.ts b/__fixtures__/v-next/outputv4/evmos/vesting/v1/tx.ts index 91e7084dbd..9a704675b9 100644 --- a/__fixtures__/v-next/outputv4/evmos/vesting/v1/tx.ts +++ b/__fixtures__/v-next/outputv4/evmos/vesting/v1/tx.ts @@ -3,6 +3,7 @@ import { Period, PeriodSDKType } from "../../../cosmos/vesting/v1beta1/vesting.j import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { toTimestamp, fromTimestamp, isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "evmos.vesting.v1"; /** MsgCreateClawbackVestingAccount defines a message that enables creating a ClawbackVestingAccount. */ export interface MsgCreateClawbackVestingAccount { @@ -28,6 +29,14 @@ export interface MsgCreateClawbackVestingAccount { */ merge: boolean; } +export interface ReactiveMsgCreateClawbackVestingAccount { + fromAddress: ComputedRef; + toAddress: ComputedRef; + startTime: ComputedRef; + lockupPeriods: ComputedRef; + vestingPeriods: ComputedRef; + merge: ComputedRef; +} export interface MsgCreateClawbackVestingAccountProtoMsg { typeUrl: "/evmos.vesting.v1.MsgCreateClawbackVestingAccount"; value: Uint8Array; @@ -46,6 +55,7 @@ export interface MsgCreateClawbackVestingAccountSDKType { * MsgCreateClawbackVestingAccount response type. */ export interface MsgCreateClawbackVestingAccountResponse {} +export interface ReactiveMsgCreateClawbackVestingAccountResponse {} export interface MsgCreateClawbackVestingAccountResponseProtoMsg { typeUrl: "/evmos.vesting.v1.MsgCreateClawbackVestingAccountResponse"; value: Uint8Array; @@ -71,6 +81,11 @@ export interface MsgClawback { */ destAddress: string; } +export interface ReactiveMsgClawback { + funderAddress: ComputedRef; + accountAddress: ComputedRef; + destAddress: ComputedRef; +} export interface MsgClawbackProtoMsg { typeUrl: "/evmos.vesting.v1.MsgClawback"; value: Uint8Array; @@ -86,6 +101,7 @@ export interface MsgClawbackSDKType { } /** MsgClawbackResponse defines the MsgClawback response type. */ export interface MsgClawbackResponse {} +export interface ReactiveMsgClawbackResponse {} export interface MsgClawbackResponseProtoMsg { typeUrl: "/evmos.vesting.v1.MsgClawbackResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/evmos/vesting/v1/vesting.ts b/__fixtures__/v-next/outputv4/evmos/vesting/v1/vesting.ts index 1a5cddd31a..1350d993d0 100644 --- a/__fixtures__/v-next/outputv4/evmos/vesting/v1/vesting.ts +++ b/__fixtures__/v-next/outputv4/evmos/vesting/v1/vesting.ts @@ -3,6 +3,7 @@ import { Timestamp, TimestampSDKType } from "../../../google/protobuf/timestamp. import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { toTimestamp, fromTimestamp, isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "evmos.vesting.v1"; /** * ClawbackVestingAccount implements the VestingAccount interface. It provides @@ -25,6 +26,13 @@ export interface ClawbackVestingAccount { /** vesting_periods defines the vesting schedule relative to the start_time */ vestingPeriods: Period[]; } +export interface ReactiveClawbackVestingAccount { + baseVestingAccount?: ComputedRef; + funderAddress: ComputedRef; + startTime: ComputedRef; + lockupPeriods: ComputedRef; + vestingPeriods: ComputedRef; +} export interface ClawbackVestingAccountProtoMsg { typeUrl: "/evmos.vesting.v1.ClawbackVestingAccount"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/google/api/auth.ts b/__fixtures__/v-next/outputv4/google/api/auth.ts index 37ab1a6359..55c593fe9b 100644 --- a/__fixtures__/v-next/outputv4/google/api/auth.ts +++ b/__fixtures__/v-next/outputv4/google/api/auth.ts @@ -1,6 +1,7 @@ import { BinaryReader, BinaryWriter } from "../../binary.js"; import { JsonSafe } from "../../json-safe.js"; import { DeepPartial, isSet } from "../../helpers.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "google.api"; /** * `Authentication` defines the authentication configuration for API methods @@ -32,6 +33,10 @@ export interface Authentication { /** Defines a set of authentication providers that a service supports. */ providers: AuthProvider[]; } +export interface ReactiveAuthentication { + rules: ComputedRef; + providers: ComputedRef; +} export interface AuthenticationProtoMsg { typeUrl: "/google.api.Authentication"; value: Uint8Array; @@ -88,6 +93,12 @@ export interface AuthenticationRule { /** Requirements for additional authentication providers. */ requirements: AuthRequirement[]; } +export interface ReactiveAuthenticationRule { + selector: ComputedRef; + oauth?: ComputedRef; + allowWithoutCredential: ComputedRef; + requirements: ComputedRef; +} export interface AuthenticationRuleProtoMsg { typeUrl: "/google.api.AuthenticationRule"; value: Uint8Array; @@ -127,6 +138,11 @@ export interface JwtLocation { */ valuePrefix: string; } +export interface ReactiveJwtLocation { + header?: ComputedRef; + query?: ComputedRef; + valuePrefix: ComputedRef; +} export interface JwtLocationProtoMsg { typeUrl: "/google.api.JwtLocation"; value: Uint8Array; @@ -220,6 +236,14 @@ export interface AuthProvider { */ jwtLocations: JwtLocation[]; } +export interface ReactiveAuthProvider { + id: ComputedRef; + issuer: ComputedRef; + jwksUri: ComputedRef; + audiences: ComputedRef; + authorizationUrl: ComputedRef; + jwtLocations: ComputedRef; +} export interface AuthProviderProtoMsg { typeUrl: "/google.api.AuthProvider"; value: Uint8Array; @@ -269,6 +293,9 @@ export interface OAuthRequirements { */ canonicalScopes: string; } +export interface ReactiveOAuthRequirements { + canonicalScopes: ComputedRef; +} export interface OAuthRequirementsProtoMsg { typeUrl: "/google.api.OAuthRequirements"; value: Uint8Array; @@ -330,6 +357,10 @@ export interface AuthRequirement { */ audiences: string; } +export interface ReactiveAuthRequirement { + providerId: ComputedRef; + audiences: ComputedRef; +} export interface AuthRequirementProtoMsg { typeUrl: "/google.api.AuthRequirement"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/google/api/backend.ts b/__fixtures__/v-next/outputv4/google/api/backend.ts index 8a1cdc029e..a5088e4d29 100644 --- a/__fixtures__/v-next/outputv4/google/api/backend.ts +++ b/__fixtures__/v-next/outputv4/google/api/backend.ts @@ -1,6 +1,7 @@ import { BinaryReader, BinaryWriter } from "../../binary.js"; import { JsonSafe } from "../../json-safe.js"; import { DeepPartial, isSet } from "../../helpers.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "google.api"; /** * Path Translation specifies how to combine the backend address with the @@ -103,6 +104,9 @@ export interface Backend { */ rules: BackendRule[]; } +export interface ReactiveBackend { + rules: ComputedRef; +} export interface BackendProtoMsg { typeUrl: "/google.api.Backend"; value: Uint8Array; @@ -196,6 +200,17 @@ export interface BackendRule { */ protocol: string; } +export interface ReactiveBackendRule { + selector: ComputedRef; + address: ComputedRef; + deadline: ComputedRef; + minDeadline: ComputedRef; + operationDeadline: ComputedRef; + pathTranslation: ComputedRef; + jwtAudience?: ComputedRef; + disableAuth?: ComputedRef; + protocol: ComputedRef; +} export interface BackendRuleProtoMsg { typeUrl: "/google.api.BackendRule"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/google/api/billing.ts b/__fixtures__/v-next/outputv4/google/api/billing.ts index 3767cd5423..2d9a0888a4 100644 --- a/__fixtures__/v-next/outputv4/google/api/billing.ts +++ b/__fixtures__/v-next/outputv4/google/api/billing.ts @@ -1,6 +1,7 @@ import { BinaryReader, BinaryWriter } from "../../binary.js"; import { JsonSafe } from "../../json-safe.js"; import { DeepPartial, isSet } from "../../helpers.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "google.api"; /** * Billing related configuration of the service. @@ -45,6 +46,9 @@ export interface Billing { */ consumerDestinations: Billing_BillingDestination[]; } +export interface ReactiveBilling { + consumerDestinations: ComputedRef; +} export interface BillingProtoMsg { typeUrl: "/google.api.Billing"; value: Uint8Array; @@ -102,6 +106,10 @@ export interface Billing_BillingDestination { */ metrics: string[]; } +export interface ReactiveBilling_BillingDestination { + monitoredResource: ComputedRef; + metrics: ComputedRef; +} export interface Billing_BillingDestinationProtoMsg { typeUrl: "/google.api.BillingDestination"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/google/api/config_change.ts b/__fixtures__/v-next/outputv4/google/api/config_change.ts index 6602d4b451..0c45dd9940 100644 --- a/__fixtures__/v-next/outputv4/google/api/config_change.ts +++ b/__fixtures__/v-next/outputv4/google/api/config_change.ts @@ -1,6 +1,7 @@ import { BinaryReader, BinaryWriter } from "../../binary.js"; import { isSet, DeepPartial } from "../../helpers.js"; import { JsonSafe } from "../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "google.api"; /** * Classifies set of possible modifications to an object in the service @@ -101,6 +102,13 @@ export interface ConfigChange { */ advices: Advice[]; } +export interface ReactiveConfigChange { + element: ComputedRef; + oldValue: ComputedRef; + newValue: ComputedRef; + changeType: ComputedRef; + advices: ComputedRef; +} export interface ConfigChangeProtoMsg { typeUrl: "/google.api.ConfigChange"; value: Uint8Array; @@ -131,6 +139,9 @@ export interface Advice { */ description: string; } +export interface ReactiveAdvice { + description: ComputedRef; +} export interface AdviceProtoMsg { typeUrl: "/google.api.Advice"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/google/api/consumer.ts b/__fixtures__/v-next/outputv4/google/api/consumer.ts index f16c13dd81..aa2803fa3c 100644 --- a/__fixtures__/v-next/outputv4/google/api/consumer.ts +++ b/__fixtures__/v-next/outputv4/google/api/consumer.ts @@ -1,6 +1,7 @@ import { BinaryReader, BinaryWriter } from "../../binary.js"; import { JsonSafe } from "../../json-safe.js"; import { DeepPartial, isSet } from "../../helpers.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "google.api"; /** Supported data type of the property values */ export enum Property_PropertyType { @@ -79,6 +80,9 @@ export interface ProjectProperties { /** List of per consumer project-specific properties. */ properties: Property[]; } +export interface ReactiveProjectProperties { + properties: ComputedRef; +} export interface ProjectPropertiesProtoMsg { typeUrl: "/google.api.ProjectProperties"; value: Uint8Array; @@ -124,6 +128,11 @@ export interface Property { /** The description of the property */ description: string; } +export interface ReactiveProperty { + name: ComputedRef; + type: ComputedRef; + description: ComputedRef; +} export interface PropertyProtoMsg { typeUrl: "/google.api.Property"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/google/api/context.ts b/__fixtures__/v-next/outputv4/google/api/context.ts index 20634acf30..70f8ef21c5 100644 --- a/__fixtures__/v-next/outputv4/google/api/context.ts +++ b/__fixtures__/v-next/outputv4/google/api/context.ts @@ -1,6 +1,7 @@ import { BinaryReader, BinaryWriter } from "../../binary.js"; import { JsonSafe } from "../../json-safe.js"; import { DeepPartial, isSet } from "../../helpers.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "google.api"; /** * `Context` defines which contexts an API requests. @@ -48,6 +49,9 @@ export interface Context { */ rules: ContextRule[]; } +export interface ReactiveContext { + rules: ComputedRef; +} export interface ContextProtoMsg { typeUrl: "/google.api.Context"; value: Uint8Array; @@ -119,6 +123,13 @@ export interface ContextRule { */ allowedResponseExtensions: string[]; } +export interface ReactiveContextRule { + selector: ComputedRef; + requested: ComputedRef; + provided: ComputedRef; + allowedRequestExtensions: ComputedRef; + allowedResponseExtensions: ComputedRef; +} export interface ContextRuleProtoMsg { typeUrl: "/google.api.ContextRule"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/google/api/control.ts b/__fixtures__/v-next/outputv4/google/api/control.ts index a021cfcb77..a7eaaf2d61 100644 --- a/__fixtures__/v-next/outputv4/google/api/control.ts +++ b/__fixtures__/v-next/outputv4/google/api/control.ts @@ -1,6 +1,7 @@ import { BinaryReader, BinaryWriter } from "../../binary.js"; import { isSet, DeepPartial } from "../../helpers.js"; import { JsonSafe } from "../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "google.api"; /** * Selects and configures the service controller used by the service. The @@ -14,6 +15,9 @@ export interface Control { */ environment: string; } +export interface ReactiveControl { + environment: ComputedRef; +} export interface ControlProtoMsg { typeUrl: "/google.api.Control"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/google/api/distribution.ts b/__fixtures__/v-next/outputv4/google/api/distribution.ts index 78227415e7..25ade1542f 100644 --- a/__fixtures__/v-next/outputv4/google/api/distribution.ts +++ b/__fixtures__/v-next/outputv4/google/api/distribution.ts @@ -3,6 +3,7 @@ import { Any, AnySDKType } from "../protobuf/any.js"; import { BinaryReader, BinaryWriter } from "../../binary.js"; import { isSet, DeepPartial, toTimestamp, fromTimestamp } from "../../helpers.js"; import { JsonSafe } from "../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "google.api"; /** * `Distribution` contains summary statistics for a population of values. It @@ -75,6 +76,15 @@ export interface Distribution { /** Must be in increasing order of `value` field. */ exemplars: Distribution_Exemplar[]; } +export interface ReactiveDistribution { + count: ComputedRef; + mean: ComputedRef; + sumOfSquaredDeviation: ComputedRef; + range?: ComputedRef; + bucketOptions?: ComputedRef; + bucketCounts: ComputedRef; + exemplars: ComputedRef; +} export interface DistributionProtoMsg { typeUrl: "/google.api.Distribution"; value: Uint8Array; @@ -111,6 +121,10 @@ export interface Distribution_Range { /** The maximum of the population values. */ max: number; } +export interface ReactiveDistribution_Range { + min: ComputedRef; + max: ComputedRef; +} export interface Distribution_RangeProtoMsg { typeUrl: "/google.api.Range"; value: Uint8Array; @@ -145,6 +159,11 @@ export interface Distribution_BucketOptions { /** The explicit buckets. */ explicitBuckets?: Distribution_BucketOptions_Explicit; } +export interface ReactiveDistribution_BucketOptions { + linearBuckets?: ComputedRef; + exponentialBuckets?: ComputedRef; + explicitBuckets?: ComputedRef; +} export interface Distribution_BucketOptionsProtoMsg { typeUrl: "/google.api.BucketOptions"; value: Uint8Array; @@ -190,6 +209,11 @@ export interface Distribution_BucketOptions_Linear { /** Lower bound of the first bucket. */ offset: number; } +export interface ReactiveDistribution_BucketOptions_Linear { + numFiniteBuckets: ComputedRef; + width: ComputedRef; + offset: ComputedRef; +} export interface Distribution_BucketOptions_LinearProtoMsg { typeUrl: "/google.api.Linear"; value: Uint8Array; @@ -229,6 +253,11 @@ export interface Distribution_BucketOptions_Exponential { /** Must be greater than 0. */ scale: number; } +export interface ReactiveDistribution_BucketOptions_Exponential { + numFiniteBuckets: ComputedRef; + growthFactor: ComputedRef; + scale: ComputedRef; +} export interface Distribution_BucketOptions_ExponentialProtoMsg { typeUrl: "/google.api.Exponential"; value: Uint8Array; @@ -266,6 +295,9 @@ export interface Distribution_BucketOptions_Explicit { /** The values must be monotonically increasing. */ bounds: number[]; } +export interface ReactiveDistribution_BucketOptions_Explicit { + bounds: ComputedRef; +} export interface Distribution_BucketOptions_ExplicitProtoMsg { typeUrl: "/google.api.Explicit"; value: Uint8Array; @@ -316,6 +348,11 @@ export interface Distribution_Exemplar { */ attachments: Any[]; } +export interface ReactiveDistribution_Exemplar { + value: ComputedRef; + timestamp?: ComputedRef; + attachments: ComputedRef; +} export interface Distribution_ExemplarProtoMsg { typeUrl: "/google.api.Exemplar"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/google/api/documentation.ts b/__fixtures__/v-next/outputv4/google/api/documentation.ts index ac7891c63e..b046a1aa68 100644 --- a/__fixtures__/v-next/outputv4/google/api/documentation.ts +++ b/__fixtures__/v-next/outputv4/google/api/documentation.ts @@ -1,6 +1,7 @@ import { BinaryReader, BinaryWriter } from "../../binary.js"; import { isSet, DeepPartial } from "../../helpers.js"; import { JsonSafe } from "../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "google.api"; /** * `Documentation` provides the information for describing a service. @@ -99,6 +100,14 @@ export interface Documentation { */ overview: string; } +export interface ReactiveDocumentation { + summary: ComputedRef; + pages: ComputedRef; + rules: ComputedRef; + documentationRootUrl: ComputedRef; + serviceRootUrl: ComputedRef; + overview: ComputedRef; +} export interface DocumentationProtoMsg { typeUrl: "/google.api.Documentation"; value: Uint8Array; @@ -187,6 +196,11 @@ export interface DocumentationRule { */ deprecationDescription: string; } +export interface ReactiveDocumentationRule { + selector: ComputedRef; + description: ComputedRef; + deprecationDescription: ComputedRef; +} export interface DocumentationRuleProtoMsg { typeUrl: "/google.api.DocumentationRule"; value: Uint8Array; @@ -230,6 +244,11 @@ export interface Page { */ subpages: Page[]; } +export interface ReactivePage { + name: ComputedRef; + content: ComputedRef; + subpages: ComputedRef; +} export interface PageProtoMsg { typeUrl: "/google.api.Page"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/google/api/endpoint.ts b/__fixtures__/v-next/outputv4/google/api/endpoint.ts index df0ef1e71e..208aba711b 100644 --- a/__fixtures__/v-next/outputv4/google/api/endpoint.ts +++ b/__fixtures__/v-next/outputv4/google/api/endpoint.ts @@ -1,6 +1,7 @@ import { BinaryReader, BinaryWriter } from "../../binary.js"; import { isSet, DeepPartial } from "../../helpers.js"; import { JsonSafe } from "../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "google.api"; /** * `Endpoint` describes a network endpoint of a service that serves a set of @@ -52,6 +53,12 @@ export interface Endpoint { */ allowCors: boolean; } +export interface ReactiveEndpoint { + name: ComputedRef; + aliases: ComputedRef; + target: ComputedRef; + allowCors: ComputedRef; +} export interface EndpointProtoMsg { typeUrl: "/google.api.Endpoint"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/google/api/error_reason.ts b/__fixtures__/v-next/outputv4/google/api/error_reason.ts index 1052f8145d..a30a484e8d 100644 --- a/__fixtures__/v-next/outputv4/google/api/error_reason.ts +++ b/__fixtures__/v-next/outputv4/google/api/error_reason.ts @@ -1,3 +1,4 @@ +import { ComputedRef } from "vue"; export const protobufPackage = "google.api"; /** * Defines the supported values for `google.rpc.ErrorInfo.reason` for the diff --git a/__fixtures__/v-next/outputv4/google/api/expr/conformance/v1alpha1/conformance_service.ts b/__fixtures__/v-next/outputv4/google/api/expr/conformance/v1alpha1/conformance_service.ts index 501ba956ec..c5087af26c 100644 --- a/__fixtures__/v-next/outputv4/google/api/expr/conformance/v1alpha1/conformance_service.ts +++ b/__fixtures__/v-next/outputv4/google/api/expr/conformance/v1alpha1/conformance_service.ts @@ -5,6 +5,7 @@ import { Status, StatusSDKType } from "../../../../rpc/status.js"; import { BinaryReader, BinaryWriter } from "../../../../../binary.js"; import { isSet, DeepPartial, isObject } from "../../../../../helpers.js"; import { JsonSafe } from "../../../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "google.api.expr.conformance.v1alpha1"; /** Severities of issues. */ export enum IssueDetails_Severity { @@ -68,6 +69,12 @@ export interface ParseRequest { /** Prevent macro expansion. See "Macros" in Language Defiinition. */ disableMacros: boolean; } +export interface ReactiveParseRequest { + celSource: ComputedRef; + syntaxVersion: ComputedRef; + sourceLocation: ComputedRef; + disableMacros: ComputedRef; +} export interface ParseRequestProtoMsg { typeUrl: "/google.api.expr.conformance.v1alpha1.ParseRequest"; value: Uint8Array; @@ -86,6 +93,10 @@ export interface ParseResponse { /** Any number of issues with [StatusDetails][] as the details. */ issues: Status[]; } +export interface ReactiveParseResponse { + parsedExpr?: ComputedRef; + issues: ComputedRef; +} export interface ParseResponseProtoMsg { typeUrl: "/google.api.expr.conformance.v1alpha1.ParseResponse"; value: Uint8Array; @@ -117,6 +128,12 @@ export interface CheckRequest { */ noStdEnv: boolean; } +export interface ReactiveCheckRequest { + parsedExpr?: ComputedRef; + typeEnv: ComputedRef; + container: ComputedRef; + noStdEnv: ComputedRef; +} export interface CheckRequestProtoMsg { typeUrl: "/google.api.expr.conformance.v1alpha1.CheckRequest"; value: Uint8Array; @@ -135,6 +152,10 @@ export interface CheckResponse { /** Any number of issues with [StatusDetails][] as the details. */ issues: Status[]; } +export interface ReactiveCheckResponse { + checkedExpr?: ComputedRef; + issues: ComputedRef; +} export interface CheckResponseProtoMsg { typeUrl: "/google.api.expr.conformance.v1alpha1.CheckResponse"; value: Uint8Array; @@ -148,6 +169,10 @@ export interface EvalRequest_BindingsEntry { key: string; value?: ExprValue; } +export interface ReactiveEvalRequest_BindingsEntry { + key: ComputedRef; + value?: ComputedRef; +} export interface EvalRequest_BindingsEntryProtoMsg { typeUrl: string; value: Uint8Array; @@ -172,6 +197,14 @@ export interface EvalRequest { /** SHOULD be the same container as used in [CheckRequest][google.api.expr.conformance.v1alpha1.CheckRequest], if checked. */ container: string; } +export interface ReactiveEvalRequest { + parsedExpr?: ComputedRef; + checkedExpr?: ComputedRef; + bindings: ComputedRef<{ + [key: string]: ExprValue; + }>; + container: ComputedRef; +} export interface EvalRequestProtoMsg { typeUrl: "/google.api.expr.conformance.v1alpha1.EvalRequest"; value: Uint8Array; @@ -197,6 +230,10 @@ export interface EvalResponse { */ issues: Status[]; } +export interface ReactiveEvalResponse { + result?: ComputedRef; + issues: ComputedRef; +} export interface EvalResponseProtoMsg { typeUrl: "/google.api.expr.conformance.v1alpha1.EvalResponse"; value: Uint8Array; @@ -219,6 +256,11 @@ export interface IssueDetails { /** Expression ID from [Expr][], 0 if unknown. */ id: bigint; } +export interface ReactiveIssueDetails { + severity: ComputedRef; + position?: ComputedRef; + id: ComputedRef; +} export interface IssueDetailsProtoMsg { typeUrl: "/google.api.expr.conformance.v1alpha1.IssueDetails"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/google/api/expr/v1alpha1/checked.ts b/__fixtures__/v-next/outputv4/google/api/expr/v1alpha1/checked.ts index 893f1e63f0..91189606ca 100644 --- a/__fixtures__/v-next/outputv4/google/api/expr/v1alpha1/checked.ts +++ b/__fixtures__/v-next/outputv4/google/api/expr/v1alpha1/checked.ts @@ -4,6 +4,7 @@ import { NullValue, NullValueSDKType, nullValueFromJSON, nullValueToJSON } from import { BinaryReader, BinaryWriter } from "../../../../binary.js"; import { isSet, DeepPartial, isObject } from "../../../../helpers.js"; import { JsonSafe } from "../../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "google.api.expr.v1alpha1"; /** CEL primitive types. */ export enum Type_PrimitiveType { @@ -144,6 +145,10 @@ export interface CheckedExpr_ReferenceMapEntry { key: bigint; value?: Reference; } +export interface ReactiveCheckedExpr_ReferenceMapEntry { + key: ComputedRef; + value?: ComputedRef; +} export interface CheckedExpr_ReferenceMapEntryProtoMsg { typeUrl: string; value: Uint8Array; @@ -156,6 +161,10 @@ export interface CheckedExpr_TypeMapEntry { key: bigint; value?: Type; } +export interface ReactiveCheckedExpr_TypeMapEntry { + key: ComputedRef; + value?: ComputedRef; +} export interface CheckedExpr_TypeMapEntryProtoMsg { typeUrl: string; value: Uint8Array; @@ -217,6 +226,17 @@ export interface CheckedExpr { */ expr?: Expr; } +export interface ReactiveCheckedExpr { + referenceMap: ComputedRef<{ + [key: bigint]: Reference; + }>; + typeMap: ComputedRef<{ + [key: bigint]: Type; + }>; + sourceInfo?: ComputedRef; + exprVersion: ComputedRef; + expr?: ComputedRef; +} export interface CheckedExprProtoMsg { typeUrl: "/google.api.expr.v1alpha1.CheckedExpr"; value: Uint8Array; @@ -284,6 +304,21 @@ export interface Type { /** Abstract, application defined type. */ abstractType?: Type_AbstractType; } +export interface ReactiveType { + dyn?: ComputedRef; + null?: ComputedRef; + primitive?: ComputedRef; + wrapper?: ComputedRef; + wellKnown?: ComputedRef; + listType?: ComputedRef; + mapType?: ComputedRef; + function?: ComputedRef; + messageType?: ComputedRef; + typeParam?: ComputedRef; + type?: ComputedRef; + error?: ComputedRef; + abstractType?: ComputedRef; +} export interface TypeProtoMsg { typeUrl: "/google.api.expr.v1alpha1.Type"; value: Uint8Array; @@ -309,6 +344,9 @@ export interface Type_ListType { /** The element type. */ elemType?: Type; } +export interface ReactiveType_ListType { + elemType?: ComputedRef; +} export interface Type_ListTypeProtoMsg { typeUrl: "/google.api.expr.v1alpha1.ListType"; value: Uint8Array; @@ -324,6 +362,10 @@ export interface Type_MapType { /** The type of the value. */ valueType?: Type; } +export interface ReactiveType_MapType { + keyType?: ComputedRef; + valueType?: ComputedRef; +} export interface Type_MapTypeProtoMsg { typeUrl: "/google.api.expr.v1alpha1.MapType"; value: Uint8Array; @@ -340,6 +382,10 @@ export interface Type_FunctionType { /** Argument types of the function. */ argTypes: Type[]; } +export interface ReactiveType_FunctionType { + resultType?: ComputedRef; + argTypes: ComputedRef; +} export interface Type_FunctionTypeProtoMsg { typeUrl: "/google.api.expr.v1alpha1.FunctionType"; value: Uint8Array; @@ -356,6 +402,10 @@ export interface Type_AbstractType { /** Parameter types for this abstract type. */ parameterTypes: Type[]; } +export interface ReactiveType_AbstractType { + name: ComputedRef; + parameterTypes: ComputedRef; +} export interface Type_AbstractTypeProtoMsg { typeUrl: "/google.api.expr.v1alpha1.AbstractType"; value: Uint8Array; @@ -388,6 +438,11 @@ export interface Decl { /** Function declaration. */ function?: Decl_FunctionDecl; } +export interface ReactiveDecl { + name: ComputedRef; + ident?: ComputedRef; + function?: ComputedRef; +} export interface DeclProtoMsg { typeUrl: "/google.api.expr.v1alpha1.Decl"; value: Uint8Array; @@ -422,6 +477,11 @@ export interface Decl_IdentDecl { /** Documentation string for the identifier. */ doc: string; } +export interface ReactiveDecl_IdentDecl { + type?: ComputedRef; + value?: ComputedRef; + doc: ComputedRef; +} export interface Decl_IdentDeclProtoMsg { typeUrl: "/google.api.expr.v1alpha1.IdentDecl"; value: Uint8Array; @@ -450,6 +510,9 @@ export interface Decl_FunctionDecl { /** Required. List of function overloads, must contain at least one overload. */ overloads: Decl_FunctionDecl_Overload[]; } +export interface ReactiveDecl_FunctionDecl { + overloads: ComputedRef; +} export interface Decl_FunctionDeclProtoMsg { typeUrl: "/google.api.expr.v1alpha1.FunctionDecl"; value: Uint8Array; @@ -521,6 +584,14 @@ export interface Decl_FunctionDecl_Overload { /** Documentation string for the overload. */ doc: string; } +export interface ReactiveDecl_FunctionDecl_Overload { + overloadId: ComputedRef; + params: ComputedRef; + typeParams: ComputedRef; + resultType?: ComputedRef; + isInstanceFunction: ComputedRef; + doc: ComputedRef; +} export interface Decl_FunctionDecl_OverloadProtoMsg { typeUrl: "/google.api.expr.v1alpha1.Overload"; value: Uint8Array; @@ -566,6 +637,11 @@ export interface Reference { */ value?: Constant; } +export interface ReactiveReference { + name: ComputedRef; + overloadId: ComputedRef; + value?: ComputedRef; +} export interface ReferenceProtoMsg { typeUrl: "/google.api.expr.v1alpha1.Reference"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/google/api/expr/v1alpha1/eval.ts b/__fixtures__/v-next/outputv4/google/api/expr/v1alpha1/eval.ts index 3d622489c7..0371ac3a9f 100644 --- a/__fixtures__/v-next/outputv4/google/api/expr/v1alpha1/eval.ts +++ b/__fixtures__/v-next/outputv4/google/api/expr/v1alpha1/eval.ts @@ -3,6 +3,7 @@ import { Status, StatusSDKType } from "../../../rpc/status.js"; import { BinaryReader, BinaryWriter } from "../../../../binary.js"; import { JsonSafe } from "../../../../json-safe.js"; import { DeepPartial, isSet } from "../../../../helpers.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "google.api.expr.v1alpha1"; /** * The state of an evaluation. @@ -20,6 +21,10 @@ export interface EvalState { */ results: EvalState_Result[]; } +export interface ReactiveEvalState { + values: ComputedRef; + results: ComputedRef; +} export interface EvalStateProtoMsg { typeUrl: "/google.api.expr.v1alpha1.EvalState"; value: Uint8Array; @@ -40,6 +45,10 @@ export interface EvalState_Result { /** The index in `values` of the resulting value. */ value: bigint; } +export interface ReactiveEvalState_Result { + expr: ComputedRef; + value: ComputedRef; +} export interface EvalState_ResultProtoMsg { typeUrl: "/google.api.expr.v1alpha1.Result"; value: Uint8Array; @@ -100,6 +109,11 @@ export interface ExprValue { */ unknown?: UnknownSet; } +export interface ReactiveExprValue { + value?: ComputedRef; + error?: ComputedRef; + unknown?: ComputedRef; +} export interface ExprValueProtoMsg { typeUrl: "/google.api.expr.v1alpha1.ExprValue"; value: Uint8Array; @@ -119,6 +133,9 @@ export interface ErrorSet { /** The errors in the set. */ errors: Status[]; } +export interface ReactiveErrorSet { + errors: ComputedRef; +} export interface ErrorSetProtoMsg { typeUrl: "/google.api.expr.v1alpha1.ErrorSet"; value: Uint8Array; @@ -140,6 +157,9 @@ export interface UnknownSet { /** The ids of the expressions with unknown values. */ exprs: bigint[]; } +export interface ReactiveUnknownSet { + exprs: ComputedRef; +} export interface UnknownSetProtoMsg { typeUrl: "/google.api.expr.v1alpha1.UnknownSet"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/google/api/expr/v1alpha1/explain.ts b/__fixtures__/v-next/outputv4/google/api/expr/v1alpha1/explain.ts index f24dd302f3..9227fd90e1 100644 --- a/__fixtures__/v-next/outputv4/google/api/expr/v1alpha1/explain.ts +++ b/__fixtures__/v-next/outputv4/google/api/expr/v1alpha1/explain.ts @@ -2,6 +2,7 @@ import { Value, ValueSDKType } from "./value.js"; import { BinaryReader, BinaryWriter } from "../../../../binary.js"; import { JsonSafe } from "../../../../json-safe.js"; import { DeepPartial, isSet } from "../../../../helpers.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "google.api.expr.v1alpha1"; /** * Values of intermediate expressions produced when evaluating expression. @@ -25,6 +26,10 @@ export interface Explain { */ exprSteps: Explain_ExprStep[]; } +export interface ReactiveExplain { + values: ComputedRef; + exprSteps: ComputedRef; +} export interface ExplainProtoMsg { typeUrl: "/google.api.expr.v1alpha1.Explain"; value: Uint8Array; @@ -45,6 +50,10 @@ export interface Explain_ExprStep { /** Index of the value in the values list. */ valueIndex: number; } +export interface ReactiveExplain_ExprStep { + id: ComputedRef; + valueIndex: ComputedRef; +} export interface Explain_ExprStepProtoMsg { typeUrl: "/google.api.expr.v1alpha1.ExprStep"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/google/api/expr/v1alpha1/syntax.ts b/__fixtures__/v-next/outputv4/google/api/expr/v1alpha1/syntax.ts index 4d1fb151e3..6dfd5d232b 100644 --- a/__fixtures__/v-next/outputv4/google/api/expr/v1alpha1/syntax.ts +++ b/__fixtures__/v-next/outputv4/google/api/expr/v1alpha1/syntax.ts @@ -4,6 +4,7 @@ import { Timestamp, TimestampSDKType } from "../../../protobuf/timestamp.js"; import { BinaryReader, BinaryWriter } from "../../../../binary.js"; import { isSet, DeepPartial, toTimestamp, fromTimestamp, bytesFromBase64, base64FromBytes, isObject } from "../../../../helpers.js"; import { JsonSafe } from "../../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "google.api.expr.v1alpha1"; /** An expression together with source information as returned by the parser. */ export interface ParsedExpr { @@ -12,6 +13,10 @@ export interface ParsedExpr { /** The source info derived from input that generated the parsed `expr`. */ sourceInfo?: SourceInfo; } +export interface ReactiveParsedExpr { + expr?: ComputedRef; + sourceInfo?: ComputedRef; +} export interface ParsedExprProtoMsg { typeUrl: "/google.api.expr.v1alpha1.ParsedExpr"; value: Uint8Array; @@ -60,6 +65,16 @@ export interface Expr { /** A comprehension expression. */ comprehensionExpr?: Expr_Comprehension; } +export interface ReactiveExpr { + id: ComputedRef; + constExpr?: ComputedRef; + identExpr?: ComputedRef; + selectExpr?: ComputedRef; + callExpr?: ComputedRef; + listExpr?: ComputedRef; + structExpr?: ComputedRef; + comprehensionExpr?: ComputedRef; +} export interface ExprProtoMsg { typeUrl: "/google.api.expr.v1alpha1.Expr"; value: Uint8Array; @@ -101,6 +116,9 @@ export interface Expr_Ident { */ name: string; } +export interface ReactiveExpr_Ident { + name: ComputedRef; +} export interface Expr_IdentProtoMsg { typeUrl: "/google.api.expr.v1alpha1.Ident"; value: Uint8Array; @@ -132,6 +150,11 @@ export interface Expr_Select { */ testOnly: boolean; } +export interface ReactiveExpr_Select { + operand?: ComputedRef; + field: ComputedRef; + testOnly: ComputedRef; +} export interface Expr_SelectProtoMsg { typeUrl: "/google.api.expr.v1alpha1.Select"; value: Uint8Array; @@ -158,6 +181,11 @@ export interface Expr_Call { /** The arguments. */ args: Expr[]; } +export interface ReactiveExpr_Call { + target?: ComputedRef; + function: ComputedRef; + args: ComputedRef; +} export interface Expr_CallProtoMsg { typeUrl: "/google.api.expr.v1alpha1.Call"; value: Uint8Array; @@ -182,6 +210,9 @@ export interface Expr_CreateList { /** The elements part of the list. */ elements: Expr[]; } +export interface ReactiveExpr_CreateList { + elements: ComputedRef; +} export interface Expr_CreateListProtoMsg { typeUrl: "/google.api.expr.v1alpha1.CreateList"; value: Uint8Array; @@ -211,6 +242,10 @@ export interface Expr_CreateStruct { /** The entries in the creation expression. */ entries: Expr_CreateStruct_Entry[]; } +export interface ReactiveExpr_CreateStruct { + messageName: ComputedRef; + entries: ComputedRef; +} export interface Expr_CreateStructProtoMsg { typeUrl: "/google.api.expr.v1alpha1.CreateStruct"; value: Uint8Array; @@ -241,6 +276,12 @@ export interface Expr_CreateStruct_Entry { /** Required. The value assigned to the key. */ value?: Expr; } +export interface ReactiveExpr_CreateStruct_Entry { + id: ComputedRef; + fieldKey?: ComputedRef; + mapKey?: ComputedRef; + value?: ComputedRef; +} export interface Expr_CreateStruct_EntryProtoMsg { typeUrl: "/google.api.expr.v1alpha1.Entry"; value: Uint8Array; @@ -309,6 +350,15 @@ export interface Expr_Comprehension { */ result?: Expr; } +export interface ReactiveExpr_Comprehension { + iterVar: ComputedRef; + iterRange?: ComputedRef; + accuVar: ComputedRef; + accuInit?: ComputedRef; + loopCondition?: ComputedRef; + loopStep?: ComputedRef; + result?: ComputedRef; +} export interface Expr_ComprehensionProtoMsg { typeUrl: "/google.api.expr.v1alpha1.Comprehension"; value: Uint8Array; @@ -395,6 +445,17 @@ export interface Constant { /** @deprecated */ timestampValue?: Date; } +export interface ReactiveConstant { + nullValue?: ComputedRef; + boolValue?: ComputedRef; + int64Value?: ComputedRef; + uint64Value?: ComputedRef; + doubleValue?: ComputedRef; + stringValue?: ComputedRef; + bytesValue?: ComputedRef; + durationValue?: ComputedRef; + timestampValue?: ComputedRef; +} export interface ConstantProtoMsg { typeUrl: "/google.api.expr.v1alpha1.Constant"; value: Uint8Array; @@ -431,6 +492,10 @@ export interface SourceInfo_PositionsEntry { key: bigint; value: number; } +export interface ReactiveSourceInfo_PositionsEntry { + key: ComputedRef; + value: ComputedRef; +} export interface SourceInfo_PositionsEntryProtoMsg { typeUrl: string; value: Uint8Array; @@ -443,6 +508,10 @@ export interface SourceInfo_MacroCallsEntry { key: bigint; value?: Expr; } +export interface ReactiveSourceInfo_MacroCallsEntry { + key: ComputedRef; + value?: ComputedRef; +} export interface SourceInfo_MacroCallsEntryProtoMsg { typeUrl: string; value: Uint8Array; @@ -493,6 +562,17 @@ export interface SourceInfo { [key: bigint]: Expr; }; } +export interface ReactiveSourceInfo { + syntaxVersion: ComputedRef; + location: ComputedRef; + lineOffsets: ComputedRef; + positions: ComputedRef<{ + [key: bigint]: number; + }>; + macroCalls: ComputedRef<{ + [key: bigint]: Expr; + }>; +} export interface SourceInfoProtoMsg { typeUrl: "/google.api.expr.v1alpha1.SourceInfo"; value: Uint8Array; @@ -526,6 +606,12 @@ export interface SourcePosition { */ column: number; } +export interface ReactiveSourcePosition { + location: ComputedRef; + offset: ComputedRef; + line: ComputedRef; + column: ComputedRef; +} export interface SourcePositionProtoMsg { typeUrl: "/google.api.expr.v1alpha1.SourcePosition"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/google/api/expr/v1alpha1/value.ts b/__fixtures__/v-next/outputv4/google/api/expr/v1alpha1/value.ts index f6a2b19c5c..3bd8fdfce1 100644 --- a/__fixtures__/v-next/outputv4/google/api/expr/v1alpha1/value.ts +++ b/__fixtures__/v-next/outputv4/google/api/expr/v1alpha1/value.ts @@ -3,6 +3,7 @@ import { Any, AnySDKType } from "../../../protobuf/any.js"; import { BinaryReader, BinaryWriter } from "../../../../binary.js"; import { isSet, bytesFromBase64, base64FromBytes, DeepPartial } from "../../../../helpers.js"; import { JsonSafe } from "../../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "google.api.expr.v1alpha1"; /** * Represents a CEL value. @@ -36,6 +37,20 @@ export interface Value { /** Type value. */ typeValue?: string; } +export interface ReactiveValue { + nullValue?: ComputedRef; + boolValue?: ComputedRef; + int64Value?: ComputedRef; + uint64Value?: ComputedRef; + doubleValue?: ComputedRef; + stringValue?: ComputedRef; + bytesValue?: ComputedRef; + enumValue?: ComputedRef; + objectValue?: ComputedRef; + mapValue?: ComputedRef; + listValue?: ComputedRef; + typeValue?: ComputedRef; +} export interface ValueProtoMsg { typeUrl: "/google.api.expr.v1alpha1.Value"; value: Uint8Array; @@ -67,6 +82,10 @@ export interface EnumValue { /** The value of the enum. */ value: number; } +export interface ReactiveEnumValue { + type: ComputedRef; + value: ComputedRef; +} export interface EnumValueProtoMsg { typeUrl: "/google.api.expr.v1alpha1.EnumValue"; value: Uint8Array; @@ -86,6 +105,9 @@ export interface ListValue { /** The ordered values in the list. */ values: Value[]; } +export interface ReactiveListValue { + values: ComputedRef; +} export interface ListValueProtoMsg { typeUrl: "/google.api.expr.v1alpha1.ListValue"; value: Uint8Array; @@ -114,6 +136,9 @@ export interface MapValue { */ entries: MapValue_Entry[]; } +export interface ReactiveMapValue { + entries: ComputedRef; +} export interface MapValueProtoMsg { typeUrl: "/google.api.expr.v1alpha1.MapValue"; value: Uint8Array; @@ -139,6 +164,10 @@ export interface MapValue_Entry { /** The value. */ value?: Value; } +export interface ReactiveMapValue_Entry { + key?: ComputedRef; + value?: ComputedRef; +} export interface MapValue_EntryProtoMsg { typeUrl: "/google.api.expr.v1alpha1.Entry"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/google/api/expr/v1beta1/decl.ts b/__fixtures__/v-next/outputv4/google/api/expr/v1beta1/decl.ts index 441dd94c7d..707f4a5528 100644 --- a/__fixtures__/v-next/outputv4/google/api/expr/v1beta1/decl.ts +++ b/__fixtures__/v-next/outputv4/google/api/expr/v1beta1/decl.ts @@ -2,6 +2,7 @@ import { Expr, ExprSDKType } from "./expr.js"; import { BinaryReader, BinaryWriter } from "../../../../binary.js"; import { isSet, DeepPartial } from "../../../../helpers.js"; import { JsonSafe } from "../../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "google.api.expr.v1beta1"; /** A declaration. */ export interface Decl { @@ -16,6 +17,13 @@ export interface Decl { /** A function declaration. */ function?: FunctionDecl; } +export interface ReactiveDecl { + id: ComputedRef; + name: ComputedRef; + doc: ComputedRef; + ident?: ComputedRef; + function?: ComputedRef; +} export interface DeclProtoMsg { typeUrl: "/google.api.expr.v1beta1.Decl"; value: Uint8Array; @@ -45,6 +53,11 @@ export interface DeclType { */ typeParams: DeclType[]; } +export interface ReactiveDeclType { + id: ComputedRef; + type: ComputedRef; + typeParams: ComputedRef; +} export interface DeclTypeProtoMsg { typeUrl: "/google.api.expr.v1beta1.DeclType"; value: Uint8Array; @@ -67,6 +80,10 @@ export interface IdentDecl { /** Optional value of the identifier. */ value?: Expr; } +export interface ReactiveIdentDecl { + type?: ComputedRef; + value?: ComputedRef; +} export interface IdentDeclProtoMsg { typeUrl: "/google.api.expr.v1beta1.IdentDecl"; value: Uint8Array; @@ -85,6 +102,11 @@ export interface FunctionDecl { /** If the first argument of the function is the receiver. */ receiverFunction: boolean; } +export interface ReactiveFunctionDecl { + args: ComputedRef; + returnType?: ComputedRef; + receiverFunction: ComputedRef; +} export interface FunctionDeclProtoMsg { typeUrl: "/google.api.expr.v1beta1.FunctionDecl"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/google/api/expr/v1beta1/eval.ts b/__fixtures__/v-next/outputv4/google/api/expr/v1beta1/eval.ts index f3d7fa3abf..e0fcd595f7 100644 --- a/__fixtures__/v-next/outputv4/google/api/expr/v1beta1/eval.ts +++ b/__fixtures__/v-next/outputv4/google/api/expr/v1beta1/eval.ts @@ -3,6 +3,7 @@ import { Status, StatusSDKType } from "../../../rpc/status.js"; import { BinaryReader, BinaryWriter } from "../../../../binary.js"; import { JsonSafe } from "../../../../json-safe.js"; import { DeepPartial, isSet } from "../../../../helpers.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "google.api.expr.v1beta1"; /** * The state of an evaluation. @@ -20,6 +21,10 @@ export interface EvalState { */ results: EvalState_Result[]; } +export interface ReactiveEvalState { + values: ComputedRef; + results: ComputedRef; +} export interface EvalStateProtoMsg { typeUrl: "/google.api.expr.v1beta1.EvalState"; value: Uint8Array; @@ -40,6 +45,10 @@ export interface EvalState_Result { /** The index in `values` of the resulting value. */ value: number; } +export interface ReactiveEvalState_Result { + expr?: ComputedRef; + value: ComputedRef; +} export interface EvalState_ResultProtoMsg { typeUrl: "/google.api.expr.v1beta1.Result"; value: Uint8Array; @@ -100,6 +109,11 @@ export interface ExprValue { */ unknown?: UnknownSet; } +export interface ReactiveExprValue { + value?: ComputedRef; + error?: ComputedRef; + unknown?: ComputedRef; +} export interface ExprValueProtoMsg { typeUrl: "/google.api.expr.v1beta1.ExprValue"; value: Uint8Array; @@ -119,6 +133,9 @@ export interface ErrorSet { /** The errors in the set. */ errors: Status[]; } +export interface ReactiveErrorSet { + errors: ComputedRef; +} export interface ErrorSetProtoMsg { typeUrl: "/google.api.expr.v1beta1.ErrorSet"; value: Uint8Array; @@ -140,6 +157,9 @@ export interface UnknownSet { /** The ids of the expressions with unknown values. */ exprs: IdRef[]; } +export interface ReactiveUnknownSet { + exprs: ComputedRef; +} export interface UnknownSetProtoMsg { typeUrl: "/google.api.expr.v1beta1.UnknownSet"; value: Uint8Array; @@ -157,6 +177,9 @@ export interface IdRef { /** The expression id. */ id: number; } +export interface ReactiveIdRef { + id: ComputedRef; +} export interface IdRefProtoMsg { typeUrl: "/google.api.expr.v1beta1.IdRef"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/google/api/expr/v1beta1/expr.ts b/__fixtures__/v-next/outputv4/google/api/expr/v1beta1/expr.ts index 387732b235..fce5f05861 100644 --- a/__fixtures__/v-next/outputv4/google/api/expr/v1beta1/expr.ts +++ b/__fixtures__/v-next/outputv4/google/api/expr/v1beta1/expr.ts @@ -3,6 +3,7 @@ import { NullValue, NullValueSDKType, nullValueFromJSON, nullValueToJSON } from import { BinaryReader, BinaryWriter } from "../../../../binary.js"; import { isSet, DeepPartial, bytesFromBase64, base64FromBytes } from "../../../../helpers.js"; import { JsonSafe } from "../../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "google.api.expr.v1beta1"; /** An expression together with source information as returned by the parser. */ export interface ParsedExpr { @@ -13,6 +14,11 @@ export interface ParsedExpr { /** The syntax version of the source, e.g. `cel1`. */ syntaxVersion: string; } +export interface ReactiveParsedExpr { + expr?: ComputedRef; + sourceInfo?: ComputedRef; + syntaxVersion: ComputedRef; +} export interface ParsedExprProtoMsg { typeUrl: "/google.api.expr.v1beta1.ParsedExpr"; value: Uint8Array; @@ -62,6 +68,16 @@ export interface Expr { /** A comprehension expression. */ comprehensionExpr?: Expr_Comprehension; } +export interface ReactiveExpr { + id: ComputedRef; + literalExpr?: ComputedRef; + identExpr?: ComputedRef; + selectExpr?: ComputedRef; + callExpr?: ComputedRef; + listExpr?: ComputedRef; + structExpr?: ComputedRef; + comprehensionExpr?: ComputedRef; +} export interface ExprProtoMsg { typeUrl: "/google.api.expr.v1beta1.Expr"; value: Uint8Array; @@ -103,6 +119,9 @@ export interface Expr_Ident { */ name: string; } +export interface ReactiveExpr_Ident { + name: ComputedRef; +} export interface Expr_IdentProtoMsg { typeUrl: "/google.api.expr.v1beta1.Ident"; value: Uint8Array; @@ -134,6 +153,11 @@ export interface Expr_Select { */ testOnly: boolean; } +export interface ReactiveExpr_Select { + operand?: ComputedRef; + field: ComputedRef; + testOnly: ComputedRef; +} export interface Expr_SelectProtoMsg { typeUrl: "/google.api.expr.v1beta1.Select"; value: Uint8Array; @@ -160,6 +184,11 @@ export interface Expr_Call { /** The arguments. */ args: Expr[]; } +export interface ReactiveExpr_Call { + target?: ComputedRef; + function: ComputedRef; + args: ComputedRef; +} export interface Expr_CallProtoMsg { typeUrl: "/google.api.expr.v1beta1.Call"; value: Uint8Array; @@ -184,6 +213,9 @@ export interface Expr_CreateList { /** The elements part of the list. */ elements: Expr[]; } +export interface ReactiveExpr_CreateList { + elements: ComputedRef; +} export interface Expr_CreateListProtoMsg { typeUrl: "/google.api.expr.v1beta1.CreateList"; value: Uint8Array; @@ -213,6 +245,10 @@ export interface Expr_CreateStruct { /** The entries in the creation expression. */ entries: Expr_CreateStruct_Entry[]; } +export interface ReactiveExpr_CreateStruct { + type: ComputedRef; + entries: ComputedRef; +} export interface Expr_CreateStructProtoMsg { typeUrl: "/google.api.expr.v1beta1.CreateStruct"; value: Uint8Array; @@ -243,6 +279,12 @@ export interface Expr_CreateStruct_Entry { /** Required. The value assigned to the key. */ value?: Expr; } +export interface ReactiveExpr_CreateStruct_Entry { + id: ComputedRef; + fieldKey?: ComputedRef; + mapKey?: ComputedRef; + value?: ComputedRef; +} export interface Expr_CreateStruct_EntryProtoMsg { typeUrl: "/google.api.expr.v1beta1.Entry"; value: Uint8Array; @@ -311,6 +353,15 @@ export interface Expr_Comprehension { */ result?: Expr; } +export interface ReactiveExpr_Comprehension { + iterVar: ComputedRef; + iterRange?: ComputedRef; + accuVar: ComputedRef; + accuInit?: ComputedRef; + loopCondition?: ComputedRef; + loopStep?: ComputedRef; + result?: ComputedRef; +} export interface Expr_ComprehensionProtoMsg { typeUrl: "/google.api.expr.v1beta1.Comprehension"; value: Uint8Array; @@ -381,6 +432,15 @@ export interface Literal { /** bytes value. */ bytesValue?: Uint8Array; } +export interface ReactiveLiteral { + nullValue?: ComputedRef; + boolValue?: ComputedRef; + int64Value?: ComputedRef; + uint64Value?: ComputedRef; + doubleValue?: ComputedRef; + stringValue?: ComputedRef; + bytesValue?: ComputedRef; +} export interface LiteralProtoMsg { typeUrl: "/google.api.expr.v1beta1.Literal"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/google/api/expr/v1beta1/source.ts b/__fixtures__/v-next/outputv4/google/api/expr/v1beta1/source.ts index ec052b5a2f..3413e46fb6 100644 --- a/__fixtures__/v-next/outputv4/google/api/expr/v1beta1/source.ts +++ b/__fixtures__/v-next/outputv4/google/api/expr/v1beta1/source.ts @@ -1,11 +1,16 @@ import { BinaryReader, BinaryWriter } from "../../../../binary.js"; import { isSet, DeepPartial, isObject } from "../../../../helpers.js"; import { JsonSafe } from "../../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "google.api.expr.v1beta1"; export interface SourceInfo_PositionsEntry { key: number; value: number; } +export interface ReactiveSourceInfo_PositionsEntry { + key: ComputedRef; + value: ComputedRef; +} export interface SourceInfo_PositionsEntryProtoMsg { typeUrl: string; value: Uint8Array; @@ -40,6 +45,13 @@ export interface SourceInfo { [key: number]: number; }; } +export interface ReactiveSourceInfo { + location: ComputedRef; + lineOffsets: ComputedRef; + positions: ComputedRef<{ + [key: number]: number; + }>; +} export interface SourceInfoProtoMsg { typeUrl: "/google.api.expr.v1beta1.SourceInfo"; value: Uint8Array; @@ -69,6 +81,12 @@ export interface SourcePosition { */ column: number; } +export interface ReactiveSourcePosition { + location: ComputedRef; + offset: ComputedRef; + line: ComputedRef; + column: ComputedRef; +} export interface SourcePositionProtoMsg { typeUrl: "/google.api.expr.v1beta1.SourcePosition"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/google/api/expr/v1beta1/value.ts b/__fixtures__/v-next/outputv4/google/api/expr/v1beta1/value.ts index 4eaa31c41e..057be9e3fb 100644 --- a/__fixtures__/v-next/outputv4/google/api/expr/v1beta1/value.ts +++ b/__fixtures__/v-next/outputv4/google/api/expr/v1beta1/value.ts @@ -3,6 +3,7 @@ import { Any, AnySDKType } from "../../../protobuf/any.js"; import { BinaryReader, BinaryWriter } from "../../../../binary.js"; import { isSet, bytesFromBase64, base64FromBytes, DeepPartial } from "../../../../helpers.js"; import { JsonSafe } from "../../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "google.api.expr.v1beta1"; /** * Represents a CEL value. @@ -36,6 +37,20 @@ export interface Value { /** A Type value represented by the fully qualified name of the type. */ typeValue?: string; } +export interface ReactiveValue { + nullValue?: ComputedRef; + boolValue?: ComputedRef; + int64Value?: ComputedRef; + uint64Value?: ComputedRef; + doubleValue?: ComputedRef; + stringValue?: ComputedRef; + bytesValue?: ComputedRef; + enumValue?: ComputedRef; + objectValue?: ComputedRef; + mapValue?: ComputedRef; + listValue?: ComputedRef; + typeValue?: ComputedRef; +} export interface ValueProtoMsg { typeUrl: "/google.api.expr.v1beta1.Value"; value: Uint8Array; @@ -67,6 +82,10 @@ export interface EnumValue { /** The value of the enum. */ value: number; } +export interface ReactiveEnumValue { + type: ComputedRef; + value: ComputedRef; +} export interface EnumValueProtoMsg { typeUrl: "/google.api.expr.v1beta1.EnumValue"; value: Uint8Array; @@ -86,6 +105,9 @@ export interface ListValue { /** The ordered values in the list. */ values: Value[]; } +export interface ReactiveListValue { + values: ComputedRef; +} export interface ListValueProtoMsg { typeUrl: "/google.api.expr.v1beta1.ListValue"; value: Uint8Array; @@ -114,6 +136,9 @@ export interface MapValue { */ entries: MapValue_Entry[]; } +export interface ReactiveMapValue { + entries: ComputedRef; +} export interface MapValueProtoMsg { typeUrl: "/google.api.expr.v1beta1.MapValue"; value: Uint8Array; @@ -139,6 +164,10 @@ export interface MapValue_Entry { /** The value. */ value?: Value; } +export interface ReactiveMapValue_Entry { + key?: ComputedRef; + value?: ComputedRef; +} export interface MapValue_EntryProtoMsg { typeUrl: "/google.api.expr.v1beta1.Entry"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/google/api/field_behavior.ts b/__fixtures__/v-next/outputv4/google/api/field_behavior.ts index 15b1a8e1b6..0dce0875aa 100644 --- a/__fixtures__/v-next/outputv4/google/api/field_behavior.ts +++ b/__fixtures__/v-next/outputv4/google/api/field_behavior.ts @@ -1,3 +1,4 @@ +import { ComputedRef } from "vue"; export const protobufPackage = "google.api"; /** * An indicator of the behavior of a given field (for example, that a field diff --git a/__fixtures__/v-next/outputv4/google/api/http.ts b/__fixtures__/v-next/outputv4/google/api/http.ts index f964e4d912..ff3c72a6cb 100644 --- a/__fixtures__/v-next/outputv4/google/api/http.ts +++ b/__fixtures__/v-next/outputv4/google/api/http.ts @@ -1,6 +1,7 @@ import { BinaryReader, BinaryWriter } from "../../binary.js"; import { isSet, DeepPartial } from "../../helpers.js"; import { JsonSafe } from "../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "google.api"; /** * Defines the HTTP configuration for an API service. It contains a list of @@ -24,6 +25,10 @@ export interface Http { */ fullyDecodeReservedExpansion: boolean; } +export interface ReactiveHttp { + rules: ComputedRef; + fullyDecodeReservedExpansion: ComputedRef; +} export interface HttpProtoMsg { typeUrl: "/google.api.Http"; value: Uint8Array; @@ -360,6 +365,18 @@ export interface HttpRule { */ additionalBindings: HttpRule[]; } +export interface ReactiveHttpRule { + selector: ComputedRef; + get?: ComputedRef; + put?: ComputedRef; + post?: ComputedRef; + delete?: ComputedRef; + patch?: ComputedRef; + custom?: ComputedRef; + body: ComputedRef; + responseBody: ComputedRef; + additionalBindings: ComputedRef; +} export interface HttpRuleProtoMsg { typeUrl: "/google.api.HttpRule"; value: Uint8Array; @@ -654,6 +671,10 @@ export interface CustomHttpPattern { /** The path matched by this custom verb. */ path: string; } +export interface ReactiveCustomHttpPattern { + kind: ComputedRef; + path: ComputedRef; +} export interface CustomHttpPatternProtoMsg { typeUrl: "/google.api.CustomHttpPattern"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/google/api/httpbody.ts b/__fixtures__/v-next/outputv4/google/api/httpbody.ts index d0e10f302b..91c880d3a0 100644 --- a/__fixtures__/v-next/outputv4/google/api/httpbody.ts +++ b/__fixtures__/v-next/outputv4/google/api/httpbody.ts @@ -2,6 +2,7 @@ import { Any, AnySDKType } from "../protobuf/any.js"; import { BinaryReader, BinaryWriter } from "../../binary.js"; import { isSet, bytesFromBase64, base64FromBytes, DeepPartial } from "../../helpers.js"; import { JsonSafe } from "../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "google.api"; /** * Message that represents an arbitrary HTTP body. It should only be used for @@ -59,6 +60,11 @@ export interface HttpBody { */ extensions: Any[]; } +export interface ReactiveHttpBody { + contentType: ComputedRef; + data: ComputedRef; + extensions: ComputedRef; +} export interface HttpBodyProtoMsg { typeUrl: "/google.api.HttpBody"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/google/api/label.ts b/__fixtures__/v-next/outputv4/google/api/label.ts index 806911edc5..54fb20b44a 100644 --- a/__fixtures__/v-next/outputv4/google/api/label.ts +++ b/__fixtures__/v-next/outputv4/google/api/label.ts @@ -1,6 +1,7 @@ import { BinaryReader, BinaryWriter } from "../../binary.js"; import { isSet, DeepPartial } from "../../helpers.js"; import { JsonSafe } from "../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "google.api"; /** Value types that can be used as label values. */ export enum LabelDescriptor_ValueType { @@ -52,6 +53,11 @@ export interface LabelDescriptor { /** A human-readable description for the label. */ description: string; } +export interface ReactiveLabelDescriptor { + key: ComputedRef; + valueType: ComputedRef; + description: ComputedRef; +} export interface LabelDescriptorProtoMsg { typeUrl: "/google.api.LabelDescriptor"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/google/api/launch_stage.ts b/__fixtures__/v-next/outputv4/google/api/launch_stage.ts index 6abb3525f3..94b721aaf0 100644 --- a/__fixtures__/v-next/outputv4/google/api/launch_stage.ts +++ b/__fixtures__/v-next/outputv4/google/api/launch_stage.ts @@ -1,3 +1,4 @@ +import { ComputedRef } from "vue"; export const protobufPackage = "google.api"; /** * The launch stage as defined by [Google Cloud Platform diff --git a/__fixtures__/v-next/outputv4/google/api/log.ts b/__fixtures__/v-next/outputv4/google/api/log.ts index f96c626293..14c3a8c63e 100644 --- a/__fixtures__/v-next/outputv4/google/api/log.ts +++ b/__fixtures__/v-next/outputv4/google/api/log.ts @@ -2,6 +2,7 @@ import { LabelDescriptor, LabelDescriptorSDKType } from "./label.js"; import { BinaryReader, BinaryWriter } from "../../binary.js"; import { isSet, DeepPartial } from "../../helpers.js"; import { JsonSafe } from "../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "google.api"; /** * A description of a log type. Example in YAML format: @@ -38,6 +39,12 @@ export interface LogDescriptor { */ displayName: string; } +export interface ReactiveLogDescriptor { + name: ComputedRef; + labels: ComputedRef; + description: ComputedRef; + displayName: ComputedRef; +} export interface LogDescriptorProtoMsg { typeUrl: "/google.api.LogDescriptor"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/google/api/logging.ts b/__fixtures__/v-next/outputv4/google/api/logging.ts index 52e42d32a6..f195a0c9c3 100644 --- a/__fixtures__/v-next/outputv4/google/api/logging.ts +++ b/__fixtures__/v-next/outputv4/google/api/logging.ts @@ -1,6 +1,7 @@ import { BinaryReader, BinaryWriter } from "../../binary.js"; import { JsonSafe } from "../../json-safe.js"; import { DeepPartial, isSet } from "../../helpers.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "google.api"; /** * Logging configuration of the service. @@ -49,6 +50,10 @@ export interface Logging { */ consumerDestinations: Logging_LoggingDestination[]; } +export interface ReactiveLogging { + producerDestinations: ComputedRef; + consumerDestinations: ComputedRef; +} export interface LoggingProtoMsg { typeUrl: "/google.api.Logging"; value: Uint8Array; @@ -106,6 +111,10 @@ export interface Logging_LoggingDestination { */ logs: string[]; } +export interface ReactiveLogging_LoggingDestination { + monitoredResource: ComputedRef; + logs: ComputedRef; +} export interface Logging_LoggingDestinationProtoMsg { typeUrl: "/google.api.LoggingDestination"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/google/api/metric.ts b/__fixtures__/v-next/outputv4/google/api/metric.ts index b146a9bd45..c6d0ddfec6 100644 --- a/__fixtures__/v-next/outputv4/google/api/metric.ts +++ b/__fixtures__/v-next/outputv4/google/api/metric.ts @@ -4,6 +4,7 @@ import { LabelDescriptor, LabelDescriptorSDKType } from "./label.js"; import { BinaryReader, BinaryWriter } from "../../binary.js"; import { isSet, DeepPartial, isObject } from "../../helpers.js"; import { JsonSafe } from "../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "google.api"; /** * The kind of measurement. It describes how the data is reported. @@ -303,6 +304,19 @@ export interface MetricDescriptor { */ monitoredResourceTypes: string[]; } +export interface ReactiveMetricDescriptor { + name: ComputedRef; + type: ComputedRef; + labels: ComputedRef; + metricKind: ComputedRef; + valueType: ComputedRef; + unit: ComputedRef; + description: ComputedRef; + displayName: ComputedRef; + metadata?: ComputedRef; + launchStage: ComputedRef; + monitoredResourceTypes: ComputedRef; +} export interface MetricDescriptorProtoMsg { typeUrl: "/google.api.MetricDescriptor"; value: Uint8Array; @@ -344,6 +358,11 @@ export interface MetricDescriptor_MetricDescriptorMetadata { */ ingestDelay?: Duration; } +export interface ReactiveMetricDescriptor_MetricDescriptorMetadata { + launchStage: ComputedRef; + samplePeriod?: ComputedRef; + ingestDelay?: ComputedRef; +} export interface MetricDescriptor_MetricDescriptorMetadataProtoMsg { typeUrl: "/google.api.MetricDescriptorMetadata"; value: Uint8Array; @@ -359,6 +378,10 @@ export interface Metric_LabelsEntry { key: string; value: string; } +export interface ReactiveMetric_LabelsEntry { + key: ComputedRef; + value: ComputedRef; +} export interface Metric_LabelsEntryProtoMsg { typeUrl: string; value: Uint8Array; @@ -385,6 +408,12 @@ export interface Metric { [key: string]: string; }; } +export interface ReactiveMetric { + type: ComputedRef; + labels: ComputedRef<{ + [key: string]: string; + }>; +} export interface MetricProtoMsg { typeUrl: "/google.api.Metric"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/google/api/monitored_resource.ts b/__fixtures__/v-next/outputv4/google/api/monitored_resource.ts index 145d16fdc8..bc5360735e 100644 --- a/__fixtures__/v-next/outputv4/google/api/monitored_resource.ts +++ b/__fixtures__/v-next/outputv4/google/api/monitored_resource.ts @@ -4,6 +4,7 @@ import { Struct, StructSDKType } from "../protobuf/struct.js"; import { BinaryReader, BinaryWriter } from "../../binary.js"; import { isSet, DeepPartial, isObject } from "../../helpers.js"; import { JsonSafe } from "../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "google.api"; /** * An object that describes the schema of a [MonitoredResource][google.api.MonitoredResource] object using a @@ -52,6 +53,14 @@ export interface MonitoredResourceDescriptor { /** Optional. The launch stage of the monitored resource definition. */ launchStage: LaunchStage; } +export interface ReactiveMonitoredResourceDescriptor { + name: ComputedRef; + type: ComputedRef; + displayName: ComputedRef; + description: ComputedRef; + labels: ComputedRef; + launchStage: ComputedRef; +} export interface MonitoredResourceDescriptorProtoMsg { typeUrl: "/google.api.MonitoredResourceDescriptor"; value: Uint8Array; @@ -79,6 +88,10 @@ export interface MonitoredResource_LabelsEntry { key: string; value: string; } +export interface ReactiveMonitoredResource_LabelsEntry { + key: ComputedRef; + value: ComputedRef; +} export interface MonitoredResource_LabelsEntryProtoMsg { typeUrl: string; value: Uint8Array; @@ -118,6 +131,12 @@ export interface MonitoredResource { [key: string]: string; }; } +export interface ReactiveMonitoredResource { + type: ComputedRef; + labels: ComputedRef<{ + [key: string]: string; + }>; +} export interface MonitoredResourceProtoMsg { typeUrl: "/google.api.MonitoredResource"; value: Uint8Array; @@ -147,6 +166,10 @@ export interface MonitoredResourceMetadata_UserLabelsEntry { key: string; value: string; } +export interface ReactiveMonitoredResourceMetadata_UserLabelsEntry { + key: ComputedRef; + value: ComputedRef; +} export interface MonitoredResourceMetadata_UserLabelsEntryProtoMsg { typeUrl: string; value: Uint8Array; @@ -182,6 +205,12 @@ export interface MonitoredResourceMetadata { [key: string]: string; }; } +export interface ReactiveMonitoredResourceMetadata { + systemLabels?: ComputedRef; + userLabels: ComputedRef<{ + [key: string]: string; + }>; +} export interface MonitoredResourceMetadataProtoMsg { typeUrl: "/google.api.MonitoredResourceMetadata"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/google/api/monitoring.ts b/__fixtures__/v-next/outputv4/google/api/monitoring.ts index 8c498f9aab..9d71026cfc 100644 --- a/__fixtures__/v-next/outputv4/google/api/monitoring.ts +++ b/__fixtures__/v-next/outputv4/google/api/monitoring.ts @@ -1,6 +1,7 @@ import { BinaryReader, BinaryWriter } from "../../binary.js"; import { JsonSafe } from "../../json-safe.js"; import { DeepPartial, isSet } from "../../helpers.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "google.api"; /** * Monitoring configuration of the service. @@ -76,6 +77,10 @@ export interface Monitoring { */ consumerDestinations: Monitoring_MonitoringDestination[]; } +export interface ReactiveMonitoring { + producerDestinations: ComputedRef; + consumerDestinations: ComputedRef; +} export interface MonitoringProtoMsg { typeUrl: "/google.api.Monitoring"; value: Uint8Array; @@ -154,6 +159,10 @@ export interface Monitoring_MonitoringDestination { */ metrics: string[]; } +export interface ReactiveMonitoring_MonitoringDestination { + monitoredResource: ComputedRef; + metrics: ComputedRef; +} export interface Monitoring_MonitoringDestinationProtoMsg { typeUrl: "/google.api.MonitoringDestination"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/google/api/quota.ts b/__fixtures__/v-next/outputv4/google/api/quota.ts index fff33aa53e..069010042e 100644 --- a/__fixtures__/v-next/outputv4/google/api/quota.ts +++ b/__fixtures__/v-next/outputv4/google/api/quota.ts @@ -1,6 +1,7 @@ import { BinaryReader, BinaryWriter } from "../../binary.js"; import { JsonSafe } from "../../json-safe.js"; import { DeepPartial, isSet, isObject } from "../../helpers.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "google.api"; /** * Quota configuration helps to achieve fairness and budgeting in service @@ -62,6 +63,10 @@ export interface Quota { */ metricRules: MetricRule[]; } +export interface ReactiveQuota { + limits: ComputedRef; + metricRules: ComputedRef; +} export interface QuotaProtoMsg { typeUrl: "/google.api.Quota"; value: Uint8Array; @@ -125,6 +130,10 @@ export interface MetricRule_MetricCostsEntry { key: string; value: bigint; } +export interface ReactiveMetricRule_MetricCostsEntry { + key: ComputedRef; + value: ComputedRef; +} export interface MetricRule_MetricCostsEntryProtoMsg { typeUrl: string; value: Uint8Array; @@ -156,6 +165,12 @@ export interface MetricRule { [key: string]: bigint; }; } +export interface ReactiveMetricRule { + selector: ComputedRef; + metricCosts: ComputedRef<{ + [key: string]: bigint; + }>; +} export interface MetricRuleProtoMsg { typeUrl: "/google.api.MetricRule"; value: Uint8Array; @@ -174,6 +189,10 @@ export interface QuotaLimit_ValuesEntry { key: string; value: bigint; } +export interface ReactiveQuotaLimit_ValuesEntry { + key: ComputedRef; + value: ComputedRef; +} export interface QuotaLimit_ValuesEntryProtoMsg { typeUrl: string; value: Uint8Array; @@ -279,6 +298,20 @@ export interface QuotaLimit { */ displayName: string; } +export interface ReactiveQuotaLimit { + name: ComputedRef; + description: ComputedRef; + defaultLimit: ComputedRef; + maxLimit: ComputedRef; + freeTier: ComputedRef; + duration: ComputedRef; + metric: ComputedRef; + unit: ComputedRef; + values: ComputedRef<{ + [key: string]: bigint; + }>; + displayName: ComputedRef; +} export interface QuotaLimitProtoMsg { typeUrl: "/google.api.QuotaLimit"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/google/api/resource.ts b/__fixtures__/v-next/outputv4/google/api/resource.ts index 81b8db510d..36ee0f2406 100644 --- a/__fixtures__/v-next/outputv4/google/api/resource.ts +++ b/__fixtures__/v-next/outputv4/google/api/resource.ts @@ -1,6 +1,7 @@ import { BinaryReader, BinaryWriter } from "../../binary.js"; import { isSet, DeepPartial } from "../../helpers.js"; import { JsonSafe } from "../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "google.api"; /** * A description of the historical or future-looking state of the @@ -228,6 +229,15 @@ export interface ResourceDescriptor { */ style: ResourceDescriptor_Style[]; } +export interface ReactiveResourceDescriptor { + type: ComputedRef; + pattern: ComputedRef; + nameField: ComputedRef; + history: ComputedRef; + plural: ComputedRef; + singular: ComputedRef; + style: ComputedRef; +} export interface ResourceDescriptorProtoMsg { typeUrl: "/google.api.ResourceDescriptor"; value: Uint8Array; @@ -333,6 +343,10 @@ export interface ResourceReference { */ childType: string; } +export interface ReactiveResourceReference { + type: ComputedRef; + childType: ComputedRef; +} export interface ResourceReferenceProtoMsg { typeUrl: "/google.api.ResourceReference"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/google/api/routing.ts b/__fixtures__/v-next/outputv4/google/api/routing.ts index d86d2e3190..e1aeee75d6 100644 --- a/__fixtures__/v-next/outputv4/google/api/routing.ts +++ b/__fixtures__/v-next/outputv4/google/api/routing.ts @@ -1,6 +1,7 @@ import { BinaryReader, BinaryWriter } from "../../binary.js"; import { JsonSafe } from "../../json-safe.js"; import { DeepPartial, isSet } from "../../helpers.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "google.api"; /** * Specifies the routing information that should be sent along with the request @@ -374,6 +375,9 @@ export interface RoutingRule { */ routingParameters: RoutingParameter[]; } +export interface ReactiveRoutingRule { + routingParameters: ComputedRef; +} export interface RoutingRuleProtoMsg { typeUrl: "/google.api.RoutingRule"; value: Uint8Array; @@ -804,6 +808,10 @@ export interface RoutingParameter { */ pathTemplate: string; } +export interface ReactiveRoutingParameter { + field: ComputedRef; + pathTemplate: ComputedRef; +} export interface RoutingParameterProtoMsg { typeUrl: "/google.api.RoutingParameter"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/google/api/service.ts b/__fixtures__/v-next/outputv4/google/api/service.ts index 61c5acb193..d859cb2bc3 100644 --- a/__fixtures__/v-next/outputv4/google/api/service.ts +++ b/__fixtures__/v-next/outputv4/google/api/service.ts @@ -21,6 +21,7 @@ import { UInt32Value, UInt32ValueSDKType } from "../protobuf/wrappers.js"; import { BinaryReader, BinaryWriter } from "../../binary.js"; import { isSet, DeepPartial } from "../../helpers.js"; import { JsonSafe } from "../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "google.api"; /** * `Service` is the root object of Google service configuration schema. It @@ -144,6 +145,33 @@ export interface Service { /** @deprecated */ configVersion?: UInt32Value; } +export interface ReactiveService { + name: ComputedRef; + title: ComputedRef; + producerProjectId: ComputedRef; + id: ComputedRef; + apis: ComputedRef; + types: ComputedRef; + enums: ComputedRef; + documentation?: ComputedRef; + backend?: ComputedRef; + http?: ComputedRef; + quota?: ComputedRef; + authentication?: ComputedRef; + context?: ComputedRef; + usage?: ComputedRef; + endpoints: ComputedRef; + control?: ComputedRef; + logs: ComputedRef; + metrics: ComputedRef; + monitoredResources: ComputedRef; + billing?: ComputedRef; + logging?: ComputedRef; + monitoring?: ComputedRef; + systemParameters?: ComputedRef; + sourceInfo?: ComputedRef; + configVersion?: ComputedRef; +} export interface ServiceProtoMsg { typeUrl: "/google.api.Service"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/google/api/servicecontrol/v1/check_error.ts b/__fixtures__/v-next/outputv4/google/api/servicecontrol/v1/check_error.ts index cb644474a6..501a5bd865 100644 --- a/__fixtures__/v-next/outputv4/google/api/servicecontrol/v1/check_error.ts +++ b/__fixtures__/v-next/outputv4/google/api/servicecontrol/v1/check_error.ts @@ -2,6 +2,7 @@ import { Status, StatusSDKType } from "../../../rpc/status.js"; import { BinaryReader, BinaryWriter } from "../../../../binary.js"; import { isSet, DeepPartial } from "../../../../helpers.js"; import { JsonSafe } from "../../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "google.api.servicecontrol.v1"; /** Error codes for Check responses. */ export enum CheckError_Code { @@ -216,6 +217,12 @@ export interface CheckError { */ status?: Status; } +export interface ReactiveCheckError { + code: ComputedRef; + subject: ComputedRef; + detail: ComputedRef; + status?: ComputedRef; +} export interface CheckErrorProtoMsg { typeUrl: "/google.api.servicecontrol.v1.CheckError"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/google/api/servicecontrol/v1/distribution.ts b/__fixtures__/v-next/outputv4/google/api/servicecontrol/v1/distribution.ts index 5e64cd199a..758c157f15 100644 --- a/__fixtures__/v-next/outputv4/google/api/servicecontrol/v1/distribution.ts +++ b/__fixtures__/v-next/outputv4/google/api/servicecontrol/v1/distribution.ts @@ -2,6 +2,7 @@ import { Distribution_Exemplar, Distribution_ExemplarSDKType } from "../../distr import { BinaryReader, BinaryWriter } from "../../../../binary.js"; import { isSet, DeepPartial } from "../../../../helpers.js"; import { JsonSafe } from "../../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "google.api.servicecontrol.v1"; /** * Distribution represents a frequency distribution of double-valued sample @@ -55,6 +56,18 @@ export interface Distribution { /** Example points. Must be in increasing order of `value` field. */ exemplars: Distribution_Exemplar[]; } +export interface ReactiveDistribution { + count: ComputedRef; + mean: ComputedRef; + minimum: ComputedRef; + maximum: ComputedRef; + sumOfSquaredDeviation: ComputedRef; + bucketCounts: ComputedRef; + linearBuckets?: ComputedRef; + exponentialBuckets?: ComputedRef; + explicitBuckets?: ComputedRef; + exemplars: ComputedRef; +} export interface DistributionProtoMsg { typeUrl: "/google.api.servicecontrol.v1.Distribution"; value: Uint8Array; @@ -103,6 +116,11 @@ export interface Distribution_LinearBuckets { */ offset: number; } +export interface ReactiveDistribution_LinearBuckets { + numFiniteBuckets: ComputedRef; + width: ComputedRef; + offset: ComputedRef; +} export interface Distribution_LinearBucketsProtoMsg { typeUrl: "/google.api.servicecontrol.v1.LinearBuckets"; value: Uint8Array; @@ -136,6 +154,11 @@ export interface Distribution_ExponentialBuckets { */ scale: number; } +export interface ReactiveDistribution_ExponentialBuckets { + numFiniteBuckets: ComputedRef; + growthFactor: ComputedRef; + scale: ComputedRef; +} export interface Distribution_ExponentialBucketsProtoMsg { typeUrl: "/google.api.servicecontrol.v1.ExponentialBuckets"; value: Uint8Array; @@ -167,6 +190,9 @@ export interface Distribution_ExplicitBuckets { */ bounds: number[]; } +export interface ReactiveDistribution_ExplicitBuckets { + bounds: ComputedRef; +} export interface Distribution_ExplicitBucketsProtoMsg { typeUrl: "/google.api.servicecontrol.v1.ExplicitBuckets"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/google/api/servicecontrol/v1/http_request.ts b/__fixtures__/v-next/outputv4/google/api/servicecontrol/v1/http_request.ts index 2c54f6b0db..e8f359e169 100644 --- a/__fixtures__/v-next/outputv4/google/api/servicecontrol/v1/http_request.ts +++ b/__fixtures__/v-next/outputv4/google/api/servicecontrol/v1/http_request.ts @@ -2,6 +2,7 @@ import { Duration, DurationSDKType } from "../../../protobuf/duration.js"; import { BinaryReader, BinaryWriter } from "../../../../binary.js"; import { isSet, DeepPartial } from "../../../../helpers.js"; import { JsonSafe } from "../../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "google.api.servicecontrol.v1"; /** * A common proto for logging HTTP requests. Only contains semantics @@ -80,6 +81,23 @@ export interface HttpRequest { /** Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket" */ protocol: string; } +export interface ReactiveHttpRequest { + requestMethod: ComputedRef; + requestUrl: ComputedRef; + requestSize: ComputedRef; + status: ComputedRef; + responseSize: ComputedRef; + userAgent: ComputedRef; + remoteIp: ComputedRef; + serverIp: ComputedRef; + referer: ComputedRef; + latency?: ComputedRef; + cacheLookup: ComputedRef; + cacheHit: ComputedRef; + cacheValidatedWithOriginServer: ComputedRef; + cacheFillBytes: ComputedRef; + protocol: ComputedRef; +} export interface HttpRequestProtoMsg { typeUrl: "/google.api.servicecontrol.v1.HttpRequest"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/google/api/servicecontrol/v1/log_entry.ts b/__fixtures__/v-next/outputv4/google/api/servicecontrol/v1/log_entry.ts index 8dfc555571..acaf0d57b0 100644 --- a/__fixtures__/v-next/outputv4/google/api/servicecontrol/v1/log_entry.ts +++ b/__fixtures__/v-next/outputv4/google/api/servicecontrol/v1/log_entry.ts @@ -6,11 +6,16 @@ import { Struct, StructSDKType } from "../../../protobuf/struct.js"; import { BinaryReader, BinaryWriter } from "../../../../binary.js"; import { isSet, DeepPartial, toTimestamp, fromTimestamp, isObject } from "../../../../helpers.js"; import { JsonSafe } from "../../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "google.api.servicecontrol.v1"; export interface LogEntry_LabelsEntry { key: string; value: string; } +export interface ReactiveLogEntry_LabelsEntry { + key: ComputedRef; + value: ComputedRef; +} export interface LogEntry_LabelsEntryProtoMsg { typeUrl: string; value: Uint8Array; @@ -84,6 +89,22 @@ export interface LogEntry { */ sourceLocation?: LogEntrySourceLocation; } +export interface ReactiveLogEntry { + name: ComputedRef; + timestamp?: ComputedRef; + severity: ComputedRef; + httpRequest?: ComputedRef; + trace: ComputedRef; + insertId: ComputedRef; + labels: ComputedRef<{ + [key: string]: string; + }>; + protoPayload?: ComputedRef; + textPayload?: ComputedRef; + structPayload?: ComputedRef; + operation?: ComputedRef; + sourceLocation?: ComputedRef; +} export interface LogEntryProtoMsg { typeUrl: "/google.api.servicecontrol.v1.LogEntry"; value: Uint8Array; @@ -126,6 +147,12 @@ export interface LogEntryOperation { /** Optional. Set this to True if this is the last log entry in the operation. */ last: boolean; } +export interface ReactiveLogEntryOperation { + id: ComputedRef; + producer: ComputedRef; + first: ComputedRef; + last: ComputedRef; +} export interface LogEntryOperationProtoMsg { typeUrl: "/google.api.servicecontrol.v1.LogEntryOperation"; value: Uint8Array; @@ -165,6 +192,11 @@ export interface LogEntrySourceLocation { */ function: string; } +export interface ReactiveLogEntrySourceLocation { + file: ComputedRef; + line: ComputedRef; + function: ComputedRef; +} export interface LogEntrySourceLocationProtoMsg { typeUrl: "/google.api.servicecontrol.v1.LogEntrySourceLocation"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/google/api/servicecontrol/v1/metric_value.ts b/__fixtures__/v-next/outputv4/google/api/servicecontrol/v1/metric_value.ts index 46230777df..2d942a6534 100644 --- a/__fixtures__/v-next/outputv4/google/api/servicecontrol/v1/metric_value.ts +++ b/__fixtures__/v-next/outputv4/google/api/servicecontrol/v1/metric_value.ts @@ -3,11 +3,16 @@ import { Distribution, DistributionSDKType } from "./distribution.js"; import { BinaryReader, BinaryWriter } from "../../../../binary.js"; import { isSet, DeepPartial, toTimestamp, fromTimestamp, isObject } from "../../../../helpers.js"; import { JsonSafe } from "../../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "google.api.servicecontrol.v1"; export interface MetricValue_LabelsEntry { key: string; value: string; } +export interface ReactiveMetricValue_LabelsEntry { + key: ComputedRef; + value: ComputedRef; +} export interface MetricValue_LabelsEntryProtoMsg { typeUrl: string; value: Uint8Array; @@ -52,6 +57,18 @@ export interface MetricValue { /** A distribution value. */ distributionValue?: Distribution; } +export interface ReactiveMetricValue { + labels: ComputedRef<{ + [key: string]: string; + }>; + startTime?: ComputedRef; + endTime?: ComputedRef; + boolValue?: ComputedRef; + int64Value?: ComputedRef; + doubleValue?: ComputedRef; + stringValue?: ComputedRef; + distributionValue?: ComputedRef; +} export interface MetricValueProtoMsg { typeUrl: "/google.api.servicecontrol.v1.MetricValue"; value: Uint8Array; @@ -80,6 +97,10 @@ export interface MetricValueSet { /** The values in this metric. */ metricValues: MetricValue[]; } +export interface ReactiveMetricValueSet { + metricName: ComputedRef; + metricValues: ComputedRef; +} export interface MetricValueSetProtoMsg { typeUrl: "/google.api.servicecontrol.v1.MetricValueSet"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/google/api/servicecontrol/v1/operation.ts b/__fixtures__/v-next/outputv4/google/api/servicecontrol/v1/operation.ts index 717d7008f3..2b7dd057c0 100644 --- a/__fixtures__/v-next/outputv4/google/api/servicecontrol/v1/operation.ts +++ b/__fixtures__/v-next/outputv4/google/api/servicecontrol/v1/operation.ts @@ -5,6 +5,7 @@ import { Any, AnySDKType } from "../../../protobuf/any.js"; import { BinaryReader, BinaryWriter } from "../../../../binary.js"; import { isSet, DeepPartial, toTimestamp, fromTimestamp, isObject } from "../../../../helpers.js"; import { JsonSafe } from "../../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "google.api.servicecontrol.v1"; /** Defines the importance of the data contained in the operation. */ export enum Operation_Importance { @@ -51,6 +52,10 @@ export interface Operation_LabelsEntry { key: string; value: string; } +export interface ReactiveOperation_LabelsEntry { + key: ComputedRef; + value: ComputedRef; +} export interface Operation_LabelsEntryProtoMsg { typeUrl: string; value: Uint8Array; @@ -141,6 +146,20 @@ export interface Operation { /** Unimplemented. */ extensions: Any[]; } +export interface ReactiveOperation { + operationId: ComputedRef; + operationName: ComputedRef; + consumerId: ComputedRef; + startTime?: ComputedRef; + endTime?: ComputedRef; + labels: ComputedRef<{ + [key: string]: string; + }>; + metricValueSets: ComputedRef; + logEntries: ComputedRef; + importance: ComputedRef; + extensions: ComputedRef; +} export interface OperationProtoMsg { typeUrl: "/google.api.servicecontrol.v1.Operation"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/google/api/servicecontrol/v1/quota_controller.ts b/__fixtures__/v-next/outputv4/google/api/servicecontrol/v1/quota_controller.ts index 70b2364f03..5c5f0572d8 100644 --- a/__fixtures__/v-next/outputv4/google/api/servicecontrol/v1/quota_controller.ts +++ b/__fixtures__/v-next/outputv4/google/api/servicecontrol/v1/quota_controller.ts @@ -3,6 +3,7 @@ import { Status, StatusSDKType } from "../../../rpc/status.js"; import { BinaryReader, BinaryWriter } from "../../../../binary.js"; import { isSet, DeepPartial, isObject } from "../../../../helpers.js"; import { JsonSafe } from "../../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "google.api.servicecontrol.v1"; /** Supported quota modes. */ export enum QuotaOperation_QuotaMode { @@ -190,6 +191,11 @@ export interface AllocateQuotaRequest { */ serviceConfigId: string; } +export interface ReactiveAllocateQuotaRequest { + serviceName: ComputedRef; + allocateOperation?: ComputedRef; + serviceConfigId: ComputedRef; +} export interface AllocateQuotaRequestProtoMsg { typeUrl: "/google.api.servicecontrol.v1.AllocateQuotaRequest"; value: Uint8Array; @@ -204,6 +210,10 @@ export interface QuotaOperation_LabelsEntry { key: string; value: string; } +export interface ReactiveQuotaOperation_LabelsEntry { + key: ComputedRef; + value: ComputedRef; +} export interface QuotaOperation_LabelsEntryProtoMsg { typeUrl: string; value: Uint8Array; @@ -271,6 +281,16 @@ export interface QuotaOperation { /** Quota mode for this operation. */ quotaMode: QuotaOperation_QuotaMode; } +export interface ReactiveQuotaOperation { + operationId: ComputedRef; + methodName: ComputedRef; + consumerId: ComputedRef; + labels: ComputedRef<{ + [key: string]: string; + }>; + quotaMetrics: ComputedRef; + quotaMode: ComputedRef; +} export interface QuotaOperationProtoMsg { typeUrl: "/google.api.servicecontrol.v1.QuotaOperation"; value: Uint8Array; @@ -311,6 +331,12 @@ export interface AllocateQuotaResponse { /** ID of the actual config used to process the request. */ serviceConfigId: string; } +export interface ReactiveAllocateQuotaResponse { + operationId: ComputedRef; + allocateErrors: ComputedRef; + quotaMetrics: ComputedRef; + serviceConfigId: ComputedRef; +} export interface AllocateQuotaResponseProtoMsg { typeUrl: "/google.api.servicecontrol.v1.AllocateQuotaResponse"; value: Uint8Array; @@ -340,6 +366,12 @@ export interface QuotaError { */ status?: Status; } +export interface ReactiveQuotaError { + code: ComputedRef; + subject: ComputedRef; + description: ComputedRef; + status?: ComputedRef; +} export interface QuotaErrorProtoMsg { typeUrl: "/google.api.servicecontrol.v1.QuotaError"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/google/api/servicecontrol/v1/service_controller.ts b/__fixtures__/v-next/outputv4/google/api/servicecontrol/v1/service_controller.ts index 8acacf66a6..83e53905d4 100644 --- a/__fixtures__/v-next/outputv4/google/api/servicecontrol/v1/service_controller.ts +++ b/__fixtures__/v-next/outputv4/google/api/servicecontrol/v1/service_controller.ts @@ -4,6 +4,7 @@ import { Status, StatusSDKType } from "../../../rpc/status.js"; import { BinaryReader, BinaryWriter } from "../../../../binary.js"; import { isSet, DeepPartial } from "../../../../helpers.js"; import { JsonSafe } from "../../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "google.api.servicecontrol.v1"; /** * The type of the consumer as defined in @@ -89,6 +90,11 @@ export interface CheckRequest { */ serviceConfigId: string; } +export interface ReactiveCheckRequest { + serviceName: ComputedRef; + operation?: ComputedRef; + serviceConfigId: ComputedRef; +} export interface CheckRequestProtoMsg { typeUrl: "/google.api.servicecontrol.v1.CheckRequest"; value: Uint8Array; @@ -122,6 +128,13 @@ export interface CheckResponse { /** Feedback data returned from the server during processing a Check request. */ checkInfo?: CheckResponse_CheckInfo; } +export interface ReactiveCheckResponse { + operationId: ComputedRef; + checkErrors: ComputedRef; + serviceConfigId: ComputedRef; + serviceRolloutId: ComputedRef; + checkInfo?: ComputedRef; +} export interface CheckResponseProtoMsg { typeUrl: "/google.api.servicecontrol.v1.CheckResponse"; value: Uint8Array; @@ -145,6 +158,10 @@ export interface CheckResponse_CheckInfo { /** Consumer info of this check. */ consumerInfo?: CheckResponse_ConsumerInfo; } +export interface ReactiveCheckResponse_CheckInfo { + unusedArguments: ComputedRef; + consumerInfo?: ComputedRef; +} export interface CheckResponse_CheckInfoProtoMsg { typeUrl: "/google.api.servicecontrol.v1.CheckInfo"; value: Uint8Array; @@ -176,6 +193,11 @@ export interface CheckResponse_ConsumerInfo { */ consumerNumber: bigint; } +export interface ReactiveCheckResponse_ConsumerInfo { + projectNumber: ComputedRef; + type: ComputedRef; + consumerNumber: ComputedRef; +} export interface CheckResponse_ConsumerInfoProtoMsg { typeUrl: "/google.api.servicecontrol.v1.ConsumerInfo"; value: Uint8Array; @@ -220,6 +242,11 @@ export interface ReportRequest { */ serviceConfigId: string; } +export interface ReactiveReportRequest { + serviceName: ComputedRef; + operations: ComputedRef; + serviceConfigId: ComputedRef; +} export interface ReportRequestProtoMsg { typeUrl: "/google.api.servicecontrol.v1.ReportRequest"; value: Uint8Array; @@ -254,6 +281,11 @@ export interface ReportResponse { /** The current service rollout id used to process the request. */ serviceRolloutId: string; } +export interface ReactiveReportResponse { + reportErrors: ComputedRef; + serviceConfigId: ComputedRef; + serviceRolloutId: ComputedRef; +} export interface ReportResponseProtoMsg { typeUrl: "/google.api.servicecontrol.v1.ReportResponse"; value: Uint8Array; @@ -281,6 +313,10 @@ export interface ReportResponse_ReportError { */ status?: Status; } +export interface ReactiveReportResponse_ReportError { + operationId: ComputedRef; + status?: ComputedRef; +} export interface ReportResponse_ReportErrorProtoMsg { typeUrl: "/google.api.servicecontrol.v1.ReportError"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/google/api/servicecontrol/v2/service_controller.ts b/__fixtures__/v-next/outputv4/google/api/servicecontrol/v2/service_controller.ts index b629773762..f793b0db81 100644 --- a/__fixtures__/v-next/outputv4/google/api/servicecontrol/v2/service_controller.ts +++ b/__fixtures__/v-next/outputv4/google/api/servicecontrol/v2/service_controller.ts @@ -3,6 +3,7 @@ import { Status, StatusSDKType } from "../../../rpc/status.js"; import { BinaryReader, BinaryWriter } from "../../../../binary.js"; import { isSet, DeepPartial, isObject } from "../../../../helpers.js"; import { JsonSafe } from "../../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "google.api.servicecontrol.v2"; /** Request message for the Check method. */ export interface CheckRequest { @@ -28,6 +29,13 @@ export interface CheckRequest { /** Optional. Contains a comma-separated list of flags. */ flags: string; } +export interface ReactiveCheckRequest { + serviceName: ComputedRef; + serviceConfigId: ComputedRef; + attributes?: ComputedRef; + resources: ComputedRef; + flags: ComputedRef; +} export interface CheckRequestProtoMsg { typeUrl: "/google.api.servicecontrol.v2.CheckRequest"; value: Uint8Array; @@ -69,6 +77,13 @@ export interface ResourceInfo { */ location: string; } +export interface ReactiveResourceInfo { + name: ComputedRef; + type: ComputedRef; + permission: ComputedRef; + container: ComputedRef; + location: ComputedRef; +} export interface ResourceInfoProtoMsg { typeUrl: "/google.api.servicecontrol.v2.ResourceInfo"; value: Uint8Array; @@ -85,6 +100,10 @@ export interface CheckResponse_HeadersEntry { key: string; value: string; } +export interface ReactiveCheckResponse_HeadersEntry { + key: ComputedRef; + value: ComputedRef; +} export interface CheckResponse_HeadersEntryProtoMsg { typeUrl: string; value: Uint8Array; @@ -106,6 +125,12 @@ export interface CheckResponse { [key: string]: string; }; } +export interface ReactiveCheckResponse { + status?: ComputedRef; + headers: ComputedRef<{ + [key: string]: string; + }>; +} export interface CheckResponseProtoMsg { typeUrl: "/google.api.servicecontrol.v2.CheckResponse"; value: Uint8Array; @@ -141,6 +166,11 @@ export interface ReportRequest { */ operations: AttributeContext[]; } +export interface ReactiveReportRequest { + serviceName: ComputedRef; + serviceConfigId: ComputedRef; + operations: ComputedRef; +} export interface ReportRequestProtoMsg { typeUrl: "/google.api.servicecontrol.v2.ReportRequest"; value: Uint8Array; @@ -156,6 +186,7 @@ export interface ReportRequestSDKType { * If the request contains any invalid data, the server returns an RPC error. */ export interface ReportResponse {} +export interface ReactiveReportResponse {} export interface ReportResponseProtoMsg { typeUrl: "/google.api.servicecontrol.v2.ReportResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/google/api/servicemanagement/v1/resources.ts b/__fixtures__/v-next/outputv4/google/api/servicemanagement/v1/resources.ts index 17594c42ac..8060574c4b 100644 --- a/__fixtures__/v-next/outputv4/google/api/servicemanagement/v1/resources.ts +++ b/__fixtures__/v-next/outputv4/google/api/servicemanagement/v1/resources.ts @@ -3,6 +3,7 @@ import { ConfigChange, ConfigChangeSDKType } from "../../config_change.js"; import { BinaryReader, BinaryWriter } from "../../../../binary.js"; import { isSet, DeepPartial, toTimestamp, fromTimestamp, bytesFromBase64, base64FromBytes, isObject } from "../../../../helpers.js"; import { JsonSafe } from "../../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "google.api.servicemanagement.v1"; /** Code describes the status of the operation (or one of its steps). */ export enum OperationMetadata_Status { @@ -266,6 +267,10 @@ export interface ManagedService { /** ID of the project that produces and owns this service. */ producerProjectId: string; } +export interface ReactiveManagedService { + serviceName: ComputedRef; + producerProjectId: ComputedRef; +} export interface ManagedServiceProtoMsg { typeUrl: "/google.api.servicemanagement.v1.ManagedService"; value: Uint8Array; @@ -292,6 +297,12 @@ export interface OperationMetadata { /** The start time of the operation. */ startTime?: Date; } +export interface ReactiveOperationMetadata { + resourceNames: ComputedRef; + steps: ComputedRef; + progressPercentage: ComputedRef; + startTime?: ComputedRef; +} export interface OperationMetadataProtoMsg { typeUrl: "/google.api.servicemanagement.v1.OperationMetadata"; value: Uint8Array; @@ -310,6 +321,10 @@ export interface OperationMetadata_Step { /** The status code. */ status: OperationMetadata_Status; } +export interface ReactiveOperationMetadata_Step { + description: ComputedRef; + status: ComputedRef; +} export interface OperationMetadata_StepProtoMsg { typeUrl: "/google.api.servicemanagement.v1.Step"; value: Uint8Array; @@ -328,6 +343,11 @@ export interface Diagnostic { /** Message describing the error or warning. */ message: string; } +export interface ReactiveDiagnostic { + location: ComputedRef; + kind: ComputedRef; + message: ComputedRef; +} export interface DiagnosticProtoMsg { typeUrl: "/google.api.servicemanagement.v1.Diagnostic"; value: Uint8Array; @@ -355,6 +375,10 @@ export interface ConfigSource { */ files: ConfigFile[]; } +export interface ReactiveConfigSource { + id: ComputedRef; + files: ComputedRef; +} export interface ConfigSourceProtoMsg { typeUrl: "/google.api.servicemanagement.v1.ConfigSource"; value: Uint8Array; @@ -376,6 +400,11 @@ export interface ConfigFile { /** The type of configuration file this represents. */ fileType: ConfigFile_FileType; } +export interface ReactiveConfigFile { + filePath: ComputedRef; + fileContents: ComputedRef; + fileType: ComputedRef; +} export interface ConfigFileProtoMsg { typeUrl: "/google.api.servicemanagement.v1.ConfigFile"; value: Uint8Array; @@ -394,6 +423,9 @@ export interface ConfigRef { */ name: string; } +export interface ReactiveConfigRef { + name: ComputedRef; +} export interface ConfigRefProtoMsg { typeUrl: "/google.api.servicemanagement.v1.ConfigRef"; value: Uint8Array; @@ -418,6 +450,9 @@ export interface ChangeReport { */ configChanges: ConfigChange[]; } +export interface ReactiveChangeReport { + configChanges: ComputedRef; +} export interface ChangeReportProtoMsg { typeUrl: "/google.api.servicemanagement.v1.ChangeReport"; value: Uint8Array; @@ -471,6 +506,15 @@ export interface Rollout { /** The name of the service associated with this Rollout. */ serviceName: string; } +export interface ReactiveRollout { + rolloutId: ComputedRef; + createTime?: ComputedRef; + createdBy: ComputedRef; + status: ComputedRef; + trafficPercentStrategy?: ComputedRef; + deleteServiceStrategy?: ComputedRef; + serviceName: ComputedRef; +} export interface RolloutProtoMsg { typeUrl: "/google.api.servicemanagement.v1.Rollout"; value: Uint8Array; @@ -493,6 +537,10 @@ export interface Rollout_TrafficPercentStrategy_PercentagesEntry { key: string; value: number; } +export interface ReactiveRollout_TrafficPercentStrategy_PercentagesEntry { + key: ComputedRef; + value: ComputedRef; +} export interface Rollout_TrafficPercentStrategy_PercentagesEntryProtoMsg { typeUrl: string; value: Uint8Array; @@ -543,6 +591,11 @@ export interface Rollout_TrafficPercentStrategy { [key: string]: number; }; } +export interface ReactiveRollout_TrafficPercentStrategy { + percentages: ComputedRef<{ + [key: string]: number; + }>; +} export interface Rollout_TrafficPercentStrategyProtoMsg { typeUrl: "/google.api.servicemanagement.v1.TrafficPercentStrategy"; value: Uint8Array; @@ -589,6 +642,7 @@ export interface Rollout_TrafficPercentStrategySDKType { * used by the system generated rollout to delete a service. */ export interface Rollout_DeleteServiceStrategy {} +export interface ReactiveRollout_DeleteServiceStrategy {} export interface Rollout_DeleteServiceStrategyProtoMsg { typeUrl: "/google.api.servicemanagement.v1.DeleteServiceStrategy"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/google/api/servicemanagement/v1/servicemanager.ts b/__fixtures__/v-next/outputv4/google/api/servicemanagement/v1/servicemanager.ts index 357688baca..c0141ac858 100644 --- a/__fixtures__/v-next/outputv4/google/api/servicemanagement/v1/servicemanager.ts +++ b/__fixtures__/v-next/outputv4/google/api/servicemanagement/v1/servicemanager.ts @@ -4,6 +4,7 @@ import { Any, AnySDKType } from "../../../protobuf/any.js"; import { BinaryReader, BinaryWriter } from "../../../../binary.js"; import { isSet, DeepPartial } from "../../../../helpers.js"; import { JsonSafe } from "../../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "google.api.servicemanagement.v1"; export enum GetServiceConfigRequest_ConfigView { /** BASIC - Server response includes all fields except SourceInfo. */ @@ -67,6 +68,12 @@ export interface ListServicesRequest { /** @deprecated */ consumerId: string; } +export interface ReactiveListServicesRequest { + producerProjectId: ComputedRef; + pageSize: ComputedRef; + pageToken: ComputedRef; + consumerId: ComputedRef; +} export interface ListServicesRequestProtoMsg { typeUrl: "/google.api.servicemanagement.v1.ListServicesRequest"; value: Uint8Array; @@ -86,6 +93,10 @@ export interface ListServicesResponse { /** Token that can be passed to `ListServices` to resume a paginated query. */ nextPageToken: string; } +export interface ReactiveListServicesResponse { + services: ComputedRef; + nextPageToken: ComputedRef; +} export interface ListServicesResponseProtoMsg { typeUrl: "/google.api.servicemanagement.v1.ListServicesResponse"; value: Uint8Array; @@ -103,6 +114,9 @@ export interface GetServiceRequest { */ serviceName: string; } +export interface ReactiveGetServiceRequest { + serviceName: ComputedRef; +} export interface GetServiceRequestProtoMsg { typeUrl: "/google.api.servicemanagement.v1.GetServiceRequest"; value: Uint8Array; @@ -116,6 +130,9 @@ export interface CreateServiceRequest { /** Required. Initial values for the service resource. */ service?: ManagedService; } +export interface ReactiveCreateServiceRequest { + service?: ComputedRef; +} export interface CreateServiceRequestProtoMsg { typeUrl: "/google.api.servicemanagement.v1.CreateServiceRequest"; value: Uint8Array; @@ -132,6 +149,9 @@ export interface DeleteServiceRequest { */ serviceName: string; } +export interface ReactiveDeleteServiceRequest { + serviceName: ComputedRef; +} export interface DeleteServiceRequestProtoMsg { typeUrl: "/google.api.servicemanagement.v1.DeleteServiceRequest"; value: Uint8Array; @@ -148,6 +168,9 @@ export interface UndeleteServiceRequest { */ serviceName: string; } +export interface ReactiveUndeleteServiceRequest { + serviceName: ComputedRef; +} export interface UndeleteServiceRequestProtoMsg { typeUrl: "/google.api.servicemanagement.v1.UndeleteServiceRequest"; value: Uint8Array; @@ -161,6 +184,9 @@ export interface UndeleteServiceResponse { /** Revived service resource. */ service?: ManagedService; } +export interface ReactiveUndeleteServiceResponse { + service?: ComputedRef; +} export interface UndeleteServiceResponseProtoMsg { typeUrl: "/google.api.servicemanagement.v1.UndeleteServiceResponse"; value: Uint8Array; @@ -189,6 +215,11 @@ export interface GetServiceConfigRequest { */ view: GetServiceConfigRequest_ConfigView; } +export interface ReactiveGetServiceConfigRequest { + serviceName: ComputedRef; + configId: ComputedRef; + view: ComputedRef; +} export interface GetServiceConfigRequestProtoMsg { typeUrl: "/google.api.servicemanagement.v1.GetServiceConfigRequest"; value: Uint8Array; @@ -214,6 +245,11 @@ export interface ListServiceConfigsRequest { */ pageSize: number; } +export interface ReactiveListServiceConfigsRequest { + serviceName: ComputedRef; + pageToken: ComputedRef; + pageSize: ComputedRef; +} export interface ListServiceConfigsRequestProtoMsg { typeUrl: "/google.api.servicemanagement.v1.ListServiceConfigsRequest"; value: Uint8Array; @@ -231,6 +267,10 @@ export interface ListServiceConfigsResponse { /** The token of the next page of results. */ nextPageToken: string; } +export interface ReactiveListServiceConfigsResponse { + serviceConfigs: ComputedRef; + nextPageToken: ComputedRef; +} export interface ListServiceConfigsResponseProtoMsg { typeUrl: "/google.api.servicemanagement.v1.ListServiceConfigsResponse"; value: Uint8Array; @@ -250,6 +290,10 @@ export interface CreateServiceConfigRequest { /** Required. The service configuration resource. */ serviceConfig?: Service; } +export interface ReactiveCreateServiceConfigRequest { + serviceName: ComputedRef; + serviceConfig?: ComputedRef; +} export interface CreateServiceConfigRequestProtoMsg { typeUrl: "/google.api.servicemanagement.v1.CreateServiceConfigRequest"; value: Uint8Array; @@ -275,6 +319,11 @@ export interface SubmitConfigSourceRequest { */ validateOnly: boolean; } +export interface ReactiveSubmitConfigSourceRequest { + serviceName: ComputedRef; + configSource?: ComputedRef; + validateOnly: ComputedRef; +} export interface SubmitConfigSourceRequestProtoMsg { typeUrl: "/google.api.servicemanagement.v1.SubmitConfigSourceRequest"; value: Uint8Array; @@ -290,6 +339,9 @@ export interface SubmitConfigSourceResponse { /** The generated service configuration. */ serviceConfig?: Service; } +export interface ReactiveSubmitConfigSourceResponse { + serviceConfig?: ComputedRef; +} export interface SubmitConfigSourceResponseProtoMsg { typeUrl: "/google.api.servicemanagement.v1.SubmitConfigSourceResponse"; value: Uint8Array; @@ -308,6 +360,10 @@ export interface CreateServiceRolloutRequest { /** Required. The rollout resource. The `service_name` field is output only. */ rollout?: Rollout; } +export interface ReactiveCreateServiceRolloutRequest { + serviceName: ComputedRef; + rollout?: ComputedRef; +} export interface CreateServiceRolloutRequestProtoMsg { typeUrl: "/google.api.servicemanagement.v1.CreateServiceRolloutRequest"; value: Uint8Array; @@ -343,6 +399,12 @@ export interface ListServiceRolloutsRequest { */ filter: string; } +export interface ReactiveListServiceRolloutsRequest { + serviceName: ComputedRef; + pageToken: ComputedRef; + pageSize: ComputedRef; + filter: ComputedRef; +} export interface ListServiceRolloutsRequestProtoMsg { typeUrl: "/google.api.servicemanagement.v1.ListServiceRolloutsRequest"; value: Uint8Array; @@ -361,6 +423,10 @@ export interface ListServiceRolloutsResponse { /** The token of the next page of results. */ nextPageToken: string; } +export interface ReactiveListServiceRolloutsResponse { + rollouts: ComputedRef; + nextPageToken: ComputedRef; +} export interface ListServiceRolloutsResponseProtoMsg { typeUrl: "/google.api.servicemanagement.v1.ListServiceRolloutsResponse"; value: Uint8Array; @@ -380,6 +446,10 @@ export interface GetServiceRolloutRequest { /** Required. The id of the rollout resource. */ rolloutId: string; } +export interface ReactiveGetServiceRolloutRequest { + serviceName: ComputedRef; + rolloutId: ComputedRef; +} export interface GetServiceRolloutRequestProtoMsg { typeUrl: "/google.api.servicemanagement.v1.GetServiceRolloutRequest"; value: Uint8Array; @@ -408,6 +478,10 @@ export interface GenerateConfigReportRequest { */ oldConfig?: Any; } +export interface ReactiveGenerateConfigReportRequest { + newConfig?: ComputedRef; + oldConfig?: ComputedRef; +} export interface GenerateConfigReportRequestProtoMsg { typeUrl: "/google.api.servicemanagement.v1.GenerateConfigReportRequest"; value: Uint8Array; @@ -435,6 +509,12 @@ export interface GenerateConfigReportResponse { */ diagnostics: Diagnostic[]; } +export interface ReactiveGenerateConfigReportResponse { + serviceName: ComputedRef; + id: ComputedRef; + changeReports: ComputedRef; + diagnostics: ComputedRef; +} export interface GenerateConfigReportResponseProtoMsg { typeUrl: "/google.api.servicemanagement.v1.GenerateConfigReportResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/google/api/serviceusage/v1/resources.ts b/__fixtures__/v-next/outputv4/google/api/serviceusage/v1/resources.ts index e6cdfb7531..83809f12a1 100644 --- a/__fixtures__/v-next/outputv4/google/api/serviceusage/v1/resources.ts +++ b/__fixtures__/v-next/outputv4/google/api/serviceusage/v1/resources.ts @@ -9,6 +9,7 @@ import { Monitoring, MonitoringSDKType } from "../../monitoring.js"; import { BinaryReader, BinaryWriter } from "../../../../binary.js"; import { isSet, DeepPartial } from "../../../../helpers.js"; import { JsonSafe } from "../../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "google.api.serviceusage.v1"; /** Whether or not a service has been enabled for use by a consumer. */ export enum State { @@ -84,6 +85,12 @@ export interface Service { /** Whether or not the service has been enabled for use by the consumer. */ state: State; } +export interface ReactiveService { + name: ComputedRef; + parent: ComputedRef; + config?: ComputedRef; + state: ComputedRef; +} export interface ServiceProtoMsg { typeUrl: "/google.api.serviceusage.v1.Service"; value: Uint8Array; @@ -138,6 +145,18 @@ export interface ServiceConfig { */ monitoring?: Monitoring; } +export interface ReactiveServiceConfig { + name: ComputedRef; + title: ComputedRef; + apis: ComputedRef; + documentation?: ComputedRef; + quota?: ComputedRef; + authentication?: ComputedRef; + usage?: ComputedRef; + endpoints: ComputedRef; + monitoredResources: ComputedRef; + monitoring?: ComputedRef; +} export interface ServiceConfigProtoMsg { typeUrl: "/google.api.serviceusage.v1.ServiceConfig"; value: Uint8Array; @@ -163,6 +182,9 @@ export interface OperationMetadata { */ resourceNames: string[]; } +export interface ReactiveOperationMetadata { + resourceNames: ComputedRef; +} export interface OperationMetadataProtoMsg { typeUrl: "/google.api.serviceusage.v1.OperationMetadata"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/google/api/serviceusage/v1/serviceusage.ts b/__fixtures__/v-next/outputv4/google/api/serviceusage/v1/serviceusage.ts index cdc8a3d1da..2755ccd4e0 100644 --- a/__fixtures__/v-next/outputv4/google/api/serviceusage/v1/serviceusage.ts +++ b/__fixtures__/v-next/outputv4/google/api/serviceusage/v1/serviceusage.ts @@ -2,6 +2,7 @@ import { Service, ServiceSDKType } from "./resources.js"; import { BinaryReader, BinaryWriter } from "../../../../binary.js"; import { isSet, DeepPartial } from "../../../../helpers.js"; import { JsonSafe } from "../../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "google.api.serviceusage.v1"; /** * Enum to determine if service usage should be checked when disabling a @@ -68,6 +69,9 @@ export interface EnableServiceRequest { */ name: string; } +export interface ReactiveEnableServiceRequest { + name: ComputedRef; +} export interface EnableServiceRequestProtoMsg { typeUrl: "/google.api.serviceusage.v1.EnableServiceRequest"; value: Uint8Array; @@ -85,6 +89,9 @@ export interface EnableServiceResponse { /** The new state of the service after enabling. */ service?: Service; } +export interface ReactiveEnableServiceResponse { + service?: ComputedRef; +} export interface EnableServiceResponseProtoMsg { typeUrl: "/google.api.serviceusage.v1.EnableServiceResponse"; value: Uint8Array; @@ -120,6 +127,11 @@ export interface DisableServiceRequest { /** Defines the behavior for checking service usage when disabling a service. */ checkIfServiceHasUsage: DisableServiceRequest_CheckIfServiceHasUsage; } +export interface ReactiveDisableServiceRequest { + name: ComputedRef; + disableDependentServices: ComputedRef; + checkIfServiceHasUsage: ComputedRef; +} export interface DisableServiceRequestProtoMsg { typeUrl: "/google.api.serviceusage.v1.DisableServiceRequest"; value: Uint8Array; @@ -139,6 +151,9 @@ export interface DisableServiceResponse { /** The new state of the service after disabling. */ service?: Service; } +export interface ReactiveDisableServiceResponse { + service?: ComputedRef; +} export interface DisableServiceResponseProtoMsg { typeUrl: "/google.api.serviceusage.v1.DisableServiceResponse"; value: Uint8Array; @@ -162,6 +177,9 @@ export interface GetServiceRequest { */ name: string; } +export interface ReactiveGetServiceRequest { + name: ComputedRef; +} export interface GetServiceRequestProtoMsg { typeUrl: "/google.api.serviceusage.v1.GetServiceRequest"; value: Uint8Array; @@ -196,6 +214,12 @@ export interface ListServicesRequest { */ filter: string; } +export interface ReactiveListServicesRequest { + parent: ComputedRef; + pageSize: ComputedRef; + pageToken: ComputedRef; + filter: ComputedRef; +} export interface ListServicesRequestProtoMsg { typeUrl: "/google.api.serviceusage.v1.ListServicesRequest"; value: Uint8Array; @@ -217,6 +241,10 @@ export interface ListServicesResponse { */ nextPageToken: string; } +export interface ReactiveListServicesResponse { + services: ComputedRef; + nextPageToken: ComputedRef; +} export interface ListServicesResponseProtoMsg { typeUrl: "/google.api.serviceusage.v1.ListServicesResponse"; value: Uint8Array; @@ -252,6 +280,10 @@ export interface BatchEnableServicesRequest { */ serviceIds: string[]; } +export interface ReactiveBatchEnableServicesRequest { + parent: ComputedRef; + serviceIds: ComputedRef; +} export interface BatchEnableServicesRequestProtoMsg { typeUrl: "/google.api.serviceusage.v1.BatchEnableServicesRequest"; value: Uint8Array; @@ -275,6 +307,10 @@ export interface BatchEnableServicesResponse { */ failures: BatchEnableServicesResponse_EnableFailure[]; } +export interface ReactiveBatchEnableServicesResponse { + services: ComputedRef; + failures: ComputedRef; +} export interface BatchEnableServicesResponseProtoMsg { typeUrl: "/google.api.serviceusage.v1.BatchEnableServicesResponse"; value: Uint8Array; @@ -295,6 +331,10 @@ export interface BatchEnableServicesResponse_EnableFailure { /** An error message describing why the service could not be enabled. */ errorMessage: string; } +export interface ReactiveBatchEnableServicesResponse_EnableFailure { + serviceId: ComputedRef; + errorMessage: ComputedRef; +} export interface BatchEnableServicesResponse_EnableFailureProtoMsg { typeUrl: "/google.api.serviceusage.v1.EnableFailure"; value: Uint8Array; @@ -324,6 +364,10 @@ export interface BatchGetServicesRequest { */ names: string[]; } +export interface ReactiveBatchGetServicesRequest { + parent: ComputedRef; + names: ComputedRef; +} export interface BatchGetServicesRequestProtoMsg { typeUrl: "/google.api.serviceusage.v1.BatchGetServicesRequest"; value: Uint8Array; @@ -338,6 +382,9 @@ export interface BatchGetServicesResponse { /** The requested Service states. */ services: Service[]; } +export interface ReactiveBatchGetServicesResponse { + services: ComputedRef; +} export interface BatchGetServicesResponseProtoMsg { typeUrl: "/google.api.serviceusage.v1.BatchGetServicesResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/google/api/serviceusage/v1beta1/resources.ts b/__fixtures__/v-next/outputv4/google/api/serviceusage/v1beta1/resources.ts index 165d71ab35..3a8f8254aa 100644 --- a/__fixtures__/v-next/outputv4/google/api/serviceusage/v1beta1/resources.ts +++ b/__fixtures__/v-next/outputv4/google/api/serviceusage/v1beta1/resources.ts @@ -9,6 +9,7 @@ import { Monitoring, MonitoringSDKType } from "../../monitoring.js"; import { BinaryReader, BinaryWriter } from "../../../../binary.js"; import { isSet, DeepPartial, isObject } from "../../../../helpers.js"; import { JsonSafe } from "../../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "google.api.serviceusage.v1beta1"; /** Whether or not a service has been enabled for use by a consumer. */ export enum State { @@ -185,6 +186,12 @@ export interface Service { /** Whether or not the service has been enabled for use by the consumer. */ state: State; } +export interface ReactiveService { + name: ComputedRef; + parent: ComputedRef; + config?: ComputedRef; + state: ComputedRef; +} export interface ServiceProtoMsg { typeUrl: "/google.api.serviceusage.v1beta1.Service"; value: Uint8Array; @@ -239,6 +246,18 @@ export interface ServiceConfig { */ monitoring?: Monitoring; } +export interface ReactiveServiceConfig { + name: ComputedRef; + title: ComputedRef; + apis: ComputedRef; + documentation?: ComputedRef; + quota?: ComputedRef; + authentication?: ComputedRef; + usage?: ComputedRef; + endpoints: ComputedRef; + monitoredResources: ComputedRef; + monitoring?: ComputedRef; +} export interface ServiceConfigProtoMsg { typeUrl: "/google.api.serviceusage.v1beta1.ServiceConfig"; value: Uint8Array; @@ -264,6 +283,9 @@ export interface OperationMetadata { */ resourceNames: string[]; } +export interface ReactiveOperationMetadata { + resourceNames: ComputedRef; +} export interface OperationMetadataProtoMsg { typeUrl: "/google.api.serviceusage.v1beta1.OperationMetadata"; value: Uint8Array; @@ -315,6 +337,14 @@ export interface ConsumerQuotaMetric { /** The units in which the metric value is reported. */ unit: string; } +export interface ReactiveConsumerQuotaMetric { + name: ComputedRef; + metric: ComputedRef; + displayName: ComputedRef; + consumerQuotaLimits: ComputedRef; + descendantConsumerQuotaLimits: ComputedRef; + unit: ComputedRef; +} export interface ConsumerQuotaMetricProtoMsg { typeUrl: "/google.api.serviceusage.v1beta1.ConsumerQuotaMetric"; value: Uint8Array; @@ -367,6 +397,14 @@ export interface ConsumerQuotaLimit { */ quotaBuckets: QuotaBucket[]; } +export interface ReactiveConsumerQuotaLimit { + name: ComputedRef; + metric: ComputedRef; + unit: ComputedRef; + isPrecise: ComputedRef; + allowsAdminOverrides: ComputedRef; + quotaBuckets: ComputedRef; +} export interface ConsumerQuotaLimitProtoMsg { typeUrl: "/google.api.serviceusage.v1beta1.ConsumerQuotaLimit"; value: Uint8Array; @@ -384,6 +422,10 @@ export interface QuotaBucket_DimensionsEntry { key: string; value: string; } +export interface ReactiveQuotaBucket_DimensionsEntry { + key: ComputedRef; + value: ComputedRef; +} export interface QuotaBucket_DimensionsEntryProtoMsg { typeUrl: string; value: Uint8Array; @@ -427,6 +469,16 @@ export interface QuotaBucket { [key: string]: string; }; } +export interface ReactiveQuotaBucket { + effectiveLimit: ComputedRef; + defaultLimit: ComputedRef; + producerOverride?: ComputedRef; + consumerOverride?: ComputedRef; + adminOverride?: ComputedRef; + dimensions: ComputedRef<{ + [key: string]: string; + }>; +} export interface QuotaBucketProtoMsg { typeUrl: "/google.api.serviceusage.v1beta1.QuotaBucket"; value: Uint8Array; @@ -446,6 +498,10 @@ export interface QuotaOverride_DimensionsEntry { key: string; value: string; } +export interface ReactiveQuotaOverride_DimensionsEntry { + key: ComputedRef; + value: ComputedRef; +} export interface QuotaOverride_DimensionsEntryProtoMsg { typeUrl: string; value: Uint8Array; @@ -523,6 +579,16 @@ export interface QuotaOverride { */ adminOverrideAncestor: string; } +export interface ReactiveQuotaOverride { + name: ComputedRef; + overrideValue: ComputedRef; + dimensions: ComputedRef<{ + [key: string]: string; + }>; + metric: ComputedRef; + unit: ComputedRef; + adminOverrideAncestor: ComputedRef; +} export interface QuotaOverrideProtoMsg { typeUrl: "/google.api.serviceusage.v1beta1.QuotaOverride"; value: Uint8Array; @@ -548,6 +614,9 @@ export interface OverrideInlineSource { */ overrides: QuotaOverride[]; } +export interface ReactiveOverrideInlineSource { + overrides: ComputedRef; +} export interface OverrideInlineSourceProtoMsg { typeUrl: "/google.api.serviceusage.v1beta1.OverrideInlineSource"; value: Uint8Array; @@ -560,6 +629,10 @@ export interface AdminQuotaPolicy_DimensionsEntry { key: string; value: string; } +export interface ReactiveAdminQuotaPolicy_DimensionsEntry { + key: ComputedRef; + value: ComputedRef; +} export interface AdminQuotaPolicy_DimensionsEntryProtoMsg { typeUrl: string; value: Uint8Array; @@ -622,6 +695,16 @@ export interface AdminQuotaPolicy { */ container: string; } +export interface ReactiveAdminQuotaPolicy { + name: ComputedRef; + policyValue: ComputedRef; + dimensions: ComputedRef<{ + [key: string]: string; + }>; + metric: ComputedRef; + unit: ComputedRef; + container: ComputedRef; +} export interface AdminQuotaPolicyProtoMsg { typeUrl: "/google.api.serviceusage.v1beta1.AdminQuotaPolicy"; value: Uint8Array; @@ -653,6 +736,10 @@ export interface ServiceIdentity { */ uniqueId: string; } +export interface ReactiveServiceIdentity { + email: ComputedRef; + uniqueId: ComputedRef; +} export interface ServiceIdentityProtoMsg { typeUrl: "/google.api.serviceusage.v1beta1.ServiceIdentity"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/google/api/serviceusage/v1beta1/serviceusage.ts b/__fixtures__/v-next/outputv4/google/api/serviceusage/v1beta1/serviceusage.ts index 6003cb233d..996e3d3f60 100644 --- a/__fixtures__/v-next/outputv4/google/api/serviceusage/v1beta1/serviceusage.ts +++ b/__fixtures__/v-next/outputv4/google/api/serviceusage/v1beta1/serviceusage.ts @@ -3,6 +3,7 @@ import { FieldMask, FieldMaskSDKType } from "../../../protobuf/field_mask.js"; import { BinaryReader, BinaryWriter } from "../../../../binary.js"; import { isSet, DeepPartial } from "../../../../helpers.js"; import { JsonSafe } from "../../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "google.api.serviceusage.v1beta1"; /** Enum for service identity state. */ export enum GetServiceIdentityResponse_IdentityState { @@ -58,6 +59,9 @@ export interface EnableServiceRequest { */ name: string; } +export interface ReactiveEnableServiceRequest { + name: ComputedRef; +} export interface EnableServiceRequestProtoMsg { typeUrl: "/google.api.serviceusage.v1beta1.EnableServiceRequest"; value: Uint8Array; @@ -79,6 +83,9 @@ export interface DisableServiceRequest { */ name: string; } +export interface ReactiveDisableServiceRequest { + name: ComputedRef; +} export interface DisableServiceRequestProtoMsg { typeUrl: "/google.api.serviceusage.v1beta1.DisableServiceRequest"; value: Uint8Array; @@ -98,6 +105,9 @@ export interface GetServiceRequest { */ name: string; } +export interface ReactiveGetServiceRequest { + name: ComputedRef; +} export interface GetServiceRequestProtoMsg { typeUrl: "/google.api.serviceusage.v1beta1.GetServiceRequest"; value: Uint8Array; @@ -133,6 +143,12 @@ export interface ListServicesRequest { */ filter: string; } +export interface ReactiveListServicesRequest { + parent: ComputedRef; + pageSize: ComputedRef; + pageToken: ComputedRef; + filter: ComputedRef; +} export interface ListServicesRequestProtoMsg { typeUrl: "/google.api.serviceusage.v1beta1.ListServicesRequest"; value: Uint8Array; @@ -154,6 +170,10 @@ export interface ListServicesResponse { */ nextPageToken: string; } +export interface ReactiveListServicesResponse { + services: ComputedRef; + nextPageToken: ComputedRef; +} export interface ListServicesResponseProtoMsg { typeUrl: "/google.api.serviceusage.v1beta1.ListServicesResponse"; value: Uint8Array; @@ -193,6 +213,10 @@ export interface BatchEnableServicesRequest { */ serviceIds: string[]; } +export interface ReactiveBatchEnableServicesRequest { + parent: ComputedRef; + serviceIds: ComputedRef; +} export interface BatchEnableServicesRequestProtoMsg { typeUrl: "/google.api.serviceusage.v1beta1.BatchEnableServicesRequest"; value: Uint8Array; @@ -223,6 +247,12 @@ export interface ListConsumerQuotaMetricsRequest { /** Specifies the level of detail for quota information in the response. */ view: QuotaView; } +export interface ReactiveListConsumerQuotaMetricsRequest { + parent: ComputedRef; + pageSize: ComputedRef; + pageToken: ComputedRef; + view: ComputedRef; +} export interface ListConsumerQuotaMetricsRequestProtoMsg { typeUrl: "/google.api.serviceusage.v1beta1.ListConsumerQuotaMetricsRequest"; value: Uint8Array; @@ -244,6 +274,10 @@ export interface ListConsumerQuotaMetricsResponse { */ nextPageToken: string; } +export interface ReactiveListConsumerQuotaMetricsResponse { + metrics: ComputedRef; + nextPageToken: ComputedRef; +} export interface ListConsumerQuotaMetricsResponseProtoMsg { typeUrl: "/google.api.serviceusage.v1beta1.ListConsumerQuotaMetricsResponse"; value: Uint8Array; @@ -265,6 +299,10 @@ export interface GetConsumerQuotaMetricRequest { /** Specifies the level of detail for quota information in the response. */ view: QuotaView; } +export interface ReactiveGetConsumerQuotaMetricRequest { + name: ComputedRef; + view: ComputedRef; +} export interface GetConsumerQuotaMetricRequestProtoMsg { typeUrl: "/google.api.serviceusage.v1beta1.GetConsumerQuotaMetricRequest"; value: Uint8Array; @@ -286,6 +324,10 @@ export interface GetConsumerQuotaLimitRequest { /** Specifies the level of detail for quota information in the response. */ view: QuotaView; } +export interface ReactiveGetConsumerQuotaLimitRequest { + name: ComputedRef; + view: ComputedRef; +} export interface GetConsumerQuotaLimitRequestProtoMsg { typeUrl: "/google.api.serviceusage.v1beta1.GetConsumerQuotaLimitRequest"; value: Uint8Array; @@ -321,6 +363,12 @@ export interface CreateAdminOverrideRequest { */ forceOnly: QuotaSafetyCheck[]; } +export interface ReactiveCreateAdminOverrideRequest { + parent: ComputedRef; + override?: ComputedRef; + force: ComputedRef; + forceOnly: ComputedRef; +} export interface CreateAdminOverrideRequestProtoMsg { typeUrl: "/google.api.serviceusage.v1beta1.CreateAdminOverrideRequest"; value: Uint8Array; @@ -365,6 +413,13 @@ export interface UpdateAdminOverrideRequest { */ forceOnly: QuotaSafetyCheck[]; } +export interface ReactiveUpdateAdminOverrideRequest { + name: ComputedRef; + override?: ComputedRef; + force: ComputedRef; + updateMask?: ComputedRef; + forceOnly: ComputedRef; +} export interface UpdateAdminOverrideRequestProtoMsg { typeUrl: "/google.api.serviceusage.v1beta1.UpdateAdminOverrideRequest"; value: Uint8Array; @@ -400,6 +455,11 @@ export interface DeleteAdminOverrideRequest { */ forceOnly: QuotaSafetyCheck[]; } +export interface ReactiveDeleteAdminOverrideRequest { + name: ComputedRef; + force: ComputedRef; + forceOnly: ComputedRef; +} export interface DeleteAdminOverrideRequestProtoMsg { typeUrl: "/google.api.serviceusage.v1beta1.DeleteAdminOverrideRequest"; value: Uint8Array; @@ -428,6 +488,11 @@ export interface ListAdminOverridesRequest { */ pageToken: string; } +export interface ReactiveListAdminOverridesRequest { + parent: ComputedRef; + pageSize: ComputedRef; + pageToken: ComputedRef; +} export interface ListAdminOverridesRequestProtoMsg { typeUrl: "/google.api.serviceusage.v1beta1.ListAdminOverridesRequest"; value: Uint8Array; @@ -448,6 +513,10 @@ export interface ListAdminOverridesResponse { */ nextPageToken: string; } +export interface ReactiveListAdminOverridesResponse { + overrides: ComputedRef; + nextPageToken: ComputedRef; +} export interface ListAdminOverridesResponseProtoMsg { typeUrl: "/google.api.serviceusage.v1beta1.ListAdminOverridesResponse"; value: Uint8Array; @@ -462,6 +531,9 @@ export interface BatchCreateAdminOverridesResponse { /** The overrides that were created. */ overrides: QuotaOverride[]; } +export interface ReactiveBatchCreateAdminOverridesResponse { + overrides: ComputedRef; +} export interface BatchCreateAdminOverridesResponseProtoMsg { typeUrl: "/google.api.serviceusage.v1beta1.BatchCreateAdminOverridesResponse"; value: Uint8Array; @@ -495,6 +567,12 @@ export interface ImportAdminOverridesRequest { */ forceOnly: QuotaSafetyCheck[]; } +export interface ReactiveImportAdminOverridesRequest { + parent: ComputedRef; + inlineSource?: ComputedRef; + force: ComputedRef; + forceOnly: ComputedRef; +} export interface ImportAdminOverridesRequestProtoMsg { typeUrl: "/google.api.serviceusage.v1beta1.ImportAdminOverridesRequest"; value: Uint8Array; @@ -511,6 +589,9 @@ export interface ImportAdminOverridesResponse { /** The overrides that were created from the imported data. */ overrides: QuotaOverride[]; } +export interface ReactiveImportAdminOverridesResponse { + overrides: ComputedRef; +} export interface ImportAdminOverridesResponseProtoMsg { typeUrl: "/google.api.serviceusage.v1beta1.ImportAdminOverridesResponse"; value: Uint8Array; @@ -525,6 +606,7 @@ export interface ImportAdminOverridesResponseSDKType { * of LRO returned by ImportAdminOverrides. */ export interface ImportAdminOverridesMetadata {} +export interface ReactiveImportAdminOverridesMetadata {} export interface ImportAdminOverridesMetadataProtoMsg { typeUrl: "/google.api.serviceusage.v1beta1.ImportAdminOverridesMetadata"; value: Uint8Array; @@ -561,6 +643,12 @@ export interface CreateConsumerOverrideRequest { */ forceOnly: QuotaSafetyCheck[]; } +export interface ReactiveCreateConsumerOverrideRequest { + parent: ComputedRef; + override?: ComputedRef; + force: ComputedRef; + forceOnly: ComputedRef; +} export interface CreateConsumerOverrideRequestProtoMsg { typeUrl: "/google.api.serviceusage.v1beta1.CreateConsumerOverrideRequest"; value: Uint8Array; @@ -605,6 +693,13 @@ export interface UpdateConsumerOverrideRequest { */ forceOnly: QuotaSafetyCheck[]; } +export interface ReactiveUpdateConsumerOverrideRequest { + name: ComputedRef; + override?: ComputedRef; + force: ComputedRef; + updateMask?: ComputedRef; + forceOnly: ComputedRef; +} export interface UpdateConsumerOverrideRequestProtoMsg { typeUrl: "/google.api.serviceusage.v1beta1.UpdateConsumerOverrideRequest"; value: Uint8Array; @@ -640,6 +735,11 @@ export interface DeleteConsumerOverrideRequest { */ forceOnly: QuotaSafetyCheck[]; } +export interface ReactiveDeleteConsumerOverrideRequest { + name: ComputedRef; + force: ComputedRef; + forceOnly: ComputedRef; +} export interface DeleteConsumerOverrideRequestProtoMsg { typeUrl: "/google.api.serviceusage.v1beta1.DeleteConsumerOverrideRequest"; value: Uint8Array; @@ -668,6 +768,11 @@ export interface ListConsumerOverridesRequest { */ pageToken: string; } +export interface ReactiveListConsumerOverridesRequest { + parent: ComputedRef; + pageSize: ComputedRef; + pageToken: ComputedRef; +} export interface ListConsumerOverridesRequestProtoMsg { typeUrl: "/google.api.serviceusage.v1beta1.ListConsumerOverridesRequest"; value: Uint8Array; @@ -688,6 +793,10 @@ export interface ListConsumerOverridesResponse { */ nextPageToken: string; } +export interface ReactiveListConsumerOverridesResponse { + overrides: ComputedRef; + nextPageToken: ComputedRef; +} export interface ListConsumerOverridesResponseProtoMsg { typeUrl: "/google.api.serviceusage.v1beta1.ListConsumerOverridesResponse"; value: Uint8Array; @@ -702,6 +811,9 @@ export interface BatchCreateConsumerOverridesResponse { /** The overrides that were created. */ overrides: QuotaOverride[]; } +export interface ReactiveBatchCreateConsumerOverridesResponse { + overrides: ComputedRef; +} export interface BatchCreateConsumerOverridesResponseProtoMsg { typeUrl: "/google.api.serviceusage.v1beta1.BatchCreateConsumerOverridesResponse"; value: Uint8Array; @@ -735,6 +847,12 @@ export interface ImportConsumerOverridesRequest { */ forceOnly: QuotaSafetyCheck[]; } +export interface ReactiveImportConsumerOverridesRequest { + parent: ComputedRef; + inlineSource?: ComputedRef; + force: ComputedRef; + forceOnly: ComputedRef; +} export interface ImportConsumerOverridesRequestProtoMsg { typeUrl: "/google.api.serviceusage.v1beta1.ImportConsumerOverridesRequest"; value: Uint8Array; @@ -751,6 +869,9 @@ export interface ImportConsumerOverridesResponse { /** The overrides that were created from the imported data. */ overrides: QuotaOverride[]; } +export interface ReactiveImportConsumerOverridesResponse { + overrides: ComputedRef; +} export interface ImportConsumerOverridesResponseProtoMsg { typeUrl: "/google.api.serviceusage.v1beta1.ImportConsumerOverridesResponse"; value: Uint8Array; @@ -765,6 +886,7 @@ export interface ImportConsumerOverridesResponseSDKType { * of LRO returned by ImportConsumerOverrides. */ export interface ImportConsumerOverridesMetadata {} +export interface ReactiveImportConsumerOverridesMetadata {} export interface ImportConsumerOverridesMetadataProtoMsg { typeUrl: "/google.api.serviceusage.v1beta1.ImportConsumerOverridesMetadata"; value: Uint8Array; @@ -780,6 +902,9 @@ export interface ImportAdminQuotaPoliciesResponse { /** The policies that were created from the imported data. */ policies: AdminQuotaPolicy[]; } +export interface ReactiveImportAdminQuotaPoliciesResponse { + policies: ComputedRef; +} export interface ImportAdminQuotaPoliciesResponseProtoMsg { typeUrl: "/google.api.serviceusage.v1beta1.ImportAdminQuotaPoliciesResponse"; value: Uint8Array; @@ -794,6 +919,7 @@ export interface ImportAdminQuotaPoliciesResponseSDKType { * of LRO returned by ImportAdminQuotaPolicies. */ export interface ImportAdminQuotaPoliciesMetadata {} +export interface ReactiveImportAdminQuotaPoliciesMetadata {} export interface ImportAdminQuotaPoliciesMetadataProtoMsg { typeUrl: "/google.api.serviceusage.v1beta1.ImportAdminQuotaPoliciesMetadata"; value: Uint8Array; @@ -810,6 +936,7 @@ export interface ImportAdminQuotaPoliciesMetadataSDKType {} * of LRO returned by CreateAdminQuotaPolicy. */ export interface CreateAdminQuotaPolicyMetadata {} +export interface ReactiveCreateAdminQuotaPolicyMetadata {} export interface CreateAdminQuotaPolicyMetadataProtoMsg { typeUrl: "/google.api.serviceusage.v1beta1.CreateAdminQuotaPolicyMetadata"; value: Uint8Array; @@ -826,6 +953,7 @@ export interface CreateAdminQuotaPolicyMetadataSDKType {} * of LRO returned by UpdateAdminQuotaPolicy. */ export interface UpdateAdminQuotaPolicyMetadata {} +export interface ReactiveUpdateAdminQuotaPolicyMetadata {} export interface UpdateAdminQuotaPolicyMetadataProtoMsg { typeUrl: "/google.api.serviceusage.v1beta1.UpdateAdminQuotaPolicyMetadata"; value: Uint8Array; @@ -842,6 +970,7 @@ export interface UpdateAdminQuotaPolicyMetadataSDKType {} * of LRO returned by DeleteAdminQuotaPolicy. */ export interface DeleteAdminQuotaPolicyMetadata {} +export interface ReactiveDeleteAdminQuotaPolicyMetadata {} export interface DeleteAdminQuotaPolicyMetadataProtoMsg { typeUrl: "/google.api.serviceusage.v1beta1.DeleteAdminQuotaPolicyMetadata"; value: Uint8Array; @@ -865,6 +994,9 @@ export interface GenerateServiceIdentityRequest { */ parent: string; } +export interface ReactiveGenerateServiceIdentityRequest { + parent: ComputedRef; +} export interface GenerateServiceIdentityRequestProtoMsg { typeUrl: "/google.api.serviceusage.v1beta1.GenerateServiceIdentityRequest"; value: Uint8Array; @@ -884,6 +1016,10 @@ export interface GetServiceIdentityResponse { /** Service identity state. */ state: GetServiceIdentityResponse_IdentityState; } +export interface ReactiveGetServiceIdentityResponse { + identity?: ComputedRef; + state: ComputedRef; +} export interface GetServiceIdentityResponseProtoMsg { typeUrl: "/google.api.serviceusage.v1beta1.GetServiceIdentityResponse"; value: Uint8Array; @@ -895,6 +1031,7 @@ export interface GetServiceIdentityResponseSDKType { } /** Metadata for the `GetServiceIdentity` method. */ export interface GetServiceIdentityMetadata {} +export interface ReactiveGetServiceIdentityMetadata {} export interface GetServiceIdentityMetadataProtoMsg { typeUrl: "/google.api.serviceusage.v1beta1.GetServiceIdentityMetadata"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/google/api/source_info.ts b/__fixtures__/v-next/outputv4/google/api/source_info.ts index 9e80f57567..4ac4b5426d 100644 --- a/__fixtures__/v-next/outputv4/google/api/source_info.ts +++ b/__fixtures__/v-next/outputv4/google/api/source_info.ts @@ -2,12 +2,16 @@ import { Any, AnySDKType } from "../protobuf/any.js"; import { BinaryReader, BinaryWriter } from "../../binary.js"; import { JsonSafe } from "../../json-safe.js"; import { DeepPartial } from "../../helpers.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "google.api"; /** Source information used to create a Service Config */ export interface SourceInfo { /** All files used during config generation. */ sourceFiles: Any[]; } +export interface ReactiveSourceInfo { + sourceFiles: ComputedRef; +} export interface SourceInfoProtoMsg { typeUrl: "/google.api.SourceInfo"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/google/api/system_parameter.ts b/__fixtures__/v-next/outputv4/google/api/system_parameter.ts index 230e353d3b..269a04948e 100644 --- a/__fixtures__/v-next/outputv4/google/api/system_parameter.ts +++ b/__fixtures__/v-next/outputv4/google/api/system_parameter.ts @@ -1,6 +1,7 @@ import { BinaryReader, BinaryWriter } from "../../binary.js"; import { JsonSafe } from "../../json-safe.js"; import { DeepPartial, isSet } from "../../helpers.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "google.api"; /** * ### System parameter configuration @@ -44,6 +45,9 @@ export interface SystemParameters { */ rules: SystemParameterRule[]; } +export interface ReactiveSystemParameters { + rules: ComputedRef; +} export interface SystemParametersProtoMsg { typeUrl: "/google.api.SystemParameters"; value: Uint8Array; @@ -80,6 +84,10 @@ export interface SystemParameterRule { */ parameters: SystemParameter[]; } +export interface ReactiveSystemParameterRule { + selector: ComputedRef; + parameters: ComputedRef; +} export interface SystemParameterRuleProtoMsg { typeUrl: "/google.api.SystemParameterRule"; value: Uint8Array; @@ -111,6 +119,11 @@ export interface SystemParameter { */ urlQueryParameter: string; } +export interface ReactiveSystemParameter { + name: ComputedRef; + httpHeader: ComputedRef; + urlQueryParameter: ComputedRef; +} export interface SystemParameterProtoMsg { typeUrl: "/google.api.SystemParameter"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/google/api/usage.ts b/__fixtures__/v-next/outputv4/google/api/usage.ts index b4a9d63a75..edfc7e2f7a 100644 --- a/__fixtures__/v-next/outputv4/google/api/usage.ts +++ b/__fixtures__/v-next/outputv4/google/api/usage.ts @@ -1,6 +1,7 @@ import { BinaryReader, BinaryWriter } from "../../binary.js"; import { isSet, DeepPartial } from "../../helpers.js"; import { JsonSafe } from "../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "google.api"; /** Configuration controlling usage of a service. */ export interface Usage { @@ -34,6 +35,11 @@ export interface Usage { */ producerNotificationChannel: string; } +export interface ReactiveUsage { + requirements: ComputedRef; + rules: ComputedRef; + producerNotificationChannel: ComputedRef; +} export interface UsageProtoMsg { typeUrl: "/google.api.Usage"; value: Uint8Array; @@ -92,6 +98,11 @@ export interface UsageRule { */ skipServiceControl: boolean; } +export interface ReactiveUsageRule { + selector: ComputedRef; + allowUnregisteredCalls: ComputedRef; + skipServiceControl: ComputedRef; +} export interface UsageRuleProtoMsg { typeUrl: "/google.api.UsageRule"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/google/api/visibility.ts b/__fixtures__/v-next/outputv4/google/api/visibility.ts index 10ddd8230b..adeca46ce6 100644 --- a/__fixtures__/v-next/outputv4/google/api/visibility.ts +++ b/__fixtures__/v-next/outputv4/google/api/visibility.ts @@ -1,6 +1,7 @@ import { BinaryReader, BinaryWriter } from "../../binary.js"; import { JsonSafe } from "../../json-safe.js"; import { DeepPartial, isSet } from "../../helpers.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "google.api"; /** * `Visibility` defines restrictions for the visibility of service @@ -34,6 +35,9 @@ export interface Visibility { */ rules: VisibilityRule[]; } +export interface ReactiveVisibility { + rules: ComputedRef; +} export interface VisibilityProtoMsg { typeUrl: "/google.api.Visibility"; value: Uint8Array; @@ -95,6 +99,10 @@ export interface VisibilityRule { */ restriction: string; } +export interface ReactiveVisibilityRule { + selector: ComputedRef; + restriction: ComputedRef; +} export interface VisibilityRuleProtoMsg { typeUrl: "/google.api.VisibilityRule"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/google/logging/type/http_request.ts b/__fixtures__/v-next/outputv4/google/logging/type/http_request.ts index 7e80dedf30..2a067945a6 100644 --- a/__fixtures__/v-next/outputv4/google/logging/type/http_request.ts +++ b/__fixtures__/v-next/outputv4/google/logging/type/http_request.ts @@ -2,6 +2,7 @@ import { Duration, DurationSDKType } from "../../protobuf/duration.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "google.logging.type"; /** * A common proto for logging HTTP requests. Only contains semantics @@ -82,6 +83,23 @@ export interface HttpRequest { /** Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket" */ protocol: string; } +export interface ReactiveHttpRequest { + requestMethod: ComputedRef; + requestUrl: ComputedRef; + requestSize: ComputedRef; + status: ComputedRef; + responseSize: ComputedRef; + userAgent: ComputedRef; + remoteIp: ComputedRef; + serverIp: ComputedRef; + referer: ComputedRef; + latency?: ComputedRef; + cacheLookup: ComputedRef; + cacheHit: ComputedRef; + cacheValidatedWithOriginServer: ComputedRef; + cacheFillBytes: ComputedRef; + protocol: ComputedRef; +} export interface HttpRequestProtoMsg { typeUrl: "/google.logging.type.HttpRequest"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/google/logging/type/log_severity.ts b/__fixtures__/v-next/outputv4/google/logging/type/log_severity.ts index 17fae166c6..5f13285523 100644 --- a/__fixtures__/v-next/outputv4/google/logging/type/log_severity.ts +++ b/__fixtures__/v-next/outputv4/google/logging/type/log_severity.ts @@ -1,3 +1,4 @@ +import { ComputedRef } from "vue"; export const protobufPackage = "google.logging.type"; /** * The severity of the event described in a log entry, expressed as one of the diff --git a/__fixtures__/v-next/outputv4/google/logging/v2/log_entry.ts b/__fixtures__/v-next/outputv4/google/logging/v2/log_entry.ts index ce7a3a0f3d..41969c56ac 100644 --- a/__fixtures__/v-next/outputv4/google/logging/v2/log_entry.ts +++ b/__fixtures__/v-next/outputv4/google/logging/v2/log_entry.ts @@ -7,11 +7,16 @@ import { HttpRequest, HttpRequestSDKType } from "../type/http_request.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial, toTimestamp, fromTimestamp, isObject } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "google.logging.v2"; export interface LogEntry_LabelsEntry { key: string; value: string; } +export interface ReactiveLogEntry_LabelsEntry { + key: ComputedRef; + value: ComputedRef; +} export interface LogEntry_LabelsEntryProtoMsg { typeUrl: string; value: Uint8Array; @@ -168,6 +173,27 @@ export interface LogEntry { */ split?: LogSplit; } +export interface ReactiveLogEntry { + logName: ComputedRef; + resource?: ComputedRef; + protoPayload?: ComputedRef; + textPayload?: ComputedRef; + jsonPayload?: ComputedRef; + timestamp?: ComputedRef; + receiveTimestamp?: ComputedRef; + severity: ComputedRef; + insertId: ComputedRef; + httpRequest?: ComputedRef; + labels: ComputedRef<{ + [key: string]: string; + }>; + operation?: ComputedRef; + trace: ComputedRef; + spanId: ComputedRef; + traceSampled: ComputedRef; + sourceLocation?: ComputedRef; + split?: ComputedRef; +} export interface LogEntryProtoMsg { typeUrl: "/google.logging.v2.LogEntry"; value: Uint8Array; @@ -215,6 +241,12 @@ export interface LogEntryOperation { /** Optional. Set this to True if this is the last log entry in the operation. */ last: boolean; } +export interface ReactiveLogEntryOperation { + id: ComputedRef; + producer: ComputedRef; + first: ComputedRef; + last: ComputedRef; +} export interface LogEntryOperationProtoMsg { typeUrl: "/google.logging.v2.LogEntryOperation"; value: Uint8Array; @@ -254,6 +286,11 @@ export interface LogEntrySourceLocation { */ function: string; } +export interface ReactiveLogEntrySourceLocation { + file: ComputedRef; + line: ComputedRef; + function: ComputedRef; +} export interface LogEntrySourceLocationProtoMsg { typeUrl: "/google.logging.v2.LogEntrySourceLocation"; value: Uint8Array; @@ -288,6 +325,11 @@ export interface LogSplit { /** The total number of log entries that the original LogEntry was split into. */ totalSplits: number; } +export interface ReactiveLogSplit { + uid: ComputedRef; + index: ComputedRef; + totalSplits: ComputedRef; +} export interface LogSplitProtoMsg { typeUrl: "/google.logging.v2.LogSplit"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/google/logging/v2/logging.ts b/__fixtures__/v-next/outputv4/google/logging/v2/logging.ts index 6d1a6be44d..c1f3492d85 100644 --- a/__fixtures__/v-next/outputv4/google/logging/v2/logging.ts +++ b/__fixtures__/v-next/outputv4/google/logging/v2/logging.ts @@ -5,6 +5,7 @@ import { Status, StatusSDKType } from "../../rpc/status.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial, isObject } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "google.logging.v2"; /** An indicator of why entries were omitted. */ export enum TailLogEntriesResponse_SuppressionInfo_Reason { @@ -74,6 +75,9 @@ export interface DeleteLogRequest { */ logName: string; } +export interface ReactiveDeleteLogRequest { + logName: ComputedRef; +} export interface DeleteLogRequestProtoMsg { typeUrl: "/google.logging.v2.DeleteLogRequest"; value: Uint8Array; @@ -86,6 +90,10 @@ export interface WriteLogEntriesRequest_LabelsEntry { key: string; value: string; } +export interface ReactiveWriteLogEntriesRequest_LabelsEntry { + key: ComputedRef; + value: ComputedRef; +} export interface WriteLogEntriesRequest_LabelsEntryProtoMsg { typeUrl: string; value: Uint8Array; @@ -178,6 +186,16 @@ export interface WriteLogEntriesRequest { */ dryRun: boolean; } +export interface ReactiveWriteLogEntriesRequest { + logName: ComputedRef; + resource?: ComputedRef; + labels: ComputedRef<{ + [key: string]: string; + }>; + entries: ComputedRef; + partialSuccess: ComputedRef; + dryRun: ComputedRef; +} export interface WriteLogEntriesRequestProtoMsg { typeUrl: "/google.logging.v2.WriteLogEntriesRequest"; value: Uint8Array; @@ -195,6 +213,7 @@ export interface WriteLogEntriesRequestSDKType { } /** Result returned from WriteLogEntries. */ export interface WriteLogEntriesResponse {} +export interface ReactiveWriteLogEntriesResponse {} export interface WriteLogEntriesResponseProtoMsg { typeUrl: "/google.logging.v2.WriteLogEntriesResponse"; value: Uint8Array; @@ -205,6 +224,10 @@ export interface WriteLogEntriesPartialErrors_LogEntryErrorsEntry { key: number; value?: Status; } +export interface ReactiveWriteLogEntriesPartialErrors_LogEntryErrorsEntry { + key: ComputedRef; + value?: ComputedRef; +} export interface WriteLogEntriesPartialErrors_LogEntryErrorsEntryProtoMsg { typeUrl: string; value: Uint8Array; @@ -227,6 +250,11 @@ export interface WriteLogEntriesPartialErrors { [key: number]: Status; }; } +export interface ReactiveWriteLogEntriesPartialErrors { + logEntryErrors: ComputedRef<{ + [key: number]: Status; + }>; +} export interface WriteLogEntriesPartialErrorsProtoMsg { typeUrl: "/google.logging.v2.WriteLogEntriesPartialErrors"; value: Uint8Array; @@ -292,6 +320,13 @@ export interface ListLogEntriesRequest { */ pageToken: string; } +export interface ReactiveListLogEntriesRequest { + resourceNames: ComputedRef; + filter: ComputedRef; + orderBy: ComputedRef; + pageSize: ComputedRef; + pageToken: ComputedRef; +} export interface ListLogEntriesRequestProtoMsg { typeUrl: "/google.logging.v2.ListLogEntriesRequest"; value: Uint8Array; @@ -326,6 +361,10 @@ export interface ListLogEntriesResponse { */ nextPageToken: string; } +export interface ReactiveListLogEntriesResponse { + entries: ComputedRef; + nextPageToken: ComputedRef; +} export interface ListLogEntriesResponseProtoMsg { typeUrl: "/google.logging.v2.ListLogEntriesResponse"; value: Uint8Array; @@ -351,6 +390,10 @@ export interface ListMonitoredResourceDescriptorsRequest { */ pageToken: string; } +export interface ReactiveListMonitoredResourceDescriptorsRequest { + pageSize: ComputedRef; + pageToken: ComputedRef; +} export interface ListMonitoredResourceDescriptorsRequestProtoMsg { typeUrl: "/google.logging.v2.ListMonitoredResourceDescriptorsRequest"; value: Uint8Array; @@ -371,6 +414,10 @@ export interface ListMonitoredResourceDescriptorsResponse { */ nextPageToken: string; } +export interface ReactiveListMonitoredResourceDescriptorsResponse { + resourceDescriptors: ComputedRef; + nextPageToken: ComputedRef; +} export interface ListMonitoredResourceDescriptorsResponseProtoMsg { typeUrl: "/google.logging.v2.ListMonitoredResourceDescriptorsResponse"; value: Uint8Array; @@ -421,6 +468,12 @@ export interface ListLogsRequest { */ resourceNames: string[]; } +export interface ReactiveListLogsRequest { + parent: ComputedRef; + pageSize: ComputedRef; + pageToken: ComputedRef; + resourceNames: ComputedRef; +} export interface ListLogsRequestProtoMsg { typeUrl: "/google.logging.v2.ListLogsRequest"; value: Uint8Array; @@ -447,6 +500,10 @@ export interface ListLogsResponse { */ nextPageToken: string; } +export interface ReactiveListLogsResponse { + logNames: ComputedRef; + nextPageToken: ComputedRef; +} export interface ListLogsResponseProtoMsg { typeUrl: "/google.logging.v2.ListLogsResponse"; value: Uint8Array; @@ -492,6 +549,11 @@ export interface TailLogEntriesRequest { */ bufferWindow?: Duration; } +export interface ReactiveTailLogEntriesRequest { + resourceNames: ComputedRef; + filter: ComputedRef; + bufferWindow?: ComputedRef; +} export interface TailLogEntriesRequestProtoMsg { typeUrl: "/google.logging.v2.TailLogEntriesRequest"; value: Uint8Array; @@ -519,6 +581,10 @@ export interface TailLogEntriesResponse { */ suppressionInfo: TailLogEntriesResponse_SuppressionInfo[]; } +export interface ReactiveTailLogEntriesResponse { + entries: ComputedRef; + suppressionInfo: ComputedRef; +} export interface TailLogEntriesResponseProtoMsg { typeUrl: "/google.logging.v2.TailLogEntriesResponse"; value: Uint8Array; @@ -535,6 +601,10 @@ export interface TailLogEntriesResponse_SuppressionInfo { /** A lower bound on the count of entries omitted due to `reason`. */ suppressedCount: number; } +export interface ReactiveTailLogEntriesResponse_SuppressionInfo { + reason: ComputedRef; + suppressedCount: ComputedRef; +} export interface TailLogEntriesResponse_SuppressionInfoProtoMsg { typeUrl: "/google.logging.v2.SuppressionInfo"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/google/logging/v2/logging_config.ts b/__fixtures__/v-next/outputv4/google/logging/v2/logging_config.ts index 99b27c9942..442944ca12 100644 --- a/__fixtures__/v-next/outputv4/google/logging/v2/logging_config.ts +++ b/__fixtures__/v-next/outputv4/google/logging/v2/logging_config.ts @@ -3,6 +3,7 @@ import { Timestamp, TimestampSDKType } from "../../protobuf/timestamp.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { toTimestamp, fromTimestamp, isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "google.logging.v2"; /** Deprecated. This is unused. */ export enum LogSink_VersionFormat { @@ -229,6 +230,17 @@ export interface LogBucket { */ cmekSettings?: CmekSettings; } +export interface ReactiveLogBucket { + name: ComputedRef; + description: ComputedRef; + createTime?: ComputedRef; + updateTime?: ComputedRef; + retentionDays: ComputedRef; + locked: ComputedRef; + lifecycleState: ComputedRef; + restrictedFields: ComputedRef; + cmekSettings?: ComputedRef; +} export interface LogBucketProtoMsg { typeUrl: "/google.logging.v2.LogBucket"; value: Uint8Array; @@ -279,6 +291,13 @@ export interface LogView { */ filter: string; } +export interface ReactiveLogView { + name: ComputedRef; + description: ComputedRef; + createTime?: ComputedRef; + updateTime?: ComputedRef; + filter: ComputedRef; +} export interface LogViewProtoMsg { typeUrl: "/google.logging.v2.LogView"; value: Uint8Array; @@ -409,6 +428,20 @@ export interface LogSink { */ updateTime?: Date; } +export interface ReactiveLogSink { + name: ComputedRef; + destination: ComputedRef; + filter: ComputedRef; + description: ComputedRef; + disabled: ComputedRef; + exclusions: ComputedRef; + outputVersionFormat: ComputedRef; + writerIdentity: ComputedRef; + includeChildren: ComputedRef; + bigqueryOptions?: ComputedRef; + createTime?: ComputedRef; + updateTime?: ComputedRef; +} export interface LogSinkProtoMsg { typeUrl: "/google.logging.v2.LogSink"; value: Uint8Array; @@ -459,6 +492,10 @@ export interface BigQueryOptions { */ usesTimestampColumnPartitioning: boolean; } +export interface ReactiveBigQueryOptions { + usePartitionedTables: ComputedRef; + usesTimestampColumnPartitioning: ComputedRef; +} export interface BigQueryOptionsProtoMsg { typeUrl: "/google.logging.v2.BigQueryOptions"; value: Uint8Array; @@ -497,6 +534,11 @@ export interface ListBucketsRequest { */ pageSize: number; } +export interface ReactiveListBucketsRequest { + parent: ComputedRef; + pageToken: ComputedRef; + pageSize: ComputedRef; +} export interface ListBucketsRequestProtoMsg { typeUrl: "/google.logging.v2.ListBucketsRequest"; value: Uint8Array; @@ -518,6 +560,10 @@ export interface ListBucketsResponse { */ nextPageToken: string; } +export interface ReactiveListBucketsResponse { + buckets: ComputedRef; + nextPageToken: ComputedRef; +} export interface ListBucketsResponseProtoMsg { typeUrl: "/google.logging.v2.ListBucketsResponse"; value: Uint8Array; @@ -552,6 +598,11 @@ export interface CreateBucketRequest { */ bucket?: LogBucket; } +export interface ReactiveCreateBucketRequest { + parent: ComputedRef; + bucketId: ComputedRef; + bucket?: ComputedRef; +} export interface CreateBucketRequestProtoMsg { typeUrl: "/google.logging.v2.CreateBucketRequest"; value: Uint8Array; @@ -591,6 +642,11 @@ export interface UpdateBucketRequest { */ updateMask?: FieldMask; } +export interface ReactiveUpdateBucketRequest { + name: ComputedRef; + bucket?: ComputedRef; + updateMask?: ComputedRef; +} export interface UpdateBucketRequestProtoMsg { typeUrl: "/google.logging.v2.UpdateBucketRequest"; value: Uint8Array; @@ -617,6 +673,9 @@ export interface GetBucketRequest { */ name: string; } +export interface ReactiveGetBucketRequest { + name: ComputedRef; +} export interface GetBucketRequestProtoMsg { typeUrl: "/google.logging.v2.GetBucketRequest"; value: Uint8Array; @@ -641,6 +700,9 @@ export interface DeleteBucketRequest { */ name: string; } +export interface ReactiveDeleteBucketRequest { + name: ComputedRef; +} export interface DeleteBucketRequestProtoMsg { typeUrl: "/google.logging.v2.DeleteBucketRequest"; value: Uint8Array; @@ -665,6 +727,9 @@ export interface UndeleteBucketRequest { */ name: string; } +export interface ReactiveUndeleteBucketRequest { + name: ComputedRef; +} export interface UndeleteBucketRequestProtoMsg { typeUrl: "/google.logging.v2.UndeleteBucketRequest"; value: Uint8Array; @@ -696,6 +761,11 @@ export interface ListViewsRequest { */ pageSize: number; } +export interface ReactiveListViewsRequest { + parent: ComputedRef; + pageToken: ComputedRef; + pageSize: ComputedRef; +} export interface ListViewsRequestProtoMsg { typeUrl: "/google.logging.v2.ListViewsRequest"; value: Uint8Array; @@ -717,6 +787,10 @@ export interface ListViewsResponse { */ nextPageToken: string; } +export interface ReactiveListViewsResponse { + views: ComputedRef; + nextPageToken: ComputedRef; +} export interface ListViewsResponseProtoMsg { typeUrl: "/google.logging.v2.ListViewsResponse"; value: Uint8Array; @@ -743,6 +817,11 @@ export interface CreateViewRequest { /** Required. The new view. */ view?: LogView; } +export interface ReactiveCreateViewRequest { + parent: ComputedRef; + viewId: ComputedRef; + view?: ComputedRef; +} export interface CreateViewRequestProtoMsg { typeUrl: "/google.logging.v2.CreateViewRequest"; value: Uint8Array; @@ -779,6 +858,11 @@ export interface UpdateViewRequest { */ updateMask?: FieldMask; } +export interface ReactiveUpdateViewRequest { + name: ComputedRef; + view?: ComputedRef; + updateMask?: ComputedRef; +} export interface UpdateViewRequestProtoMsg { typeUrl: "/google.logging.v2.UpdateViewRequest"; value: Uint8Array; @@ -802,6 +886,9 @@ export interface GetViewRequest { */ name: string; } +export interface ReactiveGetViewRequest { + name: ComputedRef; +} export interface GetViewRequestProtoMsg { typeUrl: "/google.logging.v2.GetViewRequest"; value: Uint8Array; @@ -823,6 +910,9 @@ export interface DeleteViewRequest { */ name: string; } +export interface ReactiveDeleteViewRequest { + name: ComputedRef; +} export interface DeleteViewRequestProtoMsg { typeUrl: "/google.logging.v2.DeleteViewRequest"; value: Uint8Array; @@ -856,6 +946,11 @@ export interface ListSinksRequest { */ pageSize: number; } +export interface ReactiveListSinksRequest { + parent: ComputedRef; + pageToken: ComputedRef; + pageSize: ComputedRef; +} export interface ListSinksRequestProtoMsg { typeUrl: "/google.logging.v2.ListSinksRequest"; value: Uint8Array; @@ -877,6 +972,10 @@ export interface ListSinksResponse { */ nextPageToken: string; } +export interface ReactiveListSinksResponse { + sinks: ComputedRef; + nextPageToken: ComputedRef; +} export interface ListSinksResponseProtoMsg { typeUrl: "/google.logging.v2.ListSinksResponse"; value: Uint8Array; @@ -902,6 +1001,9 @@ export interface GetSinkRequest { */ sinkName: string; } +export interface ReactiveGetSinkRequest { + sinkName: ComputedRef; +} export interface GetSinkRequestProtoMsg { typeUrl: "/google.logging.v2.GetSinkRequest"; value: Uint8Array; @@ -946,6 +1048,11 @@ export interface CreateSinkRequest { */ uniqueWriterIdentity: boolean; } +export interface ReactiveCreateSinkRequest { + parent: ComputedRef; + sink?: ComputedRef; + uniqueWriterIdentity: ComputedRef; +} export interface CreateSinkRequestProtoMsg { typeUrl: "/google.logging.v2.CreateSinkRequest"; value: Uint8Array; @@ -1011,6 +1118,12 @@ export interface UpdateSinkRequest { */ updateMask?: FieldMask; } +export interface ReactiveUpdateSinkRequest { + sinkName: ComputedRef; + sink?: ComputedRef; + uniqueWriterIdentity: ComputedRef; + updateMask?: ComputedRef; +} export interface UpdateSinkRequestProtoMsg { typeUrl: "/google.logging.v2.UpdateSinkRequest"; value: Uint8Array; @@ -1039,6 +1152,9 @@ export interface DeleteSinkRequest { */ sinkName: string; } +export interface ReactiveDeleteSinkRequest { + sinkName: ComputedRef; +} export interface DeleteSinkRequestProtoMsg { typeUrl: "/google.logging.v2.DeleteSinkRequest"; value: Uint8Array; @@ -1097,6 +1213,14 @@ export interface LogExclusion { */ updateTime?: Date; } +export interface ReactiveLogExclusion { + name: ComputedRef; + description: ComputedRef; + filter: ComputedRef; + disabled: ComputedRef; + createTime?: ComputedRef; + updateTime?: ComputedRef; +} export interface LogExclusionProtoMsg { typeUrl: "/google.logging.v2.LogExclusion"; value: Uint8Array; @@ -1141,6 +1265,11 @@ export interface ListExclusionsRequest { */ pageSize: number; } +export interface ReactiveListExclusionsRequest { + parent: ComputedRef; + pageToken: ComputedRef; + pageSize: ComputedRef; +} export interface ListExclusionsRequestProtoMsg { typeUrl: "/google.logging.v2.ListExclusionsRequest"; value: Uint8Array; @@ -1162,6 +1291,10 @@ export interface ListExclusionsResponse { */ nextPageToken: string; } +export interface ReactiveListExclusionsResponse { + exclusions: ComputedRef; + nextPageToken: ComputedRef; +} export interface ListExclusionsResponseProtoMsg { typeUrl: "/google.logging.v2.ListExclusionsResponse"; value: Uint8Array; @@ -1187,6 +1320,9 @@ export interface GetExclusionRequest { */ name: string; } +export interface ReactiveGetExclusionRequest { + name: ComputedRef; +} export interface GetExclusionRequestProtoMsg { typeUrl: "/google.logging.v2.GetExclusionRequest"; value: Uint8Array; @@ -1217,6 +1353,10 @@ export interface CreateExclusionRequest { */ exclusion?: LogExclusion; } +export interface ReactiveCreateExclusionRequest { + parent: ComputedRef; + exclusion?: ComputedRef; +} export interface CreateExclusionRequestProtoMsg { typeUrl: "/google.logging.v2.CreateExclusionRequest"; value: Uint8Array; @@ -1257,6 +1397,11 @@ export interface UpdateExclusionRequest { */ updateMask?: FieldMask; } +export interface ReactiveUpdateExclusionRequest { + name: ComputedRef; + exclusion?: ComputedRef; + updateMask?: ComputedRef; +} export interface UpdateExclusionRequestProtoMsg { typeUrl: "/google.logging.v2.UpdateExclusionRequest"; value: Uint8Array; @@ -1283,6 +1428,9 @@ export interface DeleteExclusionRequest { */ name: string; } +export interface ReactiveDeleteExclusionRequest { + name: ComputedRef; +} export interface DeleteExclusionRequestProtoMsg { typeUrl: "/google.logging.v2.DeleteExclusionRequest"; value: Uint8Array; @@ -1319,6 +1467,9 @@ export interface GetCmekSettingsRequest { */ name: string; } +export interface ReactiveGetCmekSettingsRequest { + name: ComputedRef; +} export interface GetCmekSettingsRequestProtoMsg { typeUrl: "/google.logging.v2.GetCmekSettingsRequest"; value: Uint8Array; @@ -1379,6 +1530,11 @@ export interface UpdateCmekSettingsRequest { */ updateMask?: FieldMask; } +export interface ReactiveUpdateCmekSettingsRequest { + name: ComputedRef; + cmekSettings?: ComputedRef; + updateMask?: ComputedRef; +} export interface UpdateCmekSettingsRequestProtoMsg { typeUrl: "/google.logging.v2.UpdateCmekSettingsRequest"; value: Uint8Array; @@ -1458,6 +1614,11 @@ export interface CmekSettings { */ serviceAccountId: string; } +export interface ReactiveCmekSettings { + name: ComputedRef; + kmsKeyName: ComputedRef; + serviceAccountId: ComputedRef; +} export interface CmekSettingsProtoMsg { typeUrl: "/google.logging.v2.CmekSettings"; value: Uint8Array; @@ -1507,6 +1668,9 @@ export interface GetSettingsRequest { */ name: string; } +export interface ReactiveGetSettingsRequest { + name: ComputedRef; +} export interface GetSettingsRequestProtoMsg { typeUrl: "/google.logging.v2.GetSettingsRequest"; value: Uint8Array; @@ -1564,6 +1728,11 @@ export interface UpdateSettingsRequest { */ updateMask?: FieldMask; } +export interface ReactiveUpdateSettingsRequest { + name: ComputedRef; + settings?: ComputedRef; + updateMask?: ComputedRef; +} export interface UpdateSettingsRequestProtoMsg { typeUrl: "/google.logging.v2.UpdateSettingsRequest"; value: Uint8Array; @@ -1647,6 +1816,13 @@ export interface Settings { */ disableDefaultSink: boolean; } +export interface ReactiveSettings { + name: ComputedRef; + kmsKeyName: ComputedRef; + kmsServiceAccountId: ComputedRef; + storageLocation: ComputedRef; + disableDefaultSink: ComputedRef; +} export interface SettingsProtoMsg { typeUrl: "/google.logging.v2.Settings"; value: Uint8Array; @@ -1680,6 +1856,11 @@ export interface CopyLogEntriesRequest { /** Required. Destination to which to copy log entries. */ destination: string; } +export interface ReactiveCopyLogEntriesRequest { + name: ComputedRef; + filter: ComputedRef; + destination: ComputedRef; +} export interface CopyLogEntriesRequestProtoMsg { typeUrl: "/google.logging.v2.CopyLogEntriesRequest"; value: Uint8Array; @@ -1715,6 +1896,15 @@ export interface CopyLogEntriesMetadata { */ writerIdentity: string; } +export interface ReactiveCopyLogEntriesMetadata { + startTime?: ComputedRef; + endTime?: ComputedRef; + state: ComputedRef; + cancellationRequested: ComputedRef; + request?: ComputedRef; + progress: ComputedRef; + writerIdentity: ComputedRef; +} export interface CopyLogEntriesMetadataProtoMsg { typeUrl: "/google.logging.v2.CopyLogEntriesMetadata"; value: Uint8Array; @@ -1734,6 +1924,9 @@ export interface CopyLogEntriesResponse { /** Number of log entries copied. */ logEntriesCopiedCount: bigint; } +export interface ReactiveCopyLogEntriesResponse { + logEntriesCopiedCount: ComputedRef; +} export interface CopyLogEntriesResponseProtoMsg { typeUrl: "/google.logging.v2.CopyLogEntriesResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/google/logging/v2/logging_metrics.ts b/__fixtures__/v-next/outputv4/google/logging/v2/logging_metrics.ts index d963191aba..ba62b02d98 100644 --- a/__fixtures__/v-next/outputv4/google/logging/v2/logging_metrics.ts +++ b/__fixtures__/v-next/outputv4/google/logging/v2/logging_metrics.ts @@ -4,6 +4,7 @@ import { Timestamp, TimestampSDKType } from "../../protobuf/timestamp.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial, toTimestamp, fromTimestamp, isObject } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "google.logging.v2"; /** Logging API version. */ export enum LogMetric_ApiVersion { @@ -43,6 +44,10 @@ export interface LogMetric_LabelExtractorsEntry { key: string; value: string; } +export interface ReactiveLogMetric_LabelExtractorsEntry { + key: ComputedRef; + value: ComputedRef; +} export interface LogMetric_LabelExtractorsEntryProtoMsg { typeUrl: string; value: Uint8Array; @@ -187,6 +192,21 @@ export interface LogMetric { /** @deprecated */ version: LogMetric_ApiVersion; } +export interface ReactiveLogMetric { + name: ComputedRef; + description: ComputedRef; + filter: ComputedRef; + disabled: ComputedRef; + metricDescriptor?: ComputedRef; + valueExtractor: ComputedRef; + labelExtractors: ComputedRef<{ + [key: string]: string; + }>; + bucketOptions?: ComputedRef; + createTime?: ComputedRef; + updateTime?: ComputedRef; + version: ComputedRef; +} export interface LogMetricProtoMsg { typeUrl: "/google.logging.v2.LogMetric"; value: Uint8Array; @@ -238,6 +258,11 @@ export interface ListLogMetricsRequest { */ pageSize: number; } +export interface ReactiveListLogMetricsRequest { + parent: ComputedRef; + pageToken: ComputedRef; + pageSize: ComputedRef; +} export interface ListLogMetricsRequestProtoMsg { typeUrl: "/google.logging.v2.ListLogMetricsRequest"; value: Uint8Array; @@ -259,6 +284,10 @@ export interface ListLogMetricsResponse { */ nextPageToken: string; } +export interface ReactiveListLogMetricsResponse { + metrics: ComputedRef; + nextPageToken: ComputedRef; +} export interface ListLogMetricsResponseProtoMsg { typeUrl: "/google.logging.v2.ListLogMetricsResponse"; value: Uint8Array; @@ -277,6 +306,9 @@ export interface GetLogMetricRequest { */ metricName: string; } +export interface ReactiveGetLogMetricRequest { + metricName: ComputedRef; +} export interface GetLogMetricRequestProtoMsg { typeUrl: "/google.logging.v2.GetLogMetricRequest"; value: Uint8Array; @@ -301,6 +333,10 @@ export interface CreateLogMetricRequest { */ metric?: LogMetric; } +export interface ReactiveCreateLogMetricRequest { + parent: ComputedRef; + metric?: ComputedRef; +} export interface CreateLogMetricRequestProtoMsg { typeUrl: "/google.logging.v2.CreateLogMetricRequest"; value: Uint8Array; @@ -325,6 +361,10 @@ export interface UpdateLogMetricRequest { /** Required. The updated metric. */ metric?: LogMetric; } +export interface ReactiveUpdateLogMetricRequest { + metricName: ComputedRef; + metric?: ComputedRef; +} export interface UpdateLogMetricRequestProtoMsg { typeUrl: "/google.logging.v2.UpdateLogMetricRequest"; value: Uint8Array; @@ -343,6 +383,9 @@ export interface DeleteLogMetricRequest { */ metricName: string; } +export interface ReactiveDeleteLogMetricRequest { + metricName: ComputedRef; +} export interface DeleteLogMetricRequestProtoMsg { typeUrl: "/google.logging.v2.DeleteLogMetricRequest"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/google/longrunning/operations.ts b/__fixtures__/v-next/outputv4/google/longrunning/operations.ts index a096efd145..9cd83f96d8 100644 --- a/__fixtures__/v-next/outputv4/google/longrunning/operations.ts +++ b/__fixtures__/v-next/outputv4/google/longrunning/operations.ts @@ -4,6 +4,7 @@ import { Status, StatusSDKType } from "../rpc/status.js"; import { BinaryReader, BinaryWriter } from "../../binary.js"; import { isSet, DeepPartial } from "../../helpers.js"; import { JsonSafe } from "../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "google.longrunning"; /** * This resource represents a long-running operation that is the result of a @@ -43,6 +44,13 @@ export interface Operation { */ response?: Any; } +export interface ReactiveOperation { + name: ComputedRef; + metadata?: ComputedRef; + done: ComputedRef; + error?: ComputedRef; + response?: ComputedRef; +} export interface OperationProtoMsg { typeUrl: "/google.longrunning.Operation"; value: Uint8Array; @@ -63,6 +71,9 @@ export interface GetOperationRequest { /** The name of the operation resource. */ name: string; } +export interface ReactiveGetOperationRequest { + name: ComputedRef; +} export interface GetOperationRequestProtoMsg { typeUrl: "/google.longrunning.GetOperationRequest"; value: Uint8Array; @@ -82,6 +93,12 @@ export interface ListOperationsRequest { /** The standard list page token. */ pageToken: string; } +export interface ReactiveListOperationsRequest { + name: ComputedRef; + filter: ComputedRef; + pageSize: ComputedRef; + pageToken: ComputedRef; +} export interface ListOperationsRequestProtoMsg { typeUrl: "/google.longrunning.ListOperationsRequest"; value: Uint8Array; @@ -100,6 +117,10 @@ export interface ListOperationsResponse { /** The standard List next-page token. */ nextPageToken: string; } +export interface ReactiveListOperationsResponse { + operations: ComputedRef; + nextPageToken: ComputedRef; +} export interface ListOperationsResponseProtoMsg { typeUrl: "/google.longrunning.ListOperationsResponse"; value: Uint8Array; @@ -114,6 +135,9 @@ export interface CancelOperationRequest { /** The name of the operation resource to be cancelled. */ name: string; } +export interface ReactiveCancelOperationRequest { + name: ComputedRef; +} export interface CancelOperationRequestProtoMsg { typeUrl: "/google.longrunning.CancelOperationRequest"; value: Uint8Array; @@ -127,6 +151,9 @@ export interface DeleteOperationRequest { /** The name of the operation resource to be deleted. */ name: string; } +export interface ReactiveDeleteOperationRequest { + name: ComputedRef; +} export interface DeleteOperationRequestProtoMsg { typeUrl: "/google.longrunning.DeleteOperationRequest"; value: Uint8Array; @@ -146,6 +173,10 @@ export interface WaitOperationRequest { */ timeout?: Duration; } +export interface ReactiveWaitOperationRequest { + name: ComputedRef; + timeout?: ComputedRef; +} export interface WaitOperationRequestProtoMsg { typeUrl: "/google.longrunning.WaitOperationRequest"; value: Uint8Array; @@ -191,6 +222,10 @@ export interface OperationInfo { */ metadataType: string; } +export interface ReactiveOperationInfo { + responseType: ComputedRef; + metadataType: ComputedRef; +} export interface OperationInfoProtoMsg { typeUrl: "/google.longrunning.OperationInfo"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/google/protobuf/any.ts b/__fixtures__/v-next/outputv4/google/protobuf/any.ts index 1a705eea55..a044d6fb62 100644 --- a/__fixtures__/v-next/outputv4/google/protobuf/any.ts +++ b/__fixtures__/v-next/outputv4/google/protobuf/any.ts @@ -1,6 +1,7 @@ import { BinaryReader, BinaryWriter } from "../../binary.js"; import { isSet, bytesFromBase64, base64FromBytes, DeepPartial } from "../../helpers.js"; import { JsonSafe } from "../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "google.protobuf"; /** * `Any` contains an arbitrary serialized protocol buffer message along with a @@ -118,6 +119,11 @@ export interface Any { /** Must be a valid serialized protocol buffer of the above specified type. */ value: Uint8Array; } +export interface ReactiveAny { + $typeUrl?: ComputedRef<"/google.protobuf.Any" | string>; + typeUrl: ComputedRef; + value: ComputedRef; +} export interface AnyProtoMsg { typeUrl: "/google.protobuf.Any"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/google/protobuf/api.ts b/__fixtures__/v-next/outputv4/google/protobuf/api.ts index 359d83e8cc..fe4d429963 100644 --- a/__fixtures__/v-next/outputv4/google/protobuf/api.ts +++ b/__fixtures__/v-next/outputv4/google/protobuf/api.ts @@ -3,6 +3,7 @@ import { SourceContext, SourceContextSDKType } from "./source_context.js"; import { BinaryReader, BinaryWriter } from "../../binary.js"; import { isSet, DeepPartial } from "../../helpers.js"; import { JsonSafe } from "../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "google.protobuf"; /** * Api is a light-weight descriptor for an API Interface. @@ -57,6 +58,15 @@ export interface Api { /** The source syntax of the service. */ syntax: Syntax; } +export interface ReactiveApi { + name: ComputedRef; + methods: ComputedRef; + options: ComputedRef; + version: ComputedRef; + sourceContext?: ComputedRef; + mixins: ComputedRef; + syntax: ComputedRef; +} export interface ApiProtoMsg { typeUrl: "/google.protobuf.Api"; value: Uint8Array; @@ -98,6 +108,15 @@ export interface Method { /** The source syntax of this method. */ syntax: Syntax; } +export interface ReactiveMethod { + name: ComputedRef; + requestTypeUrl: ComputedRef; + requestStreaming: ComputedRef; + responseTypeUrl: ComputedRef; + responseStreaming: ComputedRef; + options: ComputedRef; + syntax: ComputedRef; +} export interface MethodProtoMsg { typeUrl: "/google.protobuf.Method"; value: Uint8Array; @@ -201,6 +220,10 @@ export interface Mixin { */ root: string; } +export interface ReactiveMixin { + name: ComputedRef; + root: ComputedRef; +} export interface MixinProtoMsg { typeUrl: "/google.protobuf.Mixin"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/google/protobuf/compiler/plugin.ts b/__fixtures__/v-next/outputv4/google/protobuf/compiler/plugin.ts index d057e41456..c739ce263c 100644 --- a/__fixtures__/v-next/outputv4/google/protobuf/compiler/plugin.ts +++ b/__fixtures__/v-next/outputv4/google/protobuf/compiler/plugin.ts @@ -2,6 +2,7 @@ import { FileDescriptorProto, FileDescriptorProtoSDKType } from "../descriptor.j import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "google.protobuf.compiler"; /** The version number of protocol compiler. */ export interface Version { @@ -14,6 +15,12 @@ export interface Version { */ suffix: string; } +export interface ReactiveVersion { + major: ComputedRef; + minor: ComputedRef; + patch: ComputedRef; + suffix: ComputedRef; +} export interface VersionProtoMsg { typeUrl: "/google.protobuf.compiler.Version"; value: Uint8Array; @@ -55,6 +62,12 @@ export interface CodeGeneratorRequest { /** The version number of protocol compiler. */ compilerVersion?: Version; } +export interface ReactiveCodeGeneratorRequest { + fileToGenerate: ComputedRef; + parameter: ComputedRef; + protoFile: ComputedRef; + compilerVersion?: ComputedRef; +} export interface CodeGeneratorRequestProtoMsg { typeUrl: "/google.protobuf.compiler.CodeGeneratorRequest"; value: Uint8Array; @@ -81,6 +94,10 @@ export interface CodeGeneratorResponse { error: string; file: CodeGeneratorResponse_File[]; } +export interface ReactiveCodeGeneratorResponse { + error: ComputedRef; + file: ComputedRef; +} export interface CodeGeneratorResponseProtoMsg { typeUrl: "/google.protobuf.compiler.CodeGeneratorResponse"; value: Uint8Array; @@ -149,6 +166,11 @@ export interface CodeGeneratorResponse_File { /** The file contents. */ content: string; } +export interface ReactiveCodeGeneratorResponse_File { + name: ComputedRef; + insertionPoint: ComputedRef; + content: ComputedRef; +} export interface CodeGeneratorResponse_FileProtoMsg { typeUrl: "/google.protobuf.compiler.File"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/google/protobuf/descriptor.ts b/__fixtures__/v-next/outputv4/google/protobuf/descriptor.ts index 91fbd835f5..5c79e0f5d0 100644 --- a/__fixtures__/v-next/outputv4/google/protobuf/descriptor.ts +++ b/__fixtures__/v-next/outputv4/google/protobuf/descriptor.ts @@ -1,6 +1,7 @@ import { BinaryReader, BinaryWriter } from "../../binary.js"; import { JsonSafe } from "../../json-safe.js"; import { DeepPartial, isSet, bytesFromBase64, base64FromBytes } from "../../helpers.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "google.protobuf"; export enum FieldDescriptorProto_Type { /** @@ -359,6 +360,9 @@ export function methodOptions_IdempotencyLevelToJSON(object: MethodOptions_Idemp export interface FileDescriptorSet { file: FileDescriptorProto[]; } +export interface ReactiveFileDescriptorSet { + file: ComputedRef; +} export interface FileDescriptorSetProtoMsg { typeUrl: "/google.protobuf.FileDescriptorSet"; value: Uint8Array; @@ -404,6 +408,20 @@ export interface FileDescriptorProto { */ syntax: string; } +export interface ReactiveFileDescriptorProto { + name: ComputedRef; + package: ComputedRef; + dependency: ComputedRef; + publicDependency: ComputedRef; + weakDependency: ComputedRef; + messageType: ComputedRef; + enumType: ComputedRef; + service: ComputedRef; + extension: ComputedRef; + options?: ComputedRef; + sourceCodeInfo?: ComputedRef; + syntax: ComputedRef; +} export interface FileDescriptorProtoProtoMsg { typeUrl: "/google.protobuf.FileDescriptorProto"; value: Uint8Array; @@ -440,6 +458,18 @@ export interface DescriptorProto { */ reservedName: string[]; } +export interface ReactiveDescriptorProto { + name: ComputedRef; + field: ComputedRef; + extension: ComputedRef; + nestedType: ComputedRef; + enumType: ComputedRef; + extensionRange: ComputedRef; + oneofDecl: ComputedRef; + options?: ComputedRef; + reservedRange: ComputedRef; + reservedName: ComputedRef; +} export interface DescriptorProtoProtoMsg { typeUrl: "/google.protobuf.DescriptorProto"; value: Uint8Array; @@ -464,6 +494,11 @@ export interface DescriptorProto_ExtensionRange { end: number; options?: ExtensionRangeOptions; } +export interface ReactiveDescriptorProto_ExtensionRange { + start: ComputedRef; + end: ComputedRef; + options?: ComputedRef; +} export interface DescriptorProto_ExtensionRangeProtoMsg { typeUrl: "/google.protobuf.ExtensionRange"; value: Uint8Array; @@ -484,6 +519,10 @@ export interface DescriptorProto_ReservedRange { /** Exclusive. */ end: number; } +export interface ReactiveDescriptorProto_ReservedRange { + start: ComputedRef; + end: ComputedRef; +} export interface DescriptorProto_ReservedRangeProtoMsg { typeUrl: "/google.protobuf.ReservedRange"; value: Uint8Array; @@ -501,6 +540,9 @@ export interface ExtensionRangeOptions { /** The parser stores options it doesn't recognize here. See above. */ uninterpretedOption: UninterpretedOption[]; } +export interface ReactiveExtensionRangeOptions { + uninterpretedOption: ComputedRef; +} export interface ExtensionRangeOptionsProtoMsg { typeUrl: "/google.protobuf.ExtensionRangeOptions"; value: Uint8Array; @@ -553,6 +595,18 @@ export interface FieldDescriptorProto { jsonName: string; options?: FieldOptions; } +export interface ReactiveFieldDescriptorProto { + name: ComputedRef; + number: ComputedRef; + label: ComputedRef; + type: ComputedRef; + typeName: ComputedRef; + extendee: ComputedRef; + defaultValue: ComputedRef; + oneofIndex: ComputedRef; + jsonName: ComputedRef; + options?: ComputedRef; +} export interface FieldDescriptorProtoProtoMsg { typeUrl: "/google.protobuf.FieldDescriptorProto"; value: Uint8Array; @@ -575,6 +629,10 @@ export interface OneofDescriptorProto { name: string; options?: OneofOptions; } +export interface ReactiveOneofDescriptorProto { + name: ComputedRef; + options?: ComputedRef; +} export interface OneofDescriptorProtoProtoMsg { typeUrl: "/google.protobuf.OneofDescriptorProto"; value: Uint8Array; @@ -601,6 +659,13 @@ export interface EnumDescriptorProto { */ reservedName: string[]; } +export interface ReactiveEnumDescriptorProto { + name: ComputedRef; + value: ComputedRef; + options?: ComputedRef; + reservedRange: ComputedRef; + reservedName: ComputedRef; +} export interface EnumDescriptorProtoProtoMsg { typeUrl: "/google.protobuf.EnumDescriptorProto"; value: Uint8Array; @@ -627,6 +692,10 @@ export interface EnumDescriptorProto_EnumReservedRange { /** Inclusive. */ end: number; } +export interface ReactiveEnumDescriptorProto_EnumReservedRange { + start: ComputedRef; + end: ComputedRef; +} export interface EnumDescriptorProto_EnumReservedRangeProtoMsg { typeUrl: "/google.protobuf.EnumReservedRange"; value: Uint8Array; @@ -649,6 +718,11 @@ export interface EnumValueDescriptorProto { number: number; options?: EnumValueOptions; } +export interface ReactiveEnumValueDescriptorProto { + name: ComputedRef; + number: ComputedRef; + options?: ComputedRef; +} export interface EnumValueDescriptorProtoProtoMsg { typeUrl: "/google.protobuf.EnumValueDescriptorProto"; value: Uint8Array; @@ -665,6 +739,11 @@ export interface ServiceDescriptorProto { method: MethodDescriptorProto[]; options?: ServiceOptions; } +export interface ReactiveServiceDescriptorProto { + name: ComputedRef; + method: ComputedRef; + options?: ComputedRef; +} export interface ServiceDescriptorProtoProtoMsg { typeUrl: "/google.protobuf.ServiceDescriptorProto"; value: Uint8Array; @@ -690,6 +769,14 @@ export interface MethodDescriptorProto { /** Identifies if server streams multiple server messages */ serverStreaming: boolean; } +export interface ReactiveMethodDescriptorProto { + name: ComputedRef; + inputType: ComputedRef; + outputType: ComputedRef; + options?: ComputedRef; + clientStreaming: ComputedRef; + serverStreaming: ComputedRef; +} export interface MethodDescriptorProtoProtoMsg { typeUrl: "/google.protobuf.MethodDescriptorProto"; value: Uint8Array; @@ -820,6 +907,29 @@ export interface FileOptions { */ uninterpretedOption: UninterpretedOption[]; } +export interface ReactiveFileOptions { + javaPackage: ComputedRef; + javaOuterClassname: ComputedRef; + javaMultipleFiles: ComputedRef; + javaGenerateEqualsAndHash: ComputedRef; + javaStringCheckUtf8: ComputedRef; + optimizeFor: ComputedRef; + goPackage: ComputedRef; + ccGenericServices: ComputedRef; + javaGenericServices: ComputedRef; + pyGenericServices: ComputedRef; + phpGenericServices: ComputedRef; + deprecated: ComputedRef; + ccEnableArenas: ComputedRef; + objcClassPrefix: ComputedRef; + csharpNamespace: ComputedRef; + swiftPrefix: ComputedRef; + phpClassPrefix: ComputedRef; + phpNamespace: ComputedRef; + phpMetadataNamespace: ComputedRef; + rubyPackage: ComputedRef; + uninterpretedOption: ComputedRef; +} export interface FileOptionsProtoMsg { typeUrl: "/google.protobuf.FileOptions"; value: Uint8Array; @@ -910,6 +1020,13 @@ export interface MessageOptions { /** The parser stores options it doesn't recognize here. See above. */ uninterpretedOption: UninterpretedOption[]; } +export interface ReactiveMessageOptions { + messageSetWireFormat: ComputedRef; + noStandardDescriptorAccessor: ComputedRef; + deprecated: ComputedRef; + mapEntry: ComputedRef; + uninterpretedOption: ComputedRef; +} export interface MessageOptionsProtoMsg { typeUrl: "/google.protobuf.MessageOptions"; value: Uint8Array; @@ -994,6 +1111,15 @@ export interface FieldOptions { /** The parser stores options it doesn't recognize here. See above. */ uninterpretedOption: UninterpretedOption[]; } +export interface ReactiveFieldOptions { + ctype: ComputedRef; + packed: ComputedRef; + jstype: ComputedRef; + lazy: ComputedRef; + deprecated: ComputedRef; + weak: ComputedRef; + uninterpretedOption: ComputedRef; +} export interface FieldOptionsProtoMsg { typeUrl: "/google.protobuf.FieldOptions"; value: Uint8Array; @@ -1011,6 +1137,9 @@ export interface OneofOptions { /** The parser stores options it doesn't recognize here. See above. */ uninterpretedOption: UninterpretedOption[]; } +export interface ReactiveOneofOptions { + uninterpretedOption: ComputedRef; +} export interface OneofOptionsProtoMsg { typeUrl: "/google.protobuf.OneofOptions"; value: Uint8Array; @@ -1034,6 +1163,11 @@ export interface EnumOptions { /** The parser stores options it doesn't recognize here. See above. */ uninterpretedOption: UninterpretedOption[]; } +export interface ReactiveEnumOptions { + allowAlias: ComputedRef; + deprecated: ComputedRef; + uninterpretedOption: ComputedRef; +} export interface EnumOptionsProtoMsg { typeUrl: "/google.protobuf.EnumOptions"; value: Uint8Array; @@ -1054,6 +1188,10 @@ export interface EnumValueOptions { /** The parser stores options it doesn't recognize here. See above. */ uninterpretedOption: UninterpretedOption[]; } +export interface ReactiveEnumValueOptions { + deprecated: ComputedRef; + uninterpretedOption: ComputedRef; +} export interface EnumValueOptionsProtoMsg { typeUrl: "/google.protobuf.EnumValueOptions"; value: Uint8Array; @@ -1073,6 +1211,10 @@ export interface ServiceOptions { /** The parser stores options it doesn't recognize here. See above. */ uninterpretedOption: UninterpretedOption[]; } +export interface ReactiveServiceOptions { + deprecated: ComputedRef; + uninterpretedOption: ComputedRef; +} export interface ServiceOptionsProtoMsg { typeUrl: "/google.protobuf.ServiceOptions"; value: Uint8Array; @@ -1093,6 +1235,11 @@ export interface MethodOptions { /** The parser stores options it doesn't recognize here. See above. */ uninterpretedOption: UninterpretedOption[]; } +export interface ReactiveMethodOptions { + deprecated: ComputedRef; + idempotencyLevel: ComputedRef; + uninterpretedOption: ComputedRef; +} export interface MethodOptionsProtoMsg { typeUrl: "/google.protobuf.MethodOptions"; value: Uint8Array; @@ -1123,6 +1270,15 @@ export interface UninterpretedOption { stringValue: Uint8Array; aggregateValue: string; } +export interface ReactiveUninterpretedOption { + name: ComputedRef; + identifierValue: ComputedRef; + positiveIntValue: ComputedRef; + negativeIntValue: ComputedRef; + doubleValue: ComputedRef; + stringValue: ComputedRef; + aggregateValue: ComputedRef; +} export interface UninterpretedOptionProtoMsg { typeUrl: "/google.protobuf.UninterpretedOption"; value: Uint8Array; @@ -1155,6 +1311,10 @@ export interface UninterpretedOption_NamePart { namePart: string; isExtension: boolean; } +export interface ReactiveUninterpretedOption_NamePart { + namePart: ComputedRef; + isExtension: ComputedRef; +} export interface UninterpretedOption_NamePartProtoMsg { typeUrl: "/google.protobuf.NamePart"; value: Uint8Array; @@ -1222,6 +1382,9 @@ export interface SourceCodeInfo { */ location: SourceCodeInfo_Location[]; } +export interface ReactiveSourceCodeInfo { + location: ComputedRef; +} export interface SourceCodeInfoProtoMsg { typeUrl: "/google.protobuf.SourceCodeInfo"; value: Uint8Array; @@ -1321,6 +1484,13 @@ export interface SourceCodeInfo_Location { trailingComments: string; leadingDetachedComments: string[]; } +export interface ReactiveSourceCodeInfo_Location { + path: ComputedRef; + span: ComputedRef; + leadingComments: ComputedRef; + trailingComments: ComputedRef; + leadingDetachedComments: ComputedRef; +} export interface SourceCodeInfo_LocationProtoMsg { typeUrl: "/google.protobuf.Location"; value: Uint8Array; @@ -1344,6 +1514,9 @@ export interface GeneratedCodeInfo { */ annotation: GeneratedCodeInfo_Annotation[]; } +export interface ReactiveGeneratedCodeInfo { + annotation: ComputedRef; +} export interface GeneratedCodeInfoProtoMsg { typeUrl: "/google.protobuf.GeneratedCodeInfo"; value: Uint8Array; @@ -1376,6 +1549,12 @@ export interface GeneratedCodeInfo_Annotation { */ end: number; } +export interface ReactiveGeneratedCodeInfo_Annotation { + path: ComputedRef; + sourceFile: ComputedRef; + begin: ComputedRef; + end: ComputedRef; +} export interface GeneratedCodeInfo_AnnotationProtoMsg { typeUrl: "/google.protobuf.Annotation"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/google/protobuf/duration.ts b/__fixtures__/v-next/outputv4/google/protobuf/duration.ts index 2fa45e4f46..b60469df22 100644 --- a/__fixtures__/v-next/outputv4/google/protobuf/duration.ts +++ b/__fixtures__/v-next/outputv4/google/protobuf/duration.ts @@ -1,6 +1,7 @@ import { BinaryReader, BinaryWriter } from "../../binary.js"; import { isSet, DeepPartial } from "../../helpers.js"; import { JsonSafe } from "../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "google.protobuf"; /** * A Duration represents a signed, fixed-length span of time represented @@ -79,6 +80,10 @@ export interface Duration { */ nanos: number; } +export interface ReactiveDuration { + seconds: ComputedRef; + nanos: ComputedRef; +} export interface DurationProtoMsg { typeUrl: "/google.protobuf.Duration"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/google/protobuf/empty.ts b/__fixtures__/v-next/outputv4/google/protobuf/empty.ts index a7e3fcd23c..08ed14b7a3 100644 --- a/__fixtures__/v-next/outputv4/google/protobuf/empty.ts +++ b/__fixtures__/v-next/outputv4/google/protobuf/empty.ts @@ -1,6 +1,7 @@ import { BinaryReader, BinaryWriter } from "../../binary.js"; import { JsonSafe } from "../../json-safe.js"; import { DeepPartial } from "../../helpers.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "google.protobuf"; /** * A generic empty message that you can re-use to avoid defining duplicated @@ -14,6 +15,7 @@ export const protobufPackage = "google.protobuf"; * The JSON representation for `Empty` is empty JSON object `{}`. */ export interface Empty {} +export interface ReactiveEmpty {} export interface EmptyProtoMsg { typeUrl: "/google.protobuf.Empty"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/google/protobuf/field_mask.ts b/__fixtures__/v-next/outputv4/google/protobuf/field_mask.ts index f0247add07..98294c173c 100644 --- a/__fixtures__/v-next/outputv4/google/protobuf/field_mask.ts +++ b/__fixtures__/v-next/outputv4/google/protobuf/field_mask.ts @@ -1,6 +1,7 @@ import { BinaryReader, BinaryWriter } from "../../binary.js"; import { JsonSafe } from "../../json-safe.js"; import { DeepPartial } from "../../helpers.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "google.protobuf"; /** * `FieldMask` represents a set of symbolic field paths, for example: @@ -207,6 +208,9 @@ export interface FieldMask { /** The set of field mask paths. */ paths: string[]; } +export interface ReactiveFieldMask { + paths: ComputedRef; +} export interface FieldMaskProtoMsg { typeUrl: "/google.protobuf.FieldMask"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/google/protobuf/source_context.ts b/__fixtures__/v-next/outputv4/google/protobuf/source_context.ts index b30ee947bd..9cbd63cac9 100644 --- a/__fixtures__/v-next/outputv4/google/protobuf/source_context.ts +++ b/__fixtures__/v-next/outputv4/google/protobuf/source_context.ts @@ -1,6 +1,7 @@ import { BinaryReader, BinaryWriter } from "../../binary.js"; import { isSet, DeepPartial } from "../../helpers.js"; import { JsonSafe } from "../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "google.protobuf"; /** * `SourceContext` represents information about the source of a @@ -13,6 +14,9 @@ export interface SourceContext { */ fileName: string; } +export interface ReactiveSourceContext { + fileName: ComputedRef; +} export interface SourceContextProtoMsg { typeUrl: "/google.protobuf.SourceContext"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/google/protobuf/struct.ts b/__fixtures__/v-next/outputv4/google/protobuf/struct.ts index 930dab6e07..2673a465a8 100644 --- a/__fixtures__/v-next/outputv4/google/protobuf/struct.ts +++ b/__fixtures__/v-next/outputv4/google/protobuf/struct.ts @@ -1,6 +1,7 @@ import { BinaryReader, BinaryWriter } from "../../binary.js"; import { isSet, DeepPartial, isObject } from "../../helpers.js"; import { JsonSafe } from "../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "google.protobuf"; /** * `NullValue` is a singleton enumeration to represent the null value for the @@ -38,6 +39,10 @@ export interface Struct_FieldsEntry { key: string; value?: Value; } +export interface ReactiveStruct_FieldsEntry { + key: ComputedRef; + value?: ComputedRef; +} export interface Struct_FieldsEntryProtoMsg { typeUrl: string; value: Uint8Array; @@ -62,6 +67,11 @@ export interface Struct { [key: string]: Value; }; } +export interface ReactiveStruct { + fields: ComputedRef<{ + [key: string]: Value; + }>; +} export interface StructProtoMsg { typeUrl: "/google.protobuf.Struct"; value: Uint8Array; @@ -103,6 +113,14 @@ export interface Value { /** Represents a repeated `Value`. */ listValue?: ListValue; } +export interface ReactiveValue { + nullValue?: ComputedRef; + numberValue?: ComputedRef; + stringValue?: ComputedRef; + boolValue?: ComputedRef; + structValue?: ComputedRef; + listValue?: ComputedRef; +} export interface ValueProtoMsg { typeUrl: "/google.protobuf.Value"; value: Uint8Array; @@ -132,6 +150,9 @@ export interface ListValue { /** Repeated field of dynamically typed values. */ values: Value[]; } +export interface ReactiveListValue { + values: ComputedRef; +} export interface ListValueProtoMsg { typeUrl: "/google.protobuf.ListValue"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/google/protobuf/timestamp.ts b/__fixtures__/v-next/outputv4/google/protobuf/timestamp.ts index 9b0ae07ea7..77499533d7 100644 --- a/__fixtures__/v-next/outputv4/google/protobuf/timestamp.ts +++ b/__fixtures__/v-next/outputv4/google/protobuf/timestamp.ts @@ -1,6 +1,7 @@ import { BinaryReader, BinaryWriter } from "../../binary.js"; import { isSet, DeepPartial, fromJsonTimestamp, fromTimestamp } from "../../helpers.js"; import { JsonSafe } from "../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "google.protobuf"; /** * A Timestamp represents a point in time independent of any time zone or local @@ -101,6 +102,10 @@ export interface Timestamp { */ nanos: number; } +export interface ReactiveTimestamp { + seconds: ComputedRef; + nanos: ComputedRef; +} export interface TimestampProtoMsg { typeUrl: "/google.protobuf.Timestamp"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/google/protobuf/type.ts b/__fixtures__/v-next/outputv4/google/protobuf/type.ts index 74eef8b121..1db6e88d23 100644 --- a/__fixtures__/v-next/outputv4/google/protobuf/type.ts +++ b/__fixtures__/v-next/outputv4/google/protobuf/type.ts @@ -3,6 +3,7 @@ import { Any, AnySDKType } from "./any.js"; import { BinaryReader, BinaryWriter } from "../../binary.js"; import { isSet, DeepPartial } from "../../helpers.js"; import { JsonSafe } from "../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "google.protobuf"; /** Basic field types. */ export enum Field_Kind { @@ -254,6 +255,14 @@ export interface Type { /** The source syntax. */ syntax: Syntax; } +export interface ReactiveType { + name: ComputedRef; + fields: ComputedRef; + oneofs: ComputedRef; + options: ComputedRef; + sourceContext?: ComputedRef; + syntax: ComputedRef; +} export interface TypeProtoMsg { typeUrl: "/google.protobuf.Type"; value: Uint8Array; @@ -296,6 +305,18 @@ export interface Field { /** The string value of the default value of this field. Proto2 syntax only. */ defaultValue: string; } +export interface ReactiveField { + kind: ComputedRef; + cardinality: ComputedRef; + number: ComputedRef; + name: ComputedRef; + typeUrl: ComputedRef; + oneofIndex: ComputedRef; + packed: ComputedRef; + options: ComputedRef; + jsonName: ComputedRef; + defaultValue: ComputedRef; +} export interface FieldProtoMsg { typeUrl: "/google.protobuf.Field"; value: Uint8Array; @@ -326,6 +347,13 @@ export interface Enum { /** The source syntax. */ syntax: Syntax; } +export interface ReactiveEnum { + name: ComputedRef; + enumvalue: ComputedRef; + options: ComputedRef; + sourceContext?: ComputedRef; + syntax: ComputedRef; +} export interface EnumProtoMsg { typeUrl: "/google.protobuf.Enum"; value: Uint8Array; @@ -347,6 +375,11 @@ export interface EnumValue { /** Protocol buffer options. */ options: Option[]; } +export interface ReactiveEnumValue { + name: ComputedRef; + number: ComputedRef; + options: ComputedRef; +} export interface EnumValueProtoMsg { typeUrl: "/google.protobuf.EnumValue"; value: Uint8Array; @@ -377,6 +410,10 @@ export interface Option { */ value?: Any; } +export interface ReactiveOption { + name: ComputedRef; + value?: ComputedRef; +} export interface OptionProtoMsg { typeUrl: "/google.protobuf.Option"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/google/protobuf/wrappers.ts b/__fixtures__/v-next/outputv4/google/protobuf/wrappers.ts index 62cc4f6c9f..cc824dabc9 100644 --- a/__fixtures__/v-next/outputv4/google/protobuf/wrappers.ts +++ b/__fixtures__/v-next/outputv4/google/protobuf/wrappers.ts @@ -1,6 +1,7 @@ import { BinaryReader, BinaryWriter } from "../../binary.js"; import { isSet, DeepPartial, bytesFromBase64, base64FromBytes } from "../../helpers.js"; import { JsonSafe } from "../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "google.protobuf"; /** * Wrapper message for `double`. @@ -11,6 +12,9 @@ export interface DoubleValue { /** The double value. */ value: number; } +export interface ReactiveDoubleValue { + value: ComputedRef; +} export interface DoubleValueProtoMsg { typeUrl: "/google.protobuf.DoubleValue"; value: Uint8Array; @@ -32,6 +36,9 @@ export interface FloatValue { /** The float value. */ value: number; } +export interface ReactiveFloatValue { + value: ComputedRef; +} export interface FloatValueProtoMsg { typeUrl: "/google.protobuf.FloatValue"; value: Uint8Array; @@ -53,6 +60,9 @@ export interface Int64Value { /** The int64 value. */ value: bigint; } +export interface ReactiveInt64Value { + value: ComputedRef; +} export interface Int64ValueProtoMsg { typeUrl: "/google.protobuf.Int64Value"; value: Uint8Array; @@ -74,6 +84,9 @@ export interface UInt64Value { /** The uint64 value. */ value: bigint; } +export interface ReactiveUInt64Value { + value: ComputedRef; +} export interface UInt64ValueProtoMsg { typeUrl: "/google.protobuf.UInt64Value"; value: Uint8Array; @@ -95,6 +108,9 @@ export interface Int32Value { /** The int32 value. */ value: number; } +export interface ReactiveInt32Value { + value: ComputedRef; +} export interface Int32ValueProtoMsg { typeUrl: "/google.protobuf.Int32Value"; value: Uint8Array; @@ -116,6 +132,9 @@ export interface UInt32Value { /** The uint32 value. */ value: number; } +export interface ReactiveUInt32Value { + value: ComputedRef; +} export interface UInt32ValueProtoMsg { typeUrl: "/google.protobuf.UInt32Value"; value: Uint8Array; @@ -137,6 +156,9 @@ export interface BoolValue { /** The bool value. */ value: boolean; } +export interface ReactiveBoolValue { + value: ComputedRef; +} export interface BoolValueProtoMsg { typeUrl: "/google.protobuf.BoolValue"; value: Uint8Array; @@ -158,6 +180,9 @@ export interface StringValue { /** The string value. */ value: string; } +export interface ReactiveStringValue { + value: ComputedRef; +} export interface StringValueProtoMsg { typeUrl: "/google.protobuf.StringValue"; value: Uint8Array; @@ -179,6 +204,9 @@ export interface BytesValue { /** The bytes value. */ value: Uint8Array; } +export interface ReactiveBytesValue { + value: ComputedRef; +} export interface BytesValueProtoMsg { typeUrl: "/google.protobuf.BytesValue"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/google/rpc/code.ts b/__fixtures__/v-next/outputv4/google/rpc/code.ts index 760beecfc3..569c06a0e2 100644 --- a/__fixtures__/v-next/outputv4/google/rpc/code.ts +++ b/__fixtures__/v-next/outputv4/google/rpc/code.ts @@ -1,3 +1,4 @@ +import { ComputedRef } from "vue"; export const protobufPackage = "google.rpc"; /** * The canonical error codes for gRPC APIs. diff --git a/__fixtures__/v-next/outputv4/google/rpc/context/attribute_context.ts b/__fixtures__/v-next/outputv4/google/rpc/context/attribute_context.ts index 8e5084d68c..aa83f67939 100644 --- a/__fixtures__/v-next/outputv4/google/rpc/context/attribute_context.ts +++ b/__fixtures__/v-next/outputv4/google/rpc/context/attribute_context.ts @@ -5,6 +5,7 @@ import { Any, AnySDKType } from "../../protobuf/any.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial, isObject, toTimestamp, fromTimestamp } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "google.rpc.context"; /** * This message defines the standard attribute vocabulary for Google APIs. @@ -59,6 +60,16 @@ export interface AttributeContext { /** Supports extensions for advanced use cases, such as logs and metrics. */ extensions: Any[]; } +export interface ReactiveAttributeContext { + origin?: ComputedRef; + source?: ComputedRef; + destination?: ComputedRef; + request?: ComputedRef; + response?: ComputedRef; + resource?: ComputedRef; + api?: ComputedRef; + extensions: ComputedRef; +} export interface AttributeContextProtoMsg { typeUrl: "/google.rpc.context.AttributeContext"; value: Uint8Array; @@ -96,6 +107,10 @@ export interface AttributeContext_Peer_LabelsEntry { key: string; value: string; } +export interface ReactiveAttributeContext_Peer_LabelsEntry { + key: ComputedRef; + value: ComputedRef; +} export interface AttributeContext_Peer_LabelsEntryProtoMsg { typeUrl: string; value: Uint8Array; @@ -132,6 +147,15 @@ export interface AttributeContext_Peer { */ regionCode: string; } +export interface ReactiveAttributeContext_Peer { + ip: ComputedRef; + port: ComputedRef; + labels: ComputedRef<{ + [key: string]: string; + }>; + principal: ComputedRef; + regionCode: ComputedRef; +} export interface AttributeContext_PeerProtoMsg { typeUrl: "/google.rpc.context.Peer"; value: Uint8Array; @@ -180,6 +204,12 @@ export interface AttributeContext_Api { */ version: string; } +export interface ReactiveAttributeContext_Api { + service: ComputedRef; + operation: ComputedRef; + protocol: ComputedRef; + version: ComputedRef; +} export interface AttributeContext_ApiProtoMsg { typeUrl: "/google.rpc.context.Api"; value: Uint8Array; @@ -262,6 +292,13 @@ export interface AttributeContext_Auth { */ accessLevels: string[]; } +export interface ReactiveAttributeContext_Auth { + principal: ComputedRef; + audiences: ComputedRef; + presenter: ComputedRef; + claims?: ComputedRef; + accessLevels: ComputedRef; +} export interface AttributeContext_AuthProtoMsg { typeUrl: "/google.rpc.context.Auth"; value: Uint8Array; @@ -282,6 +319,10 @@ export interface AttributeContext_Request_HeadersEntry { key: string; value: string; } +export interface ReactiveAttributeContext_Request_HeadersEntry { + key: ComputedRef; + value: ComputedRef; +} export interface AttributeContext_Request_HeadersEntryProtoMsg { typeUrl: string; value: Uint8Array; @@ -348,6 +389,22 @@ export interface AttributeContext_Request { */ auth?: AttributeContext_Auth; } +export interface ReactiveAttributeContext_Request { + id: ComputedRef; + method: ComputedRef; + headers: ComputedRef<{ + [key: string]: string; + }>; + path: ComputedRef; + host: ComputedRef; + scheme: ComputedRef; + query: ComputedRef; + time?: ComputedRef; + size: ComputedRef; + protocol: ComputedRef; + reason: ComputedRef; + auth?: ComputedRef; +} export interface AttributeContext_RequestProtoMsg { typeUrl: "/google.rpc.context.Request"; value: Uint8Array; @@ -377,6 +434,10 @@ export interface AttributeContext_Response_HeadersEntry { key: string; value: string; } +export interface ReactiveAttributeContext_Response_HeadersEntry { + key: ComputedRef; + value: ComputedRef; +} export interface AttributeContext_Response_HeadersEntryProtoMsg { typeUrl: string; value: Uint8Array; @@ -415,6 +476,15 @@ export interface AttributeContext_Response { */ backendLatency?: Duration; } +export interface ReactiveAttributeContext_Response { + code: ComputedRef; + size: ComputedRef; + headers: ComputedRef<{ + [key: string]: string; + }>; + time?: ComputedRef; + backendLatency?: ComputedRef; +} export interface AttributeContext_ResponseProtoMsg { typeUrl: "/google.rpc.context.Response"; value: Uint8Array; @@ -436,6 +506,10 @@ export interface AttributeContext_Resource_LabelsEntry { key: string; value: string; } +export interface ReactiveAttributeContext_Resource_LabelsEntry { + key: ComputedRef; + value: ComputedRef; +} export interface AttributeContext_Resource_LabelsEntryProtoMsg { typeUrl: string; value: Uint8Array; @@ -448,6 +522,10 @@ export interface AttributeContext_Resource_AnnotationsEntry { key: string; value: string; } +export interface ReactiveAttributeContext_Resource_AnnotationsEntry { + key: ComputedRef; + value: ComputedRef; +} export interface AttributeContext_Resource_AnnotationsEntryProtoMsg { typeUrl: string; value: Uint8Array; @@ -551,6 +629,24 @@ export interface AttributeContext_Resource { */ location: string; } +export interface ReactiveAttributeContext_Resource { + service: ComputedRef; + name: ComputedRef; + type: ComputedRef; + labels: ComputedRef<{ + [key: string]: string; + }>; + uid: ComputedRef; + annotations: ComputedRef<{ + [key: string]: string; + }>; + displayName: ComputedRef; + createTime?: ComputedRef; + updateTime?: ComputedRef; + deleteTime?: ComputedRef; + etag: ComputedRef; + location: ComputedRef; +} export interface AttributeContext_ResourceProtoMsg { typeUrl: "/google.rpc.context.Resource"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/google/rpc/error_details.ts b/__fixtures__/v-next/outputv4/google/rpc/error_details.ts index b5a8a5fb05..7e4ab591c9 100644 --- a/__fixtures__/v-next/outputv4/google/rpc/error_details.ts +++ b/__fixtures__/v-next/outputv4/google/rpc/error_details.ts @@ -2,6 +2,7 @@ import { Duration, DurationSDKType } from "../protobuf/duration.js"; import { BinaryReader, BinaryWriter } from "../../binary.js"; import { isSet, DeepPartial, isObject } from "../../helpers.js"; import { JsonSafe } from "../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "google.rpc"; /** * Describes when the clients can retry a failed request. Clients could ignore @@ -22,6 +23,9 @@ export interface RetryInfo { /** Clients should wait at least this long between retrying the same request. */ retryDelay?: Duration; } +export interface ReactiveRetryInfo { + retryDelay?: ComputedRef; +} export interface RetryInfoProtoMsg { typeUrl: "/google.rpc.RetryInfo"; value: Uint8Array; @@ -51,6 +55,10 @@ export interface DebugInfo { /** Additional debugging information provided by the server. */ detail: string; } +export interface ReactiveDebugInfo { + stackEntries: ComputedRef; + detail: ComputedRef; +} export interface DebugInfoProtoMsg { typeUrl: "/google.rpc.DebugInfo"; value: Uint8Array; @@ -77,6 +85,9 @@ export interface QuotaFailure { /** Describes all quota violations. */ violations: QuotaFailure_Violation[]; } +export interface ReactiveQuotaFailure { + violations: ComputedRef; +} export interface QuotaFailureProtoMsg { typeUrl: "/google.rpc.QuotaFailure"; value: Uint8Array; @@ -119,6 +130,10 @@ export interface QuotaFailure_Violation { */ description: string; } +export interface ReactiveQuotaFailure_Violation { + subject: ComputedRef; + description: ComputedRef; +} export interface QuotaFailure_ViolationProtoMsg { typeUrl: "/google.rpc.Violation"; value: Uint8Array; @@ -135,6 +150,10 @@ export interface ErrorInfo_MetadataEntry { key: string; value: string; } +export interface ReactiveErrorInfo_MetadataEntry { + key: ComputedRef; + value: ComputedRef; +} export interface ErrorInfo_MetadataEntryProtoMsg { typeUrl: string; value: Uint8Array; @@ -200,6 +219,13 @@ export interface ErrorInfo { [key: string]: string; }; } +export interface ReactiveErrorInfo { + reason: ComputedRef; + domain: ComputedRef; + metadata: ComputedRef<{ + [key: string]: string; + }>; +} export interface ErrorInfoProtoMsg { typeUrl: "/google.rpc.ErrorInfo"; value: Uint8Array; @@ -248,6 +274,9 @@ export interface PreconditionFailure { /** Describes all precondition violations. */ violations: PreconditionFailure_Violation[]; } +export interface ReactivePreconditionFailure { + violations: ComputedRef; +} export interface PreconditionFailureProtoMsg { typeUrl: "/google.rpc.PreconditionFailure"; value: Uint8Array; @@ -284,6 +313,11 @@ export interface PreconditionFailure_Violation { */ description: string; } +export interface ReactivePreconditionFailure_Violation { + type: ComputedRef; + subject: ComputedRef; + description: ComputedRef; +} export interface PreconditionFailure_ViolationProtoMsg { typeUrl: "/google.rpc.Violation"; value: Uint8Array; @@ -302,6 +336,9 @@ export interface BadRequest { /** Describes all violations in a client request. */ fieldViolations: BadRequest_FieldViolation[]; } +export interface ReactiveBadRequest { + fieldViolations: ComputedRef; +} export interface BadRequestProtoMsg { typeUrl: "/google.rpc.BadRequest"; value: Uint8Array; @@ -324,6 +361,10 @@ export interface BadRequest_FieldViolation { /** A description of why the request element is bad. */ description: string; } +export interface ReactiveBadRequest_FieldViolation { + field: ComputedRef; + description: ComputedRef; +} export interface BadRequest_FieldViolationProtoMsg { typeUrl: "/google.rpc.FieldViolation"; value: Uint8Array; @@ -349,6 +390,10 @@ export interface RequestInfo { */ servingData: string; } +export interface ReactiveRequestInfo { + requestId: ComputedRef; + servingData: ComputedRef; +} export interface RequestInfoProtoMsg { typeUrl: "/google.rpc.RequestInfo"; value: Uint8Array; @@ -388,6 +433,12 @@ export interface ResourceInfo { */ description: string; } +export interface ReactiveResourceInfo { + resourceType: ComputedRef; + resourceName: ComputedRef; + owner: ComputedRef; + description: ComputedRef; +} export interface ResourceInfoProtoMsg { typeUrl: "/google.rpc.ResourceInfo"; value: Uint8Array; @@ -410,6 +461,9 @@ export interface Help { /** URL(s) pointing to additional information on handling the current error. */ links: Help_Link[]; } +export interface ReactiveHelp { + links: ComputedRef; +} export interface HelpProtoMsg { typeUrl: "/google.rpc.Help"; value: Uint8Array; @@ -431,6 +485,10 @@ export interface Help_Link { /** The URL of the link. */ url: string; } +export interface ReactiveHelp_Link { + description: ComputedRef; + url: ComputedRef; +} export interface Help_LinkProtoMsg { typeUrl: "/google.rpc.Link"; value: Uint8Array; @@ -454,6 +512,10 @@ export interface LocalizedMessage { /** The localized error message in the above locale. */ message: string; } +export interface ReactiveLocalizedMessage { + locale: ComputedRef; + message: ComputedRef; +} export interface LocalizedMessageProtoMsg { typeUrl: "/google.rpc.LocalizedMessage"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/google/rpc/status.ts b/__fixtures__/v-next/outputv4/google/rpc/status.ts index bf75c4ece5..85573487ed 100644 --- a/__fixtures__/v-next/outputv4/google/rpc/status.ts +++ b/__fixtures__/v-next/outputv4/google/rpc/status.ts @@ -2,6 +2,7 @@ import { Any, AnySDKType } from "../protobuf/any.js"; import { BinaryReader, BinaryWriter } from "../../binary.js"; import { isSet, DeepPartial } from "../../helpers.js"; import { JsonSafe } from "../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "google.rpc"; /** * The `Status` type defines a logical error model that is suitable for @@ -27,6 +28,11 @@ export interface Status { */ details: Any[]; } +export interface ReactiveStatus { + code: ComputedRef; + message: ComputedRef; + details: ComputedRef; +} export interface StatusProtoMsg { typeUrl: "/google.rpc.Status"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/ibc/applications/transfer/v1/genesis.ts b/__fixtures__/v-next/outputv4/ibc/applications/transfer/v1/genesis.ts index ac8ef6f589..f412ca2d7f 100644 --- a/__fixtures__/v-next/outputv4/ibc/applications/transfer/v1/genesis.ts +++ b/__fixtures__/v-next/outputv4/ibc/applications/transfer/v1/genesis.ts @@ -2,6 +2,7 @@ import { DenomTrace, DenomTraceSDKType, Params, ParamsSDKType } from "./transfer import { BinaryReader, BinaryWriter } from "../../../../binary.js"; import { isSet, DeepPartial } from "../../../../helpers.js"; import { JsonSafe } from "../../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "ibc.applications.transfer.v1"; /** GenesisState defines the ibc-transfer genesis state */ export interface GenesisState { @@ -9,6 +10,11 @@ export interface GenesisState { denomTraces: DenomTrace[]; params: Params; } +export interface ReactiveGenesisState { + portId: ComputedRef; + denomTraces: ComputedRef; + params: ComputedRef; +} export interface GenesisStateProtoMsg { typeUrl: "/ibc.applications.transfer.v1.GenesisState"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/ibc/applications/transfer/v1/query.rpc.Query.ts b/__fixtures__/v-next/outputv4/ibc/applications/transfer/v1/query.rpc.Query.ts index dc3b247181..d62c6590cd 100644 --- a/__fixtures__/v-next/outputv4/ibc/applications/transfer/v1/query.rpc.Query.ts +++ b/__fixtures__/v-next/outputv4/ibc/applications/transfer/v1/query.rpc.Query.ts @@ -3,7 +3,7 @@ import { DenomTrace, DenomTraceSDKType, Params, ParamsSDKType } from "./transfer import { Rpc } from "../../../../helpers.js"; import { BinaryReader } from "../../../../binary.js"; import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryDenomTraceRequest, QueryDenomTraceRequestSDKType, QueryDenomTraceResponse, QueryDenomTraceResponseSDKType, QueryDenomTracesRequest, QueryDenomTracesRequestSDKType, QueryDenomTracesResponse, QueryDenomTracesResponseSDKType, QueryParamsRequest, QueryParamsRequestSDKType, QueryParamsResponse, QueryParamsResponseSDKType } from "./query.js"; +import { QueryDenomTraceRequest, QueryDenomTraceRequestSDKType, QueryDenomTraceResponse, QueryDenomTraceResponseSDKType, QueryDenomTracesRequest, QueryDenomTracesRequestSDKType, QueryDenomTracesResponse, QueryDenomTracesResponseSDKType, QueryParamsRequest, QueryParamsRequestSDKType, QueryParamsResponse, QueryParamsResponseSDKType, ReactiveQueryDenomTraceRequest, ReactiveQueryDenomTracesRequest, ReactiveQueryParamsRequest } from "./query.js"; /** Query provides defines the gRPC querier service. */ export interface Query { /** DenomTrace queries a denomination trace information. */ diff --git a/__fixtures__/v-next/outputv4/ibc/applications/transfer/v1/query.ts b/__fixtures__/v-next/outputv4/ibc/applications/transfer/v1/query.ts index ae55529188..6aa8fd73e5 100644 --- a/__fixtures__/v-next/outputv4/ibc/applications/transfer/v1/query.ts +++ b/__fixtures__/v-next/outputv4/ibc/applications/transfer/v1/query.ts @@ -3,6 +3,7 @@ import { DenomTrace, DenomTraceSDKType, Params, ParamsSDKType } from "./transfer import { BinaryReader, BinaryWriter } from "../../../../binary.js"; import { isSet, DeepPartial } from "../../../../helpers.js"; import { JsonSafe } from "../../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "ibc.applications.transfer.v1"; /** * QueryDenomTraceRequest is the request type for the Query/DenomTrace RPC @@ -12,6 +13,9 @@ export interface QueryDenomTraceRequest { /** hash (in hex format) of the denomination trace information. */ hash: string; } +export interface ReactiveQueryDenomTraceRequest { + hash: ComputedRef; +} export interface QueryDenomTraceRequestProtoMsg { typeUrl: "/ibc.applications.transfer.v1.QueryDenomTraceRequest"; value: Uint8Array; @@ -31,6 +35,9 @@ export interface QueryDenomTraceResponse { /** denom_trace returns the requested denomination trace information. */ denomTrace?: DenomTrace; } +export interface ReactiveQueryDenomTraceResponse { + denomTrace?: ComputedRef; +} export interface QueryDenomTraceResponseProtoMsg { typeUrl: "/ibc.applications.transfer.v1.QueryDenomTraceResponse"; value: Uint8Array; @@ -50,6 +57,9 @@ export interface QueryDenomTracesRequest { /** pagination defines an optional pagination for the request. */ pagination?: PageRequest; } +export interface ReactiveQueryDenomTracesRequest { + pagination?: ComputedRef; +} export interface QueryDenomTracesRequestProtoMsg { typeUrl: "/ibc.applications.transfer.v1.QueryDenomTracesRequest"; value: Uint8Array; @@ -71,6 +81,10 @@ export interface QueryDenomTracesResponse { /** pagination defines the pagination in the response. */ pagination?: PageResponse; } +export interface ReactiveQueryDenomTracesResponse { + denomTraces: ComputedRef; + pagination?: ComputedRef; +} export interface QueryDenomTracesResponseProtoMsg { typeUrl: "/ibc.applications.transfer.v1.QueryDenomTracesResponse"; value: Uint8Array; @@ -85,6 +99,7 @@ export interface QueryDenomTracesResponseSDKType { } /** QueryParamsRequest is the request type for the Query/Params RPC method. */ export interface QueryParamsRequest {} +export interface ReactiveQueryParamsRequest {} export interface QueryParamsRequestProtoMsg { typeUrl: "/ibc.applications.transfer.v1.QueryParamsRequest"; value: Uint8Array; @@ -96,6 +111,9 @@ export interface QueryParamsResponse { /** params defines the parameters of the module. */ params?: Params; } +export interface ReactiveQueryParamsResponse { + params?: ComputedRef; +} export interface QueryParamsResponseProtoMsg { typeUrl: "/ibc.applications.transfer.v1.QueryParamsResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/ibc/applications/transfer/v1/transfer.ts b/__fixtures__/v-next/outputv4/ibc/applications/transfer/v1/transfer.ts index 4c74da1946..78d02f20c9 100644 --- a/__fixtures__/v-next/outputv4/ibc/applications/transfer/v1/transfer.ts +++ b/__fixtures__/v-next/outputv4/ibc/applications/transfer/v1/transfer.ts @@ -1,6 +1,7 @@ import { BinaryReader, BinaryWriter } from "../../../../binary.js"; import { isSet, DeepPartial } from "../../../../helpers.js"; import { JsonSafe } from "../../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "ibc.applications.transfer.v1"; /** * DenomTrace contains the base denomination for ICS20 fungible tokens and the @@ -15,6 +16,10 @@ export interface DenomTrace { /** base denomination of the relayed fungible token. */ baseDenom: string; } +export interface ReactiveDenomTrace { + path: ComputedRef; + baseDenom: ComputedRef; +} export interface DenomTraceProtoMsg { typeUrl: "/ibc.applications.transfer.v1.DenomTrace"; value: Uint8Array; @@ -45,6 +50,10 @@ export interface Params { */ receiveEnabled: boolean; } +export interface ReactiveParams { + sendEnabled: ComputedRef; + receiveEnabled: ComputedRef; +} export interface ParamsProtoMsg { typeUrl: "/ibc.applications.transfer.v1.Params"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/ibc/applications/transfer/v1/tx.ts b/__fixtures__/v-next/outputv4/ibc/applications/transfer/v1/tx.ts index 00f4c1ca1b..b61aa2e725 100644 --- a/__fixtures__/v-next/outputv4/ibc/applications/transfer/v1/tx.ts +++ b/__fixtures__/v-next/outputv4/ibc/applications/transfer/v1/tx.ts @@ -3,6 +3,7 @@ import { Height, HeightSDKType } from "../../../core/client/v1/client.js"; import { BinaryReader, BinaryWriter } from "../../../../binary.js"; import { isSet, DeepPartial } from "../../../../helpers.js"; import { JsonSafe } from "../../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "ibc.applications.transfer.v1"; /** * MsgTransfer defines a msg to transfer fungible tokens (i.e Coins) between @@ -31,6 +32,15 @@ export interface MsgTransfer { */ timeoutTimestamp: bigint; } +export interface ReactiveMsgTransfer { + sourcePort: ComputedRef; + sourceChannel: ComputedRef; + token: ComputedRef; + sender: ComputedRef; + receiver: ComputedRef; + timeoutHeight: ComputedRef; + timeoutTimestamp: ComputedRef; +} export interface MsgTransferProtoMsg { typeUrl: "/ibc.applications.transfer.v1.MsgTransfer"; value: Uint8Array; @@ -51,6 +61,7 @@ export interface MsgTransferSDKType { } /** MsgTransferResponse defines the Msg/Transfer response type. */ export interface MsgTransferResponse {} +export interface ReactiveMsgTransferResponse {} export interface MsgTransferResponseProtoMsg { typeUrl: "/ibc.applications.transfer.v1.MsgTransferResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/ibc/applications/transfer/v2/packet.ts b/__fixtures__/v-next/outputv4/ibc/applications/transfer/v2/packet.ts index 4c501f1df7..8970dfb08f 100644 --- a/__fixtures__/v-next/outputv4/ibc/applications/transfer/v2/packet.ts +++ b/__fixtures__/v-next/outputv4/ibc/applications/transfer/v2/packet.ts @@ -1,6 +1,7 @@ import { BinaryReader, BinaryWriter } from "../../../../binary.js"; import { isSet, DeepPartial } from "../../../../helpers.js"; import { JsonSafe } from "../../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "ibc.applications.transfer.v2"; /** * FungibleTokenPacketData defines a struct for the packet payload @@ -17,6 +18,12 @@ export interface FungibleTokenPacketData { /** the recipient address on the destination chain */ receiver: string; } +export interface ReactiveFungibleTokenPacketData { + denom: ComputedRef; + amount: ComputedRef; + sender: ComputedRef; + receiver: ComputedRef; +} export interface FungibleTokenPacketDataProtoMsg { typeUrl: "/ibc.applications.transfer.v2.FungibleTokenPacketData"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/ibc/core/channel/v1/channel.ts b/__fixtures__/v-next/outputv4/ibc/core/channel/v1/channel.ts index 3fd7b9ce73..e69d2ab2c8 100644 --- a/__fixtures__/v-next/outputv4/ibc/core/channel/v1/channel.ts +++ b/__fixtures__/v-next/outputv4/ibc/core/channel/v1/channel.ts @@ -2,6 +2,7 @@ import { Height, HeightSDKType } from "../../client/v1/client.js"; import { BinaryReader, BinaryWriter } from "../../../../binary.js"; import { isSet, DeepPartial, bytesFromBase64, base64FromBytes } from "../../../../helpers.js"; import { JsonSafe } from "../../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "ibc.core.channel.v1"; /** * State defines if a channel is in one of the following states: @@ -131,6 +132,13 @@ export interface Channel { /** opaque channel version, which is agreed upon during the handshake */ version: string; } +export interface ReactiveChannel { + state: ComputedRef; + ordering: ComputedRef; + counterparty: ComputedRef; + connectionHops: ComputedRef; + version: ComputedRef; +} export interface ChannelProtoMsg { typeUrl: "/ibc.core.channel.v1.Channel"; value: Uint8Array; @@ -170,6 +178,15 @@ export interface IdentifiedChannel { /** channel identifier */ channelId: string; } +export interface ReactiveIdentifiedChannel { + state: ComputedRef; + ordering: ComputedRef; + counterparty: ComputedRef; + connectionHops: ComputedRef; + version: ComputedRef; + portId: ComputedRef; + channelId: ComputedRef; +} export interface IdentifiedChannelProtoMsg { typeUrl: "/ibc.core.channel.v1.IdentifiedChannel"; value: Uint8Array; @@ -194,6 +211,10 @@ export interface Counterparty { /** channel end on the counterparty chain */ channelId: string; } +export interface ReactiveCounterparty { + portId: ComputedRef; + channelId: ComputedRef; +} export interface CounterpartyProtoMsg { typeUrl: "/ibc.core.channel.v1.Counterparty"; value: Uint8Array; @@ -226,6 +247,16 @@ export interface Packet { /** block timestamp (in nanoseconds) after which the packet times out */ timeoutTimestamp: bigint; } +export interface ReactivePacket { + sequence: ComputedRef; + sourcePort: ComputedRef; + sourceChannel: ComputedRef; + destinationPort: ComputedRef; + destinationChannel: ComputedRef; + data: ComputedRef; + timeoutHeight: ComputedRef; + timeoutTimestamp: ComputedRef; +} export interface PacketProtoMsg { typeUrl: "/ibc.core.channel.v1.Packet"; value: Uint8Array; @@ -257,6 +288,12 @@ export interface PacketState { /** embedded data that represents packet state. */ data: Uint8Array; } +export interface ReactivePacketState { + portId: ComputedRef; + channelId: ComputedRef; + sequence: ComputedRef; + data: ComputedRef; +} export interface PacketStateProtoMsg { typeUrl: "/ibc.core.channel.v1.PacketState"; value: Uint8Array; @@ -286,6 +323,10 @@ export interface Acknowledgement { result?: Uint8Array; error?: string; } +export interface ReactiveAcknowledgement { + result?: ComputedRef; + error?: ComputedRef; +} export interface AcknowledgementProtoMsg { typeUrl: "/ibc.core.channel.v1.Acknowledgement"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/ibc/core/channel/v1/genesis.ts b/__fixtures__/v-next/outputv4/ibc/core/channel/v1/genesis.ts index 26b75f119b..0fef656277 100644 --- a/__fixtures__/v-next/outputv4/ibc/core/channel/v1/genesis.ts +++ b/__fixtures__/v-next/outputv4/ibc/core/channel/v1/genesis.ts @@ -2,6 +2,7 @@ import { IdentifiedChannel, IdentifiedChannelSDKType, PacketState, PacketStateSD import { BinaryReader, BinaryWriter } from "../../../../binary.js"; import { isSet, DeepPartial } from "../../../../helpers.js"; import { JsonSafe } from "../../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "ibc.core.channel.v1"; /** GenesisState defines the ibc channel submodule's genesis state. */ export interface GenesisState { @@ -15,6 +16,16 @@ export interface GenesisState { /** the sequence for the next generated channel identifier */ nextChannelSequence: bigint; } +export interface ReactiveGenesisState { + channels: ComputedRef; + acknowledgements: ComputedRef; + commitments: ComputedRef; + receipts: ComputedRef; + sendSequences: ComputedRef; + recvSequences: ComputedRef; + ackSequences: ComputedRef; + nextChannelSequence: ComputedRef; +} export interface GenesisStateProtoMsg { typeUrl: "/ibc.core.channel.v1.GenesisState"; value: Uint8Array; @@ -39,6 +50,11 @@ export interface PacketSequence { channelId: string; sequence: bigint; } +export interface ReactivePacketSequence { + portId: ComputedRef; + channelId: ComputedRef; + sequence: ComputedRef; +} export interface PacketSequenceProtoMsg { typeUrl: "/ibc.core.channel.v1.PacketSequence"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/ibc/core/channel/v1/query.rpc.Query.ts b/__fixtures__/v-next/outputv4/ibc/core/channel/v1/query.rpc.Query.ts index 2b1d8d73fd..e43b873a07 100644 --- a/__fixtures__/v-next/outputv4/ibc/core/channel/v1/query.rpc.Query.ts +++ b/__fixtures__/v-next/outputv4/ibc/core/channel/v1/query.rpc.Query.ts @@ -5,7 +5,7 @@ import { Any, AnySDKType } from "../../../../google/protobuf/any.js"; import { Rpc } from "../../../../helpers.js"; import { BinaryReader } from "../../../../binary.js"; import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryChannelRequest, QueryChannelRequestSDKType, QueryChannelResponse, QueryChannelResponseSDKType, QueryChannelsRequest, QueryChannelsRequestSDKType, QueryChannelsResponse, QueryChannelsResponseSDKType, QueryConnectionChannelsRequest, QueryConnectionChannelsRequestSDKType, QueryConnectionChannelsResponse, QueryConnectionChannelsResponseSDKType, QueryChannelClientStateRequest, QueryChannelClientStateRequestSDKType, QueryChannelClientStateResponse, QueryChannelClientStateResponseSDKType, QueryChannelConsensusStateRequest, QueryChannelConsensusStateRequestSDKType, QueryChannelConsensusStateResponse, QueryChannelConsensusStateResponseSDKType, QueryPacketCommitmentRequest, QueryPacketCommitmentRequestSDKType, QueryPacketCommitmentResponse, QueryPacketCommitmentResponseSDKType, QueryPacketCommitmentsRequest, QueryPacketCommitmentsRequestSDKType, QueryPacketCommitmentsResponse, QueryPacketCommitmentsResponseSDKType, QueryPacketReceiptRequest, QueryPacketReceiptRequestSDKType, QueryPacketReceiptResponse, QueryPacketReceiptResponseSDKType, QueryPacketAcknowledgementRequest, QueryPacketAcknowledgementRequestSDKType, QueryPacketAcknowledgementResponse, QueryPacketAcknowledgementResponseSDKType, QueryPacketAcknowledgementsRequest, QueryPacketAcknowledgementsRequestSDKType, QueryPacketAcknowledgementsResponse, QueryPacketAcknowledgementsResponseSDKType, QueryUnreceivedPacketsRequest, QueryUnreceivedPacketsRequestSDKType, QueryUnreceivedPacketsResponse, QueryUnreceivedPacketsResponseSDKType, QueryUnreceivedAcksRequest, QueryUnreceivedAcksRequestSDKType, QueryUnreceivedAcksResponse, QueryUnreceivedAcksResponseSDKType, QueryNextSequenceReceiveRequest, QueryNextSequenceReceiveRequestSDKType, QueryNextSequenceReceiveResponse, QueryNextSequenceReceiveResponseSDKType } from "./query.js"; +import { QueryChannelRequest, QueryChannelRequestSDKType, QueryChannelResponse, QueryChannelResponseSDKType, QueryChannelsRequest, QueryChannelsRequestSDKType, QueryChannelsResponse, QueryChannelsResponseSDKType, QueryConnectionChannelsRequest, QueryConnectionChannelsRequestSDKType, QueryConnectionChannelsResponse, QueryConnectionChannelsResponseSDKType, QueryChannelClientStateRequest, QueryChannelClientStateRequestSDKType, QueryChannelClientStateResponse, QueryChannelClientStateResponseSDKType, QueryChannelConsensusStateRequest, QueryChannelConsensusStateRequestSDKType, QueryChannelConsensusStateResponse, QueryChannelConsensusStateResponseSDKType, QueryPacketCommitmentRequest, QueryPacketCommitmentRequestSDKType, QueryPacketCommitmentResponse, QueryPacketCommitmentResponseSDKType, QueryPacketCommitmentsRequest, QueryPacketCommitmentsRequestSDKType, QueryPacketCommitmentsResponse, QueryPacketCommitmentsResponseSDKType, QueryPacketReceiptRequest, QueryPacketReceiptRequestSDKType, QueryPacketReceiptResponse, QueryPacketReceiptResponseSDKType, QueryPacketAcknowledgementRequest, QueryPacketAcknowledgementRequestSDKType, QueryPacketAcknowledgementResponse, QueryPacketAcknowledgementResponseSDKType, QueryPacketAcknowledgementsRequest, QueryPacketAcknowledgementsRequestSDKType, QueryPacketAcknowledgementsResponse, QueryPacketAcknowledgementsResponseSDKType, QueryUnreceivedPacketsRequest, QueryUnreceivedPacketsRequestSDKType, QueryUnreceivedPacketsResponse, QueryUnreceivedPacketsResponseSDKType, QueryUnreceivedAcksRequest, QueryUnreceivedAcksRequestSDKType, QueryUnreceivedAcksResponse, QueryUnreceivedAcksResponseSDKType, QueryNextSequenceReceiveRequest, QueryNextSequenceReceiveRequestSDKType, QueryNextSequenceReceiveResponse, QueryNextSequenceReceiveResponseSDKType, ReactiveQueryChannelRequest, ReactiveQueryChannelsRequest, ReactiveQueryConnectionChannelsRequest, ReactiveQueryChannelClientStateRequest, ReactiveQueryChannelConsensusStateRequest, ReactiveQueryPacketCommitmentRequest, ReactiveQueryPacketCommitmentsRequest, ReactiveQueryPacketReceiptRequest, ReactiveQueryPacketAcknowledgementRequest, ReactiveQueryPacketAcknowledgementsRequest, ReactiveQueryUnreceivedPacketsRequest, ReactiveQueryUnreceivedAcksRequest, ReactiveQueryNextSequenceReceiveRequest } from "./query.js"; /** Query provides defines the gRPC querier service */ export interface Query { /** Channel queries an IBC Channel. */ diff --git a/__fixtures__/v-next/outputv4/ibc/core/channel/v1/query.ts b/__fixtures__/v-next/outputv4/ibc/core/channel/v1/query.ts index 60d1f026a8..d057f30d34 100644 --- a/__fixtures__/v-next/outputv4/ibc/core/channel/v1/query.ts +++ b/__fixtures__/v-next/outputv4/ibc/core/channel/v1/query.ts @@ -5,6 +5,7 @@ import { Any, AnySDKType } from "../../../../google/protobuf/any.js"; import { BinaryReader, BinaryWriter } from "../../../../binary.js"; import { isSet, DeepPartial, bytesFromBase64, base64FromBytes } from "../../../../helpers.js"; import { JsonSafe } from "../../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "ibc.core.channel.v1"; /** QueryChannelRequest is the request type for the Query/Channel RPC method */ export interface QueryChannelRequest { @@ -13,6 +14,10 @@ export interface QueryChannelRequest { /** channel unique identifier */ channelId: string; } +export interface ReactiveQueryChannelRequest { + portId: ComputedRef; + channelId: ComputedRef; +} export interface QueryChannelRequestProtoMsg { typeUrl: "/ibc.core.channel.v1.QueryChannelRequest"; value: Uint8Array; @@ -35,6 +40,11 @@ export interface QueryChannelResponse { /** height at which the proof was retrieved */ proofHeight: Height; } +export interface ReactiveQueryChannelResponse { + channel?: ComputedRef; + proof: ComputedRef; + proofHeight: ComputedRef; +} export interface QueryChannelResponseProtoMsg { typeUrl: "/ibc.core.channel.v1.QueryChannelResponse"; value: Uint8Array; @@ -54,6 +64,9 @@ export interface QueryChannelsRequest { /** pagination request */ pagination?: PageRequest; } +export interface ReactiveQueryChannelsRequest { + pagination?: ComputedRef; +} export interface QueryChannelsRequestProtoMsg { typeUrl: "/ibc.core.channel.v1.QueryChannelsRequest"; value: Uint8Array; @@ -71,6 +84,11 @@ export interface QueryChannelsResponse { /** query block height */ height: Height; } +export interface ReactiveQueryChannelsResponse { + channels: ComputedRef; + pagination?: ComputedRef; + height: ComputedRef; +} export interface QueryChannelsResponseProtoMsg { typeUrl: "/ibc.core.channel.v1.QueryChannelsResponse"; value: Uint8Array; @@ -91,6 +109,10 @@ export interface QueryConnectionChannelsRequest { /** pagination request */ pagination?: PageRequest; } +export interface ReactiveQueryConnectionChannelsRequest { + connection: ComputedRef; + pagination?: ComputedRef; +} export interface QueryConnectionChannelsRequestProtoMsg { typeUrl: "/ibc.core.channel.v1.QueryConnectionChannelsRequest"; value: Uint8Array; @@ -115,6 +137,11 @@ export interface QueryConnectionChannelsResponse { /** query block height */ height: Height; } +export interface ReactiveQueryConnectionChannelsResponse { + channels: ComputedRef; + pagination?: ComputedRef; + height: ComputedRef; +} export interface QueryConnectionChannelsResponseProtoMsg { typeUrl: "/ibc.core.channel.v1.QueryConnectionChannelsResponse"; value: Uint8Array; @@ -138,6 +165,10 @@ export interface QueryChannelClientStateRequest { /** channel unique identifier */ channelId: string; } +export interface ReactiveQueryChannelClientStateRequest { + portId: ComputedRef; + channelId: ComputedRef; +} export interface QueryChannelClientStateRequestProtoMsg { typeUrl: "/ibc.core.channel.v1.QueryChannelClientStateRequest"; value: Uint8Array; @@ -162,6 +193,11 @@ export interface QueryChannelClientStateResponse { /** height at which the proof was retrieved */ proofHeight: Height; } +export interface ReactiveQueryChannelClientStateResponse { + identifiedClientState?: ComputedRef; + proof: ComputedRef; + proofHeight: ComputedRef; +} export interface QueryChannelClientStateResponseProtoMsg { typeUrl: "/ibc.core.channel.v1.QueryChannelClientStateResponse"; value: Uint8Array; @@ -189,6 +225,12 @@ export interface QueryChannelConsensusStateRequest { /** revision height of the consensus state */ revisionHeight: bigint; } +export interface ReactiveQueryChannelConsensusStateRequest { + portId: ComputedRef; + channelId: ComputedRef; + revisionNumber: ComputedRef; + revisionHeight: ComputedRef; +} export interface QueryChannelConsensusStateRequestProtoMsg { typeUrl: "/ibc.core.channel.v1.QueryChannelConsensusStateRequest"; value: Uint8Array; @@ -217,6 +259,12 @@ export interface QueryChannelConsensusStateResponse { /** height at which the proof was retrieved */ proofHeight: Height; } +export interface ReactiveQueryChannelConsensusStateResponse { + consensusState?: ComputedRef; + clientId: ComputedRef; + proof: ComputedRef; + proofHeight: ComputedRef; +} export interface QueryChannelConsensusStateResponseProtoMsg { typeUrl: "/ibc.core.channel.v1.QueryChannelConsensusStateResponse"; value: Uint8Array; @@ -243,6 +291,11 @@ export interface QueryPacketCommitmentRequest { /** packet sequence */ sequence: bigint; } +export interface ReactiveQueryPacketCommitmentRequest { + portId: ComputedRef; + channelId: ComputedRef; + sequence: ComputedRef; +} export interface QueryPacketCommitmentRequestProtoMsg { typeUrl: "/ibc.core.channel.v1.QueryPacketCommitmentRequest"; value: Uint8Array; @@ -269,6 +322,11 @@ export interface QueryPacketCommitmentResponse { /** height at which the proof was retrieved */ proofHeight: Height; } +export interface ReactiveQueryPacketCommitmentResponse { + commitment: ComputedRef; + proof: ComputedRef; + proofHeight: ComputedRef; +} export interface QueryPacketCommitmentResponseProtoMsg { typeUrl: "/ibc.core.channel.v1.QueryPacketCommitmentResponse"; value: Uint8Array; @@ -295,6 +353,11 @@ export interface QueryPacketCommitmentsRequest { /** pagination request */ pagination?: PageRequest; } +export interface ReactiveQueryPacketCommitmentsRequest { + portId: ComputedRef; + channelId: ComputedRef; + pagination?: ComputedRef; +} export interface QueryPacketCommitmentsRequestProtoMsg { typeUrl: "/ibc.core.channel.v1.QueryPacketCommitmentsRequest"; value: Uint8Array; @@ -319,6 +382,11 @@ export interface QueryPacketCommitmentsResponse { /** query block height */ height: Height; } +export interface ReactiveQueryPacketCommitmentsResponse { + commitments: ComputedRef; + pagination?: ComputedRef; + height: ComputedRef; +} export interface QueryPacketCommitmentsResponseProtoMsg { typeUrl: "/ibc.core.channel.v1.QueryPacketCommitmentsResponse"; value: Uint8Array; @@ -344,6 +412,11 @@ export interface QueryPacketReceiptRequest { /** packet sequence */ sequence: bigint; } +export interface ReactiveQueryPacketReceiptRequest { + portId: ComputedRef; + channelId: ComputedRef; + sequence: ComputedRef; +} export interface QueryPacketReceiptRequestProtoMsg { typeUrl: "/ibc.core.channel.v1.QueryPacketReceiptRequest"; value: Uint8Array; @@ -370,6 +443,11 @@ export interface QueryPacketReceiptResponse { /** height at which the proof was retrieved */ proofHeight: Height; } +export interface ReactiveQueryPacketReceiptResponse { + received: ComputedRef; + proof: ComputedRef; + proofHeight: ComputedRef; +} export interface QueryPacketReceiptResponseProtoMsg { typeUrl: "/ibc.core.channel.v1.QueryPacketReceiptResponse"; value: Uint8Array; @@ -396,6 +474,11 @@ export interface QueryPacketAcknowledgementRequest { /** packet sequence */ sequence: bigint; } +export interface ReactiveQueryPacketAcknowledgementRequest { + portId: ComputedRef; + channelId: ComputedRef; + sequence: ComputedRef; +} export interface QueryPacketAcknowledgementRequestProtoMsg { typeUrl: "/ibc.core.channel.v1.QueryPacketAcknowledgementRequest"; value: Uint8Array; @@ -422,6 +505,11 @@ export interface QueryPacketAcknowledgementResponse { /** height at which the proof was retrieved */ proofHeight: Height; } +export interface ReactiveQueryPacketAcknowledgementResponse { + acknowledgement: ComputedRef; + proof: ComputedRef; + proofHeight: ComputedRef; +} export interface QueryPacketAcknowledgementResponseProtoMsg { typeUrl: "/ibc.core.channel.v1.QueryPacketAcknowledgementResponse"; value: Uint8Array; @@ -450,6 +538,12 @@ export interface QueryPacketAcknowledgementsRequest { /** list of packet sequences */ packetCommitmentSequences: bigint[]; } +export interface ReactiveQueryPacketAcknowledgementsRequest { + portId: ComputedRef; + channelId: ComputedRef; + pagination?: ComputedRef; + packetCommitmentSequences: ComputedRef; +} export interface QueryPacketAcknowledgementsRequestProtoMsg { typeUrl: "/ibc.core.channel.v1.QueryPacketAcknowledgementsRequest"; value: Uint8Array; @@ -475,6 +569,11 @@ export interface QueryPacketAcknowledgementsResponse { /** query block height */ height: Height; } +export interface ReactiveQueryPacketAcknowledgementsResponse { + acknowledgements: ComputedRef; + pagination?: ComputedRef; + height: ComputedRef; +} export interface QueryPacketAcknowledgementsResponseProtoMsg { typeUrl: "/ibc.core.channel.v1.QueryPacketAcknowledgementsResponse"; value: Uint8Array; @@ -500,6 +599,11 @@ export interface QueryUnreceivedPacketsRequest { /** list of packet sequences */ packetCommitmentSequences: bigint[]; } +export interface ReactiveQueryUnreceivedPacketsRequest { + portId: ComputedRef; + channelId: ComputedRef; + packetCommitmentSequences: ComputedRef; +} export interface QueryUnreceivedPacketsRequestProtoMsg { typeUrl: "/ibc.core.channel.v1.QueryUnreceivedPacketsRequest"; value: Uint8Array; @@ -523,6 +627,10 @@ export interface QueryUnreceivedPacketsResponse { /** query block height */ height: Height; } +export interface ReactiveQueryUnreceivedPacketsResponse { + sequences: ComputedRef; + height: ComputedRef; +} export interface QueryUnreceivedPacketsResponseProtoMsg { typeUrl: "/ibc.core.channel.v1.QueryUnreceivedPacketsResponse"; value: Uint8Array; @@ -547,6 +655,11 @@ export interface QueryUnreceivedAcksRequest { /** list of acknowledgement sequences */ packetAckSequences: bigint[]; } +export interface ReactiveQueryUnreceivedAcksRequest { + portId: ComputedRef; + channelId: ComputedRef; + packetAckSequences: ComputedRef; +} export interface QueryUnreceivedAcksRequestProtoMsg { typeUrl: "/ibc.core.channel.v1.QueryUnreceivedAcksRequest"; value: Uint8Array; @@ -570,6 +683,10 @@ export interface QueryUnreceivedAcksResponse { /** query block height */ height: Height; } +export interface ReactiveQueryUnreceivedAcksResponse { + sequences: ComputedRef; + height: ComputedRef; +} export interface QueryUnreceivedAcksResponseProtoMsg { typeUrl: "/ibc.core.channel.v1.QueryUnreceivedAcksResponse"; value: Uint8Array; @@ -592,6 +709,10 @@ export interface QueryNextSequenceReceiveRequest { /** channel unique identifier */ channelId: string; } +export interface ReactiveQueryNextSequenceReceiveRequest { + portId: ComputedRef; + channelId: ComputedRef; +} export interface QueryNextSequenceReceiveRequestProtoMsg { typeUrl: "/ibc.core.channel.v1.QueryNextSequenceReceiveRequest"; value: Uint8Array; @@ -616,6 +737,11 @@ export interface QueryNextSequenceReceiveResponse { /** height at which the proof was retrieved */ proofHeight: Height; } +export interface ReactiveQueryNextSequenceReceiveResponse { + nextSequenceReceive: ComputedRef; + proof: ComputedRef; + proofHeight: ComputedRef; +} export interface QueryNextSequenceReceiveResponseProtoMsg { typeUrl: "/ibc.core.channel.v1.QueryNextSequenceReceiveResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/ibc/core/channel/v1/tx.ts b/__fixtures__/v-next/outputv4/ibc/core/channel/v1/tx.ts index 326dfece0a..7ea3053781 100644 --- a/__fixtures__/v-next/outputv4/ibc/core/channel/v1/tx.ts +++ b/__fixtures__/v-next/outputv4/ibc/core/channel/v1/tx.ts @@ -3,6 +3,7 @@ import { Height, HeightSDKType } from "../../client/v1/client.js"; import { BinaryReader, BinaryWriter } from "../../../../binary.js"; import { isSet, DeepPartial, bytesFromBase64, base64FromBytes } from "../../../../helpers.js"; import { JsonSafe } from "../../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "ibc.core.channel.v1"; /** * MsgChannelOpenInit defines an sdk.Msg to initialize a channel handshake. It @@ -13,6 +14,11 @@ export interface MsgChannelOpenInit { channel: Channel; signer: string; } +export interface ReactiveMsgChannelOpenInit { + portId: ComputedRef; + channel: ComputedRef; + signer: ComputedRef; +} export interface MsgChannelOpenInitProtoMsg { typeUrl: "/ibc.core.channel.v1.MsgChannelOpenInit"; value: Uint8Array; @@ -28,6 +34,7 @@ export interface MsgChannelOpenInitSDKType { } /** MsgChannelOpenInitResponse defines the Msg/ChannelOpenInit response type. */ export interface MsgChannelOpenInitResponse {} +export interface ReactiveMsgChannelOpenInitResponse {} export interface MsgChannelOpenInitResponseProtoMsg { typeUrl: "/ibc.core.channel.v1.MsgChannelOpenInitResponse"; value: Uint8Array; @@ -51,6 +58,15 @@ export interface MsgChannelOpenTry { proofHeight: Height; signer: string; } +export interface ReactiveMsgChannelOpenTry { + portId: ComputedRef; + previousChannelId: ComputedRef; + channel: ComputedRef; + counterpartyVersion: ComputedRef; + proofInit: ComputedRef; + proofHeight: ComputedRef; + signer: ComputedRef; +} export interface MsgChannelOpenTryProtoMsg { typeUrl: "/ibc.core.channel.v1.MsgChannelOpenTry"; value: Uint8Array; @@ -70,6 +86,7 @@ export interface MsgChannelOpenTrySDKType { } /** MsgChannelOpenTryResponse defines the Msg/ChannelOpenTry response type. */ export interface MsgChannelOpenTryResponse {} +export interface ReactiveMsgChannelOpenTryResponse {} export interface MsgChannelOpenTryResponseProtoMsg { typeUrl: "/ibc.core.channel.v1.MsgChannelOpenTryResponse"; value: Uint8Array; @@ -89,6 +106,15 @@ export interface MsgChannelOpenAck { proofHeight: Height; signer: string; } +export interface ReactiveMsgChannelOpenAck { + portId: ComputedRef; + channelId: ComputedRef; + counterpartyChannelId: ComputedRef; + counterpartyVersion: ComputedRef; + proofTry: ComputedRef; + proofHeight: ComputedRef; + signer: ComputedRef; +} export interface MsgChannelOpenAckProtoMsg { typeUrl: "/ibc.core.channel.v1.MsgChannelOpenAck"; value: Uint8Array; @@ -108,6 +134,7 @@ export interface MsgChannelOpenAckSDKType { } /** MsgChannelOpenAckResponse defines the Msg/ChannelOpenAck response type. */ export interface MsgChannelOpenAckResponse {} +export interface ReactiveMsgChannelOpenAckResponse {} export interface MsgChannelOpenAckResponseProtoMsg { typeUrl: "/ibc.core.channel.v1.MsgChannelOpenAckResponse"; value: Uint8Array; @@ -125,6 +152,13 @@ export interface MsgChannelOpenConfirm { proofHeight: Height; signer: string; } +export interface ReactiveMsgChannelOpenConfirm { + portId: ComputedRef; + channelId: ComputedRef; + proofAck: ComputedRef; + proofHeight: ComputedRef; + signer: ComputedRef; +} export interface MsgChannelOpenConfirmProtoMsg { typeUrl: "/ibc.core.channel.v1.MsgChannelOpenConfirm"; value: Uint8Array; @@ -145,6 +179,7 @@ export interface MsgChannelOpenConfirmSDKType { * type. */ export interface MsgChannelOpenConfirmResponse {} +export interface ReactiveMsgChannelOpenConfirmResponse {} export interface MsgChannelOpenConfirmResponseProtoMsg { typeUrl: "/ibc.core.channel.v1.MsgChannelOpenConfirmResponse"; value: Uint8Array; @@ -163,6 +198,11 @@ export interface MsgChannelCloseInit { channelId: string; signer: string; } +export interface ReactiveMsgChannelCloseInit { + portId: ComputedRef; + channelId: ComputedRef; + signer: ComputedRef; +} export interface MsgChannelCloseInitProtoMsg { typeUrl: "/ibc.core.channel.v1.MsgChannelCloseInit"; value: Uint8Array; @@ -178,6 +218,7 @@ export interface MsgChannelCloseInitSDKType { } /** MsgChannelCloseInitResponse defines the Msg/ChannelCloseInit response type. */ export interface MsgChannelCloseInitResponse {} +export interface ReactiveMsgChannelCloseInitResponse {} export interface MsgChannelCloseInitResponseProtoMsg { typeUrl: "/ibc.core.channel.v1.MsgChannelCloseInitResponse"; value: Uint8Array; @@ -195,6 +236,13 @@ export interface MsgChannelCloseConfirm { proofHeight: Height; signer: string; } +export interface ReactiveMsgChannelCloseConfirm { + portId: ComputedRef; + channelId: ComputedRef; + proofInit: ComputedRef; + proofHeight: ComputedRef; + signer: ComputedRef; +} export interface MsgChannelCloseConfirmProtoMsg { typeUrl: "/ibc.core.channel.v1.MsgChannelCloseConfirm"; value: Uint8Array; @@ -215,6 +263,7 @@ export interface MsgChannelCloseConfirmSDKType { * type. */ export interface MsgChannelCloseConfirmResponse {} +export interface ReactiveMsgChannelCloseConfirmResponse {} export interface MsgChannelCloseConfirmResponseProtoMsg { typeUrl: "/ibc.core.channel.v1.MsgChannelCloseConfirmResponse"; value: Uint8Array; @@ -231,6 +280,12 @@ export interface MsgRecvPacket { proofHeight: Height; signer: string; } +export interface ReactiveMsgRecvPacket { + packet: ComputedRef; + proofCommitment: ComputedRef; + proofHeight: ComputedRef; + signer: ComputedRef; +} export interface MsgRecvPacketProtoMsg { typeUrl: "/ibc.core.channel.v1.MsgRecvPacket"; value: Uint8Array; @@ -244,6 +299,7 @@ export interface MsgRecvPacketSDKType { } /** MsgRecvPacketResponse defines the Msg/RecvPacket response type. */ export interface MsgRecvPacketResponse {} +export interface ReactiveMsgRecvPacketResponse {} export interface MsgRecvPacketResponseProtoMsg { typeUrl: "/ibc.core.channel.v1.MsgRecvPacketResponse"; value: Uint8Array; @@ -258,6 +314,13 @@ export interface MsgTimeout { nextSequenceRecv: bigint; signer: string; } +export interface ReactiveMsgTimeout { + packet: ComputedRef; + proofUnreceived: ComputedRef; + proofHeight: ComputedRef; + nextSequenceRecv: ComputedRef; + signer: ComputedRef; +} export interface MsgTimeoutProtoMsg { typeUrl: "/ibc.core.channel.v1.MsgTimeout"; value: Uint8Array; @@ -272,6 +335,7 @@ export interface MsgTimeoutSDKType { } /** MsgTimeoutResponse defines the Msg/Timeout response type. */ export interface MsgTimeoutResponse {} +export interface ReactiveMsgTimeoutResponse {} export interface MsgTimeoutResponseProtoMsg { typeUrl: "/ibc.core.channel.v1.MsgTimeoutResponse"; value: Uint8Array; @@ -287,6 +351,14 @@ export interface MsgTimeoutOnClose { nextSequenceRecv: bigint; signer: string; } +export interface ReactiveMsgTimeoutOnClose { + packet: ComputedRef; + proofUnreceived: ComputedRef; + proofClose: ComputedRef; + proofHeight: ComputedRef; + nextSequenceRecv: ComputedRef; + signer: ComputedRef; +} export interface MsgTimeoutOnCloseProtoMsg { typeUrl: "/ibc.core.channel.v1.MsgTimeoutOnClose"; value: Uint8Array; @@ -302,6 +374,7 @@ export interface MsgTimeoutOnCloseSDKType { } /** MsgTimeoutOnCloseResponse defines the Msg/TimeoutOnClose response type. */ export interface MsgTimeoutOnCloseResponse {} +export interface ReactiveMsgTimeoutOnCloseResponse {} export interface MsgTimeoutOnCloseResponseProtoMsg { typeUrl: "/ibc.core.channel.v1.MsgTimeoutOnCloseResponse"; value: Uint8Array; @@ -316,6 +389,13 @@ export interface MsgAcknowledgement { proofHeight: Height; signer: string; } +export interface ReactiveMsgAcknowledgement { + packet: ComputedRef; + acknowledgement: ComputedRef; + proofAcked: ComputedRef; + proofHeight: ComputedRef; + signer: ComputedRef; +} export interface MsgAcknowledgementProtoMsg { typeUrl: "/ibc.core.channel.v1.MsgAcknowledgement"; value: Uint8Array; @@ -330,6 +410,7 @@ export interface MsgAcknowledgementSDKType { } /** MsgAcknowledgementResponse defines the Msg/Acknowledgement response type. */ export interface MsgAcknowledgementResponse {} +export interface ReactiveMsgAcknowledgementResponse {} export interface MsgAcknowledgementResponseProtoMsg { typeUrl: "/ibc.core.channel.v1.MsgAcknowledgementResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/ibc/core/client/v1/client.ts b/__fixtures__/v-next/outputv4/ibc/core/client/v1/client.ts index 7ec1280379..3b7bcd69e7 100644 --- a/__fixtures__/v-next/outputv4/ibc/core/client/v1/client.ts +++ b/__fixtures__/v-next/outputv4/ibc/core/client/v1/client.ts @@ -3,6 +3,7 @@ import { Plan, PlanSDKType } from "../../../../cosmos/upgrade/v1beta1/upgrade.js import { BinaryReader, BinaryWriter } from "../../../../binary.js"; import { isSet, DeepPartial } from "../../../../helpers.js"; import { JsonSafe } from "../../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "ibc.core.client.v1"; /** * IdentifiedClientState defines a client state with an additional client @@ -14,6 +15,10 @@ export interface IdentifiedClientState { /** client state */ clientState?: Any; } +export interface ReactiveIdentifiedClientState { + clientId: ComputedRef; + clientState?: ComputedRef; +} export interface IdentifiedClientStateProtoMsg { typeUrl: "/ibc.core.client.v1.IdentifiedClientState"; value: Uint8Array; @@ -36,6 +41,10 @@ export interface ConsensusStateWithHeight { /** consensus state */ consensusState?: Any; } +export interface ReactiveConsensusStateWithHeight { + height: ComputedRef; + consensusState?: ComputedRef; +} export interface ConsensusStateWithHeightProtoMsg { typeUrl: "/ibc.core.client.v1.ConsensusStateWithHeight"; value: Uint8Array; @@ -58,6 +67,10 @@ export interface ClientConsensusStates { /** consensus states and their heights associated with the client */ consensusStates: ConsensusStateWithHeight[]; } +export interface ReactiveClientConsensusStates { + clientId: ComputedRef; + consensusStates: ComputedRef; +} export interface ClientConsensusStatesProtoMsg { typeUrl: "/ibc.core.client.v1.ClientConsensusStates"; value: Uint8Array; @@ -89,6 +102,12 @@ export interface ClientUpdateProposal { */ substituteClientId: string; } +export interface ReactiveClientUpdateProposal { + title: ComputedRef; + description: ComputedRef; + subjectClientId: ComputedRef; + substituteClientId: ComputedRef; +} export interface ClientUpdateProposalProtoMsg { typeUrl: "/ibc.core.client.v1.ClientUpdateProposal"; value: Uint8Array; @@ -123,6 +142,12 @@ export interface UpgradeProposal { */ upgradedClientState?: Any; } +export interface ReactiveUpgradeProposal { + title: ComputedRef; + description: ComputedRef; + plan: ComputedRef; + upgradedClientState?: ComputedRef; +} export interface UpgradeProposalProtoMsg { typeUrl: "/ibc.core.client.v1.UpgradeProposal"; value: Uint8Array; @@ -155,6 +180,10 @@ export interface Height { /** the height within the given revision */ revisionHeight: bigint; } +export interface ReactiveHeight { + revisionNumber: ComputedRef; + revisionHeight: ComputedRef; +} export interface HeightProtoMsg { typeUrl: "/ibc.core.client.v1.Height"; value: Uint8Array; @@ -180,6 +209,9 @@ export interface Params { /** allowed_clients defines the list of allowed client state types. */ allowedClients: string[]; } +export interface ReactiveParams { + allowedClients: ComputedRef; +} export interface ParamsProtoMsg { typeUrl: "/ibc.core.client.v1.Params"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/ibc/core/client/v1/genesis.ts b/__fixtures__/v-next/outputv4/ibc/core/client/v1/genesis.ts index 5758609a4f..e35048204f 100644 --- a/__fixtures__/v-next/outputv4/ibc/core/client/v1/genesis.ts +++ b/__fixtures__/v-next/outputv4/ibc/core/client/v1/genesis.ts @@ -2,6 +2,7 @@ import { IdentifiedClientState, IdentifiedClientStateSDKType, ClientConsensusSta import { BinaryReader, BinaryWriter } from "../../../../binary.js"; import { isSet, DeepPartial, bytesFromBase64, base64FromBytes } from "../../../../helpers.js"; import { JsonSafe } from "../../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "ibc.core.client.v1"; /** GenesisState defines the ibc client submodule's genesis state. */ export interface GenesisState { @@ -17,6 +18,14 @@ export interface GenesisState { /** the sequence for the next generated client identifier */ nextClientSequence: bigint; } +export interface ReactiveGenesisState { + clients: ComputedRef; + clientsConsensus: ComputedRef; + clientsMetadata: ComputedRef; + params: ComputedRef; + createLocalhost: ComputedRef; + nextClientSequence: ComputedRef; +} export interface GenesisStateProtoMsg { typeUrl: "/ibc.core.client.v1.GenesisState"; value: Uint8Array; @@ -40,6 +49,10 @@ export interface GenesisMetadata { /** metadata value */ value: Uint8Array; } +export interface ReactiveGenesisMetadata { + key: ComputedRef; + value: ComputedRef; +} export interface GenesisMetadataProtoMsg { typeUrl: "/ibc.core.client.v1.GenesisMetadata"; value: Uint8Array; @@ -60,6 +73,10 @@ export interface IdentifiedGenesisMetadata { clientId: string; clientMetadata: GenesisMetadata[]; } +export interface ReactiveIdentifiedGenesisMetadata { + clientId: ComputedRef; + clientMetadata: ComputedRef; +} export interface IdentifiedGenesisMetadataProtoMsg { typeUrl: "/ibc.core.client.v1.IdentifiedGenesisMetadata"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/ibc/core/client/v1/query.rpc.Query.ts b/__fixtures__/v-next/outputv4/ibc/core/client/v1/query.rpc.Query.ts index 56430ae5a5..57a88ac4e6 100644 --- a/__fixtures__/v-next/outputv4/ibc/core/client/v1/query.rpc.Query.ts +++ b/__fixtures__/v-next/outputv4/ibc/core/client/v1/query.rpc.Query.ts @@ -4,7 +4,7 @@ import { Height, HeightSDKType, IdentifiedClientState, IdentifiedClientStateSDKT import { Rpc } from "../../../../helpers.js"; import { BinaryReader } from "../../../../binary.js"; import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryClientStateRequest, QueryClientStateRequestSDKType, QueryClientStateResponse, QueryClientStateResponseSDKType, QueryClientStatesRequest, QueryClientStatesRequestSDKType, QueryClientStatesResponse, QueryClientStatesResponseSDKType, QueryConsensusStateRequest, QueryConsensusStateRequestSDKType, QueryConsensusStateResponse, QueryConsensusStateResponseSDKType, QueryConsensusStatesRequest, QueryConsensusStatesRequestSDKType, QueryConsensusStatesResponse, QueryConsensusStatesResponseSDKType, QueryClientStatusRequest, QueryClientStatusRequestSDKType, QueryClientStatusResponse, QueryClientStatusResponseSDKType, QueryClientParamsRequest, QueryClientParamsRequestSDKType, QueryClientParamsResponse, QueryClientParamsResponseSDKType, QueryUpgradedClientStateRequest, QueryUpgradedClientStateRequestSDKType, QueryUpgradedClientStateResponse, QueryUpgradedClientStateResponseSDKType, QueryUpgradedConsensusStateRequest, QueryUpgradedConsensusStateRequestSDKType, QueryUpgradedConsensusStateResponse, QueryUpgradedConsensusStateResponseSDKType } from "./query.js"; +import { QueryClientStateRequest, QueryClientStateRequestSDKType, QueryClientStateResponse, QueryClientStateResponseSDKType, QueryClientStatesRequest, QueryClientStatesRequestSDKType, QueryClientStatesResponse, QueryClientStatesResponseSDKType, QueryConsensusStateRequest, QueryConsensusStateRequestSDKType, QueryConsensusStateResponse, QueryConsensusStateResponseSDKType, QueryConsensusStatesRequest, QueryConsensusStatesRequestSDKType, QueryConsensusStatesResponse, QueryConsensusStatesResponseSDKType, QueryClientStatusRequest, QueryClientStatusRequestSDKType, QueryClientStatusResponse, QueryClientStatusResponseSDKType, QueryClientParamsRequest, QueryClientParamsRequestSDKType, QueryClientParamsResponse, QueryClientParamsResponseSDKType, QueryUpgradedClientStateRequest, QueryUpgradedClientStateRequestSDKType, QueryUpgradedClientStateResponse, QueryUpgradedClientStateResponseSDKType, QueryUpgradedConsensusStateRequest, QueryUpgradedConsensusStateRequestSDKType, QueryUpgradedConsensusStateResponse, QueryUpgradedConsensusStateResponseSDKType, ReactiveQueryClientStateRequest, ReactiveQueryClientStatesRequest, ReactiveQueryConsensusStateRequest, ReactiveQueryConsensusStatesRequest, ReactiveQueryClientStatusRequest, ReactiveQueryClientParamsRequest, ReactiveQueryUpgradedClientStateRequest, ReactiveQueryUpgradedConsensusStateRequest } from "./query.js"; /** Query provides defines the gRPC querier service */ export interface Query { /** ClientState queries an IBC light client. */ diff --git a/__fixtures__/v-next/outputv4/ibc/core/client/v1/query.ts b/__fixtures__/v-next/outputv4/ibc/core/client/v1/query.ts index 4dfcdec70b..6189ee707f 100644 --- a/__fixtures__/v-next/outputv4/ibc/core/client/v1/query.ts +++ b/__fixtures__/v-next/outputv4/ibc/core/client/v1/query.ts @@ -4,6 +4,7 @@ import { Height, HeightSDKType, IdentifiedClientState, IdentifiedClientStateSDKT import { BinaryReader, BinaryWriter } from "../../../../binary.js"; import { isSet, DeepPartial, bytesFromBase64, base64FromBytes } from "../../../../helpers.js"; import { JsonSafe } from "../../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "ibc.core.client.v1"; /** * QueryClientStateRequest is the request type for the Query/ClientState RPC @@ -13,6 +14,9 @@ export interface QueryClientStateRequest { /** client state unique identifier */ clientId: string; } +export interface ReactiveQueryClientStateRequest { + clientId: ComputedRef; +} export interface QueryClientStateRequestProtoMsg { typeUrl: "/ibc.core.client.v1.QueryClientStateRequest"; value: Uint8Array; @@ -37,6 +41,11 @@ export interface QueryClientStateResponse { /** height at which the proof was retrieved */ proofHeight: Height; } +export interface ReactiveQueryClientStateResponse { + clientState?: ComputedRef; + proof: ComputedRef; + proofHeight: ComputedRef; +} export interface QueryClientStateResponseProtoMsg { typeUrl: "/ibc.core.client.v1.QueryClientStateResponse"; value: Uint8Array; @@ -59,6 +68,9 @@ export interface QueryClientStatesRequest { /** pagination request */ pagination?: PageRequest; } +export interface ReactiveQueryClientStatesRequest { + pagination?: ComputedRef; +} export interface QueryClientStatesRequestProtoMsg { typeUrl: "/ibc.core.client.v1.QueryClientStatesRequest"; value: Uint8Array; @@ -80,6 +92,10 @@ export interface QueryClientStatesResponse { /** pagination response */ pagination?: PageResponse; } +export interface ReactiveQueryClientStatesResponse { + clientStates: ComputedRef; + pagination?: ComputedRef; +} export interface QueryClientStatesResponseProtoMsg { typeUrl: "/ibc.core.client.v1.QueryClientStatesResponse"; value: Uint8Array; @@ -110,6 +126,12 @@ export interface QueryConsensusStateRequest { */ latestHeight: boolean; } +export interface ReactiveQueryConsensusStateRequest { + clientId: ComputedRef; + revisionNumber: ComputedRef; + revisionHeight: ComputedRef; + latestHeight: ComputedRef; +} export interface QueryConsensusStateRequestProtoMsg { typeUrl: "/ibc.core.client.v1.QueryConsensusStateRequest"; value: Uint8Array; @@ -137,6 +159,11 @@ export interface QueryConsensusStateResponse { /** height at which the proof was retrieved */ proofHeight: Height; } +export interface ReactiveQueryConsensusStateResponse { + consensusState?: ComputedRef; + proof: ComputedRef; + proofHeight: ComputedRef; +} export interface QueryConsensusStateResponseProtoMsg { typeUrl: "/ibc.core.client.v1.QueryConsensusStateResponse"; value: Uint8Array; @@ -160,6 +187,10 @@ export interface QueryConsensusStatesRequest { /** pagination request */ pagination?: PageRequest; } +export interface ReactiveQueryConsensusStatesRequest { + clientId: ComputedRef; + pagination?: ComputedRef; +} export interface QueryConsensusStatesRequestProtoMsg { typeUrl: "/ibc.core.client.v1.QueryConsensusStatesRequest"; value: Uint8Array; @@ -182,6 +213,10 @@ export interface QueryConsensusStatesResponse { /** pagination response */ pagination?: PageResponse; } +export interface ReactiveQueryConsensusStatesResponse { + consensusStates: ComputedRef; + pagination?: ComputedRef; +} export interface QueryConsensusStatesResponseProtoMsg { typeUrl: "/ibc.core.client.v1.QueryConsensusStatesResponse"; value: Uint8Array; @@ -202,6 +237,9 @@ export interface QueryClientStatusRequest { /** client unique identifier */ clientId: string; } +export interface ReactiveQueryClientStatusRequest { + clientId: ComputedRef; +} export interface QueryClientStatusRequestProtoMsg { typeUrl: "/ibc.core.client.v1.QueryClientStatusRequest"; value: Uint8Array; @@ -220,6 +258,9 @@ export interface QueryClientStatusRequestSDKType { export interface QueryClientStatusResponse { status: string; } +export interface ReactiveQueryClientStatusResponse { + status: ComputedRef; +} export interface QueryClientStatusResponseProtoMsg { typeUrl: "/ibc.core.client.v1.QueryClientStatusResponse"; value: Uint8Array; @@ -236,6 +277,7 @@ export interface QueryClientStatusResponseSDKType { * method. */ export interface QueryClientParamsRequest {} +export interface ReactiveQueryClientParamsRequest {} export interface QueryClientParamsRequestProtoMsg { typeUrl: "/ibc.core.client.v1.QueryClientParamsRequest"; value: Uint8Array; @@ -253,6 +295,9 @@ export interface QueryClientParamsResponse { /** params defines the parameters of the module. */ params?: Params; } +export interface ReactiveQueryClientParamsResponse { + params?: ComputedRef; +} export interface QueryClientParamsResponseProtoMsg { typeUrl: "/ibc.core.client.v1.QueryClientParamsResponse"; value: Uint8Array; @@ -269,6 +314,7 @@ export interface QueryClientParamsResponseSDKType { * Query/UpgradedClientState RPC method */ export interface QueryUpgradedClientStateRequest {} +export interface ReactiveQueryUpgradedClientStateRequest {} export interface QueryUpgradedClientStateRequestProtoMsg { typeUrl: "/ibc.core.client.v1.QueryUpgradedClientStateRequest"; value: Uint8Array; @@ -286,6 +332,9 @@ export interface QueryUpgradedClientStateResponse { /** client state associated with the request identifier */ upgradedClientState?: Any; } +export interface ReactiveQueryUpgradedClientStateResponse { + upgradedClientState?: ComputedRef; +} export interface QueryUpgradedClientStateResponseProtoMsg { typeUrl: "/ibc.core.client.v1.QueryUpgradedClientStateResponse"; value: Uint8Array; @@ -302,6 +351,7 @@ export interface QueryUpgradedClientStateResponseSDKType { * Query/UpgradedConsensusState RPC method */ export interface QueryUpgradedConsensusStateRequest {} +export interface ReactiveQueryUpgradedConsensusStateRequest {} export interface QueryUpgradedConsensusStateRequestProtoMsg { typeUrl: "/ibc.core.client.v1.QueryUpgradedConsensusStateRequest"; value: Uint8Array; @@ -319,6 +369,9 @@ export interface QueryUpgradedConsensusStateResponse { /** Consensus state associated with the request identifier */ upgradedConsensusState?: Any; } +export interface ReactiveQueryUpgradedConsensusStateResponse { + upgradedConsensusState?: ComputedRef; +} export interface QueryUpgradedConsensusStateResponseProtoMsg { typeUrl: "/ibc.core.client.v1.QueryUpgradedConsensusStateResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/ibc/core/client/v1/tx.ts b/__fixtures__/v-next/outputv4/ibc/core/client/v1/tx.ts index db930310aa..a6612edeb4 100644 --- a/__fixtures__/v-next/outputv4/ibc/core/client/v1/tx.ts +++ b/__fixtures__/v-next/outputv4/ibc/core/client/v1/tx.ts @@ -2,6 +2,7 @@ import { Any, AnySDKType } from "../../../../google/protobuf/any.js"; import { BinaryReader, BinaryWriter } from "../../../../binary.js"; import { isSet, DeepPartial, bytesFromBase64, base64FromBytes } from "../../../../helpers.js"; import { JsonSafe } from "../../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "ibc.core.client.v1"; /** MsgCreateClient defines a message to create an IBC client */ export interface MsgCreateClient { @@ -15,6 +16,11 @@ export interface MsgCreateClient { /** signer address */ signer: string; } +export interface ReactiveMsgCreateClient { + clientState?: ComputedRef; + consensusState?: ComputedRef; + signer: ComputedRef; +} export interface MsgCreateClientProtoMsg { typeUrl: "/ibc.core.client.v1.MsgCreateClient"; value: Uint8Array; @@ -27,6 +33,7 @@ export interface MsgCreateClientSDKType { } /** MsgCreateClientResponse defines the Msg/CreateClient response type. */ export interface MsgCreateClientResponse {} +export interface ReactiveMsgCreateClientResponse {} export interface MsgCreateClientResponseProtoMsg { typeUrl: "/ibc.core.client.v1.MsgCreateClientResponse"; value: Uint8Array; @@ -45,6 +52,11 @@ export interface MsgUpdateClient { /** signer address */ signer: string; } +export interface ReactiveMsgUpdateClient { + clientId: ComputedRef; + header?: ComputedRef; + signer: ComputedRef; +} export interface MsgUpdateClientProtoMsg { typeUrl: "/ibc.core.client.v1.MsgUpdateClient"; value: Uint8Array; @@ -60,6 +72,7 @@ export interface MsgUpdateClientSDKType { } /** MsgUpdateClientResponse defines the Msg/UpdateClient response type. */ export interface MsgUpdateClientResponse {} +export interface ReactiveMsgUpdateClientResponse {} export interface MsgUpdateClientResponseProtoMsg { typeUrl: "/ibc.core.client.v1.MsgUpdateClientResponse"; value: Uint8Array; @@ -87,6 +100,14 @@ export interface MsgUpgradeClient { /** signer address */ signer: string; } +export interface ReactiveMsgUpgradeClient { + clientId: ComputedRef; + clientState?: ComputedRef; + consensusState?: ComputedRef; + proofUpgradeClient: ComputedRef; + proofUpgradeConsensusState: ComputedRef; + signer: ComputedRef; +} export interface MsgUpgradeClientProtoMsg { typeUrl: "/ibc.core.client.v1.MsgUpgradeClient"; value: Uint8Array; @@ -105,6 +126,7 @@ export interface MsgUpgradeClientSDKType { } /** MsgUpgradeClientResponse defines the Msg/UpgradeClient response type. */ export interface MsgUpgradeClientResponse {} +export interface ReactiveMsgUpgradeClientResponse {} export interface MsgUpgradeClientResponseProtoMsg { typeUrl: "/ibc.core.client.v1.MsgUpgradeClientResponse"; value: Uint8Array; @@ -123,6 +145,11 @@ export interface MsgSubmitMisbehaviour { /** signer address */ signer: string; } +export interface ReactiveMsgSubmitMisbehaviour { + clientId: ComputedRef; + misbehaviour?: ComputedRef; + signer: ComputedRef; +} export interface MsgSubmitMisbehaviourProtoMsg { typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviour"; value: Uint8Array; @@ -141,6 +168,7 @@ export interface MsgSubmitMisbehaviourSDKType { * type. */ export interface MsgSubmitMisbehaviourResponse {} +export interface ReactiveMsgSubmitMisbehaviourResponse {} export interface MsgSubmitMisbehaviourResponseProtoMsg { typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviourResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/ibc/core/commitment/v1/commitment.ts b/__fixtures__/v-next/outputv4/ibc/core/commitment/v1/commitment.ts index 2f880de87a..955015c0a2 100644 --- a/__fixtures__/v-next/outputv4/ibc/core/commitment/v1/commitment.ts +++ b/__fixtures__/v-next/outputv4/ibc/core/commitment/v1/commitment.ts @@ -2,6 +2,7 @@ import { CommitmentProof, CommitmentProofSDKType } from "../../../../confio/proo import { BinaryReader, BinaryWriter } from "../../../../binary.js"; import { isSet, bytesFromBase64, base64FromBytes, DeepPartial } from "../../../../helpers.js"; import { JsonSafe } from "../../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "ibc.core.commitment.v1"; /** * MerkleRoot defines a merkle root hash. @@ -10,6 +11,9 @@ export const protobufPackage = "ibc.core.commitment.v1"; export interface MerkleRoot { hash: Uint8Array; } +export interface ReactiveMerkleRoot { + hash: ComputedRef; +} export interface MerkleRootProtoMsg { typeUrl: "/ibc.core.commitment.v1.MerkleRoot"; value: Uint8Array; @@ -29,6 +33,9 @@ export interface MerkleRootSDKType { export interface MerklePrefix { keyPrefix: Uint8Array; } +export interface ReactiveMerklePrefix { + keyPrefix: ComputedRef; +} export interface MerklePrefixProtoMsg { typeUrl: "/ibc.core.commitment.v1.MerklePrefix"; value: Uint8Array; @@ -49,6 +56,9 @@ export interface MerklePrefixSDKType { export interface MerklePath { keyPath: string[]; } +export interface ReactiveMerklePath { + keyPath: ComputedRef; +} export interface MerklePathProtoMsg { typeUrl: "/ibc.core.commitment.v1.MerklePath"; value: Uint8Array; @@ -71,6 +81,9 @@ export interface MerklePathSDKType { export interface MerkleProof { proofs: CommitmentProof[]; } +export interface ReactiveMerkleProof { + proofs: ComputedRef; +} export interface MerkleProofProtoMsg { typeUrl: "/ibc.core.commitment.v1.MerkleProof"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/ibc/core/connection/v1/connection.ts b/__fixtures__/v-next/outputv4/ibc/core/connection/v1/connection.ts index c16c59eac9..004d1d642a 100644 --- a/__fixtures__/v-next/outputv4/ibc/core/connection/v1/connection.ts +++ b/__fixtures__/v-next/outputv4/ibc/core/connection/v1/connection.ts @@ -2,6 +2,7 @@ import { MerklePrefix, MerklePrefixSDKType } from "../../commitment/v1/commitmen import { BinaryReader, BinaryWriter } from "../../../../binary.js"; import { isSet, DeepPartial } from "../../../../helpers.js"; import { JsonSafe } from "../../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "ibc.core.connection.v1"; /** * State defines if a connection is in one of the following states: @@ -82,6 +83,13 @@ export interface ConnectionEnd { */ delayPeriod: bigint; } +export interface ReactiveConnectionEnd { + clientId: ComputedRef; + versions: ComputedRef; + state: ComputedRef; + counterparty: ComputedRef; + delayPeriod: ComputedRef; +} export interface ConnectionEndProtoMsg { typeUrl: "/ibc.core.connection.v1.ConnectionEnd"; value: Uint8Array; @@ -120,6 +128,14 @@ export interface IdentifiedConnection { /** delay period associated with this connection. */ delayPeriod: bigint; } +export interface ReactiveIdentifiedConnection { + id: ComputedRef; + clientId: ComputedRef; + versions: ComputedRef; + state: ComputedRef; + counterparty: ComputedRef; + delayPeriod: ComputedRef; +} export interface IdentifiedConnectionProtoMsg { typeUrl: "/ibc.core.connection.v1.IdentifiedConnection"; value: Uint8Array; @@ -151,6 +167,11 @@ export interface Counterparty { /** commitment merkle prefix of the counterparty chain. */ prefix: MerklePrefix; } +export interface ReactiveCounterparty { + clientId: ComputedRef; + connectionId: ComputedRef; + prefix: ComputedRef; +} export interface CounterpartyProtoMsg { typeUrl: "/ibc.core.connection.v1.Counterparty"; value: Uint8Array; @@ -166,6 +187,9 @@ export interface ClientPaths { /** list of connection paths */ paths: string[]; } +export interface ReactiveClientPaths { + paths: ComputedRef; +} export interface ClientPathsProtoMsg { typeUrl: "/ibc.core.connection.v1.ClientPaths"; value: Uint8Array; @@ -181,6 +205,10 @@ export interface ConnectionPaths { /** list of connection paths */ paths: string[]; } +export interface ReactiveConnectionPaths { + clientId: ComputedRef; + paths: ComputedRef; +} export interface ConnectionPathsProtoMsg { typeUrl: "/ibc.core.connection.v1.ConnectionPaths"; value: Uint8Array; @@ -200,6 +228,10 @@ export interface Version { /** list of features compatible with the specified identifier */ features: string[]; } +export interface ReactiveVersion { + identifier: ComputedRef; + features: ComputedRef; +} export interface VersionProtoMsg { typeUrl: "/ibc.core.connection.v1.Version"; value: Uint8Array; @@ -221,6 +253,9 @@ export interface Params { */ maxExpectedTimePerBlock: bigint; } +export interface ReactiveParams { + maxExpectedTimePerBlock: ComputedRef; +} export interface ParamsProtoMsg { typeUrl: "/ibc.core.connection.v1.Params"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/ibc/core/connection/v1/genesis.ts b/__fixtures__/v-next/outputv4/ibc/core/connection/v1/genesis.ts index f4ea4cdab9..db3c889150 100644 --- a/__fixtures__/v-next/outputv4/ibc/core/connection/v1/genesis.ts +++ b/__fixtures__/v-next/outputv4/ibc/core/connection/v1/genesis.ts @@ -2,6 +2,7 @@ import { IdentifiedConnection, IdentifiedConnectionSDKType, ConnectionPaths, Con import { BinaryReader, BinaryWriter } from "../../../../binary.js"; import { isSet, DeepPartial } from "../../../../helpers.js"; import { JsonSafe } from "../../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "ibc.core.connection.v1"; /** GenesisState defines the ibc connection submodule's genesis state. */ export interface GenesisState { @@ -11,6 +12,12 @@ export interface GenesisState { nextConnectionSequence: bigint; params: Params; } +export interface ReactiveGenesisState { + connections: ComputedRef; + clientConnectionPaths: ComputedRef; + nextConnectionSequence: ComputedRef; + params: ComputedRef; +} export interface GenesisStateProtoMsg { typeUrl: "/ibc.core.connection.v1.GenesisState"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/ibc/core/connection/v1/query.rpc.Query.ts b/__fixtures__/v-next/outputv4/ibc/core/connection/v1/query.rpc.Query.ts index 7a925539b4..aa045d1687 100644 --- a/__fixtures__/v-next/outputv4/ibc/core/connection/v1/query.rpc.Query.ts +++ b/__fixtures__/v-next/outputv4/ibc/core/connection/v1/query.rpc.Query.ts @@ -5,7 +5,7 @@ import { Any, AnySDKType } from "../../../../google/protobuf/any.js"; import { Rpc } from "../../../../helpers.js"; import { BinaryReader } from "../../../../binary.js"; import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryConnectionRequest, QueryConnectionRequestSDKType, QueryConnectionResponse, QueryConnectionResponseSDKType, QueryConnectionsRequest, QueryConnectionsRequestSDKType, QueryConnectionsResponse, QueryConnectionsResponseSDKType, QueryClientConnectionsRequest, QueryClientConnectionsRequestSDKType, QueryClientConnectionsResponse, QueryClientConnectionsResponseSDKType, QueryConnectionClientStateRequest, QueryConnectionClientStateRequestSDKType, QueryConnectionClientStateResponse, QueryConnectionClientStateResponseSDKType, QueryConnectionConsensusStateRequest, QueryConnectionConsensusStateRequestSDKType, QueryConnectionConsensusStateResponse, QueryConnectionConsensusStateResponseSDKType } from "./query.js"; +import { QueryConnectionRequest, QueryConnectionRequestSDKType, QueryConnectionResponse, QueryConnectionResponseSDKType, QueryConnectionsRequest, QueryConnectionsRequestSDKType, QueryConnectionsResponse, QueryConnectionsResponseSDKType, QueryClientConnectionsRequest, QueryClientConnectionsRequestSDKType, QueryClientConnectionsResponse, QueryClientConnectionsResponseSDKType, QueryConnectionClientStateRequest, QueryConnectionClientStateRequestSDKType, QueryConnectionClientStateResponse, QueryConnectionClientStateResponseSDKType, QueryConnectionConsensusStateRequest, QueryConnectionConsensusStateRequestSDKType, QueryConnectionConsensusStateResponse, QueryConnectionConsensusStateResponseSDKType, ReactiveQueryConnectionRequest, ReactiveQueryConnectionsRequest, ReactiveQueryClientConnectionsRequest, ReactiveQueryConnectionClientStateRequest, ReactiveQueryConnectionConsensusStateRequest } from "./query.js"; /** Query provides defines the gRPC querier service */ export interface Query { /** Connection queries an IBC connection end. */ diff --git a/__fixtures__/v-next/outputv4/ibc/core/connection/v1/query.ts b/__fixtures__/v-next/outputv4/ibc/core/connection/v1/query.ts index 71a52c8c2f..4666b4148a 100644 --- a/__fixtures__/v-next/outputv4/ibc/core/connection/v1/query.ts +++ b/__fixtures__/v-next/outputv4/ibc/core/connection/v1/query.ts @@ -5,6 +5,7 @@ import { Any, AnySDKType } from "../../../../google/protobuf/any.js"; import { BinaryReader, BinaryWriter } from "../../../../binary.js"; import { isSet, DeepPartial, bytesFromBase64, base64FromBytes } from "../../../../helpers.js"; import { JsonSafe } from "../../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "ibc.core.connection.v1"; /** * QueryConnectionRequest is the request type for the Query/Connection RPC @@ -14,6 +15,9 @@ export interface QueryConnectionRequest { /** connection unique identifier */ connectionId: string; } +export interface ReactiveQueryConnectionRequest { + connectionId: ComputedRef; +} export interface QueryConnectionRequestProtoMsg { typeUrl: "/ibc.core.connection.v1.QueryConnectionRequest"; value: Uint8Array; @@ -38,6 +42,11 @@ export interface QueryConnectionResponse { /** height at which the proof was retrieved */ proofHeight: Height; } +export interface ReactiveQueryConnectionResponse { + connection?: ComputedRef; + proof: ComputedRef; + proofHeight: ComputedRef; +} export interface QueryConnectionResponseProtoMsg { typeUrl: "/ibc.core.connection.v1.QueryConnectionResponse"; value: Uint8Array; @@ -59,6 +68,9 @@ export interface QueryConnectionResponseSDKType { export interface QueryConnectionsRequest { pagination?: PageRequest; } +export interface ReactiveQueryConnectionsRequest { + pagination?: ComputedRef; +} export interface QueryConnectionsRequestProtoMsg { typeUrl: "/ibc.core.connection.v1.QueryConnectionsRequest"; value: Uint8Array; @@ -82,6 +94,11 @@ export interface QueryConnectionsResponse { /** query block height */ height: Height; } +export interface ReactiveQueryConnectionsResponse { + connections: ComputedRef; + pagination?: ComputedRef; + height: ComputedRef; +} export interface QueryConnectionsResponseProtoMsg { typeUrl: "/ibc.core.connection.v1.QueryConnectionsResponse"; value: Uint8Array; @@ -103,6 +120,9 @@ export interface QueryClientConnectionsRequest { /** client identifier associated with a connection */ clientId: string; } +export interface ReactiveQueryClientConnectionsRequest { + clientId: ComputedRef; +} export interface QueryClientConnectionsRequestProtoMsg { typeUrl: "/ibc.core.connection.v1.QueryClientConnectionsRequest"; value: Uint8Array; @@ -126,6 +146,11 @@ export interface QueryClientConnectionsResponse { /** height at which the proof was generated */ proofHeight: Height; } +export interface ReactiveQueryClientConnectionsResponse { + connectionPaths: ComputedRef; + proof: ComputedRef; + proofHeight: ComputedRef; +} export interface QueryClientConnectionsResponseProtoMsg { typeUrl: "/ibc.core.connection.v1.QueryClientConnectionsResponse"; value: Uint8Array; @@ -147,6 +172,9 @@ export interface QueryConnectionClientStateRequest { /** connection identifier */ connectionId: string; } +export interface ReactiveQueryConnectionClientStateRequest { + connectionId: ComputedRef; +} export interface QueryConnectionClientStateRequestProtoMsg { typeUrl: "/ibc.core.connection.v1.QueryConnectionClientStateRequest"; value: Uint8Array; @@ -170,6 +198,11 @@ export interface QueryConnectionClientStateResponse { /** height at which the proof was retrieved */ proofHeight: Height; } +export interface ReactiveQueryConnectionClientStateResponse { + identifiedClientState?: ComputedRef; + proof: ComputedRef; + proofHeight: ComputedRef; +} export interface QueryConnectionClientStateResponseProtoMsg { typeUrl: "/ibc.core.connection.v1.QueryConnectionClientStateResponse"; value: Uint8Array; @@ -193,6 +226,11 @@ export interface QueryConnectionConsensusStateRequest { revisionNumber: bigint; revisionHeight: bigint; } +export interface ReactiveQueryConnectionConsensusStateRequest { + connectionId: ComputedRef; + revisionNumber: ComputedRef; + revisionHeight: ComputedRef; +} export interface QueryConnectionConsensusStateRequestProtoMsg { typeUrl: "/ibc.core.connection.v1.QueryConnectionConsensusStateRequest"; value: Uint8Array; @@ -220,6 +258,12 @@ export interface QueryConnectionConsensusStateResponse { /** height at which the proof was retrieved */ proofHeight: Height; } +export interface ReactiveQueryConnectionConsensusStateResponse { + consensusState?: ComputedRef; + clientId: ComputedRef; + proof: ComputedRef; + proofHeight: ComputedRef; +} export interface QueryConnectionConsensusStateResponseProtoMsg { typeUrl: "/ibc.core.connection.v1.QueryConnectionConsensusStateResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/ibc/core/connection/v1/tx.ts b/__fixtures__/v-next/outputv4/ibc/core/connection/v1/tx.ts index 624401ba19..4707892e10 100644 --- a/__fixtures__/v-next/outputv4/ibc/core/connection/v1/tx.ts +++ b/__fixtures__/v-next/outputv4/ibc/core/connection/v1/tx.ts @@ -4,6 +4,7 @@ import { Height, HeightSDKType } from "../../client/v1/client.js"; import { BinaryReader, BinaryWriter } from "../../../../binary.js"; import { isSet, DeepPartial, bytesFromBase64, base64FromBytes } from "../../../../helpers.js"; import { JsonSafe } from "../../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "ibc.core.connection.v1"; /** * MsgConnectionOpenInit defines the msg sent by an account on Chain A to @@ -16,6 +17,13 @@ export interface MsgConnectionOpenInit { delayPeriod: bigint; signer: string; } +export interface ReactiveMsgConnectionOpenInit { + clientId: ComputedRef; + counterparty: ComputedRef; + version?: ComputedRef; + delayPeriod: ComputedRef; + signer: ComputedRef; +} export interface MsgConnectionOpenInitProtoMsg { typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenInit"; value: Uint8Array; @@ -36,6 +44,7 @@ export interface MsgConnectionOpenInitSDKType { * type. */ export interface MsgConnectionOpenInitResponse {} +export interface ReactiveMsgConnectionOpenInitResponse {} export interface MsgConnectionOpenInitResponseProtoMsg { typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenInitResponse"; value: Uint8Array; @@ -73,6 +82,20 @@ export interface MsgConnectionOpenTry { consensusHeight: Height; signer: string; } +export interface ReactiveMsgConnectionOpenTry { + clientId: ComputedRef; + previousConnectionId: ComputedRef; + clientState?: ComputedRef; + counterparty: ComputedRef; + delayPeriod: ComputedRef; + counterpartyVersions: ComputedRef; + proofHeight: ComputedRef; + proofInit: ComputedRef; + proofClient: ComputedRef; + proofConsensus: ComputedRef; + consensusHeight: ComputedRef; + signer: ComputedRef; +} export interface MsgConnectionOpenTryProtoMsg { typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenTry"; value: Uint8Array; @@ -97,6 +120,7 @@ export interface MsgConnectionOpenTrySDKType { } /** MsgConnectionOpenTryResponse defines the Msg/ConnectionOpenTry response type. */ export interface MsgConnectionOpenTryResponse {} +export interface ReactiveMsgConnectionOpenTryResponse {} export interface MsgConnectionOpenTryResponseProtoMsg { typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenTryResponse"; value: Uint8Array; @@ -125,6 +149,18 @@ export interface MsgConnectionOpenAck { consensusHeight: Height; signer: string; } +export interface ReactiveMsgConnectionOpenAck { + connectionId: ComputedRef; + counterpartyConnectionId: ComputedRef; + version?: ComputedRef; + clientState?: ComputedRef; + proofHeight: ComputedRef; + proofTry: ComputedRef; + proofClient: ComputedRef; + proofConsensus: ComputedRef; + consensusHeight: ComputedRef; + signer: ComputedRef; +} export interface MsgConnectionOpenAckProtoMsg { typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenAck"; value: Uint8Array; @@ -147,6 +183,7 @@ export interface MsgConnectionOpenAckSDKType { } /** MsgConnectionOpenAckResponse defines the Msg/ConnectionOpenAck response type. */ export interface MsgConnectionOpenAckResponse {} +export interface ReactiveMsgConnectionOpenAckResponse {} export interface MsgConnectionOpenAckResponseProtoMsg { typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenAckResponse"; value: Uint8Array; @@ -164,6 +201,12 @@ export interface MsgConnectionOpenConfirm { proofHeight: Height; signer: string; } +export interface ReactiveMsgConnectionOpenConfirm { + connectionId: ComputedRef; + proofAck: ComputedRef; + proofHeight: ComputedRef; + signer: ComputedRef; +} export interface MsgConnectionOpenConfirmProtoMsg { typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenConfirm"; value: Uint8Array; @@ -183,6 +226,7 @@ export interface MsgConnectionOpenConfirmSDKType { * response type. */ export interface MsgConnectionOpenConfirmResponse {} +export interface ReactiveMsgConnectionOpenConfirmResponse {} export interface MsgConnectionOpenConfirmResponseProtoMsg { typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenConfirmResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/ibc/core/port/v1/query.rpc.Query.ts b/__fixtures__/v-next/outputv4/ibc/core/port/v1/query.rpc.Query.ts index 31f4b61e2b..33693a78a8 100644 --- a/__fixtures__/v-next/outputv4/ibc/core/port/v1/query.rpc.Query.ts +++ b/__fixtures__/v-next/outputv4/ibc/core/port/v1/query.rpc.Query.ts @@ -2,7 +2,7 @@ import { Order, OrderSDKType, Counterparty, CounterpartySDKType } from "../../ch import { Rpc } from "../../../../helpers.js"; import { BinaryReader } from "../../../../binary.js"; import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryAppVersionRequest, QueryAppVersionRequestSDKType, QueryAppVersionResponse, QueryAppVersionResponseSDKType } from "./query.js"; +import { QueryAppVersionRequest, QueryAppVersionRequestSDKType, QueryAppVersionResponse, QueryAppVersionResponseSDKType, ReactiveQueryAppVersionRequest } from "./query.js"; /** Query defines the gRPC querier service */ export interface Query { /** AppVersion queries an IBC Port and determines the appropriate application version to be used */ diff --git a/__fixtures__/v-next/outputv4/ibc/core/port/v1/query.ts b/__fixtures__/v-next/outputv4/ibc/core/port/v1/query.ts index 828afe798e..a7d41f6486 100644 --- a/__fixtures__/v-next/outputv4/ibc/core/port/v1/query.ts +++ b/__fixtures__/v-next/outputv4/ibc/core/port/v1/query.ts @@ -2,6 +2,7 @@ import { Order, OrderSDKType, Counterparty, CounterpartySDKType, orderFromJSON, import { BinaryReader, BinaryWriter } from "../../../../binary.js"; import { isSet, DeepPartial } from "../../../../helpers.js"; import { JsonSafe } from "../../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "ibc.core.port.v1"; /** QueryAppVersionRequest is the request type for the Query/AppVersion RPC method */ export interface QueryAppVersionRequest { @@ -16,6 +17,13 @@ export interface QueryAppVersionRequest { /** proposed version */ proposedVersion: string; } +export interface ReactiveQueryAppVersionRequest { + portId: ComputedRef; + connectionId: ComputedRef; + ordering: ComputedRef; + counterparty?: ComputedRef; + proposedVersion: ComputedRef; +} export interface QueryAppVersionRequestProtoMsg { typeUrl: "/ibc.core.port.v1.QueryAppVersionRequest"; value: Uint8Array; @@ -35,6 +43,10 @@ export interface QueryAppVersionResponse { /** supported app version */ version: string; } +export interface ReactiveQueryAppVersionResponse { + portId: ComputedRef; + version: ComputedRef; +} export interface QueryAppVersionResponseProtoMsg { typeUrl: "/ibc.core.port.v1.QueryAppVersionResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/ibc/core/types/v1/genesis.ts b/__fixtures__/v-next/outputv4/ibc/core/types/v1/genesis.ts index 9a8f407b17..186850b2bb 100644 --- a/__fixtures__/v-next/outputv4/ibc/core/types/v1/genesis.ts +++ b/__fixtures__/v-next/outputv4/ibc/core/types/v1/genesis.ts @@ -7,6 +7,7 @@ import { GenesisStateSDKType as GenesisState3SDKType } from "../../channel/v1/ge import { BinaryReader, BinaryWriter } from "../../../../binary.js"; import { isSet, DeepPartial } from "../../../../helpers.js"; import { JsonSafe } from "../../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "ibc.core.types.v1"; /** GenesisState defines the ibc module's genesis state. */ export interface GenesisState { @@ -17,6 +18,11 @@ export interface GenesisState { /** ICS004 - Channel genesis state */ channelGenesis: GenesisState3; } +export interface ReactiveGenesisState { + clientGenesis: ComputedRef; + connectionGenesis: ComputedRef; + channelGenesis: ComputedRef; +} export interface GenesisStateProtoMsg { typeUrl: "/ibc.core.types.v1.GenesisState"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/ibc/lightclients/localhost/v1/localhost.ts b/__fixtures__/v-next/outputv4/ibc/lightclients/localhost/v1/localhost.ts index 5efc897130..11148e58f0 100644 --- a/__fixtures__/v-next/outputv4/ibc/lightclients/localhost/v1/localhost.ts +++ b/__fixtures__/v-next/outputv4/ibc/lightclients/localhost/v1/localhost.ts @@ -2,6 +2,7 @@ import { Height, HeightSDKType } from "../../../core/client/v1/client.js"; import { BinaryReader, BinaryWriter } from "../../../../binary.js"; import { isSet, DeepPartial } from "../../../../helpers.js"; import { JsonSafe } from "../../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "ibc.lightclients.localhost.v1"; /** * ClientState defines a loopback (localhost) client. It requires (read-only) @@ -13,6 +14,10 @@ export interface ClientState { /** self latest block height */ height: Height; } +export interface ReactiveClientState { + chainId: ComputedRef; + height: ComputedRef; +} export interface ClientStateProtoMsg { typeUrl: "/ibc.lightclients.localhost.v1.ClientState"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/ibc/lightclients/solomachine/v1/solomachine.ts b/__fixtures__/v-next/outputv4/ibc/lightclients/solomachine/v1/solomachine.ts index b1c6ce6ff6..99ea2ba873 100644 --- a/__fixtures__/v-next/outputv4/ibc/lightclients/solomachine/v1/solomachine.ts +++ b/__fixtures__/v-next/outputv4/ibc/lightclients/solomachine/v1/solomachine.ts @@ -4,6 +4,7 @@ import { Channel, ChannelSDKType } from "../../../core/channel/v1/channel.js"; import { BinaryReader, BinaryWriter } from "../../../../binary.js"; import { isSet, DeepPartial, bytesFromBase64, base64FromBytes } from "../../../../helpers.js"; import { JsonSafe } from "../../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "ibc.lightclients.solomachine.v1"; /** * DataType defines the type of solo machine proof being created. This is done @@ -114,6 +115,12 @@ export interface ClientState { */ allowUpdateAfterProposal: boolean; } +export interface ReactiveClientState { + sequence: ComputedRef; + frozenSequence: ComputedRef; + consensusState?: ComputedRef; + allowUpdateAfterProposal: ComputedRef; +} export interface ClientStateProtoMsg { typeUrl: "/ibc.lightclients.solomachine.v1.ClientState"; value: Uint8Array; @@ -144,6 +151,11 @@ export interface ConsensusState { diversifier: string; timestamp: bigint; } +export interface ReactiveConsensusState { + publicKey?: ComputedRef; + diversifier: ComputedRef; + timestamp: ComputedRef; +} export interface ConsensusStateProtoMsg { typeUrl: "/ibc.lightclients.solomachine.v1.ConsensusState"; value: Uint8Array; @@ -167,6 +179,13 @@ export interface Header { newPublicKey?: Any; newDiversifier: string; } +export interface ReactiveHeader { + sequence: ComputedRef; + timestamp: ComputedRef; + signature: ComputedRef; + newPublicKey?: ComputedRef; + newDiversifier: ComputedRef; +} export interface HeaderProtoMsg { typeUrl: "/ibc.lightclients.solomachine.v1.Header"; value: Uint8Array; @@ -189,6 +208,12 @@ export interface Misbehaviour { signatureOne?: SignatureAndData; signatureTwo?: SignatureAndData; } +export interface ReactiveMisbehaviour { + clientId: ComputedRef; + sequence: ComputedRef; + signatureOne?: ComputedRef; + signatureTwo?: ComputedRef; +} export interface MisbehaviourProtoMsg { typeUrl: "/ibc.lightclients.solomachine.v1.Misbehaviour"; value: Uint8Array; @@ -213,6 +238,12 @@ export interface SignatureAndData { data: Uint8Array; timestamp: bigint; } +export interface ReactiveSignatureAndData { + signature: ComputedRef; + dataType: ComputedRef; + data: ComputedRef; + timestamp: ComputedRef; +} export interface SignatureAndDataProtoMsg { typeUrl: "/ibc.lightclients.solomachine.v1.SignatureAndData"; value: Uint8Array; @@ -235,6 +266,10 @@ export interface TimestampedSignatureData { signatureData: Uint8Array; timestamp: bigint; } +export interface ReactiveTimestampedSignatureData { + signatureData: ComputedRef; + timestamp: ComputedRef; +} export interface TimestampedSignatureDataProtoMsg { typeUrl: "/ibc.lightclients.solomachine.v1.TimestampedSignatureData"; value: Uint8Array; @@ -257,6 +292,13 @@ export interface SignBytes { /** marshaled data */ data: Uint8Array; } +export interface ReactiveSignBytes { + sequence: ComputedRef; + timestamp: ComputedRef; + diversifier: ComputedRef; + dataType: ComputedRef; + data: ComputedRef; +} export interface SignBytesProtoMsg { typeUrl: "/ibc.lightclients.solomachine.v1.SignBytes"; value: Uint8Array; @@ -276,6 +318,10 @@ export interface HeaderData { /** header diversifier */ newDiversifier: string; } +export interface ReactiveHeaderData { + newPubKey?: ComputedRef; + newDiversifier: ComputedRef; +} export interface HeaderDataProtoMsg { typeUrl: "/ibc.lightclients.solomachine.v1.HeaderData"; value: Uint8Array; @@ -290,6 +336,10 @@ export interface ClientStateData { path: Uint8Array; clientState?: Any; } +export interface ReactiveClientStateData { + path: ComputedRef; + clientState?: ComputedRef; +} export interface ClientStateDataProtoMsg { typeUrl: "/ibc.lightclients.solomachine.v1.ClientStateData"; value: Uint8Array; @@ -307,6 +357,10 @@ export interface ConsensusStateData { path: Uint8Array; consensusState?: Any; } +export interface ReactiveConsensusStateData { + path: ComputedRef; + consensusState?: ComputedRef; +} export interface ConsensusStateDataProtoMsg { typeUrl: "/ibc.lightclients.solomachine.v1.ConsensusStateData"; value: Uint8Array; @@ -327,6 +381,10 @@ export interface ConnectionStateData { path: Uint8Array; connection?: ConnectionEnd; } +export interface ReactiveConnectionStateData { + path: ComputedRef; + connection?: ComputedRef; +} export interface ConnectionStateDataProtoMsg { typeUrl: "/ibc.lightclients.solomachine.v1.ConnectionStateData"; value: Uint8Array; @@ -347,6 +405,10 @@ export interface ChannelStateData { path: Uint8Array; channel?: Channel; } +export interface ReactiveChannelStateData { + path: ComputedRef; + channel?: ComputedRef; +} export interface ChannelStateDataProtoMsg { typeUrl: "/ibc.lightclients.solomachine.v1.ChannelStateData"; value: Uint8Array; @@ -367,6 +429,10 @@ export interface PacketCommitmentData { path: Uint8Array; commitment: Uint8Array; } +export interface ReactivePacketCommitmentData { + path: ComputedRef; + commitment: ComputedRef; +} export interface PacketCommitmentDataProtoMsg { typeUrl: "/ibc.lightclients.solomachine.v1.PacketCommitmentData"; value: Uint8Array; @@ -387,6 +453,10 @@ export interface PacketAcknowledgementData { path: Uint8Array; acknowledgement: Uint8Array; } +export interface ReactivePacketAcknowledgementData { + path: ComputedRef; + acknowledgement: ComputedRef; +} export interface PacketAcknowledgementDataProtoMsg { typeUrl: "/ibc.lightclients.solomachine.v1.PacketAcknowledgementData"; value: Uint8Array; @@ -406,6 +476,9 @@ export interface PacketAcknowledgementDataSDKType { export interface PacketReceiptAbsenceData { path: Uint8Array; } +export interface ReactivePacketReceiptAbsenceData { + path: ComputedRef; +} export interface PacketReceiptAbsenceDataProtoMsg { typeUrl: "/ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData"; value: Uint8Array; @@ -425,6 +498,10 @@ export interface NextSequenceRecvData { path: Uint8Array; nextSeqRecv: bigint; } +export interface ReactiveNextSequenceRecvData { + path: ComputedRef; + nextSeqRecv: ComputedRef; +} export interface NextSequenceRecvDataProtoMsg { typeUrl: "/ibc.lightclients.solomachine.v1.NextSequenceRecvData"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/ibc/lightclients/solomachine/v2/solomachine.ts b/__fixtures__/v-next/outputv4/ibc/lightclients/solomachine/v2/solomachine.ts index a13d208b11..a66702217a 100644 --- a/__fixtures__/v-next/outputv4/ibc/lightclients/solomachine/v2/solomachine.ts +++ b/__fixtures__/v-next/outputv4/ibc/lightclients/solomachine/v2/solomachine.ts @@ -4,6 +4,7 @@ import { Channel, ChannelSDKType } from "../../../core/channel/v1/channel.js"; import { BinaryReader, BinaryWriter } from "../../../../binary.js"; import { isSet, DeepPartial, bytesFromBase64, base64FromBytes } from "../../../../helpers.js"; import { JsonSafe } from "../../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "ibc.lightclients.solomachine.v2"; /** * DataType defines the type of solo machine proof being created. This is done @@ -114,6 +115,12 @@ export interface ClientState { */ allowUpdateAfterProposal: boolean; } +export interface ReactiveClientState { + sequence: ComputedRef; + isFrozen: ComputedRef; + consensusState?: ComputedRef; + allowUpdateAfterProposal: ComputedRef; +} export interface ClientStateProtoMsg { typeUrl: "/ibc.lightclients.solomachine.v2.ClientState"; value: Uint8Array; @@ -144,6 +151,11 @@ export interface ConsensusState { diversifier: string; timestamp: bigint; } +export interface ReactiveConsensusState { + publicKey?: ComputedRef; + diversifier: ComputedRef; + timestamp: ComputedRef; +} export interface ConsensusStateProtoMsg { typeUrl: "/ibc.lightclients.solomachine.v2.ConsensusState"; value: Uint8Array; @@ -167,6 +179,13 @@ export interface Header { newPublicKey?: Any; newDiversifier: string; } +export interface ReactiveHeader { + sequence: ComputedRef; + timestamp: ComputedRef; + signature: ComputedRef; + newPublicKey?: ComputedRef; + newDiversifier: ComputedRef; +} export interface HeaderProtoMsg { typeUrl: "/ibc.lightclients.solomachine.v2.Header"; value: Uint8Array; @@ -189,6 +208,12 @@ export interface Misbehaviour { signatureOne?: SignatureAndData; signatureTwo?: SignatureAndData; } +export interface ReactiveMisbehaviour { + clientId: ComputedRef; + sequence: ComputedRef; + signatureOne?: ComputedRef; + signatureTwo?: ComputedRef; +} export interface MisbehaviourProtoMsg { typeUrl: "/ibc.lightclients.solomachine.v2.Misbehaviour"; value: Uint8Array; @@ -213,6 +238,12 @@ export interface SignatureAndData { data: Uint8Array; timestamp: bigint; } +export interface ReactiveSignatureAndData { + signature: ComputedRef; + dataType: ComputedRef; + data: ComputedRef; + timestamp: ComputedRef; +} export interface SignatureAndDataProtoMsg { typeUrl: "/ibc.lightclients.solomachine.v2.SignatureAndData"; value: Uint8Array; @@ -235,6 +266,10 @@ export interface TimestampedSignatureData { signatureData: Uint8Array; timestamp: bigint; } +export interface ReactiveTimestampedSignatureData { + signatureData: ComputedRef; + timestamp: ComputedRef; +} export interface TimestampedSignatureDataProtoMsg { typeUrl: "/ibc.lightclients.solomachine.v2.TimestampedSignatureData"; value: Uint8Array; @@ -257,6 +292,13 @@ export interface SignBytes { /** marshaled data */ data: Uint8Array; } +export interface ReactiveSignBytes { + sequence: ComputedRef; + timestamp: ComputedRef; + diversifier: ComputedRef; + dataType: ComputedRef; + data: ComputedRef; +} export interface SignBytesProtoMsg { typeUrl: "/ibc.lightclients.solomachine.v2.SignBytes"; value: Uint8Array; @@ -276,6 +318,10 @@ export interface HeaderData { /** header diversifier */ newDiversifier: string; } +export interface ReactiveHeaderData { + newPubKey?: ComputedRef; + newDiversifier: ComputedRef; +} export interface HeaderDataProtoMsg { typeUrl: "/ibc.lightclients.solomachine.v2.HeaderData"; value: Uint8Array; @@ -290,6 +336,10 @@ export interface ClientStateData { path: Uint8Array; clientState?: Any; } +export interface ReactiveClientStateData { + path: ComputedRef; + clientState?: ComputedRef; +} export interface ClientStateDataProtoMsg { typeUrl: "/ibc.lightclients.solomachine.v2.ClientStateData"; value: Uint8Array; @@ -307,6 +357,10 @@ export interface ConsensusStateData { path: Uint8Array; consensusState?: Any; } +export interface ReactiveConsensusStateData { + path: ComputedRef; + consensusState?: ComputedRef; +} export interface ConsensusStateDataProtoMsg { typeUrl: "/ibc.lightclients.solomachine.v2.ConsensusStateData"; value: Uint8Array; @@ -327,6 +381,10 @@ export interface ConnectionStateData { path: Uint8Array; connection?: ConnectionEnd; } +export interface ReactiveConnectionStateData { + path: ComputedRef; + connection?: ComputedRef; +} export interface ConnectionStateDataProtoMsg { typeUrl: "/ibc.lightclients.solomachine.v2.ConnectionStateData"; value: Uint8Array; @@ -347,6 +405,10 @@ export interface ChannelStateData { path: Uint8Array; channel?: Channel; } +export interface ReactiveChannelStateData { + path: ComputedRef; + channel?: ComputedRef; +} export interface ChannelStateDataProtoMsg { typeUrl: "/ibc.lightclients.solomachine.v2.ChannelStateData"; value: Uint8Array; @@ -367,6 +429,10 @@ export interface PacketCommitmentData { path: Uint8Array; commitment: Uint8Array; } +export interface ReactivePacketCommitmentData { + path: ComputedRef; + commitment: ComputedRef; +} export interface PacketCommitmentDataProtoMsg { typeUrl: "/ibc.lightclients.solomachine.v2.PacketCommitmentData"; value: Uint8Array; @@ -387,6 +453,10 @@ export interface PacketAcknowledgementData { path: Uint8Array; acknowledgement: Uint8Array; } +export interface ReactivePacketAcknowledgementData { + path: ComputedRef; + acknowledgement: ComputedRef; +} export interface PacketAcknowledgementDataProtoMsg { typeUrl: "/ibc.lightclients.solomachine.v2.PacketAcknowledgementData"; value: Uint8Array; @@ -406,6 +476,9 @@ export interface PacketAcknowledgementDataSDKType { export interface PacketReceiptAbsenceData { path: Uint8Array; } +export interface ReactivePacketReceiptAbsenceData { + path: ComputedRef; +} export interface PacketReceiptAbsenceDataProtoMsg { typeUrl: "/ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData"; value: Uint8Array; @@ -425,6 +498,10 @@ export interface NextSequenceRecvData { path: Uint8Array; nextSeqRecv: bigint; } +export interface ReactiveNextSequenceRecvData { + path: ComputedRef; + nextSeqRecv: ComputedRef; +} export interface NextSequenceRecvDataProtoMsg { typeUrl: "/ibc.lightclients.solomachine.v2.NextSequenceRecvData"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/ibc/lightclients/tendermint/v1/tendermint.ts b/__fixtures__/v-next/outputv4/ibc/lightclients/tendermint/v1/tendermint.ts index 638b4c0a82..5c6209f1fe 100644 --- a/__fixtures__/v-next/outputv4/ibc/lightclients/tendermint/v1/tendermint.ts +++ b/__fixtures__/v-next/outputv4/ibc/lightclients/tendermint/v1/tendermint.ts @@ -8,6 +8,7 @@ import { ValidatorSet, ValidatorSetSDKType } from "../../../../tendermint/types/ import { BinaryReader, BinaryWriter } from "../../../../binary.js"; import { isSet, DeepPartial, toTimestamp, fromTimestamp, bytesFromBase64, base64FromBytes } from "../../../../helpers.js"; import { JsonSafe } from "../../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "ibc.lightclients.tendermint.v1"; /** * ClientState from Tendermint tracks the current validator set, latest height, @@ -52,6 +53,19 @@ export interface ClientState { */ allowUpdateAfterMisbehaviour: boolean; } +export interface ReactiveClientState { + chainId: ComputedRef; + trustLevel: ComputedRef; + trustingPeriod: ComputedRef; + unbondingPeriod: ComputedRef; + maxClockDrift: ComputedRef; + frozenHeight: ComputedRef; + latestHeight: ComputedRef; + proofSpecs: ComputedRef; + upgradePath: ComputedRef; + allowUpdateAfterExpiry: ComputedRef; + allowUpdateAfterMisbehaviour: ComputedRef; +} export interface ClientStateProtoMsg { typeUrl: "/ibc.lightclients.tendermint.v1.ClientState"; value: Uint8Array; @@ -84,6 +98,11 @@ export interface ConsensusState { root: MerkleRoot; nextValidatorsHash: Uint8Array; } +export interface ReactiveConsensusState { + timestamp: ComputedRef; + root: ComputedRef; + nextValidatorsHash: ComputedRef; +} export interface ConsensusStateProtoMsg { typeUrl: "/ibc.lightclients.tendermint.v1.ConsensusState"; value: Uint8Array; @@ -103,6 +122,11 @@ export interface Misbehaviour { header1?: Header; header2?: Header; } +export interface ReactiveMisbehaviour { + clientId: ComputedRef; + header1?: ComputedRef
; + header2?: ComputedRef
; +} export interface MisbehaviourProtoMsg { typeUrl: "/ibc.lightclients.tendermint.v1.Misbehaviour"; value: Uint8Array; @@ -136,6 +160,12 @@ export interface Header { trustedHeight: Height; trustedValidators?: ValidatorSet; } +export interface ReactiveHeader { + signedHeader?: ComputedRef; + validatorSet?: ComputedRef; + trustedHeight: ComputedRef; + trustedValidators?: ComputedRef; +} export interface HeaderProtoMsg { typeUrl: "/ibc.lightclients.tendermint.v1.Header"; value: Uint8Array; @@ -168,6 +198,10 @@ export interface Fraction { numerator: bigint; denominator: bigint; } +export interface ReactiveFraction { + numerator: ComputedRef; + denominator: ComputedRef; +} export interface FractionProtoMsg { typeUrl: "/ibc.lightclients.tendermint.v1.Fraction"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/index.ts b/__fixtures__/v-next/outputv4/index.ts index b0cfcf1ba6..c52714556d 100644 --- a/__fixtures__/v-next/outputv4/index.ts +++ b/__fixtures__/v-next/outputv4/index.ts @@ -25,6 +25,7 @@ export * from "./hooks.js"; export * from "./mobx.stores.js"; export * from "./extern.js"; export * from "./react-query.js"; +export * from "./vue-query.js"; export * from "./mobx.js"; export * from "./pinia-endpoint.js"; export * from "./json-safe.js"; diff --git a/__fixtures__/v-next/outputv4/osmosis/claim/v1beta1/claim.ts b/__fixtures__/v-next/outputv4/osmosis/claim/v1beta1/claim.ts index 8caab06ea1..922410275d 100644 --- a/__fixtures__/v-next/outputv4/osmosis/claim/v1beta1/claim.ts +++ b/__fixtures__/v-next/outputv4/osmosis/claim/v1beta1/claim.ts @@ -2,6 +2,7 @@ import { Coin, CoinSDKType } from "../../../cosmos/base/v1beta1/coin.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "osmosis.claim.v1beta1"; export enum Action { ActionAddLiquidity = 0, @@ -58,6 +59,11 @@ export interface ClaimRecord { */ actionCompleted: boolean[]; } +export interface ReactiveClaimRecord { + address: ComputedRef; + initialClaimableAmount: ComputedRef; + actionCompleted: ComputedRef; +} export interface ClaimRecordProtoMsg { typeUrl: "/osmosis.claim.v1beta1.ClaimRecord"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/osmosis/claim/v1beta1/genesis.ts b/__fixtures__/v-next/outputv4/osmosis/claim/v1beta1/genesis.ts index 801b77a53d..3d5f05a3b1 100644 --- a/__fixtures__/v-next/outputv4/osmosis/claim/v1beta1/genesis.ts +++ b/__fixtures__/v-next/outputv4/osmosis/claim/v1beta1/genesis.ts @@ -4,6 +4,7 @@ import { ClaimRecord, ClaimRecordSDKType } from "./claim.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "osmosis.claim.v1beta1"; /** GenesisState defines the claim module's genesis state. */ export interface GenesisState { @@ -14,6 +15,11 @@ export interface GenesisState { /** list of claim records, one for every airdrop recipient */ claimRecords: ClaimRecord[]; } +export interface ReactiveGenesisState { + moduleAccountBalance: ComputedRef; + params: ComputedRef; + claimRecords: ComputedRef; +} export interface GenesisStateProtoMsg { typeUrl: "/osmosis.claim.v1beta1.GenesisState"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/osmosis/claim/v1beta1/params.ts b/__fixtures__/v-next/outputv4/osmosis/claim/v1beta1/params.ts index f86f2824e1..713214eaed 100644 --- a/__fixtures__/v-next/outputv4/osmosis/claim/v1beta1/params.ts +++ b/__fixtures__/v-next/outputv4/osmosis/claim/v1beta1/params.ts @@ -3,6 +3,7 @@ import { Duration, DurationSDKType } from "../../../google/protobuf/duration.js" import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { toTimestamp, fromTimestamp, isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "osmosis.claim.v1beta1"; /** Params defines the claim module's parameters. */ export interface Params { @@ -12,6 +13,12 @@ export interface Params { /** denom of claimable asset */ claimDenom: string; } +export interface ReactiveParams { + airdropStartTime: ComputedRef; + durationUntilDecay: ComputedRef; + durationOfDecay: ComputedRef; + claimDenom: ComputedRef; +} export interface ParamsProtoMsg { typeUrl: "/osmosis.claim.v1beta1.Params"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/osmosis/claim/v1beta1/query.rpc.Query.ts b/__fixtures__/v-next/outputv4/osmosis/claim/v1beta1/query.rpc.Query.ts index 9e17414b36..3b61e0d9df 100644 --- a/__fixtures__/v-next/outputv4/osmosis/claim/v1beta1/query.rpc.Query.ts +++ b/__fixtures__/v-next/outputv4/osmosis/claim/v1beta1/query.rpc.Query.ts @@ -4,7 +4,7 @@ import { Params, ParamsSDKType } from "./params.js"; import { Rpc } from "../../../helpers.js"; import { BinaryReader } from "../../../binary.js"; import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryModuleAccountBalanceRequest, QueryModuleAccountBalanceRequestSDKType, QueryModuleAccountBalanceResponse, QueryModuleAccountBalanceResponseSDKType, QueryParamsRequest, QueryParamsRequestSDKType, QueryParamsResponse, QueryParamsResponseSDKType, QueryClaimRecordRequest, QueryClaimRecordRequestSDKType, QueryClaimRecordResponse, QueryClaimRecordResponseSDKType, QueryClaimableForActionRequest, QueryClaimableForActionRequestSDKType, QueryClaimableForActionResponse, QueryClaimableForActionResponseSDKType, QueryTotalClaimableRequest, QueryTotalClaimableRequestSDKType, QueryTotalClaimableResponse, QueryTotalClaimableResponseSDKType } from "./query.js"; +import { QueryModuleAccountBalanceRequest, QueryModuleAccountBalanceRequestSDKType, QueryModuleAccountBalanceResponse, QueryModuleAccountBalanceResponseSDKType, QueryParamsRequest, QueryParamsRequestSDKType, QueryParamsResponse, QueryParamsResponseSDKType, QueryClaimRecordRequest, QueryClaimRecordRequestSDKType, QueryClaimRecordResponse, QueryClaimRecordResponseSDKType, QueryClaimableForActionRequest, QueryClaimableForActionRequestSDKType, QueryClaimableForActionResponse, QueryClaimableForActionResponseSDKType, QueryTotalClaimableRequest, QueryTotalClaimableRequestSDKType, QueryTotalClaimableResponse, QueryTotalClaimableResponseSDKType, ReactiveQueryModuleAccountBalanceRequest, ReactiveQueryParamsRequest, ReactiveQueryClaimRecordRequest, ReactiveQueryClaimableForActionRequest, ReactiveQueryTotalClaimableRequest } from "./query.js"; /** Query defines the gRPC querier service. */ export interface Query { moduleAccountBalance(request?: QueryModuleAccountBalanceRequest): Promise; diff --git a/__fixtures__/v-next/outputv4/osmosis/claim/v1beta1/query.ts b/__fixtures__/v-next/outputv4/osmosis/claim/v1beta1/query.ts index fe56319185..ec96498102 100644 --- a/__fixtures__/v-next/outputv4/osmosis/claim/v1beta1/query.ts +++ b/__fixtures__/v-next/outputv4/osmosis/claim/v1beta1/query.ts @@ -4,9 +4,11 @@ import { Params, ParamsSDKType } from "./params.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { JsonSafe } from "../../../json-safe.js"; import { DeepPartial, isSet } from "../../../helpers.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "osmosis.claim.v1beta1"; /** QueryParamsRequest is the request type for the Query/Params RPC method. */ export interface QueryModuleAccountBalanceRequest {} +export interface ReactiveQueryModuleAccountBalanceRequest {} export interface QueryModuleAccountBalanceRequestProtoMsg { typeUrl: "/osmosis.claim.v1beta1.QueryModuleAccountBalanceRequest"; value: Uint8Array; @@ -18,6 +20,9 @@ export interface QueryModuleAccountBalanceResponse { /** params defines the parameters of the module. */ moduleAccountBalance: Coin[]; } +export interface ReactiveQueryModuleAccountBalanceResponse { + moduleAccountBalance: ComputedRef; +} export interface QueryModuleAccountBalanceResponseProtoMsg { typeUrl: "/osmosis.claim.v1beta1.QueryModuleAccountBalanceResponse"; value: Uint8Array; @@ -28,6 +33,7 @@ export interface QueryModuleAccountBalanceResponseSDKType { } /** QueryParamsRequest is the request type for the Query/Params RPC method. */ export interface QueryParamsRequest {} +export interface ReactiveQueryParamsRequest {} export interface QueryParamsRequestProtoMsg { typeUrl: "/osmosis.claim.v1beta1.QueryParamsRequest"; value: Uint8Array; @@ -39,6 +45,9 @@ export interface QueryParamsResponse { /** params defines the parameters of the module. */ params: Params; } +export interface ReactiveQueryParamsResponse { + params: ComputedRef; +} export interface QueryParamsResponseProtoMsg { typeUrl: "/osmosis.claim.v1beta1.QueryParamsResponse"; value: Uint8Array; @@ -50,6 +59,9 @@ export interface QueryParamsResponseSDKType { export interface QueryClaimRecordRequest { address: string; } +export interface ReactiveQueryClaimRecordRequest { + address: ComputedRef; +} export interface QueryClaimRecordRequestProtoMsg { typeUrl: "/osmosis.claim.v1beta1.QueryClaimRecordRequest"; value: Uint8Array; @@ -60,6 +72,9 @@ export interface QueryClaimRecordRequestSDKType { export interface QueryClaimRecordResponse { claimRecord: ClaimRecord; } +export interface ReactiveQueryClaimRecordResponse { + claimRecord: ComputedRef; +} export interface QueryClaimRecordResponseProtoMsg { typeUrl: "/osmosis.claim.v1beta1.QueryClaimRecordResponse"; value: Uint8Array; @@ -71,6 +86,10 @@ export interface QueryClaimableForActionRequest { address: string; action: Action; } +export interface ReactiveQueryClaimableForActionRequest { + address: ComputedRef; + action: ComputedRef; +} export interface QueryClaimableForActionRequestProtoMsg { typeUrl: "/osmosis.claim.v1beta1.QueryClaimableForActionRequest"; value: Uint8Array; @@ -82,6 +101,9 @@ export interface QueryClaimableForActionRequestSDKType { export interface QueryClaimableForActionResponse { coins: Coin[]; } +export interface ReactiveQueryClaimableForActionResponse { + coins: ComputedRef; +} export interface QueryClaimableForActionResponseProtoMsg { typeUrl: "/osmosis.claim.v1beta1.QueryClaimableForActionResponse"; value: Uint8Array; @@ -92,6 +114,9 @@ export interface QueryClaimableForActionResponseSDKType { export interface QueryTotalClaimableRequest { address: string; } +export interface ReactiveQueryTotalClaimableRequest { + address: ComputedRef; +} export interface QueryTotalClaimableRequestProtoMsg { typeUrl: "/osmosis.claim.v1beta1.QueryTotalClaimableRequest"; value: Uint8Array; @@ -102,6 +127,9 @@ export interface QueryTotalClaimableRequestSDKType { export interface QueryTotalClaimableResponse { coins: Coin[]; } +export interface ReactiveQueryTotalClaimableResponse { + coins: ComputedRef; +} export interface QueryTotalClaimableResponseProtoMsg { typeUrl: "/osmosis.claim.v1beta1.QueryTotalClaimableResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/osmosis/epochs/genesis.ts b/__fixtures__/v-next/outputv4/osmosis/epochs/genesis.ts index 94345deb48..e297a59b2b 100644 --- a/__fixtures__/v-next/outputv4/osmosis/epochs/genesis.ts +++ b/__fixtures__/v-next/outputv4/osmosis/epochs/genesis.ts @@ -3,6 +3,7 @@ import { Duration, DurationSDKType } from "../../google/protobuf/duration.js"; import { BinaryReader, BinaryWriter } from "../../binary.js"; import { toTimestamp, fromTimestamp, isSet, DeepPartial } from "../../helpers.js"; import { JsonSafe } from "../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "osmosis.epochs.v1beta1"; /** * EpochInfo is a struct that describes the data going into @@ -62,6 +63,15 @@ export interface EpochInfo { */ currentEpochStartHeight: bigint; } +export interface ReactiveEpochInfo { + identifier: ComputedRef; + startTime: ComputedRef; + duration: ComputedRef; + currentEpoch: ComputedRef; + currentEpochStartTime: ComputedRef; + epochCountingStarted: ComputedRef; + currentEpochStartHeight: ComputedRef; +} export interface EpochInfoProtoMsg { typeUrl: "/osmosis.epochs.v1beta1.EpochInfo"; value: Uint8Array; @@ -83,6 +93,9 @@ export interface EpochInfoSDKType { export interface GenesisState { epochs: EpochInfo[]; } +export interface ReactiveGenesisState { + epochs: ComputedRef; +} export interface GenesisStateProtoMsg { typeUrl: "/osmosis.epochs.v1beta1.GenesisState"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/osmosis/epochs/query.rpc.Query.ts b/__fixtures__/v-next/outputv4/osmosis/epochs/query.rpc.Query.ts index b74ffde1d0..24a1166779 100644 --- a/__fixtures__/v-next/outputv4/osmosis/epochs/query.rpc.Query.ts +++ b/__fixtures__/v-next/outputv4/osmosis/epochs/query.rpc.Query.ts @@ -2,7 +2,7 @@ import { EpochInfo, EpochInfoSDKType } from "./genesis.js"; import { Rpc } from "../../helpers.js"; import { BinaryReader } from "../../binary.js"; import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryEpochsInfoRequest, QueryEpochsInfoRequestSDKType, QueryEpochsInfoResponse, QueryEpochsInfoResponseSDKType, QueryCurrentEpochRequest, QueryCurrentEpochRequestSDKType, QueryCurrentEpochResponse, QueryCurrentEpochResponseSDKType } from "./query.js"; +import { QueryEpochsInfoRequest, QueryEpochsInfoRequestSDKType, QueryEpochsInfoResponse, QueryEpochsInfoResponseSDKType, QueryCurrentEpochRequest, QueryCurrentEpochRequestSDKType, QueryCurrentEpochResponse, QueryCurrentEpochResponseSDKType, ReactiveQueryEpochsInfoRequest, ReactiveQueryCurrentEpochRequest } from "./query.js"; /** Query defines the gRPC querier service. */ export interface Query { /** EpochInfos provide running epochInfos */ diff --git a/__fixtures__/v-next/outputv4/osmosis/epochs/query.ts b/__fixtures__/v-next/outputv4/osmosis/epochs/query.ts index bdf7103b6c..3db26a960a 100644 --- a/__fixtures__/v-next/outputv4/osmosis/epochs/query.ts +++ b/__fixtures__/v-next/outputv4/osmosis/epochs/query.ts @@ -2,8 +2,10 @@ import { EpochInfo, EpochInfoSDKType } from "./genesis.js"; import { BinaryReader, BinaryWriter } from "../../binary.js"; import { JsonSafe } from "../../json-safe.js"; import { DeepPartial, isSet } from "../../helpers.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "osmosis.epochs.v1beta1"; export interface QueryEpochsInfoRequest {} +export interface ReactiveQueryEpochsInfoRequest {} export interface QueryEpochsInfoRequestProtoMsg { typeUrl: "/osmosis.epochs.v1beta1.QueryEpochsInfoRequest"; value: Uint8Array; @@ -12,6 +14,9 @@ export interface QueryEpochsInfoRequestSDKType {} export interface QueryEpochsInfoResponse { epochs: EpochInfo[]; } +export interface ReactiveQueryEpochsInfoResponse { + epochs: ComputedRef; +} export interface QueryEpochsInfoResponseProtoMsg { typeUrl: "/osmosis.epochs.v1beta1.QueryEpochsInfoResponse"; value: Uint8Array; @@ -22,6 +27,9 @@ export interface QueryEpochsInfoResponseSDKType { export interface QueryCurrentEpochRequest { identifier: string; } +export interface ReactiveQueryCurrentEpochRequest { + identifier: ComputedRef; +} export interface QueryCurrentEpochRequestProtoMsg { typeUrl: "/osmosis.epochs.v1beta1.QueryCurrentEpochRequest"; value: Uint8Array; @@ -32,6 +40,9 @@ export interface QueryCurrentEpochRequestSDKType { export interface QueryCurrentEpochResponse { currentEpoch: bigint; } +export interface ReactiveQueryCurrentEpochResponse { + currentEpoch: ComputedRef; +} export interface QueryCurrentEpochResponseProtoMsg { typeUrl: "/osmosis.epochs.v1beta1.QueryCurrentEpochResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/osmosis/gamm/pool-models/balancer/balancerPool.ts b/__fixtures__/v-next/outputv4/osmosis/gamm/pool-models/balancer/balancerPool.ts index 57874a83f4..f40607d993 100644 --- a/__fixtures__/v-next/outputv4/osmosis/gamm/pool-models/balancer/balancerPool.ts +++ b/__fixtures__/v-next/outputv4/osmosis/gamm/pool-models/balancer/balancerPool.ts @@ -5,6 +5,7 @@ import { BinaryReader, BinaryWriter } from "../../../../binary.js"; import { toTimestamp, fromTimestamp, isSet, DeepPartial } from "../../../../helpers.js"; import { JsonSafe } from "../../../../json-safe.js"; import { Decimal } from "@cosmjs/math"; +import { ComputedRef } from "vue"; export const protobufPackage = "osmosis.gamm.v1beta1"; /** * Parameters for changing the weights in a balancer pool smoothly from @@ -44,6 +45,12 @@ export interface SmoothWeightChangeParams { */ targetPoolWeights: PoolAsset[]; } +export interface ReactiveSmoothWeightChangeParams { + startTime: ComputedRef; + duration: ComputedRef; + initialPoolWeights: ComputedRef; + targetPoolWeights: ComputedRef; +} export interface SmoothWeightChangeParamsProtoMsg { typeUrl: "/osmosis.gamm.v1beta1.SmoothWeightChangeParams"; value: Uint8Array; @@ -78,6 +85,11 @@ export interface PoolParams { exitFee: string; smoothWeightChangeParams?: SmoothWeightChangeParams; } +export interface ReactivePoolParams { + swapFee: ComputedRef; + exitFee: ComputedRef; + smoothWeightChangeParams?: ComputedRef; +} export interface PoolParamsProtoMsg { typeUrl: "/osmosis.gamm.v1beta1.PoolParams"; value: Uint8Array; @@ -108,6 +120,10 @@ export interface PoolAsset { /** Weight that is not normalized. This weight must be less than 2^50 */ weight: string; } +export interface ReactivePoolAsset { + token: ComputedRef; + weight: ComputedRef; +} export interface PoolAssetProtoMsg { typeUrl: "/osmosis.gamm.v1beta1.PoolAsset"; value: Uint8Array; @@ -148,6 +164,15 @@ export interface Pool { /** sum of all non-normalized pool weights */ totalWeight: string; } +export interface ReactivePool { + address: ComputedRef; + id: ComputedRef; + poolParams: ComputedRef; + futurePoolGovernor: ComputedRef; + totalShares: ComputedRef; + poolAssets: ComputedRef; + totalWeight: ComputedRef; +} export interface PoolProtoMsg { typeUrl: "/osmosis.gamm.v1beta1.Pool"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/osmosis/gamm/pool-models/balancer/tx/tx.ts b/__fixtures__/v-next/outputv4/osmosis/gamm/pool-models/balancer/tx/tx.ts index 37f43a7d22..d0ef9c6c34 100644 --- a/__fixtures__/v-next/outputv4/osmosis/gamm/pool-models/balancer/tx/tx.ts +++ b/__fixtures__/v-next/outputv4/osmosis/gamm/pool-models/balancer/tx/tx.ts @@ -2,6 +2,7 @@ import { PoolParams, PoolParamsSDKType, PoolAsset, PoolAssetSDKType } from "../b import { BinaryReader, BinaryWriter } from "../../../../../binary.js"; import { isSet, DeepPartial } from "../../../../../helpers.js"; import { JsonSafe } from "../../../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "osmosis.gamm.poolmodels.balancer.v1beta1"; /** ===================== MsgCreatePool */ export interface MsgCreateBalancerPool { @@ -10,6 +11,12 @@ export interface MsgCreateBalancerPool { poolAssets: PoolAsset[]; futurePoolGovernor: string; } +export interface ReactiveMsgCreateBalancerPool { + sender: ComputedRef; + poolParams?: ComputedRef; + poolAssets: ComputedRef; + futurePoolGovernor: ComputedRef; +} export interface MsgCreateBalancerPoolProtoMsg { typeUrl: "/osmosis.gamm.poolmodels.balancer.v1beta1.MsgCreateBalancerPool"; value: Uint8Array; @@ -25,6 +32,9 @@ export interface MsgCreateBalancerPoolSDKType { export interface MsgCreateBalancerPoolResponse { poolId: bigint; } +export interface ReactiveMsgCreateBalancerPoolResponse { + poolId: ComputedRef; +} export interface MsgCreateBalancerPoolResponseProtoMsg { typeUrl: "/osmosis.gamm.poolmodels.balancer.v1beta1.MsgCreateBalancerPoolResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/osmosis/gamm/pool-models/stableswap/stableswap_pool.ts b/__fixtures__/v-next/outputv4/osmosis/gamm/pool-models/stableswap/stableswap_pool.ts index a1e1aeaf76..41506cbcdf 100644 --- a/__fixtures__/v-next/outputv4/osmosis/gamm/pool-models/stableswap/stableswap_pool.ts +++ b/__fixtures__/v-next/outputv4/osmosis/gamm/pool-models/stableswap/stableswap_pool.ts @@ -3,6 +3,7 @@ import { BinaryReader, BinaryWriter } from "../../../../binary.js"; import { Decimal } from "@cosmjs/math"; import { isSet, DeepPartial } from "../../../../helpers.js"; import { JsonSafe } from "../../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "osmosis.gamm.poolmodels.stableswap.v1beta1"; /** * PoolParams defined the parameters that will be managed by the pool @@ -14,6 +15,10 @@ export interface PoolParams { swapFee: string; exitFee: string; } +export interface ReactivePoolParams { + swapFee: ComputedRef; + exitFee: ComputedRef; +} export interface PoolParamsProtoMsg { typeUrl: "/osmosis.gamm.poolmodels.stableswap.v1beta1.PoolParams"; value: Uint8Array; @@ -53,6 +58,16 @@ export interface Pool { /** scaling_factor_controller is the address can adjust pool scaling factors */ scalingFactorController: string; } +export interface ReactivePool { + address: ComputedRef; + id: ComputedRef; + poolParams: ComputedRef; + futurePoolGovernor: ComputedRef; + totalShares: ComputedRef; + poolLiquidity: ComputedRef; + scalingFactors: ComputedRef; + scalingFactorController: ComputedRef; +} export interface PoolProtoMsg { typeUrl: "/osmosis.gamm.poolmodels.stableswap.v1beta1.Pool"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/osmosis/gamm/pool-models/stableswap/tx.ts b/__fixtures__/v-next/outputv4/osmosis/gamm/pool-models/stableswap/tx.ts index 161a69ee17..d4faad6e72 100644 --- a/__fixtures__/v-next/outputv4/osmosis/gamm/pool-models/stableswap/tx.ts +++ b/__fixtures__/v-next/outputv4/osmosis/gamm/pool-models/stableswap/tx.ts @@ -3,6 +3,7 @@ import { Coin, CoinSDKType } from "../../../../cosmos/base/v1beta1/coin.js"; import { BinaryReader, BinaryWriter } from "../../../../binary.js"; import { isSet, DeepPartial } from "../../../../helpers.js"; import { JsonSafe } from "../../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "osmosis.gamm.poolmodels.stableswap.v1beta1"; /** ===================== MsgCreatePool */ export interface MsgCreateStableswapPool { @@ -13,6 +14,14 @@ export interface MsgCreateStableswapPool { futurePoolGovernor: string; scalingFactorController: string; } +export interface ReactiveMsgCreateStableswapPool { + sender: ComputedRef; + poolParams?: ComputedRef; + initialPoolLiquidity: ComputedRef; + scalingFactors: ComputedRef; + futurePoolGovernor: ComputedRef; + scalingFactorController: ComputedRef; +} export interface MsgCreateStableswapPoolProtoMsg { typeUrl: "/osmosis.gamm.poolmodels.stableswap.v1beta1.MsgCreateStableswapPool"; value: Uint8Array; @@ -30,6 +39,9 @@ export interface MsgCreateStableswapPoolSDKType { export interface MsgCreateStableswapPoolResponse { poolId: bigint; } +export interface ReactiveMsgCreateStableswapPoolResponse { + poolId: ComputedRef; +} export interface MsgCreateStableswapPoolResponseProtoMsg { typeUrl: "/osmosis.gamm.poolmodels.stableswap.v1beta1.MsgCreateStableswapPoolResponse"; value: Uint8Array; @@ -47,6 +59,11 @@ export interface MsgStableSwapAdjustScalingFactors { poolId: bigint; scalingFactors: bigint[]; } +export interface ReactiveMsgStableSwapAdjustScalingFactors { + sender: ComputedRef; + poolId: ComputedRef; + scalingFactors: ComputedRef; +} export interface MsgStableSwapAdjustScalingFactorsProtoMsg { typeUrl: "/osmosis.gamm.poolmodels.stableswap.v1beta1.MsgStableSwapAdjustScalingFactors"; value: Uint8Array; @@ -61,6 +78,7 @@ export interface MsgStableSwapAdjustScalingFactorsSDKType { scaling_factors: bigint[]; } export interface MsgStableSwapAdjustScalingFactorsResponse {} +export interface ReactiveMsgStableSwapAdjustScalingFactorsResponse {} export interface MsgStableSwapAdjustScalingFactorsResponseProtoMsg { typeUrl: "/osmosis.gamm.poolmodels.stableswap.v1beta1.MsgStableSwapAdjustScalingFactorsResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/osmosis/gamm/v1beta1/genesis.ts b/__fixtures__/v-next/outputv4/osmosis/gamm/v1beta1/genesis.ts index 1db002cced..b5d917987b 100644 --- a/__fixtures__/v-next/outputv4/osmosis/gamm/v1beta1/genesis.ts +++ b/__fixtures__/v-next/outputv4/osmosis/gamm/v1beta1/genesis.ts @@ -3,11 +3,15 @@ import { Any, AnySDKType } from "../../../google/protobuf/any.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { JsonSafe } from "../../../json-safe.js"; import { DeepPartial, isSet } from "../../../helpers.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "osmosis.gamm.v1beta1"; /** Params holds parameters for the incentives module */ export interface Params { poolCreationFee: Coin[]; } +export interface ReactiveParams { + poolCreationFee: ComputedRef; +} export interface ParamsProtoMsg { typeUrl: "/osmosis.gamm.v1beta1.Params"; value: Uint8Array; @@ -23,6 +27,11 @@ export interface GenesisState { nextPoolNumber: bigint; params: Params; } +export interface ReactiveGenesisState { + pools: ComputedRef; + nextPoolNumber: ComputedRef; + params: ComputedRef; +} export interface GenesisStateProtoMsg { typeUrl: "/osmosis.gamm.v1beta1.GenesisState"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/osmosis/gamm/v1beta1/query.rpc.Query.ts b/__fixtures__/v-next/outputv4/osmosis/gamm/v1beta1/query.rpc.Query.ts index e76b904e28..d91c221744 100644 --- a/__fixtures__/v-next/outputv4/osmosis/gamm/v1beta1/query.rpc.Query.ts +++ b/__fixtures__/v-next/outputv4/osmosis/gamm/v1beta1/query.rpc.Query.ts @@ -6,10 +6,13 @@ import { Rpc } from "../../../helpers.js"; import { BinaryReader } from "../../../binary.js"; import { QueryClient, createProtobufRpcClient, ProtobufRpcClient } from "@cosmjs/stargate"; import { ReactQueryParams } from "../../../react-query.js"; +import { VueQueryParams } from "../../../vue-query.js"; import { useQuery } from "@tanstack/react-query"; +import { ComputedRef, computed, Ref } from "vue"; +import { useQuery } from "@tanstack/vue-query"; import { QueryStore, MobxResponse } from "../../../mobx.js"; import { makeObservable, override } from "mobx"; -import { QueryPoolsRequest, QueryPoolsRequestSDKType, QueryPoolsResponse, QueryPoolsResponseSDKType, QueryNumPoolsRequest, QueryNumPoolsRequestSDKType, QueryNumPoolsResponse, QueryNumPoolsResponseSDKType, QueryTotalLiquidityRequest, QueryTotalLiquidityRequestSDKType, QueryTotalLiquidityResponse, QueryTotalLiquidityResponseSDKType, QueryPoolsWithFilterRequest, QueryPoolsWithFilterRequestSDKType, QueryPoolsWithFilterResponse, QueryPoolsWithFilterResponseSDKType, QueryPoolRequest, QueryPoolRequestSDKType, QueryPoolResponse, QueryPoolResponseSDKType, QueryPoolTypeRequest, QueryPoolTypeRequestSDKType, QueryPoolTypeResponse, QueryPoolTypeResponseSDKType, QueryCalcJoinPoolNoSwapSharesRequest, QueryCalcJoinPoolNoSwapSharesRequestSDKType, QueryCalcJoinPoolNoSwapSharesResponse, QueryCalcJoinPoolNoSwapSharesResponseSDKType, QueryCalcJoinPoolSharesRequest, QueryCalcJoinPoolSharesRequestSDKType, QueryCalcJoinPoolSharesResponse, QueryCalcJoinPoolSharesResponseSDKType, QueryCalcExitPoolCoinsFromSharesRequest, QueryCalcExitPoolCoinsFromSharesRequestSDKType, QueryCalcExitPoolCoinsFromSharesResponse, QueryCalcExitPoolCoinsFromSharesResponseSDKType, QueryPoolParamsRequest, QueryPoolParamsRequestSDKType, QueryPoolParamsResponse, QueryPoolParamsResponseSDKType, QueryTotalPoolLiquidityRequest, QueryTotalPoolLiquidityRequestSDKType, QueryTotalPoolLiquidityResponse, QueryTotalPoolLiquidityResponseSDKType, QueryTotalSharesRequest, QueryTotalSharesRequestSDKType, QueryTotalSharesResponse, QueryTotalSharesResponseSDKType, QuerySpotPriceRequest, QuerySpotPriceRequestSDKType, QuerySpotPriceResponse, QuerySpotPriceResponseSDKType, QuerySwapExactAmountInRequest, QuerySwapExactAmountInRequestSDKType, QuerySwapExactAmountInResponse, QuerySwapExactAmountInResponseSDKType, QuerySwapExactAmountOutRequest, QuerySwapExactAmountOutRequestSDKType, QuerySwapExactAmountOutResponse, QuerySwapExactAmountOutResponseSDKType } from "./query.js"; +import { QueryPoolsRequest, QueryPoolsRequestSDKType, QueryPoolsResponse, QueryPoolsResponseSDKType, QueryNumPoolsRequest, QueryNumPoolsRequestSDKType, QueryNumPoolsResponse, QueryNumPoolsResponseSDKType, QueryTotalLiquidityRequest, QueryTotalLiquidityRequestSDKType, QueryTotalLiquidityResponse, QueryTotalLiquidityResponseSDKType, QueryPoolsWithFilterRequest, QueryPoolsWithFilterRequestSDKType, QueryPoolsWithFilterResponse, QueryPoolsWithFilterResponseSDKType, QueryPoolRequest, QueryPoolRequestSDKType, QueryPoolResponse, QueryPoolResponseSDKType, QueryPoolTypeRequest, QueryPoolTypeRequestSDKType, QueryPoolTypeResponse, QueryPoolTypeResponseSDKType, QueryCalcJoinPoolNoSwapSharesRequest, QueryCalcJoinPoolNoSwapSharesRequestSDKType, QueryCalcJoinPoolNoSwapSharesResponse, QueryCalcJoinPoolNoSwapSharesResponseSDKType, QueryCalcJoinPoolSharesRequest, QueryCalcJoinPoolSharesRequestSDKType, QueryCalcJoinPoolSharesResponse, QueryCalcJoinPoolSharesResponseSDKType, QueryCalcExitPoolCoinsFromSharesRequest, QueryCalcExitPoolCoinsFromSharesRequestSDKType, QueryCalcExitPoolCoinsFromSharesResponse, QueryCalcExitPoolCoinsFromSharesResponseSDKType, QueryPoolParamsRequest, QueryPoolParamsRequestSDKType, QueryPoolParamsResponse, QueryPoolParamsResponseSDKType, QueryTotalPoolLiquidityRequest, QueryTotalPoolLiquidityRequestSDKType, QueryTotalPoolLiquidityResponse, QueryTotalPoolLiquidityResponseSDKType, QueryTotalSharesRequest, QueryTotalSharesRequestSDKType, QueryTotalSharesResponse, QueryTotalSharesResponseSDKType, QuerySpotPriceRequest, QuerySpotPriceRequestSDKType, QuerySpotPriceResponse, QuerySpotPriceResponseSDKType, QuerySwapExactAmountInRequest, QuerySwapExactAmountInRequestSDKType, QuerySwapExactAmountInResponse, QuerySwapExactAmountInResponseSDKType, QuerySwapExactAmountOutRequest, QuerySwapExactAmountOutRequestSDKType, QuerySwapExactAmountOutResponse, QuerySwapExactAmountOutResponseSDKType, ReactiveQueryPoolsRequest, ReactiveQueryNumPoolsRequest, ReactiveQueryTotalLiquidityRequest, ReactiveQueryPoolsWithFilterRequest, ReactiveQueryPoolRequest, ReactiveQueryPoolTypeRequest, ReactiveQueryCalcJoinPoolNoSwapSharesRequest, ReactiveQueryCalcJoinPoolSharesRequest, ReactiveQueryCalcExitPoolCoinsFromSharesRequest, ReactiveQueryPoolParamsRequest, ReactiveQueryTotalPoolLiquidityRequest, ReactiveQueryTotalSharesRequest, ReactiveQuerySpotPriceRequest, ReactiveQuerySwapExactAmountInRequest, ReactiveQuerySwapExactAmountOutRequest } from "./query.js"; export interface Query { pools(request?: QueryPoolsRequest): Promise; numPools(request?: QueryNumPoolsRequest): Promise; @@ -250,6 +253,64 @@ const getQueryService = (rpc: ProtobufRpcClient | undefined): QueryClientImpl | _queryClients.set(rpc, queryService); return queryService; }; +export interface UsePoolsQuery extends VueQueryParams { + request?: ReactiveQueryPoolsRequest; +} +export interface UseNumPoolsQuery extends VueQueryParams { + request?: ReactiveQueryNumPoolsRequest; +} +export interface UseTotalLiquidityQuery extends VueQueryParams { + request?: ReactiveQueryTotalLiquidityRequest; +} +export interface UsePoolsWithFilterQuery extends VueQueryParams { + request: ReactiveQueryPoolsWithFilterRequest; +} +export interface UsePoolQuery extends VueQueryParams { + request: ReactiveQueryPoolRequest; +} +export interface UsePoolTypeQuery extends VueQueryParams { + request: ReactiveQueryPoolTypeRequest; +} +export interface UseCalcJoinPoolNoSwapSharesQuery extends VueQueryParams { + request: ReactiveQueryCalcJoinPoolNoSwapSharesRequest; +} +export interface UseCalcJoinPoolSharesQuery extends VueQueryParams { + request: ReactiveQueryCalcJoinPoolSharesRequest; +} +export interface UseCalcExitPoolCoinsFromSharesQuery extends VueQueryParams { + request: ReactiveQueryCalcExitPoolCoinsFromSharesRequest; +} +export interface UsePoolParamsQuery extends VueQueryParams { + request: ReactiveQueryPoolParamsRequest; +} +export interface UseTotalPoolLiquidityQuery extends VueQueryParams { + request: ReactiveQueryTotalPoolLiquidityRequest; +} +export interface UseTotalSharesQuery extends VueQueryParams { + request: ReactiveQueryTotalSharesRequest; +} +export interface UseSpotPriceQuery extends VueQueryParams { + request: ReactiveQuerySpotPriceRequest; +} +export interface UseEstimateSwapExactAmountInQuery extends VueQueryParams { + request: ReactiveQuerySwapExactAmountInRequest; +} +export interface UseEstimateSwapExactAmountOutQuery extends VueQueryParams { + request: ReactiveQuerySwapExactAmountOutRequest; +} +export const useQueryService = (rpc: Ref): ComputedRef => { + const _queryClients = new WeakMap(); + return computed(() => { + if (rpc.value) { + if (_queryClients.has(rpc.value)) { + return _queryClients.get(rpc.value); + } + const queryService = new QueryClientImpl(rpc.value); + _queryClients.set(rpc.value, queryService); + return queryService; + } + }); +}; export const createRpcQueryHooks = (rpc: ProtobufRpcClient | undefined) => { const queryService = getQueryService(rpc); const usePools = ({ @@ -422,6 +483,418 @@ export const createRpcQueryHooks = (rpc: ProtobufRpcClient | undefined) => { useEstimateSwapExactAmountOut }; }; +export const createRpcQueryHooks = (rpc: Ref) => { + const queryService = useQueryService(rpc); + const usePools = ({ + request, + options + }: UsePoolsQuery) => { + const queryKey = ["poolsQuery", queryService]; + if (request) { + Object.values(request).forEach((val: any) => { + queryKey.push(val); + }); + } + return useQuery({ + queryKey, + queryFn: () => { + if (!queryService.value) throw new Error("Query Service not initialized"); + let params = ({} as any); + if (request) { + Object.entries(request).forEach(([key, val]) => { + params[key] = val.value; + }); + } + return queryService.value.pools(params); + }, + ...options + }); + }; + const useNumPools = ({ + request, + options + }: UseNumPoolsQuery) => { + const queryKey = ["numPoolsQuery", queryService]; + if (request) { + Object.values(request).forEach((val: any) => { + queryKey.push(val); + }); + } + return useQuery({ + queryKey, + queryFn: () => { + if (!queryService.value) throw new Error("Query Service not initialized"); + let params = ({} as any); + if (request) { + Object.entries(request).forEach(([key, val]) => { + params[key] = val.value; + }); + } + return queryService.value.numPools(params); + }, + ...options + }); + }; + const useTotalLiquidity = ({ + request, + options + }: UseTotalLiquidityQuery) => { + const queryKey = ["totalLiquidityQuery", queryService]; + if (request) { + Object.values(request).forEach((val: any) => { + queryKey.push(val); + }); + } + return useQuery({ + queryKey, + queryFn: () => { + if (!queryService.value) throw new Error("Query Service not initialized"); + let params = ({} as any); + if (request) { + Object.entries(request).forEach(([key, val]) => { + params[key] = val.value; + }); + } + return queryService.value.totalLiquidity(params); + }, + ...options + }); + }; + const usePoolsWithFilter = ({ + request, + options + }: UsePoolsWithFilterQuery) => { + const queryKey = ["poolsWithFilterQuery", queryService]; + if (request) { + Object.values(request).forEach((val: any) => { + queryKey.push(val); + }); + } + return useQuery({ + queryKey, + queryFn: () => { + if (!queryService.value) throw new Error("Query Service not initialized"); + let params = ({} as any); + if (request) { + Object.entries(request).forEach(([key, val]) => { + params[key] = val.value; + }); + } + return queryService.value.poolsWithFilter(params); + }, + ...options + }); + }; + const usePool = ({ + request, + options + }: UsePoolQuery) => { + const queryKey = ["poolQuery", queryService]; + if (request) { + Object.values(request).forEach((val: any) => { + queryKey.push(val); + }); + } + return useQuery({ + queryKey, + queryFn: () => { + if (!queryService.value) throw new Error("Query Service not initialized"); + let params = ({} as any); + if (request) { + Object.entries(request).forEach(([key, val]) => { + params[key] = val.value; + }); + } + return queryService.value.pool(params); + }, + ...options + }); + }; + const usePoolType = ({ + request, + options + }: UsePoolTypeQuery) => { + const queryKey = ["poolTypeQuery", queryService]; + if (request) { + Object.values(request).forEach((val: any) => { + queryKey.push(val); + }); + } + return useQuery({ + queryKey, + queryFn: () => { + if (!queryService.value) throw new Error("Query Service not initialized"); + let params = ({} as any); + if (request) { + Object.entries(request).forEach(([key, val]) => { + params[key] = val.value; + }); + } + return queryService.value.poolType(params); + }, + ...options + }); + }; + const useCalcJoinPoolNoSwapShares = ({ + request, + options + }: UseCalcJoinPoolNoSwapSharesQuery) => { + const queryKey = ["calcJoinPoolNoSwapSharesQuery", queryService]; + if (request) { + Object.values(request).forEach((val: any) => { + queryKey.push(val); + }); + } + return useQuery({ + queryKey, + queryFn: () => { + if (!queryService.value) throw new Error("Query Service not initialized"); + let params = ({} as any); + if (request) { + Object.entries(request).forEach(([key, val]) => { + params[key] = val.value; + }); + } + return queryService.value.calcJoinPoolNoSwapShares(params); + }, + ...options + }); + }; + const useCalcJoinPoolShares = ({ + request, + options + }: UseCalcJoinPoolSharesQuery) => { + const queryKey = ["calcJoinPoolSharesQuery", queryService]; + if (request) { + Object.values(request).forEach((val: any) => { + queryKey.push(val); + }); + } + return useQuery({ + queryKey, + queryFn: () => { + if (!queryService.value) throw new Error("Query Service not initialized"); + let params = ({} as any); + if (request) { + Object.entries(request).forEach(([key, val]) => { + params[key] = val.value; + }); + } + return queryService.value.calcJoinPoolShares(params); + }, + ...options + }); + }; + const useCalcExitPoolCoinsFromShares = ({ + request, + options + }: UseCalcExitPoolCoinsFromSharesQuery) => { + const queryKey = ["calcExitPoolCoinsFromSharesQuery", queryService]; + if (request) { + Object.values(request).forEach((val: any) => { + queryKey.push(val); + }); + } + return useQuery({ + queryKey, + queryFn: () => { + if (!queryService.value) throw new Error("Query Service not initialized"); + let params = ({} as any); + if (request) { + Object.entries(request).forEach(([key, val]) => { + params[key] = val.value; + }); + } + return queryService.value.calcExitPoolCoinsFromShares(params); + }, + ...options + }); + }; + const usePoolParams = ({ + request, + options + }: UsePoolParamsQuery) => { + const queryKey = ["poolParamsQuery", queryService]; + if (request) { + Object.values(request).forEach((val: any) => { + queryKey.push(val); + }); + } + return useQuery({ + queryKey, + queryFn: () => { + if (!queryService.value) throw new Error("Query Service not initialized"); + let params = ({} as any); + if (request) { + Object.entries(request).forEach(([key, val]) => { + params[key] = val.value; + }); + } + return queryService.value.poolParams(params); + }, + ...options + }); + }; + const useTotalPoolLiquidity = ({ + request, + options + }: UseTotalPoolLiquidityQuery) => { + const queryKey = ["totalPoolLiquidityQuery", queryService]; + if (request) { + Object.values(request).forEach((val: any) => { + queryKey.push(val); + }); + } + return useQuery({ + queryKey, + queryFn: () => { + if (!queryService.value) throw new Error("Query Service not initialized"); + let params = ({} as any); + if (request) { + Object.entries(request).forEach(([key, val]) => { + params[key] = val.value; + }); + } + return queryService.value.totalPoolLiquidity(params); + }, + ...options + }); + }; + const useTotalShares = ({ + request, + options + }: UseTotalSharesQuery) => { + const queryKey = ["totalSharesQuery", queryService]; + if (request) { + Object.values(request).forEach((val: any) => { + queryKey.push(val); + }); + } + return useQuery({ + queryKey, + queryFn: () => { + if (!queryService.value) throw new Error("Query Service not initialized"); + let params = ({} as any); + if (request) { + Object.entries(request).forEach(([key, val]) => { + params[key] = val.value; + }); + } + return queryService.value.totalShares(params); + }, + ...options + }); + }; + const useSpotPrice = ({ + request, + options + }: UseSpotPriceQuery) => { + const queryKey = ["spotPriceQuery", queryService]; + if (request) { + Object.values(request).forEach((val: any) => { + queryKey.push(val); + }); + } + return useQuery({ + queryKey, + queryFn: () => { + if (!queryService.value) throw new Error("Query Service not initialized"); + let params = ({} as any); + if (request) { + Object.entries(request).forEach(([key, val]) => { + params[key] = val.value; + }); + } + return queryService.value.spotPrice(params); + }, + ...options + }); + }; + const useEstimateSwapExactAmountIn = ({ + request, + options + }: UseEstimateSwapExactAmountInQuery) => { + const queryKey = ["estimateSwapExactAmountInQuery", queryService]; + if (request) { + Object.values(request).forEach((val: any) => { + queryKey.push(val); + }); + } + return useQuery({ + queryKey, + queryFn: () => { + if (!queryService.value) throw new Error("Query Service not initialized"); + let params = ({} as any); + if (request) { + Object.entries(request).forEach(([key, val]) => { + params[key] = val.value; + }); + } + return queryService.value.estimateSwapExactAmountIn(params); + }, + ...options + }); + }; + const useEstimateSwapExactAmountOut = ({ + request, + options + }: UseEstimateSwapExactAmountOutQuery) => { + const queryKey = ["estimateSwapExactAmountOutQuery", queryService]; + if (request) { + Object.values(request).forEach((val: any) => { + queryKey.push(val); + }); + } + return useQuery({ + queryKey, + queryFn: () => { + if (!queryService.value) throw new Error("Query Service not initialized"); + let params = ({} as any); + if (request) { + Object.entries(request).forEach(([key, val]) => { + params[key] = val.value; + }); + } + return queryService.value.estimateSwapExactAmountOut(params); + }, + ...options + }); + }; + return { + usePools, + useNumPools, + useTotalLiquidity, + /** + * PoolsWithFilter allows you to query specific pools with requested + * parameters + */ + usePoolsWithFilter, + /** Per Pool gRPC Endpoints */usePool, + /** + * PoolType returns the type of the pool. + * Returns "Balancer" as a string literal when the pool is a balancer pool. + * Errors if the pool is failed to be type caseted. + */ + usePoolType, + /** + * Simulates joining pool without a swap. Returns the amount of shares you'd + * get and tokens needed to provide + */ + useCalcJoinPoolNoSwapShares, + useCalcJoinPoolShares, + useCalcExitPoolCoinsFromShares, + usePoolParams, + useTotalPoolLiquidity, + useTotalShares, + /** + * SpotPrice defines a gRPC query handler that returns the spot price given + * a base denomination and a quote denomination. + */ + useSpotPrice, + /** Estimate the swap. */useEstimateSwapExactAmountIn, + useEstimateSwapExactAmountOut + }; +}; export const createRpcQueryMobxStores = (rpc: ProtobufRpcClient | undefined) => { const queryService = getQueryService(rpc); class QueryPoolsStore { diff --git a/__fixtures__/v-next/outputv4/osmosis/gamm/v1beta1/query.ts b/__fixtures__/v-next/outputv4/osmosis/gamm/v1beta1/query.ts index 555de581a7..596592230b 100644 --- a/__fixtures__/v-next/outputv4/osmosis/gamm/v1beta1/query.ts +++ b/__fixtures__/v-next/outputv4/osmosis/gamm/v1beta1/query.ts @@ -5,11 +5,15 @@ import { Any, AnySDKType } from "../../../google/protobuf/any.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "osmosis.gamm.v1beta1"; /** =============================== Pool */ export interface QueryPoolRequest { poolId: bigint; } +export interface ReactiveQueryPoolRequest { + poolId: ComputedRef; +} export interface QueryPoolRequestProtoMsg { typeUrl: "/osmosis.gamm.v1beta1.QueryPoolRequest"; value: Uint8Array; @@ -21,6 +25,9 @@ export interface QueryPoolRequestSDKType { export interface QueryPoolResponse { pool?: Any; } +export interface ReactiveQueryPoolResponse { + pool?: ComputedRef; +} export interface QueryPoolResponseProtoMsg { typeUrl: "/osmosis.gamm.v1beta1.QueryPoolResponse"; value: Uint8Array; @@ -33,6 +40,9 @@ export interface QueryPoolsRequest { /** pagination defines an optional pagination for the request. */ pagination?: PageRequest; } +export interface ReactiveQueryPoolsRequest { + pagination?: ComputedRef; +} export interface QueryPoolsRequestProtoMsg { typeUrl: "/osmosis.gamm.v1beta1.QueryPoolsRequest"; value: Uint8Array; @@ -46,6 +56,10 @@ export interface QueryPoolsResponse { /** pagination defines the pagination in the response. */ pagination?: PageResponse; } +export interface ReactiveQueryPoolsResponse { + pools: ComputedRef; + pagination?: ComputedRef; +} export interface QueryPoolsResponseProtoMsg { typeUrl: "/osmosis.gamm.v1beta1.QueryPoolsResponse"; value: Uint8Array; @@ -56,6 +70,7 @@ export interface QueryPoolsResponseSDKType { } /** =============================== NumPools */ export interface QueryNumPoolsRequest {} +export interface ReactiveQueryNumPoolsRequest {} export interface QueryNumPoolsRequestProtoMsg { typeUrl: "/osmosis.gamm.v1beta1.QueryNumPoolsRequest"; value: Uint8Array; @@ -65,6 +80,9 @@ export interface QueryNumPoolsRequestSDKType {} export interface QueryNumPoolsResponse { numPools: bigint; } +export interface ReactiveQueryNumPoolsResponse { + numPools: ComputedRef; +} export interface QueryNumPoolsResponseProtoMsg { typeUrl: "/osmosis.gamm.v1beta1.QueryNumPoolsResponse"; value: Uint8Array; @@ -76,6 +94,9 @@ export interface QueryNumPoolsResponseSDKType { export interface QueryPoolTypeRequest { poolId: bigint; } +export interface ReactiveQueryPoolTypeRequest { + poolId: ComputedRef; +} export interface QueryPoolTypeRequestProtoMsg { typeUrl: "/osmosis.gamm.v1beta1.QueryPoolTypeRequest"; value: Uint8Array; @@ -87,6 +108,9 @@ export interface QueryPoolTypeRequestSDKType { export interface QueryPoolTypeResponse { poolType: string; } +export interface ReactiveQueryPoolTypeResponse { + poolType: ComputedRef; +} export interface QueryPoolTypeResponseProtoMsg { typeUrl: "/osmosis.gamm.v1beta1.QueryPoolTypeResponse"; value: Uint8Array; @@ -99,6 +123,10 @@ export interface QueryCalcJoinPoolSharesRequest { poolId: bigint; tokensIn: Coin[]; } +export interface ReactiveQueryCalcJoinPoolSharesRequest { + poolId: ComputedRef; + tokensIn: ComputedRef; +} export interface QueryCalcJoinPoolSharesRequestProtoMsg { typeUrl: "/osmosis.gamm.v1beta1.QueryCalcJoinPoolSharesRequest"; value: Uint8Array; @@ -112,6 +140,10 @@ export interface QueryCalcJoinPoolSharesResponse { shareOutAmount: string; tokensOut: Coin[]; } +export interface ReactiveQueryCalcJoinPoolSharesResponse { + shareOutAmount: ComputedRef; + tokensOut: ComputedRef; +} export interface QueryCalcJoinPoolSharesResponseProtoMsg { typeUrl: "/osmosis.gamm.v1beta1.QueryCalcJoinPoolSharesResponse"; value: Uint8Array; @@ -125,6 +157,10 @@ export interface QueryCalcExitPoolCoinsFromSharesRequest { poolId: bigint; shareInAmount: string; } +export interface ReactiveQueryCalcExitPoolCoinsFromSharesRequest { + poolId: ComputedRef; + shareInAmount: ComputedRef; +} export interface QueryCalcExitPoolCoinsFromSharesRequestProtoMsg { typeUrl: "/osmosis.gamm.v1beta1.QueryCalcExitPoolCoinsFromSharesRequest"; value: Uint8Array; @@ -137,6 +173,9 @@ export interface QueryCalcExitPoolCoinsFromSharesRequestSDKType { export interface QueryCalcExitPoolCoinsFromSharesResponse { tokensOut: Coin[]; } +export interface ReactiveQueryCalcExitPoolCoinsFromSharesResponse { + tokensOut: ComputedRef; +} export interface QueryCalcExitPoolCoinsFromSharesResponseProtoMsg { typeUrl: "/osmosis.gamm.v1beta1.QueryCalcExitPoolCoinsFromSharesResponse"; value: Uint8Array; @@ -148,6 +187,9 @@ export interface QueryCalcExitPoolCoinsFromSharesResponseSDKType { export interface QueryPoolParamsRequest { poolId: bigint; } +export interface ReactiveQueryPoolParamsRequest { + poolId: ComputedRef; +} export interface QueryPoolParamsRequestProtoMsg { typeUrl: "/osmosis.gamm.v1beta1.QueryPoolParamsRequest"; value: Uint8Array; @@ -159,6 +201,9 @@ export interface QueryPoolParamsRequestSDKType { export interface QueryPoolParamsResponse { params?: Any; } +export interface ReactiveQueryPoolParamsResponse { + params?: ComputedRef; +} export interface QueryPoolParamsResponseProtoMsg { typeUrl: "/osmosis.gamm.v1beta1.QueryPoolParamsResponse"; value: Uint8Array; @@ -170,6 +215,9 @@ export interface QueryPoolParamsResponseSDKType { export interface QueryTotalPoolLiquidityRequest { poolId: bigint; } +export interface ReactiveQueryTotalPoolLiquidityRequest { + poolId: ComputedRef; +} export interface QueryTotalPoolLiquidityRequestProtoMsg { typeUrl: "/osmosis.gamm.v1beta1.QueryTotalPoolLiquidityRequest"; value: Uint8Array; @@ -181,6 +229,9 @@ export interface QueryTotalPoolLiquidityRequestSDKType { export interface QueryTotalPoolLiquidityResponse { liquidity: Coin[]; } +export interface ReactiveQueryTotalPoolLiquidityResponse { + liquidity: ComputedRef; +} export interface QueryTotalPoolLiquidityResponseProtoMsg { typeUrl: "/osmosis.gamm.v1beta1.QueryTotalPoolLiquidityResponse"; value: Uint8Array; @@ -192,6 +243,9 @@ export interface QueryTotalPoolLiquidityResponseSDKType { export interface QueryTotalSharesRequest { poolId: bigint; } +export interface ReactiveQueryTotalSharesRequest { + poolId: ComputedRef; +} export interface QueryTotalSharesRequestProtoMsg { typeUrl: "/osmosis.gamm.v1beta1.QueryTotalSharesRequest"; value: Uint8Array; @@ -203,6 +257,9 @@ export interface QueryTotalSharesRequestSDKType { export interface QueryTotalSharesResponse { totalShares: Coin; } +export interface ReactiveQueryTotalSharesResponse { + totalShares: ComputedRef; +} export interface QueryTotalSharesResponseProtoMsg { typeUrl: "/osmosis.gamm.v1beta1.QueryTotalSharesResponse"; value: Uint8Array; @@ -215,6 +272,10 @@ export interface QueryCalcJoinPoolNoSwapSharesRequest { poolId: bigint; tokensIn: Coin[]; } +export interface ReactiveQueryCalcJoinPoolNoSwapSharesRequest { + poolId: ComputedRef; + tokensIn: ComputedRef; +} export interface QueryCalcJoinPoolNoSwapSharesRequestProtoMsg { typeUrl: "/osmosis.gamm.v1beta1.QueryCalcJoinPoolNoSwapSharesRequest"; value: Uint8Array; @@ -228,6 +289,10 @@ export interface QueryCalcJoinPoolNoSwapSharesResponse { tokensOut: Coin[]; sharesOut: string; } +export interface ReactiveQueryCalcJoinPoolNoSwapSharesResponse { + tokensOut: ComputedRef; + sharesOut: ComputedRef; +} export interface QueryCalcJoinPoolNoSwapSharesResponseProtoMsg { typeUrl: "/osmosis.gamm.v1beta1.QueryCalcJoinPoolNoSwapSharesResponse"; value: Uint8Array; @@ -246,6 +311,11 @@ export interface QuerySpotPriceRequest { baseAssetDenom: string; quoteAssetDenom: string; } +export interface ReactiveQuerySpotPriceRequest { + poolId: ComputedRef; + baseAssetDenom: ComputedRef; + quoteAssetDenom: ComputedRef; +} export interface QuerySpotPriceRequestProtoMsg { typeUrl: "/osmosis.gamm.v1beta1.QuerySpotPriceRequest"; value: Uint8Array; @@ -265,6 +335,11 @@ export interface QueryPoolsWithFilterRequest { poolType: string; pagination?: PageRequest; } +export interface ReactiveQueryPoolsWithFilterRequest { + minLiquidity: ComputedRef; + poolType: ComputedRef; + pagination?: ComputedRef; +} export interface QueryPoolsWithFilterRequestProtoMsg { typeUrl: "/osmosis.gamm.v1beta1.QueryPoolsWithFilterRequest"; value: Uint8Array; @@ -279,6 +354,10 @@ export interface QueryPoolsWithFilterResponse { /** pagination defines the pagination in the response. */ pagination?: PageResponse; } +export interface ReactiveQueryPoolsWithFilterResponse { + pools: ComputedRef; + pagination?: ComputedRef; +} export interface QueryPoolsWithFilterResponseProtoMsg { typeUrl: "/osmosis.gamm.v1beta1.QueryPoolsWithFilterResponse"; value: Uint8Array; @@ -296,6 +375,9 @@ export interface QuerySpotPriceResponse { /** String of the Dec. Ex) 10.203uatom */ spotPrice: string; } +export interface ReactiveQuerySpotPriceResponse { + spotPrice: ComputedRef; +} export interface QuerySpotPriceResponseProtoMsg { typeUrl: "/osmosis.gamm.v1beta1.QuerySpotPriceResponse"; value: Uint8Array; @@ -316,6 +398,12 @@ export interface QuerySwapExactAmountInRequest { tokenIn: string; routes: SwapAmountInRoute[]; } +export interface ReactiveQuerySwapExactAmountInRequest { + sender: ComputedRef; + poolId: ComputedRef; + tokenIn: ComputedRef; + routes: ComputedRef; +} export interface QuerySwapExactAmountInRequestProtoMsg { typeUrl: "/osmosis.gamm.v1beta1.QuerySwapExactAmountInRequest"; value: Uint8Array; @@ -330,6 +418,9 @@ export interface QuerySwapExactAmountInRequestSDKType { export interface QuerySwapExactAmountInResponse { tokenOutAmount: string; } +export interface ReactiveQuerySwapExactAmountInResponse { + tokenOutAmount: ComputedRef; +} export interface QuerySwapExactAmountInResponseProtoMsg { typeUrl: "/osmosis.gamm.v1beta1.QuerySwapExactAmountInResponse"; value: Uint8Array; @@ -345,6 +436,12 @@ export interface QuerySwapExactAmountOutRequest { routes: SwapAmountOutRoute[]; tokenOut: string; } +export interface ReactiveQuerySwapExactAmountOutRequest { + sender: ComputedRef; + poolId: ComputedRef; + routes: ComputedRef; + tokenOut: ComputedRef; +} export interface QuerySwapExactAmountOutRequestProtoMsg { typeUrl: "/osmosis.gamm.v1beta1.QuerySwapExactAmountOutRequest"; value: Uint8Array; @@ -359,6 +456,9 @@ export interface QuerySwapExactAmountOutRequestSDKType { export interface QuerySwapExactAmountOutResponse { tokenInAmount: string; } +export interface ReactiveQuerySwapExactAmountOutResponse { + tokenInAmount: ComputedRef; +} export interface QuerySwapExactAmountOutResponseProtoMsg { typeUrl: "/osmosis.gamm.v1beta1.QuerySwapExactAmountOutResponse"; value: Uint8Array; @@ -367,6 +467,7 @@ export interface QuerySwapExactAmountOutResponseSDKType { token_in_amount: string; } export interface QueryTotalLiquidityRequest {} +export interface ReactiveQueryTotalLiquidityRequest {} export interface QueryTotalLiquidityRequestProtoMsg { typeUrl: "/osmosis.gamm.v1beta1.QueryTotalLiquidityRequest"; value: Uint8Array; @@ -375,6 +476,9 @@ export interface QueryTotalLiquidityRequestSDKType {} export interface QueryTotalLiquidityResponse { liquidity: Coin[]; } +export interface ReactiveQueryTotalLiquidityResponse { + liquidity: ComputedRef; +} export interface QueryTotalLiquidityResponseProtoMsg { typeUrl: "/osmosis.gamm.v1beta1.QueryTotalLiquidityResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/osmosis/gamm/v1beta1/tx.ts b/__fixtures__/v-next/outputv4/osmosis/gamm/v1beta1/tx.ts index 867a622ec8..c6658afa3c 100644 --- a/__fixtures__/v-next/outputv4/osmosis/gamm/v1beta1/tx.ts +++ b/__fixtures__/v-next/outputv4/osmosis/gamm/v1beta1/tx.ts @@ -2,6 +2,7 @@ import { Coin, CoinSDKType } from "../../../cosmos/base/v1beta1/coin.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "osmosis.gamm.v1beta1"; /** * ===================== MsgJoinPool @@ -13,6 +14,12 @@ export interface MsgJoinPool { shareOutAmount: string; tokenInMaxs: Coin[]; } +export interface ReactiveMsgJoinPool { + sender: ComputedRef; + poolId: ComputedRef; + shareOutAmount: ComputedRef; + tokenInMaxs: ComputedRef; +} export interface MsgJoinPoolProtoMsg { typeUrl: "/osmosis.gamm.v1beta1.MsgJoinPool"; value: Uint8Array; @@ -31,6 +38,10 @@ export interface MsgJoinPoolResponse { shareOutAmount: string; tokenIn: Coin[]; } +export interface ReactiveMsgJoinPoolResponse { + shareOutAmount: ComputedRef; + tokenIn: ComputedRef; +} export interface MsgJoinPoolResponseProtoMsg { typeUrl: "/osmosis.gamm.v1beta1.MsgJoinPoolResponse"; value: Uint8Array; @@ -46,6 +57,12 @@ export interface MsgExitPool { shareInAmount: string; tokenOutMins: Coin[]; } +export interface ReactiveMsgExitPool { + sender: ComputedRef; + poolId: ComputedRef; + shareInAmount: ComputedRef; + tokenOutMins: ComputedRef; +} export interface MsgExitPoolProtoMsg { typeUrl: "/osmosis.gamm.v1beta1.MsgExitPool"; value: Uint8Array; @@ -60,6 +77,9 @@ export interface MsgExitPoolSDKType { export interface MsgExitPoolResponse { tokenOut: Coin[]; } +export interface ReactiveMsgExitPoolResponse { + tokenOut: ComputedRef; +} export interface MsgExitPoolResponseProtoMsg { typeUrl: "/osmosis.gamm.v1beta1.MsgExitPoolResponse"; value: Uint8Array; @@ -72,6 +92,10 @@ export interface SwapAmountInRoute { poolId: bigint; tokenOutDenom: string; } +export interface ReactiveSwapAmountInRoute { + poolId: ComputedRef; + tokenOutDenom: ComputedRef; +} export interface SwapAmountInRouteProtoMsg { typeUrl: "/osmosis.gamm.v1beta1.SwapAmountInRoute"; value: Uint8Array; @@ -87,6 +111,12 @@ export interface MsgSwapExactAmountIn { tokenIn: Coin; tokenOutMinAmount: string; } +export interface ReactiveMsgSwapExactAmountIn { + sender: ComputedRef; + routes: ComputedRef; + tokenIn: ComputedRef; + tokenOutMinAmount: ComputedRef; +} export interface MsgSwapExactAmountInProtoMsg { typeUrl: "/osmosis.gamm.v1beta1.MsgSwapExactAmountIn"; value: Uint8Array; @@ -100,6 +130,9 @@ export interface MsgSwapExactAmountInSDKType { export interface MsgSwapExactAmountInResponse { tokenOutAmount: string; } +export interface ReactiveMsgSwapExactAmountInResponse { + tokenOutAmount: ComputedRef; +} export interface MsgSwapExactAmountInResponseProtoMsg { typeUrl: "/osmosis.gamm.v1beta1.MsgSwapExactAmountInResponse"; value: Uint8Array; @@ -112,6 +145,10 @@ export interface SwapAmountOutRoute { poolId: bigint; tokenInDenom: string; } +export interface ReactiveSwapAmountOutRoute { + poolId: ComputedRef; + tokenInDenom: ComputedRef; +} export interface SwapAmountOutRouteProtoMsg { typeUrl: "/osmosis.gamm.v1beta1.SwapAmountOutRoute"; value: Uint8Array; @@ -127,6 +164,12 @@ export interface MsgSwapExactAmountOut { tokenInMaxAmount: string; tokenOut: Coin; } +export interface ReactiveMsgSwapExactAmountOut { + sender: ComputedRef; + routes: ComputedRef; + tokenInMaxAmount: ComputedRef; + tokenOut: ComputedRef; +} export interface MsgSwapExactAmountOutProtoMsg { typeUrl: "/osmosis.gamm.v1beta1.MsgSwapExactAmountOut"; value: Uint8Array; @@ -140,6 +183,9 @@ export interface MsgSwapExactAmountOutSDKType { export interface MsgSwapExactAmountOutResponse { tokenInAmount: string; } +export interface ReactiveMsgSwapExactAmountOutResponse { + tokenInAmount: ComputedRef; +} export interface MsgSwapExactAmountOutResponseProtoMsg { typeUrl: "/osmosis.gamm.v1beta1.MsgSwapExactAmountOutResponse"; value: Uint8Array; @@ -157,6 +203,12 @@ export interface MsgJoinSwapExternAmountIn { tokenIn: Coin; shareOutMinAmount: string; } +export interface ReactiveMsgJoinSwapExternAmountIn { + sender: ComputedRef; + poolId: ComputedRef; + tokenIn: ComputedRef; + shareOutMinAmount: ComputedRef; +} export interface MsgJoinSwapExternAmountInProtoMsg { typeUrl: "/osmosis.gamm.v1beta1.MsgJoinSwapExternAmountIn"; value: Uint8Array; @@ -174,6 +226,9 @@ export interface MsgJoinSwapExternAmountInSDKType { export interface MsgJoinSwapExternAmountInResponse { shareOutAmount: string; } +export interface ReactiveMsgJoinSwapExternAmountInResponse { + shareOutAmount: ComputedRef; +} export interface MsgJoinSwapExternAmountInResponseProtoMsg { typeUrl: "/osmosis.gamm.v1beta1.MsgJoinSwapExternAmountInResponse"; value: Uint8Array; @@ -189,6 +244,13 @@ export interface MsgJoinSwapShareAmountOut { shareOutAmount: string; tokenInMaxAmount: string; } +export interface ReactiveMsgJoinSwapShareAmountOut { + sender: ComputedRef; + poolId: ComputedRef; + tokenInDenom: ComputedRef; + shareOutAmount: ComputedRef; + tokenInMaxAmount: ComputedRef; +} export interface MsgJoinSwapShareAmountOutProtoMsg { typeUrl: "/osmosis.gamm.v1beta1.MsgJoinSwapShareAmountOut"; value: Uint8Array; @@ -204,6 +266,9 @@ export interface MsgJoinSwapShareAmountOutSDKType { export interface MsgJoinSwapShareAmountOutResponse { tokenInAmount: string; } +export interface ReactiveMsgJoinSwapShareAmountOutResponse { + tokenInAmount: ComputedRef; +} export interface MsgJoinSwapShareAmountOutResponseProtoMsg { typeUrl: "/osmosis.gamm.v1beta1.MsgJoinSwapShareAmountOutResponse"; value: Uint8Array; @@ -219,6 +284,13 @@ export interface MsgExitSwapShareAmountIn { shareInAmount: string; tokenOutMinAmount: string; } +export interface ReactiveMsgExitSwapShareAmountIn { + sender: ComputedRef; + poolId: ComputedRef; + tokenOutDenom: ComputedRef; + shareInAmount: ComputedRef; + tokenOutMinAmount: ComputedRef; +} export interface MsgExitSwapShareAmountInProtoMsg { typeUrl: "/osmosis.gamm.v1beta1.MsgExitSwapShareAmountIn"; value: Uint8Array; @@ -234,6 +306,9 @@ export interface MsgExitSwapShareAmountInSDKType { export interface MsgExitSwapShareAmountInResponse { tokenOutAmount: string; } +export interface ReactiveMsgExitSwapShareAmountInResponse { + tokenOutAmount: ComputedRef; +} export interface MsgExitSwapShareAmountInResponseProtoMsg { typeUrl: "/osmosis.gamm.v1beta1.MsgExitSwapShareAmountInResponse"; value: Uint8Array; @@ -248,6 +323,12 @@ export interface MsgExitSwapExternAmountOut { tokenOut: Coin; shareInMaxAmount: string; } +export interface ReactiveMsgExitSwapExternAmountOut { + sender: ComputedRef; + poolId: ComputedRef; + tokenOut: ComputedRef; + shareInMaxAmount: ComputedRef; +} export interface MsgExitSwapExternAmountOutProtoMsg { typeUrl: "/osmosis.gamm.v1beta1.MsgExitSwapExternAmountOut"; value: Uint8Array; @@ -262,6 +343,9 @@ export interface MsgExitSwapExternAmountOutSDKType { export interface MsgExitSwapExternAmountOutResponse { shareInAmount: string; } +export interface ReactiveMsgExitSwapExternAmountOutResponse { + shareInAmount: ComputedRef; +} export interface MsgExitSwapExternAmountOutResponseProtoMsg { typeUrl: "/osmosis.gamm.v1beta1.MsgExitSwapExternAmountOutResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/osmosis/gamm/v2/query.rpc.Query.ts b/__fixtures__/v-next/outputv4/osmosis/gamm/v2/query.rpc.Query.ts index 1ee524a750..0d13e45ec3 100644 --- a/__fixtures__/v-next/outputv4/osmosis/gamm/v2/query.rpc.Query.ts +++ b/__fixtures__/v-next/outputv4/osmosis/gamm/v2/query.rpc.Query.ts @@ -2,10 +2,13 @@ import { Rpc } from "../../../helpers.js"; import { BinaryReader } from "../../../binary.js"; import { QueryClient, createProtobufRpcClient, ProtobufRpcClient } from "@cosmjs/stargate"; import { ReactQueryParams } from "../../../react-query.js"; +import { VueQueryParams } from "../../../vue-query.js"; import { useQuery } from "@tanstack/react-query"; +import { ComputedRef, computed, Ref } from "vue"; +import { useQuery } from "@tanstack/vue-query"; import { QueryStore, MobxResponse } from "../../../mobx.js"; import { makeObservable, override } from "mobx"; -import { QuerySpotPriceRequest, QuerySpotPriceRequestSDKType, QuerySpotPriceResponse, QuerySpotPriceResponseSDKType } from "./query.js"; +import { QuerySpotPriceRequest, QuerySpotPriceRequestSDKType, QuerySpotPriceResponse, QuerySpotPriceResponseSDKType, ReactiveQuerySpotPriceRequest } from "./query.js"; export interface Query { /** * SpotPrice defines a gRPC query handler that returns the spot price given @@ -47,6 +50,22 @@ const getQueryService = (rpc: ProtobufRpcClient | undefined): QueryClientImpl | _queryClients.set(rpc, queryService); return queryService; }; +export interface UseSpotPriceQuery extends VueQueryParams { + request: ReactiveQuerySpotPriceRequest; +} +export const useQueryService = (rpc: Ref): ComputedRef => { + const _queryClients = new WeakMap(); + return computed(() => { + if (rpc.value) { + if (_queryClients.has(rpc.value)) { + return _queryClients.get(rpc.value); + } + const queryService = new QueryClientImpl(rpc.value); + _queryClients.set(rpc.value, queryService); + return queryService; + } + }); +}; export const createRpcQueryHooks = (rpc: ProtobufRpcClient | undefined) => { const queryService = getQueryService(rpc); const useSpotPrice = ({ @@ -66,6 +85,41 @@ export const createRpcQueryHooks = (rpc: ProtobufRpcClient | undefined) => { useSpotPrice }; }; +export const createRpcQueryHooks = (rpc: Ref) => { + const queryService = useQueryService(rpc); + const useSpotPrice = ({ + request, + options + }: UseSpotPriceQuery) => { + const queryKey = ["spotPriceQuery", queryService]; + if (request) { + Object.values(request).forEach((val: any) => { + queryKey.push(val); + }); + } + return useQuery({ + queryKey, + queryFn: () => { + if (!queryService.value) throw new Error("Query Service not initialized"); + let params = ({} as any); + if (request) { + Object.entries(request).forEach(([key, val]) => { + params[key] = val.value; + }); + } + return queryService.value.spotPrice(params); + }, + ...options + }); + }; + return { + /** + * SpotPrice defines a gRPC query handler that returns the spot price given + * a base denomination and a quote denomination. + */ + useSpotPrice + }; +}; export const createRpcQueryMobxStores = (rpc: ProtobufRpcClient | undefined) => { const queryService = getQueryService(rpc); class QuerySpotPriceStore { diff --git a/__fixtures__/v-next/outputv4/osmosis/gamm/v2/query.ts b/__fixtures__/v-next/outputv4/osmosis/gamm/v2/query.ts index 1c7d47a57e..8febedccbe 100644 --- a/__fixtures__/v-next/outputv4/osmosis/gamm/v2/query.ts +++ b/__fixtures__/v-next/outputv4/osmosis/gamm/v2/query.ts @@ -1,6 +1,7 @@ import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "osmosis.gamm.v2"; /** * QuerySpotPriceRequest defines the gRPC request structure for a SpotPrice @@ -11,6 +12,11 @@ export interface QuerySpotPriceRequest { baseAssetDenom: string; quoteAssetDenom: string; } +export interface ReactiveQuerySpotPriceRequest { + poolId: ComputedRef; + baseAssetDenom: ComputedRef; + quoteAssetDenom: ComputedRef; +} export interface QuerySpotPriceRequestProtoMsg { typeUrl: "/osmosis.gamm.v2.QuerySpotPriceRequest"; value: Uint8Array; @@ -32,6 +38,9 @@ export interface QuerySpotPriceResponse { /** String of the Dec. Ex) 10.203uatom */ spotPrice: string; } +export interface ReactiveQuerySpotPriceResponse { + spotPrice: ComputedRef; +} export interface QuerySpotPriceResponseProtoMsg { typeUrl: "/osmosis.gamm.v2.QuerySpotPriceResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/osmosis/ibc-rate-limit/v1beta1/params.ts b/__fixtures__/v-next/outputv4/osmosis/ibc-rate-limit/v1beta1/params.ts index 172bb38407..ef7b77b956 100644 --- a/__fixtures__/v-next/outputv4/osmosis/ibc-rate-limit/v1beta1/params.ts +++ b/__fixtures__/v-next/outputv4/osmosis/ibc-rate-limit/v1beta1/params.ts @@ -1,11 +1,15 @@ import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "osmosis.ibcratelimit.v1beta1"; /** Params defines the parameters for the ibc-rate-limit module. */ export interface Params { contractAddress: string; } +export interface ReactiveParams { + contractAddress: ComputedRef; +} export interface ParamsProtoMsg { typeUrl: "/osmosis.ibcratelimit.v1beta1.Params"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/osmosis/ibc-rate-limit/v1beta1/query.rpc.Query.ts b/__fixtures__/v-next/outputv4/osmosis/ibc-rate-limit/v1beta1/query.rpc.Query.ts index 9603682384..2bec18dbaf 100644 --- a/__fixtures__/v-next/outputv4/osmosis/ibc-rate-limit/v1beta1/query.rpc.Query.ts +++ b/__fixtures__/v-next/outputv4/osmosis/ibc-rate-limit/v1beta1/query.rpc.Query.ts @@ -2,7 +2,7 @@ import { Params, ParamsSDKType } from "./params.js"; import { Rpc } from "../../../helpers.js"; import { BinaryReader } from "../../../binary.js"; import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryParamsRequest, QueryParamsRequestSDKType, QueryParamsResponse, QueryParamsResponseSDKType } from "./query.js"; +import { QueryParamsRequest, QueryParamsRequestSDKType, QueryParamsResponse, QueryParamsResponseSDKType, ReactiveQueryParamsRequest } from "./query.js"; /** Query defines the gRPC querier service. */ export interface Query { /** diff --git a/__fixtures__/v-next/outputv4/osmosis/ibc-rate-limit/v1beta1/query.ts b/__fixtures__/v-next/outputv4/osmosis/ibc-rate-limit/v1beta1/query.ts index be54eba06e..a5280a2864 100644 --- a/__fixtures__/v-next/outputv4/osmosis/ibc-rate-limit/v1beta1/query.ts +++ b/__fixtures__/v-next/outputv4/osmosis/ibc-rate-limit/v1beta1/query.ts @@ -2,9 +2,11 @@ import { Params, ParamsSDKType } from "./params.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { JsonSafe } from "../../../json-safe.js"; import { DeepPartial, isSet } from "../../../helpers.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "osmosis.ibcratelimit.v1beta1"; /** QueryParamsRequest is the request type for the Query/Params RPC method. */ export interface QueryParamsRequest {} +export interface ReactiveQueryParamsRequest {} export interface QueryParamsRequestProtoMsg { typeUrl: "/osmosis.ibcratelimit.v1beta1.QueryParamsRequest"; value: Uint8Array; @@ -16,6 +18,9 @@ export interface QueryParamsResponse { /** params defines the parameters of the module. */ params: Params; } +export interface ReactiveQueryParamsResponse { + params: ComputedRef; +} export interface QueryParamsResponseProtoMsg { typeUrl: "/osmosis.ibcratelimit.v1beta1.QueryParamsResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/osmosis/incentives/gauge.ts b/__fixtures__/v-next/outputv4/osmosis/incentives/gauge.ts index 1c9033e0aa..fca4af7b4a 100644 --- a/__fixtures__/v-next/outputv4/osmosis/incentives/gauge.ts +++ b/__fixtures__/v-next/outputv4/osmosis/incentives/gauge.ts @@ -5,6 +5,7 @@ import { Duration, DurationSDKType } from "../../google/protobuf/duration.js"; import { BinaryReader, BinaryWriter } from "../../binary.js"; import { toTimestamp, fromTimestamp, isSet, DeepPartial } from "../../helpers.js"; import { JsonSafe } from "../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "osmosis.incentives"; /** * Gauge is an object that stores and distributes yields to recipients who @@ -47,6 +48,16 @@ export interface Gauge { /** distributed_coins are coins that have been distributed already */ distributedCoins: Coin[]; } +export interface ReactiveGauge { + id: ComputedRef; + isPerpetual: ComputedRef; + distributeTo: ComputedRef; + coins: ComputedRef; + startTime: ComputedRef; + numEpochsPaidOver: ComputedRef; + filledEpochs: ComputedRef; + distributedCoins: ComputedRef; +} export interface GaugeProtoMsg { typeUrl: "/osmosis.incentives.Gauge"; value: Uint8Array; @@ -70,6 +81,9 @@ export interface LockableDurationsInfo { /** List of incentivised durations that gauges will pay out to */ lockableDurations: Duration[]; } +export interface ReactiveLockableDurationsInfo { + lockableDurations: ComputedRef; +} export interface LockableDurationsInfoProtoMsg { typeUrl: "/osmosis.incentives.LockableDurationsInfo"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/osmosis/incentives/genesis.ts b/__fixtures__/v-next/outputv4/osmosis/incentives/genesis.ts index 4bb70dcfb0..e66dc94e70 100644 --- a/__fixtures__/v-next/outputv4/osmosis/incentives/genesis.ts +++ b/__fixtures__/v-next/outputv4/osmosis/incentives/genesis.ts @@ -4,6 +4,7 @@ import { Duration, DurationSDKType } from "../../google/protobuf/duration.js"; import { BinaryReader, BinaryWriter } from "../../binary.js"; import { isSet, DeepPartial } from "../../helpers.js"; import { JsonSafe } from "../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "osmosis.incentives"; /** * GenesisState defines the incentives module's various parameters when first @@ -25,6 +26,12 @@ export interface GenesisState { */ lastGaugeId: bigint; } +export interface ReactiveGenesisState { + params: ComputedRef; + gauges: ComputedRef; + lockableDurations: ComputedRef; + lastGaugeId: ComputedRef; +} export interface GenesisStateProtoMsg { typeUrl: "/osmosis.incentives.GenesisState"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/osmosis/incentives/params.ts b/__fixtures__/v-next/outputv4/osmosis/incentives/params.ts index 51e4cea767..cc7d8cdc7c 100644 --- a/__fixtures__/v-next/outputv4/osmosis/incentives/params.ts +++ b/__fixtures__/v-next/outputv4/osmosis/incentives/params.ts @@ -1,6 +1,7 @@ import { BinaryReader, BinaryWriter } from "../../binary.js"; import { isSet, DeepPartial } from "../../helpers.js"; import { JsonSafe } from "../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "osmosis.incentives"; /** Params holds parameters for the incentives module */ export interface Params { @@ -10,6 +11,9 @@ export interface Params { */ distrEpochIdentifier: string; } +export interface ReactiveParams { + distrEpochIdentifier: ComputedRef; +} export interface ParamsProtoMsg { typeUrl: "/osmosis.incentives.Params"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/osmosis/incentives/query.rpc.Query.ts b/__fixtures__/v-next/outputv4/osmosis/incentives/query.rpc.Query.ts index a022665455..f5ba8c1f59 100644 --- a/__fixtures__/v-next/outputv4/osmosis/incentives/query.rpc.Query.ts +++ b/__fixtures__/v-next/outputv4/osmosis/incentives/query.rpc.Query.ts @@ -5,7 +5,7 @@ import { Duration, DurationSDKType } from "../../google/protobuf/duration.js"; import { Rpc } from "../../helpers.js"; import { BinaryReader } from "../../binary.js"; import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; -import { ModuleToDistributeCoinsRequest, ModuleToDistributeCoinsRequestSDKType, ModuleToDistributeCoinsResponse, ModuleToDistributeCoinsResponseSDKType, GaugeByIDRequest, GaugeByIDRequestSDKType, GaugeByIDResponse, GaugeByIDResponseSDKType, GaugesRequest, GaugesRequestSDKType, GaugesResponse, GaugesResponseSDKType, ActiveGaugesRequest, ActiveGaugesRequestSDKType, ActiveGaugesResponse, ActiveGaugesResponseSDKType, ActiveGaugesPerDenomRequest, ActiveGaugesPerDenomRequestSDKType, ActiveGaugesPerDenomResponse, ActiveGaugesPerDenomResponseSDKType, UpcomingGaugesRequest, UpcomingGaugesRequestSDKType, UpcomingGaugesResponse, UpcomingGaugesResponseSDKType, UpcomingGaugesPerDenomRequest, UpcomingGaugesPerDenomRequestSDKType, UpcomingGaugesPerDenomResponse, UpcomingGaugesPerDenomResponseSDKType, RewardsEstRequest, RewardsEstRequestSDKType, RewardsEstResponse, RewardsEstResponseSDKType, QueryLockableDurationsRequest, QueryLockableDurationsRequestSDKType, QueryLockableDurationsResponse, QueryLockableDurationsResponseSDKType } from "./query.js"; +import { ModuleToDistributeCoinsRequest, ModuleToDistributeCoinsRequestSDKType, ModuleToDistributeCoinsResponse, ModuleToDistributeCoinsResponseSDKType, GaugeByIDRequest, GaugeByIDRequestSDKType, GaugeByIDResponse, GaugeByIDResponseSDKType, GaugesRequest, GaugesRequestSDKType, GaugesResponse, GaugesResponseSDKType, ActiveGaugesRequest, ActiveGaugesRequestSDKType, ActiveGaugesResponse, ActiveGaugesResponseSDKType, ActiveGaugesPerDenomRequest, ActiveGaugesPerDenomRequestSDKType, ActiveGaugesPerDenomResponse, ActiveGaugesPerDenomResponseSDKType, UpcomingGaugesRequest, UpcomingGaugesRequestSDKType, UpcomingGaugesResponse, UpcomingGaugesResponseSDKType, UpcomingGaugesPerDenomRequest, UpcomingGaugesPerDenomRequestSDKType, UpcomingGaugesPerDenomResponse, UpcomingGaugesPerDenomResponseSDKType, RewardsEstRequest, RewardsEstRequestSDKType, RewardsEstResponse, RewardsEstResponseSDKType, QueryLockableDurationsRequest, QueryLockableDurationsRequestSDKType, QueryLockableDurationsResponse, QueryLockableDurationsResponseSDKType, ReactiveQueryLockableDurationsRequest } from "./query.js"; /** Query defines the gRPC querier service */ export interface Query { /** ModuleToDistributeCoins returns coins that are going to be distributed */ diff --git a/__fixtures__/v-next/outputv4/osmosis/incentives/query.ts b/__fixtures__/v-next/outputv4/osmosis/incentives/query.ts index a6e7d42e8f..d0559018f6 100644 --- a/__fixtures__/v-next/outputv4/osmosis/incentives/query.ts +++ b/__fixtures__/v-next/outputv4/osmosis/incentives/query.ts @@ -5,8 +5,10 @@ import { Duration, DurationSDKType } from "../../google/protobuf/duration.js"; import { BinaryReader, BinaryWriter } from "../../binary.js"; import { JsonSafe } from "../../json-safe.js"; import { DeepPartial, isSet } from "../../helpers.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "osmosis.incentives"; export interface ModuleToDistributeCoinsRequest {} +export interface ReactiveModuleToDistributeCoinsRequest {} export interface ModuleToDistributeCoinsRequestProtoMsg { typeUrl: "/osmosis.incentives.ModuleToDistributeCoinsRequest"; value: Uint8Array; @@ -16,6 +18,9 @@ export interface ModuleToDistributeCoinsResponse { /** Coins that have yet to be distributed */ coins: Coin[]; } +export interface ReactiveModuleToDistributeCoinsResponse { + coins: ComputedRef; +} export interface ModuleToDistributeCoinsResponseProtoMsg { typeUrl: "/osmosis.incentives.ModuleToDistributeCoinsResponse"; value: Uint8Array; @@ -27,6 +32,9 @@ export interface GaugeByIDRequest { /** Gague ID being queried */ id: bigint; } +export interface ReactiveGaugeByIDRequest { + id: ComputedRef; +} export interface GaugeByIDRequestProtoMsg { typeUrl: "/osmosis.incentives.GaugeByIDRequest"; value: Uint8Array; @@ -38,6 +46,9 @@ export interface GaugeByIDResponse { /** Gauge that corresponds to provided gague ID */ gauge?: Gauge; } +export interface ReactiveGaugeByIDResponse { + gauge?: ComputedRef; +} export interface GaugeByIDResponseProtoMsg { typeUrl: "/osmosis.incentives.GaugeByIDResponse"; value: Uint8Array; @@ -49,6 +60,9 @@ export interface GaugesRequest { /** Pagination defines pagination for the request */ pagination?: PageRequest; } +export interface ReactiveGaugesRequest { + pagination?: ComputedRef; +} export interface GaugesRequestProtoMsg { typeUrl: "/osmosis.incentives.GaugesRequest"; value: Uint8Array; @@ -62,6 +76,10 @@ export interface GaugesResponse { /** Pagination defines pagination for the response */ pagination?: PageResponse; } +export interface ReactiveGaugesResponse { + data: ComputedRef; + pagination?: ComputedRef; +} export interface GaugesResponseProtoMsg { typeUrl: "/osmosis.incentives.GaugesResponse"; value: Uint8Array; @@ -74,6 +92,9 @@ export interface ActiveGaugesRequest { /** Pagination defines pagination for the request */ pagination?: PageRequest; } +export interface ReactiveActiveGaugesRequest { + pagination?: ComputedRef; +} export interface ActiveGaugesRequestProtoMsg { typeUrl: "/osmosis.incentives.ActiveGaugesRequest"; value: Uint8Array; @@ -87,6 +108,10 @@ export interface ActiveGaugesResponse { /** Pagination defines pagination for the response */ pagination?: PageResponse; } +export interface ReactiveActiveGaugesResponse { + data: ComputedRef; + pagination?: ComputedRef; +} export interface ActiveGaugesResponseProtoMsg { typeUrl: "/osmosis.incentives.ActiveGaugesResponse"; value: Uint8Array; @@ -101,6 +126,10 @@ export interface ActiveGaugesPerDenomRequest { /** Pagination defines pagination for the request */ pagination?: PageRequest; } +export interface ReactiveActiveGaugesPerDenomRequest { + denom: ComputedRef; + pagination?: ComputedRef; +} export interface ActiveGaugesPerDenomRequestProtoMsg { typeUrl: "/osmosis.incentives.ActiveGaugesPerDenomRequest"; value: Uint8Array; @@ -115,6 +144,10 @@ export interface ActiveGaugesPerDenomResponse { /** Pagination defines pagination for the response */ pagination?: PageResponse; } +export interface ReactiveActiveGaugesPerDenomResponse { + data: ComputedRef; + pagination?: ComputedRef; +} export interface ActiveGaugesPerDenomResponseProtoMsg { typeUrl: "/osmosis.incentives.ActiveGaugesPerDenomResponse"; value: Uint8Array; @@ -127,6 +160,9 @@ export interface UpcomingGaugesRequest { /** Pagination defines pagination for the request */ pagination?: PageRequest; } +export interface ReactiveUpcomingGaugesRequest { + pagination?: ComputedRef; +} export interface UpcomingGaugesRequestProtoMsg { typeUrl: "/osmosis.incentives.UpcomingGaugesRequest"; value: Uint8Array; @@ -140,6 +176,10 @@ export interface UpcomingGaugesResponse { /** Pagination defines pagination for the response */ pagination?: PageResponse; } +export interface ReactiveUpcomingGaugesResponse { + data: ComputedRef; + pagination?: ComputedRef; +} export interface UpcomingGaugesResponseProtoMsg { typeUrl: "/osmosis.incentives.UpcomingGaugesResponse"; value: Uint8Array; @@ -154,6 +194,10 @@ export interface UpcomingGaugesPerDenomRequest { /** Pagination defines pagination for the request */ pagination?: PageRequest; } +export interface ReactiveUpcomingGaugesPerDenomRequest { + denom: ComputedRef; + pagination?: ComputedRef; +} export interface UpcomingGaugesPerDenomRequestProtoMsg { typeUrl: "/osmosis.incentives.UpcomingGaugesPerDenomRequest"; value: Uint8Array; @@ -168,6 +212,10 @@ export interface UpcomingGaugesPerDenomResponse { /** Pagination defines pagination for the response */ pagination?: PageResponse; } +export interface ReactiveUpcomingGaugesPerDenomResponse { + upcomingGauges: ComputedRef; + pagination?: ComputedRef; +} export interface UpcomingGaugesPerDenomResponseProtoMsg { typeUrl: "/osmosis.incentives.UpcomingGaugesPerDenomResponse"; value: Uint8Array; @@ -187,6 +235,11 @@ export interface RewardsEstRequest { */ endEpoch: bigint; } +export interface ReactiveRewardsEstRequest { + owner: ComputedRef; + lockIds: ComputedRef; + endEpoch: ComputedRef; +} export interface RewardsEstRequestProtoMsg { typeUrl: "/osmosis.incentives.RewardsEstRequest"; value: Uint8Array; @@ -203,6 +256,9 @@ export interface RewardsEstResponse { */ coins: Coin[]; } +export interface ReactiveRewardsEstResponse { + coins: ComputedRef; +} export interface RewardsEstResponseProtoMsg { typeUrl: "/osmosis.incentives.RewardsEstResponse"; value: Uint8Array; @@ -211,6 +267,7 @@ export interface RewardsEstResponseSDKType { coins: CoinSDKType[]; } export interface QueryLockableDurationsRequest {} +export interface ReactiveQueryLockableDurationsRequest {} export interface QueryLockableDurationsRequestProtoMsg { typeUrl: "/osmosis.incentives.QueryLockableDurationsRequest"; value: Uint8Array; @@ -220,6 +277,9 @@ export interface QueryLockableDurationsResponse { /** Time durations that users can lock coins for in order to recieve rewards */ lockableDurations: Duration[]; } +export interface ReactiveQueryLockableDurationsResponse { + lockableDurations: ComputedRef; +} export interface QueryLockableDurationsResponseProtoMsg { typeUrl: "/osmosis.incentives.QueryLockableDurationsResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/osmosis/incentives/tx.ts b/__fixtures__/v-next/outputv4/osmosis/incentives/tx.ts index e5dac7e6f7..a15c37365c 100644 --- a/__fixtures__/v-next/outputv4/osmosis/incentives/tx.ts +++ b/__fixtures__/v-next/outputv4/osmosis/incentives/tx.ts @@ -4,6 +4,7 @@ import { Timestamp, TimestampSDKType } from "../../google/protobuf/timestamp.js" import { BinaryReader, BinaryWriter } from "../../binary.js"; import { toTimestamp, fromTimestamp, isSet, DeepPartial } from "../../helpers.js"; import { JsonSafe } from "../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "osmosis.incentives"; /** MsgCreateGauge creates a gague to distribute rewards to users */ export interface MsgCreateGauge { @@ -32,6 +33,14 @@ export interface MsgCreateGauge { */ numEpochsPaidOver: bigint; } +export interface ReactiveMsgCreateGauge { + isPerpetual: ComputedRef; + owner: ComputedRef; + distributeTo: ComputedRef; + coins: ComputedRef; + startTime: ComputedRef; + numEpochsPaidOver: ComputedRef; +} export interface MsgCreateGaugeProtoMsg { typeUrl: "/osmosis.incentives.MsgCreateGauge"; value: Uint8Array; @@ -46,6 +55,7 @@ export interface MsgCreateGaugeSDKType { num_epochs_paid_over: bigint; } export interface MsgCreateGaugeResponse {} +export interface ReactiveMsgCreateGaugeResponse {} export interface MsgCreateGaugeResponseProtoMsg { typeUrl: "/osmosis.incentives.MsgCreateGaugeResponse"; value: Uint8Array; @@ -60,6 +70,11 @@ export interface MsgAddToGauge { /** rewards are the coin(s) to add to gauge */ rewards: Coin[]; } +export interface ReactiveMsgAddToGauge { + owner: ComputedRef; + gaugeId: ComputedRef; + rewards: ComputedRef; +} export interface MsgAddToGaugeProtoMsg { typeUrl: "/osmosis.incentives.MsgAddToGauge"; value: Uint8Array; @@ -71,6 +86,7 @@ export interface MsgAddToGaugeSDKType { rewards: CoinSDKType[]; } export interface MsgAddToGaugeResponse {} +export interface ReactiveMsgAddToGaugeResponse {} export interface MsgAddToGaugeResponseProtoMsg { typeUrl: "/osmosis.incentives.MsgAddToGaugeResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/osmosis/lockup/genesis.ts b/__fixtures__/v-next/outputv4/osmosis/lockup/genesis.ts index 06a82678e2..81485942de 100644 --- a/__fixtures__/v-next/outputv4/osmosis/lockup/genesis.ts +++ b/__fixtures__/v-next/outputv4/osmosis/lockup/genesis.ts @@ -2,6 +2,7 @@ import { PeriodLock, PeriodLockSDKType, SyntheticLock, SyntheticLockSDKType } fr import { BinaryReader, BinaryWriter } from "../../binary.js"; import { isSet, DeepPartial } from "../../helpers.js"; import { JsonSafe } from "../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "osmosis.lockup"; /** GenesisState defines the lockup module's genesis state. */ export interface GenesisState { @@ -9,6 +10,11 @@ export interface GenesisState { locks: PeriodLock[]; syntheticLocks: SyntheticLock[]; } +export interface ReactiveGenesisState { + lastLockId: ComputedRef; + locks: ComputedRef; + syntheticLocks: ComputedRef; +} export interface GenesisStateProtoMsg { typeUrl: "/osmosis.lockup.GenesisState"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/osmosis/lockup/lock.ts b/__fixtures__/v-next/outputv4/osmosis/lockup/lock.ts index e5b56ac098..6c5ebc0a6d 100644 --- a/__fixtures__/v-next/outputv4/osmosis/lockup/lock.ts +++ b/__fixtures__/v-next/outputv4/osmosis/lockup/lock.ts @@ -4,6 +4,7 @@ import { Coin, CoinSDKType } from "../../cosmos/base/v1beta1/coin.js"; import { BinaryReader, BinaryWriter } from "../../binary.js"; import { toTimestamp, fromTimestamp, isSet, DeepPartial } from "../../helpers.js"; import { JsonSafe } from "../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "osmosis.lockup"; /** * LockQueryType defines the type of the lock query that can @@ -73,6 +74,13 @@ export interface PeriodLock { /** Coins are the tokens locked within the lock, kept in the module account. */ coins: Coin[]; } +export interface ReactivePeriodLock { + iD: ComputedRef; + owner: ComputedRef; + duration: ComputedRef; + endTime: ComputedRef; + coins: ComputedRef; +} export interface PeriodLockProtoMsg { typeUrl: "/osmosis.lockup.PeriodLock"; value: Uint8Array; @@ -114,6 +122,12 @@ export interface QueryCondition { */ timestamp: Date; } +export interface ReactiveQueryCondition { + lockQueryType: ComputedRef; + denom: ComputedRef; + duration: ComputedRef; + timestamp: ComputedRef; +} export interface QueryConditionProtoMsg { typeUrl: "/osmosis.lockup.QueryCondition"; value: Uint8Array; @@ -157,6 +171,12 @@ export interface SyntheticLock { */ duration: Duration; } +export interface ReactiveSyntheticLock { + underlyingLockId: ComputedRef; + synthDenom: ComputedRef; + endTime: ComputedRef; + duration: ComputedRef; +} export interface SyntheticLockProtoMsg { typeUrl: "/osmosis.lockup.SyntheticLock"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/osmosis/lockup/params.ts b/__fixtures__/v-next/outputv4/osmosis/lockup/params.ts index ecf0202e72..702a4c7838 100644 --- a/__fixtures__/v-next/outputv4/osmosis/lockup/params.ts +++ b/__fixtures__/v-next/outputv4/osmosis/lockup/params.ts @@ -1,10 +1,14 @@ import { BinaryReader, BinaryWriter } from "../../binary.js"; import { JsonSafe } from "../../json-safe.js"; import { DeepPartial } from "../../helpers.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "osmosis.lockup"; export interface Params { forceUnlockAllowedAddresses: string[]; } +export interface ReactiveParams { + forceUnlockAllowedAddresses: ComputedRef; +} export interface ParamsProtoMsg { typeUrl: "/osmosis.lockup.Params"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/osmosis/lockup/query.rpc.Query.ts b/__fixtures__/v-next/outputv4/osmosis/lockup/query.rpc.Query.ts index 5834f9b405..b5d6b9670a 100644 --- a/__fixtures__/v-next/outputv4/osmosis/lockup/query.rpc.Query.ts +++ b/__fixtures__/v-next/outputv4/osmosis/lockup/query.rpc.Query.ts @@ -6,7 +6,7 @@ import { Params, ParamsSDKType } from "./params.js"; import { Rpc } from "../../helpers.js"; import { BinaryReader } from "../../binary.js"; import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; -import { ModuleBalanceRequest, ModuleBalanceRequestSDKType, ModuleBalanceResponse, ModuleBalanceResponseSDKType, ModuleLockedAmountRequest, ModuleLockedAmountRequestSDKType, ModuleLockedAmountResponse, ModuleLockedAmountResponseSDKType, AccountUnlockableCoinsRequest, AccountUnlockableCoinsRequestSDKType, AccountUnlockableCoinsResponse, AccountUnlockableCoinsResponseSDKType, AccountUnlockingCoinsRequest, AccountUnlockingCoinsRequestSDKType, AccountUnlockingCoinsResponse, AccountUnlockingCoinsResponseSDKType, AccountLockedCoinsRequest, AccountLockedCoinsRequestSDKType, AccountLockedCoinsResponse, AccountLockedCoinsResponseSDKType, AccountLockedPastTimeRequest, AccountLockedPastTimeRequestSDKType, AccountLockedPastTimeResponse, AccountLockedPastTimeResponseSDKType, AccountLockedPastTimeNotUnlockingOnlyRequest, AccountLockedPastTimeNotUnlockingOnlyRequestSDKType, AccountLockedPastTimeNotUnlockingOnlyResponse, AccountLockedPastTimeNotUnlockingOnlyResponseSDKType, AccountUnlockedBeforeTimeRequest, AccountUnlockedBeforeTimeRequestSDKType, AccountUnlockedBeforeTimeResponse, AccountUnlockedBeforeTimeResponseSDKType, AccountLockedPastTimeDenomRequest, AccountLockedPastTimeDenomRequestSDKType, AccountLockedPastTimeDenomResponse, AccountLockedPastTimeDenomResponseSDKType, LockedDenomRequest, LockedDenomRequestSDKType, LockedDenomResponse, LockedDenomResponseSDKType, LockedRequest, LockedRequestSDKType, LockedResponse, LockedResponseSDKType, SyntheticLockupsByLockupIDRequest, SyntheticLockupsByLockupIDRequestSDKType, SyntheticLockupsByLockupIDResponse, SyntheticLockupsByLockupIDResponseSDKType, AccountLockedLongerDurationRequest, AccountLockedLongerDurationRequestSDKType, AccountLockedLongerDurationResponse, AccountLockedLongerDurationResponseSDKType, AccountLockedDurationRequest, AccountLockedDurationRequestSDKType, AccountLockedDurationResponse, AccountLockedDurationResponseSDKType, AccountLockedLongerDurationNotUnlockingOnlyRequest, AccountLockedLongerDurationNotUnlockingOnlyRequestSDKType, AccountLockedLongerDurationNotUnlockingOnlyResponse, AccountLockedLongerDurationNotUnlockingOnlyResponseSDKType, AccountLockedLongerDurationDenomRequest, AccountLockedLongerDurationDenomRequestSDKType, AccountLockedLongerDurationDenomResponse, AccountLockedLongerDurationDenomResponseSDKType, QueryParamsRequest, QueryParamsRequestSDKType, QueryParamsResponse, QueryParamsResponseSDKType } from "./query.js"; +import { ModuleBalanceRequest, ModuleBalanceRequestSDKType, ModuleBalanceResponse, ModuleBalanceResponseSDKType, ModuleLockedAmountRequest, ModuleLockedAmountRequestSDKType, ModuleLockedAmountResponse, ModuleLockedAmountResponseSDKType, AccountUnlockableCoinsRequest, AccountUnlockableCoinsRequestSDKType, AccountUnlockableCoinsResponse, AccountUnlockableCoinsResponseSDKType, AccountUnlockingCoinsRequest, AccountUnlockingCoinsRequestSDKType, AccountUnlockingCoinsResponse, AccountUnlockingCoinsResponseSDKType, AccountLockedCoinsRequest, AccountLockedCoinsRequestSDKType, AccountLockedCoinsResponse, AccountLockedCoinsResponseSDKType, AccountLockedPastTimeRequest, AccountLockedPastTimeRequestSDKType, AccountLockedPastTimeResponse, AccountLockedPastTimeResponseSDKType, AccountLockedPastTimeNotUnlockingOnlyRequest, AccountLockedPastTimeNotUnlockingOnlyRequestSDKType, AccountLockedPastTimeNotUnlockingOnlyResponse, AccountLockedPastTimeNotUnlockingOnlyResponseSDKType, AccountUnlockedBeforeTimeRequest, AccountUnlockedBeforeTimeRequestSDKType, AccountUnlockedBeforeTimeResponse, AccountUnlockedBeforeTimeResponseSDKType, AccountLockedPastTimeDenomRequest, AccountLockedPastTimeDenomRequestSDKType, AccountLockedPastTimeDenomResponse, AccountLockedPastTimeDenomResponseSDKType, LockedDenomRequest, LockedDenomRequestSDKType, LockedDenomResponse, LockedDenomResponseSDKType, LockedRequest, LockedRequestSDKType, LockedResponse, LockedResponseSDKType, SyntheticLockupsByLockupIDRequest, SyntheticLockupsByLockupIDRequestSDKType, SyntheticLockupsByLockupIDResponse, SyntheticLockupsByLockupIDResponseSDKType, AccountLockedLongerDurationRequest, AccountLockedLongerDurationRequestSDKType, AccountLockedLongerDurationResponse, AccountLockedLongerDurationResponseSDKType, AccountLockedDurationRequest, AccountLockedDurationRequestSDKType, AccountLockedDurationResponse, AccountLockedDurationResponseSDKType, AccountLockedLongerDurationNotUnlockingOnlyRequest, AccountLockedLongerDurationNotUnlockingOnlyRequestSDKType, AccountLockedLongerDurationNotUnlockingOnlyResponse, AccountLockedLongerDurationNotUnlockingOnlyResponseSDKType, AccountLockedLongerDurationDenomRequest, AccountLockedLongerDurationDenomRequestSDKType, AccountLockedLongerDurationDenomResponse, AccountLockedLongerDurationDenomResponseSDKType, QueryParamsRequest, QueryParamsRequestSDKType, QueryParamsResponse, QueryParamsResponseSDKType, ReactiveQueryParamsRequest } from "./query.js"; /** Query defines the gRPC querier service. */ export interface Query { /** Return full balance of the module */ diff --git a/__fixtures__/v-next/outputv4/osmosis/lockup/query.ts b/__fixtures__/v-next/outputv4/osmosis/lockup/query.ts index aca2d21797..d0f7be1f92 100644 --- a/__fixtures__/v-next/outputv4/osmosis/lockup/query.ts +++ b/__fixtures__/v-next/outputv4/osmosis/lockup/query.ts @@ -6,8 +6,10 @@ import { Params, ParamsSDKType } from "./params.js"; import { BinaryReader, BinaryWriter } from "../../binary.js"; import { JsonSafe } from "../../json-safe.js"; import { DeepPartial, isSet, toTimestamp, fromTimestamp } from "../../helpers.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "osmosis.lockup"; export interface ModuleBalanceRequest {} +export interface ReactiveModuleBalanceRequest {} export interface ModuleBalanceRequestProtoMsg { typeUrl: "/osmosis.lockup.ModuleBalanceRequest"; value: Uint8Array; @@ -16,6 +18,9 @@ export interface ModuleBalanceRequestSDKType {} export interface ModuleBalanceResponse { coins: Coin[]; } +export interface ReactiveModuleBalanceResponse { + coins: ComputedRef; +} export interface ModuleBalanceResponseProtoMsg { typeUrl: "/osmosis.lockup.ModuleBalanceResponse"; value: Uint8Array; @@ -24,6 +29,7 @@ export interface ModuleBalanceResponseSDKType { coins: CoinSDKType[]; } export interface ModuleLockedAmountRequest {} +export interface ReactiveModuleLockedAmountRequest {} export interface ModuleLockedAmountRequestProtoMsg { typeUrl: "/osmosis.lockup.ModuleLockedAmountRequest"; value: Uint8Array; @@ -32,6 +38,9 @@ export interface ModuleLockedAmountRequestSDKType {} export interface ModuleLockedAmountResponse { coins: Coin[]; } +export interface ReactiveModuleLockedAmountResponse { + coins: ComputedRef; +} export interface ModuleLockedAmountResponseProtoMsg { typeUrl: "/osmosis.lockup.ModuleLockedAmountResponse"; value: Uint8Array; @@ -42,6 +51,9 @@ export interface ModuleLockedAmountResponseSDKType { export interface AccountUnlockableCoinsRequest { owner: string; } +export interface ReactiveAccountUnlockableCoinsRequest { + owner: ComputedRef; +} export interface AccountUnlockableCoinsRequestProtoMsg { typeUrl: "/osmosis.lockup.AccountUnlockableCoinsRequest"; value: Uint8Array; @@ -52,6 +64,9 @@ export interface AccountUnlockableCoinsRequestSDKType { export interface AccountUnlockableCoinsResponse { coins: Coin[]; } +export interface ReactiveAccountUnlockableCoinsResponse { + coins: ComputedRef; +} export interface AccountUnlockableCoinsResponseProtoMsg { typeUrl: "/osmosis.lockup.AccountUnlockableCoinsResponse"; value: Uint8Array; @@ -62,6 +77,9 @@ export interface AccountUnlockableCoinsResponseSDKType { export interface AccountUnlockingCoinsRequest { owner: string; } +export interface ReactiveAccountUnlockingCoinsRequest { + owner: ComputedRef; +} export interface AccountUnlockingCoinsRequestProtoMsg { typeUrl: "/osmosis.lockup.AccountUnlockingCoinsRequest"; value: Uint8Array; @@ -72,6 +90,9 @@ export interface AccountUnlockingCoinsRequestSDKType { export interface AccountUnlockingCoinsResponse { coins: Coin[]; } +export interface ReactiveAccountUnlockingCoinsResponse { + coins: ComputedRef; +} export interface AccountUnlockingCoinsResponseProtoMsg { typeUrl: "/osmosis.lockup.AccountUnlockingCoinsResponse"; value: Uint8Array; @@ -82,6 +103,9 @@ export interface AccountUnlockingCoinsResponseSDKType { export interface AccountLockedCoinsRequest { owner: string; } +export interface ReactiveAccountLockedCoinsRequest { + owner: ComputedRef; +} export interface AccountLockedCoinsRequestProtoMsg { typeUrl: "/osmosis.lockup.AccountLockedCoinsRequest"; value: Uint8Array; @@ -92,6 +116,9 @@ export interface AccountLockedCoinsRequestSDKType { export interface AccountLockedCoinsResponse { coins: Coin[]; } +export interface ReactiveAccountLockedCoinsResponse { + coins: ComputedRef; +} export interface AccountLockedCoinsResponseProtoMsg { typeUrl: "/osmosis.lockup.AccountLockedCoinsResponse"; value: Uint8Array; @@ -103,6 +130,10 @@ export interface AccountLockedPastTimeRequest { owner: string; timestamp: Date; } +export interface ReactiveAccountLockedPastTimeRequest { + owner: ComputedRef; + timestamp: ComputedRef; +} export interface AccountLockedPastTimeRequestProtoMsg { typeUrl: "/osmosis.lockup.AccountLockedPastTimeRequest"; value: Uint8Array; @@ -114,6 +145,9 @@ export interface AccountLockedPastTimeRequestSDKType { export interface AccountLockedPastTimeResponse { locks: PeriodLock[]; } +export interface ReactiveAccountLockedPastTimeResponse { + locks: ComputedRef; +} export interface AccountLockedPastTimeResponseProtoMsg { typeUrl: "/osmosis.lockup.AccountLockedPastTimeResponse"; value: Uint8Array; @@ -125,6 +159,10 @@ export interface AccountLockedPastTimeNotUnlockingOnlyRequest { owner: string; timestamp: Date; } +export interface ReactiveAccountLockedPastTimeNotUnlockingOnlyRequest { + owner: ComputedRef; + timestamp: ComputedRef; +} export interface AccountLockedPastTimeNotUnlockingOnlyRequestProtoMsg { typeUrl: "/osmosis.lockup.AccountLockedPastTimeNotUnlockingOnlyRequest"; value: Uint8Array; @@ -136,6 +174,9 @@ export interface AccountLockedPastTimeNotUnlockingOnlyRequestSDKType { export interface AccountLockedPastTimeNotUnlockingOnlyResponse { locks: PeriodLock[]; } +export interface ReactiveAccountLockedPastTimeNotUnlockingOnlyResponse { + locks: ComputedRef; +} export interface AccountLockedPastTimeNotUnlockingOnlyResponseProtoMsg { typeUrl: "/osmosis.lockup.AccountLockedPastTimeNotUnlockingOnlyResponse"; value: Uint8Array; @@ -147,6 +188,10 @@ export interface AccountUnlockedBeforeTimeRequest { owner: string; timestamp: Date; } +export interface ReactiveAccountUnlockedBeforeTimeRequest { + owner: ComputedRef; + timestamp: ComputedRef; +} export interface AccountUnlockedBeforeTimeRequestProtoMsg { typeUrl: "/osmosis.lockup.AccountUnlockedBeforeTimeRequest"; value: Uint8Array; @@ -158,6 +203,9 @@ export interface AccountUnlockedBeforeTimeRequestSDKType { export interface AccountUnlockedBeforeTimeResponse { locks: PeriodLock[]; } +export interface ReactiveAccountUnlockedBeforeTimeResponse { + locks: ComputedRef; +} export interface AccountUnlockedBeforeTimeResponseProtoMsg { typeUrl: "/osmosis.lockup.AccountUnlockedBeforeTimeResponse"; value: Uint8Array; @@ -170,6 +218,11 @@ export interface AccountLockedPastTimeDenomRequest { timestamp: Date; denom: string; } +export interface ReactiveAccountLockedPastTimeDenomRequest { + owner: ComputedRef; + timestamp: ComputedRef; + denom: ComputedRef; +} export interface AccountLockedPastTimeDenomRequestProtoMsg { typeUrl: "/osmosis.lockup.AccountLockedPastTimeDenomRequest"; value: Uint8Array; @@ -182,6 +235,9 @@ export interface AccountLockedPastTimeDenomRequestSDKType { export interface AccountLockedPastTimeDenomResponse { locks: PeriodLock[]; } +export interface ReactiveAccountLockedPastTimeDenomResponse { + locks: ComputedRef; +} export interface AccountLockedPastTimeDenomResponseProtoMsg { typeUrl: "/osmosis.lockup.AccountLockedPastTimeDenomResponse"; value: Uint8Array; @@ -193,6 +249,10 @@ export interface LockedDenomRequest { denom: string; duration: Duration; } +export interface ReactiveLockedDenomRequest { + denom: ComputedRef; + duration: ComputedRef; +} export interface LockedDenomRequestProtoMsg { typeUrl: "/osmosis.lockup.LockedDenomRequest"; value: Uint8Array; @@ -204,6 +264,9 @@ export interface LockedDenomRequestSDKType { export interface LockedDenomResponse { amount: string; } +export interface ReactiveLockedDenomResponse { + amount: ComputedRef; +} export interface LockedDenomResponseProtoMsg { typeUrl: "/osmosis.lockup.LockedDenomResponse"; value: Uint8Array; @@ -214,6 +277,9 @@ export interface LockedDenomResponseSDKType { export interface LockedRequest { lockId: bigint; } +export interface ReactiveLockedRequest { + lockId: ComputedRef; +} export interface LockedRequestProtoMsg { typeUrl: "/osmosis.lockup.LockedRequest"; value: Uint8Array; @@ -224,6 +290,9 @@ export interface LockedRequestSDKType { export interface LockedResponse { lock?: PeriodLock; } +export interface ReactiveLockedResponse { + lock?: ComputedRef; +} export interface LockedResponseProtoMsg { typeUrl: "/osmosis.lockup.LockedResponse"; value: Uint8Array; @@ -234,6 +303,9 @@ export interface LockedResponseSDKType { export interface SyntheticLockupsByLockupIDRequest { lockId: bigint; } +export interface ReactiveSyntheticLockupsByLockupIDRequest { + lockId: ComputedRef; +} export interface SyntheticLockupsByLockupIDRequestProtoMsg { typeUrl: "/osmosis.lockup.SyntheticLockupsByLockupIDRequest"; value: Uint8Array; @@ -244,6 +316,9 @@ export interface SyntheticLockupsByLockupIDRequestSDKType { export interface SyntheticLockupsByLockupIDResponse { syntheticLocks: SyntheticLock[]; } +export interface ReactiveSyntheticLockupsByLockupIDResponse { + syntheticLocks: ComputedRef; +} export interface SyntheticLockupsByLockupIDResponseProtoMsg { typeUrl: "/osmosis.lockup.SyntheticLockupsByLockupIDResponse"; value: Uint8Array; @@ -255,6 +330,10 @@ export interface AccountLockedLongerDurationRequest { owner: string; duration: Duration; } +export interface ReactiveAccountLockedLongerDurationRequest { + owner: ComputedRef; + duration: ComputedRef; +} export interface AccountLockedLongerDurationRequestProtoMsg { typeUrl: "/osmosis.lockup.AccountLockedLongerDurationRequest"; value: Uint8Array; @@ -266,6 +345,9 @@ export interface AccountLockedLongerDurationRequestSDKType { export interface AccountLockedLongerDurationResponse { locks: PeriodLock[]; } +export interface ReactiveAccountLockedLongerDurationResponse { + locks: ComputedRef; +} export interface AccountLockedLongerDurationResponseProtoMsg { typeUrl: "/osmosis.lockup.AccountLockedLongerDurationResponse"; value: Uint8Array; @@ -277,6 +359,10 @@ export interface AccountLockedDurationRequest { owner: string; duration: Duration; } +export interface ReactiveAccountLockedDurationRequest { + owner: ComputedRef; + duration: ComputedRef; +} export interface AccountLockedDurationRequestProtoMsg { typeUrl: "/osmosis.lockup.AccountLockedDurationRequest"; value: Uint8Array; @@ -288,6 +374,9 @@ export interface AccountLockedDurationRequestSDKType { export interface AccountLockedDurationResponse { locks: PeriodLock[]; } +export interface ReactiveAccountLockedDurationResponse { + locks: ComputedRef; +} export interface AccountLockedDurationResponseProtoMsg { typeUrl: "/osmosis.lockup.AccountLockedDurationResponse"; value: Uint8Array; @@ -299,6 +388,10 @@ export interface AccountLockedLongerDurationNotUnlockingOnlyRequest { owner: string; duration: Duration; } +export interface ReactiveAccountLockedLongerDurationNotUnlockingOnlyRequest { + owner: ComputedRef; + duration: ComputedRef; +} export interface AccountLockedLongerDurationNotUnlockingOnlyRequestProtoMsg { typeUrl: "/osmosis.lockup.AccountLockedLongerDurationNotUnlockingOnlyRequest"; value: Uint8Array; @@ -310,6 +403,9 @@ export interface AccountLockedLongerDurationNotUnlockingOnlyRequestSDKType { export interface AccountLockedLongerDurationNotUnlockingOnlyResponse { locks: PeriodLock[]; } +export interface ReactiveAccountLockedLongerDurationNotUnlockingOnlyResponse { + locks: ComputedRef; +} export interface AccountLockedLongerDurationNotUnlockingOnlyResponseProtoMsg { typeUrl: "/osmosis.lockup.AccountLockedLongerDurationNotUnlockingOnlyResponse"; value: Uint8Array; @@ -322,6 +418,11 @@ export interface AccountLockedLongerDurationDenomRequest { duration: Duration; denom: string; } +export interface ReactiveAccountLockedLongerDurationDenomRequest { + owner: ComputedRef; + duration: ComputedRef; + denom: ComputedRef; +} export interface AccountLockedLongerDurationDenomRequestProtoMsg { typeUrl: "/osmosis.lockup.AccountLockedLongerDurationDenomRequest"; value: Uint8Array; @@ -334,6 +435,9 @@ export interface AccountLockedLongerDurationDenomRequestSDKType { export interface AccountLockedLongerDurationDenomResponse { locks: PeriodLock[]; } +export interface ReactiveAccountLockedLongerDurationDenomResponse { + locks: ComputedRef; +} export interface AccountLockedLongerDurationDenomResponseProtoMsg { typeUrl: "/osmosis.lockup.AccountLockedLongerDurationDenomResponse"; value: Uint8Array; @@ -342,6 +446,7 @@ export interface AccountLockedLongerDurationDenomResponseSDKType { locks: PeriodLockSDKType[]; } export interface QueryParamsRequest {} +export interface ReactiveQueryParamsRequest {} export interface QueryParamsRequestProtoMsg { typeUrl: "/osmosis.lockup.QueryParamsRequest"; value: Uint8Array; @@ -350,6 +455,9 @@ export interface QueryParamsRequestSDKType {} export interface QueryParamsResponse { params: Params; } +export interface ReactiveQueryParamsResponse { + params: ComputedRef; +} export interface QueryParamsResponseProtoMsg { typeUrl: "/osmosis.lockup.QueryParamsResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/osmosis/lockup/tx.ts b/__fixtures__/v-next/outputv4/osmosis/lockup/tx.ts index 8e941d29cb..b2ae205487 100644 --- a/__fixtures__/v-next/outputv4/osmosis/lockup/tx.ts +++ b/__fixtures__/v-next/outputv4/osmosis/lockup/tx.ts @@ -4,12 +4,18 @@ import { PeriodLock, PeriodLockSDKType } from "./lock.js"; import { BinaryReader, BinaryWriter } from "../../binary.js"; import { isSet, DeepPartial } from "../../helpers.js"; import { JsonSafe } from "../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "osmosis.lockup"; export interface MsgLockTokens { owner: string; duration: Duration; coins: Coin[]; } +export interface ReactiveMsgLockTokens { + owner: ComputedRef; + duration: ComputedRef; + coins: ComputedRef; +} export interface MsgLockTokensProtoMsg { typeUrl: "/osmosis.lockup.MsgLockTokens"; value: Uint8Array; @@ -22,6 +28,9 @@ export interface MsgLockTokensSDKType { export interface MsgLockTokensResponse { iD: bigint; } +export interface ReactiveMsgLockTokensResponse { + iD: ComputedRef; +} export interface MsgLockTokensResponseProtoMsg { typeUrl: "/osmosis.lockup.MsgLockTokensResponse"; value: Uint8Array; @@ -32,6 +41,9 @@ export interface MsgLockTokensResponseSDKType { export interface MsgBeginUnlockingAll { owner: string; } +export interface ReactiveMsgBeginUnlockingAll { + owner: ComputedRef; +} export interface MsgBeginUnlockingAllProtoMsg { typeUrl: "/osmosis.lockup.MsgBeginUnlockingAll"; value: Uint8Array; @@ -42,6 +54,9 @@ export interface MsgBeginUnlockingAllSDKType { export interface MsgBeginUnlockingAllResponse { unlocks: PeriodLock[]; } +export interface ReactiveMsgBeginUnlockingAllResponse { + unlocks: ComputedRef; +} export interface MsgBeginUnlockingAllResponseProtoMsg { typeUrl: "/osmosis.lockup.MsgBeginUnlockingAllResponse"; value: Uint8Array; @@ -55,6 +70,11 @@ export interface MsgBeginUnlocking { /** Amount of unlocking coins. Unlock all if not set. */ coins: Coin[]; } +export interface ReactiveMsgBeginUnlocking { + owner: ComputedRef; + iD: ComputedRef; + coins: ComputedRef; +} export interface MsgBeginUnlockingProtoMsg { typeUrl: "/osmosis.lockup.MsgBeginUnlocking"; value: Uint8Array; @@ -67,6 +87,9 @@ export interface MsgBeginUnlockingSDKType { export interface MsgBeginUnlockingResponse { success: boolean; } +export interface ReactiveMsgBeginUnlockingResponse { + success: ComputedRef; +} export interface MsgBeginUnlockingResponseProtoMsg { typeUrl: "/osmosis.lockup.MsgBeginUnlockingResponse"; value: Uint8Array; @@ -87,6 +110,11 @@ export interface MsgExtendLockup { */ duration: Duration; } +export interface ReactiveMsgExtendLockup { + owner: ComputedRef; + iD: ComputedRef; + duration: ComputedRef; +} export interface MsgExtendLockupProtoMsg { typeUrl: "/osmosis.lockup.MsgExtendLockup"; value: Uint8Array; @@ -103,6 +131,9 @@ export interface MsgExtendLockupSDKType { export interface MsgExtendLockupResponse { success: boolean; } +export interface ReactiveMsgExtendLockupResponse { + success: ComputedRef; +} export interface MsgExtendLockupResponseProtoMsg { typeUrl: "/osmosis.lockup.MsgExtendLockupResponse"; value: Uint8Array; @@ -120,6 +151,11 @@ export interface MsgForceUnlock { /** Amount of unlocking coins. Unlock all if not set. */ coins: Coin[]; } +export interface ReactiveMsgForceUnlock { + owner: ComputedRef; + iD: ComputedRef; + coins: ComputedRef; +} export interface MsgForceUnlockProtoMsg { typeUrl: "/osmosis.lockup.MsgForceUnlock"; value: Uint8Array; @@ -136,6 +172,9 @@ export interface MsgForceUnlockSDKType { export interface MsgForceUnlockResponse { success: boolean; } +export interface ReactiveMsgForceUnlockResponse { + success: ComputedRef; +} export interface MsgForceUnlockResponseProtoMsg { typeUrl: "/osmosis.lockup.MsgForceUnlockResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/osmosis/mint/v1beta1/genesis.ts b/__fixtures__/v-next/outputv4/osmosis/mint/v1beta1/genesis.ts index 028ac8fd14..ff33e76a4b 100644 --- a/__fixtures__/v-next/outputv4/osmosis/mint/v1beta1/genesis.ts +++ b/__fixtures__/v-next/outputv4/osmosis/mint/v1beta1/genesis.ts @@ -2,6 +2,7 @@ import { Minter, MinterSDKType, Params, ParamsSDKType } from "./mint.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "osmosis.mint.v1beta1"; /** GenesisState defines the mint module's genesis state. */ export interface GenesisState { @@ -15,6 +16,11 @@ export interface GenesisState { */ reductionStartedEpoch: bigint; } +export interface ReactiveGenesisState { + minter: ComputedRef; + params: ComputedRef; + reductionStartedEpoch: ComputedRef; +} export interface GenesisStateProtoMsg { typeUrl: "/osmosis.mint.v1beta1.GenesisState"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/osmosis/mint/v1beta1/mint.ts b/__fixtures__/v-next/outputv4/osmosis/mint/v1beta1/mint.ts index 5d349f1c5e..f7ebfda210 100644 --- a/__fixtures__/v-next/outputv4/osmosis/mint/v1beta1/mint.ts +++ b/__fixtures__/v-next/outputv4/osmosis/mint/v1beta1/mint.ts @@ -2,12 +2,16 @@ import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { Decimal } from "@cosmjs/math"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "osmosis.mint.v1beta1"; /** Minter represents the minting state. */ export interface Minter { /** epoch_provisions represent rewards for the current epoch. */ epochProvisions: string; } +export interface ReactiveMinter { + epochProvisions: ComputedRef; +} export interface MinterProtoMsg { typeUrl: "/osmosis.mint.v1beta1.Minter"; value: Uint8Array; @@ -25,6 +29,10 @@ export interface WeightedAddress { address: string; weight: string; } +export interface ReactiveWeightedAddress { + address: ComputedRef; + weight: ComputedRef; +} export interface WeightedAddressProtoMsg { typeUrl: "/osmosis.mint.v1beta1.WeightedAddress"; value: Uint8Array; @@ -65,6 +73,12 @@ export interface DistributionProportions { */ communityPool: string; } +export interface ReactiveDistributionProportions { + staking: ComputedRef; + poolIncentives: ComputedRef; + developerRewards: ComputedRef; + communityPool: ComputedRef; +} export interface DistributionProportionsProtoMsg { typeUrl: "/osmosis.mint.v1beta1.DistributionProportions"; value: Uint8Array; @@ -117,6 +131,16 @@ export interface Params { */ mintingRewardsDistributionStartEpoch: bigint; } +export interface ReactiveParams { + mintDenom: ComputedRef; + genesisEpochProvisions: ComputedRef; + epochIdentifier: ComputedRef; + reductionPeriodInEpochs: ComputedRef; + reductionFactor: ComputedRef; + distributionProportions: ComputedRef; + weightedDeveloperRewardsReceivers: ComputedRef; + mintingRewardsDistributionStartEpoch: ComputedRef; +} export interface ParamsProtoMsg { typeUrl: "/osmosis.mint.v1beta1.Params"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/osmosis/mint/v1beta1/query.rpc.Query.ts b/__fixtures__/v-next/outputv4/osmosis/mint/v1beta1/query.rpc.Query.ts index 9b797c4f59..07d749bf2f 100644 --- a/__fixtures__/v-next/outputv4/osmosis/mint/v1beta1/query.rpc.Query.ts +++ b/__fixtures__/v-next/outputv4/osmosis/mint/v1beta1/query.rpc.Query.ts @@ -2,7 +2,7 @@ import { Params, ParamsSDKType } from "./mint.js"; import { Rpc } from "../../../helpers.js"; import { BinaryReader } from "../../../binary.js"; import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryParamsRequest, QueryParamsRequestSDKType, QueryParamsResponse, QueryParamsResponseSDKType, QueryEpochProvisionsRequest, QueryEpochProvisionsRequestSDKType, QueryEpochProvisionsResponse, QueryEpochProvisionsResponseSDKType } from "./query.js"; +import { QueryParamsRequest, QueryParamsRequestSDKType, QueryParamsResponse, QueryParamsResponseSDKType, QueryEpochProvisionsRequest, QueryEpochProvisionsRequestSDKType, QueryEpochProvisionsResponse, QueryEpochProvisionsResponseSDKType, ReactiveQueryParamsRequest, ReactiveQueryEpochProvisionsRequest } from "./query.js"; /** Query provides defines the gRPC querier service. */ export interface Query { /** Params returns the total set of minting parameters. */ diff --git a/__fixtures__/v-next/outputv4/osmosis/mint/v1beta1/query.ts b/__fixtures__/v-next/outputv4/osmosis/mint/v1beta1/query.ts index 37013f2241..cec8b65048 100644 --- a/__fixtures__/v-next/outputv4/osmosis/mint/v1beta1/query.ts +++ b/__fixtures__/v-next/outputv4/osmosis/mint/v1beta1/query.ts @@ -2,9 +2,11 @@ import { Params, ParamsSDKType } from "./mint.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { JsonSafe } from "../../../json-safe.js"; import { DeepPartial, isSet, bytesFromBase64, base64FromBytes } from "../../../helpers.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "osmosis.mint.v1beta1"; /** QueryParamsRequest is the request type for the Query/Params RPC method. */ export interface QueryParamsRequest {} +export interface ReactiveQueryParamsRequest {} export interface QueryParamsRequestProtoMsg { typeUrl: "/osmosis.mint.v1beta1.QueryParamsRequest"; value: Uint8Array; @@ -16,6 +18,9 @@ export interface QueryParamsResponse { /** params defines the parameters of the module. */ params: Params; } +export interface ReactiveQueryParamsResponse { + params: ComputedRef; +} export interface QueryParamsResponseProtoMsg { typeUrl: "/osmosis.mint.v1beta1.QueryParamsResponse"; value: Uint8Array; @@ -29,6 +34,7 @@ export interface QueryParamsResponseSDKType { * Query/EpochProvisions RPC method. */ export interface QueryEpochProvisionsRequest {} +export interface ReactiveQueryEpochProvisionsRequest {} export interface QueryEpochProvisionsRequestProtoMsg { typeUrl: "/osmosis.mint.v1beta1.QueryEpochProvisionsRequest"; value: Uint8Array; @@ -46,6 +52,9 @@ export interface QueryEpochProvisionsResponse { /** epoch_provisions is the current minting per epoch provisions value. */ epochProvisions: Uint8Array; } +export interface ReactiveQueryEpochProvisionsResponse { + epochProvisions: ComputedRef; +} export interface QueryEpochProvisionsResponseProtoMsg { typeUrl: "/osmosis.mint.v1beta1.QueryEpochProvisionsResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/osmosis/pool-incentives/v1beta1/genesis.ts b/__fixtures__/v-next/outputv4/osmosis/pool-incentives/v1beta1/genesis.ts index 07313482f3..ed097b026b 100644 --- a/__fixtures__/v-next/outputv4/osmosis/pool-incentives/v1beta1/genesis.ts +++ b/__fixtures__/v-next/outputv4/osmosis/pool-incentives/v1beta1/genesis.ts @@ -3,6 +3,7 @@ import { Duration, DurationSDKType } from "../../../google/protobuf/duration.js" import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "osmosis.poolincentives.v1beta1"; /** GenesisState defines the pool incentives module's genesis state. */ export interface GenesisState { @@ -12,6 +13,12 @@ export interface GenesisState { distrInfo?: DistrInfo; poolToGauges?: PoolToGauges; } +export interface ReactiveGenesisState { + params: ComputedRef; + lockableDurations: ComputedRef; + distrInfo?: ComputedRef; + poolToGauges?: ComputedRef; +} export interface GenesisStateProtoMsg { typeUrl: "/osmosis.poolincentives.v1beta1.GenesisState"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/osmosis/pool-incentives/v1beta1/gov.ts b/__fixtures__/v-next/outputv4/osmosis/pool-incentives/v1beta1/gov.ts index c4560dfcc3..aef3e12928 100644 --- a/__fixtures__/v-next/outputv4/osmosis/pool-incentives/v1beta1/gov.ts +++ b/__fixtures__/v-next/outputv4/osmosis/pool-incentives/v1beta1/gov.ts @@ -2,6 +2,7 @@ import { DistrRecord, DistrRecordSDKType } from "./incentives.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "osmosis.poolincentives.v1beta1"; /** * ReplacePoolIncentivesProposal is a gov Content type for updating the pool @@ -17,6 +18,11 @@ export interface ReplacePoolIncentivesProposal { description: string; records: DistrRecord[]; } +export interface ReactiveReplacePoolIncentivesProposal { + title: ComputedRef; + description: ComputedRef; + records: ComputedRef; +} export interface ReplacePoolIncentivesProposalProtoMsg { typeUrl: "/osmosis.poolincentives.v1beta1.ReplacePoolIncentivesProposal"; value: Uint8Array; @@ -49,6 +55,11 @@ export interface UpdatePoolIncentivesProposal { description: string; records: DistrRecord[]; } +export interface ReactiveUpdatePoolIncentivesProposal { + title: ComputedRef; + description: ComputedRef; + records: ComputedRef; +} export interface UpdatePoolIncentivesProposalProtoMsg { typeUrl: "/osmosis.poolincentives.v1beta1.UpdatePoolIncentivesProposal"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/osmosis/pool-incentives/v1beta1/incentives.ts b/__fixtures__/v-next/outputv4/osmosis/pool-incentives/v1beta1/incentives.ts index 37fa7be682..c3703f2ebb 100644 --- a/__fixtures__/v-next/outputv4/osmosis/pool-incentives/v1beta1/incentives.ts +++ b/__fixtures__/v-next/outputv4/osmosis/pool-incentives/v1beta1/incentives.ts @@ -2,6 +2,7 @@ import { Duration, DurationSDKType } from "../../../google/protobuf/duration.js" import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "osmosis.poolincentives.v1beta1"; export interface Params { /** @@ -12,6 +13,9 @@ export interface Params { */ mintedDenom: string; } +export interface ReactiveParams { + mintedDenom: ComputedRef; +} export interface ParamsProtoMsg { typeUrl: "/osmosis.poolincentives.v1beta1.Params"; value: Uint8Array; @@ -22,6 +26,9 @@ export interface ParamsSDKType { export interface LockableDurationsInfo { lockableDurations: Duration[]; } +export interface ReactiveLockableDurationsInfo { + lockableDurations: ComputedRef; +} export interface LockableDurationsInfoProtoMsg { typeUrl: "/osmosis.poolincentives.v1beta1.LockableDurationsInfo"; value: Uint8Array; @@ -33,6 +40,10 @@ export interface DistrInfo { totalWeight: string; records: DistrRecord[]; } +export interface ReactiveDistrInfo { + totalWeight: ComputedRef; + records: ComputedRef; +} export interface DistrInfoProtoMsg { typeUrl: "/osmosis.poolincentives.v1beta1.DistrInfo"; value: Uint8Array; @@ -45,6 +56,10 @@ export interface DistrRecord { gaugeId: bigint; weight: string; } +export interface ReactiveDistrRecord { + gaugeId: ComputedRef; + weight: ComputedRef; +} export interface DistrRecordProtoMsg { typeUrl: "/osmosis.poolincentives.v1beta1.DistrRecord"; value: Uint8Array; @@ -58,6 +73,11 @@ export interface PoolToGauge { gaugeId: bigint; duration: Duration; } +export interface ReactivePoolToGauge { + poolId: ComputedRef; + gaugeId: ComputedRef; + duration: ComputedRef; +} export interface PoolToGaugeProtoMsg { typeUrl: "/osmosis.poolincentives.v1beta1.PoolToGauge"; value: Uint8Array; @@ -70,6 +90,9 @@ export interface PoolToGaugeSDKType { export interface PoolToGauges { poolToGauge: PoolToGauge[]; } +export interface ReactivePoolToGauges { + poolToGauge: ComputedRef; +} export interface PoolToGaugesProtoMsg { typeUrl: "/osmosis.poolincentives.v1beta1.PoolToGauges"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/osmosis/pool-incentives/v1beta1/query.rpc.Query.ts b/__fixtures__/v-next/outputv4/osmosis/pool-incentives/v1beta1/query.rpc.Query.ts index 6e0c2c74dd..30ef8a297d 100644 --- a/__fixtures__/v-next/outputv4/osmosis/pool-incentives/v1beta1/query.rpc.Query.ts +++ b/__fixtures__/v-next/outputv4/osmosis/pool-incentives/v1beta1/query.rpc.Query.ts @@ -4,7 +4,7 @@ import { Gauge, GaugeSDKType } from "../../incentives/gauge.js"; import { Rpc } from "../../../helpers.js"; import { BinaryReader } from "../../../binary.js"; import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryGaugeIdsRequest, QueryGaugeIdsRequestSDKType, QueryGaugeIdsResponse, QueryGaugeIdsResponseSDKType, QueryDistrInfoRequest, QueryDistrInfoRequestSDKType, QueryDistrInfoResponse, QueryDistrInfoResponseSDKType, QueryParamsRequest, QueryParamsRequestSDKType, QueryParamsResponse, QueryParamsResponseSDKType, QueryLockableDurationsRequest, QueryLockableDurationsRequestSDKType, QueryLockableDurationsResponse, QueryLockableDurationsResponseSDKType, QueryIncentivizedPoolsRequest, QueryIncentivizedPoolsRequestSDKType, QueryIncentivizedPoolsResponse, QueryIncentivizedPoolsResponseSDKType, QueryExternalIncentiveGaugesRequest, QueryExternalIncentiveGaugesRequestSDKType, QueryExternalIncentiveGaugesResponse, QueryExternalIncentiveGaugesResponseSDKType } from "./query.js"; +import { QueryGaugeIdsRequest, QueryGaugeIdsRequestSDKType, QueryGaugeIdsResponse, QueryGaugeIdsResponseSDKType, QueryDistrInfoRequest, QueryDistrInfoRequestSDKType, QueryDistrInfoResponse, QueryDistrInfoResponseSDKType, QueryParamsRequest, QueryParamsRequestSDKType, QueryParamsResponse, QueryParamsResponseSDKType, QueryLockableDurationsRequest, QueryLockableDurationsRequestSDKType, QueryLockableDurationsResponse, QueryLockableDurationsResponseSDKType, QueryIncentivizedPoolsRequest, QueryIncentivizedPoolsRequestSDKType, QueryIncentivizedPoolsResponse, QueryIncentivizedPoolsResponseSDKType, QueryExternalIncentiveGaugesRequest, QueryExternalIncentiveGaugesRequestSDKType, QueryExternalIncentiveGaugesResponse, QueryExternalIncentiveGaugesResponseSDKType, ReactiveQueryGaugeIdsRequest, ReactiveQueryDistrInfoRequest, ReactiveQueryParamsRequest, ReactiveQueryLockableDurationsRequest, ReactiveQueryIncentivizedPoolsRequest, ReactiveQueryExternalIncentiveGaugesRequest } from "./query.js"; export interface Query { /** GaugeIds takes the pool id and returns the matching gauge ids and durations */ gaugeIds(request: QueryGaugeIdsRequest): Promise; diff --git a/__fixtures__/v-next/outputv4/osmosis/pool-incentives/v1beta1/query.ts b/__fixtures__/v-next/outputv4/osmosis/pool-incentives/v1beta1/query.ts index 42c80e30ec..ebd8109701 100644 --- a/__fixtures__/v-next/outputv4/osmosis/pool-incentives/v1beta1/query.ts +++ b/__fixtures__/v-next/outputv4/osmosis/pool-incentives/v1beta1/query.ts @@ -4,10 +4,14 @@ import { Gauge, GaugeSDKType } from "../../incentives/gauge.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "osmosis.poolincentives.v1beta1"; export interface QueryGaugeIdsRequest { poolId: bigint; } +export interface ReactiveQueryGaugeIdsRequest { + poolId: ComputedRef; +} export interface QueryGaugeIdsRequestProtoMsg { typeUrl: "/osmosis.poolincentives.v1beta1.QueryGaugeIdsRequest"; value: Uint8Array; @@ -18,6 +22,9 @@ export interface QueryGaugeIdsRequestSDKType { export interface QueryGaugeIdsResponse { gaugeIdsWithDuration: QueryGaugeIdsResponse_GaugeIdWithDuration[]; } +export interface ReactiveQueryGaugeIdsResponse { + gaugeIdsWithDuration: ComputedRef; +} export interface QueryGaugeIdsResponseProtoMsg { typeUrl: "/osmosis.poolincentives.v1beta1.QueryGaugeIdsResponse"; value: Uint8Array; @@ -30,6 +37,11 @@ export interface QueryGaugeIdsResponse_GaugeIdWithDuration { duration: Duration; gaugeIncentivePercentage: string; } +export interface ReactiveQueryGaugeIdsResponse_GaugeIdWithDuration { + gaugeId: ComputedRef; + duration: ComputedRef; + gaugeIncentivePercentage: ComputedRef; +} export interface QueryGaugeIdsResponse_GaugeIdWithDurationProtoMsg { typeUrl: "/osmosis.poolincentives.v1beta1.GaugeIdWithDuration"; value: Uint8Array; @@ -40,6 +52,7 @@ export interface QueryGaugeIdsResponse_GaugeIdWithDurationSDKType { gauge_incentive_percentage: string; } export interface QueryDistrInfoRequest {} +export interface ReactiveQueryDistrInfoRequest {} export interface QueryDistrInfoRequestProtoMsg { typeUrl: "/osmosis.poolincentives.v1beta1.QueryDistrInfoRequest"; value: Uint8Array; @@ -48,6 +61,9 @@ export interface QueryDistrInfoRequestSDKType {} export interface QueryDistrInfoResponse { distrInfo: DistrInfo; } +export interface ReactiveQueryDistrInfoResponse { + distrInfo: ComputedRef; +} export interface QueryDistrInfoResponseProtoMsg { typeUrl: "/osmosis.poolincentives.v1beta1.QueryDistrInfoResponse"; value: Uint8Array; @@ -56,6 +72,7 @@ export interface QueryDistrInfoResponseSDKType { distr_info: DistrInfoSDKType; } export interface QueryParamsRequest {} +export interface ReactiveQueryParamsRequest {} export interface QueryParamsRequestProtoMsg { typeUrl: "/osmosis.poolincentives.v1beta1.QueryParamsRequest"; value: Uint8Array; @@ -64,6 +81,9 @@ export interface QueryParamsRequestSDKType {} export interface QueryParamsResponse { params: Params; } +export interface ReactiveQueryParamsResponse { + params: ComputedRef; +} export interface QueryParamsResponseProtoMsg { typeUrl: "/osmosis.poolincentives.v1beta1.QueryParamsResponse"; value: Uint8Array; @@ -72,6 +92,7 @@ export interface QueryParamsResponseSDKType { params: ParamsSDKType; } export interface QueryLockableDurationsRequest {} +export interface ReactiveQueryLockableDurationsRequest {} export interface QueryLockableDurationsRequestProtoMsg { typeUrl: "/osmosis.poolincentives.v1beta1.QueryLockableDurationsRequest"; value: Uint8Array; @@ -80,6 +101,9 @@ export interface QueryLockableDurationsRequestSDKType {} export interface QueryLockableDurationsResponse { lockableDurations: Duration[]; } +export interface ReactiveQueryLockableDurationsResponse { + lockableDurations: ComputedRef; +} export interface QueryLockableDurationsResponseProtoMsg { typeUrl: "/osmosis.poolincentives.v1beta1.QueryLockableDurationsResponse"; value: Uint8Array; @@ -88,6 +112,7 @@ export interface QueryLockableDurationsResponseSDKType { lockable_durations: DurationSDKType[]; } export interface QueryIncentivizedPoolsRequest {} +export interface ReactiveQueryIncentivizedPoolsRequest {} export interface QueryIncentivizedPoolsRequestProtoMsg { typeUrl: "/osmosis.poolincentives.v1beta1.QueryIncentivizedPoolsRequest"; value: Uint8Array; @@ -98,6 +123,11 @@ export interface IncentivizedPool { lockableDuration: Duration; gaugeId: bigint; } +export interface ReactiveIncentivizedPool { + poolId: ComputedRef; + lockableDuration: ComputedRef; + gaugeId: ComputedRef; +} export interface IncentivizedPoolProtoMsg { typeUrl: "/osmosis.poolincentives.v1beta1.IncentivizedPool"; value: Uint8Array; @@ -110,6 +140,9 @@ export interface IncentivizedPoolSDKType { export interface QueryIncentivizedPoolsResponse { incentivizedPools: IncentivizedPool[]; } +export interface ReactiveQueryIncentivizedPoolsResponse { + incentivizedPools: ComputedRef; +} export interface QueryIncentivizedPoolsResponseProtoMsg { typeUrl: "/osmosis.poolincentives.v1beta1.QueryIncentivizedPoolsResponse"; value: Uint8Array; @@ -118,6 +151,7 @@ export interface QueryIncentivizedPoolsResponseSDKType { incentivized_pools: IncentivizedPoolSDKType[]; } export interface QueryExternalIncentiveGaugesRequest {} +export interface ReactiveQueryExternalIncentiveGaugesRequest {} export interface QueryExternalIncentiveGaugesRequestProtoMsg { typeUrl: "/osmosis.poolincentives.v1beta1.QueryExternalIncentiveGaugesRequest"; value: Uint8Array; @@ -126,6 +160,9 @@ export interface QueryExternalIncentiveGaugesRequestSDKType {} export interface QueryExternalIncentiveGaugesResponse { data: Gauge[]; } +export interface ReactiveQueryExternalIncentiveGaugesResponse { + data: ComputedRef; +} export interface QueryExternalIncentiveGaugesResponseProtoMsg { typeUrl: "/osmosis.poolincentives.v1beta1.QueryExternalIncentiveGaugesResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/osmosis/sumtree/v1beta1/tree.ts b/__fixtures__/v-next/outputv4/osmosis/sumtree/v1beta1/tree.ts index 19988ec01e..3f25bc0968 100644 --- a/__fixtures__/v-next/outputv4/osmosis/sumtree/v1beta1/tree.ts +++ b/__fixtures__/v-next/outputv4/osmosis/sumtree/v1beta1/tree.ts @@ -1,10 +1,14 @@ import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { JsonSafe } from "../../../json-safe.js"; import { DeepPartial, isSet, bytesFromBase64, base64FromBytes } from "../../../helpers.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "osmosis.store.v1beta1"; export interface Node { children: Child[]; } +export interface ReactiveNode { + children: ComputedRef; +} export interface NodeProtoMsg { typeUrl: "/osmosis.store.v1beta1.Node"; value: Uint8Array; @@ -16,6 +20,10 @@ export interface Child { index: Uint8Array; accumulation: string; } +export interface ReactiveChild { + index: ComputedRef; + accumulation: ComputedRef; +} export interface ChildProtoMsg { typeUrl: "/osmosis.store.v1beta1.Child"; value: Uint8Array; @@ -27,6 +35,9 @@ export interface ChildSDKType { export interface Leaf { leaf?: Child; } +export interface ReactiveLeaf { + leaf?: ComputedRef; +} export interface LeafProtoMsg { typeUrl: "/osmosis.store.v1beta1.Leaf"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/osmosis/superfluid/genesis.ts b/__fixtures__/v-next/outputv4/osmosis/superfluid/genesis.ts index 9c10a4e207..62a3c116b7 100644 --- a/__fixtures__/v-next/outputv4/osmosis/superfluid/genesis.ts +++ b/__fixtures__/v-next/outputv4/osmosis/superfluid/genesis.ts @@ -3,6 +3,7 @@ import { SuperfluidAsset, SuperfluidAssetSDKType, OsmoEquivalentMultiplierRecord import { BinaryReader, BinaryWriter } from "../../binary.js"; import { isSet, DeepPartial } from "../../helpers.js"; import { JsonSafe } from "../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "osmosis.superfluid"; /** GenesisState defines the module's genesis state. */ export interface GenesisState { @@ -24,6 +25,13 @@ export interface GenesisState { intermediaryAccounts: SuperfluidIntermediaryAccount[]; intemediaryAccountConnections: LockIdIntermediaryAccountConnection[]; } +export interface ReactiveGenesisState { + params: ComputedRef; + superfluidAssets: ComputedRef; + osmoEquivalentMultipliers: ComputedRef; + intermediaryAccounts: ComputedRef; + intemediaryAccountConnections: ComputedRef; +} export interface GenesisStateProtoMsg { typeUrl: "/osmosis.superfluid.GenesisState"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/osmosis/superfluid/params.ts b/__fixtures__/v-next/outputv4/osmosis/superfluid/params.ts index 0eb081d326..e2bb614b46 100644 --- a/__fixtures__/v-next/outputv4/osmosis/superfluid/params.ts +++ b/__fixtures__/v-next/outputv4/osmosis/superfluid/params.ts @@ -2,6 +2,7 @@ import { BinaryReader, BinaryWriter } from "../../binary.js"; import { Decimal } from "@cosmjs/math"; import { isSet, DeepPartial } from "../../helpers.js"; import { JsonSafe } from "../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "osmosis.superfluid"; /** Params holds parameters for the superfluid module */ export interface Params { @@ -13,6 +14,9 @@ export interface Params { */ minimumRiskFactor: string; } +export interface ReactiveParams { + minimumRiskFactor: ComputedRef; +} export interface ParamsProtoMsg { typeUrl: "/osmosis.superfluid.Params"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/osmosis/superfluid/query.rpc.Query.ts b/__fixtures__/v-next/outputv4/osmosis/superfluid/query.rpc.Query.ts index ff4204896d..8058c6a977 100644 --- a/__fixtures__/v-next/outputv4/osmosis/superfluid/query.rpc.Query.ts +++ b/__fixtures__/v-next/outputv4/osmosis/superfluid/query.rpc.Query.ts @@ -7,7 +7,7 @@ import { DelegationResponse, DelegationResponseSDKType } from "../../cosmos/stak import { Rpc } from "../../helpers.js"; import { BinaryReader } from "../../binary.js"; import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryParamsRequest, QueryParamsRequestSDKType, QueryParamsResponse, QueryParamsResponseSDKType, AssetTypeRequest, AssetTypeRequestSDKType, AssetTypeResponse, AssetTypeResponseSDKType, AllAssetsRequest, AllAssetsRequestSDKType, AllAssetsResponse, AllAssetsResponseSDKType, AssetMultiplierRequest, AssetMultiplierRequestSDKType, AssetMultiplierResponse, AssetMultiplierResponseSDKType, AllIntermediaryAccountsRequest, AllIntermediaryAccountsRequestSDKType, AllIntermediaryAccountsResponse, AllIntermediaryAccountsResponseSDKType, ConnectedIntermediaryAccountRequest, ConnectedIntermediaryAccountRequestSDKType, ConnectedIntermediaryAccountResponse, ConnectedIntermediaryAccountResponseSDKType, QueryTotalDelegationByValidatorForDenomRequest, QueryTotalDelegationByValidatorForDenomRequestSDKType, QueryTotalDelegationByValidatorForDenomResponse, QueryTotalDelegationByValidatorForDenomResponseSDKType, TotalSuperfluidDelegationsRequest, TotalSuperfluidDelegationsRequestSDKType, TotalSuperfluidDelegationsResponse, TotalSuperfluidDelegationsResponseSDKType, SuperfluidDelegationAmountRequest, SuperfluidDelegationAmountRequestSDKType, SuperfluidDelegationAmountResponse, SuperfluidDelegationAmountResponseSDKType, SuperfluidDelegationsByDelegatorRequest, SuperfluidDelegationsByDelegatorRequestSDKType, SuperfluidDelegationsByDelegatorResponse, SuperfluidDelegationsByDelegatorResponseSDKType, SuperfluidUndelegationsByDelegatorRequest, SuperfluidUndelegationsByDelegatorRequestSDKType, SuperfluidUndelegationsByDelegatorResponse, SuperfluidUndelegationsByDelegatorResponseSDKType, SuperfluidDelegationsByValidatorDenomRequest, SuperfluidDelegationsByValidatorDenomRequestSDKType, SuperfluidDelegationsByValidatorDenomResponse, SuperfluidDelegationsByValidatorDenomResponseSDKType, EstimateSuperfluidDelegatedAmountByValidatorDenomRequest, EstimateSuperfluidDelegatedAmountByValidatorDenomRequestSDKType, EstimateSuperfluidDelegatedAmountByValidatorDenomResponse, EstimateSuperfluidDelegatedAmountByValidatorDenomResponseSDKType, QueryTotalDelegationByDelegatorRequest, QueryTotalDelegationByDelegatorRequestSDKType, QueryTotalDelegationByDelegatorResponse, QueryTotalDelegationByDelegatorResponseSDKType, QueryUnpoolWhitelistRequest, QueryUnpoolWhitelistRequestSDKType, QueryUnpoolWhitelistResponse, QueryUnpoolWhitelistResponseSDKType } from "./query.js"; +import { QueryParamsRequest, QueryParamsRequestSDKType, QueryParamsResponse, QueryParamsResponseSDKType, AssetTypeRequest, AssetTypeRequestSDKType, AssetTypeResponse, AssetTypeResponseSDKType, AllAssetsRequest, AllAssetsRequestSDKType, AllAssetsResponse, AllAssetsResponseSDKType, AssetMultiplierRequest, AssetMultiplierRequestSDKType, AssetMultiplierResponse, AssetMultiplierResponseSDKType, AllIntermediaryAccountsRequest, AllIntermediaryAccountsRequestSDKType, AllIntermediaryAccountsResponse, AllIntermediaryAccountsResponseSDKType, ConnectedIntermediaryAccountRequest, ConnectedIntermediaryAccountRequestSDKType, ConnectedIntermediaryAccountResponse, ConnectedIntermediaryAccountResponseSDKType, QueryTotalDelegationByValidatorForDenomRequest, QueryTotalDelegationByValidatorForDenomRequestSDKType, QueryTotalDelegationByValidatorForDenomResponse, QueryTotalDelegationByValidatorForDenomResponseSDKType, TotalSuperfluidDelegationsRequest, TotalSuperfluidDelegationsRequestSDKType, TotalSuperfluidDelegationsResponse, TotalSuperfluidDelegationsResponseSDKType, SuperfluidDelegationAmountRequest, SuperfluidDelegationAmountRequestSDKType, SuperfluidDelegationAmountResponse, SuperfluidDelegationAmountResponseSDKType, SuperfluidDelegationsByDelegatorRequest, SuperfluidDelegationsByDelegatorRequestSDKType, SuperfluidDelegationsByDelegatorResponse, SuperfluidDelegationsByDelegatorResponseSDKType, SuperfluidUndelegationsByDelegatorRequest, SuperfluidUndelegationsByDelegatorRequestSDKType, SuperfluidUndelegationsByDelegatorResponse, SuperfluidUndelegationsByDelegatorResponseSDKType, SuperfluidDelegationsByValidatorDenomRequest, SuperfluidDelegationsByValidatorDenomRequestSDKType, SuperfluidDelegationsByValidatorDenomResponse, SuperfluidDelegationsByValidatorDenomResponseSDKType, EstimateSuperfluidDelegatedAmountByValidatorDenomRequest, EstimateSuperfluidDelegatedAmountByValidatorDenomRequestSDKType, EstimateSuperfluidDelegatedAmountByValidatorDenomResponse, EstimateSuperfluidDelegatedAmountByValidatorDenomResponseSDKType, QueryTotalDelegationByDelegatorRequest, QueryTotalDelegationByDelegatorRequestSDKType, QueryTotalDelegationByDelegatorResponse, QueryTotalDelegationByDelegatorResponseSDKType, QueryUnpoolWhitelistRequest, QueryUnpoolWhitelistRequestSDKType, QueryUnpoolWhitelistResponse, QueryUnpoolWhitelistResponseSDKType, ReactiveQueryParamsRequest, ReactiveQueryTotalDelegationByValidatorForDenomRequest, ReactiveQueryTotalDelegationByDelegatorRequest, ReactiveQueryUnpoolWhitelistRequest } from "./query.js"; /** Query defines the gRPC querier service. */ export interface Query { /** Params returns the total set of superfluid parameters. */ diff --git a/__fixtures__/v-next/outputv4/osmosis/superfluid/query.ts b/__fixtures__/v-next/outputv4/osmosis/superfluid/query.ts index e22326e1df..546095a473 100644 --- a/__fixtures__/v-next/outputv4/osmosis/superfluid/query.ts +++ b/__fixtures__/v-next/outputv4/osmosis/superfluid/query.ts @@ -7,8 +7,10 @@ import { DelegationResponse, DelegationResponseSDKType } from "../../cosmos/stak import { BinaryReader, BinaryWriter } from "../../binary.js"; import { JsonSafe } from "../../json-safe.js"; import { DeepPartial, isSet } from "../../helpers.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "osmosis.superfluid"; export interface QueryParamsRequest {} +export interface ReactiveQueryParamsRequest {} export interface QueryParamsRequestProtoMsg { typeUrl: "/osmosis.superfluid.QueryParamsRequest"; value: Uint8Array; @@ -18,6 +20,9 @@ export interface QueryParamsResponse { /** params defines the parameters of the module. */ params: Params; } +export interface ReactiveQueryParamsResponse { + params: ComputedRef; +} export interface QueryParamsResponseProtoMsg { typeUrl: "/osmosis.superfluid.QueryParamsResponse"; value: Uint8Array; @@ -28,6 +33,9 @@ export interface QueryParamsResponseSDKType { export interface AssetTypeRequest { denom: string; } +export interface ReactiveAssetTypeRequest { + denom: ComputedRef; +} export interface AssetTypeRequestProtoMsg { typeUrl: "/osmosis.superfluid.AssetTypeRequest"; value: Uint8Array; @@ -38,6 +46,9 @@ export interface AssetTypeRequestSDKType { export interface AssetTypeResponse { assetType: SuperfluidAssetType; } +export interface ReactiveAssetTypeResponse { + assetType: ComputedRef; +} export interface AssetTypeResponseProtoMsg { typeUrl: "/osmosis.superfluid.AssetTypeResponse"; value: Uint8Array; @@ -46,6 +57,7 @@ export interface AssetTypeResponseSDKType { asset_type: SuperfluidAssetType; } export interface AllAssetsRequest {} +export interface ReactiveAllAssetsRequest {} export interface AllAssetsRequestProtoMsg { typeUrl: "/osmosis.superfluid.AllAssetsRequest"; value: Uint8Array; @@ -54,6 +66,9 @@ export interface AllAssetsRequestSDKType {} export interface AllAssetsResponse { assets: SuperfluidAsset[]; } +export interface ReactiveAllAssetsResponse { + assets: ComputedRef; +} export interface AllAssetsResponseProtoMsg { typeUrl: "/osmosis.superfluid.AllAssetsResponse"; value: Uint8Array; @@ -64,6 +79,9 @@ export interface AllAssetsResponseSDKType { export interface AssetMultiplierRequest { denom: string; } +export interface ReactiveAssetMultiplierRequest { + denom: ComputedRef; +} export interface AssetMultiplierRequestProtoMsg { typeUrl: "/osmosis.superfluid.AssetMultiplierRequest"; value: Uint8Array; @@ -74,6 +92,9 @@ export interface AssetMultiplierRequestSDKType { export interface AssetMultiplierResponse { osmoEquivalentMultiplier?: OsmoEquivalentMultiplierRecord; } +export interface ReactiveAssetMultiplierResponse { + osmoEquivalentMultiplier?: ComputedRef; +} export interface AssetMultiplierResponseProtoMsg { typeUrl: "/osmosis.superfluid.AssetMultiplierResponse"; value: Uint8Array; @@ -87,6 +108,12 @@ export interface SuperfluidIntermediaryAccountInfo { gaugeId: bigint; address: string; } +export interface ReactiveSuperfluidIntermediaryAccountInfo { + denom: ComputedRef; + valAddr: ComputedRef; + gaugeId: ComputedRef; + address: ComputedRef; +} export interface SuperfluidIntermediaryAccountInfoProtoMsg { typeUrl: "/osmosis.superfluid.SuperfluidIntermediaryAccountInfo"; value: Uint8Array; @@ -100,6 +127,9 @@ export interface SuperfluidIntermediaryAccountInfoSDKType { export interface AllIntermediaryAccountsRequest { pagination?: PageRequest; } +export interface ReactiveAllIntermediaryAccountsRequest { + pagination?: ComputedRef; +} export interface AllIntermediaryAccountsRequestProtoMsg { typeUrl: "/osmosis.superfluid.AllIntermediaryAccountsRequest"; value: Uint8Array; @@ -111,6 +141,10 @@ export interface AllIntermediaryAccountsResponse { accounts: SuperfluidIntermediaryAccountInfo[]; pagination?: PageResponse; } +export interface ReactiveAllIntermediaryAccountsResponse { + accounts: ComputedRef; + pagination?: ComputedRef; +} export interface AllIntermediaryAccountsResponseProtoMsg { typeUrl: "/osmosis.superfluid.AllIntermediaryAccountsResponse"; value: Uint8Array; @@ -122,6 +156,9 @@ export interface AllIntermediaryAccountsResponseSDKType { export interface ConnectedIntermediaryAccountRequest { lockId: bigint; } +export interface ReactiveConnectedIntermediaryAccountRequest { + lockId: ComputedRef; +} export interface ConnectedIntermediaryAccountRequestProtoMsg { typeUrl: "/osmosis.superfluid.ConnectedIntermediaryAccountRequest"; value: Uint8Array; @@ -132,6 +169,9 @@ export interface ConnectedIntermediaryAccountRequestSDKType { export interface ConnectedIntermediaryAccountResponse { account?: SuperfluidIntermediaryAccountInfo; } +export interface ReactiveConnectedIntermediaryAccountResponse { + account?: ComputedRef; +} export interface ConnectedIntermediaryAccountResponseProtoMsg { typeUrl: "/osmosis.superfluid.ConnectedIntermediaryAccountResponse"; value: Uint8Array; @@ -142,6 +182,9 @@ export interface ConnectedIntermediaryAccountResponseSDKType { export interface QueryTotalDelegationByValidatorForDenomRequest { denom: string; } +export interface ReactiveQueryTotalDelegationByValidatorForDenomRequest { + denom: ComputedRef; +} export interface QueryTotalDelegationByValidatorForDenomRequestProtoMsg { typeUrl: "/osmosis.superfluid.QueryTotalDelegationByValidatorForDenomRequest"; value: Uint8Array; @@ -152,6 +195,9 @@ export interface QueryTotalDelegationByValidatorForDenomRequestSDKType { export interface QueryTotalDelegationByValidatorForDenomResponse { assets: Delegations[]; } +export interface ReactiveQueryTotalDelegationByValidatorForDenomResponse { + assets: ComputedRef; +} export interface QueryTotalDelegationByValidatorForDenomResponseProtoMsg { typeUrl: "/osmosis.superfluid.QueryTotalDelegationByValidatorForDenomResponse"; value: Uint8Array; @@ -164,6 +210,11 @@ export interface Delegations { amountSfsd: string; osmoEquivalent: string; } +export interface ReactiveDelegations { + valAddr: ComputedRef; + amountSfsd: ComputedRef; + osmoEquivalent: ComputedRef; +} export interface DelegationsProtoMsg { typeUrl: "/osmosis.superfluid.Delegations"; value: Uint8Array; @@ -174,6 +225,7 @@ export interface DelegationsSDKType { osmo_equivalent: string; } export interface TotalSuperfluidDelegationsRequest {} +export interface ReactiveTotalSuperfluidDelegationsRequest {} export interface TotalSuperfluidDelegationsRequestProtoMsg { typeUrl: "/osmosis.superfluid.TotalSuperfluidDelegationsRequest"; value: Uint8Array; @@ -182,6 +234,9 @@ export interface TotalSuperfluidDelegationsRequestSDKType {} export interface TotalSuperfluidDelegationsResponse { totalDelegations: string; } +export interface ReactiveTotalSuperfluidDelegationsResponse { + totalDelegations: ComputedRef; +} export interface TotalSuperfluidDelegationsResponseProtoMsg { typeUrl: "/osmosis.superfluid.TotalSuperfluidDelegationsResponse"; value: Uint8Array; @@ -194,6 +249,11 @@ export interface SuperfluidDelegationAmountRequest { validatorAddress: string; denom: string; } +export interface ReactiveSuperfluidDelegationAmountRequest { + delegatorAddress: ComputedRef; + validatorAddress: ComputedRef; + denom: ComputedRef; +} export interface SuperfluidDelegationAmountRequestProtoMsg { typeUrl: "/osmosis.superfluid.SuperfluidDelegationAmountRequest"; value: Uint8Array; @@ -206,6 +266,9 @@ export interface SuperfluidDelegationAmountRequestSDKType { export interface SuperfluidDelegationAmountResponse { amount: Coin[]; } +export interface ReactiveSuperfluidDelegationAmountResponse { + amount: ComputedRef; +} export interface SuperfluidDelegationAmountResponseProtoMsg { typeUrl: "/osmosis.superfluid.SuperfluidDelegationAmountResponse"; value: Uint8Array; @@ -216,6 +279,9 @@ export interface SuperfluidDelegationAmountResponseSDKType { export interface SuperfluidDelegationsByDelegatorRequest { delegatorAddress: string; } +export interface ReactiveSuperfluidDelegationsByDelegatorRequest { + delegatorAddress: ComputedRef; +} export interface SuperfluidDelegationsByDelegatorRequestProtoMsg { typeUrl: "/osmosis.superfluid.SuperfluidDelegationsByDelegatorRequest"; value: Uint8Array; @@ -228,6 +294,11 @@ export interface SuperfluidDelegationsByDelegatorResponse { totalDelegatedCoins: Coin[]; totalEquivalentStakedAmount: Coin; } +export interface ReactiveSuperfluidDelegationsByDelegatorResponse { + superfluidDelegationRecords: ComputedRef; + totalDelegatedCoins: ComputedRef; + totalEquivalentStakedAmount: ComputedRef; +} export interface SuperfluidDelegationsByDelegatorResponseProtoMsg { typeUrl: "/osmosis.superfluid.SuperfluidDelegationsByDelegatorResponse"; value: Uint8Array; @@ -241,6 +312,10 @@ export interface SuperfluidUndelegationsByDelegatorRequest { delegatorAddress: string; denom: string; } +export interface ReactiveSuperfluidUndelegationsByDelegatorRequest { + delegatorAddress: ComputedRef; + denom: ComputedRef; +} export interface SuperfluidUndelegationsByDelegatorRequestProtoMsg { typeUrl: "/osmosis.superfluid.SuperfluidUndelegationsByDelegatorRequest"; value: Uint8Array; @@ -254,6 +329,11 @@ export interface SuperfluidUndelegationsByDelegatorResponse { totalUndelegatedCoins: Coin[]; syntheticLocks: SyntheticLock[]; } +export interface ReactiveSuperfluidUndelegationsByDelegatorResponse { + superfluidDelegationRecords: ComputedRef; + totalUndelegatedCoins: ComputedRef; + syntheticLocks: ComputedRef; +} export interface SuperfluidUndelegationsByDelegatorResponseProtoMsg { typeUrl: "/osmosis.superfluid.SuperfluidUndelegationsByDelegatorResponse"; value: Uint8Array; @@ -267,6 +347,10 @@ export interface SuperfluidDelegationsByValidatorDenomRequest { validatorAddress: string; denom: string; } +export interface ReactiveSuperfluidDelegationsByValidatorDenomRequest { + validatorAddress: ComputedRef; + denom: ComputedRef; +} export interface SuperfluidDelegationsByValidatorDenomRequestProtoMsg { typeUrl: "/osmosis.superfluid.SuperfluidDelegationsByValidatorDenomRequest"; value: Uint8Array; @@ -278,6 +362,9 @@ export interface SuperfluidDelegationsByValidatorDenomRequestSDKType { export interface SuperfluidDelegationsByValidatorDenomResponse { superfluidDelegationRecords: SuperfluidDelegationRecord[]; } +export interface ReactiveSuperfluidDelegationsByValidatorDenomResponse { + superfluidDelegationRecords: ComputedRef; +} export interface SuperfluidDelegationsByValidatorDenomResponseProtoMsg { typeUrl: "/osmosis.superfluid.SuperfluidDelegationsByValidatorDenomResponse"; value: Uint8Array; @@ -289,6 +376,10 @@ export interface EstimateSuperfluidDelegatedAmountByValidatorDenomRequest { validatorAddress: string; denom: string; } +export interface ReactiveEstimateSuperfluidDelegatedAmountByValidatorDenomRequest { + validatorAddress: ComputedRef; + denom: ComputedRef; +} export interface EstimateSuperfluidDelegatedAmountByValidatorDenomRequestProtoMsg { typeUrl: "/osmosis.superfluid.EstimateSuperfluidDelegatedAmountByValidatorDenomRequest"; value: Uint8Array; @@ -300,6 +391,9 @@ export interface EstimateSuperfluidDelegatedAmountByValidatorDenomRequestSDKType export interface EstimateSuperfluidDelegatedAmountByValidatorDenomResponse { totalDelegatedCoins: Coin[]; } +export interface ReactiveEstimateSuperfluidDelegatedAmountByValidatorDenomResponse { + totalDelegatedCoins: ComputedRef; +} export interface EstimateSuperfluidDelegatedAmountByValidatorDenomResponseProtoMsg { typeUrl: "/osmosis.superfluid.EstimateSuperfluidDelegatedAmountByValidatorDenomResponse"; value: Uint8Array; @@ -310,6 +404,9 @@ export interface EstimateSuperfluidDelegatedAmountByValidatorDenomResponseSDKTyp export interface QueryTotalDelegationByDelegatorRequest { delegatorAddress: string; } +export interface ReactiveQueryTotalDelegationByDelegatorRequest { + delegatorAddress: ComputedRef; +} export interface QueryTotalDelegationByDelegatorRequestProtoMsg { typeUrl: "/osmosis.superfluid.QueryTotalDelegationByDelegatorRequest"; value: Uint8Array; @@ -323,6 +420,12 @@ export interface QueryTotalDelegationByDelegatorResponse { totalDelegatedCoins: Coin[]; totalEquivalentStakedAmount: Coin; } +export interface ReactiveQueryTotalDelegationByDelegatorResponse { + superfluidDelegationRecords: ComputedRef; + delegationResponse: ComputedRef; + totalDelegatedCoins: ComputedRef; + totalEquivalentStakedAmount: ComputedRef; +} export interface QueryTotalDelegationByDelegatorResponseProtoMsg { typeUrl: "/osmosis.superfluid.QueryTotalDelegationByDelegatorResponse"; value: Uint8Array; @@ -334,6 +437,7 @@ export interface QueryTotalDelegationByDelegatorResponseSDKType { total_equivalent_staked_amount: CoinSDKType; } export interface QueryUnpoolWhitelistRequest {} +export interface ReactiveQueryUnpoolWhitelistRequest {} export interface QueryUnpoolWhitelistRequestProtoMsg { typeUrl: "/osmosis.superfluid.QueryUnpoolWhitelistRequest"; value: Uint8Array; @@ -342,6 +446,9 @@ export interface QueryUnpoolWhitelistRequestSDKType {} export interface QueryUnpoolWhitelistResponse { poolIds: bigint[]; } +export interface ReactiveQueryUnpoolWhitelistResponse { + poolIds: ComputedRef; +} export interface QueryUnpoolWhitelistResponseProtoMsg { typeUrl: "/osmosis.superfluid.QueryUnpoolWhitelistResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/osmosis/superfluid/superfluid.ts b/__fixtures__/v-next/outputv4/osmosis/superfluid/superfluid.ts index 7b49e53429..77cf497c24 100644 --- a/__fixtures__/v-next/outputv4/osmosis/superfluid/superfluid.ts +++ b/__fixtures__/v-next/outputv4/osmosis/superfluid/superfluid.ts @@ -3,6 +3,7 @@ import { BinaryReader, BinaryWriter } from "../../binary.js"; import { isSet, DeepPartial } from "../../helpers.js"; import { JsonSafe } from "../../json-safe.js"; import { Decimal } from "@cosmjs/math"; +import { ComputedRef } from "vue"; export const protobufPackage = "osmosis.superfluid"; /** * SuperfluidAssetType indicates whether the superfluid asset is @@ -48,6 +49,10 @@ export interface SuperfluidAsset { */ assetType: SuperfluidAssetType; } +export interface ReactiveSuperfluidAsset { + denom: ComputedRef; + assetType: ComputedRef; +} export interface SuperfluidAssetProtoMsg { typeUrl: "/osmosis.superfluid.SuperfluidAsset"; value: Uint8Array; @@ -69,6 +74,11 @@ export interface SuperfluidIntermediaryAccount { /** perpetual gauge for rewards distribution */ gaugeId: bigint; } +export interface ReactiveSuperfluidIntermediaryAccount { + denom: ComputedRef; + valAddr: ComputedRef; + gaugeId: ComputedRef; +} export interface SuperfluidIntermediaryAccountProtoMsg { typeUrl: "/osmosis.superfluid.SuperfluidIntermediaryAccount"; value: Uint8Array; @@ -98,6 +108,11 @@ export interface OsmoEquivalentMultiplierRecord { denom: string; multiplier: string; } +export interface ReactiveOsmoEquivalentMultiplierRecord { + epochNumber: ComputedRef; + denom: ComputedRef; + multiplier: ComputedRef; +} export interface OsmoEquivalentMultiplierRecordProtoMsg { typeUrl: "/osmosis.superfluid.OsmoEquivalentMultiplierRecord"; value: Uint8Array; @@ -126,6 +141,12 @@ export interface SuperfluidDelegationRecord { delegationAmount: Coin; equivalentStakedAmount?: Coin; } +export interface ReactiveSuperfluidDelegationRecord { + delegatorAddress: ComputedRef; + validatorAddress: ComputedRef; + delegationAmount: ComputedRef; + equivalentStakedAmount?: ComputedRef; +} export interface SuperfluidDelegationRecordProtoMsg { typeUrl: "/osmosis.superfluid.SuperfluidDelegationRecord"; value: Uint8Array; @@ -149,6 +170,10 @@ export interface LockIdIntermediaryAccountConnection { lockId: bigint; intermediaryAccount: string; } +export interface ReactiveLockIdIntermediaryAccountConnection { + lockId: ComputedRef; + intermediaryAccount: ComputedRef; +} export interface LockIdIntermediaryAccountConnectionProtoMsg { typeUrl: "/osmosis.superfluid.LockIdIntermediaryAccountConnection"; value: Uint8Array; @@ -165,6 +190,9 @@ export interface LockIdIntermediaryAccountConnectionSDKType { export interface UnpoolWhitelistedPools { ids: bigint[]; } +export interface ReactiveUnpoolWhitelistedPools { + ids: ComputedRef; +} export interface UnpoolWhitelistedPoolsProtoMsg { typeUrl: "/osmosis.superfluid.UnpoolWhitelistedPools"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/osmosis/superfluid/tx.ts b/__fixtures__/v-next/outputv4/osmosis/superfluid/tx.ts index 3dead2039c..9b8a72962c 100644 --- a/__fixtures__/v-next/outputv4/osmosis/superfluid/tx.ts +++ b/__fixtures__/v-next/outputv4/osmosis/superfluid/tx.ts @@ -2,12 +2,18 @@ import { Coin, CoinSDKType } from "../../cosmos/base/v1beta1/coin.js"; import { BinaryReader, BinaryWriter } from "../../binary.js"; import { isSet, DeepPartial } from "../../helpers.js"; import { JsonSafe } from "../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "osmosis.superfluid"; export interface MsgSuperfluidDelegate { sender: string; lockId: bigint; valAddr: string; } +export interface ReactiveMsgSuperfluidDelegate { + sender: ComputedRef; + lockId: ComputedRef; + valAddr: ComputedRef; +} export interface MsgSuperfluidDelegateProtoMsg { typeUrl: "/osmosis.superfluid.MsgSuperfluidDelegate"; value: Uint8Array; @@ -18,6 +24,7 @@ export interface MsgSuperfluidDelegateSDKType { val_addr: string; } export interface MsgSuperfluidDelegateResponse {} +export interface ReactiveMsgSuperfluidDelegateResponse {} export interface MsgSuperfluidDelegateResponseProtoMsg { typeUrl: "/osmosis.superfluid.MsgSuperfluidDelegateResponse"; value: Uint8Array; @@ -27,6 +34,10 @@ export interface MsgSuperfluidUndelegate { sender: string; lockId: bigint; } +export interface ReactiveMsgSuperfluidUndelegate { + sender: ComputedRef; + lockId: ComputedRef; +} export interface MsgSuperfluidUndelegateProtoMsg { typeUrl: "/osmosis.superfluid.MsgSuperfluidUndelegate"; value: Uint8Array; @@ -36,6 +47,7 @@ export interface MsgSuperfluidUndelegateSDKType { lock_id: bigint; } export interface MsgSuperfluidUndelegateResponse {} +export interface ReactiveMsgSuperfluidUndelegateResponse {} export interface MsgSuperfluidUndelegateResponseProtoMsg { typeUrl: "/osmosis.superfluid.MsgSuperfluidUndelegateResponse"; value: Uint8Array; @@ -45,6 +57,10 @@ export interface MsgSuperfluidUnbondLock { sender: string; lockId: bigint; } +export interface ReactiveMsgSuperfluidUnbondLock { + sender: ComputedRef; + lockId: ComputedRef; +} export interface MsgSuperfluidUnbondLockProtoMsg { typeUrl: "/osmosis.superfluid.MsgSuperfluidUnbondLock"; value: Uint8Array; @@ -54,6 +70,7 @@ export interface MsgSuperfluidUnbondLockSDKType { lock_id: bigint; } export interface MsgSuperfluidUnbondLockResponse {} +export interface ReactiveMsgSuperfluidUnbondLockResponse {} export interface MsgSuperfluidUnbondLockResponseProtoMsg { typeUrl: "/osmosis.superfluid.MsgSuperfluidUnbondLockResponse"; value: Uint8Array; @@ -69,6 +86,11 @@ export interface MsgLockAndSuperfluidDelegate { coins: Coin[]; valAddr: string; } +export interface ReactiveMsgLockAndSuperfluidDelegate { + sender: ComputedRef; + coins: ComputedRef; + valAddr: ComputedRef; +} export interface MsgLockAndSuperfluidDelegateProtoMsg { typeUrl: "/osmosis.superfluid.MsgLockAndSuperfluidDelegate"; value: Uint8Array; @@ -86,6 +108,9 @@ export interface MsgLockAndSuperfluidDelegateSDKType { export interface MsgLockAndSuperfluidDelegateResponse { iD: bigint; } +export interface ReactiveMsgLockAndSuperfluidDelegateResponse { + iD: ComputedRef; +} export interface MsgLockAndSuperfluidDelegateResponseProtoMsg { typeUrl: "/osmosis.superfluid.MsgLockAndSuperfluidDelegateResponse"; value: Uint8Array; @@ -107,6 +132,10 @@ export interface MsgUnPoolWhitelistedPool { sender: string; poolId: bigint; } +export interface ReactiveMsgUnPoolWhitelistedPool { + sender: ComputedRef; + poolId: ComputedRef; +} export interface MsgUnPoolWhitelistedPoolProtoMsg { typeUrl: "/osmosis.superfluid.MsgUnPoolWhitelistedPool"; value: Uint8Array; @@ -128,6 +157,9 @@ export interface MsgUnPoolWhitelistedPoolSDKType { export interface MsgUnPoolWhitelistedPoolResponse { exitedLockIds: bigint[]; } +export interface ReactiveMsgUnPoolWhitelistedPoolResponse { + exitedLockIds: ComputedRef; +} export interface MsgUnPoolWhitelistedPoolResponseProtoMsg { typeUrl: "/osmosis.superfluid.MsgUnPoolWhitelistedPoolResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/osmosis/superfluid/v1beta1/gov.ts b/__fixtures__/v-next/outputv4/osmosis/superfluid/v1beta1/gov.ts index ff931cdc2a..5d12591e87 100644 --- a/__fixtures__/v-next/outputv4/osmosis/superfluid/v1beta1/gov.ts +++ b/__fixtures__/v-next/outputv4/osmosis/superfluid/v1beta1/gov.ts @@ -2,6 +2,7 @@ import { SuperfluidAsset, SuperfluidAssetSDKType } from "../superfluid.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "osmosis.superfluid.v1beta1"; /** * SetSuperfluidAssetsProposal is a gov Content type to update the superfluid @@ -12,6 +13,11 @@ export interface SetSuperfluidAssetsProposal { description: string; assets: SuperfluidAsset[]; } +export interface ReactiveSetSuperfluidAssetsProposal { + title: ComputedRef; + description: ComputedRef; + assets: ComputedRef; +} export interface SetSuperfluidAssetsProposalProtoMsg { typeUrl: "/osmosis.superfluid.v1beta1.SetSuperfluidAssetsProposal"; value: Uint8Array; @@ -34,6 +40,11 @@ export interface RemoveSuperfluidAssetsProposal { description: string; superfluidAssetDenoms: string[]; } +export interface ReactiveRemoveSuperfluidAssetsProposal { + title: ComputedRef; + description: ComputedRef; + superfluidAssetDenoms: ComputedRef; +} export interface RemoveSuperfluidAssetsProposalProtoMsg { typeUrl: "/osmosis.superfluid.v1beta1.RemoveSuperfluidAssetsProposal"; value: Uint8Array; @@ -57,6 +68,12 @@ export interface UpdateUnpoolWhiteListProposal { ids: bigint[]; isOverwrite: boolean; } +export interface ReactiveUpdateUnpoolWhiteListProposal { + title: ComputedRef; + description: ComputedRef; + ids: ComputedRef; + isOverwrite: ComputedRef; +} export interface UpdateUnpoolWhiteListProposalProtoMsg { typeUrl: "/osmosis.superfluid.v1beta1.UpdateUnpoolWhiteListProposal"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/osmosis/tokenfactory/v1beta1/authorityMetadata.ts b/__fixtures__/v-next/outputv4/osmosis/tokenfactory/v1beta1/authorityMetadata.ts index c5c78020d5..ad3fae59db 100644 --- a/__fixtures__/v-next/outputv4/osmosis/tokenfactory/v1beta1/authorityMetadata.ts +++ b/__fixtures__/v-next/outputv4/osmosis/tokenfactory/v1beta1/authorityMetadata.ts @@ -1,6 +1,7 @@ import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "osmosis.tokenfactory.v1beta1"; /** * DenomAuthorityMetadata specifies metadata for addresses that have specific @@ -11,6 +12,9 @@ export interface DenomAuthorityMetadata { /** Can be empty for no admin, or a valid osmosis address */ admin: string; } +export interface ReactiveDenomAuthorityMetadata { + admin: ComputedRef; +} export interface DenomAuthorityMetadataProtoMsg { typeUrl: "/osmosis.tokenfactory.v1beta1.DenomAuthorityMetadata"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/osmosis/tokenfactory/v1beta1/genesis.ts b/__fixtures__/v-next/outputv4/osmosis/tokenfactory/v1beta1/genesis.ts index 0136c35140..0079a42289 100644 --- a/__fixtures__/v-next/outputv4/osmosis/tokenfactory/v1beta1/genesis.ts +++ b/__fixtures__/v-next/outputv4/osmosis/tokenfactory/v1beta1/genesis.ts @@ -3,6 +3,7 @@ import { DenomAuthorityMetadata, DenomAuthorityMetadataSDKType } from "./authori import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "osmosis.tokenfactory.v1beta1"; /** GenesisState defines the tokenfactory module's genesis state. */ export interface GenesisState { @@ -10,6 +11,10 @@ export interface GenesisState { params: Params; factoryDenoms: GenesisDenom[]; } +export interface ReactiveGenesisState { + params: ComputedRef; + factoryDenoms: ComputedRef; +} export interface GenesisStateProtoMsg { typeUrl: "/osmosis.tokenfactory.v1beta1.GenesisState"; value: Uint8Array; @@ -28,6 +33,10 @@ export interface GenesisDenom { denom: string; authorityMetadata: DenomAuthorityMetadata; } +export interface ReactiveGenesisDenom { + denom: ComputedRef; + authorityMetadata: ComputedRef; +} export interface GenesisDenomProtoMsg { typeUrl: "/osmosis.tokenfactory.v1beta1.GenesisDenom"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/osmosis/tokenfactory/v1beta1/params.ts b/__fixtures__/v-next/outputv4/osmosis/tokenfactory/v1beta1/params.ts index 4716c1b841..4fb5d8501a 100644 --- a/__fixtures__/v-next/outputv4/osmosis/tokenfactory/v1beta1/params.ts +++ b/__fixtures__/v-next/outputv4/osmosis/tokenfactory/v1beta1/params.ts @@ -2,11 +2,15 @@ import { Coin, CoinSDKType } from "../../../cosmos/base/v1beta1/coin.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { JsonSafe } from "../../../json-safe.js"; import { DeepPartial } from "../../../helpers.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "osmosis.tokenfactory.v1beta1"; /** Params defines the parameters for the tokenfactory module. */ export interface Params { denomCreationFee: Coin[]; } +export interface ReactiveParams { + denomCreationFee: ComputedRef; +} export interface ParamsProtoMsg { typeUrl: "/osmosis.tokenfactory.v1beta1.Params"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/osmosis/tokenfactory/v1beta1/query.rpc.Query.ts b/__fixtures__/v-next/outputv4/osmosis/tokenfactory/v1beta1/query.rpc.Query.ts index c55d99b45b..6b9d56bd2f 100644 --- a/__fixtures__/v-next/outputv4/osmosis/tokenfactory/v1beta1/query.rpc.Query.ts +++ b/__fixtures__/v-next/outputv4/osmosis/tokenfactory/v1beta1/query.rpc.Query.ts @@ -3,7 +3,7 @@ import { DenomAuthorityMetadata, DenomAuthorityMetadataSDKType } from "./authori import { Rpc } from "../../../helpers.js"; import { BinaryReader } from "../../../binary.js"; import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryParamsRequest, QueryParamsRequestSDKType, QueryParamsResponse, QueryParamsResponseSDKType, QueryDenomAuthorityMetadataRequest, QueryDenomAuthorityMetadataRequestSDKType, QueryDenomAuthorityMetadataResponse, QueryDenomAuthorityMetadataResponseSDKType, QueryDenomsFromCreatorRequest, QueryDenomsFromCreatorRequestSDKType, QueryDenomsFromCreatorResponse, QueryDenomsFromCreatorResponseSDKType } from "./query.js"; +import { QueryParamsRequest, QueryParamsRequestSDKType, QueryParamsResponse, QueryParamsResponseSDKType, QueryDenomAuthorityMetadataRequest, QueryDenomAuthorityMetadataRequestSDKType, QueryDenomAuthorityMetadataResponse, QueryDenomAuthorityMetadataResponseSDKType, QueryDenomsFromCreatorRequest, QueryDenomsFromCreatorRequestSDKType, QueryDenomsFromCreatorResponse, QueryDenomsFromCreatorResponseSDKType, ReactiveQueryParamsRequest, ReactiveQueryDenomAuthorityMetadataRequest, ReactiveQueryDenomsFromCreatorRequest } from "./query.js"; /** Query defines the gRPC querier service. */ export interface Query { /** diff --git a/__fixtures__/v-next/outputv4/osmosis/tokenfactory/v1beta1/query.ts b/__fixtures__/v-next/outputv4/osmosis/tokenfactory/v1beta1/query.ts index aa5612c4b6..5b1d2052d3 100644 --- a/__fixtures__/v-next/outputv4/osmosis/tokenfactory/v1beta1/query.ts +++ b/__fixtures__/v-next/outputv4/osmosis/tokenfactory/v1beta1/query.ts @@ -3,9 +3,11 @@ import { DenomAuthorityMetadata, DenomAuthorityMetadataSDKType } from "./authori import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { JsonSafe } from "../../../json-safe.js"; import { DeepPartial, isSet } from "../../../helpers.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "osmosis.tokenfactory.v1beta1"; /** QueryParamsRequest is the request type for the Query/Params RPC method. */ export interface QueryParamsRequest {} +export interface ReactiveQueryParamsRequest {} export interface QueryParamsRequestProtoMsg { typeUrl: "/osmosis.tokenfactory.v1beta1.QueryParamsRequest"; value: Uint8Array; @@ -17,6 +19,9 @@ export interface QueryParamsResponse { /** params defines the parameters of the module. */ params: Params; } +export interface ReactiveQueryParamsResponse { + params: ComputedRef; +} export interface QueryParamsResponseProtoMsg { typeUrl: "/osmosis.tokenfactory.v1beta1.QueryParamsResponse"; value: Uint8Array; @@ -32,6 +37,9 @@ export interface QueryParamsResponseSDKType { export interface QueryDenomAuthorityMetadataRequest { denom: string; } +export interface ReactiveQueryDenomAuthorityMetadataRequest { + denom: ComputedRef; +} export interface QueryDenomAuthorityMetadataRequestProtoMsg { typeUrl: "/osmosis.tokenfactory.v1beta1.QueryDenomAuthorityMetadataRequest"; value: Uint8Array; @@ -50,6 +58,9 @@ export interface QueryDenomAuthorityMetadataRequestSDKType { export interface QueryDenomAuthorityMetadataResponse { authorityMetadata: DenomAuthorityMetadata; } +export interface ReactiveQueryDenomAuthorityMetadataResponse { + authorityMetadata: ComputedRef; +} export interface QueryDenomAuthorityMetadataResponseProtoMsg { typeUrl: "/osmosis.tokenfactory.v1beta1.QueryDenomAuthorityMetadataResponse"; value: Uint8Array; @@ -68,6 +79,9 @@ export interface QueryDenomAuthorityMetadataResponseSDKType { export interface QueryDenomsFromCreatorRequest { creator: string; } +export interface ReactiveQueryDenomsFromCreatorRequest { + creator: ComputedRef; +} export interface QueryDenomsFromCreatorRequestProtoMsg { typeUrl: "/osmosis.tokenfactory.v1beta1.QueryDenomsFromCreatorRequest"; value: Uint8Array; @@ -86,6 +100,9 @@ export interface QueryDenomsFromCreatorRequestSDKType { export interface QueryDenomsFromCreatorResponse { denoms: string[]; } +export interface ReactiveQueryDenomsFromCreatorResponse { + denoms: ComputedRef; +} export interface QueryDenomsFromCreatorResponseProtoMsg { typeUrl: "/osmosis.tokenfactory.v1beta1.QueryDenomsFromCreatorResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/osmosis/tokenfactory/v1beta1/tx.ts b/__fixtures__/v-next/outputv4/osmosis/tokenfactory/v1beta1/tx.ts index 6f6001ad5a..db449e57ad 100644 --- a/__fixtures__/v-next/outputv4/osmosis/tokenfactory/v1beta1/tx.ts +++ b/__fixtures__/v-next/outputv4/osmosis/tokenfactory/v1beta1/tx.ts @@ -3,6 +3,7 @@ import { Metadata, MetadataSDKType } from "../../../cosmos/bank/v1beta1/bank.js" import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "osmosis.tokenfactory.v1beta1"; /** * MsgCreateDenom defines the message structure for the CreateDenom gRPC service @@ -20,6 +21,10 @@ export interface MsgCreateDenom { /** subdenom can be up to 44 "alphanumeric" characters long. */ subdenom: string; } +export interface ReactiveMsgCreateDenom { + sender: ComputedRef; + subdenom: ComputedRef; +} export interface MsgCreateDenomProtoMsg { typeUrl: "/osmosis.tokenfactory.v1beta1.MsgCreateDenom"; value: Uint8Array; @@ -46,6 +51,9 @@ export interface MsgCreateDenomSDKType { export interface MsgCreateDenomResponse { newTokenDenom: string; } +export interface ReactiveMsgCreateDenomResponse { + newTokenDenom: ComputedRef; +} export interface MsgCreateDenomResponseProtoMsg { typeUrl: "/osmosis.tokenfactory.v1beta1.MsgCreateDenomResponse"; value: Uint8Array; @@ -65,6 +73,10 @@ export interface MsgMint { sender: string; amount: Coin; } +export interface ReactiveMsgMint { + sender: ComputedRef; + amount: ComputedRef; +} export interface MsgMintProtoMsg { typeUrl: "/osmosis.tokenfactory.v1beta1.MsgMint"; value: Uint8Array; @@ -78,6 +90,7 @@ export interface MsgMintSDKType { amount: CoinSDKType; } export interface MsgMintResponse {} +export interface ReactiveMsgMintResponse {} export interface MsgMintResponseProtoMsg { typeUrl: "/osmosis.tokenfactory.v1beta1.MsgMintResponse"; value: Uint8Array; @@ -91,6 +104,10 @@ export interface MsgBurn { sender: string; amount: Coin; } +export interface ReactiveMsgBurn { + sender: ComputedRef; + amount: ComputedRef; +} export interface MsgBurnProtoMsg { typeUrl: "/osmosis.tokenfactory.v1beta1.MsgBurn"; value: Uint8Array; @@ -104,6 +121,7 @@ export interface MsgBurnSDKType { amount: CoinSDKType; } export interface MsgBurnResponse {} +export interface ReactiveMsgBurnResponse {} export interface MsgBurnResponseProtoMsg { typeUrl: "/osmosis.tokenfactory.v1beta1.MsgBurnResponse"; value: Uint8Array; @@ -118,6 +136,11 @@ export interface MsgChangeAdmin { denom: string; newAdmin: string; } +export interface ReactiveMsgChangeAdmin { + sender: ComputedRef; + denom: ComputedRef; + newAdmin: ComputedRef; +} export interface MsgChangeAdminProtoMsg { typeUrl: "/osmosis.tokenfactory.v1beta1.MsgChangeAdmin"; value: Uint8Array; @@ -136,6 +159,7 @@ export interface MsgChangeAdminSDKType { * MsgChangeAdmin message. */ export interface MsgChangeAdminResponse {} +export interface ReactiveMsgChangeAdminResponse {} export interface MsgChangeAdminResponseProtoMsg { typeUrl: "/osmosis.tokenfactory.v1beta1.MsgChangeAdminResponse"; value: Uint8Array; @@ -153,6 +177,10 @@ export interface MsgSetDenomMetadata { sender: string; metadata: Metadata; } +export interface ReactiveMsgSetDenomMetadata { + sender: ComputedRef; + metadata: ComputedRef; +} export interface MsgSetDenomMetadataProtoMsg { typeUrl: "/osmosis.tokenfactory.v1beta1.MsgSetDenomMetadata"; value: Uint8Array; @@ -170,6 +198,7 @@ export interface MsgSetDenomMetadataSDKType { * MsgSetDenomMetadata message. */ export interface MsgSetDenomMetadataResponse {} +export interface ReactiveMsgSetDenomMetadataResponse {} export interface MsgSetDenomMetadataResponseProtoMsg { typeUrl: "/osmosis.tokenfactory.v1beta1.MsgSetDenomMetadataResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/osmosis/twap/v1beta1/genesis.ts b/__fixtures__/v-next/outputv4/osmosis/twap/v1beta1/genesis.ts index 2040587651..38e5fff15e 100644 --- a/__fixtures__/v-next/outputv4/osmosis/twap/v1beta1/genesis.ts +++ b/__fixtures__/v-next/outputv4/osmosis/twap/v1beta1/genesis.ts @@ -3,12 +3,17 @@ import { TwapRecord, TwapRecordSDKType } from "./twap_record.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "osmosis.twap.v1beta1"; /** Params holds parameters for the twap module */ export interface Params { pruneEpochIdentifier: string; recordHistoryKeepPeriod: Duration; } +export interface ReactiveParams { + pruneEpochIdentifier: ComputedRef; + recordHistoryKeepPeriod: ComputedRef; +} export interface ParamsProtoMsg { typeUrl: "/osmosis.twap.v1beta1.Params"; value: Uint8Array; @@ -25,6 +30,10 @@ export interface GenesisState { /** params is the container of twap parameters. */ params: Params; } +export interface ReactiveGenesisState { + twaps: ComputedRef; + params: ComputedRef; +} export interface GenesisStateProtoMsg { typeUrl: "/osmosis.twap.v1beta1.GenesisState"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/osmosis/twap/v1beta1/query.ts b/__fixtures__/v-next/outputv4/osmosis/twap/v1beta1/query.ts index 82bc40d3b4..922ad84853 100644 --- a/__fixtures__/v-next/outputv4/osmosis/twap/v1beta1/query.ts +++ b/__fixtures__/v-next/outputv4/osmosis/twap/v1beta1/query.ts @@ -4,6 +4,7 @@ import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { toTimestamp, fromTimestamp, isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; import { Decimal } from "@cosmjs/math"; +import { ComputedRef } from "vue"; export const protobufPackage = "osmosis.twap.v1beta1"; export interface ArithmeticTwapRequest { poolId: bigint; @@ -12,6 +13,13 @@ export interface ArithmeticTwapRequest { startTime: Date; endTime?: Date; } +export interface ReactiveArithmeticTwapRequest { + poolId: ComputedRef; + baseAsset: ComputedRef; + quoteAsset: ComputedRef; + startTime: ComputedRef; + endTime?: ComputedRef; +} export interface ArithmeticTwapRequestProtoMsg { typeUrl: "/osmosis.twap.v1beta1.ArithmeticTwapRequest"; value: Uint8Array; @@ -26,6 +34,9 @@ export interface ArithmeticTwapRequestSDKType { export interface ArithmeticTwapResponse { arithmeticTwap: string; } +export interface ReactiveArithmeticTwapResponse { + arithmeticTwap: ComputedRef; +} export interface ArithmeticTwapResponseProtoMsg { typeUrl: "/osmosis.twap.v1beta1.ArithmeticTwapResponse"; value: Uint8Array; @@ -39,6 +50,12 @@ export interface ArithmeticTwapToNowRequest { quoteAsset: string; startTime: Date; } +export interface ReactiveArithmeticTwapToNowRequest { + poolId: ComputedRef; + baseAsset: ComputedRef; + quoteAsset: ComputedRef; + startTime: ComputedRef; +} export interface ArithmeticTwapToNowRequestProtoMsg { typeUrl: "/osmosis.twap.v1beta1.ArithmeticTwapToNowRequest"; value: Uint8Array; @@ -52,6 +69,9 @@ export interface ArithmeticTwapToNowRequestSDKType { export interface ArithmeticTwapToNowResponse { arithmeticTwap: string; } +export interface ReactiveArithmeticTwapToNowResponse { + arithmeticTwap: ComputedRef; +} export interface ArithmeticTwapToNowResponseProtoMsg { typeUrl: "/osmosis.twap.v1beta1.ArithmeticTwapToNowResponse"; value: Uint8Array; @@ -60,6 +80,7 @@ export interface ArithmeticTwapToNowResponseSDKType { arithmetic_twap: string; } export interface ParamsRequest {} +export interface ReactiveParamsRequest {} export interface ParamsRequestProtoMsg { typeUrl: "/osmosis.twap.v1beta1.ParamsRequest"; value: Uint8Array; @@ -68,6 +89,9 @@ export interface ParamsRequestSDKType {} export interface ParamsResponse { params: Params; } +export interface ReactiveParamsResponse { + params: ComputedRef; +} export interface ParamsResponseProtoMsg { typeUrl: "/osmosis.twap.v1beta1.ParamsResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/osmosis/twap/v1beta1/twap_record.ts b/__fixtures__/v-next/outputv4/osmosis/twap/v1beta1/twap_record.ts index bc693f691a..542d30d283 100644 --- a/__fixtures__/v-next/outputv4/osmosis/twap/v1beta1/twap_record.ts +++ b/__fixtures__/v-next/outputv4/osmosis/twap/v1beta1/twap_record.ts @@ -3,6 +3,7 @@ import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { toTimestamp, fromTimestamp, isSet, DeepPartial } from "../../../helpers.js"; import { Decimal } from "@cosmjs/math"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "osmosis.twap.v1beta1"; /** * A TWAP record should be indexed in state by pool_id, (asset pair), timestamp @@ -41,6 +42,18 @@ export interface TwapRecord { */ lastErrorTime: Date; } +export interface ReactiveTwapRecord { + poolId: ComputedRef; + asset0Denom: ComputedRef; + asset1Denom: ComputedRef; + height: ComputedRef; + time: ComputedRef; + p0LastSpotPrice: ComputedRef; + p1LastSpotPrice: ComputedRef; + p0ArithmeticTwapAccumulator: ComputedRef; + p1ArithmeticTwapAccumulator: ComputedRef; + lastErrorTime: ComputedRef; +} export interface TwapRecordProtoMsg { typeUrl: "/osmosis.twap.v1beta1.TwapRecord"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/osmosis/txfees/v1beta1/feetoken.ts b/__fixtures__/v-next/outputv4/osmosis/txfees/v1beta1/feetoken.ts index 5509fa86cb..358cd7bbd3 100644 --- a/__fixtures__/v-next/outputv4/osmosis/txfees/v1beta1/feetoken.ts +++ b/__fixtures__/v-next/outputv4/osmosis/txfees/v1beta1/feetoken.ts @@ -1,6 +1,7 @@ import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "osmosis.txfees.v1beta1"; /** * FeeToken is a struct that specifies a coin denom, and pool ID pair. @@ -12,6 +13,10 @@ export interface FeeToken { denom: string; poolID: bigint; } +export interface ReactiveFeeToken { + denom: ComputedRef; + poolID: ComputedRef; +} export interface FeeTokenProtoMsg { typeUrl: "/osmosis.txfees.v1beta1.FeeToken"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/osmosis/txfees/v1beta1/genesis.ts b/__fixtures__/v-next/outputv4/osmosis/txfees/v1beta1/genesis.ts index 782b75ef16..311ccde768 100644 --- a/__fixtures__/v-next/outputv4/osmosis/txfees/v1beta1/genesis.ts +++ b/__fixtures__/v-next/outputv4/osmosis/txfees/v1beta1/genesis.ts @@ -2,12 +2,17 @@ import { FeeToken, FeeTokenSDKType } from "./feetoken.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "osmosis.txfees.v1beta1"; /** GenesisState defines the txfees module's genesis state. */ export interface GenesisState { basedenom: string; feetokens: FeeToken[]; } +export interface ReactiveGenesisState { + basedenom: ComputedRef; + feetokens: ComputedRef; +} export interface GenesisStateProtoMsg { typeUrl: "/osmosis.txfees.v1beta1.GenesisState"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/osmosis/txfees/v1beta1/gov.ts b/__fixtures__/v-next/outputv4/osmosis/txfees/v1beta1/gov.ts index ca2a223271..6a0b09bed4 100644 --- a/__fixtures__/v-next/outputv4/osmosis/txfees/v1beta1/gov.ts +++ b/__fixtures__/v-next/outputv4/osmosis/txfees/v1beta1/gov.ts @@ -2,6 +2,7 @@ import { FeeToken, FeeTokenSDKType } from "./feetoken.js"; import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "osmosis.txfees.v1beta1"; /** * UpdateFeeTokenProposal is a gov Content type for adding a new whitelisted fee @@ -15,6 +16,11 @@ export interface UpdateFeeTokenProposal { description: string; feetoken: FeeToken; } +export interface ReactiveUpdateFeeTokenProposal { + title: ComputedRef; + description: ComputedRef; + feetoken: ComputedRef; +} export interface UpdateFeeTokenProposalProtoMsg { typeUrl: "/osmosis.txfees.v1beta1.UpdateFeeTokenProposal"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/osmosis/txfees/v1beta1/query.rpc.Query.ts b/__fixtures__/v-next/outputv4/osmosis/txfees/v1beta1/query.rpc.Query.ts index 09178cb240..b81891eef6 100644 --- a/__fixtures__/v-next/outputv4/osmosis/txfees/v1beta1/query.rpc.Query.ts +++ b/__fixtures__/v-next/outputv4/osmosis/txfees/v1beta1/query.rpc.Query.ts @@ -2,7 +2,7 @@ import { FeeToken, FeeTokenSDKType } from "./feetoken.js"; import { Rpc } from "../../../helpers.js"; import { BinaryReader } from "../../../binary.js"; import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate"; -import { QueryFeeTokensRequest, QueryFeeTokensRequestSDKType, QueryFeeTokensResponse, QueryFeeTokensResponseSDKType, QueryDenomSpotPriceRequest, QueryDenomSpotPriceRequestSDKType, QueryDenomSpotPriceResponse, QueryDenomSpotPriceResponseSDKType, QueryDenomPoolIdRequest, QueryDenomPoolIdRequestSDKType, QueryDenomPoolIdResponse, QueryDenomPoolIdResponseSDKType, QueryBaseDenomRequest, QueryBaseDenomRequestSDKType, QueryBaseDenomResponse, QueryBaseDenomResponseSDKType } from "./query.js"; +import { QueryFeeTokensRequest, QueryFeeTokensRequestSDKType, QueryFeeTokensResponse, QueryFeeTokensResponseSDKType, QueryDenomSpotPriceRequest, QueryDenomSpotPriceRequestSDKType, QueryDenomSpotPriceResponse, QueryDenomSpotPriceResponseSDKType, QueryDenomPoolIdRequest, QueryDenomPoolIdRequestSDKType, QueryDenomPoolIdResponse, QueryDenomPoolIdResponseSDKType, QueryBaseDenomRequest, QueryBaseDenomRequestSDKType, QueryBaseDenomResponse, QueryBaseDenomResponseSDKType, ReactiveQueryFeeTokensRequest, ReactiveQueryDenomSpotPriceRequest, ReactiveQueryDenomPoolIdRequest, ReactiveQueryBaseDenomRequest } from "./query.js"; export interface Query { /** * FeeTokens returns a list of all the whitelisted fee tokens and their diff --git a/__fixtures__/v-next/outputv4/osmosis/txfees/v1beta1/query.ts b/__fixtures__/v-next/outputv4/osmosis/txfees/v1beta1/query.ts index 43461001a6..a14efbc72b 100644 --- a/__fixtures__/v-next/outputv4/osmosis/txfees/v1beta1/query.ts +++ b/__fixtures__/v-next/outputv4/osmosis/txfees/v1beta1/query.ts @@ -3,8 +3,10 @@ import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { JsonSafe } from "../../../json-safe.js"; import { DeepPartial, isSet } from "../../../helpers.js"; import { Decimal } from "@cosmjs/math"; +import { ComputedRef } from "vue"; export const protobufPackage = "osmosis.txfees.v1beta1"; export interface QueryFeeTokensRequest {} +export interface ReactiveQueryFeeTokensRequest {} export interface QueryFeeTokensRequestProtoMsg { typeUrl: "/osmosis.txfees.v1beta1.QueryFeeTokensRequest"; value: Uint8Array; @@ -13,6 +15,9 @@ export interface QueryFeeTokensRequestSDKType {} export interface QueryFeeTokensResponse { feeTokens: FeeToken[]; } +export interface ReactiveQueryFeeTokensResponse { + feeTokens: ComputedRef; +} export interface QueryFeeTokensResponseProtoMsg { typeUrl: "/osmosis.txfees.v1beta1.QueryFeeTokensResponse"; value: Uint8Array; @@ -27,6 +32,9 @@ export interface QueryFeeTokensResponseSDKType { export interface QueryDenomSpotPriceRequest { denom: string; } +export interface ReactiveQueryDenomSpotPriceRequest { + denom: ComputedRef; +} export interface QueryDenomSpotPriceRequestProtoMsg { typeUrl: "/osmosis.txfees.v1beta1.QueryDenomSpotPriceRequest"; value: Uint8Array; @@ -46,6 +54,10 @@ export interface QueryDenomSpotPriceResponse { poolID: bigint; spotPrice: string; } +export interface ReactiveQueryDenomSpotPriceResponse { + poolID: ComputedRef; + spotPrice: ComputedRef; +} export interface QueryDenomSpotPriceResponseProtoMsg { typeUrl: "/osmosis.txfees.v1beta1.QueryDenomSpotPriceResponse"; value: Uint8Array; @@ -61,6 +73,9 @@ export interface QueryDenomSpotPriceResponseSDKType { export interface QueryDenomPoolIdRequest { denom: string; } +export interface ReactiveQueryDenomPoolIdRequest { + denom: ComputedRef; +} export interface QueryDenomPoolIdRequestProtoMsg { typeUrl: "/osmosis.txfees.v1beta1.QueryDenomPoolIdRequest"; value: Uint8Array; @@ -71,6 +86,9 @@ export interface QueryDenomPoolIdRequestSDKType { export interface QueryDenomPoolIdResponse { poolID: bigint; } +export interface ReactiveQueryDenomPoolIdResponse { + poolID: ComputedRef; +} export interface QueryDenomPoolIdResponseProtoMsg { typeUrl: "/osmosis.txfees.v1beta1.QueryDenomPoolIdResponse"; value: Uint8Array; @@ -79,6 +97,7 @@ export interface QueryDenomPoolIdResponseSDKType { poolID: bigint; } export interface QueryBaseDenomRequest {} +export interface ReactiveQueryBaseDenomRequest {} export interface QueryBaseDenomRequestProtoMsg { typeUrl: "/osmosis.txfees.v1beta1.QueryBaseDenomRequest"; value: Uint8Array; @@ -87,6 +106,9 @@ export interface QueryBaseDenomRequestSDKType {} export interface QueryBaseDenomResponse { baseDenom: string; } +export interface ReactiveQueryBaseDenomResponse { + baseDenom: ComputedRef; +} export interface QueryBaseDenomResponseProtoMsg { typeUrl: "/osmosis.txfees.v1beta1.QueryBaseDenomResponse"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/tendermint/abci/types.ts b/__fixtures__/v-next/outputv4/tendermint/abci/types.ts index 05cea2ecc6..dad2dfecfc 100644 --- a/__fixtures__/v-next/outputv4/tendermint/abci/types.ts +++ b/__fixtures__/v-next/outputv4/tendermint/abci/types.ts @@ -6,6 +6,7 @@ import { PublicKey, PublicKeySDKType } from "../crypto/keys.js"; import { BinaryReader, BinaryWriter } from "../../binary.js"; import { isSet, DeepPartial, toTimestamp, fromTimestamp, bytesFromBase64, base64FromBytes } from "../../helpers.js"; import { JsonSafe } from "../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "tendermint.abci"; export enum CheckTxType { NEW = 0, @@ -214,6 +215,23 @@ export interface Request { loadSnapshotChunk?: RequestLoadSnapshotChunk; applySnapshotChunk?: RequestApplySnapshotChunk; } +export interface ReactiveRequest { + echo?: ComputedRef; + flush?: ComputedRef; + info?: ComputedRef; + setOption?: ComputedRef; + initChain?: ComputedRef; + query?: ComputedRef; + beginBlock?: ComputedRef; + checkTx?: ComputedRef; + deliverTx?: ComputedRef; + endBlock?: ComputedRef; + commit?: ComputedRef; + listSnapshots?: ComputedRef; + offerSnapshot?: ComputedRef; + loadSnapshotChunk?: ComputedRef; + applySnapshotChunk?: ComputedRef; +} export interface RequestProtoMsg { typeUrl: "/tendermint.abci.Request"; value: Uint8Array; @@ -238,6 +256,9 @@ export interface RequestSDKType { export interface RequestEcho { message: string; } +export interface ReactiveRequestEcho { + message: ComputedRef; +} export interface RequestEchoProtoMsg { typeUrl: "/tendermint.abci.RequestEcho"; value: Uint8Array; @@ -246,6 +267,7 @@ export interface RequestEchoSDKType { message: string; } export interface RequestFlush {} +export interface ReactiveRequestFlush {} export interface RequestFlushProtoMsg { typeUrl: "/tendermint.abci.RequestFlush"; value: Uint8Array; @@ -256,6 +278,11 @@ export interface RequestInfo { blockVersion: bigint; p2pVersion: bigint; } +export interface ReactiveRequestInfo { + version: ComputedRef; + blockVersion: ComputedRef; + p2pVersion: ComputedRef; +} export interface RequestInfoProtoMsg { typeUrl: "/tendermint.abci.RequestInfo"; value: Uint8Array; @@ -270,6 +297,10 @@ export interface RequestSetOption { key: string; value: string; } +export interface ReactiveRequestSetOption { + key: ComputedRef; + value: ComputedRef; +} export interface RequestSetOptionProtoMsg { typeUrl: "/tendermint.abci.RequestSetOption"; value: Uint8Array; @@ -287,6 +318,14 @@ export interface RequestInitChain { appStateBytes: Uint8Array; initialHeight: bigint; } +export interface ReactiveRequestInitChain { + time: ComputedRef; + chainId: ComputedRef; + consensusParams?: ComputedRef; + validators: ComputedRef; + appStateBytes: ComputedRef; + initialHeight: ComputedRef; +} export interface RequestInitChainProtoMsg { typeUrl: "/tendermint.abci.RequestInitChain"; value: Uint8Array; @@ -305,6 +344,12 @@ export interface RequestQuery { height: bigint; prove: boolean; } +export interface ReactiveRequestQuery { + data: ComputedRef; + path: ComputedRef; + height: ComputedRef; + prove: ComputedRef; +} export interface RequestQueryProtoMsg { typeUrl: "/tendermint.abci.RequestQuery"; value: Uint8Array; @@ -321,6 +366,12 @@ export interface RequestBeginBlock { lastCommitInfo: LastCommitInfo; byzantineValidators: Evidence[]; } +export interface ReactiveRequestBeginBlock { + hash: ComputedRef; + header: ComputedRef
; + lastCommitInfo: ComputedRef; + byzantineValidators: ComputedRef; +} export interface RequestBeginBlockProtoMsg { typeUrl: "/tendermint.abci.RequestBeginBlock"; value: Uint8Array; @@ -335,6 +386,10 @@ export interface RequestCheckTx { tx: Uint8Array; type: CheckTxType; } +export interface ReactiveRequestCheckTx { + tx: ComputedRef; + type: ComputedRef; +} export interface RequestCheckTxProtoMsg { typeUrl: "/tendermint.abci.RequestCheckTx"; value: Uint8Array; @@ -346,6 +401,9 @@ export interface RequestCheckTxSDKType { export interface RequestDeliverTx { tx: Uint8Array; } +export interface ReactiveRequestDeliverTx { + tx: ComputedRef; +} export interface RequestDeliverTxProtoMsg { typeUrl: "/tendermint.abci.RequestDeliverTx"; value: Uint8Array; @@ -356,6 +414,9 @@ export interface RequestDeliverTxSDKType { export interface RequestEndBlock { height: bigint; } +export interface ReactiveRequestEndBlock { + height: ComputedRef; +} export interface RequestEndBlockProtoMsg { typeUrl: "/tendermint.abci.RequestEndBlock"; value: Uint8Array; @@ -364,6 +425,7 @@ export interface RequestEndBlockSDKType { height: bigint; } export interface RequestCommit {} +export interface ReactiveRequestCommit {} export interface RequestCommitProtoMsg { typeUrl: "/tendermint.abci.RequestCommit"; value: Uint8Array; @@ -371,6 +433,7 @@ export interface RequestCommitProtoMsg { export interface RequestCommitSDKType {} /** lists available snapshots */ export interface RequestListSnapshots {} +export interface ReactiveRequestListSnapshots {} export interface RequestListSnapshotsProtoMsg { typeUrl: "/tendermint.abci.RequestListSnapshots"; value: Uint8Array; @@ -384,6 +447,10 @@ export interface RequestOfferSnapshot { /** light client-verified app hash for snapshot height */ appHash: Uint8Array; } +export interface ReactiveRequestOfferSnapshot { + snapshot?: ComputedRef; + appHash: ComputedRef; +} export interface RequestOfferSnapshotProtoMsg { typeUrl: "/tendermint.abci.RequestOfferSnapshot"; value: Uint8Array; @@ -399,6 +466,11 @@ export interface RequestLoadSnapshotChunk { format: number; chunk: number; } +export interface ReactiveRequestLoadSnapshotChunk { + height: ComputedRef; + format: ComputedRef; + chunk: ComputedRef; +} export interface RequestLoadSnapshotChunkProtoMsg { typeUrl: "/tendermint.abci.RequestLoadSnapshotChunk"; value: Uint8Array; @@ -415,6 +487,11 @@ export interface RequestApplySnapshotChunk { chunk: Uint8Array; sender: string; } +export interface ReactiveRequestApplySnapshotChunk { + index: ComputedRef; + chunk: ComputedRef; + sender: ComputedRef; +} export interface RequestApplySnapshotChunkProtoMsg { typeUrl: "/tendermint.abci.RequestApplySnapshotChunk"; value: Uint8Array; @@ -443,6 +520,24 @@ export interface Response { loadSnapshotChunk?: ResponseLoadSnapshotChunk; applySnapshotChunk?: ResponseApplySnapshotChunk; } +export interface ReactiveResponse { + exception?: ComputedRef; + echo?: ComputedRef; + flush?: ComputedRef; + info?: ComputedRef; + setOption?: ComputedRef; + initChain?: ComputedRef; + query?: ComputedRef; + beginBlock?: ComputedRef; + checkTx?: ComputedRef; + deliverTx?: ComputedRef; + endBlock?: ComputedRef; + commit?: ComputedRef; + listSnapshots?: ComputedRef; + offerSnapshot?: ComputedRef; + loadSnapshotChunk?: ComputedRef; + applySnapshotChunk?: ComputedRef; +} export interface ResponseProtoMsg { typeUrl: "/tendermint.abci.Response"; value: Uint8Array; @@ -469,6 +564,9 @@ export interface ResponseSDKType { export interface ResponseException { error: string; } +export interface ReactiveResponseException { + error: ComputedRef; +} export interface ResponseExceptionProtoMsg { typeUrl: "/tendermint.abci.ResponseException"; value: Uint8Array; @@ -480,6 +578,9 @@ export interface ResponseExceptionSDKType { export interface ResponseEcho { message: string; } +export interface ReactiveResponseEcho { + message: ComputedRef; +} export interface ResponseEchoProtoMsg { typeUrl: "/tendermint.abci.ResponseEcho"; value: Uint8Array; @@ -488,6 +589,7 @@ export interface ResponseEchoSDKType { message: string; } export interface ResponseFlush {} +export interface ReactiveResponseFlush {} export interface ResponseFlushProtoMsg { typeUrl: "/tendermint.abci.ResponseFlush"; value: Uint8Array; @@ -500,6 +602,13 @@ export interface ResponseInfo { lastBlockHeight: bigint; lastBlockAppHash: Uint8Array; } +export interface ReactiveResponseInfo { + data: ComputedRef; + version: ComputedRef; + appVersion: ComputedRef; + lastBlockHeight: ComputedRef; + lastBlockAppHash: ComputedRef; +} export interface ResponseInfoProtoMsg { typeUrl: "/tendermint.abci.ResponseInfo"; value: Uint8Array; @@ -518,6 +627,11 @@ export interface ResponseSetOption { log: string; info: string; } +export interface ReactiveResponseSetOption { + code: ComputedRef; + log: ComputedRef; + info: ComputedRef; +} export interface ResponseSetOptionProtoMsg { typeUrl: "/tendermint.abci.ResponseSetOption"; value: Uint8Array; @@ -533,6 +647,11 @@ export interface ResponseInitChain { validators: ValidatorUpdate[]; appHash: Uint8Array; } +export interface ReactiveResponseInitChain { + consensusParams?: ComputedRef; + validators: ComputedRef; + appHash: ComputedRef; +} export interface ResponseInitChainProtoMsg { typeUrl: "/tendermint.abci.ResponseInitChain"; value: Uint8Array; @@ -555,6 +674,17 @@ export interface ResponseQuery { height: bigint; codespace: string; } +export interface ReactiveResponseQuery { + code: ComputedRef; + log: ComputedRef; + info: ComputedRef; + index: ComputedRef; + key: ComputedRef; + value: ComputedRef; + proofOps?: ComputedRef; + height: ComputedRef; + codespace: ComputedRef; +} export interface ResponseQueryProtoMsg { typeUrl: "/tendermint.abci.ResponseQuery"; value: Uint8Array; @@ -573,6 +703,9 @@ export interface ResponseQuerySDKType { export interface ResponseBeginBlock { events: Event[]; } +export interface ReactiveResponseBeginBlock { + events: ComputedRef; +} export interface ResponseBeginBlockProtoMsg { typeUrl: "/tendermint.abci.ResponseBeginBlock"; value: Uint8Array; @@ -592,6 +725,16 @@ export interface ResponseCheckTx { events: Event[]; codespace: string; } +export interface ReactiveResponseCheckTx { + code: ComputedRef; + data: ComputedRef; + log: ComputedRef; + info: ComputedRef; + gasWanted: ComputedRef; + gasUsed: ComputedRef; + events: ComputedRef; + codespace: ComputedRef; +} export interface ResponseCheckTxProtoMsg { typeUrl: "/tendermint.abci.ResponseCheckTx"; value: Uint8Array; @@ -618,6 +761,16 @@ export interface ResponseDeliverTx { events: Event[]; codespace: string; } +export interface ReactiveResponseDeliverTx { + code: ComputedRef; + data: ComputedRef; + log: ComputedRef; + info: ComputedRef; + gasWanted: ComputedRef; + gasUsed: ComputedRef; + events: ComputedRef; + codespace: ComputedRef; +} export interface ResponseDeliverTxProtoMsg { typeUrl: "/tendermint.abci.ResponseDeliverTx"; value: Uint8Array; @@ -637,6 +790,11 @@ export interface ResponseEndBlock { consensusParamUpdates?: ConsensusParams; events: Event[]; } +export interface ReactiveResponseEndBlock { + validatorUpdates: ComputedRef; + consensusParamUpdates?: ComputedRef; + events: ComputedRef; +} export interface ResponseEndBlockProtoMsg { typeUrl: "/tendermint.abci.ResponseEndBlock"; value: Uint8Array; @@ -651,6 +809,10 @@ export interface ResponseCommit { data: Uint8Array; retainHeight: bigint; } +export interface ReactiveResponseCommit { + data: ComputedRef; + retainHeight: ComputedRef; +} export interface ResponseCommitProtoMsg { typeUrl: "/tendermint.abci.ResponseCommit"; value: Uint8Array; @@ -662,6 +824,9 @@ export interface ResponseCommitSDKType { export interface ResponseListSnapshots { snapshots: Snapshot[]; } +export interface ReactiveResponseListSnapshots { + snapshots: ComputedRef; +} export interface ResponseListSnapshotsProtoMsg { typeUrl: "/tendermint.abci.ResponseListSnapshots"; value: Uint8Array; @@ -672,6 +837,9 @@ export interface ResponseListSnapshotsSDKType { export interface ResponseOfferSnapshot { result: ResponseOfferSnapshot_Result; } +export interface ReactiveResponseOfferSnapshot { + result: ComputedRef; +} export interface ResponseOfferSnapshotProtoMsg { typeUrl: "/tendermint.abci.ResponseOfferSnapshot"; value: Uint8Array; @@ -682,6 +850,9 @@ export interface ResponseOfferSnapshotSDKType { export interface ResponseLoadSnapshotChunk { chunk: Uint8Array; } +export interface ReactiveResponseLoadSnapshotChunk { + chunk: ComputedRef; +} export interface ResponseLoadSnapshotChunkProtoMsg { typeUrl: "/tendermint.abci.ResponseLoadSnapshotChunk"; value: Uint8Array; @@ -696,6 +867,11 @@ export interface ResponseApplySnapshotChunk { /** Chunk senders to reject and ban */ rejectSenders: string[]; } +export interface ReactiveResponseApplySnapshotChunk { + result: ComputedRef; + refetchChunks: ComputedRef; + rejectSenders: ComputedRef; +} export interface ResponseApplySnapshotChunkProtoMsg { typeUrl: "/tendermint.abci.ResponseApplySnapshotChunk"; value: Uint8Array; @@ -715,6 +891,12 @@ export interface ConsensusParams { validator?: ValidatorParams; version?: VersionParams; } +export interface ReactiveConsensusParams { + block?: ComputedRef; + evidence?: ComputedRef; + validator?: ComputedRef; + version?: ComputedRef; +} export interface ConsensusParamsProtoMsg { typeUrl: "/tendermint.abci.ConsensusParams"; value: Uint8Array; @@ -736,6 +918,10 @@ export interface BlockParams { /** Note: must be greater or equal to -1 */ maxGas: bigint; } +export interface ReactiveBlockParams { + maxBytes: ComputedRef; + maxGas: ComputedRef; +} export interface BlockParamsProtoMsg { typeUrl: "/tendermint.abci.BlockParams"; value: Uint8Array; @@ -749,6 +935,10 @@ export interface LastCommitInfo { round: number; votes: VoteInfo[]; } +export interface ReactiveLastCommitInfo { + round: ComputedRef; + votes: ComputedRef; +} export interface LastCommitInfoProtoMsg { typeUrl: "/tendermint.abci.LastCommitInfo"; value: Uint8Array; @@ -766,6 +956,10 @@ export interface Event { type: string; attributes: EventAttribute[]; } +export interface ReactiveEvent { + type: ComputedRef; + attributes: ComputedRef; +} export interface EventProtoMsg { typeUrl: "/tendermint.abci.Event"; value: Uint8Array; @@ -786,6 +980,11 @@ export interface EventAttribute { /** nondeterministic */ index: boolean; } +export interface ReactiveEventAttribute { + key: ComputedRef; + value: ComputedRef; + index: ComputedRef; +} export interface EventAttributeProtoMsg { typeUrl: "/tendermint.abci.EventAttribute"; value: Uint8Array; @@ -807,6 +1006,12 @@ export interface TxResult { tx: Uint8Array; result: ResponseDeliverTx; } +export interface ReactiveTxResult { + height: ComputedRef; + index: ComputedRef; + tx: ComputedRef; + result: ComputedRef; +} export interface TxResultProtoMsg { typeUrl: "/tendermint.abci.TxResult"; value: Uint8Array; @@ -829,6 +1034,10 @@ export interface Validator { /** PubKey pub_key = 2 [(gogoproto.nullable)=false]; */ power: bigint; } +export interface ReactiveValidator { + address: ComputedRef; + power: ComputedRef; +} export interface ValidatorProtoMsg { typeUrl: "/tendermint.abci.Validator"; value: Uint8Array; @@ -843,6 +1052,10 @@ export interface ValidatorUpdate { pubKey: PublicKey; power: bigint; } +export interface ReactiveValidatorUpdate { + pubKey: ComputedRef; + power: ComputedRef; +} export interface ValidatorUpdateProtoMsg { typeUrl: "/tendermint.abci.ValidatorUpdate"; value: Uint8Array; @@ -857,6 +1070,10 @@ export interface VoteInfo { validator: Validator; signedLastBlock: boolean; } +export interface ReactiveVoteInfo { + validator: ComputedRef; + signedLastBlock: ComputedRef; +} export interface VoteInfoProtoMsg { typeUrl: "/tendermint.abci.VoteInfo"; value: Uint8Array; @@ -881,6 +1098,13 @@ export interface Evidence { */ totalVotingPower: bigint; } +export interface ReactiveEvidence { + type: ComputedRef; + validator: ComputedRef; + height: ComputedRef; + time: ComputedRef; + totalVotingPower: ComputedRef; +} export interface EvidenceProtoMsg { typeUrl: "/tendermint.abci.Evidence"; value: Uint8Array; @@ -904,6 +1128,13 @@ export interface Snapshot { /** Arbitrary application metadata */ metadata: Uint8Array; } +export interface ReactiveSnapshot { + height: ComputedRef; + format: ComputedRef; + chunks: ComputedRef; + hash: ComputedRef; + metadata: ComputedRef; +} export interface SnapshotProtoMsg { typeUrl: "/tendermint.abci.Snapshot"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/tendermint/crypto/keys.ts b/__fixtures__/v-next/outputv4/tendermint/crypto/keys.ts index 5e648834aa..753367634c 100644 --- a/__fixtures__/v-next/outputv4/tendermint/crypto/keys.ts +++ b/__fixtures__/v-next/outputv4/tendermint/crypto/keys.ts @@ -1,12 +1,17 @@ import { BinaryReader, BinaryWriter } from "../../binary.js"; import { isSet, bytesFromBase64, base64FromBytes, DeepPartial } from "../../helpers.js"; import { JsonSafe } from "../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "tendermint.crypto"; /** PublicKey defines the keys available for use with Tendermint Validators */ export interface PublicKey { ed25519?: Uint8Array; secp256k1?: Uint8Array; } +export interface ReactivePublicKey { + ed25519?: ComputedRef; + secp256k1?: ComputedRef; +} export interface PublicKeyProtoMsg { typeUrl: "/tendermint.crypto.PublicKey"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/tendermint/crypto/proof.ts b/__fixtures__/v-next/outputv4/tendermint/crypto/proof.ts index b1f4bbde67..302c2d2ac0 100644 --- a/__fixtures__/v-next/outputv4/tendermint/crypto/proof.ts +++ b/__fixtures__/v-next/outputv4/tendermint/crypto/proof.ts @@ -1,6 +1,7 @@ import { BinaryReader, BinaryWriter } from "../../binary.js"; import { isSet, bytesFromBase64, base64FromBytes, DeepPartial } from "../../helpers.js"; import { JsonSafe } from "../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "tendermint.crypto"; export interface Proof { total: bigint; @@ -8,6 +9,12 @@ export interface Proof { leafHash: Uint8Array; aunts: Uint8Array[]; } +export interface ReactiveProof { + total: ComputedRef; + index: ComputedRef; + leafHash: ComputedRef; + aunts: ComputedRef; +} export interface ProofProtoMsg { typeUrl: "/tendermint.crypto.Proof"; value: Uint8Array; @@ -24,6 +31,10 @@ export interface ValueOp { /** To encode in ProofOp.Data */ proof?: Proof; } +export interface ReactiveValueOp { + key: ComputedRef; + proof?: ComputedRef; +} export interface ValueOpProtoMsg { typeUrl: "/tendermint.crypto.ValueOp"; value: Uint8Array; @@ -37,6 +48,11 @@ export interface DominoOp { input: string; output: string; } +export interface ReactiveDominoOp { + key: ComputedRef; + input: ComputedRef; + output: ComputedRef; +} export interface DominoOpProtoMsg { typeUrl: "/tendermint.crypto.DominoOp"; value: Uint8Array; @@ -56,6 +72,11 @@ export interface ProofOp { key: Uint8Array; data: Uint8Array; } +export interface ReactiveProofOp { + type: ComputedRef; + key: ComputedRef; + data: ComputedRef; +} export interface ProofOpProtoMsg { typeUrl: "/tendermint.crypto.ProofOp"; value: Uint8Array; @@ -74,6 +95,9 @@ export interface ProofOpSDKType { export interface ProofOps { ops: ProofOp[]; } +export interface ReactiveProofOps { + ops: ComputedRef; +} export interface ProofOpsProtoMsg { typeUrl: "/tendermint.crypto.ProofOps"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/tendermint/libs/bits/types.ts b/__fixtures__/v-next/outputv4/tendermint/libs/bits/types.ts index c069612e74..dba6797606 100644 --- a/__fixtures__/v-next/outputv4/tendermint/libs/bits/types.ts +++ b/__fixtures__/v-next/outputv4/tendermint/libs/bits/types.ts @@ -1,11 +1,16 @@ import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { isSet, DeepPartial } from "../../../helpers.js"; import { JsonSafe } from "../../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "tendermint.libs.bits"; export interface BitArray { bits: bigint; elems: bigint[]; } +export interface ReactiveBitArray { + bits: ComputedRef; + elems: ComputedRef; +} export interface BitArrayProtoMsg { typeUrl: "/tendermint.libs.bits.BitArray"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/tendermint/p2p/types.ts b/__fixtures__/v-next/outputv4/tendermint/p2p/types.ts index 7f7542323f..5db606c235 100644 --- a/__fixtures__/v-next/outputv4/tendermint/p2p/types.ts +++ b/__fixtures__/v-next/outputv4/tendermint/p2p/types.ts @@ -2,12 +2,18 @@ import { Timestamp, TimestampSDKType } from "../../google/protobuf/timestamp.js" import { BinaryReader, BinaryWriter } from "../../binary.js"; import { isSet, DeepPartial, bytesFromBase64, base64FromBytes, toTimestamp, fromTimestamp } from "../../helpers.js"; import { JsonSafe } from "../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "tendermint.p2p"; export interface ProtocolVersion { p2p: bigint; block: bigint; app: bigint; } +export interface ReactiveProtocolVersion { + p2p: ComputedRef; + block: ComputedRef; + app: ComputedRef; +} export interface ProtocolVersionProtoMsg { typeUrl: "/tendermint.p2p.ProtocolVersion"; value: Uint8Array; @@ -27,6 +33,16 @@ export interface NodeInfo { moniker: string; other: NodeInfoOther; } +export interface ReactiveNodeInfo { + protocolVersion: ComputedRef; + nodeId: ComputedRef; + listenAddr: ComputedRef; + network: ComputedRef; + version: ComputedRef; + channels: ComputedRef; + moniker: ComputedRef; + other: ComputedRef; +} export interface NodeInfoProtoMsg { typeUrl: "/tendermint.p2p.NodeInfo"; value: Uint8Array; @@ -45,6 +61,10 @@ export interface NodeInfoOther { txIndex: string; rpcAddress: string; } +export interface ReactiveNodeInfoOther { + txIndex: ComputedRef; + rpcAddress: ComputedRef; +} export interface NodeInfoOtherProtoMsg { typeUrl: "/tendermint.p2p.NodeInfoOther"; value: Uint8Array; @@ -58,6 +78,11 @@ export interface PeerInfo { addressInfo: PeerAddressInfo[]; lastConnected?: Date; } +export interface ReactivePeerInfo { + id: ComputedRef; + addressInfo: ComputedRef; + lastConnected?: ComputedRef; +} export interface PeerInfoProtoMsg { typeUrl: "/tendermint.p2p.PeerInfo"; value: Uint8Array; @@ -73,6 +98,12 @@ export interface PeerAddressInfo { lastDialFailure?: Date; dialFailures: number; } +export interface ReactivePeerAddressInfo { + address: ComputedRef; + lastDialSuccess?: ComputedRef; + lastDialFailure?: ComputedRef; + dialFailures: ComputedRef; +} export interface PeerAddressInfoProtoMsg { typeUrl: "/tendermint.p2p.PeerAddressInfo"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/tendermint/types/block.ts b/__fixtures__/v-next/outputv4/tendermint/types/block.ts index ab81e18595..0576312bfa 100644 --- a/__fixtures__/v-next/outputv4/tendermint/types/block.ts +++ b/__fixtures__/v-next/outputv4/tendermint/types/block.ts @@ -3,6 +3,7 @@ import { EvidenceList, EvidenceListSDKType } from "./evidence.js"; import { BinaryReader, BinaryWriter } from "../../binary.js"; import { isSet, DeepPartial } from "../../helpers.js"; import { JsonSafe } from "../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "tendermint.types"; export interface Block { header: Header; @@ -10,6 +11,12 @@ export interface Block { evidence: EvidenceList; lastCommit?: Commit; } +export interface ReactiveBlock { + header: ComputedRef
; + data: ComputedRef; + evidence: ComputedRef; + lastCommit?: ComputedRef; +} export interface BlockProtoMsg { typeUrl: "/tendermint.types.Block"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/tendermint/types/evidence.ts b/__fixtures__/v-next/outputv4/tendermint/types/evidence.ts index de48803067..98d61ab814 100644 --- a/__fixtures__/v-next/outputv4/tendermint/types/evidence.ts +++ b/__fixtures__/v-next/outputv4/tendermint/types/evidence.ts @@ -4,11 +4,16 @@ import { Validator, ValidatorSDKType } from "./validator.js"; import { BinaryReader, BinaryWriter } from "../../binary.js"; import { isSet, DeepPartial, toTimestamp, fromTimestamp } from "../../helpers.js"; import { JsonSafe } from "../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "tendermint.types"; export interface Evidence { duplicateVoteEvidence?: DuplicateVoteEvidence; lightClientAttackEvidence?: LightClientAttackEvidence; } +export interface ReactiveEvidence { + duplicateVoteEvidence?: ComputedRef; + lightClientAttackEvidence?: ComputedRef; +} export interface EvidenceProtoMsg { typeUrl: "/tendermint.types.Evidence"; value: Uint8Array; @@ -25,6 +30,13 @@ export interface DuplicateVoteEvidence { validatorPower: bigint; timestamp: Date; } +export interface ReactiveDuplicateVoteEvidence { + voteA?: ComputedRef; + voteB?: ComputedRef; + totalVotingPower: ComputedRef; + validatorPower: ComputedRef; + timestamp: ComputedRef; +} export interface DuplicateVoteEvidenceProtoMsg { typeUrl: "/tendermint.types.DuplicateVoteEvidence"; value: Uint8Array; @@ -45,6 +57,13 @@ export interface LightClientAttackEvidence { totalVotingPower: bigint; timestamp: Date; } +export interface ReactiveLightClientAttackEvidence { + conflictingBlock?: ComputedRef; + commonHeight: ComputedRef; + byzantineValidators: ComputedRef; + totalVotingPower: ComputedRef; + timestamp: ComputedRef; +} export interface LightClientAttackEvidenceProtoMsg { typeUrl: "/tendermint.types.LightClientAttackEvidence"; value: Uint8Array; @@ -60,6 +79,9 @@ export interface LightClientAttackEvidenceSDKType { export interface EvidenceList { evidence: Evidence[]; } +export interface ReactiveEvidenceList { + evidence: ComputedRef; +} export interface EvidenceListProtoMsg { typeUrl: "/tendermint.types.EvidenceList"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/tendermint/types/params.ts b/__fixtures__/v-next/outputv4/tendermint/types/params.ts index 5d12b7b4cf..8b8a93533b 100644 --- a/__fixtures__/v-next/outputv4/tendermint/types/params.ts +++ b/__fixtures__/v-next/outputv4/tendermint/types/params.ts @@ -2,6 +2,7 @@ import { Duration, DurationSDKType } from "../../google/protobuf/duration.js"; import { BinaryReader, BinaryWriter } from "../../binary.js"; import { isSet, DeepPartial } from "../../helpers.js"; import { JsonSafe } from "../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "tendermint.types"; /** * ConsensusParams contains consensus critical parameters that determine the @@ -13,6 +14,12 @@ export interface ConsensusParams { validator: ValidatorParams; version: VersionParams; } +export interface ReactiveConsensusParams { + block: ComputedRef; + evidence: ComputedRef; + validator: ComputedRef; + version: ComputedRef; +} export interface ConsensusParamsProtoMsg { typeUrl: "/tendermint.types.ConsensusParams"; value: Uint8Array; @@ -47,6 +54,11 @@ export interface BlockParams { */ timeIotaMs: bigint; } +export interface ReactiveBlockParams { + maxBytes: ComputedRef; + maxGas: ComputedRef; + timeIotaMs: ComputedRef; +} export interface BlockParamsProtoMsg { typeUrl: "/tendermint.types.BlockParams"; value: Uint8Array; @@ -81,6 +93,11 @@ export interface EvidenceParams { */ maxBytes: bigint; } +export interface ReactiveEvidenceParams { + maxAgeNumBlocks: ComputedRef; + maxAgeDuration: ComputedRef; + maxBytes: ComputedRef; +} export interface EvidenceParamsProtoMsg { typeUrl: "/tendermint.types.EvidenceParams"; value: Uint8Array; @@ -98,6 +115,9 @@ export interface EvidenceParamsSDKType { export interface ValidatorParams { pubKeyTypes: string[]; } +export interface ReactiveValidatorParams { + pubKeyTypes: ComputedRef; +} export interface ValidatorParamsProtoMsg { typeUrl: "/tendermint.types.ValidatorParams"; value: Uint8Array; @@ -113,6 +133,9 @@ export interface ValidatorParamsSDKType { export interface VersionParams { appVersion: bigint; } +export interface ReactiveVersionParams { + appVersion: ComputedRef; +} export interface VersionParamsProtoMsg { typeUrl: "/tendermint.types.VersionParams"; value: Uint8Array; @@ -130,6 +153,10 @@ export interface HashedParams { blockMaxBytes: bigint; blockMaxGas: bigint; } +export interface ReactiveHashedParams { + blockMaxBytes: ComputedRef; + blockMaxGas: ComputedRef; +} export interface HashedParamsProtoMsg { typeUrl: "/tendermint.types.HashedParams"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/tendermint/types/types.ts b/__fixtures__/v-next/outputv4/tendermint/types/types.ts index 3590d11744..d005b90e30 100644 --- a/__fixtures__/v-next/outputv4/tendermint/types/types.ts +++ b/__fixtures__/v-next/outputv4/tendermint/types/types.ts @@ -5,6 +5,7 @@ import { ValidatorSet, ValidatorSetSDKType } from "./validator.js"; import { BinaryReader, BinaryWriter } from "../../binary.js"; import { isSet, bytesFromBase64, base64FromBytes, DeepPartial, toTimestamp, fromTimestamp } from "../../helpers.js"; import { JsonSafe } from "../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "tendermint.types"; /** BlockIdFlag indicates which BlcokID the signature is for */ export enum BlockIDFlag { @@ -101,6 +102,10 @@ export interface PartSetHeader { total: number; hash: Uint8Array; } +export interface ReactivePartSetHeader { + total: ComputedRef; + hash: ComputedRef; +} export interface PartSetHeaderProtoMsg { typeUrl: "/tendermint.types.PartSetHeader"; value: Uint8Array; @@ -115,6 +120,11 @@ export interface Part { bytes: Uint8Array; proof: Proof; } +export interface ReactivePart { + index: ComputedRef; + bytes: ComputedRef; + proof: ComputedRef; +} export interface PartProtoMsg { typeUrl: "/tendermint.types.Part"; value: Uint8Array; @@ -129,6 +139,10 @@ export interface BlockID { hash: Uint8Array; partSetHeader: PartSetHeader; } +export interface ReactiveBlockID { + hash: ComputedRef; + partSetHeader: ComputedRef; +} export interface BlockIDProtoMsg { typeUrl: "/tendermint.types.BlockID"; value: Uint8Array; @@ -166,6 +180,22 @@ export interface Header { /** original proposer of the block */ proposerAddress: Uint8Array; } +export interface ReactiveHeader { + version: ComputedRef; + chainId: ComputedRef; + height: ComputedRef; + time: ComputedRef; + lastBlockId: ComputedRef; + lastCommitHash: ComputedRef; + dataHash: ComputedRef; + validatorsHash: ComputedRef; + nextValidatorsHash: ComputedRef; + consensusHash: ComputedRef; + appHash: ComputedRef; + lastResultsHash: ComputedRef; + evidenceHash: ComputedRef; + proposerAddress: ComputedRef; +} export interface HeaderProtoMsg { typeUrl: "/tendermint.types.Header"; value: Uint8Array; @@ -196,6 +226,9 @@ export interface Data { */ txs: Uint8Array[]; } +export interface ReactiveData { + txs: ComputedRef; +} export interface DataProtoMsg { typeUrl: "/tendermint.types.Data"; value: Uint8Array; @@ -219,6 +252,16 @@ export interface Vote { validatorIndex: number; signature: Uint8Array; } +export interface ReactiveVote { + type: ComputedRef; + height: ComputedRef; + round: ComputedRef; + blockId: ComputedRef; + timestamp: ComputedRef; + validatorAddress: ComputedRef; + validatorIndex: ComputedRef; + signature: ComputedRef; +} export interface VoteProtoMsg { typeUrl: "/tendermint.types.Vote"; value: Uint8Array; @@ -244,6 +287,12 @@ export interface Commit { blockId: BlockID; signatures: CommitSig[]; } +export interface ReactiveCommit { + height: ComputedRef; + round: ComputedRef; + blockId: ComputedRef; + signatures: ComputedRef; +} export interface CommitProtoMsg { typeUrl: "/tendermint.types.Commit"; value: Uint8Array; @@ -262,6 +311,12 @@ export interface CommitSig { timestamp: Date; signature: Uint8Array; } +export interface ReactiveCommitSig { + blockIdFlag: ComputedRef; + validatorAddress: ComputedRef; + timestamp: ComputedRef; + signature: ComputedRef; +} export interface CommitSigProtoMsg { typeUrl: "/tendermint.types.CommitSig"; value: Uint8Array; @@ -282,6 +337,15 @@ export interface Proposal { timestamp: Date; signature: Uint8Array; } +export interface ReactiveProposal { + type: ComputedRef; + height: ComputedRef; + round: ComputedRef; + polRound: ComputedRef; + blockId: ComputedRef; + timestamp: ComputedRef; + signature: ComputedRef; +} export interface ProposalProtoMsg { typeUrl: "/tendermint.types.Proposal"; value: Uint8Array; @@ -299,6 +363,10 @@ export interface SignedHeader { header?: Header; commit?: Commit; } +export interface ReactiveSignedHeader { + header?: ComputedRef
; + commit?: ComputedRef; +} export interface SignedHeaderProtoMsg { typeUrl: "/tendermint.types.SignedHeader"; value: Uint8Array; @@ -311,6 +379,10 @@ export interface LightBlock { signedHeader?: SignedHeader; validatorSet?: ValidatorSet; } +export interface ReactiveLightBlock { + signedHeader?: ComputedRef; + validatorSet?: ComputedRef; +} export interface LightBlockProtoMsg { typeUrl: "/tendermint.types.LightBlock"; value: Uint8Array; @@ -325,6 +397,12 @@ export interface BlockMeta { header: Header; numTxs: bigint; } +export interface ReactiveBlockMeta { + blockId: ComputedRef; + blockSize: ComputedRef; + header: ComputedRef
; + numTxs: ComputedRef; +} export interface BlockMetaProtoMsg { typeUrl: "/tendermint.types.BlockMeta"; value: Uint8Array; @@ -341,6 +419,11 @@ export interface TxProof { data: Uint8Array; proof?: Proof; } +export interface ReactiveTxProof { + rootHash: ComputedRef; + data: ComputedRef; + proof?: ComputedRef; +} export interface TxProofProtoMsg { typeUrl: "/tendermint.types.TxProof"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/tendermint/types/validator.ts b/__fixtures__/v-next/outputv4/tendermint/types/validator.ts index 316b53ae0c..6918ad2f4f 100644 --- a/__fixtures__/v-next/outputv4/tendermint/types/validator.ts +++ b/__fixtures__/v-next/outputv4/tendermint/types/validator.ts @@ -2,12 +2,18 @@ import { PublicKey, PublicKeySDKType } from "../crypto/keys.js"; import { BinaryReader, BinaryWriter } from "../../binary.js"; import { isSet, DeepPartial, bytesFromBase64, base64FromBytes } from "../../helpers.js"; import { JsonSafe } from "../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "tendermint.types"; export interface ValidatorSet { validators: Validator[]; proposer?: Validator; totalVotingPower: bigint; } +export interface ReactiveValidatorSet { + validators: ComputedRef; + proposer?: ComputedRef; + totalVotingPower: ComputedRef; +} export interface ValidatorSetProtoMsg { typeUrl: "/tendermint.types.ValidatorSet"; value: Uint8Array; @@ -23,6 +29,12 @@ export interface Validator { votingPower: bigint; proposerPriority: bigint; } +export interface ReactiveValidator { + address: ComputedRef; + pubKey: ComputedRef; + votingPower: ComputedRef; + proposerPriority: ComputedRef; +} export interface ValidatorProtoMsg { typeUrl: "/tendermint.types.Validator"; value: Uint8Array; @@ -37,6 +49,10 @@ export interface SimpleValidator { pubKey?: PublicKey; votingPower: bigint; } +export interface ReactiveSimpleValidator { + pubKey?: ComputedRef; + votingPower: ComputedRef; +} export interface SimpleValidatorProtoMsg { typeUrl: "/tendermint.types.SimpleValidator"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/tendermint/version/types.ts b/__fixtures__/v-next/outputv4/tendermint/version/types.ts index d0ccb0dfbb..cea95caa41 100644 --- a/__fixtures__/v-next/outputv4/tendermint/version/types.ts +++ b/__fixtures__/v-next/outputv4/tendermint/version/types.ts @@ -1,6 +1,7 @@ import { BinaryReader, BinaryWriter } from "../../binary.js"; import { isSet, DeepPartial } from "../../helpers.js"; import { JsonSafe } from "../../json-safe.js"; +import { ComputedRef } from "vue"; export const protobufPackage = "tendermint.version"; /** * App includes the protocol and software version for the application. @@ -11,6 +12,10 @@ export interface App { protocol: bigint; software: string; } +export interface ReactiveApp { + protocol: ComputedRef; + software: ComputedRef; +} export interface AppProtoMsg { typeUrl: "/tendermint.version.App"; value: Uint8Array; @@ -33,6 +38,10 @@ export interface Consensus { block: bigint; app: bigint; } +export interface ReactiveConsensus { + block: ComputedRef; + app: ComputedRef; +} export interface ConsensusProtoMsg { typeUrl: "/tendermint.version.Consensus"; value: Uint8Array; diff --git a/__fixtures__/v-next/outputv4/vue-query.ts b/__fixtures__/v-next/outputv4/vue-query.ts index 88a001a889..d67b7cae2f 100644 --- a/__fixtures__/v-next/outputv4/vue-query.ts +++ b/__fixtures__/v-next/outputv4/vue-query.ts @@ -4,7 +4,7 @@ * and run the transpile command or npm scripts command that is used to regenerate this bundle. */ -import { getRpcClient } from './extern' +import { getRpcClient } from './extern.js' import { useQuery, UseQueryOptions, @@ -12,7 +12,7 @@ import { import { Ref, isRef } from 'vue' import { HttpEndpoint, ProtobufRpcClient } from '@cosmjs/stargate'; -import { Tendermint34Client } from '@cosmjs/tendermint-rpc'; +import { CometClient, connectComet, Tendermint34Client, Tendermint37Client } from '@cosmjs/tendermint-rpc'; export interface VueQueryParams { options?: Omit, 'queryKey'>; @@ -58,7 +58,7 @@ export const useRpcClient = ({ return useQuery(params); }; -interface UseTendermintClient extends VueQueryParams { +interface UseTendermintClient extends VueQueryParams { rpcEndpoint: Ref; } @@ -69,9 +69,9 @@ export const useTendermintClient = ({ rpcEndpoint, options, }: UseTendermintClient) => { - const { data: client } = useQuery({ + const { data: client } = useQuery( queryKey: ['client', 'tendermint', rpcEndpoint], - queryFn: () => Tendermint34Client.connect(rpcEndpoint.value), + queryFn: () => connectComet(rpcEndpoint.value), // allow overriding throwOnError: (e) => { throw new Error(`Failed to connect to ${rpcEndpoint}` + '\n' + e) diff --git a/packages/telescope/__tests__/telescope-v4.test.ts b/packages/telescope/__tests__/telescope-v4.test.ts index 6edb5a52ec..3b9fb19d48 100644 --- a/packages/telescope/__tests__/telescope-v4.test.ts +++ b/packages/telescope/__tests__/telescope-v4.test.ts @@ -188,6 +188,15 @@ const options: TelescopeOptions = { } }, + vueQuery: { + enabled: true, + include: { + patterns: ['osmosis/**/gamm/**/query.proto'], + protos: ['akash/cert/v1beta2/query.proto'], + packages: ['cosmos.bank.v1beta1', 'cosmos.staking.v1beta1', 'cosmos.gov.v1'] + } + }, + mobx: { enabled: true, include: { diff --git a/packages/telescope/__tests__/telescope-vuequery.test.ts b/packages/telescope/__tests__/telescope-vuequery.test.ts deleted file mode 100644 index 9fede65ce7..0000000000 --- a/packages/telescope/__tests__/telescope-vuequery.test.ts +++ /dev/null @@ -1,288 +0,0 @@ -import { TelescopeBuilder } from '../src/builder'; -import { TelescopeOptions } from '@cosmology/types'; -import { - bundleBaseRegistries, - bundleRegistries, - parseContextsForRegistry -} from '../src/bundle'; -import { TelescopeInput } from '../src'; -import { kebab } from 'case'; -import { join } from 'path'; -import { getTestProtoStore } from '../test-utils'; -import { TelescopeParseContext } from '../src/build'; - -const outPath = __dirname + '/../../../__fixtures__/v-next/outputv4'; -const store = getTestProtoStore(); -store.traverseAll(); - -const options: TelescopeOptions = { - - env: 'v-next', - removeUnusedImports: false, - classesUseArrowFunctions: false, - - tsDisable: { - disableAll: false, - patterns: ['osmosis/**/*amino.ts'], - files: ['akash/deployment/v1beta1/deployment.ts'] - }, - - eslintDisable: { - disableAll: false, - patterns: ['akash/**/*amino.ts'], - files: ['akash/deployment/v1beta1/deployment.ts'] - }, - - interfaces: { - enabled: false, - useUnionTypes: false - }, - - prototypes: { - enabled: true, - parser: { - keepCase: false - }, - methods: { - encode: true, - decode: true, - fromJSON: true, - toJSON: true, - fromPartial: true, - toSDK: true, - fromSDKJSON: true, - fromSDK: true - }, - includePackageVar: true, - fieldDefaultIsOptional: false, - useOptionalNullable: true, - allowUndefinedTypes: false, - excluded: { - packages: [ - // 'cosmos.gov.v1', - // 'cosmos.group.v1' - ], - protos: ['cosmos/authz/v1beta1/event.proto'] - }, - typingsFormat: { - customTypes: { - useCosmosSDKDec: true - }, - num64: 'bigint', - useDeepPartial: true, - useExact: false, - timestamp: 'date', - duration: 'duration' - } - }, - - bundle: { - enabled: true - }, - - stargateClients: { - enabled: true, - includeCosmosDefaultTypes: true - }, - - aggregatedLCD: { - dir: 'osmosis', - filename: 'agg-lcd.ts', - packages: ['cosmos.bank.v1beta1', 'osmosis.gamm.v1beta1'], - addToBundle: true - }, - - lcdClients: { - enabled: true, - scopedIsExclusive: false, - scoped: [ - { - dir: 'osmosis', - filename: 'custom-lcd-client.ts', - packages: [ - 'cosmos.bank.v1beta1', - 'cosmos.gov.v1beta1', - 'osmosis.gamm.v1beta1' - ], - addToBundle: true, - methodName: 'createCustomLCDClient' - }, - { - dir: 'evmos', - filename: 'custom-lcd-client.ts', - packages: [ - 'cosmos.bank.v1beta1', - 'cosmos.gov.v1beta1', - 'evmos.erc20.v1' - ], - addToBundle: true, - methodName: 'createEvmosLCDClient' - } - ] - }, - - rpcClients: { - enabled: true, - camelCase: true, - scopedIsExclusive: false, - scoped: [ - { - dir: 'cosmos', - filename: 'cosmos-rpc-client.ts', - packages: ['cosmos.bank.v1beta1', 'cosmos.gov.v1beta1'], - addToBundle: true, - methodNameQuery: 'createCosmicRPCQueryClient', - methodNameTx: 'createCosmicRPCTxClient' - }, - { - dir: 'evmos', - filename: 'evmos-rpc-client.ts', - packages: [ - 'cosmos.bank.v1beta1', - 'cosmos.gov.v1beta1', - 'evmos.erc20.v1' - ], - addToBundle: true, - methodNameQuery: 'createEvmosRPCQueryClient', - methodNameTx: 'createEvmosRPCTxClient' - } - ], - enabledServices: [ - 'Msg', - 'Query', - 'Service', - 'ReflectionService', - 'ABCIApplication' - ] - }, - - reactQuery: { - enabled: false, - include: { - patterns: ['osmosis/**/gamm/**/query.proto'], - protos: ['akash/cert/v1beta2/query.proto'], - packages: ['cosmos.bank.v1beta1'] - } - }, - - vueQuery: { - enabled: true, - include: { - patterns: ['osmosis/**/gamm/**/query.proto'], - protos: ['akash/cert/v1beta2/query.proto'], - packages: ['cosmos.bank.v1beta1', 'cosmos.staking.v1beta1', 'cosmos.gov.v1'] - } - }, - - mobx: { - enabled: false, - include: { - patterns: ['osmosis/**/gamm/**/query.proto'], - protos: ['akash/cert/v1beta2/query.proto'], - packages: ['cosmos.gov.v1beta1'] - } - }, - - pinia: { - enabled: false, - include: { - patterns: ['osmosis/**/gamm/**/query.proto'], - protos: ['akash/cert/v1beta2/query.proto'], - packages: ['evmos.erc20.v1'] - } - }, - - aminoEncoding: { - enabled: true, - exceptions: { - '/akash.audit.v1beta2.MsgSignProviderAttributes': { - aminoType: 'mymessage-testonly' - } - }, - typeUrlToAmino: (typeUrl: string) => { - const name = typeUrl.replace(/^\//, ''); - const elements = name.split('.'); - const pkg = elements[0]; - - switch (pkg) { - case 'akash': { - const n = elements.filter((a) => !a.match(/v1beta1/)); - n[n.length - 1] = kebab(n[n.length - 1]); - n[n.length - 1] = n[n.length - 1].replace(/^msg-/, 'testonly-'); - return n.join('/'); - } - } - }, - useLegacyInlineEncoding: true - }, - packages: { - akash: { - classesUseArrowFunctions: true, - deployment: { - v1beta1: { - prototypes: { - allowUndefinedTypes: true, - typingsFormat: { - useDeepPartial: false - } - }, - aminoEncoding: { - enabled: false - }, - rpcClients: { - inline: true - } - } - }, - prototypes: { - typingsFormat: { - useExact: true - } - } - } - } -}; - -const input: TelescopeInput = { - outPath, - protoDirs: [ - __dirname + '/../../../__fixtures__/chain1', - __dirname + '/../../../__fixtures__/osmojs/ics23/proto', - __dirname + '/../../../__fixtures__/osmojs/cosmos-sdk/proto', - __dirname + '/../../../__fixtures__/osmojs/ibc-go/proto', - __dirname + '/../../../__fixtures__/osmojs/wasmd/proto', - __dirname + '/../../../__fixtures__/osmojs/osmosis/proto', - ], - options -}; - -const telescope = new TelescopeBuilder(input); - -describe('bundle package registries and root file names', () => { - it('bundleRegistries', async () => { - await telescope.build(); - const registries = bundleRegistries(telescope); - const result = registries.map((reg) => ({ - ['package']: reg.package, - contexts: parseContextsForRegistry( - reg.contexts as TelescopeParseContext[] - ) - })); - // console.log(JSON.stringify(result, null, 2)); - }); - - it('bundleBaseRegistries', () => { - const registries = bundleBaseRegistries(telescope); - const result = registries.map((reg) => ({ - base: reg.base, - pkgs: reg.pkgs.map((obj) => { - return { - ['package']: obj.package, - contexts: parseContextsForRegistry( - obj.contexts as TelescopeParseContext[] - ) - }; - }) - })); - }); -});