-
Notifications
You must be signed in to change notification settings - Fork 6
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
feat: assets #31
Merged
Merged
feat: assets #31
Changes from 53 commits
Commits
Show all changes
54 commits
Select commit
Hold shift + click to select a range
44e2a19
Upgrade for Testnet
dzbo 25177e2
Bump up contracts package
dzbo 985fae3
Fix lsp detection
dzbo 7d853dc
Asset detection change and showing LSP8 metadata
dzbo 665e434
Lint
dzbo ff29f99
Fix name
dzbo a36ea74
Cleanup
dzbo b476d67
Setup WIP
dzbo 89ceb7c
Setup
dzbo a893540
Translations
dzbo 4b04aff
Linters setup
dzbo d37f9f3
Config nuxt plugins, add web components
dzbo 6dc108d
Merge branch 'up-wallet-beta-1.0' of github.com:lukso-network/wallet.…
dzbo e647d2b
Add CI and PR template
dzbo 01e8ae9
Fix lint
dzbo 4ad1d57
rename
dzbo 12fcfad
Sample test
dzbo 549da40
Downgrade nuxt to fix asset copy
dzbo 2123d63
Fix ignores
dzbo 39871ac
Add intl
dzbo 962c54e
Upgrade nuxt
dzbo 973c867
Add intl plugin
dzbo 69c8115
Address check
dzbo 0ea4ad7
Address check cd
dzbo d5e3c2a
Include unit tests
dzbo 1d9dac7
Default layout
dzbo 81d47be
Profile card
dzbo 85e28fe
Routes and redirects
dzbo 8a31836
Tabs
dzbo 0ea8c05
Show dashboard
dzbo 92e4fdd
Merge branch 'develop' of github.com:lukso-network/wallet.universalpr…
dzbo 687c291
Bump up node
dzbo 4c3daf5
change fixture
dzbo b1419a0
Fix routes
dzbo f89f8e8
Upgrade packages
dzbo df1deeb
Clean yarn cache
dzbo ff17496
Fetching profile data
dzbo 5ce3394
Merge branch 'develop' of github.com:lukso-network/wallet.universalpr…
dzbo 8e6f55d
Fix test issue with import web3-utils
dzbo a8c3bb9
PR remarks
dzbo 252cac3
Downgrade utils too
dzbo 0fda35d
Fix import
dzbo bd5a865
Profile connection
dzbo ce2d986
Merge branch 'develop' of github.com:lukso-network/wallet.universalpr…
dzbo 92bf2aa
Fix lint
dzbo 37cb37c
Open store when ext is not installed
dzbo e977f7e
Add connection expiry
dzbo f78c5eb
Assets
dzbo 1f4b454
Merge branch 'develop' of github.com:lukso-network/wallet.universalpr…
dzbo f37a60a
Fix
dzbo 3b6a4fe
Separate loaders
dzbo 8e30626
Fix dep
dzbo 8b55aed
Fixes
dzbo fa757ac
PR remarks
dzbo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<script setup lang="ts"> | ||
import { storeToRefs } from 'pinia' | ||
|
||
import { AssetFilter, Token } from '@/types/assets' | ||
|
||
const { profile } = useProfileStore() | ||
const { tokens, assetFilter } = storeToRefs(useProfileStore()) | ||
const lyxAsset = computed<Token>(() => { | ||
return { | ||
address: '0x0', | ||
data: { | ||
name: 'LUKSO', | ||
symbol: 'LYX', | ||
amount: profile.balance, | ||
address: '0x0', | ||
icon: '/images/lyx-token.jpg', | ||
}, | ||
} | ||
}) | ||
</script> | ||
|
||
<template> | ||
<div class="pt-8"> | ||
<h3 class="heading-inter-17-semi-bold pb-4"> | ||
{{ $formatMessage('tokens_title') }} | ||
</h3> | ||
<div class="grid gap-6 grid-col grid-cols-1 sm:grid-cols-2 md:grid-cols-3"> | ||
<TokenCard v-if="assetFilter === AssetFilter.owned" :asset="lyxAsset" /> | ||
<TokenCard | ||
v-for="(asset, index) in tokens(assetFilter)" | ||
:key="index" | ||
:asset="asset" | ||
:has-address="true" | ||
/> | ||
</div> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why 0x0 over undefined or null?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When i try to use it from the preview URL i see this, might be related?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah now my bad - i think it is a version issue,
But maybe still, the 0x0 default / init state should not log an error in the dev console imo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
address
field is required here but since we don't really show it for LYX it's0x0
.