ROLES

An object containing role definitions (encoded as bytes32 hex).

adminRole

Role for admin (Alice).

openRole

Role for open access (Anyone).

issuerRole

Role for issuers (Bob :: creates & sells fractions).

buyerRole

Role for buyers (Charlie :: purchases fractions).

Example

import { ROLES } from "@nexeraprotocol/cts-tokenizer-sdk";
import { ethers } from "ethers";

// Example: Get the role for the issuer
const issuerRole = ROLES.issuerRole;
console.log("Issuer role:", issuerRole);