Skip to content

Arbitrated Escrow API on the Ethereum blockchain

Notifications You must be signed in to change notification settings

kmur911/eth-escrow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ArbitratedEscrow

To test this repo follow these steps:
    - run "make compile"
    - point "url" in api.js to the appropriate net
    - set "owner_address" to the address you want to use to deploy a contract
    - set "buyer", "seller", and "arbitrator" to the addresses you want assigned as such in the newly created contract
    - uncomment the section titled "Create and Deploy Contract" and then run "make run"
    - Copy the printed address into the "contractAddress" variable, ctrl c to continue
    - For all subsequent calls comment out "Create and Deploy Contract" and uncomment "Connect to Contract"
    - Then you can uncomment whichever other sections you want in addition to "Connect to Contract", and use "make run" to execute

    ### IMPORTANT ###
    Anytime you make changes to the contract solidity file, you must run "make compile" and redeploy the contract to the network using the steps listed above.

Web3 Calls
    - Create agreement (provide buyer, seller, arbitrator)
    - Get agreement information by address (participants, balance)
    - Confirm as participant
    - Set destination as participant
    - View funds for address
    - Deposit money as participant

Functionality
    - Create agreement
    - Confirm as all three participants
    - Send money from buyer
    - Accept as buyer and seller
    - See that seller receives funds
    - Create dispute
    - Send money again
    - Resolve dispute, see that money is properly disbursed

About

Arbitrated Escrow API on the Ethereum blockchain

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published