Local OpenWork Contract

The Local OpenWork Contract acts as a wrapper on the local chain that directs calls to the corresponding functions on the Native OpenWork Contract through a bridge. The only exceptions are functions that handle payment locking/unlocking, which occur on the Local chain.

Function

Implementation Details

User should be able to set a profile

setProfile() { Call setProfile() function on the Native OpenWork Contract through the bridge contract. }

User should be able to retrieve a profile

getProfile() { Calls getProfile() function on the Native OpenWork Contract through the bridge contract. }

User should be able to post a Job Max. 10K USD per Job

postJob() { Calls postJob() function on the Native OpenWork Contract through the bridge contract }

Ability to apply to a Job

applyToJob() { Call applyToJob() function on the Native OpenWork Contract through the bridge contract }

Initiate a Job

startJobInterChain() { LockPayment() Call startJobInterChain() function on the Native OpenWork Contract. }

Selected Applicant should be able to submit work

submitWork() { Calls the submitWork() function on the Native OpenWork Contract. }

Job Giver should be able to release payment

releasePayment() {

makePayment(jobTaker)

CallreleasePaymentInterchain on the Native OpenWork Contract. }

Job Giver should be able to lock next milestone

LockNextMilestone(){ LockPayment() Call LockNextMilestoneInterchain on the Native OpenWork Contract. }

Ratings

Rate() { Call Rate() on the Native OpenWork Contract. } Same goes for getRating()

Portfolio Additions

AddPortfolio() { Call AddPortfolio() function on the Native OpenWork Contract }


Last updated