Comparing version 0.0.9-alpha to 0.0.10-alpha
// THIS FILE IS GENERATED AUTOMATICALLY. DO NOT MODIFY. | ||
import { Ignite } from "ts-client"; | ||
import Module from "@ignt/client/cosmos.auth.v1beta1/module"; | ||
import { Ignite } from '../../client/' | ||
import Module from '../../client/cosmos.auth.v1beta1/module' | ||
import { unref } from 'vue' | ||
@@ -11,13 +11,10 @@ type QueryAccountsType = typeof Module.prototype.queryAccounts | ||
type Response = { | ||
queryAccounts: QueryAccountsType | ||
queryAccount: QueryAccountType | ||
queryParams: QueryParamsType | ||
} | ||
type Params = { | ||
ignite: Ignite; | ||
ignite: Ignite | ||
} | ||
@@ -27,31 +24,21 @@ | ||
let { | ||
queryAccounts, | ||
queryAccount, | ||
queryParams, | ||
} = ignite.CosmosAuthV1Beta1 | ||
queryAccounts, | ||
queryAccounts = queryAccounts.bind(ignite.CosmosAuthV1Beta1) | ||
queryAccount = queryAccount.bind(ignite.CosmosAuthV1Beta1) | ||
queryParams = queryParams.bind(ignite.CosmosAuthV1Beta1) | ||
queryAccount, | ||
queryParams | ||
} = unref(ignite.cosmosAuthV1Beta1) | ||
queryAccounts = queryAccounts.bind(ignite.cosmosAuthV1Beta1) | ||
queryAccount = queryAccount.bind(ignite.cosmosAuthV1Beta1) | ||
queryParams = queryParams.bind(ignite.cosmosAuthV1Beta1) | ||
return { | ||
queryAccounts, | ||
queryAccount, | ||
queryParams, | ||
queryAccounts, | ||
queryAccount, | ||
queryParams | ||
} | ||
@@ -58,0 +45,0 @@ } |
@@ -1,1 +0,1 @@ | ||
export * from './composable'; | ||
export * from './composable' |
// THIS FILE IS GENERATED AUTOMATICALLY. DO NOT MODIFY. | ||
import { Ignite } from "@ignt/client";import Module from "@ignt/client/cosmos.bank.v1beta1/module"; | ||
import { Ignite } from '../../client/' | ||
import Module from '../../client/cosmos.bank.v1beta1/module' | ||
import { unref } from 'vue' | ||
type SendMsgSendType = typeof Module.prototype.sendMsgSend | ||
@@ -16,7 +18,6 @@ type SendMsgMultiSendType = typeof Module.prototype.sendMsgMultiSend | ||
type Response = { | ||
sendMsgSend: SendMsgSendType | ||
sendMsgMultiSend: SendMsgMultiSendType | ||
type Response = { | ||
sendMsgSend: SendMsgSendType, | ||
sendMsgMultiSend: SendMsgMultiSendType, | ||
queryBalance: QueryBalanceType | ||
@@ -29,7 +30,6 @@ queryAllBalances: QueryAllBalancesType | ||
queryDenomsMetadata: QueryDenomsMetadataType | ||
} | ||
type Params = { | ||
ignite: Ignite; | ||
ignite: Ignite | ||
} | ||
@@ -39,67 +39,57 @@ | ||
let { | ||
sendMsgSend, | ||
sendMsgMultiSend, | ||
queryBalance, | ||
queryAllBalances, | ||
queryTotalSupply, | ||
querySupplyOf, | ||
queryParams, | ||
queryDenomMetadata, | ||
queryDenomsMetadata, | ||
} = ignite.CosmosBankV1Beta1 | ||
sendMsgSend, | ||
sendMsgSend = sendMsgSend.bind(ignite.CosmosBankV1Beta1) | ||
sendMsgMultiSend = sendMsgMultiSend.bind(ignite.CosmosBankV1Beta1) | ||
queryBalance = queryBalance.bind(ignite.CosmosBankV1Beta1) | ||
queryAllBalances = queryAllBalances.bind(ignite.CosmosBankV1Beta1) | ||
queryTotalSupply = queryTotalSupply.bind(ignite.CosmosBankV1Beta1) | ||
querySupplyOf = querySupplyOf.bind(ignite.CosmosBankV1Beta1) | ||
queryParams = queryParams.bind(ignite.CosmosBankV1Beta1) | ||
queryDenomMetadata = queryDenomMetadata.bind(ignite.CosmosBankV1Beta1) | ||
queryDenomsMetadata = queryDenomsMetadata.bind(ignite.CosmosBankV1Beta1) | ||
sendMsgMultiSend, | ||
queryBalance, | ||
queryAllBalances, | ||
queryTotalSupply, | ||
querySupplyOf, | ||
queryParams, | ||
queryDenomMetadata, | ||
queryDenomsMetadata | ||
} = unref(ignite.cosmosBankV1Beta1) | ||
sendMsgSend = sendMsgSend.bind(ignite.cosmosBankV1Beta1) | ||
sendMsgMultiSend = sendMsgMultiSend.bind(ignite.cosmosBankV1Beta1) | ||
queryBalance = queryBalance.bind(ignite.cosmosBankV1Beta1) | ||
queryAllBalances = queryAllBalances.bind(ignite.cosmosBankV1Beta1) | ||
queryTotalSupply = queryTotalSupply.bind(ignite.cosmosBankV1Beta1) | ||
querySupplyOf = querySupplyOf.bind(ignite.cosmosBankV1Beta1) | ||
queryParams = queryParams.bind(ignite.cosmosBankV1Beta1) | ||
queryDenomMetadata = queryDenomMetadata.bind(ignite.cosmosBankV1Beta1) | ||
queryDenomsMetadata = queryDenomsMetadata.bind(ignite.cosmosBankV1Beta1) | ||
return { | ||
sendMsgSend, | ||
sendMsgMultiSend, | ||
queryBalance, | ||
queryAllBalances, | ||
queryTotalSupply, | ||
querySupplyOf, | ||
queryParams, | ||
queryDenomMetadata, | ||
queryDenomsMetadata, | ||
sendMsgSend, | ||
sendMsgMultiSend, | ||
queryBalance, | ||
queryAllBalances, | ||
queryTotalSupply, | ||
querySupplyOf, | ||
queryParams, | ||
queryDenomMetadata, | ||
queryDenomsMetadata | ||
} | ||
@@ -106,0 +96,0 @@ } |
@@ -1,1 +0,1 @@ | ||
export * from './composable'; | ||
export * from './composable' |
// THIS FILE IS GENERATED AUTOMATICALLY. DO NOT MODIFY. | ||
import { Ignite } from "@ignt/client";import Module from "@ignt/client/cosmos.base.tendermint.v1beta1/module"; | ||
import { Ignite } from '../../client/' | ||
import Module from '../../client/cosmos.base.tendermint.v1beta1/module' | ||
import { unref } from 'vue' | ||
@@ -9,9 +10,10 @@ type ServiceGetNodeInfoType = typeof Module.prototype.serviceGetNodeInfo | ||
type ServiceGetLatestBlockType = typeof Module.prototype.serviceGetLatestBlock | ||
type ServiceGetBlockByHeightType = typeof Module.prototype.serviceGetBlockByHeight | ||
type ServiceGetLatestValidatorSetType = typeof Module.prototype.serviceGetLatestValidatorSet | ||
type ServiceGetValidatorSetByHeightType = typeof Module.prototype.serviceGetValidatorSetByHeight | ||
type ServiceGetBlockByHeightType = | ||
typeof Module.prototype.serviceGetBlockByHeight | ||
type ServiceGetLatestValidatorSetType = | ||
typeof Module.prototype.serviceGetLatestValidatorSet | ||
type ServiceGetValidatorSetByHeightType = | ||
typeof Module.prototype.serviceGetValidatorSetByHeight | ||
type Response = { | ||
serviceGetNodeInfo: ServiceGetNodeInfoType | ||
@@ -23,7 +25,6 @@ serviceGetSyncing: ServiceGetSyncingType | ||
serviceGetValidatorSetByHeight: ServiceGetValidatorSetByHeightType | ||
} | ||
type Params = { | ||
ignite: Ignite; | ||
ignite: Ignite | ||
} | ||
@@ -33,49 +34,49 @@ | ||
let { | ||
serviceGetNodeInfo, | ||
serviceGetSyncing, | ||
serviceGetLatestBlock, | ||
serviceGetBlockByHeight, | ||
serviceGetLatestValidatorSet, | ||
serviceGetValidatorSetByHeight, | ||
} = ignite.CosmosBaseTendermintV1Beta1 | ||
serviceGetNodeInfo, | ||
serviceGetNodeInfo = serviceGetNodeInfo.bind(ignite.CosmosBaseTendermintV1Beta1) | ||
serviceGetSyncing = serviceGetSyncing.bind(ignite.CosmosBaseTendermintV1Beta1) | ||
serviceGetLatestBlock = serviceGetLatestBlock.bind(ignite.CosmosBaseTendermintV1Beta1) | ||
serviceGetBlockByHeight = serviceGetBlockByHeight.bind(ignite.CosmosBaseTendermintV1Beta1) | ||
serviceGetLatestValidatorSet = serviceGetLatestValidatorSet.bind(ignite.CosmosBaseTendermintV1Beta1) | ||
serviceGetValidatorSetByHeight = serviceGetValidatorSetByHeight.bind(ignite.CosmosBaseTendermintV1Beta1) | ||
serviceGetSyncing, | ||
serviceGetLatestBlock, | ||
serviceGetBlockByHeight, | ||
serviceGetLatestValidatorSet, | ||
serviceGetValidatorSetByHeight | ||
} = unref(ignite.cosmosBaseTendermintV1Beta1) | ||
serviceGetNodeInfo = serviceGetNodeInfo.bind( | ||
ignite.cosmosBaseTendermintV1Beta1 | ||
) | ||
serviceGetSyncing = serviceGetSyncing.bind(ignite.cosmosBaseTendermintV1Beta1) | ||
serviceGetLatestBlock = serviceGetLatestBlock.bind( | ||
ignite.cosmosBaseTendermintV1Beta1 | ||
) | ||
serviceGetBlockByHeight = serviceGetBlockByHeight.bind( | ||
ignite.cosmosBaseTendermintV1Beta1 | ||
) | ||
serviceGetLatestValidatorSet = serviceGetLatestValidatorSet.bind( | ||
ignite.cosmosBaseTendermintV1Beta1 | ||
) | ||
serviceGetValidatorSetByHeight = serviceGetValidatorSetByHeight.bind( | ||
ignite.cosmosBaseTendermintV1Beta1 | ||
) | ||
return { | ||
serviceGetNodeInfo, | ||
serviceGetSyncing, | ||
serviceGetLatestBlock, | ||
serviceGetBlockByHeight, | ||
serviceGetLatestValidatorSet, | ||
serviceGetValidatorSetByHeight, | ||
serviceGetNodeInfo, | ||
serviceGetSyncing, | ||
serviceGetLatestBlock, | ||
serviceGetBlockByHeight, | ||
serviceGetLatestValidatorSet, | ||
serviceGetValidatorSetByHeight | ||
} | ||
@@ -82,0 +83,0 @@ } |
@@ -1,1 +0,1 @@ | ||
export * from './composable'; | ||
export * from './composable' |
// THIS FILE IS GENERATED AUTOMATICALLY. DO NOT MODIFY. | ||
import { Ignite } from "@ignt/client";import Module from "@ignt/client/cosmos.crisis.v1beta1/module"; | ||
import { Ignite } from '../../client/' | ||
import Module from '../../client/cosmos.crisis.v1beta1/module' | ||
import { unref } from 'vue' | ||
type SendMsgVerifyInvariantType = typeof Module.prototype.sendMsgVerifyInvariant | ||
type Response = { | ||
sendMsgVerifyInvariant: SendMsgVerifyInvariantType, | ||
sendMsgVerifyInvariant: SendMsgVerifyInvariantType | ||
} | ||
type Params = { | ||
ignite: Ignite; | ||
ignite: Ignite | ||
} | ||
function useModule({ ignite }: Params): Response { | ||
let { | ||
sendMsgVerifyInvariant, | ||
} = ignite.CosmosCrisisV1Beta1 | ||
let { sendMsgVerifyInvariant } = unref(ignite.cosmosCrisisV1Beta1) | ||
sendMsgVerifyInvariant = sendMsgVerifyInvariant.bind(ignite.CosmosCrisisV1Beta1) | ||
sendMsgVerifyInvariant = sendMsgVerifyInvariant.bind( | ||
ignite.cosmosCrisisV1Beta1 | ||
) | ||
return { | ||
sendMsgVerifyInvariant, | ||
sendMsgVerifyInvariant | ||
} | ||
@@ -39,0 +27,0 @@ } |
@@ -1,1 +0,1 @@ | ||
export * from './composable'; | ||
export * from './composable' |
// THIS FILE IS GENERATED AUTOMATICALLY. DO NOT MODIFY. | ||
import { Ignite } from "@ignt/client";import Module from "@ignt/client/cosmos.distribution.v1beta1/module"; | ||
type SendMsgSetWithdrawAddressType = typeof Module.prototype.sendMsgSetWithdrawAddress | ||
type SendMsgWithdrawValidatorCommissionType = typeof Module.prototype.sendMsgWithdrawValidatorCommission | ||
type SendMsgFundCommunityPoolType = typeof Module.prototype.sendMsgFundCommunityPool | ||
type SendMsgWithdrawDelegatorRewardType = typeof Module.prototype.sendMsgWithdrawDelegatorReward | ||
import { Ignite } from '../../client/' | ||
import Module from '../../client/cosmos.distribution.v1beta1/module' | ||
import { unref } from 'vue' | ||
type SendMsgFundCommunityPoolType = | ||
typeof Module.prototype.sendMsgFundCommunityPool | ||
type SendMsgSetWithdrawAddressType = | ||
typeof Module.prototype.sendMsgSetWithdrawAddress | ||
type SendMsgWithdrawDelegatorRewardType = | ||
typeof Module.prototype.sendMsgWithdrawDelegatorReward | ||
type SendMsgWithdrawValidatorCommissionType = | ||
typeof Module.prototype.sendMsgWithdrawValidatorCommission | ||
type QueryParamsType = typeof Module.prototype.queryParams | ||
type QueryValidatorOutstandingRewardsType = typeof Module.prototype.queryValidatorOutstandingRewards | ||
type QueryValidatorCommissionType = typeof Module.prototype.queryValidatorCommission | ||
type QueryValidatorOutstandingRewardsType = | ||
typeof Module.prototype.queryValidatorOutstandingRewards | ||
type QueryValidatorCommissionType = | ||
typeof Module.prototype.queryValidatorCommission | ||
type QueryValidatorSlashesType = typeof Module.prototype.queryValidatorSlashes | ||
type QueryDelegationRewardsType = typeof Module.prototype.queryDelegationRewards | ||
type QueryDelegationTotalRewardsType = typeof Module.prototype.queryDelegationTotalRewards | ||
type QueryDelegatorValidatorsType = typeof Module.prototype.queryDelegatorValidators | ||
type QueryDelegatorWithdrawAddressType = typeof Module.prototype.queryDelegatorWithdrawAddress | ||
type QueryDelegationTotalRewardsType = | ||
typeof Module.prototype.queryDelegationTotalRewards | ||
type QueryDelegatorValidatorsType = | ||
typeof Module.prototype.queryDelegatorValidators | ||
type QueryDelegatorWithdrawAddressType = | ||
typeof Module.prototype.queryDelegatorWithdrawAddress | ||
type QueryCommunityPoolType = typeof Module.prototype.queryCommunityPool | ||
type Response = { | ||
sendMsgFundCommunityPool: SendMsgFundCommunityPoolType | ||
sendMsgSetWithdrawAddress: SendMsgSetWithdrawAddressType | ||
sendMsgWithdrawDelegatorReward: SendMsgWithdrawDelegatorRewardType | ||
sendMsgWithdrawValidatorCommission: SendMsgWithdrawValidatorCommissionType | ||
type Response = { | ||
sendMsgSetWithdrawAddress: SendMsgSetWithdrawAddressType, | ||
sendMsgWithdrawValidatorCommission: SendMsgWithdrawValidatorCommissionType, | ||
sendMsgFundCommunityPool: SendMsgFundCommunityPoolType, | ||
sendMsgWithdrawDelegatorReward: SendMsgWithdrawDelegatorRewardType, | ||
queryParams: QueryParamsType | ||
@@ -36,7 +46,6 @@ queryValidatorOutstandingRewards: QueryValidatorOutstandingRewardsType | ||
queryCommunityPool: QueryCommunityPoolType | ||
} | ||
type Params = { | ||
ignite: Ignite; | ||
ignite: Ignite | ||
} | ||
@@ -46,91 +55,103 @@ | ||
let { | ||
sendMsgSetWithdrawAddress, | ||
sendMsgWithdrawValidatorCommission, | ||
sendMsgFundCommunityPool, | ||
sendMsgWithdrawDelegatorReward, | ||
queryParams, | ||
queryValidatorOutstandingRewards, | ||
queryValidatorCommission, | ||
queryValidatorSlashes, | ||
queryDelegationRewards, | ||
queryDelegationTotalRewards, | ||
queryDelegatorValidators, | ||
queryDelegatorWithdrawAddress, | ||
queryCommunityPool, | ||
} = ignite.CosmosDistributionV1Beta1 | ||
sendMsgFundCommunityPool, | ||
sendMsgSetWithdrawAddress = sendMsgSetWithdrawAddress.bind(ignite.CosmosDistributionV1Beta1) | ||
sendMsgWithdrawValidatorCommission = sendMsgWithdrawValidatorCommission.bind(ignite.CosmosDistributionV1Beta1) | ||
sendMsgFundCommunityPool = sendMsgFundCommunityPool.bind(ignite.CosmosDistributionV1Beta1) | ||
sendMsgWithdrawDelegatorReward = sendMsgWithdrawDelegatorReward.bind(ignite.CosmosDistributionV1Beta1) | ||
queryParams = queryParams.bind(ignite.CosmosDistributionV1Beta1) | ||
queryValidatorOutstandingRewards = queryValidatorOutstandingRewards.bind(ignite.CosmosDistributionV1Beta1) | ||
queryValidatorCommission = queryValidatorCommission.bind(ignite.CosmosDistributionV1Beta1) | ||
queryValidatorSlashes = queryValidatorSlashes.bind(ignite.CosmosDistributionV1Beta1) | ||
queryDelegationRewards = queryDelegationRewards.bind(ignite.CosmosDistributionV1Beta1) | ||
queryDelegationTotalRewards = queryDelegationTotalRewards.bind(ignite.CosmosDistributionV1Beta1) | ||
queryDelegatorValidators = queryDelegatorValidators.bind(ignite.CosmosDistributionV1Beta1) | ||
queryDelegatorWithdrawAddress = queryDelegatorWithdrawAddress.bind(ignite.CosmosDistributionV1Beta1) | ||
queryCommunityPool = queryCommunityPool.bind(ignite.CosmosDistributionV1Beta1) | ||
sendMsgSetWithdrawAddress, | ||
sendMsgWithdrawDelegatorReward, | ||
sendMsgWithdrawValidatorCommission, | ||
queryParams, | ||
queryValidatorOutstandingRewards, | ||
queryValidatorCommission, | ||
queryValidatorSlashes, | ||
queryDelegationRewards, | ||
queryDelegationTotalRewards, | ||
queryDelegatorValidators, | ||
queryDelegatorWithdrawAddress, | ||
queryCommunityPool | ||
} = unref(ignite.cosmosDistributionV1Beta1) | ||
sendMsgFundCommunityPool = sendMsgFundCommunityPool.bind( | ||
ignite.cosmosDistributionV1Beta1 | ||
) | ||
sendMsgSetWithdrawAddress = sendMsgSetWithdrawAddress.bind( | ||
ignite.cosmosDistributionV1Beta1 | ||
) | ||
sendMsgWithdrawDelegatorReward = sendMsgWithdrawDelegatorReward.bind( | ||
ignite.cosmosDistributionV1Beta1 | ||
) | ||
sendMsgWithdrawValidatorCommission = sendMsgWithdrawValidatorCommission.bind( | ||
ignite.cosmosDistributionV1Beta1 | ||
) | ||
queryParams = queryParams.bind(ignite.cosmosDistributionV1Beta1) | ||
queryValidatorOutstandingRewards = queryValidatorOutstandingRewards.bind( | ||
ignite.cosmosDistributionV1Beta1 | ||
) | ||
queryValidatorCommission = queryValidatorCommission.bind( | ||
ignite.cosmosDistributionV1Beta1 | ||
) | ||
queryValidatorSlashes = queryValidatorSlashes.bind( | ||
ignite.cosmosDistributionV1Beta1 | ||
) | ||
queryDelegationRewards = queryDelegationRewards.bind( | ||
ignite.cosmosDistributionV1Beta1 | ||
) | ||
queryDelegationTotalRewards = queryDelegationTotalRewards.bind( | ||
ignite.cosmosDistributionV1Beta1 | ||
) | ||
queryDelegatorValidators = queryDelegatorValidators.bind( | ||
ignite.cosmosDistributionV1Beta1 | ||
) | ||
queryDelegatorWithdrawAddress = queryDelegatorWithdrawAddress.bind( | ||
ignite.cosmosDistributionV1Beta1 | ||
) | ||
queryCommunityPool = queryCommunityPool.bind(ignite.cosmosDistributionV1Beta1) | ||
return { | ||
sendMsgSetWithdrawAddress, | ||
sendMsgWithdrawValidatorCommission, | ||
sendMsgFundCommunityPool, | ||
sendMsgWithdrawDelegatorReward, | ||
queryParams, | ||
queryValidatorOutstandingRewards, | ||
queryValidatorCommission, | ||
queryValidatorSlashes, | ||
queryDelegationRewards, | ||
queryDelegationTotalRewards, | ||
queryDelegatorValidators, | ||
queryDelegatorWithdrawAddress, | ||
queryCommunityPool, | ||
sendMsgFundCommunityPool, | ||
sendMsgSetWithdrawAddress, | ||
sendMsgWithdrawDelegatorReward, | ||
sendMsgWithdrawValidatorCommission, | ||
queryParams, | ||
queryValidatorOutstandingRewards, | ||
queryValidatorCommission, | ||
queryValidatorSlashes, | ||
queryDelegationRewards, | ||
queryDelegationTotalRewards, | ||
queryDelegatorValidators, | ||
queryDelegatorWithdrawAddress, | ||
queryCommunityPool | ||
} | ||
@@ -137,0 +158,0 @@ } |
@@ -1,1 +0,1 @@ | ||
export * from './composable'; | ||
export * from './composable' |
// THIS FILE IS GENERATED AUTOMATICALLY. DO NOT MODIFY. | ||
import { Ignite } from "@ignt/client";import Module from "@ignt/client/cosmos.evidence.v1beta1/module"; | ||
import { Ignite } from '../../client/' | ||
import Module from '../../client/cosmos.evidence.v1beta1/module' | ||
import { unref } from 'vue' | ||
type SendMsgSubmitEvidenceType = typeof Module.prototype.sendMsgSubmitEvidence | ||
@@ -10,13 +12,11 @@ | ||
type Response = { | ||
sendMsgSubmitEvidence: SendMsgSubmitEvidenceType | ||
type Response = { | ||
sendMsgSubmitEvidence: SendMsgSubmitEvidenceType, | ||
queryEvidence: QueryEvidenceType | ||
queryAllEvidence: QueryAllEvidenceType | ||
} | ||
type Params = { | ||
ignite: Ignite; | ||
ignite: Ignite | ||
} | ||
@@ -26,31 +26,23 @@ | ||
let { | ||
sendMsgSubmitEvidence, | ||
queryEvidence, | ||
queryAllEvidence, | ||
} = ignite.CosmosEvidenceV1Beta1 | ||
sendMsgSubmitEvidence, | ||
sendMsgSubmitEvidence = sendMsgSubmitEvidence.bind(ignite.CosmosEvidenceV1Beta1) | ||
queryEvidence = queryEvidence.bind(ignite.CosmosEvidenceV1Beta1) | ||
queryAllEvidence = queryAllEvidence.bind(ignite.CosmosEvidenceV1Beta1) | ||
queryEvidence, | ||
queryAllEvidence | ||
} = unref(ignite.cosmosEvidenceV1Beta1) | ||
sendMsgSubmitEvidence = sendMsgSubmitEvidence.bind( | ||
ignite.cosmosEvidenceV1Beta1 | ||
) | ||
queryEvidence = queryEvidence.bind(ignite.cosmosEvidenceV1Beta1) | ||
queryAllEvidence = queryAllEvidence.bind(ignite.cosmosEvidenceV1Beta1) | ||
return { | ||
sendMsgSubmitEvidence, | ||
queryEvidence, | ||
queryAllEvidence, | ||
sendMsgSubmitEvidence, | ||
queryEvidence, | ||
queryAllEvidence | ||
} | ||
@@ -57,0 +49,0 @@ } |
@@ -1,1 +0,1 @@ | ||
export * from './composable'; | ||
export * from './composable' |
// THIS FILE IS GENERATED AUTOMATICALLY. DO NOT MODIFY. | ||
import { Ignite } from "@ignt/client";import Module from "@ignt/client/cosmos.gov.v1beta1/module"; | ||
type SendMsgSubmitProposalType = typeof Module.prototype.sendMsgSubmitProposal | ||
import { Ignite } from '../../client/' | ||
import Module from '../../client/cosmos.gov.v1beta1/module' | ||
import { unref } from 'vue' | ||
type SendMsgVoteType = typeof Module.prototype.sendMsgVote | ||
type SendMsgDepositType = typeof Module.prototype.sendMsgDeposit | ||
type SendMsgVoteWeightedType = typeof Module.prototype.sendMsgVoteWeighted | ||
type SendMsgVoteType = typeof Module.prototype.sendMsgVote | ||
type SendMsgSubmitProposalType = typeof Module.prototype.sendMsgSubmitProposal | ||
@@ -19,9 +21,8 @@ type QueryProposalType = typeof Module.prototype.queryProposal | ||
type Response = { | ||
sendMsgVote: SendMsgVoteType | ||
sendMsgDeposit: SendMsgDepositType | ||
sendMsgVoteWeighted: SendMsgVoteWeightedType | ||
sendMsgSubmitProposal: SendMsgSubmitProposalType | ||
type Response = { | ||
sendMsgSubmitProposal: SendMsgSubmitProposalType, | ||
sendMsgDeposit: SendMsgDepositType, | ||
sendMsgVoteWeighted: SendMsgVoteWeightedType, | ||
sendMsgVote: SendMsgVoteType, | ||
queryProposal: QueryProposalType | ||
@@ -35,7 +36,6 @@ queryProposals: QueryProposalsType | ||
queryTallyResult: QueryTallyResultType | ||
} | ||
type Params = { | ||
ignite: Ignite; | ||
ignite: Ignite | ||
} | ||
@@ -45,85 +45,75 @@ | ||
let { | ||
sendMsgSubmitProposal, | ||
sendMsgDeposit, | ||
sendMsgVoteWeighted, | ||
sendMsgVote, | ||
queryProposal, | ||
queryProposals, | ||
queryVote, | ||
queryVotes, | ||
queryParams, | ||
queryDeposit, | ||
queryDeposits, | ||
queryTallyResult, | ||
} = ignite.CosmosGovV1Beta1 | ||
sendMsgVote, | ||
sendMsgSubmitProposal = sendMsgSubmitProposal.bind(ignite.CosmosGovV1Beta1) | ||
sendMsgDeposit = sendMsgDeposit.bind(ignite.CosmosGovV1Beta1) | ||
sendMsgVoteWeighted = sendMsgVoteWeighted.bind(ignite.CosmosGovV1Beta1) | ||
sendMsgVote = sendMsgVote.bind(ignite.CosmosGovV1Beta1) | ||
queryProposal = queryProposal.bind(ignite.CosmosGovV1Beta1) | ||
queryProposals = queryProposals.bind(ignite.CosmosGovV1Beta1) | ||
queryVote = queryVote.bind(ignite.CosmosGovV1Beta1) | ||
queryVotes = queryVotes.bind(ignite.CosmosGovV1Beta1) | ||
queryParams = queryParams.bind(ignite.CosmosGovV1Beta1) | ||
queryDeposit = queryDeposit.bind(ignite.CosmosGovV1Beta1) | ||
queryDeposits = queryDeposits.bind(ignite.CosmosGovV1Beta1) | ||
queryTallyResult = queryTallyResult.bind(ignite.CosmosGovV1Beta1) | ||
sendMsgDeposit, | ||
sendMsgVoteWeighted, | ||
sendMsgSubmitProposal, | ||
queryProposal, | ||
queryProposals, | ||
queryVote, | ||
queryVotes, | ||
queryParams, | ||
queryDeposit, | ||
queryDeposits, | ||
queryTallyResult | ||
} = unref(ignite.cosmosGovV1Beta1) | ||
sendMsgVote = sendMsgVote.bind(ignite.cosmosGovV1Beta1) | ||
sendMsgDeposit = sendMsgDeposit.bind(ignite.cosmosGovV1Beta1) | ||
sendMsgVoteWeighted = sendMsgVoteWeighted.bind(ignite.cosmosGovV1Beta1) | ||
sendMsgSubmitProposal = sendMsgSubmitProposal.bind(ignite.cosmosGovV1Beta1) | ||
queryProposal = queryProposal.bind(ignite.cosmosGovV1Beta1) | ||
queryProposals = queryProposals.bind(ignite.cosmosGovV1Beta1) | ||
queryVote = queryVote.bind(ignite.cosmosGovV1Beta1) | ||
queryVotes = queryVotes.bind(ignite.cosmosGovV1Beta1) | ||
queryParams = queryParams.bind(ignite.cosmosGovV1Beta1) | ||
queryDeposit = queryDeposit.bind(ignite.cosmosGovV1Beta1) | ||
queryDeposits = queryDeposits.bind(ignite.cosmosGovV1Beta1) | ||
queryTallyResult = queryTallyResult.bind(ignite.cosmosGovV1Beta1) | ||
return { | ||
sendMsgSubmitProposal, | ||
sendMsgDeposit, | ||
sendMsgVoteWeighted, | ||
sendMsgVote, | ||
queryProposal, | ||
queryProposals, | ||
queryVote, | ||
queryVotes, | ||
queryParams, | ||
queryDeposit, | ||
queryDeposits, | ||
queryTallyResult, | ||
sendMsgVote, | ||
sendMsgDeposit, | ||
sendMsgVoteWeighted, | ||
sendMsgSubmitProposal, | ||
queryProposal, | ||
queryProposals, | ||
queryVote, | ||
queryVotes, | ||
queryParams, | ||
queryDeposit, | ||
queryDeposits, | ||
queryTallyResult | ||
} | ||
@@ -130,0 +120,0 @@ } |
@@ -1,1 +0,1 @@ | ||
export * from './composable'; | ||
export * from './composable' |
// THIS FILE IS GENERATED AUTOMATICALLY. DO NOT MODIFY. | ||
import { Ignite } from "@ignt/client";import Module from "@ignt/client/cosmos.mint.v1beta1/module"; | ||
import { Ignite } from '../../client/' | ||
import Module from '../../client/cosmos.mint.v1beta1/module' | ||
import { unref } from 'vue' | ||
@@ -10,13 +11,10 @@ type QueryParamsType = typeof Module.prototype.queryParams | ||
type Response = { | ||
queryParams: QueryParamsType | ||
queryInflation: QueryInflationType | ||
queryAnnualProvisions: QueryAnnualProvisionsType | ||
} | ||
type Params = { | ||
ignite: Ignite; | ||
ignite: Ignite | ||
} | ||
@@ -26,31 +24,21 @@ | ||
let { | ||
queryParams, | ||
queryInflation, | ||
queryAnnualProvisions, | ||
} = ignite.CosmosMintV1Beta1 | ||
queryParams, | ||
queryParams = queryParams.bind(ignite.CosmosMintV1Beta1) | ||
queryInflation = queryInflation.bind(ignite.CosmosMintV1Beta1) | ||
queryAnnualProvisions = queryAnnualProvisions.bind(ignite.CosmosMintV1Beta1) | ||
queryInflation, | ||
queryAnnualProvisions | ||
} = unref(ignite.cosmosMintV1Beta1) | ||
queryParams = queryParams.bind(ignite.cosmosMintV1Beta1) | ||
queryInflation = queryInflation.bind(ignite.cosmosMintV1Beta1) | ||
queryAnnualProvisions = queryAnnualProvisions.bind(ignite.cosmosMintV1Beta1) | ||
return { | ||
queryParams, | ||
queryInflation, | ||
queryAnnualProvisions, | ||
queryParams, | ||
queryInflation, | ||
queryAnnualProvisions | ||
} | ||
@@ -57,0 +45,0 @@ } |
@@ -1,1 +0,1 @@ | ||
export * from './composable'; | ||
export * from './composable' |
// THIS FILE IS GENERATED AUTOMATICALLY. DO NOT MODIFY. | ||
import { Ignite } from "@ignt/client";import Module from "@ignt/client/cosmos.params.v1beta1/module"; | ||
import { Ignite } from '../../client/' | ||
import Module from '../../client/cosmos.params.v1beta1/module' | ||
import { unref } from 'vue' | ||
type QueryParamsType = typeof Module.prototype.queryParams | ||
type Response = { | ||
queryParams: QueryParamsType | ||
} | ||
type Params = { | ||
ignite: Ignite; | ||
ignite: Ignite | ||
} | ||
function useModule({ ignite }: Params): Response { | ||
let { | ||
queryParams, | ||
} = ignite.CosmosParamsV1Beta1 | ||
let { queryParams } = unref(ignite.cosmosParamsV1Beta1) | ||
queryParams = queryParams.bind(ignite.CosmosParamsV1Beta1) | ||
queryParams = queryParams.bind(ignite.cosmosParamsV1Beta1) | ||
return { | ||
queryParams, | ||
queryParams | ||
} | ||
@@ -39,0 +25,0 @@ } |
@@ -1,1 +0,1 @@ | ||
export * from './composable'; | ||
export * from './composable' |
// THIS FILE IS GENERATED AUTOMATICALLY. DO NOT MODIFY. | ||
import { Ignite } from "@ignt/client";import Module from "@ignt/client/cosmos.slashing.v1beta1/module"; | ||
import { Ignite } from '../../client/' | ||
import Module from '../../client/cosmos.slashing.v1beta1/module' | ||
import { unref } from 'vue' | ||
type SendMsgUnjailType = typeof Module.prototype.sendMsgUnjail | ||
@@ -11,14 +13,12 @@ | ||
type Response = { | ||
sendMsgUnjail: SendMsgUnjailType | ||
type Response = { | ||
sendMsgUnjail: SendMsgUnjailType, | ||
queryParams: QueryParamsType | ||
querySigningInfo: QuerySigningInfoType | ||
querySigningInfos: QuerySigningInfosType | ||
} | ||
type Params = { | ||
ignite: Ignite; | ||
ignite: Ignite | ||
} | ||
@@ -28,37 +28,27 @@ | ||
let { | ||
sendMsgUnjail, | ||
queryParams, | ||
querySigningInfo, | ||
querySigningInfos, | ||
} = ignite.CosmosSlashingV1Beta1 | ||
sendMsgUnjail, | ||
sendMsgUnjail = sendMsgUnjail.bind(ignite.CosmosSlashingV1Beta1) | ||
queryParams = queryParams.bind(ignite.CosmosSlashingV1Beta1) | ||
querySigningInfo = querySigningInfo.bind(ignite.CosmosSlashingV1Beta1) | ||
querySigningInfos = querySigningInfos.bind(ignite.CosmosSlashingV1Beta1) | ||
queryParams, | ||
querySigningInfo, | ||
querySigningInfos | ||
} = unref(ignite.cosmosSlashingV1Beta1) | ||
sendMsgUnjail = sendMsgUnjail.bind(ignite.cosmosSlashingV1Beta1) | ||
queryParams = queryParams.bind(ignite.cosmosSlashingV1Beta1) | ||
querySigningInfo = querySigningInfo.bind(ignite.cosmosSlashingV1Beta1) | ||
querySigningInfos = querySigningInfos.bind(ignite.cosmosSlashingV1Beta1) | ||
return { | ||
sendMsgUnjail, | ||
queryParams, | ||
querySigningInfo, | ||
querySigningInfos, | ||
sendMsgUnjail, | ||
queryParams, | ||
querySigningInfo, | ||
querySigningInfos | ||
} | ||
@@ -65,0 +55,0 @@ } |
@@ -1,1 +0,1 @@ | ||
export * from './composable'; | ||
export * from './composable' |
// THIS FILE IS GENERATED AUTOMATICALLY. DO NOT MODIFY. | ||
import { Ignite } from "@ignt/client";import Module from "@ignt/client/cosmos.staking.v1beta1/module"; | ||
type SendMsgEditValidatorType = typeof Module.prototype.sendMsgEditValidator | ||
import { Ignite } from '../../client/' | ||
import Module from '../../client/cosmos.staking.v1beta1/module' | ||
import { unref } from 'vue' | ||
type SendMsgBeginRedelegateType = typeof Module.prototype.sendMsgBeginRedelegate | ||
type SendMsgCreateValidatorType = typeof Module.prototype.sendMsgCreateValidator | ||
type SendMsgDelegateType = typeof Module.prototype.sendMsgDelegate | ||
type SendMsgCreateValidatorType = typeof Module.prototype.sendMsgCreateValidator | ||
type SendMsgBeginRedelegateType = typeof Module.prototype.sendMsgBeginRedelegate | ||
type SendMsgUndelegateType = typeof Module.prototype.sendMsgUndelegate | ||
type SendMsgEditValidatorType = typeof Module.prototype.sendMsgEditValidator | ||
type QueryValidatorsType = typeof Module.prototype.queryValidators | ||
type QueryValidatorType = typeof Module.prototype.queryValidator | ||
type QueryValidatorDelegationsType = typeof Module.prototype.queryValidatorDelegations | ||
type QueryValidatorUnbondingDelegationsType = typeof Module.prototype.queryValidatorUnbondingDelegations | ||
type QueryValidatorDelegationsType = | ||
typeof Module.prototype.queryValidatorDelegations | ||
type QueryValidatorUnbondingDelegationsType = | ||
typeof Module.prototype.queryValidatorUnbondingDelegations | ||
type QueryDelegationType = typeof Module.prototype.queryDelegation | ||
type QueryUnbondingDelegationType = typeof Module.prototype.queryUnbondingDelegation | ||
type QueryDelegatorDelegationsType = typeof Module.prototype.queryDelegatorDelegations | ||
type QueryDelegatorUnbondingDelegationsType = typeof Module.prototype.queryDelegatorUnbondingDelegations | ||
type QueryUnbondingDelegationType = | ||
typeof Module.prototype.queryUnbondingDelegation | ||
type QueryDelegatorDelegationsType = | ||
typeof Module.prototype.queryDelegatorDelegations | ||
type QueryDelegatorUnbondingDelegationsType = | ||
typeof Module.prototype.queryDelegatorUnbondingDelegations | ||
type QueryRedelegationsType = typeof Module.prototype.queryRedelegations | ||
type QueryDelegatorValidatorsType = typeof Module.prototype.queryDelegatorValidators | ||
type QueryDelegatorValidatorType = typeof Module.prototype.queryDelegatorValidator | ||
type QueryDelegatorValidatorsType = | ||
typeof Module.prototype.queryDelegatorValidators | ||
type QueryDelegatorValidatorType = | ||
typeof Module.prototype.queryDelegatorValidator | ||
type QueryHistoricalInfoType = typeof Module.prototype.queryHistoricalInfo | ||
@@ -26,10 +35,9 @@ type QueryPoolType = typeof Module.prototype.queryPool | ||
type Response = { | ||
sendMsgBeginRedelegate: SendMsgBeginRedelegateType | ||
sendMsgCreateValidator: SendMsgCreateValidatorType | ||
sendMsgDelegate: SendMsgDelegateType | ||
sendMsgUndelegate: SendMsgUndelegateType | ||
sendMsgEditValidator: SendMsgEditValidatorType | ||
type Response = { | ||
sendMsgEditValidator: SendMsgEditValidatorType, | ||
sendMsgDelegate: SendMsgDelegateType, | ||
sendMsgCreateValidator: SendMsgCreateValidatorType, | ||
sendMsgBeginRedelegate: SendMsgBeginRedelegateType, | ||
sendMsgUndelegate: SendMsgUndelegateType, | ||
queryValidators: QueryValidatorsType | ||
@@ -49,7 +57,6 @@ queryValidator: QueryValidatorType | ||
queryParams: QueryParamsType | ||
} | ||
type Params = { | ||
ignite: Ignite; | ||
ignite: Ignite | ||
} | ||
@@ -59,127 +66,135 @@ | ||
let { | ||
sendMsgEditValidator, | ||
sendMsgDelegate, | ||
sendMsgCreateValidator, | ||
sendMsgBeginRedelegate, | ||
sendMsgUndelegate, | ||
queryValidators, | ||
queryValidator, | ||
queryValidatorDelegations, | ||
queryValidatorUnbondingDelegations, | ||
queryDelegation, | ||
queryUnbondingDelegation, | ||
queryDelegatorDelegations, | ||
queryDelegatorUnbondingDelegations, | ||
queryRedelegations, | ||
queryDelegatorValidators, | ||
queryDelegatorValidator, | ||
queryHistoricalInfo, | ||
queryPool, | ||
queryParams, | ||
} = ignite.CosmosStakingV1Beta1 | ||
sendMsgBeginRedelegate, | ||
sendMsgEditValidator = sendMsgEditValidator.bind(ignite.CosmosStakingV1Beta1) | ||
sendMsgDelegate = sendMsgDelegate.bind(ignite.CosmosStakingV1Beta1) | ||
sendMsgCreateValidator = sendMsgCreateValidator.bind(ignite.CosmosStakingV1Beta1) | ||
sendMsgBeginRedelegate = sendMsgBeginRedelegate.bind(ignite.CosmosStakingV1Beta1) | ||
sendMsgUndelegate = sendMsgUndelegate.bind(ignite.CosmosStakingV1Beta1) | ||
queryValidators = queryValidators.bind(ignite.CosmosStakingV1Beta1) | ||
queryValidator = queryValidator.bind(ignite.CosmosStakingV1Beta1) | ||
queryValidatorDelegations = queryValidatorDelegations.bind(ignite.CosmosStakingV1Beta1) | ||
queryValidatorUnbondingDelegations = queryValidatorUnbondingDelegations.bind(ignite.CosmosStakingV1Beta1) | ||
queryDelegation = queryDelegation.bind(ignite.CosmosStakingV1Beta1) | ||
queryUnbondingDelegation = queryUnbondingDelegation.bind(ignite.CosmosStakingV1Beta1) | ||
queryDelegatorDelegations = queryDelegatorDelegations.bind(ignite.CosmosStakingV1Beta1) | ||
queryDelegatorUnbondingDelegations = queryDelegatorUnbondingDelegations.bind(ignite.CosmosStakingV1Beta1) | ||
queryRedelegations = queryRedelegations.bind(ignite.CosmosStakingV1Beta1) | ||
queryDelegatorValidators = queryDelegatorValidators.bind(ignite.CosmosStakingV1Beta1) | ||
queryDelegatorValidator = queryDelegatorValidator.bind(ignite.CosmosStakingV1Beta1) | ||
queryHistoricalInfo = queryHistoricalInfo.bind(ignite.CosmosStakingV1Beta1) | ||
queryPool = queryPool.bind(ignite.CosmosStakingV1Beta1) | ||
queryParams = queryParams.bind(ignite.CosmosStakingV1Beta1) | ||
sendMsgCreateValidator, | ||
sendMsgDelegate, | ||
sendMsgUndelegate, | ||
sendMsgEditValidator, | ||
queryValidators, | ||
queryValidator, | ||
queryValidatorDelegations, | ||
queryValidatorUnbondingDelegations, | ||
queryDelegation, | ||
queryUnbondingDelegation, | ||
queryDelegatorDelegations, | ||
queryDelegatorUnbondingDelegations, | ||
queryRedelegations, | ||
queryDelegatorValidators, | ||
queryDelegatorValidator, | ||
queryHistoricalInfo, | ||
queryPool, | ||
queryParams | ||
} = unref(ignite.cosmosStakingV1Beta1) | ||
sendMsgBeginRedelegate = sendMsgBeginRedelegate.bind( | ||
ignite.cosmosStakingV1Beta1 | ||
) | ||
sendMsgCreateValidator = sendMsgCreateValidator.bind( | ||
ignite.cosmosStakingV1Beta1 | ||
) | ||
sendMsgDelegate = sendMsgDelegate.bind(ignite.cosmosStakingV1Beta1) | ||
sendMsgUndelegate = sendMsgUndelegate.bind(ignite.cosmosStakingV1Beta1) | ||
sendMsgEditValidator = sendMsgEditValidator.bind(ignite.cosmosStakingV1Beta1) | ||
queryValidators = queryValidators.bind(ignite.cosmosStakingV1Beta1) | ||
queryValidator = queryValidator.bind(ignite.cosmosStakingV1Beta1) | ||
queryValidatorDelegations = queryValidatorDelegations.bind( | ||
ignite.cosmosStakingV1Beta1 | ||
) | ||
queryValidatorUnbondingDelegations = queryValidatorUnbondingDelegations.bind( | ||
ignite.cosmosStakingV1Beta1 | ||
) | ||
queryDelegation = queryDelegation.bind(ignite.cosmosStakingV1Beta1) | ||
queryUnbondingDelegation = queryUnbondingDelegation.bind( | ||
ignite.cosmosStakingV1Beta1 | ||
) | ||
queryDelegatorDelegations = queryDelegatorDelegations.bind( | ||
ignite.cosmosStakingV1Beta1 | ||
) | ||
queryDelegatorUnbondingDelegations = queryDelegatorUnbondingDelegations.bind( | ||
ignite.cosmosStakingV1Beta1 | ||
) | ||
queryRedelegations = queryRedelegations.bind(ignite.cosmosStakingV1Beta1) | ||
queryDelegatorValidators = queryDelegatorValidators.bind( | ||
ignite.cosmosStakingV1Beta1 | ||
) | ||
queryDelegatorValidator = queryDelegatorValidator.bind( | ||
ignite.cosmosStakingV1Beta1 | ||
) | ||
queryHistoricalInfo = queryHistoricalInfo.bind(ignite.cosmosStakingV1Beta1) | ||
queryPool = queryPool.bind(ignite.cosmosStakingV1Beta1) | ||
queryParams = queryParams.bind(ignite.cosmosStakingV1Beta1) | ||
return { | ||
sendMsgEditValidator, | ||
sendMsgDelegate, | ||
sendMsgCreateValidator, | ||
sendMsgBeginRedelegate, | ||
sendMsgUndelegate, | ||
queryValidators, | ||
queryValidator, | ||
queryValidatorDelegations, | ||
queryValidatorUnbondingDelegations, | ||
queryDelegation, | ||
queryUnbondingDelegation, | ||
queryDelegatorDelegations, | ||
queryDelegatorUnbondingDelegations, | ||
queryRedelegations, | ||
queryDelegatorValidators, | ||
queryDelegatorValidator, | ||
queryHistoricalInfo, | ||
queryPool, | ||
queryParams, | ||
sendMsgBeginRedelegate, | ||
sendMsgCreateValidator, | ||
sendMsgDelegate, | ||
sendMsgUndelegate, | ||
sendMsgEditValidator, | ||
queryValidators, | ||
queryValidator, | ||
queryValidatorDelegations, | ||
queryValidatorUnbondingDelegations, | ||
queryDelegation, | ||
queryUnbondingDelegation, | ||
queryDelegatorDelegations, | ||
queryDelegatorUnbondingDelegations, | ||
queryRedelegations, | ||
queryDelegatorValidators, | ||
queryDelegatorValidator, | ||
queryHistoricalInfo, | ||
queryPool, | ||
queryParams | ||
} | ||
@@ -186,0 +201,0 @@ } |
@@ -1,1 +0,1 @@ | ||
export * from './composable'; | ||
export * from './composable' |
// THIS FILE IS GENERATED AUTOMATICALLY. DO NOT MODIFY. | ||
import { Ignite } from "@ignt/client";import Module from "@ignt/client/cosmos.tx.v1beta1/module"; | ||
import { Ignite } from '../../client/' | ||
import Module from '../../client/cosmos.tx.v1beta1/module' | ||
import { unref } from 'vue' | ||
@@ -11,5 +12,3 @@ type ServiceSimulateType = typeof Module.prototype.serviceSimulate | ||
type Response = { | ||
serviceSimulate: ServiceSimulateType | ||
@@ -19,7 +18,6 @@ serviceGetTx: ServiceGetTxType | ||
serviceGetTxsEvent: ServiceGetTxsEventType | ||
} | ||
type Params = { | ||
ignite: Ignite; | ||
ignite: Ignite | ||
} | ||
@@ -29,37 +27,27 @@ | ||
let { | ||
serviceSimulate, | ||
serviceGetTx, | ||
serviceBroadcastTx, | ||
serviceGetTxsEvent, | ||
} = ignite.CosmosTxV1Beta1 | ||
serviceSimulate, | ||
serviceSimulate = serviceSimulate.bind(ignite.CosmosTxV1Beta1) | ||
serviceGetTx = serviceGetTx.bind(ignite.CosmosTxV1Beta1) | ||
serviceBroadcastTx = serviceBroadcastTx.bind(ignite.CosmosTxV1Beta1) | ||
serviceGetTxsEvent = serviceGetTxsEvent.bind(ignite.CosmosTxV1Beta1) | ||
serviceGetTx, | ||
serviceBroadcastTx, | ||
serviceGetTxsEvent | ||
} = unref(ignite.cosmosTxV1Beta1) | ||
serviceSimulate = serviceSimulate.bind(ignite.cosmosTxV1Beta1) | ||
serviceGetTx = serviceGetTx.bind(ignite.cosmosTxV1Beta1) | ||
serviceBroadcastTx = serviceBroadcastTx.bind(ignite.cosmosTxV1Beta1) | ||
serviceGetTxsEvent = serviceGetTxsEvent.bind(ignite.cosmosTxV1Beta1) | ||
return { | ||
serviceSimulate, | ||
serviceGetTx, | ||
serviceBroadcastTx, | ||
serviceGetTxsEvent, | ||
serviceSimulate, | ||
serviceGetTx, | ||
serviceBroadcastTx, | ||
serviceGetTxsEvent | ||
} | ||
@@ -66,0 +54,0 @@ } |
@@ -1,1 +0,1 @@ | ||
export * from './composable'; | ||
export * from './composable' |
// THIS FILE IS GENERATED AUTOMATICALLY. DO NOT MODIFY. | ||
import { Ignite } from "@ignt/client";import Module from "@ignt/client/cosmos.upgrade.v1beta1/module"; | ||
import { Ignite } from '../../client/' | ||
import Module from '../../client/cosmos.upgrade.v1beta1/module' | ||
import { unref } from 'vue' | ||
type QueryCurrentPlanType = typeof Module.prototype.queryCurrentPlan | ||
type QueryAppliedPlanType = typeof Module.prototype.queryAppliedPlan | ||
type QueryUpgradedConsensusStateType = typeof Module.prototype.queryUpgradedConsensusState | ||
type QueryUpgradedConsensusStateType = | ||
typeof Module.prototype.queryUpgradedConsensusState | ||
type QueryModuleVersionsType = typeof Module.prototype.queryModuleVersions | ||
type Response = { | ||
queryCurrentPlan: QueryCurrentPlanType | ||
@@ -18,7 +18,6 @@ queryAppliedPlan: QueryAppliedPlanType | ||
queryModuleVersions: QueryModuleVersionsType | ||
} | ||
type Params = { | ||
ignite: Ignite; | ||
ignite: Ignite | ||
} | ||
@@ -28,37 +27,29 @@ | ||
let { | ||
queryCurrentPlan, | ||
queryAppliedPlan, | ||
queryUpgradedConsensusState, | ||
queryModuleVersions, | ||
} = ignite.CosmosUpgradeV1Beta1 | ||
queryCurrentPlan, | ||
queryCurrentPlan = queryCurrentPlan.bind(ignite.CosmosUpgradeV1Beta1) | ||
queryAppliedPlan = queryAppliedPlan.bind(ignite.CosmosUpgradeV1Beta1) | ||
queryUpgradedConsensusState = queryUpgradedConsensusState.bind(ignite.CosmosUpgradeV1Beta1) | ||
queryModuleVersions = queryModuleVersions.bind(ignite.CosmosUpgradeV1Beta1) | ||
queryAppliedPlan, | ||
queryUpgradedConsensusState, | ||
queryModuleVersions | ||
} = unref(ignite.cosmosUpgradeV1Beta1) | ||
queryCurrentPlan = queryCurrentPlan.bind(ignite.cosmosUpgradeV1Beta1) | ||
queryAppliedPlan = queryAppliedPlan.bind(ignite.cosmosUpgradeV1Beta1) | ||
queryUpgradedConsensusState = queryUpgradedConsensusState.bind( | ||
ignite.cosmosUpgradeV1Beta1 | ||
) | ||
queryModuleVersions = queryModuleVersions.bind(ignite.cosmosUpgradeV1Beta1) | ||
return { | ||
queryCurrentPlan, | ||
queryAppliedPlan, | ||
queryUpgradedConsensusState, | ||
queryModuleVersions, | ||
queryCurrentPlan, | ||
queryAppliedPlan, | ||
queryUpgradedConsensusState, | ||
queryModuleVersions | ||
} | ||
@@ -65,0 +56,0 @@ } |
@@ -1,1 +0,1 @@ | ||
export * from './composable'; | ||
export * from './composable' |
// THIS FILE IS GENERATED AUTOMATICALLY. DO NOT MODIFY. | ||
import { Ignite } from "@ignt/client";import Module from "@ignt/client/cosmos.vesting.v1beta1/module"; | ||
type SendMsgCreateVestingAccountType = typeof Module.prototype.sendMsgCreateVestingAccount | ||
import { Ignite } from '../../client/' | ||
import Module from '../../client/cosmos.vesting.v1beta1/module' | ||
import { unref } from 'vue' | ||
type SendMsgCreateVestingAccountType = | ||
typeof Module.prototype.sendMsgCreateVestingAccount | ||
type Response = { | ||
sendMsgCreateVestingAccount: SendMsgCreateVestingAccountType, | ||
sendMsgCreateVestingAccount: SendMsgCreateVestingAccountType | ||
} | ||
type Params = { | ||
ignite: Ignite; | ||
ignite: Ignite | ||
} | ||
function useModule({ ignite }: Params): Response { | ||
let { | ||
sendMsgCreateVestingAccount, | ||
} = ignite.CosmosVestingV1Beta1 | ||
let { sendMsgCreateVestingAccount } = unref(ignite.cosmosVestingV1Beta1) | ||
sendMsgCreateVestingAccount = sendMsgCreateVestingAccount.bind(ignite.CosmosVestingV1Beta1) | ||
sendMsgCreateVestingAccount = sendMsgCreateVestingAccount.bind( | ||
ignite.cosmosVestingV1Beta1 | ||
) | ||
return { | ||
sendMsgCreateVestingAccount, | ||
sendMsgCreateVestingAccount | ||
} | ||
@@ -39,0 +28,0 @@ } |
@@ -1,1 +0,1 @@ | ||
export * from './composable'; | ||
export * from './composable' |
// THIS FILE IS GENERATED AUTOMATICALLY. DO NOT MODIFY. | ||
import { Ignite } from "@ignt/client";import Module from "@ignt/client/ibc.applications.transfer.v1/module"; | ||
import { Ignite } from '../../client/' | ||
import Module from '../../client/ibc.applications.transfer.v1/module' | ||
import { unref } from 'vue' | ||
type SendMsgTransferType = typeof Module.prototype.sendMsgTransfer | ||
@@ -11,14 +13,12 @@ | ||
type Response = { | ||
sendMsgTransfer: SendMsgTransferType | ||
type Response = { | ||
sendMsgTransfer: SendMsgTransferType, | ||
queryDenomTrace: QueryDenomTraceType | ||
queryDenomTraces: QueryDenomTracesType | ||
queryParams: QueryParamsType | ||
} | ||
type Params = { | ||
ignite: Ignite; | ||
ignite: Ignite | ||
} | ||
@@ -28,37 +28,27 @@ | ||
let { | ||
sendMsgTransfer, | ||
queryDenomTrace, | ||
queryDenomTraces, | ||
queryParams, | ||
} = ignite.IbcApplicationsTransferV1 | ||
sendMsgTransfer, | ||
sendMsgTransfer = sendMsgTransfer.bind(ignite.IbcApplicationsTransferV1) | ||
queryDenomTrace = queryDenomTrace.bind(ignite.IbcApplicationsTransferV1) | ||
queryDenomTraces = queryDenomTraces.bind(ignite.IbcApplicationsTransferV1) | ||
queryParams = queryParams.bind(ignite.IbcApplicationsTransferV1) | ||
queryDenomTrace, | ||
queryDenomTraces, | ||
queryParams | ||
} = unref(ignite.ibcApplicationsTransferV1) | ||
sendMsgTransfer = sendMsgTransfer.bind(ignite.ibcApplicationsTransferV1) | ||
queryDenomTrace = queryDenomTrace.bind(ignite.ibcApplicationsTransferV1) | ||
queryDenomTraces = queryDenomTraces.bind(ignite.ibcApplicationsTransferV1) | ||
queryParams = queryParams.bind(ignite.ibcApplicationsTransferV1) | ||
return { | ||
sendMsgTransfer, | ||
queryDenomTrace, | ||
queryDenomTraces, | ||
queryParams, | ||
sendMsgTransfer, | ||
queryDenomTrace, | ||
queryDenomTraces, | ||
queryParams | ||
} | ||
@@ -65,0 +55,0 @@ } |
@@ -1,1 +0,1 @@ | ||
export * from './composable'; | ||
export * from './composable' |
// THIS FILE IS GENERATED AUTOMATICALLY. DO NOT MODIFY. | ||
import { Ignite } from "@ignt/client";import Module from "@ignt/client/ibc.core.channel.v1/module"; | ||
import { Ignite } from '../../client/' | ||
import Module from '../../client/ibc.core.channel.v1/module' | ||
import { unref } from 'vue' | ||
type QueryChannelType = typeof Module.prototype.queryChannel | ||
type QueryChannelsType = typeof Module.prototype.queryChannels | ||
type QueryConnectionChannelsType = typeof Module.prototype.queryConnectionChannels | ||
type QueryChannelClientStateType = typeof Module.prototype.queryChannelClientState | ||
type QueryChannelConsensusStateType = typeof Module.prototype.queryChannelConsensusState | ||
type QueryConnectionChannelsType = | ||
typeof Module.prototype.queryConnectionChannels | ||
type QueryChannelClientStateType = | ||
typeof Module.prototype.queryChannelClientState | ||
type QueryChannelConsensusStateType = | ||
typeof Module.prototype.queryChannelConsensusState | ||
type QueryPacketCommitmentType = typeof Module.prototype.queryPacketCommitment | ||
type QueryPacketCommitmentsType = typeof Module.prototype.queryPacketCommitments | ||
type QueryPacketReceiptType = typeof Module.prototype.queryPacketReceipt | ||
type QueryPacketAcknowledgementType = typeof Module.prototype.queryPacketAcknowledgement | ||
type QueryPacketAcknowledgementsType = typeof Module.prototype.queryPacketAcknowledgements | ||
type QueryPacketAcknowledgementType = | ||
typeof Module.prototype.queryPacketAcknowledgement | ||
type QueryPacketAcknowledgementsType = | ||
typeof Module.prototype.queryPacketAcknowledgements | ||
type QueryUnreceivedPacketsType = typeof Module.prototype.queryUnreceivedPackets | ||
type QueryUnreceivedAcksType = typeof Module.prototype.queryUnreceivedAcks | ||
type QueryNextSequenceReceiveType = typeof Module.prototype.queryNextSequenceReceive | ||
type QueryNextSequenceReceiveType = | ||
typeof Module.prototype.queryNextSequenceReceive | ||
type Response = { | ||
queryChannel: QueryChannelType | ||
@@ -36,7 +41,6 @@ queryChannels: QueryChannelsType | ||
queryNextSequenceReceive: QueryNextSequenceReceiveType | ||
} | ||
type Params = { | ||
ignite: Ignite; | ||
ignite: Ignite | ||
} | ||
@@ -46,91 +50,93 @@ | ||
let { | ||
queryChannel, | ||
queryChannels, | ||
queryConnectionChannels, | ||
queryChannelClientState, | ||
queryChannelConsensusState, | ||
queryPacketCommitment, | ||
queryPacketCommitments, | ||
queryPacketReceipt, | ||
queryPacketAcknowledgement, | ||
queryPacketAcknowledgements, | ||
queryUnreceivedPackets, | ||
queryUnreceivedAcks, | ||
queryNextSequenceReceive, | ||
} = ignite.IbcCoreChannelV1 | ||
queryChannel, | ||
queryChannel = queryChannel.bind(ignite.IbcCoreChannelV1) | ||
queryChannels = queryChannels.bind(ignite.IbcCoreChannelV1) | ||
queryConnectionChannels = queryConnectionChannels.bind(ignite.IbcCoreChannelV1) | ||
queryChannelClientState = queryChannelClientState.bind(ignite.IbcCoreChannelV1) | ||
queryChannelConsensusState = queryChannelConsensusState.bind(ignite.IbcCoreChannelV1) | ||
queryPacketCommitment = queryPacketCommitment.bind(ignite.IbcCoreChannelV1) | ||
queryPacketCommitments = queryPacketCommitments.bind(ignite.IbcCoreChannelV1) | ||
queryPacketReceipt = queryPacketReceipt.bind(ignite.IbcCoreChannelV1) | ||
queryPacketAcknowledgement = queryPacketAcknowledgement.bind(ignite.IbcCoreChannelV1) | ||
queryPacketAcknowledgements = queryPacketAcknowledgements.bind(ignite.IbcCoreChannelV1) | ||
queryUnreceivedPackets = queryUnreceivedPackets.bind(ignite.IbcCoreChannelV1) | ||
queryUnreceivedAcks = queryUnreceivedAcks.bind(ignite.IbcCoreChannelV1) | ||
queryNextSequenceReceive = queryNextSequenceReceive.bind(ignite.IbcCoreChannelV1) | ||
queryChannels, | ||
queryConnectionChannels, | ||
queryChannelClientState, | ||
queryChannelConsensusState, | ||
queryPacketCommitment, | ||
queryPacketCommitments, | ||
queryPacketReceipt, | ||
queryPacketAcknowledgement, | ||
queryPacketAcknowledgements, | ||
queryUnreceivedPackets, | ||
queryUnreceivedAcks, | ||
queryNextSequenceReceive | ||
} = unref(ignite.ibcCoreChannelV1) | ||
queryChannel = queryChannel.bind(ignite.ibcCoreChannelV1) | ||
queryChannels = queryChannels.bind(ignite.ibcCoreChannelV1) | ||
queryConnectionChannels = queryConnectionChannels.bind( | ||
ignite.ibcCoreChannelV1 | ||
) | ||
queryChannelClientState = queryChannelClientState.bind( | ||
ignite.ibcCoreChannelV1 | ||
) | ||
queryChannelConsensusState = queryChannelConsensusState.bind( | ||
ignite.ibcCoreChannelV1 | ||
) | ||
queryPacketCommitment = queryPacketCommitment.bind(ignite.ibcCoreChannelV1) | ||
queryPacketCommitments = queryPacketCommitments.bind(ignite.ibcCoreChannelV1) | ||
queryPacketReceipt = queryPacketReceipt.bind(ignite.ibcCoreChannelV1) | ||
queryPacketAcknowledgement = queryPacketAcknowledgement.bind( | ||
ignite.ibcCoreChannelV1 | ||
) | ||
queryPacketAcknowledgements = queryPacketAcknowledgements.bind( | ||
ignite.ibcCoreChannelV1 | ||
) | ||
queryUnreceivedPackets = queryUnreceivedPackets.bind(ignite.ibcCoreChannelV1) | ||
queryUnreceivedAcks = queryUnreceivedAcks.bind(ignite.ibcCoreChannelV1) | ||
queryNextSequenceReceive = queryNextSequenceReceive.bind( | ||
ignite.ibcCoreChannelV1 | ||
) | ||
return { | ||
queryChannel, | ||
queryChannels, | ||
queryConnectionChannels, | ||
queryChannelClientState, | ||
queryChannelConsensusState, | ||
queryPacketCommitment, | ||
queryPacketCommitments, | ||
queryPacketReceipt, | ||
queryPacketAcknowledgement, | ||
queryPacketAcknowledgements, | ||
queryUnreceivedPackets, | ||
queryUnreceivedAcks, | ||
queryNextSequenceReceive, | ||
queryChannel, | ||
queryChannels, | ||
queryConnectionChannels, | ||
queryChannelClientState, | ||
queryChannelConsensusState, | ||
queryPacketCommitment, | ||
queryPacketCommitments, | ||
queryPacketReceipt, | ||
queryPacketAcknowledgement, | ||
queryPacketAcknowledgements, | ||
queryUnreceivedPackets, | ||
queryUnreceivedAcks, | ||
queryNextSequenceReceive | ||
} | ||
@@ -137,0 +143,0 @@ } |
@@ -1,1 +0,1 @@ | ||
export * from './composable'; | ||
export * from './composable' |
// THIS FILE IS GENERATED AUTOMATICALLY. DO NOT MODIFY. | ||
import { Ignite } from "@ignt/client";import Module from "@ignt/client/ibc.core.client.v1/module"; | ||
import { Ignite } from '../../client/' | ||
import Module from '../../client/ibc.core.client.v1/module' | ||
import { unref } from 'vue' | ||
@@ -12,8 +13,8 @@ type QueryClientStateType = typeof Module.prototype.queryClientState | ||
type QueryClientParamsType = typeof Module.prototype.queryClientParams | ||
type QueryUpgradedClientStateType = typeof Module.prototype.queryUpgradedClientState | ||
type QueryUpgradedConsensusStateType = typeof Module.prototype.queryUpgradedConsensusState | ||
type QueryUpgradedClientStateType = | ||
typeof Module.prototype.queryUpgradedClientState | ||
type QueryUpgradedConsensusStateType = | ||
typeof Module.prototype.queryUpgradedConsensusState | ||
type Response = { | ||
queryClientState: QueryClientStateType | ||
@@ -27,7 +28,6 @@ queryClientStates: QueryClientStatesType | ||
queryUpgradedConsensusState: QueryUpgradedConsensusStateType | ||
} | ||
type Params = { | ||
ignite: Ignite; | ||
ignite: Ignite | ||
} | ||
@@ -37,61 +37,55 @@ | ||
let { | ||
queryClientState, | ||
queryClientStates, | ||
queryConsensusState, | ||
queryConsensusStates, | ||
queryClientStatus, | ||
queryClientParams, | ||
queryUpgradedClientState, | ||
queryUpgradedConsensusState, | ||
} = ignite.IbcCoreClientV1 | ||
queryClientState, | ||
queryClientState = queryClientState.bind(ignite.IbcCoreClientV1) | ||
queryClientStates = queryClientStates.bind(ignite.IbcCoreClientV1) | ||
queryConsensusState = queryConsensusState.bind(ignite.IbcCoreClientV1) | ||
queryConsensusStates = queryConsensusStates.bind(ignite.IbcCoreClientV1) | ||
queryClientStatus = queryClientStatus.bind(ignite.IbcCoreClientV1) | ||
queryClientParams = queryClientParams.bind(ignite.IbcCoreClientV1) | ||
queryUpgradedClientState = queryUpgradedClientState.bind(ignite.IbcCoreClientV1) | ||
queryUpgradedConsensusState = queryUpgradedConsensusState.bind(ignite.IbcCoreClientV1) | ||
queryClientStates, | ||
queryConsensusState, | ||
queryConsensusStates, | ||
queryClientStatus, | ||
queryClientParams, | ||
queryUpgradedClientState, | ||
queryUpgradedConsensusState | ||
} = unref(ignite.ibcCoreClientV1) | ||
queryClientState = queryClientState.bind(ignite.ibcCoreClientV1) | ||
queryClientStates = queryClientStates.bind(ignite.ibcCoreClientV1) | ||
queryConsensusState = queryConsensusState.bind(ignite.ibcCoreClientV1) | ||
queryConsensusStates = queryConsensusStates.bind(ignite.ibcCoreClientV1) | ||
queryClientStatus = queryClientStatus.bind(ignite.ibcCoreClientV1) | ||
queryClientParams = queryClientParams.bind(ignite.ibcCoreClientV1) | ||
queryUpgradedClientState = queryUpgradedClientState.bind( | ||
ignite.ibcCoreClientV1 | ||
) | ||
queryUpgradedConsensusState = queryUpgradedConsensusState.bind( | ||
ignite.ibcCoreClientV1 | ||
) | ||
return { | ||
queryClientState, | ||
queryClientStates, | ||
queryConsensusState, | ||
queryConsensusStates, | ||
queryClientStatus, | ||
queryClientParams, | ||
queryUpgradedClientState, | ||
queryUpgradedConsensusState, | ||
queryClientState, | ||
queryClientStates, | ||
queryConsensusState, | ||
queryConsensusStates, | ||
queryClientStatus, | ||
queryClientParams, | ||
queryUpgradedClientState, | ||
queryUpgradedConsensusState | ||
} | ||
@@ -98,0 +92,0 @@ } |
@@ -1,1 +0,1 @@ | ||
export * from './composable'; | ||
export * from './composable' |
// THIS FILE IS GENERATED AUTOMATICALLY. DO NOT MODIFY. | ||
import { Ignite } from "@ignt/client";import Module from "@ignt/client/ibc.core.connection.v1/module"; | ||
import { Ignite } from '../../client/' | ||
import Module from '../../client/ibc.core.connection.v1/module' | ||
import { unref } from 'vue' | ||
@@ -9,8 +10,8 @@ type QueryConnectionType = typeof Module.prototype.queryConnection | ||
type QueryClientConnectionsType = typeof Module.prototype.queryClientConnections | ||
type QueryConnectionClientStateType = typeof Module.prototype.queryConnectionClientState | ||
type QueryConnectionConsensusStateType = typeof Module.prototype.queryConnectionConsensusState | ||
type QueryConnectionClientStateType = | ||
typeof Module.prototype.queryConnectionClientState | ||
type QueryConnectionConsensusStateType = | ||
typeof Module.prototype.queryConnectionConsensusState | ||
type Response = { | ||
queryConnection: QueryConnectionType | ||
@@ -21,7 +22,6 @@ queryConnections: QueryConnectionsType | ||
queryConnectionConsensusState: QueryConnectionConsensusStateType | ||
} | ||
type Params = { | ||
ignite: Ignite; | ||
ignite: Ignite | ||
} | ||
@@ -31,43 +31,39 @@ | ||
let { | ||
queryConnection, | ||
queryConnections, | ||
queryClientConnections, | ||
queryConnectionClientState, | ||
queryConnectionConsensusState, | ||
} = ignite.IbcCoreConnectionV1 | ||
queryConnection, | ||
queryConnection = queryConnection.bind(ignite.IbcCoreConnectionV1) | ||
queryConnections = queryConnections.bind(ignite.IbcCoreConnectionV1) | ||
queryClientConnections = queryClientConnections.bind(ignite.IbcCoreConnectionV1) | ||
queryConnectionClientState = queryConnectionClientState.bind(ignite.IbcCoreConnectionV1) | ||
queryConnectionConsensusState = queryConnectionConsensusState.bind(ignite.IbcCoreConnectionV1) | ||
queryConnections, | ||
queryClientConnections, | ||
queryConnectionClientState, | ||
queryConnectionConsensusState | ||
} = unref(ignite.ibcCoreConnectionV1) | ||
queryConnection = queryConnection.bind(ignite.ibcCoreConnectionV1) | ||
queryConnections = queryConnections.bind(ignite.ibcCoreConnectionV1) | ||
queryClientConnections = queryClientConnections.bind( | ||
ignite.ibcCoreConnectionV1 | ||
) | ||
queryConnectionClientState = queryConnectionClientState.bind( | ||
ignite.ibcCoreConnectionV1 | ||
) | ||
queryConnectionConsensusState = queryConnectionConsensusState.bind( | ||
ignite.ibcCoreConnectionV1 | ||
) | ||
return { | ||
queryConnection, | ||
queryConnections, | ||
queryClientConnections, | ||
queryConnectionClientState, | ||
queryConnectionConsensusState, | ||
queryConnection, | ||
queryConnections, | ||
queryClientConnections, | ||
queryConnectionClientState, | ||
queryConnectionConsensusState | ||
} | ||
@@ -74,0 +70,0 @@ } |
@@ -1,1 +0,1 @@ | ||
export * from './composable'; | ||
export * from './composable' |
// THIS FILE IS GENERATED AUTOMATICALLY. DO NOT MODIFY. | ||
import { Ignite } from "@ignt/client";import Module from "@ignt/client/ibc.core.port.v1/module"; | ||
import { Ignite } from '../../client/' | ||
import Module from '../../client/ibc.core.port.v1/module' | ||
import { unref } from 'vue' | ||
type Response = {} | ||
type Response = { | ||
} | ||
type Params = { | ||
ignite: Ignite; | ||
ignite: Ignite | ||
} | ||
function useModule({ ignite }: Params): Response { | ||
let { | ||
} = ignite.IbcCorePortV1 | ||
let {} = unref(ignite.ibcCorePortV1) | ||
return { | ||
} | ||
return {} | ||
} | ||
export { useModule } |
@@ -1,1 +0,1 @@ | ||
export * from './composable'; | ||
export * from './composable' |
@@ -0,1 +1,2 @@ | ||
// THIS FILE IS GENERATED AUTOMATICALLY. DO NOT MODIFY. | ||
export { useModule as useCosmosAuthV1Beta1Module } from './cosmos.auth.v1beta1' | ||
@@ -20,2 +21,3 @@ export { useModule as useCosmosBankV1Beta1Module } from './cosmos.bank.v1beta1' | ||
export { useModule as useIbcCorePortV1Module } from './ibc.core.port.v1' | ||
export { default as useIgnite } from './useIgnite' |
{ | ||
"name": "@ignt/vue", | ||
"version": "0.0.9-alpha", | ||
"version": "0.0.10-alpha", | ||
"description": "Autogenerated Vue API", | ||
@@ -18,3 +18,3 @@ "author": "Ignite Codegen <hello@ignt.com>", | ||
"dependencies": { | ||
"@ignt/client": "0.0.2-alpha", | ||
"@ignt/client": "0.0.10-alpha", | ||
"buffer": "^6.0.3" | ||
@@ -21,0 +21,0 @@ }, |
137
useIgnite.ts
// THIS FILE IS GENERATED AUTOMATICALLY. DO NOT MODIFY. | ||
import { OfflineDirectSigner } from '@cosmjs/proto-signing' | ||
import { SigningStargateClient } from '@cosmjs/stargate' | ||
import { createIgnite, Ignite, registry, Environment } from '@ignt/client' | ||
import { reactive, Ref, toRefs, ToRefs } from 'vue' | ||
import { Ignite, registry } from '../client' | ||
import { toRefs, ToRefs, reactive, UnwrapNestedRefs } from 'vue' | ||
type State = { | ||
ignite: Ref<Ignite> | ||
} | ||
type State = UnwrapNestedRefs<Ignite> | ||
type Response = { | ||
state: ToRefs<State> | ||
ignite: ToRefs<Ignite> | ||
signIn: (offlineSigner: OfflineDirectSigner) => void | ||
signOut: () => void | ||
inject: (instance: Ignite) => void | ||
} | ||
type Params = { | ||
env: Environment | ||
autoConnectWS: boolean | ||
} | ||
let _igniteGlobal: State | ||
// singleton state | ||
const state = reactive({} as State) | ||
export default function ( | ||
p: Params = { | ||
env: { | ||
apiURL: 'http://localhost:1317', | ||
rpcURL: 'http://localhost:26657', | ||
wsURL: 'ws://localhost:26657/websocket', | ||
prefix: 'cosmos' | ||
}, | ||
autoConnectWS: true | ||
} | ||
): Response { | ||
if (!state.ignite) { | ||
if (!p.env) { | ||
throw new Error('Ignite: Unable to create instance without env') | ||
} | ||
state.ignite = createIgnite({ | ||
env: p.env | ||
}) as Ignite | ||
if (p.autoConnectWS) { | ||
state.ignite.connectWS() | ||
} | ||
} | ||
export default function (): Response { | ||
let signIn = async (offlineSigner: OfflineDirectSigner) => { | ||
@@ -54,16 +23,100 @@ let [acc] = await offlineSigner.getAccounts() | ||
let stargateClient = await SigningStargateClient.connectWithSigner( | ||
state.ignite.env.rpcURL, | ||
_igniteGlobal.env.rpcURL, | ||
offlineSigner, | ||
{ registry } | ||
) | ||
let addr = acc.address | ||
state.ignite.signIn(stargateClient, acc.address) | ||
_igniteGlobal.signer.client = stargateClient | ||
_igniteGlobal.signer.addr = addr | ||
_igniteGlobal.cosmosAuthV1Beta1.withSigner(stargateClient, addr) | ||
_igniteGlobal.cosmosBankV1Beta1.withSigner(stargateClient, addr) | ||
_igniteGlobal.cosmosBaseTendermintV1Beta1.withSigner(stargateClient, addr) | ||
_igniteGlobal.cosmosCrisisV1Beta1.withSigner(stargateClient, addr) | ||
_igniteGlobal.cosmosDistributionV1Beta1.withSigner(stargateClient, addr) | ||
_igniteGlobal.cosmosEvidenceV1Beta1.withSigner(stargateClient, addr) | ||
_igniteGlobal.cosmosGovV1Beta1.withSigner(stargateClient, addr) | ||
_igniteGlobal.cosmosMintV1Beta1.withSigner(stargateClient, addr) | ||
_igniteGlobal.cosmosParamsV1Beta1.withSigner(stargateClient, addr) | ||
_igniteGlobal.cosmosSlashingV1Beta1.withSigner(stargateClient, addr) | ||
_igniteGlobal.cosmosStakingV1Beta1.withSigner(stargateClient, addr) | ||
_igniteGlobal.cosmosTxV1Beta1.withSigner(stargateClient, addr) | ||
_igniteGlobal.cosmosUpgradeV1Beta1.withSigner(stargateClient, addr) | ||
_igniteGlobal.cosmosVestingV1Beta1.withSigner(stargateClient, addr) | ||
_igniteGlobal.ibcApplicationsTransferV1.withSigner(stargateClient, addr) | ||
_igniteGlobal.ibcCoreChannelV1.withSigner(stargateClient, addr) | ||
_igniteGlobal.ibcCoreClientV1.withSigner(stargateClient, addr) | ||
_igniteGlobal.ibcCoreConnectionV1.withSigner(stargateClient, addr) | ||
_igniteGlobal.ibcCorePortV1.withSigner(stargateClient, addr) | ||
} | ||
let signOut = () => { | ||
state.ignite.signOut() | ||
_igniteGlobal.signer.client = undefined | ||
_igniteGlobal.signer.addr = undefined | ||
_igniteGlobal.cosmosAuthV1Beta1.noSigner() | ||
_igniteGlobal.cosmosBankV1Beta1.noSigner() | ||
_igniteGlobal.cosmosBaseTendermintV1Beta1.noSigner() | ||
_igniteGlobal.cosmosCrisisV1Beta1.noSigner() | ||
_igniteGlobal.cosmosDistributionV1Beta1.noSigner() | ||
_igniteGlobal.cosmosEvidenceV1Beta1.noSigner() | ||
_igniteGlobal.cosmosGovV1Beta1.noSigner() | ||
_igniteGlobal.cosmosMintV1Beta1.noSigner() | ||
_igniteGlobal.cosmosParamsV1Beta1.noSigner() | ||
_igniteGlobal.cosmosSlashingV1Beta1.noSigner() | ||
_igniteGlobal.cosmosStakingV1Beta1.noSigner() | ||
_igniteGlobal.cosmosTxV1Beta1.noSigner() | ||
_igniteGlobal.cosmosUpgradeV1Beta1.noSigner() | ||
_igniteGlobal.cosmosVestingV1Beta1.noSigner() | ||
_igniteGlobal.ibcApplicationsTransferV1.noSigner() | ||
_igniteGlobal.ibcCoreChannelV1.noSigner() | ||
_igniteGlobal.ibcCoreClientV1.noSigner() | ||
_igniteGlobal.ibcCoreConnectionV1.noSigner() | ||
_igniteGlobal.ibcCorePortV1.noSigner() | ||
} | ||
let inject = (instance: Ignite) => { | ||
_igniteGlobal = reactive<Ignite>(instance) | ||
} | ||
return { | ||
state: toRefs(state), | ||
inject, | ||
ignite: toRefs(_igniteGlobal as Ignite), | ||
signIn, | ||
@@ -70,0 +123,0 @@ signOut |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
42357
1088
+ Added@ignt/client@0.0.10-alpha(transitive)
+ Addedeventemitter3@4.0.7(transitive)
- Removed@ignt/client@0.0.2-alpha(transitive)
- Removedevents@3.3.0(transitive)
Updated@ignt/client@0.0.10-alpha