Developer Guide
Whitelist Context & Compliance
Whitelist Context & Compliance Overview
The guide will cover the following:
- Create a Whitelist ContextCreate a Whitelist Compliance ContextAdd an address to a Whitelist ContextRemove an address from a Whitelist ContextAdd a Whitelist Context to a Whitelist Compliance ContextRemove a Whitelist Context from a Whitelist Compliance Context
Create Whitelist Context
Use IWhitelistContextFactory interface's createContext function to create a new Whitelist Context.
To retrieve the whitelist context address; list the transaction receipt and collect the ContextAdded event.
function createContext( string calldata name, string calldata description, address operator, bytes memory extraContextCreationArguments ) external returns (address);Note: Address returned will be the whitelist context smart contract address.
Parameters
name
Name of the context
description
Description of the context
operator
Address of the context operator/controller
extraContextCreationArguments
Any extra data (zero bytes for now)
Create Whitelist Compliance Context
Use IWhitelistComplianceContextFactory interface's createContext function to create a new Whitelist Compliance Context by populating following parameters:
To retrieve the whitelist compliance context address; list the transaction receipt and collect the ContextAdded event.
function createContext( string calldata name, string calldata description, address operator bytes memory extraContextCreationArguments ) external returns (address);