Last active
August 23, 2018 00:13
-
-
Save markpattinson/9bed60b86fd9c74373d527d76df098fd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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