is it possible to perform smart-contract verification programmatically ? for simple contract I am able to do it using polygon-scan api. But what if the contract imports multiple external contracts?
Sep 12, 2022, 1:20 PM
I have tried to use json-standard-input format, but it does not work well
of course I know it
but when you have multiple imported contracts, or you use a flattened contract or does not work
yeah the same as mine
Sep 12, 2022, 1:36 PM
maybe you could share the error
Sep 12, 2022, 1:37 PM
Now I try
Sep 12, 2022, 1:38 PM
if the token is your
https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/extensions/ERC20Snapshot.sol
https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/extensions/ERC20Snapshot.sol
Sep 12, 2022, 1:44 PM
is it worth it wasting gasFees to save those in blockchain, when you can use custom emits/actual emits from ERC20 standard?
i've never used that snapshot, even if i see it very sporadically
i've never used that snapshot, even if i see it very sporadically
Sep 12, 2022, 1:46 PM
depends on how the owner want to do it
I won't use it for example
isn't enough query the balanceOf of a rfi token and set the desired block number ?
Sep 12, 2022, 2:11 PM
graphQL it's very powerful, imho the best way to get info from blockchains
still need to learn it
Sep 12, 2022, 2:19 PM
graphQL is like JSON
Sep 12, 2022, 2:22 PM
https://graphql.bitquery.io/ide
ive had better luck getting token holder snapshot with thegraph not bitquery , last time i did it (it was slightly different syntax)
Sep 12, 2022, 2:31 PM
is it crosschain?
Sep 12, 2022, 2:32 PM
bitquery makes it pretty easy, but subgraph takes some setting up
5-10min lag last time i timed it, not for time-sensitive stuff without your own hosted setup
https://medium.com/coinmonks/deploy-subgraphs-to-any-evm-aaaccc3559f
*probably outdated article of course
5-10min lag last time i timed it, not for time-sensitive stuff without your own hosted setup
https://medium.com/coinmonks/deploy-subgraphs-to-any-evm-aaaccc3559f
*probably outdated article of course
Sep 12, 2022, 2:34 PM
bitquery use graph ql too
Sep 12, 2022, 2:38 PM
uses incompatible keywords , i dunno exactly but u cant copypaste from one to the other
Sep 12, 2022, 2:40 PM
Or this, but kinda inefficient as you need archive node + x number of queries to it based on the number of events emitted
Sep 12, 2022, 3:18 PM
heroku too
https://twitter.com/w1nt3r_eth/status/1569340169719021569?t=sH68LUZB_aiXSg92AgM2cQ&s=19
Sep 12, 2022, 4:12 PM
isn't what the Remix is doing?
Sep 12, 2022, 4:19 PM
mm example?
Sep 12, 2022, 4:19 PM
EVM in the browser
Sep 12, 2022, 4:20 PM
are you refering to remix ide?
does it allow to write HTML?
Sep 12, 2022, 4:20 PM
yes
Sep 12, 2022, 4:20 PM
never seen
do you have any example?
do you have any example?
Sep 12, 2022, 4:20 PM
probably not
Sep 12, 2022, 4:21 PM
erc20 balance?
balanceOf then
yes
you said that no?
of?
the contract?
address(this).balance inside it
or
contractAddress.balance from outside
contractAddress.balance from outside
if you are on ETH
but?
show me please
on js?
not on solidity ?
not on solidity ?
ahh ok
getBalance() then
await provider.getBalance(your address here);
you don't see it
it is not in the abi
it is evm method
https://www.quicknode.com/docs/avalanche/eth_getBalance
share screenshot please
please
A way to use Tornado Cash after OFAC sanctions
https://notes.ethereum.org/@GW1ZUbNKR5iRjjKYx6_dJQ/Bk8zsJ9xj
https://notes.ethereum.org/@GW1ZUbNKR5iRjjKYx6_dJQ/Bk8zsJ9xj
Sep 12, 2022, 5:38 PM
I heard a couple times that uniswap blocks tornado-associated addresses. Is this done in the webapp?
If i remember the contracts correctly, there's no censorship feature in them
Sep 12, 2022, 6:01 PM
sincerly I don't know
that dapp is the communnity managed one
that dapp is the communnity managed one
if you mean Uniswap webapp
then I don't think so
I used a wallet that interacted with tornado
then I don't think so
I used a wallet that interacted with tornado
use toString and you will get the real value of that hex
no
it is approximated
as you prefer
toSTring is nicer to see too
then just divide or do parseUnits
no
parseEther is the opposite
sorry formatUnits
Sep 12, 2022, 6:07 PM
The official webapp censors it according to the news:
https://www.coindesk.com/tech/2022/08/22/popular-uniswap-frontend-blocks-over-250-crypto-addresses-related-to-defi-crimes/?outputType=amp
I finally found an article that manages to differentiate between the web app and the contracts
God how i hate journalists
Sep 12, 2022, 7:02 PM
Uniswap has to be based in NY for some reason
Sep 12, 2022, 7:04 PM