Anyone that knows of a tool that can calculate the number of transaction in eth between two wallets ? (cross check for connection)
Apr 28, 2022, 8:49 PM
hmmm not aware of a tool. I would use a custom scraper for this. python / js. should be easy
Anyone have an airdrop contract they want to share?
Apr 28, 2022, 10:31 PM
Just make a function that takes in 2 lists a list of addresses and a list of amounts that corresponds to the addresses in the previous list
Then iterate over the lists at each index sending the amount to the address
Thats it ser
Apr 28, 2022, 10:37 PM
you can write code either or easy way is this - https://docs.etherscan.io/api-endpoints/accounts, this will give list if transactions like this one and you have to just filter in code using from and to
Apr 29, 2022, 11:09 AM
pragma solidity ^0.8.4;
import "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
contract MyToken is Initializable, ERC20Upgradeable {
/// @custom:oz-upgrades-unsafe-allow constructor
constructor() initializer {}
function initialize() initializer public {
__ERC20_init("MyToken", "MTK");
_mint(msg.sender, 1000 * 10 ** decimals());
}
}
import "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
contract MyToken is Initializable, ERC20Upgradeable {
/// @custom:oz-upgrades-unsafe-allow constructor
constructor() initializer {}
function initialize() initializer public {
__ERC20_init("MyToken", "MTK");
_mint(msg.sender, 1000 * 10 ** decimals());
}
}
does this code work for anyone? Doesn't work for me
Thanks for those that tried but if you click on name and symbol or total supply. It returns null for me
Apr 29, 2022, 12:46 PM
click where?
Apr 29, 2022, 12:48 PM
After you deploy this contract in remix
Apr 29, 2022, 12:48 PM
How did you deploy the proxy? And you sure the initialize func was called properly?
Apr 29, 2022, 1:50 PM
Though remix. Just clicked deploy. I shouldn't need hardhat or truffle. This is boilerplate code from openzeppelin wizard
Apr 29, 2022, 2:20 PM
Well, you do actually. Or else you have to deploy the proxy and proxy admin separately
Apr 29, 2022, 3:25 PM
Hmmm, don't have to do this with erc721
Apr 29, 2022, 3:27 PM
You were able to deploy upgradable contract without proxifying it?
Apr 29, 2022, 3:47 PM