7 releases

0.3.0 Oct 29, 2022
0.2.0 Oct 21, 2022
0.1.4 Oct 14, 2022

#19 in #tournament

MIT/Apache

655KB
15K SLoC

mfight_sdk

Rust library for writing NEAR smart contracts.

Crates.io version Download Buildkite Build

Online Constructor

Online constructor to select the functionality you need

https://near-constructor.vercel.app/

The-Graph

The-graph will give you a ready-made api for reading data from the blockchain, forming analytics, etc.

Online Demo: https://thegraph.com/hosted-service/subgraph/muzikanto/cultist

SubGraph Repository: cultist-tech/cultist-graph

GQL queries Repository: cultist-tech/cultist-gql

NFT

NFT standard with new functionality (nep-171)

NFT Upgrade:
Upgrade an NFT by transferring a certain amount of FT or NEAR. Each NFT will have a pumping threshold, above which you can no longer pump. The price for each level is specified by the developers with the necessary functionality. This will allow the games to implement the functionality to improve any items, as well as increase the use of their FT.

NFT Reveal:
Immediately after mint users get NFT with the same media (hiding metadata fields) and there will be 2 options to open it:

  1. The user himself can open his NFT, thanks to this mechanics it is possible to implement the mechanics of "boxes", like on Binance
  2. The timing of disclosure is set by the creator, and, for example, disclosure occurs 24 hours after the full sale of the NFT collection, which allows you to expand the number of options for interacting with the community, thus heating up interest

NFT Bind:
Binding nft to an account (transfer ban)

Example Repository: cultist-tech/near-nft

API:

FT

FT standard (nep-141)

Example Repository: cultist-tech/near-ft

MT

MT standard (nep-245)

Example Repository: cultist-tech/near-mt

Market

Marketplace for nft trading

Example Repository: cultist-tech/near-market

  • core
  • enumeration
  • storage_management

Rent

It is possible to transfer an NFT for a certain period of time. At the end of the lease term, the NFT is returned to its holder. It is also possible to pay the rent for any FT or NEAR.

Example Repository: cultist-tech/near-rent

API:

  • core
  • enumeration
  • storage_management

NFT IDO

Implemented functionality for simplified initial sale of nft (like NFT sale on Binance). Basic functionality: random NFT from the list, purchase restrictions, time-delayed mint, mint for FT or NEAR. Problem: not many NFT platforms offer such functionality, that's why many developers create such functionality themselves.

Example Repository: cultist-tech/near-nft-ido

API:

  • core
  • enumeration
  • storage_management

Tournament

Necessary for various tournaments on blockchain. A tournament is created (access via NFT as an option) with certain conditions (number of participants, entry price, distribution of funds between winners). Each participant contributes a predetermined amount of money, after the end of the tournament, all collected funds are distributed according to the terms of the tournament. Also anyone can contribute FT or NFT to the tournament prize fund.

Example Repository: cultist-tech/near-tournament

API:

  • core
  • enumeration
  • nft_access

NFT Fractionation

You collect certain NFTs to exchange them for another certain NFT from any collection. For example: a unique sword is created in the game, but it can only be obtained by collecting all its parts (blade, hilt). This would motivate users to search for the necessary NFT parts, offer to redeem them to the holders of the parts themselves. And the user who collected all the parts and exchanged them for the same unique item can get special opportunities.

Example Repository: cultist-tech/near-fractionation

API:

  • core
  • enumeration

Escrow

The ability to trade NFT to FT, NFT to NFT, FT to FT outside of a specialized site with a specific user. This will give you the ability to do things with NFT/FT even if they are not on the site (not cast), or if you don't want the NFT/FT to fall into other hands.

Example Repository: cultist-tech/near-escrow

API:

  • core
  • enumeration

Reputation

Reputation parameter for the participants of the project, will give certain bonuses for people with a good reputation. Reputation will be accrued from other users, by spending their daily accrued "votes" (the number of "votes" depends on the value of reputation), as well as for some activity in the project. Examples of uses: reduced commission on the marketplace, increased influence in the DAO, a pass to the tournament).

Example Repository: cultist-tech/near-reputation

  • core

Referral

Influencer advertises the project by providing a referral link. And in the referral contract each user who followed the link is recorded, as well as if necessary transferred to another contract (for example in the NFT contract to prescribe royalties)

Example Repository: cultist-tech/near-referral

  • core

Tools

  • owner
  • contract pause
  • blacklist
  • whitelist

Dependencies

~5MB
~97K SLoC