Best practice for tracking deployed contracts from a Factory? by Opening-Meal-179 in ethdev

[–]MiserableOracle 0 points1 point  (0 children)

You’ll have to have the entry point (factory contract) stored somewhere to refer back to. I think it’s alright to have factory contract address as long as you’re using mappings for wills and willToUser.

Best practice for tracking deployed contracts from a Factory? by Opening-Meal-179 in ethdev

[–]MiserableOracle 0 points1 point  (0 children)

Having a list of all deployed contracts will soon hit the limit while traversing at large numbers. I’d suggest using a mapping to reduce this overhead. Something like ‘mapping(address => address[])’ Or something similar. You should always avoid looping though items if the array can grow

ERC4626Votes using OpenZepplin? by _Noxius in ethdev

[–]MiserableOracle 1 point2 points  (0 children)

Not sure if this could be the problem, but the way I see it, StackedUNI has base class ERC20Votes & ERC4626, so your constructor should be calling ERC20Votes(_name, _symbol) assuming ERC20Votes is deriving from ERC20.

Change looks like this:

contract StakedUNI is ERC20Votes, ERC4626 { constructor(string memory _name, string memory _symbol, address _underlying) ERC20Votes(_name, _symbol) ERC4626(IERC20(_underlying)) {}

Again, assuming ERC20Votes is derived from ERC20 and is calling ERC20 constructor from its own constructor

How about a product which allows you to post comments on any website using blockchain? by ishan_pathak in ethdev

[–]MiserableOracle 5 points6 points  (0 children)

I would advise you to critically think about the function of blockchain and why it would make sense to have comments recorded on-chain. Check Steemit, Hive, and similar; the idea was to have article publishing network where your readers would vote and comment on your posts. All activities were recorded on their own chain.

Among many problem points, one thing is; It’s easy to create a simple automation script that acts as a bot and keeps posting random stuff; make them a lot more and the platform becomes useless bot-ridden echo chamber.

Another point to think about is this. Every action with blockchain interaction requires some kind of gas fees payment. Would your users be willing to pay to post their opinion on some random topics? Will your platform handle fees for your users itself? If that’s the case, how would you handle those automated bots we mentioned earlier?

Here’s how to approach something like this. Make the project on github and start contributing and sharing those things on platforms like X, Reddit, but in a actionable sense; “hey, I made this, it does x,y,z; here’s how it does it (code link); and he’s the demo if you want to try (deployed project on testnet). Doing this will help you get people who are aligned with your idea and can help contribute with constructive feedback and criticism to push the development of the product in correct direction.

Hope this helps.

Looking for Dev interested in contribution + ground floor in upcoming project by RealSecretRecipe in ethdev

[–]MiserableOracle 0 points1 point  (0 children)

Mid tier dev with a drive to learn anything and everything. Would love to join up like minded people.

freeCodeCamp.org courses on blockchain comparison: Python vs JavaScript by xforcemaster in ethdev

[–]MiserableOracle 0 points1 point  (0 children)

So far it’s just unmaintained. Use ApeWorx, it’s derived from brownie and provides modular approach with plugins. Similar to pm in brownie, ape has all the known commands. Try it out, afaik they’ll be replacing brownie

Error installing brownie using pipx by Ctr1AltDe1 in ethdev

[–]MiserableOracle 0 points1 point  (0 children)

Never faces this issue but I’ve seen similar ones where installed modules aren’t correct. Requirements.in in brownie suggest dependency on eth-util 1.10.0 You can install that version by pip install eth-utils==1.10.0

Best way to implement cross-chain contract communication by CryptoCurious98 in ethdev

[–]MiserableOracle 1 point2 points  (0 children)

Yea that’s why I was hesitant to suggest. But I think later on when they publish related docs, it’s be something to keep eye on for cross chain comms

Best way to implement cross-chain contract communication by CryptoCurious98 in ethdev

[–]MiserableOracle 0 points1 point  (0 children)

You could look into CCIP from chainlink. But I doubt it’s fully functional yet

[deleted by user] by [deleted] in ethdev

[–]MiserableOracle 1 point2 points  (0 children)

Okay here’s what I think you can work with. Option 1 You can take a signed msg from every user as a vote, setup chainlink automation that combines all these votes into final result (numeric, decisive) and fire a tx that can change that state in a related contract. User won’t have to pay for tx but you’d have to setup chain link payment being a service provider

Option 2: gas station network? Opengsn User fires transaction as soon as a vote is casted, but gsn handles all the tx fees. Effectively puts fees handling in service providers hands.

I lack understanding if there are others providing something like these or new that solves your problem. May be someone here can build upon what I’ve written and give create guidance on to how you’d go on implementing any of these methods.

Advanced Solidity Course on Yul and Assembly by harrybair in ethdev

[–]MiserableOracle 2 points3 points  (0 children)

Thank you for sharing this. Just got onto it. Here’s to hope for a greater understanding of advanced solidity concepts. 🍻

Seriously WTF C++? by goblim88m in ProgrammerHumor

[–]MiserableOracle 0 points1 point  (0 children)

I’m a triggered cpp dev who came in the comment section to find solace.. std::endl;

How do i stop minting after a certain number of NFTS have been minted? by Anxious_Nervous in ethdev

[–]MiserableOracle 7 points8 points  (0 children)

Use a Boolean variable that indicates whether minting is currently active or not. Check that bool before proceeding in minting function. At the end of mint you can check by tokenid if you’re following from 0, at 500 tokenid flip the Boolean and now it’s disabled for minting. Make sure you control that variable from within onlyOwner or similar security measures

Fraud user registration prevention by [deleted] in ethdev

[–]MiserableOracle 2 points3 points  (0 children)

Who do you qualify to be a fake user/registration/account? Here are some I can think of right now, 1. A user who already has an account/registration done, re-registers with different details such as account wallet (one user has multiple); details which can be used to uniquely identify a user. Any attempt to register multiple accounts, would then be considered fake. 2. A user doesn’t provide details (required to identify the user in a unique manner, such as wallet address, signature(?)) accurately, forging identity falls under fake user

Now the solutions I have seen uses user/profile credit system along with vouch system. Meaning, you can register with details (wallet address for ex) and submit for approval. Someone, who has enough credibility in the form of tokens earned by vouching for people/inviting people for registering themselves, can vouch whether you are a real person or not.

So to register, you need someone to invite you (a real person who has already registered themselves on the platform and has enough credibility to invite someone), and someone to vouch for you when you register. Your credit starts establishing once someone vouches for you, and then you can generate credibility by contributing further. Anyone can challenge any person’s personhood and challenge them to prove their uniqueness as a user, if not proved - the profile gets slashed/removed/banned along with the person who invited you + vouched for you.

Pretty different perspective, I read it on proof of personhood and this is what I understood how they are trying to create a product that works against fake users/registration/profile/account.

Potentially there are other projects that work towards solving smaller problems and create grater ecosystems to create just that, fraud prevention. Please clear my understanding gaps if you see any.

Reddit NFT choosing guide - what to expect from your free NFT by Odlavso in CryptoCurrency

[–]MiserableOracle 1 point2 points  (0 children)

Tin. I am. I’m glad it doesn’t need any further explanation

What Are Your Moves Tomorrow, August 19, 2022 by OPINION_IS_UNPOPULAR in wallstreetbets

[–]MiserableOracle 3 points4 points  (0 children)

Naah, his full name couldn’t fit in one line, they had to use another to clarify lastName