A 3-minute Smart Contract and Delphi — Part 2

Remix

In this article, we will develop our Smart Contract using Remix. Remix is a browser-based IDE for writing Smart Contracts in the Solidity programming language.

  1. Start Google Chrome
  2. Click on the MetaMask icon
  3. Unlock MetaMask with your MetaMask password
  4. You should see the MetaMask main menu. In the top of this window, click on Main Ethereum Network
  5. A popup window appears. Click on Ropsten Test Network
  6. Navigate to https://remix.ethereum.org
  7. Click on the plus sign in the upper-left corner to create a new, untitled Solidity file
  8. Rename it to ArithValue.sol and click on OK
  9. Write the following lines of code in the ArithValue.sol file, as shown below:

Ropsten

We will now deploy this Smart Contract to the Ropsten test net. Please follow these steps:

Delphi

We will now turn our attention to Delphi. Before we begin, we need to clone a few GitHub repositories.

git clone https://github.com/svanas/DelphiBigNumbers
git clone https://github.com/Xor-el/SimpleBaseLib4Pascal
git clone https://github.com/Xor-el/HashLib4Pascal
git clone https://github.com/Xor-el/CryptoLib4Pascal
git clone https://github.com/svanas/delphereum

Read more

  1. Connecting Delphi to a local (in-memory) blockchain
  2. Connecting Delphi to the Ethereum main net
  3. Connecting Delphi to Smart Contracts
  4. Generating an Ethereum-signed message signature in Delphi
  5. Transferring Ether with Delphi
  6. Transferring ERC-20 tokens with Delphi
  7. Delphi and Ethereum Name Service (ENS)

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Stefan

Stefan

Delphi/Rust/Go developer. Ethereum consultant. Embarcadero MVP. Ex-Adobe, Macromedia. Helped build 1Password.