โ๏ธWhitelist smart contract
๐ Intro
This repository provides an implementation of Whitelist interface proposed in the TZIP-15 written in SmartPy: Python library for constructing Tezos SC and compiled to Michelson code. The contract is migrated from the Lorentz whitelisting contract.
๐ก Why a whitelist contract?
๐ Specifications
UserID
UserIDStorage
big_map (
key = whitelistID: Nat,
value = {
unrestricted: Bool,
allowedWhitelists: set(whitelistID)
})๐ We use the interface as an on-chain wrapper:
How does our wrapper whitelist SC work?
โฌ๏ธ Get the Project:
๐ EntryPoints (SC methods):
๐ Tests Cases
The smartContract tests are written in smartPy and in JS (with Taquito, Mocha and Chai)
Management entrypoints
Test Output:
Test Output:
Test Output:
Test Output:
Informative entrypoints
Test Output:
Assertion entrypoints
Test Output:
Test Output:
Test Output:
Test Output:
๐ฎ Roles:
๐ Implementations
Last updated
Was this helpful?