Skip to content

Latest commit

 

History

History
54 lines (43 loc) · 1.32 KB

File metadata and controls

54 lines (43 loc) · 1.32 KB

Near Certificated Developer Course

this project based on starter--near-sdk-as.

Near Meeting App


This is the app which allowe users to create account and participate existing meeting rooms. Meeting creation initially get deploy time and expires 10 days later. Meeting creation costs 2 Near coin. All meeting is stored in list where meeting datas can be retrieved. Participants can check their validation with passing id of meeting.

Install Dependecies


yarn build:release
near dev-deploy ./build/release/simple.wasm
near login
export CONTRACT=<accountId(dev)>

Contract Functions


Get All Meetings

$ near view $CONTRACT getAllMeetings

Get Meeting

$ near view $CONTRACT getMeeting '{"id":"<id>"}'

Create Meeting

$ near call $CONTRACT createMeeting --accountId <account> --amount 2

Join Meeting

$ near call $CONTRACT joinMeeting '{"id":"<id>"}' --accountId <account>

Get Defined Meeting's Participants

$ near view $CONTRACT getMeetingParticipants '{"id":"<id>"}'

Check Validation

$ near call $CONTRACT checkValidation '{"id":"<id>"}' --accountId  <account>

Delete Expired Meeting

$ near call $CONTRACT deleteCompletedMeetings --accountId <account>