Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Promote develop to master #211

Merged
merged 36 commits into from
Dec 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
1916b3f
Fix side nav animation
DemogorGod Nov 23, 2022
94fcbc0
Add Staking page modal
DemogorGod Nov 23, 2022
e1f7213
Add ETH staking pool view page
DemogorGod Nov 30, 2022
66bcebc
Set up wallet select view
DemogorGod Nov 30, 2022
55ca093
Add confirm and sign page
DemogorGod Dec 1, 2022
2318579
Update Staking layout
DemogorGod Dec 5, 2022
bae488e
Calculate fees and add to staking total
ccali11 Dec 6, 2022
eb4cbe6
Tidy up wordings & styling
DemogorGod Dec 6, 2022
9c8c9d6
Tidy up wordings & styling
DemogorGod Dec 6, 2022
e0b9c7c
Add mock validator init
shanejearley Dec 6, 2022
30b7355
Add pool validator public key test
shanejearley Dec 6, 2022
97e0569
Hardcode goerli validator and operators
shanejearley Dec 6, 2022
53c2d24
Update pool interface
shanejearley Dec 6, 2022
8a75907
Disable matcher build
shanejearley Dec 6, 2022
40bf709
Update package-lock.json
shanejearley Dec 6, 2022
17d7e1b
Set matcher build fail code to 0
shanejearley Dec 6, 2022
b7719ba
Add exchnage package and composable
hawyar Dec 6, 2022
f9bca87
Update .gitignore
shanejearley Dec 6, 2022
f654a5e
Update dev secrets path in .gitignore
shanejearley Dec 6, 2022
57d0838
Merge pull request #208 from consensusnetworks/feature/ssv-fees
ccali11 Dec 6, 2022
7682daf
Clean
hawyar Dec 6, 2022
7893587
Update pills text on ETH Staking page
DemogorGod Dec 6, 2022
f5d3f52
Fix
hawyar Dec 6, 2022
9a9fc50
Remove vscode user setting
hawyar Dec 6, 2022
d7c46a1
Merge pull request #212 from consensusnetworks/feature/exchange-rate-fe
hawyar Dec 6, 2022
0d8d9ba
Add validator and operator detail fetch
shanejearley Dec 7, 2022
534b46a
Tidy up styling
DemogorGod Dec 7, 2022
eeaef19
Merge pull request #209 from consensusnetworks/feature/staking-page
shanejearley Dec 7, 2022
2f33bfe
Merge pull request #213 from consensusnetworks/feature/ssv-pool-query
shanejearley Dec 7, 2022
146eb7e
Add live data to /stake
shanejearley Dec 7, 2022
10a2daa
Add live staking flow
shanejearley Dec 7, 2022
d464235
Add operator list to pools
shanejearley Dec 7, 2022
798caeb
Add todo notes
shanejearley Dec 7, 2022
3c06854
Set starting pool apr and effectiveness to 0
shanejearley Dec 7, 2022
48beb79
Add ETH annotations when needed
shanejearley Dec 7, 2022
ad50a28
Merge pull request #214 from consensusnetworks/feature/live-data
robosupport Dec 7, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
"type": "header",
"text": {
"type": "plain_text",
"text": ":construction: Development Deployment → :space_invader: Casimir"
"text": ":construction: Development Deployment → :ocean: Casimir"
}
},
{
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ jobs:
"type": "header",
"text": {
"type": "plain_text",
"text": ":trumpet: Production Release → :space_invader: Casimir"
"text": ":trumpet: Production Release → :ocean: Casimir"
}
},
{
Expand Down
6 changes: 2 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,5 @@ aws.env
*.log
.idea



# Prevents committing node data
scripts/ssv/resources/nimbus/data
# Sensitive
**/**/secrets/*.json
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@
"typescript"
],
"css.lint.unknownAtRules": "ignore",
"jupyter.notebookFileRoot": "${fileDirname}"
"jupyter.notebookFileRoot": "${fileDirname}",
}
2 changes: 1 addition & 1 deletion apps/landing/src/pages/home/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
},
{
name: 'google',
content: 'Contact us at Info@conensusnetworks.com!',
content: 'Contact us at Info@consensusnetworks.com!',
link: 'mailto:Info@consensusnetworks.com?subject=Me&body=Dear Casimir Dev Team!'
},
])
Expand Down
2 changes: 1 addition & 1 deletion apps/web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<title>Casimir</title>
</head>
<body>
<div style="background: #00091A; min-width: 360px; overflow: auto;">
<div style="background: #001A4D; min-width: 360px; overflow: auto;">
<div id="app"></div>
</div>
<script type="module" src="/src/main.ts"></script>
Expand Down
9 changes: 9 additions & 0 deletions apps/web/public/ETH.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 28 additions & 0 deletions apps/web/src/components/USDAmount.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<script lang="ts" setup>
import { defineProps, onMounted, ref, toRef, watch } from 'vue'
import useFormat from '@/composables/format'
import usePrice from '@/composables/price'

const { formatDecimalString } = useFormat()
const { getExchangeRate } = usePrice()

const usdAmount = ref(0)
const props = defineProps({
etherAmount: {
type: String,
required: true,
}
})
const etherAmount = toRef(props, 'etherAmount')
onMounted(async () => {
usdAmount.value = await getExchangeRate(props.etherAmount)
})
watch(etherAmount, async () => {
usdAmount.value = await getExchangeRate(props.etherAmount)
})

</script>

<template>
<div>${{ formatDecimalString(usdAmount.toString()) }}</div>
</template>
6 changes: 3 additions & 3 deletions apps/web/src/components/Wallet.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<div>
<ul>
<li
v-for="(_value, _key) in usersAccounts"
v-for="(_value, _key) in user"
:key="_key"
>
<ul v-if="_key === 'accounts'">
Expand Down Expand Up @@ -178,7 +178,7 @@
</template>

<script setup lang="ts">
import { ref, watchEffect } from 'vue'
import { ref, watchEffect, onMounted } from 'vue'
import useWallet from '@/composables/wallet'
import useUsers from '@/composables/users'

Expand All @@ -200,7 +200,7 @@ const trezorAccountsResult = ref<string>('Address Not Active')
const walletConnectButtonText = ref<string>('Connect WalletConnect')
const walletConnectAccountsResult = ref<string>('Address Not Active')

const { addAccount, removeAccount, usersAccounts } = useUsers()
const { addAccount, removeAccount, user } = useUsers()
const {
selectedProvider,
selectedAccount,
Expand Down
18 changes: 9 additions & 9 deletions apps/web/src/components/navigation/SideNav.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ const open = ref(false)



const selectedPage = ref(router.currentRoute.value.fullPath)
const selectedPage = ref(router.currentRoute.value.fullPath.split('/')[1])

watch (router.currentRoute, () => {
selectedPage.value = router.currentRoute.value.fullPath
selectedPage.value = router.currentRoute.value.fullPath.split('/')[1]
})

// To Do: connect this to our Auth and see if an account exsists
Expand All @@ -20,7 +20,7 @@ const account = ref(true)

<template>
<div
class="side-nav-container"
class="side-nav-container text-white"
@mouseenter="open = true"
@mouseleave="open = false"
>
Expand All @@ -42,7 +42,7 @@ const account = ref(true)
>
<div
class="side-nav-tabs"
:class="selectedPage === '/'? 'side-nav-tabs-selected' : 'text-white'"
:class="selectedPage === ''? 'side-nav-tabs-selected' : 'text-white'"
>
<i
class="iconoir-report-columns"
Expand All @@ -57,19 +57,19 @@ const account = ref(true)
</RouterLink>

<RouterLink
:to="!account ? '' : '/Staking'"
:to="!account ? '' : '/stake'"
>
<div
class="side-nav-tabs"
:class="selectedPage === '/Staking'? 'side-nav-tabs-selected' : ''"
:class="selectedPage === 'stake'? 'side-nav-tabs-selected' : ''"
:style="!account? {
'cursor' : 'default'
} : {}"
>
<div :class="!account? 'flex text-grey_5': 'flex text-white'">
<i>
<img
src="Staking-Icon.svg"
src="/Staking-Icon.svg"
alt="Staking Icon"
:class="!account? 'opacity-50': 'opacity-100'"
>
Expand All @@ -85,12 +85,12 @@ const account = ref(true)
</RouterLink>

<RouterLink
:to="!account ? '' : '/Assets'"
:to="!account ? '' : '/assets'"
class="disabled"
>
<div
class="side-nav-tabs"
:class="selectedPage === '/Assets'? 'side-nav-tabs-selected' : ''"
:class="selectedPage === 'assets'? 'side-nav-tabs-selected' : ''"
:style="!account? {
'cursor' : 'default',
} : {}"
Expand Down
Loading