-
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: profile fetching #28
Conversation
…universalprofile.cloud into chore/setup-DEV-6010
…ofile.cloud into feat/dashboard-screen-DEV-5746
…ofile.cloud into feat/profile-fetching-DEV-6309
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", |
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.
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.
package.json
Outdated
@@ -25,8 +25,10 @@ | |||
"test:debug": "npx playwright test --debug" | |||
}, | |||
"devDependencies": { | |||
"@erc725/erc725.js": "^0.17.2", |
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.
v0.18.0 is now avail. ;)
shared/config.ts
Outdated
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', |
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.
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 |
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.
👍 i didnt know that!
utils/validateLSP4Metadata.ts
Outdated
import { LSP4DigitalAssetJSON } from '@lukso/lsp-factory.js/build/main/src/lib/interfaces/lsp4-digital-asset' | ||
|
||
export const validateLSP4MetaData = ( | ||
LSP4MetadataJSON: any |
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.
Any or Record<string, any>
maybe?
utils/validateLSP4Metadata.ts
Outdated
let images = [[]] | ||
let links = [] | ||
let assets = [] | ||
let icon = [] |
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.
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 |
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.
👍
…ofile.cloud into feat/profile-fetching-DEV-6309
Deployed with Cloudflare Pages ☁️ 🚀 🆗 |
Ticket ID
DEV-6309
DEV-6529
Description