| Crates.io | pallet-farcaster_frame |
| lib.rs | pallet-farcaster_frame |
| version | 0.1.0 |
| created_at | 2025-02-26 12:03:22.745438+00 |
| updated_at | 2025-03-27 23:36:16.518676+00 |
| description | Farcaster frame pallet to parse messages from farcaster frames. |
| homepage | https://github.com/Shritesh99/pallet-farcaster_frame |
| repository | https://github.com/Shritesh99/pallet-farcaster_frame/ |
| max_upload_size | |
| id | 1570334 |
| size | 60,021 |
This repository contains a custom Substrate pallet designed for integrating Farcaster frames into Polkadot/Substrate-based blockchains. The pallet decodes Farcaster messages, allowing developers to incorporate social media interactions into blockchain applications. As a demonstration, the pallet is integrated with a simple NFT minting functionality, enabling on-chain asset creation driven by Farcaster data.
Example implmentation in pallet can be found here at lib.rs.
cargo add pallet-farcaster_frame
use pallet_farcaster_frame::{parse_message, Error};
use pallet_farcaster_frame::{parse_message, Error};
use sp_std::vec;
let bytes = vec![];
let result: Result<Message, Error> = parse_message(bytes);
use pallet_farcaster_frame::{encode_message, message::Message};
let msg = Message {
...
}
let encoded = encode_message(&msg);
assert!(encoded.is_ok());
Clone the repository:
git clone https://github.com/shritesh99/farcaster-frames-pallet.git
cd farcaster-frames-pallet
Build the project:
cargo build --release
Run tests:
cargo test
Contributions are welcome! Feel free to fork the repository, make enhancements, and submit pull requests. For major changes, please open an issue to discuss your ideas first.
This project is licensed under the Apache 2.0 License. See the LICENSE file for details.
For questions, support, or collaboration inquiries, please contact Shritesh at [shritesh.sj@gmail.com].
This README provides a concise overview of the project, outlines its key features and setup instructions, and invites contributions from the community. Enjoy building with Farcaster Frames!