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-...

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...
R4Nd0m k0lLEC7I0N 0F U5EFul PHindiN92 0N mY j0URney PhR0m n00b 2 1337. rAmBL1N92 aBoUt 5Ol1d17y, rE4C7, nf7, dEfi, WE83
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-...

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...
R4Nd0m k0lLEC7I0N 0F U5EFul PHindiN92 0N mY j0URney PhR0m n00b 2 1337. rAmBL1N92 aBoUt 5Ol1d17y, rE4C7, nf7, dEfi, WE83
Share Dialog
Share Dialog

Subscribe to N00b21337

Subscribe to N00b21337
<100 subscribers
<100 subscribers
Truffle has decent step debugger in its CLI, what is extra convinient is that you could step debug any transaction on any chain with it. Use this little trick. Run Ganache as fork of mainet or any other chain you want (check the docs for other chains)
ganache --fork
This will start a fork of mainet locally and all you have to do next is to find some transaction you want to step debug and add it to line like below
truffle debug 0x75923601c12bb33d67a83d876f23f030abaaa9b21eae4b1e79c8532f821db902 --fetch-external --url http://127.0.0.1:8545
this will take up to 5 minutes to load from node but once it does you can quickly debug all in that transaction.
One note, it is said things are faster if you add your etherscan api key to the truffle-config.js like so, but I didnt see much improvement
etherscan: {
apiKey: "0123456789abcdef0123456789abcdef", //replace this with your API key if you have one
},
Truffle has decent step debugger in its CLI, what is extra convinient is that you could step debug any transaction on any chain with it. Use this little trick. Run Ganache as fork of mainet or any other chain you want (check the docs for other chains)
ganache --fork
This will start a fork of mainet locally and all you have to do next is to find some transaction you want to step debug and add it to line like below
truffle debug 0x75923601c12bb33d67a83d876f23f030abaaa9b21eae4b1e79c8532f821db902 --fetch-external --url http://127.0.0.1:8545
this will take up to 5 minutes to load from node but once it does you can quickly debug all in that transaction.
One note, it is said things are faster if you add your etherscan api key to the truffle-config.js like so, but I didnt see much improvement
etherscan: {
apiKey: "0123456789abcdef0123456789abcdef", //replace this with your API key if you have one
},
No activity yet