/r/ethdev

Photograph via snooOG

Ethereum-related dev talk:

Contracts, DApps, Wallets, Clients, Infrastructure, Tooling, UIs, Patterns, and others.

Ethereum Development and DApps

No specific rules are enforced apart from the normal global reddit rules.

Search our history

Testnet Ethers

Updated faucets for 2022:

https://goerlifaucet.com (new since March)

Goerli Github Request Issue

https://www.rinkebyfaucet.com

Updated faucet for 2021:

https://faucets.chain.link/

Older faucets (some might be broken):

For Rinkeby, Ropsten, Kovan, Goerli Testnet Ethers: Get them here and here

For more Görli Testnet Ethers: Get them here

For more Ropsten Testnet Ethers: Get them here

Other subreddits

http://ethereum.stackexchange.com/ - The Ethereum Programming Stack Exchange

r/EthDevJobs - To find Jobs, and posting you're Hiring

r/ethereum - Offical sub, for discussion of Tech and Application Development using Ethereum.

r/ethfinance - A community for investors, traders, users, developers, and others to discuss Ethereum and its cryptocurrency ETH.

r/ethtrader - Trading sub, for price discussion of Ether and other cryptocurrencies

r/ethstaker - About staking your ETH: help and guidance

r/EtherMining - Ether Mining discussion.

r/ethereumnoobies - Ethereum for newbies

Others: r/ethtraderpro, r/cryptocurrency

/r/ethdev

109,144 Subscribers

1

I am trying to make Web3 owning NBA teams, AMA

It's been over 15 years since Satoshi Nakamoto introduced Bitcoin, igniting discussions on how Web3 could reshape traditional financial systems, build a better world, solve poverty, and break monopolies. However, after 15 years, large funds and VCs have begun to dominate the Web3 space, somewhat overshadowing the decentralized ethos it originally promised.

Despite these challenges, I believe it's time for Web3 to reclaim its potential, not through token governance, but through actual governance of real-world assets, like NBA teams.

Who am I?
I'm MingDynastyVase (https://twitter.com/MetaDynastyVase), an engineer in the Web3 sector and a fervent NBA fan and NBA Top Shot NFT collector.

My Dream
Owning an NBA team has always been a dream of mine. Despite being a middle-class kid without extraordinary means, I've nurtured this dream by investing in Madison Square Garden Sports stocks, aspiring to participate in what I consider the ultimate fantasy game.

Inspiration from Web3
Inspired by Don Tapscott’s "Blockchain Revolution," I've realized how decentralized autonomous organizations (DAOs) could manage real-world businesses. Within the NBA Top Shot community, I've met others who share a deep love for the league and believe in Web3’s potential.

My Plan
Traditional DAOs have often been criticized for centralization, where a few control the many. I aim to diverge from this by rallying the passion and fandom of the community rather than just fundraising through tokens. Here's how I envision it:

  1. Community Building: Gather fans and potential investors in an online community.
  2. Smart Contract Development: Launch a smart contract allowing participants to show their willingness to invest while maintaining control of their assets. See the prototype here: https://etherscan.io/address/0x46c5264728af4dbe274929f9509fbeabf8cca2c9
  3. Legal Framework: Establish an LLC to handle regulatory and legal frameworks.
  4. Network Growth: Expand our community, connect with players, team owners, and notable public figures.
  5. Deal Negotiation: Initiate fundraising only when a real opportunity to purchase NBA shares emerges, ensuring transparency throughout the process.
  6. Tokenization: Distribute tokenized shares to all investors.
  7. DeFi Integration: Develop a DeFi platform leveraging the tokens to enhance Web3 utility.

Benefits for You

  • Fans: Gain perks like tickets and merchandise, deepen your connection with the team, and influence league decisions.
  • Investors: Own a part of high-value, historically rich NBA teams.
  • Developers: Inspire more businesses to explore real-world asset (RWA) integration with Web3, potentially revolutionizing how industries operate.

By transforming fans into owners, we not only democratize team ownership but also integrate the passionate spirit of sports with the transformative potential of Web3.

0 Comments
2024/05/15
18:58 UTC

2

Be a technical writer first?

Ok. I'm 17 turning 18. In the past few months, while I was trying to learn about tech, I was constantly distracted by the thought that I wouldn’t get a dev job. When I look online, I see job listings that require 3+ years experience. There are hardly any junior dev jobs now. Even if there are, they are web dev, which I’m not interested in. I was indecisive on what field to pursue, trying to find the quickest way to get a job because I’m almost 18 and I want to be independent. As a result, it was difficult to concentrate and I wasted a lot of time.

I want to take my time to learn things thoroughly and do things the hard way, but I feel that I have to rush because I don’t want to keep being dependent on my dad. He doesn’t mind me living with him after 18, but I do. I feel guilty.

Eventually, I would like to be a blockchain core developer. There aren't many jobs, and pretty much no junior jobs for protocol core developers. So, I don't know how long it will take me to study everything and secure a position. Yet, I would need to support myself.

So I thought I’d train for a position that has a lower barrier to entry than a junior dev, like a technical writer for blockchain/web3 companies. That way, I could start working, be independent, gain experience in tech, and take my time studying comp sci and blockchain knowing that I can support myself. Plus, I like writing, and I’m sure I’ll learn a lot in that job.

Or, I could try to suppress the doubt that I won’t be able to find a dev job while continuing to study at home. I think this route is going to be more difficult, but I’m looking for the better route, not the easier one.

Which option is better?

Get a technical writer job or just study at home until I get a core protocol dev job?

Thank you

1 Comment
2024/05/15
15:17 UTC

1

calling function reverts

    const getCampaigns = async () => {
        const provider = new ethers.providers.Web3Provider(window.ethereum);
        const signer = provider.getSigner();
        const contract = fetchContract(signer);
        const campaigns = await contract.getCampaigns();
        const parsedCampaigns = campaigns.map((campaign, i) => ({
          owner: campaign.owner,
          title: campaign.title,
          description: campaign.description,
          target: ethers.utils.formatEther(campaign.target.toString()),
          deadline: campaign.deadline.toNumber(),
          amountCollected: ethers.utils.formatEther(campaign.amountCollected.toString()),
          pId: i,
        }));
        return parsedCampaigns;
      } when getCampaigns is called the  a call function invert shows up how to solve this
1 Comment
2024/05/15
09:13 UTC

1

need some solidity internship advice

I am starting my solidity internship in two weeks time and I would like to increase my chances of getting a full offer after the internship. It is fully remote and the team is spread across the globe but mainly in EU and South Africa. I have a degree in Applied Mathematics and Computer science and I have one year experience working with R in fintech, and another year of freelancing. I got this internship by participating in hackathons and being active in the community. How can I maximize my chances of landing a full offer. during thr interview process I did mention that I would require some mentorship but generally outside of that I want to secure the full offer after the internship and gain experience with solidity.

3 Comments
2024/05/14
15:30 UTC

3

Books/courses recommendations for learning Blockchain Core dev?

Hi, I'm studying to become a core developer, and I'm looking for good textbooks to teach me the fundamentals. I'd very much prefer hands-on books/courses where I am assigned many projects. But if there aren't any, I don't mind assigning myself projects. The completeness and clarity of the content is more important to me than hands-on books/courses.

Current Knowledge:

  • I know a little bit of programming (just above beginner level, I'd say)
  • I know what a blockchain is, and a very superficial idea of how it works
  • Currently undertaking Chainlink's Hackathon where I am to build a dApp. No idea what I'm doing, but the whole point is to learn how to figure things out on the way. This way, I'd have some context to 'hang' my newfound knowledge of how things really work.

Thanks!

8 Comments
2024/05/14
15:17 UTC

2

Most efficient(cheapest) way to convert address to bytes32?

As the title says, I want to convert address to bytes32. I'm aware that in recent versions it is no longer directly convertible. I've seen a number of different ways such as:

1

bytes32(bytes20(address))  
bytes32(uint256(uint160(address))

No idea how accurate of efficient any of these might be however.

1 Comment
2024/05/14
14:23 UTC

1

Optimism Sepolia smart contract verify

I get such error of compilation in Optimism Sepolia testnet network.The contract succesfully compiles using hardhat with needed configuration.What should I do to get verified the contract ?

https://preview.redd.it/g4d9jtym4e0d1.png?width=1290&format=png&auto=webp&s=49bc5cb8a92bc703742f9f7e7064b7defba00e0f

4 Comments
2024/05/14
13:03 UTC

2

HackSecret III is in 6 Days

0 Comments
2024/05/14
10:51 UTC

1

What happens if I use swapExactTokensForTokens when trying to swap ETH, instead of swapExactETHForTokens?

As the title says. Would the transaction fail, or is it just a less efficient way to swap that costs more gas or something? Furthermore, if applicable, is there any real difference in swapping ETH vs WETH, using swapExactTokensForTokens? Would WETH transaction succeed and ETH fail, or would they both pass or fail?

3 Comments
2024/05/14
02:30 UTC

1

What do you like and dislike about crypto wallets?

Hey everyone, I'm currently doing UX research on crypto wallets and I'd like to hear what crypto users have to say about the pros and cons of using the wallets? You can specify the improvements you'd most like to see or the things that annoy you.

Thanks in advance :)

4 Comments
2024/05/13
21:16 UTC

2

I got an senior software engineer interview

Hey guys, I am an full stack blockchain developer with around 2 years of experience. In which I was mostly working on blockchain side. I got an interview for senior software engineer with no way I am qualifying for and guess what I don’t know DSA and system design. Now I am have and hiring manager round in coming few days starting up preparation.

I got only one question should I say them I am looking for internship or lower role or should I just try ?

And help would appreciate thanks.

6 Comments
2024/05/13
18:48 UTC

1

How do you test protocol level changes?

If you work on the protocol level what does your testing stack look like? do you test on testnets / devnets / private testnets? What is good and bad about your workflow?

7 Comments
2024/05/13
14:13 UTC

1

Web3Builder News 5/6-5/12: Vitalik Proposes "Multidimensional Gas Pricing"

0 Comments
2024/05/13
08:39 UTC

1

Exocore's April Recap: Testnet comes closer to launching!

6 Comments
2024/05/13
07:41 UTC

1

Is there Uniswap V2/V3 function to get initial token supply amount in pool?

I need to get initial token supply when liquidity pool was created by querying Ethereum node (RPC) or Uniswap contract and not Mint() function, is it possible to do (python)?

To get reserves on any block I can by contract.functions.getReserves().call(block_identifier=N), but the problem if there were trades in that block, I will receive reserves by that end of block, not initial.

Why not Mint() function: because finding it in blockchain will take time and also decoding topics functions also take time, but I need to get it fast.

4 Comments
2024/05/13
03:07 UTC

0

Cant sell coin.. why?

Hello i got bluebird on base on cb wallet and did all my research and everything website said it was safe to buy, token sniffer, dex tools, all that. Now token sniffer says its a scam and i cant sell my tokens.. i have over 10k worth is there anything i can do? Everytime i try to swap it says failed

Contract address is 0xafb9b3b3bb97dfda0883e60dddfafc14180fe6a6

Please let me know if theres anything i can do to get my money back.. this is a very big problem in my life

10 Comments
2024/05/11
23:11 UTC

2

Looking for feedback and insights on LP and if it is doable from a smart contract perspective

What are your thoughts on a decentralized exchange design that introduces synthetic leverage for liquidity providers through dynamic Ol caps and Ol skew? Do you think this concept is feasible, and what potential risks or challenges do you foresee? Looking for feedback and insights!

So here is the idea, Instead of traditional leverage mechanisms, I am thinking of a dynamic Open Interest (Ol) caps and Ol skew to allow LPs to take on synthetic leverage. By matching existing long and short positions within the system, additional LP capital is unlocked without the need for direct borrowing. Smart contracts monitor Ol skew in real-time and manage positions, while Auto Deleveraging (ADL) ensures LP solvency. The aim is to enhance LP efficiency and returns without the risk of liquidation. Its something like leverage without liquidation.

An example would be like:

At a 50-50 Ol skew, LPs are delta neutral. At this state of the markets, we increase the caps for Ol and allow more trades to be placed against "synthetic capital", i.e. these trades would not need to be placed against actual liquidity - instead we'd effectively be matching already open longs and shorts against each other, to set off LP liability and "unlock" existing LP capital (we'd need to draw up a smart contract that monitors Ol skew, matches existing longs and shorts with each other and finally keeps track of outstanding liabilities).

For this to work, Long and Short side Ol caps need to be dynamic and increase / decrease based on Ol skew in real-time. We use ADL to close profitable positions if skew ever reaches a predetermined threshold to ensure LP solvency.

Scenario A:

100$ in LP

$100 in open interest - 50/50 skew

At this stage, we open up $100 more in open interest caps since LPs are net neutral (effectively leveraging the entire LP 2x).

If long Ol then increases by $20 (total Ol now at $120 - skew at 58 / 42) then we have essentially $20 liability if longs profit because the rest of the longs and shorts are net neutral (there is still $100

buffer in the pool)

If Shorts then close $40 worth of their positions and Ol changes to $80 total ($70 in longs and $10 in shorts) - LPs have $60 in liabilities if longs profit (skew imbalance)

Scenario B:

100$ in LP

$100 in open interest - 50/50 skew

At this stage, we open up $100 more in open interest caps since LPs are net neutral.

Short Ol increases by 90 and long Ol by $10 (total Ol is $200 - skew $60 / $140) - that's potentially an $80 liability.

So is it feasible and doable from a smart contract perspective? Thanks for reading a post so long :)

0 Comments
2024/05/11
22:57 UTC

1

Can I create my own token standard and will Metamask accept it?

12 Comments
2024/05/11
21:15 UTC

2

Sneak Peek: Help Us Refine Watchit's Litepaper

We're excited to share that the first draft of our litepaper for Watchit is ready! We've put a lot of effort into this and are eager to hear your thoughts. Watchit is all about transforming film distribution using decentralized technology to support independent filmmakers and connect them with audiences worldwide.

Why You Should Check It Out:

  • Fresh Ideas: We're using blockchain to address challenges in the film industry.
  • Your Input Matters: Your feedback can help us improve and shape Watchit's future.
  • Early Access: Be one of the first to review and provide your insights.

👉 Want an early peek? Please leave a comment or DM.

Thank you guys!

2 Comments
2024/05/11
18:21 UTC

0

Server to find solana developers and solana dev jobs

Looking to hire devs or getting hired as one join our community

https://discord.me/solanadevs

0 Comments
2024/05/11
09:25 UTC

0

Are there any real tutorials for eth Sandwich attack bots (in python or JavaScript)?

5 Comments
2024/05/10
23:18 UTC

1

How do you currently monitor and process transactions?

For any builders who accept crypto payments, what tools or provider do you currently use.?

Or are you currently looking for a solution?

3 Comments
2024/05/09
22:02 UTC

1

Launching Today: HyperHash AI – Powering the Future with GPU/CPU Rentals and More! (An ERC20 Token)

⭐️ HyperHash AI: Leading the Charge in Digital Solutions

We are thrilled to announce the official Uniswap launch of HyperHash AI, a cutting-edge platform that provides innovative services across various domains, including gaming, cloud mining, and 3D rendering. Our technology leverages the latest in GPU and CPU architecture to deliver unparalleled performance and reliability.

🎮 Our Features Include:

  • GPU/CPU Rental Plans: Access high-performance hardware on demand for your computing needs.

  • Powerful 3D Rendering: Bring your creative projects to life with our advanced rendering solutions.

  • High-Performance Gaming: Experience gaming like never before with optimized resources.

  • Profitable Cloud Mining: Mine your favorite cryptocurrencies efficiently and profitably.

AI & ML Innovation: Stay ahead with our AI-driven solutions enhancing every aspect of our services.

🔗 Key Links:

🗓 Launch Details:

  • Date: Today, May 9th

  • Time: 18:00 UTC

  • Platform: Uniswap

🔗 Connect with Us:

Join our community today and be a part of the revolution in digital services. Your future in the digital economy starts with HyperHash AI.

👉 Join Our Main Chat to discuss and celebrate the launch with the community!

0 Comments
2024/05/09
17:57 UTC

1

Should I do Core Protocol or Smart Contract Developing?

I'm looking to start a career in blockchain technology because I find it fascinating. But I also need to find a job because I'm almost 18 and need to start being independent. I know it's going to take a while to learn, but I have all day, everyday.

I'm not interested in web3 dev (maybe backend is ok). I'd rather do smart contract development or protocol development.

Since I need to find a job, which one has a lower barrier to entry? Better yet, what is the saturation to barrier-to-entry ratio for each?

Thanks

10 Comments
2024/05/09
01:24 UTC

6

What are the different types of blockchain/ethereum developers?

Are Ethereum developers just web3, dApp developers for ethereum's blockchain? Or are there different types of developers in this field?

Type of specialty I'm looking for:

I got interested in blockchain technology because of its decentralised nature and how beneficial that could be to having transparent and non-corrupt organisations and systems. My father had been involved with government officials before and the stories he tells me of how corrupt and rigged the whole system is, is just unbelievable. I think blockchain technology can really make people less dependent on these governments, and I want to contribute to it and see it become a reality.

What field in blockchain or ethereum (if any) should I study for in order to make the blockchain itself better? And to also get a job in that field because I need to survive lol.

6 Comments
2024/05/08
19:43 UTC

0

How can I generate 0.5 ETH from nothing?

Here is weird transaction that is first one in address and that is tagged as SELF. From=To. Guy made from nothing 0.5 ETH. How is that possible?

https://etherscan.io/tx/0x9a1ae0f0c5853fbe9701783fd706ff9c0798b813d3a93d1f740e21a73cb47328

9 Comments
2024/05/08
14:22 UTC

1

Why does solc compile bad instructions

I want to compile and deploy my contract.

When I use solc with --viaIR (a requirement of my contract, as one function has 8 parameters, which is obviously more than solidity can handle), it compiles successfully (with both bytecode and deployed bytecode).
When I deploy it, the contract is unsuccessfully deployed; trace gives the message 'Bad instruction'.

I've encountered this same exact error before with a different, smaller contract, so I tried solcjs, which coincidentally doesn't give this error. When I try solcjs on this contract, it tells me I should try compiling with the --viaIR flag. Problem is, the flag doesn't exist. So I try using the --standard-json option and write a json configs file. When i then run solcjs with --standard-json ./COMPILER_CONFIGS.json, it enters an infinite loop and the program is stuck on something.

So my question is how do I solve solc giving bad instructions or, alternatively, how do I supply configs to solcjs?

4 Comments
2024/05/08
13:33 UTC

Back To Top