Implementing Harberger Tax Deeds

September 19, 2018 by Todd Proebsting

This post will demonstrate how to implement deeds that collect a “Harberger tax”. The recently published book, Radical Markets: Uprooting Capitalism and Democracy for a Just Society, proposed Harberger taxes for a number of applications. Since then Vitalik Buterin (here) and Simon de la Rouviere (here) have speculated on smart contract applicability.

Writing a Dollar Auction Contract

August 16, 2018 by Todd Proebsting

This post will implement a “dollar auction” contract for ERC20 tokens. It will be a modest change to the English auction contract.

Writing a Penny Auction Contract

August 8, 2018 by Todd Proebsting

This post will implement a bidding fee auction (aka “penny auction”) contract for ERC20 tokens. It will be a modest change to the English auction contract.

Contracts Calling Arbitrary Functions

August 2, 2018 by Steve Marx

Solidity offers convenient high-level syntax for calling functions in other contracts, but this high-level syntax is only available when the target contract’s interface is known at compile time. In this post, I’ll show how smart contracts can use low-level message passing to make arbitrary calls into other contracts. I’ll use this mechanism to enhance our trivial multisig wallet so that it can make function calls in addition to transferring ether.

Anatomy of Transaction Data

July 25, 2018 by Steve Marx

[This blog post explains how transaction data is used to invoke smart contracts in Ethereum, but it is not necessary for learning Solidity programming. We write it for those of you who would like a deeper understanding of what is going on when a transaction is sent to a smart contract.] In our previous post How Ethereum Transactions Work, we mentioned that the data field of a transaction encodes what (if any) smart contract function should be invoked. In this post, I’ll dive deeper into the specifics of the data field.

Read older posts in the archive