r/EthereumProgramming • • May 07 '18

Cliquebait is a shockingly easy-to-use Docker image for testing and integrating Ethereum smart contracts.

8 Upvotes

Cliquebait is a compact, fun, and easy to use Docker image that spins up a single-node Proof of Authority blockchain with Geth. It also generates some accounts and gives them ether, as well as unlocks them for use via Web3.

Why?

Cliquebait simplifies integration and accepting testing of smart contract applications by offering a clean ephemeral testing environment that closely resembles a real blockchain network. The key differences are a shorter block time (3 seconds by default) and a VERY high gas limit from the start.

Cliquebait Blog Post

https://github.com/f-o-a-m/cliquebait


r/EthereumProgramming • • Aug 16 '15

So I wrote another post in DApp development

Thumbnail blog.rplasil.name
8 Upvotes

r/EthereumProgramming • • Jun 17 '19

A guide to Ethereum Virtual Machines (EVM) for those who are interested in learning more about how these machines work, like the coding and the deployment of smart contracts.

Thumbnail
hedgetrade.com
7 Upvotes

r/EthereumProgramming • • Aug 08 '15

I have some questions about DAPP development, I hope someone can answer them

7 Upvotes

My understanding:

DAPP = Contract(Solidity, etc) + Frontend/Client code(which could be in HTML/CSS, Mobile app, etc)

  1. Once you write a contract, how does a user interact with it, I mean any contract needs gas to run, and the contract writer wouldn't be paying out of his own pocket to run the contract. Does that mean the end user needs to 'pay'(in ethers) to execute the contract?

  2. If yes, then what address does this happen? The published address of the contract?

  3. In the Subcurrency example, clearly there's no way to track the transaction history. But if the contractor(or 'Subcurrency publisher') keeps minting money and giving it to people, I assume he pays for each issuance(and sending of money). Where is all the data stored? Is the gas cost used to perpetually store this data?

  4. If a contract as 3-4 functions, when is the gas paid? On every call? So when we create NameReg, every domain lookup would cost ethers?

  5. SimpleStorage contract which has get() and set() method, when we publish the contract, it is as if we created a new object of that class. If two SimpleStorage have been executed, @x0134 and @x103 then both get() methods would give you different values, is that correct?

  6. If the above point is true then NameReg does not just need 'NameReg' but a unique marker (technically the published address) which tells people that this is the largest DDNS registry. Correct?

  7. If we were to build true DAPPS they will interact with the network by having a client implementation in them? That is, otherwise it would just be HTML/CSS code and trust that it hits a real and valid blockchain, correct?

Sorry I got so many questions, I was keeping a track of all the developments during the early phase of Ethereum, but at some point lost track. Hopefully people can answer them.


r/EthereumProgramming • • Aug 06 '15

Introducing the Maker Asset Registry and dappsys sneak peek

7 Upvotes

Crossposting this from /r/ethereum since there might be a bigger chance of being people who have comments or input in this community. :)

Maker Asset Registry and Interface

The Maker Asset Registry will be one of the first modules within Maker that is deployed to the ethereum blockchain. The goal of the Maker Asset Registry is to allow us a way to easily register ethereum based assets as collateral for dai issuance, and provide a single namespace for contracts calling assets with a unified global API. The Maker Asset Interface (MAI) is a high quality asset control API that all projects are free to use, and that we hope will become the standard for all assets on the blockchain in the long run.

The Maker Asset Interface currently support 3 different asset contract patterns, giving developers high flexibility to implement function calls involving asset payloads however they prefer.

Each MAR-asset has a contract called a Maker Asset Controller, which is the contract that is able to directly change the balance database for the given asset inside the Maker Asset Registry. Maker Asset Controllers can be the full implementation of an asset, or they can be a passthrough contract that takes deposits in the raw asset and repackages it to MAI form.

Makercoin is going to be the worlds first tradeable custom asset on ethereum. It's also going to be the first asset implemented natively in the Maker Asset Interface (a MAR-asset). After launch we will be supporting a couple of more assets: A fiat IOU that uses the MAI whitelisting features (more to come on this), MAR-ether which is ether repackaged for the MAR through a passthrough contract (using ether this way is better and easier than using raw ether, and will be the ether that can be used to issue dai with). Long term we will have passthrough contracts for all assets that don't use the MAR natively, so contracts that conform to our API will be guaranteed to support all ethereum assets using a single API.

Dappsys

I'm very excited to be able to reveal a tiny snippet of the documentation for dappsys, the contract framework for complex and dynamic dapps that Maker is being built in. Among the most interesting of its features is the fact that it acts like an operating system to its own components, and is able to be dynamically upgraded without having to stop operations.

http://0bin.net/paste/VJVk6OFLSj0jrtuD#XjLu+O5BO4Bn5QusH80Ap78crUAJMelAa7JDRVyD4OY

Now hiring

Maker is now hiring talented team members. If you're an exceptional solidity developer with a deep understanding of the EVM and would like to work on one of the most ambitious dapps in the ecosystem, please PM me.


r/EthereumProgramming • • Aug 04 '15

Meta: taking suggestions on what should go into the sidebar of this subreddit.

7 Upvotes

I invite you to post your resources in this thread, and then we can migrate them to the sidebar. Thanks!


r/EthereumProgramming • • Aug 03 '15

Embark: Development Framework for Ethereum DApps (Ethercasts Video)

Thumbnail
youtube.com
7 Upvotes

r/EthereumProgramming • • Sep 11 '17

"Developing you own Dapp, a beginner's guide to Using Truffle Part 4" By Co-Founder of Tap Coin Hugh Knight

Thumbnail
medium.com
6 Upvotes

r/EthereumProgramming • • May 08 '16

Truffle vs Dapple, May 2016

6 Upvotes

Can anyone speak to the benefits of Truffle vs Dapple in choosing an Ethereum framework at this time? These are clearly the top two. I am beginning development of a commercial dapp, and would like to make the best decision I can at this point, even if everything is different 6 months from now.


r/EthereumProgramming • • Mar 23 '16

Q: Is there a way to use a contract's own funds as a source of gas?

6 Upvotes

My use case is a simple profit splitter contract, which gets initialized with a list of output addresses and their weights, then responds to any incoming transactions by distributing the input value among the outputs proportional to their weights. This works in theory, but in practice, I want to specify this contract as the payout address for mining, and the pool doesn't give its payout transactions enough gas to fuel the multiple sub-transactions this contract would invoke. What I want is to be able to use the incoming balance as the source of gas to fuel the output transactions. Is this in any way possible?

I know there are workarounds, like accumulating the balance in the contract address and manually calling a distribute() function with plenty of gas allocated for the call, but this is inelegant and seems to point to a general flaw in the concept of gas propagation if true.


r/EthereumProgramming • • Aug 05 '15

What are my options for off chain storage?

6 Upvotes

The Dapp I'm building needs about 1Gb storage (total for the whole app). This database changes and it's contents are verified by the blockchain but only merkle roots are stored on the chain. I'm curious what my options are for decentralized storage of this data currently?


r/EthereumProgramming • • Aug 05 '15

BlockApps dappathon happening soon in NYC and Boston.

Thumbnail
blockapps.net
6 Upvotes

r/EthereumProgramming • • Aug 03 '15

Please watch this excellent talk before starting to program with Ethereum

Thumbnail
youtube.com
6 Upvotes

r/EthereumProgramming • • Aug 03 '15

Solidity tutorial

Thumbnail
github.com
6 Upvotes

r/EthereumProgramming • • Feb 03 '20

Ivan On Tech (Tech vloger and past game dev) on Programming in Solidity, C++, and Javascript

5 Upvotes

When he stumbled onto Bitcoin, Ivan liked that it was coded in C, because he was a bit familiar with that programming language. “I could easily start reading the code and understanding the code,” he said. 

He said if they had chosen another language, say, Erlang or Haskell, while it would take a bit more time to understand, he’d probably get the gist of it soon enough. But, for me, it was good that they chose something that I am comfortable with.”

Because it’s a protocol, C++ was a good choice for Bitcoin, says Ivan. “You don’t really want to use Python or other higher level programming languages. With C, you have access to hardware to the extent that is not possible with higher level programming languages. So it is a natural choice, when you’re writing something like Bitcoin.”

He never programmed on Bitcoin, but his developer experience helped him learn certain aspects of Bitcoin, like hashing, digital signatures, and how a system of digital cash without intermediaries, without a central bank or company to control everything, works. When he entered into the space there were many colored coins projects, too, which he looked into from a technical perspective. 

The main thing that really caught his attention, in terms of building applications on blockchain, was Ethereum and Solidity. “There you could truly program whatever you wanted and you had the fully fledged turing complete programming language, which is solidity,” said Ivan. “So it was a whole other level. And you could really express yourself as a developer in so many different ways that simply wasn’t possible on Bitcoin. “ 

A turing complete programming language, which is most these days, is a language that can do everything that a turing machine can do, which, in part, means it can do any type of calculation.  A turing machine is powerful enough to compute anything that can be computed. 

You can build whatever you want on Solidity, says Ivan. “You can express the logic, you can express what the network should do,” he says. “With Bitcoin, you don’t have a turing complete programming language, so you cannot tell the network to do all the things that you could with Ethereum. So Bitcoin doesn’t, for example, have loops. You cannot have a program that is repeating some kind of action over and over again, a certain amount of time to the same extent as on Ethereum. On Bitcoin you cannot really tell the Bitcoin network to do a lot, but on ethereum you have more flexibility. “ 

Solidity is a higher level programming language, similar to JavaScript, where you can create data structures. “You can use arrays, you can have loops, and you can really work like in a normal programming language,” said Ivan. “With Bitcoin, it’s a bit different, because you have a script which is a low level stack based, scripting language. It’s kind of like working in assembly. It’s very low level. You work with a low level operation. In Solidity, you work with your normal concepts, as you do in other programming languages, concepts like loops, classes, functions, methods, which you don’t have in Bitcoin.” 

source: https://cryptographicasset.com/ivan-on-tech-on-programming-in-solidity-c-and-javascript/


r/EthereumProgramming • • Sep 01 '18

Debug Ethereum transactions with Parity traces

Thumbnail
youtube.com
5 Upvotes

r/EthereumProgramming • • Aug 06 '18

Testing and Code Coverage of Solidity Smart Contracts

Thumbnail
medium.com
5 Upvotes

r/EthereumProgramming • • Jul 24 '18

Security Best Practises for Smart Contract Programming in Solidity — Part 1

Thumbnail
blog.indorse.io
5 Upvotes

r/EthereumProgramming • • Jul 05 '18

Updated Summary of Ethereum Upgradeable Smart Contract R&D

Thumbnail
blog.indorse.io
5 Upvotes

r/EthereumProgramming • • Jun 03 '18

We are building an incredible dapp and are looking for talented developers to join our team

5 Upvotes

r/EthereumProgramming • • May 12 '18

Do not pay transaction fees for yourself

Thumbnail
medium.com
5 Upvotes

r/EthereumProgramming • • Mar 25 '18

[Need feedback] Trump is tweeting again. Smart-contract based game. Predict the words from his next tweet.

5 Upvotes

Hi there!

Me and the guys deployed the smart contract a couple of days ago. It's TrumpBingo.io — (hopefully) funny game where players trying to predict, which words Mr. Trump will use in his next tweet. Here's the link to the contract at Etherscan

It works like this:

  • There is a fixed set of the most trumpy words — so called bingo-words.

  • Player who made the highest bid becomes the word owner.

  • Round ends when the new tweet is published. If you own a word that appeared in the tweet — you become a winner.

You can also become a co-owner of TrumpBingo itself by buying the owner card. You'll get half of our commissions and will be able to resell it later by 1.5x higher price.

You need to have MetaMask extension to play.

As I said, we've just deployed the contract and the site, so please ask if you face any problems.


r/EthereumProgramming • • Mar 20 '18

Created the r/ethtuts subreddit for anyone who'd like to learn how to develop smart contracts on the ethereum blockchain. Please add to the mix or leave a review in the comments if you've completed a tutorial on there.

Thumbnail
reddit.com
5 Upvotes

r/EthereumProgramming • • Mar 15 '18

Sanskrit smart contract virtual machine research

Thumbnail
github.com
5 Upvotes

r/EthereumProgramming • • Nov 10 '17

Ethereum Multiownable smart contract

Thumbnail
medium.com
5 Upvotes