The Open Source Dashboard for the Instadapp Protocol
Go to file
2021-08-14 00:35:37 +03:00
abis/read wip compound 2021-08-07 01:44:51 +03:00
assets compound 2021-08-08 02:22:42 +03:00
components update icons 2021-08-14 00:15:46 +03:00
composables refactor 2021-08-13 23:58:50 +03:00
constant wip compound 2021-08-07 01:44:51 +03:00
core/entity wip 2021-07-25 02:40:30 +03:00
layouts update assembly git url 2021-08-11 22:46:17 +03:00
pages update icons 2021-08-14 00:15:46 +03:00
plugins wip 2021-08-04 22:17:26 +03:00
static first commit 2021-07-17 19:50:30 +03:00
store first commit 2021-07-17 19:50:30 +03:00
utils wip 2021-07-27 01:19:20 +03:00
.editorconfig first commit 2021-07-17 19:50:30 +03:00
.env.example move providerOptions to plugin 2021-07-21 00:39:22 +03:00
.gitignore first commit 2021-07-17 19:50:30 +03:00
banner.png Add Banner 2021-08-12 22:24:07 +03:00
jsconfig.json first commit 2021-07-17 19:50:30 +03:00
nuxt.config.js wip 2021-08-04 22:17:26 +03:00
package.json update assembly git url 2021-08-11 22:46:17 +03:00
README.md add basic instruction how to create a new app 2021-08-14 00:35:37 +03:00
shims.d.ts compound 2021-08-08 02:22:42 +03:00
tailwind.config.js Aave v2 Borrow & Withdraw 2021-07-29 00:38:15 +03:00
tsconfig.json wip - balances ui 2021-08-01 21:29:41 +03:00
yarn.lock wip 2021-08-04 22:17:26 +03:00

Assembly

Directory Structure

.
├── ...
├── composables             
│   ├── protocols/          # Logic for protocols, example `useAave2Position.ts`
│   ├── ...       
│   └── ...                  
├── ...
├── components             
│   ├── protocols/          # Contains components used for protocols, example `CardAave.vue`
│   ├── sidebar/            # Contains all sidebar components, check `useSidebar.ts`
│   └── ...                   
├── ...
├── pages             
│   ├── mainnet/            # Apps for Mainnet network
│   ├── polygon/            # Apps for Polygon network
│   └── index.vue           # List all avaiable apps             
└── ...

Creating new App for Mainnet

  • Create a new file my-app.vue in pages/mainnet folder, or duplicat existing protocol, ex: pages/mainnet/aave-v2.vue
  • Register the new app in index.vue in appsPerNetwork array.
  • Create new protocol useMyAppPosition.ts in composables/protocols folder, check composables/protocols/useAaveV2Position.ts for more details.
  • Create sidebars for the new app in components/sidebar/context/my-app folder, ex: SidebarMyAppSupply.vue, check components/sidebar/context/aave-v2 for more details.
  • Register the sidebars in composables/useSidebar.ts, check the sidebars array for more details.

Development

# install dependencies
$ yarn install

# serve with hot reload at localhost:3000
$ yarn dev

# build for production and launch server
$ yarn build
$ yarn start

# generate static project
$ yarn generate

For detailed explanation on how things work, check out the documentation.