Anyone know what's command for truffle to get ETH in wallets generated by truffle?
Oct 13, 2021, 8:57 AM
I think faucet is the only way
Anyone have some links to existing ERC 20 tokens, basic and advanced with extra functionality? should be secure and errorless
Oct 13, 2021, 9:51 AM
He could also run on mainnet-fork a unlock the account he wants .
Oct 13, 2021, 10:37 AM
Hmm๐
Oct 13, 2021, 10:39 AM
The solution is to run the ganache script with argument , if network fork and unlock the desire or work with the generate account . truffle doesn't generate account, it's ganache
Oct 13, 2021, 10:40 AM
What? but I ran truffle migrate and it generated accounts and deployed on local mainnet
If I didn't install ganache even then it worked
Oct 13, 2021, 10:43 AM
truffle needs ganache to generate accounts, ganache play the role of local rpc, how could you deploy without rpc ?
Oct 13, 2021, 10:44 AM
Tbh I don't understand JSON-RPC properly
Is RPC blockchain specific?
So, I am here using ganache without explicitly using ganache commands, but sometimes we do that, using ganache commands on console, what's the difference and when we do that?
Maybe weird question
Oct 13, 2021, 11:05 AM
I don't really understand your question, if you want to deploy on mainnet you don't need ganache but you need ganache to work on local, or network fork .
you can deploy your contract , interact without running ethereum client on your computer with infura, alchemy depending on your truffle-config.js but if you want to unlock and have main control on the chain you need to run a local rpc or fork deployed one , you can use truffle + ganache or hardhat to do the task
it's a bunch of time I didn't use truffle , maybe someone could have better explanation than me
Oct 13, 2021, 11:10 AM
Thanks๐
contract Context {
function _msgSender() public view returns (address payable) {
return payable(msg.sender);
}
function _msgData() public view returns (bytes memory) {
this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
return msg.data;
}
}
function _msgSender() public view returns (address payable) {
return payable(msg.sender);
}
function _msgData() public view returns (bytes memory) {
this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
return msg.data;
}
}
Anyone understand how 'this' keyword silencing warning?
// silence state mutability warning without generating bytecode
I don't understand this, what does it mean by without generating bytecode? I want to know how it can be done with generating bytecode
@NeoMitashi ?
@grimreaper619 Can u pllease explain this?
Oct 13, 2021, 2:06 PM
On slither analysis it would show some issue I guess, to prevent that they build a separate function
Oct 13, 2021, 2:09 PM
What does signing transactions mean? where we don't pay gas?
On open sea many times I do that but don't know what happens behind the interface
if it's action like approving coin on AMM, then we should pay gas for that?
Oct 13, 2021, 2:57 PM
Signing transactions are basically making some bytes with the function data and your private key
Oct 13, 2021, 2:58 PM
Or we just reading data from blockchain with view or pure function?
Oct 13, 2021, 2:58 PM
It takes gas fees to process that data on blick chain
Oct 13, 2021, 2:58 PM
What does it mean in simple words?
Oct 13, 2021, 2:58 PM
Just siging a paycheck
You dont have to pay money to sign
But have to pay to make that transaction
Public key and private key are related.
We can check if a transaction was signed with the public key but cant sign one.
So you can see why we should keep our private key safe
Oct 13, 2021, 3:02 PM
But if this sign is not on blockchain then how's it immutable?
Oct 13, 2021, 3:03 PM
Your private key is immutable
Oct 13, 2021, 3:03 PM
It doesn't have any properties of blockchain
Oct 13, 2021, 3:03 PM
Its how blockchains work
Its the main core element
Oct 13, 2021, 3:04 PM
So why not make every blockchain transaction off chain, so I don't have to pay gas fee, and it's immutable as every wallet has their own private keys?
Oct 13, 2021, 3:04 PM
But how can we know if a transaction is signed of not
Oct 13, 2021, 3:05 PM
And where these off chain txn stored?
Oct 13, 2021, 3:05 PM
There is no off chain txn
You can understand what im saying if you know how bitcoin works
Oct 13, 2021, 3:06 PM
Just don't use a blockchain and you solved lol
Oct 13, 2021, 3:06 PM
Without that it'll complain to make it pure
Oct 13, 2021, 3:06 PM
Just read the white paper
Oct 13, 2021, 3:07 PM
I have made these kinds of clicks on metamask while interacting with some Dapps -
1. Transfering tokens
2. Swapping tokens
3. approving tokens
4. Minting NFTs
5. Sign(only gasless click I made)
1. Transfering tokens
2. Swapping tokens
3. approving tokens
4. Minting NFTs
5. Sign(only gasless click I made)
Oct 13, 2021, 3:07 PM
Sign allows metamask to make transactions
Oct 13, 2021, 3:08 PM
Oh I haven't gone through it's whitepaper, was trying to find a time window to through that, Will do that thanks..
Oct 13, 2021, 3:08 PM
Ye it will give you a good understanding of how block chains work
Oct 13, 2021, 3:09 PM
๐๐
Oct 13, 2021, 3:09 PM
๐๐
Oct 13, 2021, 3:10 PM
There is a nice book by gigi as well
Oct 13, 2021, 3:11 PM
Nice
Oct 13, 2021, 3:11 PM
I am thinking of going through that as well
Oct 13, 2021, 3:11 PM
๐
Oct 13, 2021, 3:11 PM
I don't have proper understand of nodes as well
I think I will need node if I want to use arbi bots?
or It can be helpful as well, if uniswap down on my side
some people do that
Oct 13, 2021, 3:13 PM
Ye
Oct 13, 2021, 3:13 PM
I dont think you need a full node.
Arbitrage requires (depending on how you do it) creating smart contracts that interact with multiple protocols, scanning prices and then executing on opportunities. You could also implement flash loans by calling certain contracts in a DeFi protocol like Aave
Arbitrage requires (depending on how you do it) creating smart contracts that interact with multiple protocols, scanning prices and then executing on opportunities. You could also implement flash loans by calling certain contracts in a DeFi protocol like Aave
Oct 13, 2021, 3:18 PM
I want to try out all that, but I think it will take time to me๐
. I am still struggling with web2 backend and web3
But will ask for help on arbitrage when needed๐
Oct 13, 2021, 3:20 PM
Are you using node.js?
Oct 13, 2021, 3:20 PM
Yeah
Oct 13, 2021, 3:20 PM
๐๐
Oct 13, 2021, 3:20 PM
Thats fine but Im more suggesting shortcuts to what you wanna do. You dont have to build a blockchain to interact with DeFi protocols
Look up moneylegos and it gives you a rundown on flashloans and arbitrage
Oct 13, 2021, 3:21 PM
Are there any resources for arbitrage? I want to get started with it while I'm learning things
Sure thanks
How much time it took to you brother? to get at this stage๐
Oct 13, 2021, 3:22 PM
There was a paper called FlashBoys 2.0 which goes into detail what goes on in arbitrage bots
Oct 13, 2021, 3:23 PM
I dont use node.js. i mainly use python
Oct 13, 2021, 3:23 PM
https://arxiv.org/abs/1904.05234
Oct 13, 2021, 3:24 PM
But ye i will learn web development within the next 3 months
Oct 13, 2021, 3:24 PM
Still you have running bots successfully haha
I understand theory behind it, I just want to into practical now
Oct 13, 2021, 3:25 PM
Web3 is avilable in python
Oct 13, 2021, 3:25 PM
Totally fair. I guess I made an assumption you werenโt familiar because you brought up nodes.
Oct 13, 2021, 3:25 PM
When did u started with solidity?
Oct 13, 2021, 3:25 PM
3 months ago
Oct 13, 2021, 3:26 PM
Gave a quick google
https://github.com/ExtropyIO/defi-bot
Im personally still confused on interacting with protocol interfaces (which what money-legos helps with) which is holding my implementation of arb bots back
https://github.com/ExtropyIO/defi-bot
Im personally still confused on interacting with protocol interfaces (which what money-legos helps with) which is holding my implementation of arb bots back
Oct 13, 2021, 3:30 PM
Thanks a lot๐
Nice mate
Oct 13, 2021, 3:43 PM
Oops
Wasn't intentional :)
Oct 13, 2021, 4:24 PM