Skip to content

Razortype/near-final-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published