Skip to content

Commit

Permalink
Feature/Contracts (#9)
Browse files Browse the repository at this point in the history
* added abi and types

* changed chains

* added contracts' addresses

* added use-contract composable

* fix use-contract composable, fix abi of erc1967proxy

* updated info-bar

* data for info-bar of community view

* fix ui

* destruct code for community-view

* data for info-bar of coders-view

* updated info-bar and info-dashboard

* data of user

* updated formatEth util

* added skeletons

* added user balances

* updated skeletons

* fix info-bar, info-dashboard, modal, wallet-balances, web3 store

* added deposit

* erc20 abi for stEth and mor

* updated deposit-form

* fix invalid-network-modal shown

* fix deposit-form

* renamed stETHMock -> stETH

* fix app-button and updated .env.example

* added withdraw

* fix views

* fix bus

* added claim

* fix claim

* updated init loader

* Update actions.yaml

* fix mapEnvCfg

* fix config: APP_NAME -> NAME

* refactoring: config.IS_TESTNET -> config.IS_MAINNET

* updated .env.example

* changed favicon

* fix data fetching on events

* fix invalid-network-modal

* fix progress bar title

* fix notifications timeout

* replaced pools views

* keep alive for view of home-page

* fix deposit-modal

* fix progress-bar

* updated toasts

* fix info-bar and info-dashboard

* fix progress-bar

* fix init-loader css

* re-generated contracts types

* fix router

* fix capital-view

* fix config and .env.example

* fix deposit-form

* fix pools views

* fix wallet-balances

* fix community-view

* fix withdraw-form

* fix deposit-form

* fix toast

* fix workflow actions

* fixes after review

---------

Co-authored-by: Yehor Podporinov <[email protected]>
Co-authored-by: Oleksandr Varchenko <[email protected]>
  • Loading branch information
3 people committed Jan 25, 2024
1 parent 4727557 commit 6fe2b08
Show file tree
Hide file tree
Showing 63 changed files with 6,484 additions and 376 deletions.
7 changes: 5 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
VITE_ENVIRONMENT=development
VITE_PORT=8095
VITE_API_URL='http://localhost:1337'
VITE_APP_NAME='Morpheus Dashboard'
VITE_APP_IS_TESTNET='true'
VITE_APP_ERC1967_PROXY_CONTRACT_ADDRESS='0x0ad2fa5d8f420ff6d87192b32d89faf70466b30b'
VITE_APP_STETH_CONTRACT_ADDRESS='0x84BE06be19F956dEe06d4870CdDa76AF2e0385f5'
VITE_APP_MOR_CONTRACT_ADDRESS='0xe6D01D086a844a61641C75f1BCA572e7aa70e154'
#VITE_APP_IS_MAINNET='true'
#VITE_APP_BUILD_VERSION='1.0.0'
4 changes: 3 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@
<body>
<div id="app" class="app">
<div id="noscript" class="app__init">
<img src="/init-loader/init-logo.svg" alt="vue-vite-template" width="280">
<svg class="app__init-logo">
<use href="/branding/logo.svg#logo" />
</svg>
</div>
</div>
<div id="modal"></div>
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"lint:styles": "stylelint \"src/**/*.{vue,scss,css}\" --max-warnings=0",
"lint:scripts": "eslint \"{src,config}/**/*.{vue,js,ts}\" --cache --fix --max-warnings=0",
"preview": "vite preview",
"rsc": "node scripts/release-sanity-check.mjs"
"rsc": "node scripts/release-sanity-check.mjs",
"generate-ether-types": "typechain --target=ethers-v5 'src/abi/**/*.json' --out-dir src/types/contracts"
},
"dependencies": {
"@distributedlab/tools": "^0.2.0",
Expand All @@ -40,6 +41,7 @@
"@esbuild-plugins/node-modules-polyfill": "^0.2.2",
"@originjs/vite-plugin-commonjs": "^1.0.3",
"@rushstack/eslint-patch": "^1.1.3",
"@typechain/ethers-v5": "^11.1.2",
"@types/lodash": "^4.14.194",
"@types/node": "^20.1.3",
"@types/uuid": "^9.0.2",
Expand Down Expand Up @@ -67,6 +69,7 @@
"stylelint-config-standard-scss": "^9.0.0",
"stylelint-declaration-strict-value": "^1.8.0",
"stylelint-scss": "^5.0.0",
"typechain": "^8.3.2",
"typescript": "^5.0.4",
"vite": "^4.0.3",
"vite-plugin-checker": "^0.6.0",
Expand Down
7 changes: 2 additions & 5 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@
</transition>
</router-view>
</div>
<invalid-network-modal
v-model:is-shown="isShownInvalidNetworkModal"
is-close-by-click-outside
/>
<invalid-network-modal v-model:is-shown="isShownInvalidNetworkModal" />
</div>
</template>

Expand Down Expand Up @@ -60,7 +57,7 @@ const initNotifications = () => {
const init = async () => {
try {
document.title = config.APP_NAME
document.title = config.NAME
initNotifications()
await web3ProvidersStore.init()
Expand Down
Loading

0 comments on commit 6fe2b08

Please sign in to comment.