ppelicano / recruitment-protocol-smart-contract

MIT License
0 stars 1 forks source link

Install & Test & Deploy

Install

1) clone the repo 2) run command: npm install 3) create a secret.json at the root of the project. Contents should look like: { "mnemonic": [YOUR_MNEMONIC], "privateKey": [YOUR_PRIVATE_KET], "alchemyHost": "https://eth-goerli.g.alchemy.com/v2/ewNr6i4d6jtZsJJqY973pKtJUrQRQTzS", "webProjectPath": [FULL_PATH_TO_SOMEWHERE_YOU_HAVE_YOUR_WEB_PROJECT_RUNNING], ... } notes:

Test

1) build by running: npm run build 2) test locally by running: npm run test

Deploy

1) deploy on goerli testnet by running: npm run test:goerli note: you must have some test eth on goerli to do the above. If you don't hold and test eth you can get it from: https://goerlifaucet.com/

Frontdoor technical design

hackonchain hackathon scope

The main goal is to have the referral flow working. For this we will need a smart contract method to write and read referrals

Referral write method

input parameters:

notes: at least one (referee wallet address or email must be sent for the method to process). The idea is to have an onchain data relation between referrers and the referred candidates/referees.

output parameters:

Referral read method

input parameters:

output parameters: