Collection Updated 2 months ago

An ethereum test toolkit in Go

Building a somewhat hacky but highly versatile test environment for solidity smart contracts

GETH
TEST
ETHEREUM
solidity

4

Articles

0

Collections
Curator
daveappleton
GETH and the Simulate Backend

some background

Sending Transactions on GETH's Simulated Backend

Now that we have a contract deployed, we want to interact with it. In the last session there was some interaction without any explanation. This time we will go a bit deeper. As you should be aware, there are several types of interaction with the ethereum blockchain (not including mining). The main ones are Sending a Transaction Reading the state of the blockchain or a transaction Requesting Data about the current state of a contract Viewing events that were generated by interactions with a contr

Dave Appleton

8 min read

01 Oct 19

Interacting with smart contracts from GETH's Simulated Backend

I am in the process of releasing my very hacky golang test environment that deep links into the go-ethereum code base. This is the next in the series.. Now you have a simulated ethereum network running it is time to see the EVM in action. GETH comes with a really useful tool to help you integrate your GO code with solidity smart contracts. Introducing ABIGEN ABIGEN creates a wrapper around your smart contract to help with most interactions that you could want to perform. I usually store my contr

Dave Appleton

6 min read

14 Sep 19

Generating a load of keys for testing in Go

I am in the process of releasing my very hacky golang test environment that deep links into the go-ethereum code base. An important part of testing smart contracts is to be able to generate and use an arbitrary number of keys/addresses to sign / send / receive transactions. Ideally we should not be using live key pairs so I created memorykeys which you can find at https://github.com/DaveAppleton/memorykeys Much of the work of the GETH crypto module is to wrap the go crypto/ecdsa library. ECDSA s

Dave Appleton

3 min read

08 Aug 19

The GETH Simulated Backend

I am in the process of releasing my very hacky golang test environment that deep links into the go-ethereum code base. I first developed it in 2017 to test the HelloGold GOLDX token which required simulating up to 20 years of admin fees and monthly reward allocations. I am creating a series of really small easy to understand posts that both explain what I have done as well as force me to rewrite everything from the old chaotic hack to what is hopefully a far cleaner (but still hacky) version. Th

Dave Appleton

2 min read

08 Aug 19