@recordex/smartcontract
TypeScript icon, indicating that this package has built-in type declarations

0.1.6 • Public • Published

smartcontract

Description

Data will be stored in a JSON file. The JSON file will contain the following:

{
  "users": [
    { "id": "user1", "name": "Alice", "password": "hash1" },
    { "id": "user2", "name": "Bob", "password": "hash2" }
  ],
  "files": [
    { "id": "file1", "name": "report.docx", "owner": "user1", "size": "2MB" },
    { "id": "file2", "name": "image.png", "owner": "user2", "size": "3MB" }
  ],
  "permissions": [
    { "id": "read", "description": "Read file contents" },
    { "id": "write", "description": "Write file contents" },
    { "id": "delete", "description": "Delete file" }
  ],
  "access_control_list": [
    {
      "user_id": "user1",
      "file_id": "file1",
      "permissions": ["read", "write"]
    },
    { "user_id": "user2", "file_id": "file1", "permissions": ["read"] },
    { "user_id": "user1", "file_id": "file2", "permissions": ["read"] },
    {
      "user_id": "user2",
      "file_id": "file2",
      "permissions": ["read", "write", "delete"]
    }
  ]
}

To Install @recordex/smartcontract package

This article is useful for setting up github npm registry. https://docs.github.com/ja/packages/working-with-a-github-packages-registry/working-with-the-npm-registry

About Hardhat

This project demonstrates a basic Hardhat use case. It comes with a sample contract, a test for that contract, and a script that deploys that contract.

Try running some of the following tasks:

npx hardhat help
npx hardhat test
REPORT_GAS=true npx hardhat test
npx hardhat node
npx hardhat run scripts/deploy.ts

Readme

Keywords

none

Package Sidebar

Install

npm i @recordex/smartcontract

Weekly Downloads

1

Version

0.1.6

License

none

Unpacked Size

185 kB

Total Files

53

Last publish

Collaborators

  • kei01234kei