Skip to content

agoric-labs/dapp-second-invite

 
 

Repository files navigation

Agoric Dapp: Dapp-Second-Invite

Dapp-Second-Invite is a simple Dapp for the Agoric smart contract platform that illustrates the use of continuingInvitation pattern. The dapp allows users to create tamer-proof educational records in the sense that once a record is created, it can only be updated by the creator. This is achieved by using the continuingInvitation pattern which is a unique feature of Agoric smart contract platform. The creator of the record receives a inivitation that can be used to update the record if needed.

Users are given a simple form in which to enter student's personal information and certification details. This data is then sent to the contract to be added to the Agoric VStorage, ensuring that the information is tamper-proof and easily accessible. By leveraging the Agoric blockchain, Dapp-Ed-Cert provides a transparent and reliable method for managing educational certificates, reducing the risk of fraud and simplifying the verification process for employers and other institutions.

Note that this is a example dapp exploring capabilities of Agoric VStorage with no consideration made for privacy of information. All entered data maybe publicly visible.

This is the user interface of dapp:

Edu Cert Dapp

This is how the data looks like in VStorage:

Edu Cert Dapp

Getting started

  • run the yarn install command to install any solution dependencies. Downloading all the required dependencies may take several minutes. The UI depends on the React framework, and the contract depends on the Agoric framework. The packages in this project also have development dependencies for testing, code formatting, and static analysis.
  • start a local Agoric blockchain using the yarn start:docker command.
  • run yarn docker:logs to check the logs. Once your logs resemble the following, stop the logs by pressing ctrl+c.
demo-agd-1  | 2023-12-27T04:08:06.384Z block-manager: block 1003 begin
demo-agd-1  | 2023-12-27T04:08:06.386Z block-manager: block 1003 commit
demo-agd-1  | 2023-12-27T04:08:07.396Z block-manager: block 1004 begin
demo-agd-1  | 2023-12-27T04:08:07.398Z block-manager: block 1004 commit
demo-agd-1  | 2023-12-27T04:08:08.405Z block-manager: block 1005 begin
demo-agd-1  | 2023-12-27T04:08:08.407Z block-manager: block 1005 commit
  • run yarn start:contract to start the smart contract.
  • run yarn start:ui to start the smart contract. You can use the link in the output to load the smart contract UI in a browser.

For any troubleshooting please refer to the detailed tutorial at Here.

Testing

To run the unit test:

  • run yarn test to run the unit tests for the contract.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 46.5%
  • JavaScript 24.4%
  • CSS 18.4%
  • Shell 6.6%
  • Makefile 3.7%
  • HTML 0.4%