Socket
Socket
Sign inDemoInstall

anft-gated-tribus

Package Overview
Dependencies
323
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    anft-gated-tribus

anft-gated social feeds


Version published
Maintainers
1
Created

Readme

Source

@decentdotland/aNFT-gated-tribus

a protocol for NFT-gated communities

Synopsis

This protocol allow the existence of communities on Arweave network, gated by aNFTs. Having a portion of the NFT's balance, whitelist the entry in the tribus.

Getting Started

Prerequisites

  • Arweave wallet

The Arweave wallet is required to interact with the protocol (mint NFTs, transact, interact, etc.). Reading state does not require a wallet.

Installation

npm install -g anft-gated-tribus

Contracts

The protocol consists of a registry contract, and instances of Tribus smart contracts.

Registry Contract

This contract is used as registration and validation layer for the created tribuses. It ensures the inheritance of the created tribus from the main source-code and seals each NFT ID per a single Tribus - hierarchical model.

Tribus Contract

All of the deployed tribuses are instances of the main Tribus contract. Therefore, all the separated social feeds have the same computational logic and limitations.

Contracts API

This contract is used as an onchain-permanent API, or a proxy for the deployed tribuses to read data like accpeted MIME types and setting thumbnails for tribuses.

Usage

Load The Created Tribuses IDs

import { getTribuses } from "anft-gated-tribus"

async function createdFeeds() {
	const tribuses_ids = await getTribuses();

	return tribuses_ids;
}

More examples can be found here.

Supported NFTs Source Codes

NetworkSource Codes
Koii2

Contributing

If you have a suggestion that would make this protocol or the API better, please fork the repository and create a pull request. You can also simply open an issue with the tag "enhancement".

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/xyz)
  3. Commit your Changes (git commit -m 'feat: abc-xyz')
  4. Push to the Branch (git push origin feature/xyz)
  5. Open a Pull Request

Contributions are greatly appreciated !

License

This protocol is licensed under the MIT license.

Keywords

FAQs

Last updated on 27 Jan 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc