Skip to content

Instantly share code, notes, and snippets.

@markpattinson
Last active August 23, 2018 00:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save markpattinson/9bed60b86fd9c74373d527d76df098fd to your computer and use it in GitHub Desktop.
Save markpattinson/9bed60b86fd9c74373d527d76df098fd to your computer and use it in GitHub Desktop.
Code Line Code Description
contract transactionEscrow Defines the name of the contract as Transaction Escrow
address party1 = 0x0000000000001; A variable which stores the address of the first party involved
address party2 = 0x0000000000002; A variable which stores the address of the second party involved
address tokenAddress; A variable which stores the address of the token contract
ERC20I e = ERC20I(tokenAddress); A variable which stores a way to interact with the token
int party1PayableEther = 100; A variable which stores what party 1 needs to pay to execute the contract
int party2PayableTokens = 1000; A variable which stores what party 2 needs to pay to execute the contract
int party1EtherBalance = 0; A variable which stores what party 1 has paid currently
int party2TokenBalance = 0; A variable which stores what party 2 has paid currently
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment