|
| 1 | +# Introduction |
| 2 | +This example demonstrates the usage of Vue composables provided by [@interchain-kit/vue](https://github.com/cosmology-tech/interchain-kit/tree/main/packages/vue) and generated by [telescope](https://github.com/cosmology-tech/telescope). |
| 3 | +## Directory Structure |
| 4 | +``` |
| 5 | +├── src/ |
| 6 | +│ ├── codegen # containing vue composables generated by `telescope` |
| 7 | +│ ├── components/ |
| 8 | +│ │ ├── asset-list/ |
| 9 | +│ │ ├── authz/ |
| 10 | +│ │ ├── provide-liquidity/ |
| 11 | +│ │ ├── stake-tokens/ |
| 12 | +│ │ └── voting/ |
| 13 | +│ ├── composables/ |
| 14 | +│ │ ├── asset-list/ |
| 15 | +│ │ ├── authz/ |
| 16 | +│ │ ├── common/ |
| 17 | +│ │ ├── injective/ |
| 18 | +│ │ ├── provide-liquidity/ |
| 19 | +│ │ ├── stake-tokens/ |
| 20 | +│ │ └── voting/ |
| 21 | +│ ├── utils/ |
| 22 | +│ │ ├── asset-list/ |
| 23 | +│ │ ├── authz/ |
| 24 | +│ │ ├── provide-liquidity/ |
| 25 | +│ │ ├── stake-tokens/ |
| 26 | +│ │ └── voting/ |
| 27 | +│ ├── views/ |
| 28 | +│ │ ├── asset-list.vue |
| 29 | +│ │ ├── authz.vue |
| 30 | +│ │ ├── index.vue |
| 31 | +│ │ └── voting.vue |
| 32 | +│ ├── router.ts |
| 33 | +│ ├── utils/ |
| 34 | +│ ├── App.vue |
| 35 | +│ └── main.ts |
| 36 | +``` |
| 37 | +## Pages |
| 38 | + |
| 39 | +### Asset List |
| 40 | +- **Completion Status:** ✅ Completed |
| 41 | +- **Functionalities:** |
| 42 | + - Wallet connect |
| 43 | + - Assets display |
| 44 | + - IBC transfer |
| 45 | +- **Telescope generated `Vue Composables` Used:** |
| 46 | +```ts |
| 47 | +cosmos.bank.v1beta1.useBalance |
| 48 | +cosmos.bank.v1beta1.useAllBalances |
| 49 | +cosmos.staking.v1beta1.useDelegatorDelegations |
| 50 | +osmosis.gamm.v1beta1.usePools |
| 51 | +``` |
| 52 | +- **`msgType`s are signAndBroadcasted:** |
| 53 | +```ts |
| 54 | +/ibc.applications.transfer.v1.MsgTransfer |
| 55 | +``` |
| 56 | + |
| 57 | +### Auth |
| 58 | +- **Completion Status:** ✅ Completed |
| 59 | +- **Functionalities:** |
| 60 | + - Vote permission granting and revoking |
| 61 | + - Send permission granting and revoking |
| 62 | + - Delegate permission granting and revoking |
| 63 | + - Claim rewards granting and revoking |
| 64 | +- **Telescope generated `Vue Composables` Used:** |
| 65 | +```ts |
| 66 | +cosmos.authz.v1beta1.useGranterGrants |
| 67 | +cosmos.authz.v1beta1.useGranteeGrants |
| 68 | +cosmos.staking.v1beta1.useValidators |
| 69 | +``` |
| 70 | +- **`msgType`s are signAndBroadcasted:** |
| 71 | +```ts |
| 72 | +/cosmos.authz.v1beta1.MsgRevoke |
| 73 | +/cosmos.authz.v1beta1.MsgGrant |
| 74 | +``` |
| 75 | + |
| 76 | +### Voting |
| 77 | +- **Completion Status:** ✅ Completed |
| 78 | +- **Functionalities:** |
| 79 | + - Proposals display |
| 80 | + - Proposal voting |
| 81 | +- **Telescope generated `Vue Composables` Used:** |
| 82 | +```ts |
| 83 | +cosmos.gov.v1.useProposals |
| 84 | +cosmos.gov.v1.useParams |
| 85 | +cosmos.gov.v1.useProposals |
| 86 | +cosmos.staking.v1beta1.usePools |
| 87 | +``` |
| 88 | +- **`msgType`s are signAndBroadcasted:** |
| 89 | +```ts |
| 90 | +/cosmos.gov.v1.MsgVote |
| 91 | +``` |
| 92 | + |
| 93 | +### Injective |
| 94 | +- **Completion Status:** ✅ Completed |
| 95 | +- **Functionalities:** |
| 96 | + - inj balance display |
| 97 | + - inj tokens transfer |
| 98 | +- **Telescope generated `Vue Composables` Used:** |
| 99 | +```ts |
| 100 | +cosmos.bank.v1beta1.useBalance |
| 101 | +``` |
| 102 | +- **`msgType`s are signAndBroadcasted:** |
| 103 | +```ts |
| 104 | +/cosmos.bank.v1beta1.MsgSend |
| 105 | +``` |
| 106 | +### Stake tokens |
| 107 | +- **Completion Status:** ⏳ In Progress... 50% done. |
| 108 | +- **Functionalities:** |
| 109 | + - all validators display |
| 110 | + - validators display for a specified address |
| 111 | + - claimable rewards display |
| 112 | + - staked tokens display for a specified chain |
| 113 | + - claim rewards |
| 114 | + - manage validators |
| 115 | +- **Telescope generated `Vue Composables` Used:** |
| 116 | +```ts |
| 117 | +cosmos.mint.v1beta.useAnnualProvisions |
| 118 | +cosmos.distribution.v1beta1.useParams |
| 119 | +cosmos.distribution.v1beta1.useDelegationTotalRewards |
| 120 | +codegen.cosmos.staking.v1beta1.useDelegatorValidators |
| 121 | +cosmos.staking.v1beta1.useParams |
| 122 | +``` |
| 123 | +- **`msgType`s are signAndBroadcasted:** |
| 124 | +```ts |
| 125 | +``` |
| 126 | + |
| 127 | +### Provide Liquidity |
| 128 | +- **Completion Status:** ⏳ In Progress... |
| 129 | + |
| 130 | +### Swap tokens |
| 131 | +- **Completion Status:** ⏳ In Progress... |
| 132 | + |
| 133 | +### NFT |
| 134 | +- **Completion Status:** ⏳ In Progress... |
| 135 | + |
| 136 | +### Rollkit |
| 137 | +- **Completion Status:** ⏳ In Progress... |
| 138 | + |
| 139 | +### Grpc Web & Grpc Gateway |
| 140 | +- **Completion Status:** ⏳ In Progress... |
0 commit comments