
How to get Uniswap V3 liquidity pool address for whitelisting?
Similar to what we did for Uniswap V2 on how to find address of smart contract pool that will be generated we can do the same for V3 https://mirror.xyz/n00b21337.eth/0QkNt3NnLnnUSy4jFmWnaeRr_38Z3wlYKKf1O6URG3c Depending on what chain we are at, you can find all the addresses of Factories here https://github.com/Uniswap/sdk-core/blob/5365ae4cd021ab53b94b0879ec6ceb6ad3ebdce9/src/addresses.ts#L135 Aim for the v3CoreFactoryAddress values.**So there are a few methods to do that, one could be to us...
Clear browser storage when developing
Different wallet scripts usually use window.localStorage for saving data for reuse and determination of what is the status of wallet connect, sometimes this could be awire and you need to clear it, you could delete all in browser like cookies, stored data and all the rest but you can also call first this in consolewindow.localStorage to check what is saved and then you can delete it all withlocalStorage.clear(); orlocalStorage.removeItem("name of localStorage variable you want to remov...
Example of implementation of EIP 4906 metadata updates
EIP 4096 has an interesting method of updating your metadata with events, more details here. https://eips.ethereum.org/EIPS/eip-4906 So lets see how to implement it with an example. First you need to create a file with interface that has this code in itpragma solidity ^0.8.0; import "@openzeppelin/contracts/utils/introspection/IERC165.sol"; /// @title EIP-721 Metadata Update Extension interface IERC4906 is IERC165 { /// @dev This event emits when the metadata of a token is changed. /// Third-...
R4Nd0m k0lLEC7I0N 0F U5EFul PHindiN92 0N mY j0URney PhR0m n00b 2 1337. rAmBL1N92 aBoUt 5Ol1d17y, rE4C7, nf7, dEfi, WE83

How to get Uniswap V3 liquidity pool address for whitelisting?
Similar to what we did for Uniswap V2 on how to find address of smart contract pool that will be generated we can do the same for V3 https://mirror.xyz/n00b21337.eth/0QkNt3NnLnnUSy4jFmWnaeRr_38Z3wlYKKf1O6URG3c Depending on what chain we are at, you can find all the addresses of Factories here https://github.com/Uniswap/sdk-core/blob/5365ae4cd021ab53b94b0879ec6ceb6ad3ebdce9/src/addresses.ts#L135 Aim for the v3CoreFactoryAddress values.**So there are a few methods to do that, one could be to us...
Clear browser storage when developing
Different wallet scripts usually use window.localStorage for saving data for reuse and determination of what is the status of wallet connect, sometimes this could be awire and you need to clear it, you could delete all in browser like cookies, stored data and all the rest but you can also call first this in consolewindow.localStorage to check what is saved and then you can delete it all withlocalStorage.clear(); orlocalStorage.removeItem("name of localStorage variable you want to remov...
Example of implementation of EIP 4906 metadata updates
EIP 4096 has an interesting method of updating your metadata with events, more details here. https://eips.ethereum.org/EIPS/eip-4906 So lets see how to implement it with an example. First you need to create a file with interface that has this code in itpragma solidity ^0.8.0; import "@openzeppelin/contracts/utils/introspection/IERC165.sol"; /// @title EIP-721 Metadata Update Extension interface IERC4906 is IERC165 { /// @dev This event emits when the metadata of a token is changed. /// Third-...
R4Nd0m k0lLEC7I0N 0F U5EFul PHindiN92 0N mY j0URney PhR0m n00b 2 1337. rAmBL1N92 aBoUt 5Ol1d17y, rE4C7, nf7, dEfi, WE83

Subscribe to N00b21337

Subscribe to N00b21337
Share Dialog
Share Dialog
<100 subscribers
<100 subscribers
By default using IPFS Desktop and uploading files will give your shareable links each time different URL, which is a problem when you want to have base URL and just change the last part of the path per token ID. So to solve that you need to use is "Wrap Filenames and Directory Info around Content" https://dweb-primer.ipfs.io/files-on-ipfs/wrap-directories-around-conte… which in CLI looks like this.
$ ipfs add -w mytextfile.txt added QmZtmD2qt6fJot32nabSP3CUjicnypEBz7bHVDhPQt9aAy mytextfile.txt added QmPvaEQFVvuiaYzkSVUp23iHTQeEUpDaJnP8U7C3PqE57w
In IPFS desktop you don't have this option but with Pinata service you have this possibility in UI.
Also here is how to use IPNS so you can have fixed base URL even when you change data and add more files https://dweb-primer.ipfs.io/publishing-changes/modify-republish
And even more how to use DNSLink for more cleaner version of IPFS URL https://docs.ipfs.io/concepts/dnslink/#publish-content-path
Let's examine two examples of CIDs in their string form:
QmY6yj1GsermExDXoosVE3aSPxdMNYr6aKuw3nA8LoWPRS bafybeigdyrzt5sfp7udm7hu76uh7y26nf3efuylqabf3oclgtqy55fbzdi
Multihash formatting and base58btc encoding enabled this first version of the CID, now referred to as Version 0 (CIDv0), and its initial Qm... characters remain easy to spot. The second example starts with b, the base encoding prefix identifier for base32, which is used by default by most implementations of IPFS. If it starts with b it's base32 and is CIDv1.
You can convert any CIDv0 to CIDv1, because the implicit prefixes from v0 become explicit in v1. However, because CIDv1 supports multiple codecs and multiple bases and CIDv0 does not, not all CIDv1 can be converted to CIDv0.
More info on Anatomy of CIDs https://proto.school/anatomy-of-a-cid/02 Use CID inspector https://cid.ipfs.io/
When you want to add whole folder to IPFS you need to use one of this two commands
ipfs add -r --cid-version=1 .
this uses CIDv1 or if you just type in plain
ipfs add -r .
this will add files in your current path and folder where they are with CID0 version.
By default using IPFS Desktop and uploading files will give your shareable links each time different URL, which is a problem when you want to have base URL and just change the last part of the path per token ID. So to solve that you need to use is "Wrap Filenames and Directory Info around Content" https://dweb-primer.ipfs.io/files-on-ipfs/wrap-directories-around-conte… which in CLI looks like this.
$ ipfs add -w mytextfile.txt added QmZtmD2qt6fJot32nabSP3CUjicnypEBz7bHVDhPQt9aAy mytextfile.txt added QmPvaEQFVvuiaYzkSVUp23iHTQeEUpDaJnP8U7C3PqE57w
In IPFS desktop you don't have this option but with Pinata service you have this possibility in UI.
Also here is how to use IPNS so you can have fixed base URL even when you change data and add more files https://dweb-primer.ipfs.io/publishing-changes/modify-republish
And even more how to use DNSLink for more cleaner version of IPFS URL https://docs.ipfs.io/concepts/dnslink/#publish-content-path
Let's examine two examples of CIDs in their string form:
QmY6yj1GsermExDXoosVE3aSPxdMNYr6aKuw3nA8LoWPRS bafybeigdyrzt5sfp7udm7hu76uh7y26nf3efuylqabf3oclgtqy55fbzdi
Multihash formatting and base58btc encoding enabled this first version of the CID, now referred to as Version 0 (CIDv0), and its initial Qm... characters remain easy to spot. The second example starts with b, the base encoding prefix identifier for base32, which is used by default by most implementations of IPFS. If it starts with b it's base32 and is CIDv1.
You can convert any CIDv0 to CIDv1, because the implicit prefixes from v0 become explicit in v1. However, because CIDv1 supports multiple codecs and multiple bases and CIDv0 does not, not all CIDv1 can be converted to CIDv0.
More info on Anatomy of CIDs https://proto.school/anatomy-of-a-cid/02 Use CID inspector https://cid.ipfs.io/
When you want to add whole folder to IPFS you need to use one of this two commands
ipfs add -r --cid-version=1 .
this uses CIDv1 or if you just type in plain
ipfs add -r .
this will add files in your current path and folder where they are with CID0 version.
No activity yet