Skip to content

peaqnetwork/peaq-storage-pallet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

peaq-storage-pallet

Storage pallet is mainly for storing an item eg. CID (content Identifier) along with the type of that item.

Technically, we are storing key-value pairs in the chain storage with the key being (user public key + type of item we are storing) and the value is the item.

Overview

To call these extrinsic go to the Polkadot app and switch to agung network.

Go to Developer → Extrinsics. And choose the peaqStorage pallet from the list.

Storage pallet has 3 extrinsic calls as of now.

  • addItem

Params - item type (Max length 64), item (Max length 256).

Description - For adding an item type with any item.

Example

  • getItem

Params - item type (Max length 64).

Description - For reading the item with the item's type. A user can only access those items which were added through that user an account/public key.

Example

  • updateItem

Params - item type (Max length 64), item (Max length 256).

Description - For updating item type with a new item. Only items can be updated not item type. Each item type is attached to the user's public key.

Example

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages