tw-referral

Crates.iotw-referral
lib.rstw-referral
version0.1.2
sourcesrc
created_at2022-04-03 12:22:58.035954
updated_at2022-05-20 14:53:04.014163
descriptionA standard referral controller that can query referral of specfic address and referral chains
homepage
repositoryhttps://github.com/TwilightCouncil/twilight-standard
max_upload_size
id561288
size27,551
yoisha (y-pakorn)

documentation

README

SingleSidedReferral

Referral controller with standard specs,

  • set_ref
    • Set referral of a specific address.
  • ref_chains
    • Get a referral chain of a specific address. Default depth is 3.
  • ref_of
    • Get a referrer of a specific address.
  • has_ref
    • Get a boolean that state a specific address has a referrer or not.

IndexedReferral

Referral controller extended with referred address indexer, i.e. specific address can query list of addresses that address have referred.

  • all_referred_of
    • Get all referral of a specific address.
Commit count: 62

cargo fmt