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

feat: profile fetching #28

Merged
merged 45 commits into from
Aug 4, 2023
Merged

feat: profile fetching #28

merged 45 commits into from
Aug 4, 2023

Conversation

dzbo
Copy link
Collaborator

@dzbo dzbo commented Aug 3, 2023

Ticket ID

DEV-6309
DEV-6529

Description

  • fetch profile from chain
  • profile validation

package.json Outdated
@@ -69,7 +71,7 @@
"stylelint-scss": "5.0.1",
"typescript": "5.1.6",
"util": "0.12.5",
"web3": "^4.0.3",
"web3": "^1.10.0",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I this says ^1.10.0 then it will not force 4.0.3 to downgrade. You should use either ~1.10.0 or 1.10.x. It will cause devs to have to rm -rf node_modules && yarn in some cases.

@dzbo dzbo requested a review from richtera August 3, 2023 08:29
package.json Outdated
@@ -25,8 +25,10 @@
"test:debug": "npx playwright test --debug"
},
"devDependencies": {
"@erc725/erc725.js": "^0.17.2",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

v0.18.0 is now avail. ;)

shared/config.ts Outdated
Comment on lines 8 to 15
rpcHttp: 'https://rpc.testnet.lukso.network',
ipfsUrl: 'https://2eff.lukso.dev/ipfs/',
},
{
id: 'mainnet',
name: 'LUKSO Mainnet',
chainId: '0x2a',
rpcHttp: 'https://rpc.mainnet.lukso.network',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shall we use this or gateway.fm ?


web3Instances.value = {
...web3Instances.value,
[providerName]: markRaw(web3), // web3 instances must be stored as raw objects to prevent reactivity issues
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 i didnt know that!

import { LSP4DigitalAssetJSON } from '@lukso/lsp-factory.js/build/main/src/lib/interfaces/lsp4-digital-asset'

export const validateLSP4MetaData = (
LSP4MetadataJSON: any
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any or Record<string, any> maybe?

Comment on lines 6 to 9
let images = [[]]
let links = []
let assets = []
let icon = []
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we dont have types for these? (i dont remember if we created some types in one of our libs)

@@ -1,4 +1,5 @@
import { isAddress } from 'web3-validator'
import web3utils from 'web3-utils'
const { isAddress } = web3utils // need to import like this due to CommonJS module import issue
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@Hugoo
Copy link
Contributor

Hugoo commented Aug 4, 2023

@github-actions
Copy link
Contributor

github-actions bot commented Aug 4, 2023

Deployed with Cloudflare Pages ☁️ 🚀 🆗

@dzbo dzbo merged commit a1fe01c into develop Aug 4, 2023
2 checks passed
@dzbo dzbo deleted the feat/profile-fetching-DEV-6309 branch August 4, 2023 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants