Technical Documentation

CAS20 Technical Specification

Draft 02

This document specifies CAS20 for protocol-native fungible tokens on multiple chains.

Abstract

This document specifies CAS20 for protocol-native fungible tokens on multiple chains. It defines shared accounting, roles, reusable policies, selective pause, signed approvals, memos and atomic initialization, together with Asset and Stablecoin variants. It provides a detailed reference EVM interface and separates chain deployment, governance, storage and resource rules into versioned implementation profiles. BEP-702 is the BSC reference profile.

Status of This Document

This is a technical reference draft for implementers and integrators. It uses BCP 14 requirement language and a standards-draft structure. It is not a ratified IETF or BNB Chain standard. A release claim requires a complete chain profile and the definitions/evidence identified in Appendix A.

Document Basis

Draft 02 incorporates a final comparison with the pinned BEP-702 source and retains the earlier developer material and static review as attributed evidence. It fixes the generic scope, restores complete typed interfaces and records observable source differences. Deterministic calculations were checked; no target implementation or deployed network was executed.

text
BEP-702 reference file commit:
0564c017a85f5708907b53023a8a3fe4fe7723fe

1. Introduction

CAS20 is a protocol-native fungible-token specification for stablecoins and tokenized assets. It defines raw-unit accounting, issuer roles, reusable authorization policies, selective pause controls, signed approvals, memos, atomic initialization, and variant extensions. Asset adds UI amount conversion, scheduled and immediate multiplier updates, announcements, batch issuance, and additional metadata. Stablecoin adds fixed precision and an immutable currency label. [DEV] [BEP702]

1.1. Scope and portability

This document is a generic implementation reference. Its shared semantics can be implemented by different chains. A conforming implementation identifies this specification revision, the supported variants, an execution binding, and a chain implementation profile. No BSC address, governance contract, storage namespace, gas price, client language, or fork name is a universal CAS20 assignment.

The reference execution binding is EVM-compatible: it uses 20-byte addresses, Solidity ABI encodings, Ethereum Keccak-256, EVM-style logs and errors, and the signing interfaces specified below. A different virtual machine MAY implement the same logical model, but MUST publish its address, integer, serialization, signature, event, error, and execution mappings. It MUST NOT claim EVM binary compatibility unless those encodings and observable rules are preserved.

LayerWhat it defines
Shared semanticsAccounting, authority, policies, pause, initialization safety, and variant behavior. Sections 4-11.
Reference EVM bindingTyped public interfaces, signing, ordered observable behavior, and the reference address algorithm. Sections 3-5 and Appendix D.
Chain implementation profileNetwork identity, concrete component locations, namespace reservation, state layout, governance integration, metering, and activation. Appendix A.
BSC reference profileBEP-702 assignments and host integration, with differences from an earlier source review. Appendix B.

A chain MAY implement Asset, Stablecoin, or both. A supported variant MUST implement the shared capabilities and its variant requirements. The interface reference retains the complete documented method sets, including memo-format methods and the Asset immediate multiplier compatibility methods. Their grouping as extensions does not make them silently optional for a full reference-binding claim.

1.2. Protocol names and identifiers

CAS20 is the protocol name. Public identifiers include CAS20Factory, createCAS20, getCAS20Address, isCAS20, isCAS20Initialized, and CAS20Created. The spelling of a public selector, type string, role hash input, or policy-scope input is part of its execution binding. Deployment feature keys and storage namespaces are separate, explicitly assigned profile data.

Renaming prose MUST NOT change a selector, a hash preimage, a storage root, or an existing network assignment. A profile MUST publish both literal inputs and derived values. Constants containing the BSC namespace appear only as BSC profile data and calculated examples in Appendices B and G.

1.3. Relationship to BEP-702 and implementation evidence

BEP-702 is the BSC-specific implementation proposal used for the reference EVM interfaces and behavior in this revision. Its retrieved status is Draft. This generic document is not a BNB Chain or IETF ratification, deployment announcement, or claim that every source implementation already conforms. [BEP702]

Draft 02 adopts the current BEP reference choices for initialization caller identity, creation-event timing, and the source-exemption policy getter. Those choices differ from the earlier static review [REVIEW]. Appendix B records the differences explicitly; a historical implementation is not assumed to match this revision. Source descriptions, independently calculated fixtures, and executed conformance evidence are distinct.

2. Requirements Language and Notation

The terms MUST, MUST NOT, REQUIRED, SHALL, SHALL NOT, SHOULD, SHOULD NOT, RECOMMENDED, NOT RECOMMENDED, MAY, and OPTIONAL are interpreted as described in BCP 14 when, and only when, they appear in capitals. [RFC2119] [RFC8174]

A caller is the account identity presented to an operation by the execution binding. A creator is the caller of createCAS20. The reference binding preserves that creator as the caller of initialization operations. Announcement operations preserve their initiating caller. A token address selects one token state; authority and state MUST NOT leak between token instances.

Raw units are unsigned integer ledger units. UI units are integer display/conversion units at the token decimal scale. A role or policy scope is identified by bytes32 in the reference binding. A policy ID is uint64. Timestamp comparisons use the host block timestamp, expressed in seconds by the reference binding. uintN denotes an unsigned N-bit integer.

In signatures, external, view, pure, calldata and memory use Solidity notation. Enum values are encoded as uint8 in canonical ABI signatures. A named struct in a bytes payload is ABI-encoded using its ordered fields. Appendix D supplies argument and return types; prose abbreviations do not introduce additional selectors.

Unless explicitly stated otherwise, described state changes and logs concern successful execution. Failure MUST roll back the enclosing operation, including nested changes and logs. An invalid ABI payload may fail before a business-rule check. Profiles MUST define deterministic decoding, failure precedence and resource exhaustion for their execution binding; they MUST preserve any order this document specifies.

Appendices containing examples and calculated vectors are informative. Their arithmetic outputs are test expectations, not reports of client execution. The profile checklist and conformance register specify information and evidence needed for a release claim. References to source documents establish provenance; they do not import every chain-specific choice as a universal requirement.

3. Architecture and Address Model

3.1. Logical components

CAS20 consists of a token factory, per-token state and shared variant execution logic, a reusable PolicyRegistry, and feature-activation control. A host implements these as native protocol facilities with access to the chain state, caller context, logs and resource accounting. Separate singleton addresses are the reference EVM organization; a different host MUST publish equivalent entry points and isolation rules.

ComponentResponsibility
CAS20 FactoryCreate a token of a supported variant, install initial state, and execute one atomic initialization sequence.
Token instanceOwn balances, allowances, roles, pause state, policy bindings, metadata and variant state.
PolicyRegistryOwn reusable allowlists, blocklists, composites and policy-administrator state.
Activation controlGate new token creation by variant and registry writes under network governance.

Feature activation, token roles and policy authorization are independent decisions. Passing one does not imply either of the others. Ordinary operations address the token directly; the factory has no continuing administrative privilege after creation.

3.2. Profile-assigned locations

A chain profile MUST assign P.factory, P.policyRegistry and P.activationRegistry, or equivalent host entry points, and reserve them without conflicting with existing accounts or native facilities. It MUST describe activation height/time, routing before and after activation, and treatment of any existing state. The CA5 factory and token address scheme is preserved in the BSC reference profile, not imposed on other chains.

3.3. Reference deterministic address algorithm

For the reference EVM address algorithm, a profile supplies a ten-byte reserved token prefix P.tokenPrefix. A token address consists of that prefix, one variant byte, and nine fingerprint bytes. Variant 0 denotes Asset and variant 1 denotes Stablecoin. Other variant values require a versioned extension.

text
H = keccak256(abi.encode(address creator, bytes32 salt))
token = P.tokenPrefix || uint8(variant) || H[0:9]

The hash input is exactly 64 bytes: creator is left-padded to a 32-byte ABI word, followed by the bytes32 salt. H[0:9] means the leading nine bytes. The factory address, chain ID, creation parameters and initialization calls are excluded. A profile changing this derivation MUST name a different address binding and publish vectors; it cannot claim identical address derivation.

The fingerprint is only 72 bits. The factory MUST reject an occupied derived address according to the declared host occupancy rule and MUST NOT overwrite an existing token. In the BSC reference profile any nonempty code is occupied, a balance alone is not, and an existing balance is preserved. Other hosts MUST define a comparably explicit account/state collision rule. Prediction alone does not reserve an address.

3.4. Recognition, routing and initialization

The reference isCAS20 test recognizes P.tokenPrefix and is syntactic: it does not prove supported variant or completed initialization. variantOf returns a supported variant and rejects an address outside the reserved space or an unsupported variant. isCAS20Initialized reports completed native initialization. Consumers MUST use the supported-variant and initialization checks before treating an address as an issued token.

A profile MUST define routing for supported and unknown variants, uninitialized addresses, non-native accounts, and unsupported selectors. It MUST also specify code introspection, account existence, nonce/balance behavior, genesis handling and every code-installation path. An account marker is a host choice; the BSC one-byte 0xEF sentinel is not a generic CAS20 code requirement. [BEP702 3.3, 3.16]

3.5. State layout and namespace protection

The logical state belongs to the addressed token or registry. A chain profile MUST publish complete physical layouts, field widths, packing, mapping/string/array encodings, defaults, update rules and migration constraints. Native state MUST be journaled with the enclosing transaction. An alternate layout is permissible for another host; nodes on one consensus network MUST agree on the profile-defined layout and state transitions.

ERC-7201 is the BSC reference namespace construction. A chain choosing it MUST publish exact namespace bytes and roots. Namespace strings are profile assignments; this document does not replace the existing BSC strings with invented generic strings. The five BSC namespace inputs and their calculated roots appear in Appendix G. [ERC7201]

text
root(N) = keccak256(abi.encode(
    uint256(keccak256(bytes(N))) - 1
)) & ~bytes32(uint256(0xff))

The profile MUST prevent ordinary deployment, delegated code, genesis loading or another native facility from impersonating an initialized CAS20 token or corrupting its state. Address-prefix recognition and an account marker alone do not establish that protection. Reservation and fork-transition tests are required.

4. Token Creation and Initialization

4.1. Factory operations and parameters

text
createCAS20(Variant variant, bytes32 salt,
            bytes params, bytes[] initCalls) -> address token
getCAS20Address(Variant variant, address creator,
                bytes32 salt) -> address
isCAS20(address token) -> bool
isCAS20Initialized(address token) -> bool
variantOf(address token) -> Variant

createCAS20 is state-changing. getCAS20Address predicts the reference address without creating it. params is the ABI encoding of the selected versioned structure; it is not a free-form JSON object or an untyped tuple. Appendix D contains exact declarations. The reference structures and field order are: [BEP702 3.4]

VariantOrdered params fields
Assetuint8 version; string name; string symbol; address initialAdmin; uint8 decimals.
Stablecoinuint8 version; string name; string symbol; address initialAdmin; string currency.

The reference version is 1. A different version fails before individual decoded-field validation. Asset decimals MUST be from 6 through 18 inclusive. Stablecoin decimals is fixed at 6 and is absent from its params; currency MUST be nonempty uppercase ASCII A-Z. The BEP layout description accounts for an empty name; no nonempty-name restriction is inferred here. Remaining symbol-validation and metadata-size rules MUST be fixed in the release artifacts. [BEP702 3.4, 3.17]

A nonzero initialAdmin receives DEFAULT_ADMIN_ROLE. Zero skips the automatic grant; initialization may still grant administrators. initCalls is an ordered bytes array of operations targeting only the newly created token. Caller-dependent approve, transfer and burn use the creator identity in this reference revision.

4.2. Reference creation sequence

The reference sequence follows the current BEP description. It is an adopted requirement of this revision, not a statement that the older reviewed client has been observed to execute it. The caller and event-order discrepancies are recorded in Appendix B. [BEP702 3.4]

1. Decode the outer call and resolve the creator and supported variant. Malformed outer encodings can fail before business validation.

2. Check the variant creation feature. Decode params; validate its version, then its fields. Derive the address and reject occupancy. Feature checking precedes inner params decoding, and field validation precedes address-occupancy checking.

3. Establish the host-required account representation before writing state where the host requires it. Install defaults and the automatic initial-administrator grant, if any. The token starts unpaused, with zero supply, maximum supply cap, default policy bindings, and variant defaults.

4. Execute initCalls in order against the new token with the creator as caller and the bounded internal initialization privilege. Preserve the normal semantics of caller-owned balances and approvals.

5. Emit CAS20Created from the factory after all initialization calls have succeeded, and return the token address. Initialization logs therefore precede the creation event in this reference revision.

Any failure MUST revert the entire creation: account initialization, token and role state, all nested writes, and all emitted logs. The binding MUST define precise malformed-call, wrapped-error and resource-exhaustion behavior. Decoding an initCalls array is distinct from executing its entries; the source descriptions of those layers MUST NOT be treated as a proven ordering conflict.

4.3. Initialization privileges and terminal administration

Initialization uses the supported token dispatcher rather than an unrestricted external-call facility. Its internal privilege can bypass role gates and ordinary transfer-side policy checks for setup. It MUST NOT bypass pause state, mint-recipient policy, supply cap, seizure eligibility/receiver rules, balance/allowance arithmetic, parameter validation, the renounceLastAdmin membership check, or the anti-resurrection rule. No public argument can request this privilege. [BEP702 3.4] [REVIEW Q4]

The privilege MUST end when creation ends and MUST NOT leak to unrelated tokens or later calls. A zero initialAdmin is a bootstrap choice, not proof of the final administrator set. The final set is evaluated after initCalls. If initialization ends without a default administrator, later role governance is terminal as specified in Section 6. Retained operational roles and external policies can still affect behavior.

4.4. Creation event payload

CAS20Created records token, variant, name, symbol, decimals and variantEventParams according to Appendix D. It is emitted by the factory and has no creator field. The variant payload is empty for Asset. BEP-702 describes the Stablecoin payload as ABI-encoded CAS20StablecoinEventParams with version 1 and currency; the standalone declaration and the version field type are not supplied there and MUST be published in the profile ABI package before that payload is treated as a complete interoperable encoding. [BEP702 3.4]

A release MUST fix whether event metadata reflects original params or post-initialization mutable metadata, and provide a creation fixture that changes metadata during initCalls. That payload detail is not established solely by moving the event after initialization. Appendix A records it as a remaining reference-definition item.

5. Common Token Operations

5.1. ERC20 interface and units

Both variants expose the ERC-20 interface [ERC20], with the additional permission, policy, and pause requirements defined here. name, symbol, and decimals are available on both variants. All ledger balances, allowances, supply values, transfer amounts, mint amounts, and burn amounts use raw integer units. An Asset UI multiplier MUST NOT change their meaning.

text
name() -> string
symbol() -> string
decimals() -> uint8
totalSupply() -> uint256
balanceOf(address account) -> uint256
allowance(address owner, address spender) -> uint256
transfer(address to, uint256 amount) -> bool
transferFrom(address from, address to, uint256 amount) -> bool
approve(address spender, uint256 amount) -> bool

A successful transfer changes raw balances and emits Transfer without changing totalSupply. Approval sets the spender allowance and emits Approval. Policy and pause restrictions can deny otherwise-funded operations. The exact reference signatures, returns and errors are collected in Appendix D. [ERC20] [BEP702 3.6]

5.2. Transfers

transfer uses the caller as from. Its reference business-check order is TRANSFER pause, destination address, source address, sender policy, receiver policy, then source balance. Section 14.2 provides the complete method-order table. Ordinary transfer policies can be bypassed only in the bounded initialization context. [BEP702 3.6]

transferFrom uses the caller as spender and retains the TRANSFER pause, sender policy, receiver policy, balance, and allowance checks. If spender differs from from, TRANSFER_EXECUTOR_POLICY additionally authorizes spender. If they are equal, only that executor-policy check is skipped: self-allowance is still checked. [REVIEW Q11]

A finite allowance MUST decrease by the consumed amount without an additional Approval event. The maximum uint256 allowance is unlimited and is not decremented. In transferFrom, the allowance check precedes executor, sender and receiver policy checks, and the balance check follows them; all committed effects roll back on failure. [BEP702 3.6]

Zero-value transfer and transferFrom calls retain applicable authorization, address, policy, pause, balance, and allowance validation, and emit Transfer when successful. Ordinary self-transfers are allowed. [ERC20] [REVIEW Q11]

5.3. Approvals and memos

approve is independent of token pause and compliance policies. It rejects a zero spender and permits self-approval. It sets permission for future spending; the eventual transfer still applies its policies and pause state. Successful approval emits Approval. [REVIEW Q11]

text
transferWithMemo(to, amount, memo)
transferFromWithMemo(from, to, amount, memo)
mintWithMemo(to, amount, memo)
burnWithMemo(amount, memo)

For each memo extension, memo is bytes32 and zero is valid. The underlying operation retains all its checks and emits its usual event before Memo(caller, memo). The reference Memo event indexes both caller and memo. transferWithMemoFormat and transferFromWithMemoFormat additionally accept bytes32 formatId and emit MemoFormatDeclared after Memo. Their success log order is Transfer, Memo, MemoFormatDeclared. [BEP702 3.6]

The formatId names a definition maintained off chain. The reference method rejects zero formatId before the transfer sequence with InvalidFormatId; every other bytes32 value is accepted without validating its content or publication. The convention is formatId = keccak256(definition), hashing the definition bytes exactly as published, without canonicalization. A revised definition has a new ID. Publishers SHOULD make the encoding, field layout and version retrievable by that ID. No on-chain format registry is required. [BEP702 3.6]

5.4. Minting

text
mint(to, amount)
mintWithMemo(to, amount, memo)

Minting MUST check, in order: MINT pause; MINT_ROLE unless the initialization privilege applies; nonzero recipient; mint-recipient policy; checked supply arithmetic; configured supply cap. Recipient policy and cap MUST apply even in privileged initialization and batch contexts. Successful accounting occurs atomically. [BEP702 3.6]

A successful mint increases the recipient raw balance and totalSupply by amount and emits Transfer with the zero address as the sender. mintWithMemo additionally emits Memo. Exceeding the configured cap is identified by SupplyCapExceeded.

5.5. Burning

text
burn(amount)
burnWithMemo(amount, memo)

The public burn operations MUST require BURN_ROLE, MUST respect the BURN pause flag, and MUST burn only the caller's own raw balance. They do not provide an arbitrary-account burn authority. Insufficient balance is identified by InsufficientBalance.

A successful burn reduces the caller raw balance and totalSupply by amount and emits Transfer to the zero address. burnWithMemo additionally emits Memo. The caller burn path is not subject to the transfer sender or receiver policies. The separate seizure transfer is defined in Section 5.8.

5.6. Supply cap and token configuration

text
supplyCap()
updateSupplyCap(newCap)
contractURI()
updateName(newName)
updateSymbol(newSymbol)
updateContractURI(newURI)

The maximum total supply and initial supply cap are both 2^128-1. updateSupplyCap requires DEFAULT_ADMIN_ROLE and totalSupply <= newCap <= 2^128-1. A successful change emits SupplyCapUpdated. The maximum value permits the full supported supply range; it does not permit supply above 2^128-1. Amount parameter types remain governed by the ABI, not inferred from this bound. [REVIEW Q11]

updateName, updateSymbol and updateContractURI require METADATA_ROLE. Name updates emit NameUpdated and EIP712DomainChanged; symbol updates emit SymbolUpdated. URI updates emit ContractURIUpdated(), with the URI read through contractURI. A profile MUST fix the ordering of the two name-update logs and test that its domain reflects the current name. [BEP702 3.6, 3.11] [ERC7572]

Name and symbol are mutable; decimals is immutable. Consumers SHOULD refresh metadata following the corresponding events. A URI update does not establish that remote metadata is available, valid, or trustworthy, and the source does not specify native validation of the remote document.

5.7. Signed approvals

text
permit(address owner, address spender, uint256 value,
       uint256 deadline, uint8 v, bytes32 r, bytes32 s)
nonces(address owner) -> uint256
DOMAIN_SEPARATOR() -> bytes32
eip712Domain()

Permit uses secp256k1 ECDSA and ERC-2612/EIP-712 typed data. Any account may submit the owner's signature. Successful execution increments the owner nonce, sets allowance to value, and emits Approval; it returns no data. Failure commits no nonce or allowance change. [ERC2612] [EIP712]

The owner MUST be nonzero. The deadline is valid when block.timestamp <= deadline. The reference binding requires v equal to 27 or 28 and low-s secp256k1 signatures; it has no ERC-1271 fallback. The business error order is InvalidApprover, ExpiredSignature, InvalidSigner, InvalidSpender. A successful permit sets allowance and consumes one nonce; the complete typed declarations are in Appendix D. [BEP702 3.11]

The domain contains the current token name, version "1", current chainId, and the token address. The following exact type strings are concatenations of the quoted fragments with no inserted whitespace or newline:

text
DOMAIN_TYPE = "EIP712Domain(string name,string version,"
              "uint256 chainId,address verifyingContract)"
PERMIT_TYPE = "Permit(address owner,address spender,"
              "uint256 value,uint256 nonce,uint256 deadline)"
DOMAIN_TYPEHASH = keccak256(bytes(DOMAIN_TYPE))
PERMIT_TYPEHASH = keccak256(bytes(PERMIT_TYPE))
DOMAIN_SEPARATOR = keccak256(abi.encode(
    DOMAIN_TYPEHASH, keccak256(bytes(name)),
    keccak256(bytes("1")), chainId, tokenAddress))
structHash = keccak256(abi.encode(
    PERMIT_TYPEHASH, owner, spender, value, nonce, deadline))
digest = keccak256(0x1901 || DOMAIN_SEPARATOR || structHash)

abi.encode uses standard 32-byte ABI words; hashes of dynamic strings occupy bytes32 words. The nonce in structHash is the owner's current pre-call nonce. The returned domain salt is not included in this domain type. Appendix G provides the type hashes and an independently calculated signed permit fixture.

eip712Domain returnType and value
fieldsbytes1: 0x0f.
namestring: current token name.
versionstring: "1".
chainIduint256: current execution chain ID.
verifyingContractaddress: this token.
saltbytes32: zero; absent from the signed domain.
extensionsuint256[]: empty.

eip712Domain() uses selector 0x84b0196e. EIP712DomainChanged() is parameterless. Its event topic and the permit selector appear in Appendix G. These are the reference domain-discovery identifiers. [ERC5267] [BEP702 3.11]

Permit remains independent of ordinary transfer pause and policy gates. Its deadline controls submission, not expiry of the resulting allowance. Changing the name changes the signing domain; restoring an earlier name may restore that domain for a still-unused, unexpired signature. Nonce and deadline checks still apply.

5.8. Seizure transfers

text
seizeWithMemo(address from, address to,
              uint256 value, bytes32 memo) -> bool
SEIZE_ROLE() -> bytes32
SEIZE_HOLDER_POLICY() -> bytes32
SEIZE_RECEIVER_POLICY() -> bytes32

Seizure transfers raw tokens from a source holder to a destination without changing totalSupply. It uses SEIZE_ROLE and the dedicated SEIZE pause feature, whose enum value is 3. It does not check or consume allowance, require an ordinary-transfer blacklist condition, or evaluate the ordinary transfer policies. TRANSFER pause alone does not block seizure. [REVIEW R08, Q5]

The source MUST NOT be authorized by the source-exemption policy; the destination MUST be authorized by the seizure receiver policy. Both bindings initially use ALWAYS_ALLOW (ID 0). Every source is therefore initially exempt, so granting SEIZE_ROLE alone does not enable seizure. The reference getter for source exemption is SEIZE_HOLDER_POLICY(), returning keccak256("SEIZE_HOLDER_POLICY"). The getter name does not change the inverse eligibility test. [BEP702 3.8]

Source exemptReceiver authorizedPolicy result
truetrueReject: source is exempt.
truefalseReject at source exemption check.
falsefalseReject: receiver is unauthorized.
falsetruePolicy checks pass; other guards still apply.

For well-formed input and sufficient resources, the reference business checks are: SEIZE is unpaused; caller holds SEIZE_ROLE; destination is nonzero and differs from source; source is nonzero; source is not exempt; receiver is authorized; source balance is sufficient. A zero amount still undergoes validation. Self-seizure is rejected. This ordering is source-reported in [REVIEW Q5]; profile execution evidence remains required.

Successful seizure returns true and emits Transfer, then Memo, then Seized. AccountNotSeizable(address) identifies the source exemption failure. The explicit from/to call order and complete Seized declaration are supplied by BEP-702 and reproduced in Appendix D. Earlier review evidence used a different exemption getter and hash; those identifiers are not aliases. [BEP702 3.6, 3.8] [REVIEW Q5]

Burning a seized balance is a separate caller-burn operation subject to BURN_ROLE and the BURN pause. Seizure itself moves existing balances without altering supply or consuming allowance.

5.9. Zero and no-op operations

Operation or caseObservable behavior
Zero amountRelevant authorization, pause, address, policy, balance and allowance checks remain. Successful token operations emit their corresponding logs.
Ordinary self-transferAllowed after the applicable checks.
Self-seizureRejected.
Self-approval / zero spenderSelf-approval allowed; zero spender rejected.
transferFrom with caller = fromSelf-allowance checked; executor-policy check skipped.
Finite allowance consumptionDecreases allowance without an extra Approval log.
Grant existing / revoke absent roleAuthorization still checked; no membership event.
Same role administratorsetRoleAdmin still emits RoleAdminChanged.

These no-op rules are method-specific. They do not assign event suppression to every setter. A release MUST cover remaining setters, duplicate inputs, zero amounts and simultaneous-failure cases in its conformance vectors. [REVIEW Q11]

6. Role Based Access Control

6.1. Role identifiers and authority

A role identifier is bytes32. Membership is maintained per token and per account. DEFAULT_ADMIN_ROLE is bytes32(0). Each role has an administrator role; an unset administrator relation resolves to DEFAULT_ADMIN_ROLE. Any bytes32 identifier can be used as a custom role, but a custom role has no built-in token authority unless used as an administrator role.

RoleIdentifierAuthority
DEFAULT_ADMINbytes32(0)Supply cap, token policy bindings, and default role administration.
MINTkeccak256("MINT_ROLE")Minting and Asset batch minting.
BURNkeccak256("BURN_ROLE")Caller-balance burning.
PAUSEkeccak256("PAUSE_ROLE")Pause supported features, including SEIZE.
UNPAUSEkeccak256("UNPAUSE_ROLE")Resume supported features.
METADATAkeccak256("METADATA_ROLE")Mutable token metadata.
SEIZEkeccak256("SEIZE_ROLE")Seizure subject to source exemption, receiver and pause checks.
OPERATORkeccak256("OPERATOR_ROLE")Asset announcements, scheduled/immediate multiplier updates, and schedule cancellation.

All listed role getters are public in the reference binding. SEIZE_ROLE is keccak256("SEIZE_ROLE"); OPERATOR_ROLE is an Asset extension. Appendix G publishes the source-defined values, including all six policy-scope hashes. [BEP702 3.7, 3.8]

6.2. Membership and administrator operations

text
hasRole(role, account) -> bool
getRoleAdmin(role) -> bytes32
grantRole(role, account)
revokeRole(role, account)
renounceRole(role, callerConfirmation)
setRoleAdmin(role, newAdminRole)
renounceLastAdmin()

grantRole and revokeRole MUST authorize the caller against the target role's current administrator role. setRoleAdmin MUST use that same current administrator role before changing the relation. A default administrator does not automatically bypass a customized administrator relation.

After authorization, granting an existing role or revoking an absent role changes no membership and emits no role event. A successful membership change emits RoleGranted or RoleRevoked. setRoleAdmin emits RoleAdminChanged even when the assigned administrator role is unchanged. [REVIEW Q11]

renounceRole MUST require callerConfirmation to equal the caller; otherwise it fails with AccessControlBadConfirmation. A caller that does not hold the role can renounce it successfully without an event. A holder renounces only its own membership. Operations requiring an absent role fail with AccessControlUnauthorizedAccount(account, neededRole).

The count of default administrators MUST represent distinct DEFAULT_ADMIN_ROLE members. Repeated grants MUST NOT inflate that cardinality. No equivalent member count is required by the source for other roles.

6.3. Protection of the final administrator

revokeRole and renounceRole MUST reject removal of the sole remaining DEFAULT_ADMIN_ROLE member with LastAdminCannotRenounce. Deliberate removal of the final administrator is available only through renounceLastAdmin.

renounceLastAdmin first checks DEFAULT_ADMIN_ROLE membership. A caller without the role fails with AccessControlUnauthorizedAccount(caller, DEFAULT_ADMIN_ROLE). A role holder whose adminCount is not 1 fails with NotSoleAdmin(). Success removes the final membership, sets the count to zero, and emits RoleRevoked followed by LastAdminRenounced. [REVIEW R09]

After final renunciation, grantRole, revokeRole, and setRoleAdmin MUST remain unavailable. No privileged call route may restore a default administrator. Existing operational roles remain effective, and their holders can still use renounceRole to relinquish their own memberships. Unprivileged token operations remain subject to their ordinary restrictions.

A completed zero-administrator state ends role governance, not all token operations. Retained operational roles and independently administered external policies can still affect token behavior. This state is distinct from the initial bootstrap window, during which initCalls may grant an administrator despite initialAdmin being zero.

6.4. Administrator relation hazards

setRoleAdmin can assign DEFAULT_ADMIN_ROLE an administrator role that no account holds. The documented protocol permits that assignment. Such a configuration can make ordinary recovery impossible even while a default-administrator member remains. Implementers and issuer tooling SHOULD distinguish this loss of an administration path from the explicit final-renunciation state.

Role separation does not imply that accounts are distinct. An issuer can grant multiple roles to one account. Operational security depends on the actual assignment and administration of those roles.

7. Selective Pausing

text
pausedFeatures()
isPaused(feature)
pause(features)
unpause(features)

The logical pause state is a mask with TRANSFER=0, MINT=1, BURN=2 and SEIZE=3. The reference ABI uses the append-only PausableFeature enum and arrays of that enum. pausedFeatures() returns a PausableFeature[] list, not a raw uint256 mask. The representation of the mask in storage is profile-specific. [BEP702 3.9]

FeatureValue / bitRestricted operations
TRANSFER0transfer, transferFrom, and corresponding memo operations.
MINT1mint, mintWithMemo, and Asset batchMint.
BURN2burn and burnWithMemo.
SEIZE3seizeWithMemo.

features in pause(features) and unpause(features) is a collection of feature identifiers. pause MUST require PAUSE_ROLE and set the requested feature bits without clearing any other bit. unpause MUST require UNPAUSE_ROLE and clear the requested bits without changing unlisted features. An empty feature set fails with EmptyFeatureSet. Repeated features and repeated application of an already-established pause state are idempotent.

pausedFeatures returns the paused feature set and isPaused reports a requested feature. Approvals, permit approval effects, and reads remain available under pause. SEIZE pause independently controls seizure; TRANSFER pause does not control it. Activation switches are separate from all four token pause flags.

8. Policy Registry

8.1. Policy identity and reuse

PolicyRegistry stores address-authorization policies independently of individual tokens. Tokens reference policy IDs in distinct scopes. A policy may be referenced by multiple tokens and multiple scopes; changes to that policy affect subsequent evaluations by all such consumers. The policy administrator and each consuming token administrator need not be the same account.

Reference policy IDs are uint64: the high eight bits encode BLOCKLIST=0, ALLOWLIST=1, UNION=2 or INTERSECT=3, and the low 56 bits encode the allocation counter. Custom sequence values begin at 2. The complete ID, including the type byte, MUST be retained. Types 4 through 255 are invalid; mutation, binding or nesting MUST reject an ID of such a type as absent. Counter exhaustion still requires an explicit deterministic release rule. [BEP702 3.8]

Reserved policyValueAuthorization
ALWAYS_ALLOW0Authorize every account.
ALWAYS_BLOCK0x0100000000000001Authorize no account.

Both reserved policies exist without a user creation transaction and always answer as shown. A simple BLOCKLIST authorizes accounts absent from its member set; a simple ALLOWLIST authorizes accounts present. A host may initialize their physical representation lazily only if observable behavior and consensus state transitions match its published profile.

8.2. Simple policy operations

text
createPolicy(admin, policyType)
createPolicyWithAccounts(admin, policyType, accounts)
updateAllowlist(policyId, allowed, accounts)
updateBlocklist(policyId, blocked, accounts)

Any caller may create a policy while PolicyRegistry is activated. At policy creation, admin MUST be nonzero. createPolicyWithAccounts seeds the initial member set. A creation or membership-update batch MUST NOT exceed 64 accounts; an excessive batch fails with BatchSizeTooLarge.

Membership updates check policy existence, matching policy type, current policy administrator, then the 64-account batch bound, in that order. A type mismatch uses IncompatiblePolicyType. Adding an existing member or removing an absent one is idempotent. Empty account batches are not declared invalid by the source. [BEP702 3.8]

8.3. Policy administrator lifecycle

text
stageUpdateAdmin(id, newAdmin)
finalizeUpdateAdmin(id)
renounceAdmin(id)

The current policy administrator stages a successor with stageUpdateAdmin. Staging MUST NOT immediately transfer current authority. Passing the zero address cancels the nomination. finalizeUpdateAdmin MUST be called by the nominated account to accept control.

renounceAdmin clears both administrator and pending administrator. A simple policy retains its members and continues answering queries. The two-step transfer preserves current authority until the nominee finalizes. A zero staged nominee cancels the pending transfer. [BEP702 3.8] [REVIEW Q7]

Renouncing a composite policy administrator must not be interpreted as freezing the independently administered child policies. Even if its child references can no longer be changed, the composite authorization result can still change when an authorized child administrator updates a child.

8.4. Authorization queries

text
isAuthorized(id, account)
policyExists(id)
policyAdmin(id)
pendingPolicyAdmin(id)

isAuthorized, policyExists, policyAdmin and pendingPolicyAdmin remain available independently of policy-write activation. isAuthorized answers a Boolean; the token rejects a forbidden movement with PolicyForbids(scope, policyId). Tolerant ordinary query behavior does not waive decoding/resource failures or prove arbitrary malformed inputs safe. [BEP702 3.8]

For a never-created simple policy ID with a recognized simple type, authorization uses an empty member set. It consequently allows all accounts for BLOCKLIST and denies all accounts for ALLOWLIST. This tolerant read behavior MUST NOT be treated as permission to bind nonexistent policies to a token.

For well-formed calls with sufficient resources, an uncreated BLOCKLIST authorizes true, ALLOWLIST false, UNION false and INTERSECT true. An invalid type byte authorizes false. Therefore isAuthorized MUST NOT be used as an existence test; bindings require policyExists. The two reserved IDs MUST report existence even before physical sentinel-policy state is first seeded. Counter exhaustion is a separate unresolved boundary. [BEP702 3.8]

8.5. Composite policies

text
createCompositePolicy(address, uint8, uint64[])
updateComposite(uint64, uint64[])
compositePolicyChildIds(uint64)
MIN_COMPOSITE_CHILD_POLICIES() = 2
MAX_COMPOSITE_CHILD_POLICIES() = 4

A composite references 2 through 4 existing ordinary simple policies. ALWAYS sentinels and composite children are excluded. Duplicate children are accepted, retained, and counted toward the limit. All children are checked for existence before their eligibility is checked. Child-count violations use ChildPoliciesOutsideOfRange; invalid child eligibility uses InvalidChildPolicy(uint64). [BEP702 3.8] [REVIEW Q7]

UNION MUST authorize an account when at least one child authorizes it. INTERSECT MUST authorize an account only when every child authorizes it. Each evaluation MUST use the current child policy state. Updating a child list therefore changes the composite result without rewriting the composite.

In the reference binding, enum decoding precedes business guards. For well-formed inputs, createCompositePolicy checks nonzero administrator, composite type, child count, all child existence, then all child eligibility. An enum value outside 0..3 fails ABI decoding. A valid simple type with admin=0 therefore reaches ZeroAddress before IncompatiblePolicyType. Resource and call-context failures are separate earlier conditions. [BEP702 3.8] [REVIEW R06]

updateComposite replaces the entire child list, with no partial update and no empty list. A successful reference update emits:

text
CompositePolicyUpdated(uint64 policyId,
                       address updater,
                       uint64[] childPolicyIds)

updateComposite first checks policy existence, composite type and current administrator, then applies the same child-count bound and two validation passes. The complete typed declarations and indexed event fields are in Appendix D. Source definitions are not a substitute for release execution tests. [BEP702 3.8]

The one-level limit bounds evaluation to at most four referenced simple policies. It does not imply a universal flat resource price. A profile MUST specify child-evaluation order, short-circuit behavior, metering and resource-failure precedence.

8.6. Token policy bindings

text
policyId(policyScope)
updatePolicy(policyScope, newPolicyId)

updatePolicy requires DEFAULT_ADMIN_ROLE, a recognized policy scope and an existing policy ID, in that order. Unknown scope uses UnsupportedPolicyType(scope); absent target uses PolicyNotFound(id). policyId on an unknown scope also uses UnsupportedPolicyType(scope). All six bindings default to ALWAYS_ALLOW; the source-exemption predicate is inverted as defined in Section 5.8. [BEP702 3.8]

ScopeSubjectApplication
TRANSFER_SENDERfromOrdinary transfers.
TRANSFER_RECEIVERtoOrdinary transfers.
TRANSFER_EXECUTORcallerDelegated transfer when caller differs from from.
MINT_RECEIVERtoMinting, including initCalls and batchMint.
SEIZE_HOLDERfromAuthorization means the source is exempt; seizure requires false. Reference getter: SEIZE_HOLDER_POLICY.
SEIZE_RECEIVERdestinationSeizure requires authorization true.

The reference getters use the _POLICY suffix. The source-exemption binding uses SEIZE_HOLDER_POLICY; its authorization result is inverted for seizure eligibility. The full role/scope literal inputs and hashes appear in Appendix G. A default ALWAYS_ALLOW source-exemption binding blocks seizure until deliberately reconfigured. [BEP702 3.8]

Approvals, ordinary caller burns, and reads are not restricted by these inherited movement policies. A denied movement leaves the holder's balance in place. A list policy implements address authorization; it does not itself verify identity, reserves, a legal order, or entitlement to an off-chain asset.

9. Feature Activation and Governance

9.1. Feature identifiers and gates

text
isActivated(bytes32 feature) -> bool
checkActivated(bytes32 feature)
admin() -> address
activate(bytes32 feature)
deactivate(bytes32 feature)

Activation identifiers are bytes32 in the reference EVM binding. A chain profile MUST publish the exact identifier for each gated feature and, when derived by hashing, the exact input bytes. There is no generic requirement to use the BSC feature namespace. Its three literal inputs and calculated hashes appear only in the BSC profile and examples.

Logical featureGated activity
PolicyRegistry writesCreation, membership, administrator and composite changes.
Stablecoin creationNew Stablecoin tokens only.
Asset creationNew Asset tokens only.

isActivated reports state. checkActivated rejects an inactive feature with FeatureNotActivated(feature). admin returns the activation administrator, or zero in empty state. activate/deactivate require that administrator and emit FeatureActivated/FeatureDeactivated. Activating an active key uses AlreadyActivated; deactivating an inactive key uses FeatureNotActivated in the BEP reference interface. [BEP702 3.15] Authorization requires stored admin != zero and caller == stored admin; no caller controls an unappointed registry. The ordinary Boolean query guarantee assumes a permitted, well-formed call with sufficient resources.

The reference activate method accepts arbitrary bytes32 keys. Activating a misspelled or unintended hash can succeed without enabling the intended feature. Tooling MUST use the profile manifest; a friendly feature name is not an on-chain identifier.

9.2. Chain governance adapter

Governance integration is a required chain-profile declaration. The reference query and feature-toggle methods remain in Appendix D; a host-specific governance adapter is additional to those logical controls.

The generic requirement is an authenticated chain-governance mechanism for installing or replacing activation authority. A profile MUST define the authorized caller or governance identity, payload encoding, transition procedure, events, delay/acceptance rules and recovery limits. The BSC GovHub updateParam adapter and its 20-byte payload are recorded in Appendix B; they are not mandatory on another chain.

The reference empty state has no activation administrator and no active features. A chain profile MUST specify its actual genesis/upgrade initialization and activation transactions. Installing native execution support is distinct from enabling creation and registry writes; neither source defaults nor sample addresses establish live network status.

9.3. Effect of deactivation

Variant activation gates new token creation. No method on an existing token checks that switch: transfers, approvals, mint, burn, seizure, role/pause/policy administration, permit, metadata, multipliers and announcements remain subject only to their own rules. PolicyRegistry writes require its feature to be active; reads and authorization evaluation remain available. [BEP702 3.15]

Deactivating PolicyRegistry can prevent list updates or policy administration while tokens continue using stored policy state. It is not a token-wide freeze. Node feature availability, token pause state, and policy decisions remain distinct.

10. Asset Variant

10.1. Raw accounting and UI amounts

Asset decimals is immutable and lies from 6 through 18. The ledger stores raw balances, supply and allowances. Multiplier changes MUST NOT rewrite them or the raw quantities in ERC-20 Transfer events.

The multiplier starts at 10^18. WAD_PRECISION is 10^18, and permitted multiplier values are 1 through 2^128-1 inclusive. MAX_UI_MULTIPLIER is 2^128-1. UI amounts remain integers at the token decimal scale. [REVIEW Q6]

text
uiAmount  = floor(rawAmount * activeMultiplier / 10^18)
rawAmount = floor(uiAmount * 10^18 / activeMultiplier)

Each uint256 multiplication occurs before division. Intermediate overflow MUST revert with Panic(0x11), even if an unbounded multiply-then-divide result would fit. Conversion rounds down. Human-readable display divides uiAmount by 10^decimals; multiplier precision and token decimals are separate. [BEP702 3.12] [REVIEW Q6]

The multiplier is a display/conversion mechanism, not a per-holder distribution ledger. Both conversions floor. A raw-to-UI-to-raw round trip can lose more than one raw base unit: with multiplier=10^17 and rawAmount=9, the UI amount is 0 and conversion back is 0. There is no universal one-raw-unit loss bound. Exact accounting MUST retain raw units. Appendix G includes this counterexample.

10.2. Scheduled and immediate multiplier interfaces

text
uiMultiplier()
newUIMultiplier()
effectiveAt()
updateUIMultiplier(uint256, uint256)
cancelUIMultiplierUpdate()
toUIAmount(uint256)
fromUIAmount(uint256)
balanceOfUI(address)
totalSupplyUI()
MAX_UI_MULTIPLIER()
supportsInterface(bytes4)

updateUIMultiplier takes new multiplier and effective timestamp in that order. OPERATOR_ROLE is required for multiplier updates. uiMultiplier reads the effective value; newUIMultiplier and effectiveAt expose the recorded schedule. For a recorded schedule, the new value is effective when now >= effectiveAt. After maturation, effectiveAt retains its past value until the next schedule or immediate update. Nonzero effectiveAt alone does not imply a future update.

text
WAD_PRECISION()
multiplier()
scaledBalanceOf(account)
toRawBalance(scaledBalance)
toScaledBalance(rawBalance)
updateMultiplier(newMultiplier)

The reference Asset binding retains all six methods above with the exact typed declarations in Appendix D. updateMultiplier requires OPERATOR_ROLE and immediately sets the active multiplier, clearing a recorded schedule. It emits MultiplierUpdated and UIMultiplierUpdated; cancellation of a live schedule precedes those logs. These methods are included in BEP-702, not removed by the scheduled interface. [BEP702 3.12]

toUIAmount/fromUIAmount and their compatibility conversion names operate on the effective multiplier. balanceOfUI/totalSupplyUI expose UI quantities, while all ERC-20 amounts remain raw. supportsInterface(bytes4) is declared by BEP-702; the exact supported interface-ID list still requires a published reference interface package and profile validation. [ERC165]

10.3. Scheduling state transitions and events

ConditionRequired behavior
Schedule timenow < effectiveAt <= 2^64-1. Equality with now is not allowed.
Outstanding future scheduleA second scheduled update fails with UIMultiplierUpdateExists(uint256).
Before recorded effectiveAtUse the previously active value; the future update can be cancelled.
At/after recorded effectiveAtReads use that scheduled value. Cancellation is no longer permitted.
Time reaches effectiveAtReads apply the scheduled value without an activation transaction; a maturation event MUST NOT be emitted.
Matured storage recordeffectiveAt retains its past value until the next schedule or immediate update; it is no longer cancellable.
Immediate updateupdateMultiplier may override the recorded scheduled update.
text
UIMultiplierUpdated(uint256 oldMultiplier,
                    uint256 newMultiplier,
                    uint256 effectiveAt)
UIMultiplierUpdateCancelled(uint256 cancelledMultiplier,
                           uint256 cancelledEffectiveAt)

cancelUIMultiplierUpdate requires OPERATOR_ROLE. Only a live future schedule can be cancelled; a matured or absent schedule uses UIMultiplierUpdateDoesNotExist. A matured record retains its past timestamp until the next schedule or immediate update. An immediate update clears any record and emits cancellation only for a live record. The precise post-cancel getter normalization still requires the release binding and fixture. [BEP702 3.12]

Consumers MUST evaluate the multiplier at the block being displayed. An effective-time transition does not imply a new transaction or log at that timestamp. Historical queries must use the corresponding historical state and time.

10.4. Announcements

text
announce(internalCalls, id, description, uri)

internalCalls is the ordered list of token operations to execute. id is the announcement identifier, usable once per token. description is the disclosure summary, and uri is the link to the full disclosure. Appendix D supplies the consolidated parameter and return reference.

text
isAnnouncementIdUsed(id) -> bool

announce MUST require OPERATOR_ROLE. Its internalCalls list may be empty, producing a standalone announcement. An announcement ID can be used only once per token. The operation MUST mark the ID used before executing its internal calls, and MUST reject reuse with AnnouncementIdAlreadyUsed(id).

The operation emits Announcement, executes its internal calls in order, and emits EndAnnouncement. Each call MUST execute against the same token while preserving the original announcement caller. The called operation retains its normal role requirements: OPERATOR_ROLE alone does not confer MINT_ROLE for an enclosed batchMint.

An internal call shorter than four bytes fails with InternalCallMalformed(call). Attempted recursive announcement fails with AnnouncementInProgress. An internal revert is wrapped as InternalCallFailed(call) rather than passed through unchanged. Any failure MUST revert the entire announcement, including the ID mark, intermediate state, and emitted logs.

Announcement and EndAnnouncement contain the caller-chosen string id as non-indexed data, so indexers can read it and pair the successful bundle. Internal operation logs fall between the two events. Exact string, bytes-array and error declarations are in Appendix D. [BEP702 3.12]

The reference binding has no independent method-specific count cap for announce or initCalls. Host input and execution-resource limits still apply. A new count-based rejection changes accepted input and MUST be declared as a distinct binding revision, not silently introduced as a deployment parameter. Any intermediate failure or resource exhaustion reverts the whole operation. [BEP702 3.14]

10.5. Batch minting

text
batchMint(recipients, amounts)

batchMint MUST require MINT_ROLE and an unpaused MINT feature. The recipient and amount arrays MUST be nonempty and have the same length. A mismatch is identified by LengthMismatch(l, r). Each element MUST satisfy mint-recipient policy and supply-cap enforcement. A failure in any element MUST revert the entire batch.

The reference implementation checks batch role and pause once and may avoid redundant inner permission checks. Every recipient still undergoes mint-recipient policy, accounting and supply-limit enforcement. An empty batch fails with EmptyBatch. Wrapping a batch in announce is an issuer disclosure practice; it is not a prerequisite for executing every batch. [BEP702 3.12]

10.6. Additional metadata

text
extraMetadata(key)
updateExtraMetadata(key, value)
OPERATOR_ROLE()

extraMetadata returns an issuer-defined metadata value or an empty string when the key is unset. updateExtraMetadata MUST require METADATA_ROLE and a nonempty key. Setting an empty value deletes the item. An empty key is identified by InvalidMetadataKey; a successful update emits ExtraMetadataUpdated(key, value).

Key names are issuer-defined. No identity, classification, jurisdiction, or reserve claim becomes protocol-verified by being entered in metadata.

11. Stablecoin Variant

text
currency() -> string

A Stablecoin token MUST return decimals equal to 6. The precision is a variant constant and is not configurable. Its currency label is selected at creation, MUST be nonempty, and MUST contain only uppercase ASCII letters A through Z. The label MUST remain immutable.

The protocol checks label format and does not require membership in an external currency registry. It does not validate reserves or redeemability. A label such as USD is an issuer declaration. Stablecoin does not include the Asset UI multiplier, announcement, batch-mint, or extra-metadata extensions. It does share the common token, role, pause, policy, permit, and current seizure interfaces described above.

12. Execution and Integration Requirements

12.1. Host execution contract

A profile MUST define how native operations access state, preserve caller identity, emit events, charge resources, enter read-only context and roll back. All consensus participants executing a profile MUST implement the same observable rules. Go interfaces, Rust types and internal helper names are implementation choices; a source-language declaration is not a universal CAS20 requirement.

For the reference EVM call model, CALL is the ordinary route and nonzero attached value is rejected with NonPayable. STATICCALL permits reads and rejects write methods with StaticCallNotAllowed. DELEGATECALL and CALLCODE are rejected with DelegateCallNotAllowed, so the target identity cannot ambiguously select another account's token state. A refused call form is a revert with its specified error, not an exceptional out-of-gas halt. The BSC sentinel and account-existence stages are profile details in Appendix B. [BEP702 3.2]

Unsupported selectors and undecodable reference ABI inputs revert with empty returndata. Business errors use ABI-encoded custom errors. Resource exhaustion follows the host exception rules. Profiles MUST distinguish these outcomes and specify the order of envelope decoding, per-element validation and business checks; the explicit method rows in Section 14.2 take precedence over a blanket decode-first description.

12.2. Clients, RPC services, wallets and indexers

Transaction submission, simulation, gas estimation, tracing and historical calls MUST use the selected profile's native execution logic. An EVM RPC service forwarding calls to a compatible node may use the normal RPC transport, but independent simulators, forks and code-based token detectors require their own validation. Host-specific code markers MUST be interpreted through the profile rather than assumed to contain the token program.

Wallets and indexers SHOULD identify a token by chain/network identity, profile revision and token address. They MUST keep raw amounts for transactions and reconciliation and MUST NOT silently substitute UI-scaled amounts. Historical UI reads use the multiplier and timestamp at the queried block. A scheduled multiplier can mature without a transaction or a new log.

Consumers SHOULD process standard transfers/approvals together with creation, memo-format, role, pause, policy, metadata, seizure and variant events according to the declared ABI. Native execution does not remove business restrictions: an allowance, sufficient balance or ERC-20-shaped interface does not guarantee that a proposed workflow is permitted.

12.3. Metering and bounded work

Every host MUST meter or otherwise deterministically bound all work, including input decoding, hashing, signature recovery, account/storage access, logs, dynamic strings, policy children and internal dispatch. The profile MUST specify resource costs, limits, refund rules, access-warmth rules if any, and exhaustion precedence. A flat per-method number cannot substitute for state-dependent rules where the host charges dynamically.

Input or pathReference semantic limit
Policy account batchAt most 64 accounts per create/update batch.
Composite children2 through 4; duplicate children count.
batchMint arraysEqual length and nonempty; each recipient validated.
initCalls / announceNo additional fixed count cap in the reference descriptions; host input and execution limits apply.
Multiplier timestampStrictly future when scheduled; at most 2^64-1.

An EVM profile MUST state its fork-dependent gas constants, warm/cold behavior, SSTORE/refund semantics, memory/copy charging, and nested-dispatch treatment. CAS20 native addresses are not automatically warm merely because they are native; ordinary transaction, destination and access-list warming still applies under the selected EVM rules. The BSC reference model is summarized in Appendix B. [BEP702 3.14]

12.4. Cross-chain scope

This specification defines no bridge, remote asset mapping, common reserve pool or cross-chain administrative authority. The same address or ticker on two chains does not establish the same issuer, backing, balances, roles, policies or supported capabilities. A portable implementation model is not a guarantee of cross-chain economic or binary equivalence.

Permit signatures bind the actual chain ID and token address. A deployment MUST use its own signing domain and MUST NOT reuse an illustrative fixture as a production signature. A non-EVM signature adapter MUST specify domain separation and replay protection explicitly; matching token semantics alone does not confer ERC-2612 interoperability.

13. Security Considerations

13.1. Authority and irreversible administration

Factory bootstrap privilege, token roles, policy administrators and chain activation authority are separate trust boundaries. Each MUST be confined to its specified scope. Issuers SHOULD review the actual administrator graph and role holders; distinct role identifiers do not require distinct accounts. An unreachable role-administration path is different from explicit final-administrator renunciation.

Final-administrator loss ends role-governance mutation but does not revoke operational roles, freeze metadata controlled by retained roles, stop a live multiplier schedule, or freeze independently administered policies. Any claim that a token is immutable MUST identify precisely which capabilities and external dependencies remain mutable.

13.2. Policies and seizure

A shared policy update can affect several tokens at once. Consumers SHOULD evaluate authority over both composite policies and their children. Binding MUST require policy existence because tolerant authorization reads can return true for empty uncreated blocklist state. List membership is address authorization; it is not protocol verification of identity, legal entitlement, asset backing or reserves.

Source-exemption authorization is intentionally inverted for seizure: authorization true prevents seizure. A new token's ALWAYS_ALLOW source-exemption binding protects every holder until reconfigured. Seizure is independent of allowance and ordinary transfer policy/pause, so its role, receiver policy and dedicated pause deserve separate review. Burning a seized balance requires its own authorized operation.

13.3. Addresses, state and fork transitions

The reference 72-bit fingerprint is truncated and collision resistance is limited. Occupancy checks, namespace protection and verified initialization are essential. An issuer SHOULD create the token before publishing an address that users rely on. A profile adopting a different prefix/fingerprint allocation MUST publish the derivation and its collision/reservation analysis.

A profile MUST examine genesis, contract creation, delegated-code installation, account clearing and upgrade transitions. A marker is not executable token code and does not by itself prevent impersonation. Native execution bugs may affect every token of a variant, so rollback, isolation and independent implementation checks are material release evidence.

13.4. Signed approvals and published data

Permit binds spender, value, nonce, deadline and the current domain. Clients SHOULD display those values accurately and refresh domain data after a name change. A name change is not a permanent cancellation mechanism: restoring an old name may restore an old domain for an unused, unexpired signature. The deadline limits submission, not the lifetime of the resulting allowance.

Memos and announcement strings are public chain data. Applications SHOULD commit sensitive or long payloads by hash and manage retrieval and access outside the chain. For the memo-format convention, an SDK SHOULD bind formatId, a versioned domain and random salt into the memo commitment; the chain does not validate that construction or the truth of a format declaration. [BEP702 3.6]

13.5. Arithmetic and valuation

The absolute raw supply maximum and multiplier maximum are both 2^128-1. Their product fits uint256, but arbitrary conversion arguments can overflow before division and MUST fail under the reference checked-arithmetic rules. Integer flooring can remove more than one raw base unit in a round trip when the multiplier is small. The raw ledger is authoritative.

Multiplier changes rescale every holder uniformly and do not create a separately claimable yield distribution. Issuers remain responsible for converting subscriptions and redemptions at the applicable execution-time multiplier. Pause does not stop schedule maturation. An immediate update can supersede a live schedule, so a displayed quote is not a locked execution rate.

13.6. Atomicity and denial of service

Creation, announcement bundles and batch issuance MUST be all-or-nothing. A late failure or resource exhaustion MUST NOT preserve earlier balances, nonce changes, announcement-ID marks, roles or logs from the enclosing operation. Variable inputs and shared-policy evaluation MUST remain bounded and metered. Releases MUST test exhaustion at reads, writes, logging and nested boundaries.

14. Events, Errors and Validation Order

14.1. Reference events and observability

Appendix D contains the 34 unique event declarations in the pinned BEP reference, including indexed parameters. A release MUST publish the corresponding ABI and event topics. Event order is observable behavior; generic host adapters MUST preserve its meaning and document any encoding mapping. The source declarations do not prove a deployed client emits them.

OperationRequired event relationship
CreationInitialization calls complete before CAS20Created. Automatic initial role-log timing and metadata payload details remain explicit release-definition items.
Memo operationBase operation event, then Memo.
Memo format transferTransfer, Memo, then MemoFormatDeclared.
SeizureTransfer, Memo, then Seized.
AnnouncementAnnouncement, successful inner-call logs, then EndAnnouncement.
Final administrator renunciationRoleRevoked, then LastAdminRenounced.
Immediate multiplierOptional live-schedule cancellation, then MultiplierUpdated and UIMultiplierUpdated.
Schedule maturationNo automatic event; effective reads change with block time.

14.2. Reference token validation order

The following order is adopted from BEP-702 for the reference EVM binding. Each row describes business validation after the permitted call context, target existence, structural input decoding and static-write guard. The BSC target-sentinel check is profile-specific. Element checks explicitly listed inside a row occur at that position, rather than being moved ahead of every state read. [BEP702 3.6]

Entry pointBusiness-check order
transferContractPaused(TRANSFER) → InvalidReceiver → InvalidSender → PolicyForbids(TRANSFER_SENDER) → PolicyForbids(TRANSFER_RECEIVER) → InsufficientBalance
transferFromContractPaused(TRANSFER) → InvalidReceiver → InvalidSender → InsufficientAllowance → PolicyForbids(TRANSFER_EXECUTOR) (skipped when msg.sender == from) → PolicyForbids(TRANSFER_SENDER) → PolicyForbids(TRANSFER_RECEIVER) → InsufficientBalance
approveInvalidApprover → InvalidSpender; neither pause nor policy applies
mintContractPaused(MINT) → AccessControlUnauthorizedAccount → InvalidReceiver → PolicyForbids(MINT_RECEIVER) → Panic(0x11) on supply overflow → SupplyCapExceeded
batchMintContractPaused(MINT) → AccessControlUnauthorizedAccount → LengthMismatch → EmptyBatch → per recipient in array order: empty returndata for an address word with dirty high bytes, then the mint sequence from InvalidReceiver onward. A later recipient's failure is reported only if every earlier one passed
burnContractPaused(BURN) → AccessControlUnauthorizedAccount → InsufficientBalance → Panic(0x11) on supply underflow
seizeWithMemoContractPaused(SEIZE) → AccessControlUnauthorizedAccount → InvalidReceiver (zero to, or from == to) → InvalidSender → AccountNotSeizable (SEIZE_HOLDER authorizes from) → PolicyForbids(SEIZE_RECEIVER) → InsufficientBalance
pause/unpauseAccessControlUnauthorizedAccount → EmptyFeatureSet → empty returndata for a feature outside the enum
updateSupplyCapAccessControlUnauthorizedAccount → InvalidSupplyCap
updatePolicyAccessControlUnauthorizedAccount → UnsupportedPolicyType → PolicyNotFound
updateName/updateSymbol/updateContractURIAccessControlUnauthorizedAccount
updateExtraMetadataAccessControlUnauthorizedAccount → InvalidMetadataKey
permitInvalidApprover → ExpiredSignature → InvalidSigner → InvalidSpender (Section 5.7)
transferWithMemoFormat/transferFromWithMemoFormatInvalidFormatId, then the transfer/transferFrom sequence of the entry point — the transferFrom form is transferFrom whoever calls it, so a holder moving its own balance spends its self-approval
grantRole/revokeRole/setRoleAdminthe frozen-token guard, then the admin-role check, both as AccessControlUnauthorizedAccount; revokeRole then LastAdminCannotRenounce
renounceRoleAccessControlBadConfirmation → LastAdminCannotRenounce
renounceLastAdminAccessControlUnauthorizedAccount → NotSoleAdmin
updateMultiplierAccessControlUnauthorizedAccount → InvalidMultiplier
updateUIMultiplierAccessControlUnauthorizedAccount → InvalidMultiplier → EffectiveAtInPast → EffectiveAtTooFar → UIMultiplierUpdateExists
cancelUIMultiplierUpdateAccessControlUnauthorizedAccount → UIMultiplierUpdateDoesNotExist
announceAnnouncementInProgress → AccessControlUnauthorizedAccount → AnnouncementIdAlreadyUsed → InternalCallMalformed/InternalCallFailed, per call in order

In bootstrap, role gates and ordinary transfer-side policies are skipped only as described in Section 4.3. The final-administrator membership check, post-renunciation anti-resurrection rule, seizure policies, mint-recipient policy, balance/allowance checks and parameter checks remain. Memo variants inherit the underlying row; MemoFormat adds its format-ID check first.

The reference token dispatch order is delegated-call guard, nonzero-value guard, target-existence check, structural decoding, then static-write guard. Factory and registry write entry points place the static guard before decoding. A metered existence read can exhaust resources before later checks. The BSC source gives static-write refusal priority at its exit guard, with an exhausted budget otherwise overriding a method result. Each profile MUST publish adjacent-failure and resource-exhaustion vectors to remove ambiguity in its host mapping. [BEP702 3.2, 3.6, 3.14]

14.3. Error encodings and unresolved edges

The pinned BEP declares 56 unique custom-error signatures; InternalCallMalformed(bytes) is repeated in two interface sections and counts once. With the standard Panic(uint256) shape, the catalog contains 57 distinct error signatures. Overloaded PolicyNotFound() and PolicyNotFound(uint64) are different signatures. Appendix D preserves the declaration types, including enum lowering for selector calculation.

Reference arithmetic overflow uses Panic(0x11). Malformed ABI data and unknown selectors use empty returndata. Errors from nested initialization or announcement operations use the documented wrappers; an exceptional resource failure remains distinct from an ordinary business revert. Final ABI artifacts and byte-for-byte test results MUST establish all payloads and precedence. A method does not signal a documented failure by returning false.

15. Conformance and Validation

A conformance claim MUST identify the specification revision, execution binding, chain profile version, supported variants and exact implementation release. Full reference EVM conformance requires the shared token set plus the selected variant set, the corresponding factory/registry interfaces, and the reference semantics. A host port with a different encoding must declare the mapping and the limits of interoperability.

Concrete locations, storage roots, governance adapters and gas schedules may differ between chains when the profile declares them. Creator identity during initialization, post-initialization creation logging, source-exemption semantics, integer bounds and reference ABI identifiers are not silent per-chain options. A change to them requires an explicitly incompatible semantic/binding revision and migration analysis.

Appendix H provides implementation-neutral conformance cases. No target-client case has been executed as part of this revision. Calculated hash/address/signature fixtures do not demonstrate implementation agreement. The earlier review was static and reported an unbuildable checkout; it cannot be used as a passed client suite. [REVIEW]

A release MUST record exact inputs, expected and actual return/revert bytes, ordered logs, state/storage effects, resource use/refunds and the source revision under test. Tests MUST cover each adjacent failure pair in Section 14.2, rollback boundaries, profile reservation and fork activation. Where the network has independent clients, results SHOULD be compared across them against the same vectors; agreeing clients can still share the same error.

16. Chain Profiles and Release Requirements

Appendix A defines the required profile fields and separates remaining source-definition items from evidence still needed from implementers. A profile MUST be versioned, immutable once used for a release claim, and accompanied by checksummed ABI, layout, constants, vectors and deployment records. Changes to a live network follow that network's consensus-upgrade process.

No IANA registration is requested. This generic document allocates no universal singleton address or feature namespace. The BSC assignments remain available as a concrete reference, including the CA5F factory. Other chains MUST verify their own allocations, collision/reservation constraints and governance/bootstrap procedure.

A technical specification does not establish that a network is activated or that a particular build is production-ready. Deployment status requires network identity, activation evidence, authorized initialization transactions and release artifacts. The BSC source remains a Draft at the pinned revision used here.

17. References

17.1. Requirement language and adopted interfaces

The following references define the cited requirement language, interface semantics and algorithms. Host-specific adoption is limited to the execution binding declared in this document; an external standard does not assign a CAS20 deployment address or governance authority.

text
[RFC2119] Bradner, S. Key words for use in RFCs to Indicate
          Requirement Levels. BCP 14, RFC 2119, March 1997.
          https://www.rfc-editor.org/info/rfc2119
[RFC8174] Leiba, B. Ambiguity of Uppercase vs Lowercase in
          RFC 2119 Key Words. BCP 14, RFC 8174, May 2017.
          https://www.rfc-editor.org/info/rfc8174
[ERC20]   ERC-20 Token Standard.
          https://eips.ethereum.org/EIPS/eip-20
[ERC2612] ERC-2612 Permit Extension for EIP-20 Signed Approvals.
          https://eips.ethereum.org/EIPS/eip-2612
[EIP712]  EIP-712 Typed structured data hashing and signing.
          https://eips.ethereum.org/EIPS/eip-712
[ERC5267] ERC-5267 Retrieval of EIP-712 domain.
          https://eips.ethereum.org/EIPS/eip-5267
[ERC7572] ERC-7572 Contract-level metadata via contractURI().
          https://eips.ethereum.org/EIPS/eip-7572
[ERC7201] ERC-7201 Namespaced Storage Layout.
          https://eips.ethereum.org/EIPS/eip-7201
[ERC165] Standard Interface Detection.
         https://eips.ethereum.org/EIPS/eip-165
[ERC8056] Scaled UI Amount Extension for ERC-20 Tokens.
          https://eips.ethereum.org/EIPS/eip-8056

17.2. Source documents and provenance

[BEP702] BNB Chain, BEP-702: Compliant Asset Standard on BNB Smart Chain. Status: Draft. Retrieved 29 October 2026. The exact source below supplies the BSC reference and EVM declarations; its text is dedicated under CC0. It is not a report of client execution.

text
Repository: bnb-chain/BEPs
Path: BEPs/BEP-702.md
File commit:
0564c017a85f5708907b53023a8a3fe4fe7723fe
Git blob:
43bd8d1db4d5fbb2d46f0e97312a62ba28120d9a

https://github.com/bnb-chain/BEPs/blob/0564c017a85f5708907b53023a8a3fe4fe7723fe/BEPs/BEP-702.md

text
[REVIEW] CAS20 Technical Specification Draft 00 Review Comments.
         User-supplied static review, 21 October 2026.
         Reviewed Go source snapshot:
         7728f836a1fa073288997a63a861ec50b34accd0

The review reported merge-conflict markers in go.mod, version/version.go and core/vm/evm.go, and did not execute the client or compare it with Reth. Its explicit findings remain useful historical evidence. They do not override the reference choices of this generic Draft 02. Repository locators in that review are not evidence of a verified release checkout.

text
[DEV]    Developer technical specification for CAS20.
         Unversioned supplied source, including interface update.
[DESIGN] Earlier CAS20 design specification.
         Used for source continuity and explanatory structure.
[STYLE]  Charge Intent for HTTP Payment Authentication.
         Formatting reference only.
         draft-payment-intent-charge-00.txt

Appendix A Chain Profile and Release Checklist

A chain release requires the profile below, resolved source-definition items, and implementation evidence. A generic reference draft does not establish deployment conformance. The checklist distinguishes missing definitions from missing test results.

A.1. Required profile manifest

Publish a versioned manifest binding CAS20 to the host chain. Its fields must be concrete for an executable profile. Shared assignments do not merge network identities or activation histories.

Field groupRequired declaration
IdentityProfile/spec revisions and digests; network name, execution chain ID, and genesis identifier.
ExecutionHost execution revision; address/ABI representation; call-context and native-dispatch mapping.
ComponentsFactory, PolicyRegistry and ActivationRegistry addresses or host identities.
AddressingExact prefix and algorithm; recognized variants; occupation, collision and delegation behavior.
FeaturesExact identifiers for each logical feature; exact input bytes and derived bytes32 values when names are hashed.
StorageNamespace names, roots, offsets, packing, mappings, initialization writes and upgrade rules.
Account lifecycleExistence predicate; any code marker; nonce/native-balance rules; RPC introspection.
GovernanceAuthorized governance identity, appointment adapter, payload and replacement/event rules.
ActivationGenesis and upgrade paths, activation boundary, actual initial state and collision-audit evidence.
MeteringHost fork rules, dynamic charges, warmth/access lists, refunds, out-of-gas and resource limits.
SigningDomain version, execution chain-ID source and token address used by permit.
EvidenceABI/layout/vector digests; named implementation revisions; reproducible results and deployment evidence.

A chain ID does not derive addresses, prefix, feature names, namespaces, governance authority or metering. SDKs must use the manifest and published interfaces.

Within one profile, implementations must agree on storage and metering. Different chains may preserve shared semantics with different host bindings. Full BSC compatibility also requires the BSC-specific rules.

A.2. Remaining reference-definition items

BEP-702 closes the earlier broad argument/return gaps: Appendix D now supplies the current functions, enums, creation parameters, events and errors. The following narrower items still need an authoritative declaration or fixture. A release MUST resolve them consistently rather than relying on an implementation accident.

IDDefinition or decision required
D01 - Creation logsStandalone CAS20StablecoinEventParams type, including version width; original-params versus post-init metadata in CAS20Created; exact timing/payload of the automatic initial RoleGranted log.
D02 - MetadataRemaining symbol-validation and metadata input limits (the BEP layout accounts for an empty name); relative NameUpdated / EIP712DomainChanged ordering; no-op behavior for mutable setters not already specified.
D03 - Interface detectionComplete supported ERC-165 interface IDs and interface composition, with canonical declarations used to calculate them.
D04 - Schedule normalizationExact getter values immediately after cancellation and stored pending-field normalization on cancel/replacement; cancellation authority itself is established as OPERATOR_ROLE.
D05 - Policy boundariesAllocation-counter exhaustion rule; remaining policy-admin simultaneous-failure and no-op event details. Unknown policy-type authorization results are already specified in Section 8.4.
D06 - Execution artifactsMachine-readable ABI, storage/layout and decoding/resource vectors resolving every remaining host edge; apply the fixed Section 14 business order and identify any incompatible binding revision.

A.3. Evidence required from an implementation team

EvidenceWhat to provide
Buildable source baselineRepository/release, immutable commit, dependencies and build instructions for each implementation. Explain alignment with the three historical discrepancies in Appendix B.
Published artifactsChecksummed ABI, selectors/topics/errors, constants, complete layouts, profile manifest and known-answer vectors. An interface copied from a design document is not proof of implemented selectors.
Execution reportRun Appendix H plus profile-specific cases. Record actual return/revert bytes, logs, state effects, resource use and implementation revisions, including paired failure and rollback cases.
Consensus/upgrade evidenceNative namespace collision analysis, genesis and upgrade fixtures, historical-state compatibility, call-context rules and independent-client comparison where applicable.
Deployment recordNetwork/genesis identity, activation boundary, authorized governance installation, resulting administrator/feature state and transaction evidence. Do not infer live activation from example addresses.

CA5F remains the BSC factory assignment. Implementers must identify their target revision and supply the artifacts above; this document contains no passed client or deployment test report.

Appendix B BSC Reference Profile and Source Reconciliation

This appendix records BSC-specific assignments and differences between the supplied implementation review and BEP-702. It does not assign those values to every CAS20 deployment or certify either source as an executed release.

B.1. Reference profile assignments

The values below are the BSC reference assignments reported in BEP-702, with the GovHub address also recorded in the supplied implementation review. A deployment identifies its own network, profile revision and activation state. Reusing an address on another chain does not establish deployment, common state or asset equivalence. [BEP702 §§3.1–3.4, 3.15–3.17; REVIEW Q12]

Profile fieldBSC reference assignment
Factory0xca5f000000000000000000000000000000000000
Activation registry0x7020000000000000000000000000000000000001
PolicyRegistry0x7020000000000000000000000000000000000002
Governance adapterGovHub: 0x0000000000000000000000000000000000001007 updateParam("admin", value): value is exactly 20 bytes for a nonzero address.
Token address familyh = keccak256(abi.encode(creator, salt)) 0xca52 || zeroBytes(8) || variantByte || firstBytes(h, 9) creator: address; salt: bytes32; input length: 64 bytes.
Feature hash inputsbsc.policy_registry bsc.cas20_asset bsc.cas20_stablecoin
Storage namespacesbsc.cas20 bsc.cas20.asset bsc.cas20.stablecoin bsc.policy_registry bsc.activation_registry
Existence and activationToken and registry account sentinel: 0xEF. BEP-702 names the Jenner/jennerTime fork and genesis provisioning rules. Actual network activation is not established here.

A BSC release versions these assignments, layouts and fork rules together. A namespace or root change requires compatibility/migration analysis. This table is a profile summary, not a complete execution specification.

B.2. Observable source differences

Draft 02's EVM reference binding adopts the BEP-702 design choices below: creator context, creation logging after initCalls, and the HOLDER getter/hash. The earlier reviewed implementation reports incompatible behavior. These are normative choices of this reference revision, not a claim that the reviewed Go build already implements them. [REVIEW R05, R08, Q4–Q5; BEP702 §§3.4, 3.8]

RuleEarlier reviewed Go profileDraft 02 EVM reference binding
Bootstrap callerFactory is the caller during initCalls.Creator remains the caller during initCalls.
Creation eventCAS20Created precedes the automatic RoleGranted event and initCalls logs.CAS20Created follows successful initCalls.
Source seizure scopeSEIZE_EXEMPT_POLICY, with its own spelling hashed as the scope ID.SEIZE_HOLDER_POLICY, with its own spelling hashed as the scope ID.

Draft 02 fixes creator identity, post-initialization creation logging and the HOLDER getter/hash. Earlier behavior requires alignment or a distinct semantic revision. A host profile cannot silently change those choices. The two source-exemption identifiers have different selectors and hashes; no alias is established. Remaining creation-payload details are listed in A.2.

B.3. Status and evidence boundaries

The implementation review reports Go commit 7728f836a1fa073288997a63a861ec50b34accd0. It describes static source findings, unresolved merge-conflict markers, no executed Go tests and no Reth comparison. BEP-702 is a separate draft design source; its published interfaces, layout and execution rules do not demonstrate that this Go revision implements them.

Activation before decoding the opaque params blob does not settle when malformed outer ABI or initCalls-array structure fails. A profile must specify those decoding layers and their failure order separately. Complete event ordering, supported interface IDs, resource accounting, lifecycle edge cases and historical-state compatibility require their own definitions and evidence.

B.4. BSC host rules that remain profile-specific

BEP-702 routes the supported token family through native stateful precompiles, checks the account sentinel for initialized tokens, and rejects delegated/value-bearing/write-static calls as specified by its EVM call model. Unsupported variant addresses follow the declared ordinary-account routing path. Its physical layout is specified in BEP-702 Section 3.17; a BSC-conformance package must reproduce the complete layout and initialization behavior rather than only the namespace roots.

Its gas model charges dynamically for decoding, hashing, signatures, logs, account/storage access and internal dispatch using the selected EVM fork rules. An initCalls or announcement entry is charged for dispatch but executes in the outer native budget without a new call-depth frame or a new 63/64 gas reservation. Storage writes, refunds, access lists and reverted warm/cold state require exact profile fixtures. Native status alone does not pre-warm every CAS20 address. [BEP702 3.14]

The BSC appointment adapter requires GovHub as msg.sender, key "admin", and exactly 20 bytes for a nonzero address. Replacement is immediate; logs are AdminChanged then ParamChange. A 32-byte ABI word is invalid. [BEP702 3.15]

Appendix C Source Traceability and Interpretation

C.1. Evidence classes

Evidence classMeaning in this document
Normative reference choiceBehavior explicitly adopted by this Draft 02; profiles cannot silently change it while claiming the same binding.
BEP design declarationCurrent published Draft source, pinned in Section 17. Supplies EVM declarations and BSC design rules.
Historical source reviewStatic findings about the earlier reviewed Go commit; useful for discrepancies and inherited edge rules. No execution evidence.
Calculated fixtureIndependently recomputed cryptographic or arithmetic result; no target-client result implied.
Executed conformanceActual implementation/network results tied to commits and inputs. None were produced for this revision.

C.2. Clause-to-source mapping

Generic clausesPrimary source coverageTreatment
1-3; A; BBEP 3.1-3.3, 3.14-3.17Shared model plus explicit chain-profile assignments.
4; D.11; D.15BEP 3.4; REVIEW R05/Q3-Q4Current reference caller/log choices; historical differences preserved.
5.1-5.6; 7; 14BEP 3.6, 3.9-3.10; REVIEW Q11Typed common methods, no-op cases, pause/supply limits and failure order.
5.7; GBEP 3.11; ERC-2612/EIP-712/ERC-5267Exact domain/signing semantics; illustrative fixture retained.
5.8; 8.6; BBEP 3.6, 3.8; REVIEW R08/Q5Inverse source exemption; current HOLDER spelling is not an alias for historical EXEMPT.
6BEP 3.7; REVIEW R09/Q11Administrator lifecycle, distinct-member counting and precise terminal state.
8BEP 3.8; REVIEW R06/Q7Lists, composites, tolerant reads, strict bindings and query edge cases.
9; BBEP 3.15; REVIEW Q12Portable gate scope; chain-specific appointment adapter.
10-11BEP 3.12-3.13; REVIEW Q6Full Asset and Stablecoin method sets; arithmetic wording corrected.
12-16; E; HBEP 3.2, 3.6, 3.14-3.17, 6Deterministic host mapping and release evidence requirements.
DBEP Solidity declarations105 functions across services/variants, 34 events and 57 distinct error shapes including Panic.

C.3. Interpretations made explicit

The generic scope is an editorial restructuring requested for multi-chain implementation. It preserves the reference shared/variant behavior while parameterizing deployment and host integration. It does not infer that every chain uses 20-byte addresses or BSC governance.

The BEP precision sentence claiming at most one unit of round-trip loss is not adopted; the exact floor formulas and a counterexample are provided. Its broad immutable-token and uncapped-supply wording is narrowed to role-governance termination and the absolute 2^128-1 supply ceiling. Both the 64-account batch limit and the 2-4 composite-child bound are retained.

The unqualified statements that a query never reverts or that no native address starts warm are read within their execution context: malformed/disallowed/resource-exhausted calls still fail, and ordinary EVM warming rules still apply. Array-element validation follows the explicit method sequence. These qualifications prevent shorthand prose from contradicting the concrete execution contract.

Appendix D Public Interface Reference

This catalog separates portable shared behavior, variant interfaces, extension/compatibility groups and chain-profile services. It does not require every blockchain or token to expose all catalogued methods.

The typed declarations below are adopted requirements of this revision's EVM reference binding. Their pinned BEP-702 provenance is recorded separately; source declarations do not establish that the older reviewed checkout or a particular network implements them.

A full EVM token binding includes the shared interface and the complete selected Asset or Stablecoin interface. Extension and compatibility group labels do not make documented methods optional. A chain profile must publish supported variants, ABI artifacts, addresses and identifiers; non-EVM implementations explicitly map the same semantics to their native binding.

There are 105 current BEP function declarations across tokens and services. The review-reported SEIZE_EXEMPT_POLICY getter is recorded separately as a historical incompatible alternative, not as a 106th required method. The two source-exemption getter spellings are not aliases.

The BEP remains Draft and is not execution evidence. Source-level differences with the earlier Go review are recorded separately and must not be resolved by assuming implementation equivalence.

Across tokens and services, the reference contains 105 distinct methods: 54 shared token methods, 23 Asset methods, one Stablecoin method, five factory methods, 16 policy-registry methods and six activation-registry methods. Thus an Asset token exposes 77 reference methods and a Stablecoin token exposes 55; the service methods are separate interfaces. Governance adapters remain profile-specific.

D.1. Shared token queries

These are portable EVM declarations and belong to the complete shared reference interface, including permit-related queries.

OperationParameters and returnCaller / authority
name()No arguments. Return: string. Mutability: view.Any caller (read)
symbol()No arguments. Return: string. Mutability: view.Any caller (read)
decimals()No arguments. Return: uint8. Mutability: view.Any caller (read)
totalSupply()No arguments. Return: uint256. Mutability: view.Any caller (read)
balanceOf(account)account: address. Return: uint256. Mutability: view.Any caller (read)
allowance(owner, spender)owner: address; spender: address. Return: uint256. Mutability: view.Any caller (read)
nonces(owner)owner: address. Return: uint256. Mutability: view.Any caller (read)
DOMAIN_SEPARATOR()No arguments. Return: bytes32. Mutability: view.Any caller (read)
eip712Domain()No arguments. Return: ERC-5267 tuple (see typed declaration). Mutability: view.Any caller (read)
text
eip712Domain() returns (
  bytes1 fields, string name, string version,
  uint256 chainId, address verifyingContract,
  bytes32 salt, uint256[] extensions
)

D.2. Shared token operations

Amounts are raw units. The complete shared methods and the validation order specified in the main clauses are requirements of the reference EVM binding. These declarations do not establish deployment or native execution on a particular network.

OperationParameters and returnCaller / authority
transfer(to, value)to: address; value: uint256. Return: bool. Mutability: nonpayable.Caller spends its own balance; TRANSFER pause and sender/receiver policies apply.
transferFrom(from, to, value)from: address; to: address; value: uint256. Return: bool. Mutability: nonpayable.Spender with sufficient allowance; applicable pause and policy rules
approve(spender, value)spender: address; value: uint256. Return: bool. Mutability: nonpayable.Caller sets its own allowance; no token-balance, pause or policy gate.
transferWithMemo(to, value, memo)to: address; value: uint256; memo: bytes32. Return: bool. Mutability: nonpayable.Caller spends its own balance; TRANSFER pause and sender/receiver policies apply.
transferFromWithMemo(from, to, value, memo)from: address; to: address; value: uint256; memo: bytes32. Return: bool. Mutability: nonpayable.Spender with sufficient allowance; applicable pause and policy rules
mint(to, value)to: address; value: uint256. Return: no return value. Mutability: nonpayable.MINT_ROLE
mintWithMemo(to, value, memo)to: address; value: uint256; memo: bytes32. Return: no return value. Mutability: nonpayable.MINT_ROLE
burn(value)value: uint256. Return: no return value. Mutability: nonpayable.BURN_ROLE; burns caller balance
burnWithMemo(value, memo)value: uint256; memo: bytes32. Return: no return value. Mutability: nonpayable.BURN_ROLE; burns caller balance
permit(owner, spender, value, deadline, v, r, s)owner: address; spender: address; value: uint256; deadline: uint256; v: uint8; r: bytes32; s: bytes32. Return: no return value. Mutability: nonpayable.Any submitter with a valid owner signature
seizeWithMemo(from, to, value, memo)from: address; to: address; value: uint256; memo: bytes32. Return: bool. Mutability: nonpayable.SEIZE_ROLE; separate seizure pause and policy checks
SEIZE_ROLE()No arguments. Return: bytes32. Mutability: pure.Any caller (read)
SEIZE_RECEIVER_POLICY()No arguments. Return: bytes32. Mutability: view.Any caller (read)

D.3. Shared pause and configuration modules

The reference enum is TRANSFER=0, MINT=1, BURN=2, SEIZE=3. Solidity ABI encodes each enum as uint8 and enum arrays as uint8[]. These values and the reference role/scope identifiers are fixed by this binding; deployment feature keys remain profile assignments.

OperationParameters and returnCaller / authority
pausedFeatures()No arguments. Return: PausableFeature[]. Mutability: view.Any caller (read)
isPaused(feature)feature: PausableFeature. Return: bool. Mutability: view.Any caller (read)
pause(features)features: PausableFeature[]. Return: no return value. Mutability: nonpayable.PAUSE_ROLE
unpause(features)features: PausableFeature[]. Return: no return value. Mutability: nonpayable.UNPAUSE_ROLE
supplyCap()No arguments. Return: uint256. Mutability: view.Any caller (read)
updateSupplyCap(newCap)newCap: uint256. Return: no return value. Mutability: nonpayable.DEFAULT_ADMIN_ROLE
contractURI()No arguments. Return: string. Mutability: view.Any caller (read)
updateName(newName)newName: string. Return: no return value. Mutability: nonpayable.METADATA_ROLE
updateSymbol(newSymbol)newSymbol: string. Return: no return value. Mutability: nonpayable.METADATA_ROLE
updateContractURI(newURI)newURI: string. Return: no return value. Mutability: nonpayable.METADATA_ROLE
policyId(scope)scope: bytes32. Return: uint64. Mutability: view.Any caller (read)
updatePolicy(scope, policyId)scope: bytes32; policyId: uint64. Return: no return value. Mutability: nonpayable.DEFAULT_ADMIN_ROLE
TRANSFER_SENDER_POLICY()No arguments. Return: bytes32. Mutability: view.Any caller (read)
TRANSFER_RECEIVER_POLICY()No arguments. Return: bytes32. Mutability: view.Any caller (read)
TRANSFER_EXECUTOR_POLICY()No arguments. Return: bytes32. Mutability: view.Any caller (read)
MINT_RECEIVER_POLICY()No arguments. Return: bytes32. Mutability: view.Any caller (read)

D.4. Shared role queries and administration

The complete shared reference interface includes the listed role getters and administration methods. A supported variant includes its additional documented role; host mappings preserve these authority rules.

OperationParameters and returnCaller / authority
hasRole(role, account)role: bytes32; account: address. Return: bool. Mutability: view.Any caller (read)
getRoleAdmin(role)role: bytes32. Return: bytes32. Mutability: view.Any caller (read)
grantRole(role, account)role: bytes32; account: address. Return: no return value. Mutability: nonpayable.Administrator of the target role; role-freeze rules apply
revokeRole(role, account)role: bytes32; account: address. Return: no return value. Mutability: nonpayable.Administrator of the target role; role-freeze rules apply
renounceRole(role, callerConfirmation)role: bytes32; callerConfirmation: address. Return: no return value. Mutability: nonpayable.Role holder confirming its own address
setRoleAdmin(role, newAdminRole)role: bytes32; newAdminRole: bytes32. Return: no return value. Mutability: nonpayable.Administrator of the target role; role-freeze rules apply
renounceLastAdmin()No arguments. Return: no return value. Mutability: nonpayable.Sole DEFAULT_ADMIN_ROLE holder
DEFAULT_ADMIN_ROLE()No arguments. Return: bytes32. Mutability: pure.Any caller (read)
MINT_ROLE()No arguments. Return: bytes32. Mutability: pure.Any caller (read)
BURN_ROLE()No arguments. Return: bytes32. Mutability: pure.Any caller (read)
PAUSE_ROLE()No arguments. Return: bytes32. Mutability: pure.Any caller (read)
UNPAUSE_ROLE()No arguments. Return: bytes32. Mutability: pure.Any caller (read)
METADATA_ROLE()No arguments. Return: bytes32. Mutability: pure.Any caller (read)

D.5. Shared memo-format extension

Extension is a grouping label. Both methods are included in the complete shared EVM reference interface.

OperationParameters and returnCaller / authority
transferWithMemoFormat(to, value, memo, formatId)to: address; value: uint256; memo: bytes32; formatId: bytes32. Return: bool. Mutability: nonpayable.Caller spends its own balance; TRANSFER pause and sender/receiver policies apply.
transferFromWithMemoFormat(from, to, value, memo, formatId)from: address; to: address; value: uint256; memo: bytes32; formatId: bytes32. Return: bool. Mutability: nonpayable.Spender with sufficient allowance; applicable pause and policy rules

D.6. Asset scheduled UI multiplier module

These methods belong to the complete Asset reference interface. ABI uint256 widths do not relax the multiplier and timestamp bounds specified in Section 10.

OperationParameters and returnCaller / authority
uiMultiplier()No arguments. Return: uint256. Mutability: view.Any caller (read)
newUIMultiplier()No arguments. Return: uint256. Mutability: view.Any caller (read)
effectiveAt()No arguments. Return: uint256. Mutability: view.Any caller (read)
updateUIMultiplier(newMultiplier, effectiveAt)newMultiplier: uint256; effectiveAt: uint256. Return: no return value. Mutability: nonpayable.OPERATOR_ROLE
cancelUIMultiplierUpdate()No arguments. Return: no return value. Mutability: nonpayable.OPERATOR_ROLE
toUIAmount(raw)raw: uint256. Return: uint256. Mutability: view.Any caller (read)
fromUIAmount(ui)ui: uint256. Return: uint256. Mutability: view.Any caller (read)
balanceOfUI(a)a: address. Return: uint256. Mutability: view.Any caller (read)
totalSupplyUI()No arguments. Return: uint256. Mutability: view.Any caller (read)
MAX_UI_MULTIPLIER()No arguments. Return: uint256. Mutability: pure.Any caller (read)
supportsInterface(interfaceId)interfaceId: bytes4. Return: bool. Mutability: pure.Any caller (read)

The reference requires OPERATOR_ROLE for cancellation. supportsInterface returns bool, but the source does not enumerate its supported interface-ID values. The public effectiveAt argument is uint256; its reference validity limit remains 2^64-1.

D.7. Asset immediate multiplier compatibility

The current BEP explicitly includes all six methods. The complete Asset EVM binding includes them alongside the scheduled UI interface; the compatibility grouping does not authorize omission.

OperationParameters and returnCaller / authority
WAD_PRECISION()No arguments. Return: uint256. Mutability: pure.Any caller (read)
multiplier()No arguments. Return: uint256. Mutability: view.Any caller (read)
scaledBalanceOf(account)account: address. Return: uint256. Mutability: view.Any caller (read)
toRawBalance(scaledBalance)scaledBalance: uint256. Return: uint256. Mutability: view.Any caller (read)
toScaledBalance(rawBalance)rawBalance: uint256. Return: uint256. Mutability: view.Any caller (read)
updateMultiplier(newMultiplier)newMultiplier: uint256. Return: no return value. Mutability: nonpayable.OPERATOR_ROLE

D.8. Asset operations

Asset-only operations. A profile implementing the complete EVM Asset variant includes the documented methods.

OperationParameters and returnCaller / authority
OPERATOR_ROLE()No arguments. Return: bytes32. Mutability: pure.Any caller (read)
announce(internalCalls, id, description, uri)internalCalls: bytes[]; id: string; description: string; uri: string. Return: no return value. Mutability: nonpayable.OPERATOR_ROLE; enclosed calls retain their own authorization checks
isAnnouncementIdUsed(id)id: string. Return: bool. Mutability: view.Any caller (read)
batchMint(recipients, amounts)recipients: address[]; amounts: uint256[]. Return: no return value. Mutability: nonpayable.MINT_ROLE
extraMetadata(key)key: string. Return: string. Mutability: view.Any caller (read)
updateExtraMetadata(key, value)key: string; value: string. Return: no return value. Mutability: nonpayable.METADATA_ROLE

D.9. Stablecoin variant

Currency labels are issuer data. The Stablecoin variant has immutable six-decimal precision and an immutable, nonempty uppercase ASCII currency label, as required by Section 11.

OperationParameters and returnCaller / authority
currency()No arguments. Return: string. Mutability: view.Any caller (read)

D.10. Shared policy-service reference binding

The declarations provide a reusable EVM policy-service binding. Generic CAS20 does not require every chain to use the BEP singleton address, storage namespace or activation authority.

OperationParameters and returnCaller / authority
createPolicy(admin, policyType)admin: address; policyType: PolicyType. Return: uint64. Mutability: nonpayable.Any caller; the policy-service feature must be active
createPolicyWithAccounts(admin, policyType, accounts)admin: address; policyType: PolicyType; accounts: address[]. Return: uint64. Mutability: nonpayable.Any caller; the policy-service feature must be active
updateAllowlist(policyId, allowed, accounts)policyId: uint64; allowed: bool; accounts: address[]. Return: no return value. Mutability: nonpayable.Current policy administrator
updateBlocklist(policyId, blocked, accounts)policyId: uint64; blocked: bool; accounts: address[]. Return: no return value. Mutability: nonpayable.Current policy administrator
stageUpdateAdmin(policyId, newAdmin)policyId: uint64; newAdmin: address. Return: no return value. Mutability: nonpayable.Current policy administrator
finalizeUpdateAdmin(policyId)policyId: uint64. Return: no return value. Mutability: nonpayable.Nominated policy administrator
renounceAdmin(policyId)policyId: uint64. Return: no return value. Mutability: nonpayable.Current policy administrator
isAuthorized(policyId, account)policyId: uint64; account: address. Return: bool. Mutability: view.Any caller (read)
policyExists(policyId)policyId: uint64. Return: bool. Mutability: view.Any caller (read)
policyAdmin(policyId)policyId: uint64. Return: address. Mutability: view.Any caller (read)
pendingPolicyAdmin(policyId)policyId: uint64. Return: address. Mutability: view.Any caller (read)
createCompositePolicy(admin, policyType, children)admin: address; policyType: PolicyType; children: uint64[]. Return: uint64. Mutability: nonpayable.Any caller; the policy-service feature must be active
updateComposite(policyId, children)policyId: uint64; children: uint64[]. Return: no return value. Mutability: nonpayable.Current policy administrator
compositePolicyChildIds(policyId)policyId: uint64. Return: uint64[]. Mutability: view.Any caller (read)
MIN_COMPOSITE_CHILD_POLICIES()No arguments. Return: uint256. Mutability: view.Any caller (read)
MAX_COMPOSITE_CHILD_POLICIES()No arguments. Return: uint256. Mutability: view.Any caller (read)

D.11. Profile factory and recognition reference binding

Concrete factory locations and the reserved token prefix are profile assignments. This reference fixes Asset=0, Stablecoin=1, creation-struct version 1, creator identity during initialization, and CAS20Created after successful initCalls. An incompatible change requires a distinct binding revision.

OperationParameters and returnCaller / authority
createCAS20(variant, salt, params, initCalls)variant: Variant; salt: bytes32; params: bytes; initCalls: bytes[]. Return: address. Mutability: nonpayable.Any caller; the selected variant creation feature must be active
getCAS20Address(variant, creator, salt)variant: Variant; creator: address; salt: bytes32. Return: address. Mutability: view.Any caller (read)
isCAS20(account)account: address. Return: bool. Mutability: pure.Any caller (read)
isCAS20Initialized(token)token: address. Return: bool. Mutability: view.Any caller (read)
variantOf(token)token: address. Return: Variant. Mutability: pure.Any caller (read)

The factory argument params is bytes containing an ABI-encoded variant struct; it is not a Solidity tuple argument in createCAS20 itself. Section 4 fixes the creator as the initialization caller and places CAS20Created after initCalls. The different earlier implementation findings are historical incompatibilities documented in Appendix B.

D.12. Profile activation-service reference binding

Profile service, not a universal chain-governance API. BSC feature hashes and singleton addresses are confined to the BEP profile.

OperationParameters and returnCaller / authority
isActivated(feature)feature: bytes32. Return: bool. Mutability: view.Any caller (read)
checkActivated(feature)feature: bytes32. Return: no return value. Mutability: view.Any caller (read)
admin()No arguments. Return: address. Mutability: view.Any caller (read)
activate(feature)feature: bytes32. Return: no return value. Mutability: nonpayable.Configured activation administrator
deactivate(feature)feature: bytes32. Return: no return value. Mutability: nonpayable.Configured activation administrator

D.13. BEP governance reference binding

updateParam(string,bytes) is a BEP reference declaration. Other chains can appoint authorities through their own governance interface.

OperationParameters and returnCaller / authority
updateParam(key, value)key: string; value: bytes. Return: no return value. Mutability: nonpayable.BEP governance authority; other chains declare their own governance interface

D.14. Source-exemption reference and historical alternative

These alternatives implement the same semantic question: is the source exempt? They have different selectors and different bytes32 scope IDs and MUST NOT be presented as aliases or exposed together by implication.

The current EVM reference uses SEIZE_HOLDER_POLICY. The historical review instead reports SEIZE_EXEMPT_POLICY. Both ask whether a source is exempt, but their selectors and scope IDs differ; substituting one spelling changes calldata and policy bindings.

text
SEIZE_HOLDER_POLICY()
selector = 0xb279d311
scope ID
0x1497ab2b67ebb0a75dd9cdd6aec9f0e64620e6b87e911af7a088ac12e58d9ef2
SEIZE_EXEMPT_POLICY()
selector = 0xfeb346ec
scope ID
0xedb5da348cfb67af08746d3afd1be81034b50d5c8576f31aff688f39dfd540ed

SEIZE_HOLDER_POLICY() external view returns (bytes32) is the BEP reference declaration. The review establishes a bytes32 result for SEIZE_EXEMPT_POLICY(), but supplies no full mutability declaration; that name is historical evidence and is not a further current required method.

D.15. Factory creation types and variant payload

These typed structures and their field order are fixed by the reference EVM factory binding. The reference version is 1; reordering fields or adopting a different encoding requires an explicitly different binding revision.

text
enum Variant { ASSET, STABLECOIN }
enum PolicyType { BLOCKLIST, ALLOWLIST, UNION, INTERSECT }
enum PausableFeature { TRANSFER, MINT, BURN, SEIZE }

Enum values are the listed zero-based ordinals and encode as uint8 in the Solidity ABI. Their arrays encode as uint8[]. The four pause ordinals identify distinct bit positions; an enum value is not itself a bitmask.

text
struct CAS20AssetCreateParams {
    uint8 version;
    string name;
    string symbol;
    address initialAdmin;
    uint8 decimals;
}
struct CAS20StablecoinCreateParams {
    uint8 version;
    string name;
    string symbol;
    address initialAdmin;
    string currency;
}

The BEP sets version to 1, encodes the creation struct with abi.encode and passes the resulting bytes as params. CAS20Created carries an empty variantEventParams for Asset. For Stablecoin it describes abi.encode(CAS20StablecoinEventParams{version:1,currency}), but does not separately declare that event-payload struct or the version field width; the release ABI must supply that remaining detail.

D.16. Event declarations

These 34 distinct event declarations fix argument order, types and indexed fields for the reference binding. Variant and service events apply to their respective interfaces. Implementations must preserve the event order specified in the main clauses; remaining payload details and deployed behavior require the evidence listed in Appendix A.

ICAS20Factory events

EventExact reference declaration
CAS20Createdevent CAS20Created( address indexed token, Variant indexed variant, string name, string symbol, uint8 decimals, bytes variantEventParams );

ICAS20 events

EventExact reference declaration
Transferevent Transfer(address indexed from, address indexed to, uint256 value);
Approvalevent Approval(address indexed owner, address indexed spender, uint256 value);
Memoevent Memo(address indexed caller, bytes32 indexed memo);
MemoFormatDeclaredevent MemoFormatDeclared(address indexed declarer, bytes32 indexed memo, bytes32 indexed formatId);
NameUpdatedevent NameUpdated(address indexed updater, string newName);
SymbolUpdatedevent SymbolUpdated(address indexed updater, string newSymbol);
ContractURIUpdatedevent ContractURIUpdated();
Seizedevent Seized(address indexed caller, address indexed from, address indexed to, uint256 value);
RoleGrantedevent RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);
RoleRevokedevent RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);
RoleAdminChangedevent RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);
LastAdminRenouncedevent LastAdminRenounced(address indexed previousAdmin);
PolicyUpdatedevent PolicyUpdated(bytes32 indexed scope, uint64 oldPolicyId, uint64 newPolicyId);
Pausedevent Paused(address indexed updater, PausableFeature[] features);
Unpausedevent Unpaused(address indexed updater, PausableFeature[] features);
SupplyCapUpdatedevent SupplyCapUpdated(address indexed updater, uint256 previousCap, uint256 newCap);
EIP712DomainChangedevent EIP712DomainChanged();

IPolicyRegistry events

EventExact reference declaration
PolicyCreatedevent PolicyCreated(uint64 indexed policyId, address indexed creator, PolicyType policyType);
PolicyAdminStagedevent PolicyAdminStaged(uint64 indexed policyId, address indexed currentAdmin, address indexed pendingAdmin);
PolicyAdminUpdatedevent PolicyAdminUpdated(uint64 indexed policyId, address indexed previousAdmin, address indexed newAdmin);
AllowlistUpdatedevent AllowlistUpdated(uint64 indexed policyId, address indexed updater, bool allowed, address[] accounts);
BlocklistUpdatedevent BlocklistUpdated(uint64 indexed policyId, address indexed updater, bool blocked, address[] accounts);
CompositePolicyUpdatedevent CompositePolicyUpdated(uint64 indexed policyId, address indexed admin, uint64[] childPolicyIds);

ICAS20Asset events

EventExact reference declaration
MultiplierUpdatedevent MultiplierUpdated(uint256 multiplier);
Announcementevent Announcement(address indexed caller, string id, string description, string uri);
EndAnnouncementevent EndAnnouncement(string id);
ExtraMetadataUpdatedevent ExtraMetadataUpdated(string key, string value);
UIMultiplierUpdatedevent UIMultiplierUpdated(uint256 oldMultiplier, uint256 newMultiplier, uint256 effectiveAt);
UIMultiplierUpdateCancelledevent UIMultiplierUpdateCancelled(uint256 cancelledMultiplier, uint256 cancelledEffectiveAt);

IActivationRegistry events

EventExact reference declaration
FeatureActivatedevent FeatureActivated(bytes32 indexed feature, address indexed caller);
FeatureDeactivatedevent FeatureDeactivated(bytes32 indexed feature, address indexed caller);
AdminChangedevent AdminChanged(address indexed previousAdmin, address indexed newAdmin, address indexed caller);
ParamChangeevent ParamChange(string key, bytes value);

D.17. Error declarations

The reference declares 56 distinct custom-error signatures; adding Solidity Panic(uint256) yields 57. InternalCallMalformed(bytes) appears in both factory and Asset interfaces and is counted once. Distinguish PolicyNotFound() in the registry from PolicyNotFound(uint64) on a token, and Unauthorized() from Unauthorized(address). The reference EVM binding preserves the validation order in Section 14.2; other host mappings must preserve the specified semantics.

Native call-form profile errors

ErrorExact reference declaration
NonPayableerror NonPayable();
StaticCallNotAllowederror StaticCallNotAllowed();
DelegateCallNotAllowederror DelegateCallNotAllowed();

ICAS20Factory errors

ErrorExact reference declaration
InvalidVarianterror InvalidVariant();
UnsupportedVersionerror UnsupportedVersion(uint8 version, Variant variant);
MissingRequiredFielderror MissingRequiredField(string field);
InvalidCurrencyerror InvalidCurrency(string code);
InvalidDecimalserror InvalidDecimals(uint8 decimals);
TokenAlreadyExistserror TokenAlreadyExists(address token);
InitCallFailederror InitCallFailed(uint256 index);
InternalCallMalformederror InternalCallMalformed(bytes call);

ICAS20 errors

ErrorExact reference declaration
AccessControlUnauthorizedAccounterror AccessControlUnauthorizedAccount(address account, bytes32 neededRole);
AccessControlBadConfirmationerror AccessControlBadConfirmation();
LastAdminCannotRenounceerror LastAdminCannotRenounce();
NotSoleAdminerror NotSoleAdmin();
InvalidSendererror InvalidSender(address sender);
InvalidReceivererror InvalidReceiver(address receiver);
InvalidApprovererror InvalidApprover(address approver);
InvalidSpendererror InvalidSpender(address spender);
InsufficientBalanceerror InsufficientBalance(address sender, uint256 balance, uint256 needed);
InsufficientAllowanceerror InsufficientAllowance(address spender, uint256 allowance, uint256 needed);
InvalidSupplyCaperror InvalidSupplyCap(uint256 currentSupply, uint256 proposedCap);
SupplyCapExceedederror SupplyCapExceeded(uint256 cap, uint256 attempted);
ContractPausederror ContractPaused(PausableFeature feature);
EmptyFeatureSeterror EmptyFeatureSet();
PolicyForbidserror PolicyForbids(bytes32 policyScope, uint64 policyId);
PolicyNotFounderror PolicyNotFound(uint64 policyId);
UnsupportedPolicyTypeerror UnsupportedPolicyType(bytes32 policyScope);
AccountNotSeizableerror AccountNotSeizable(address account);
ExpiredSignatureerror ExpiredSignature(uint256 deadline);
InvalidFormatIderror InvalidFormatId();
InvalidSignererror InvalidSigner(address signer, address owner);

IPolicyRegistry errors

ErrorExact reference declaration
Unauthorizederror Unauthorized();
PolicyNotFounderror PolicyNotFound();
IncompatiblePolicyTypeerror IncompatiblePolicyType();
BatchSizeTooLargeerror BatchSizeTooLarge(uint256 maxBatchSize);
ZeroAddresserror ZeroAddress();
NoPendingAdminerror NoPendingAdmin();
ChildPoliciesOutsideOfRangeerror ChildPoliciesOutsideOfRange();
InvalidChildPolicyerror InvalidChildPolicy(uint64 childPolicyId);

ICAS20Asset errors

ErrorExact reference declaration
InvalidMultipliererror InvalidMultiplier();
EffectiveAtInPasterror EffectiveAtInPast(uint256 effectiveAt);
EffectiveAtTooFarerror EffectiveAtTooFar(uint256 effectiveAt);
UIMultiplierUpdateExistserror UIMultiplierUpdateExists(uint256 effectiveAt);
UIMultiplierUpdateDoesNotExisterror UIMultiplierUpdateDoesNotExist();
AnnouncementIdAlreadyUsederror AnnouncementIdAlreadyUsed(string id);
AnnouncementInProgresserror AnnouncementInProgress();
InternalCallMalformederror InternalCallMalformed(bytes call);
InternalCallFailederror InternalCallFailed(bytes call);
EmptyBatcherror EmptyBatch();
LengthMismatcherror LengthMismatch(uint256 leftLen, uint256 rightLen);
InvalidMetadataKeyerror InvalidMetadataKey();

IActivationRegistry errors

ErrorExact reference declaration
FeatureNotActivatederror FeatureNotActivated(bytes32 feature);
AlreadyActivatederror AlreadyActivated(bytes32 feature);
Unauthorizederror Unauthorized(address caller);
UnknownParamerror UnknownParam(string key, bytes value);
InvalidValueerror InvalidValue(string key, bytes value);

Panic(uint256) is a Solidity built-in and is not redeclared inside an interface. The reference identifies arithmetic panic code 0x11 for checked arithmetic failures. Native call-form errors are profile bindings; a non-EVM host must map call contexts and failures explicitly rather than inherit EVM opcodes.

Appendix E Execution and State Model

Native implementations may use different languages and helper APIs. They must preserve public semantics, state isolation and their selected execution binding.

E.1. Execution context

Context fieldRequired meaning
TargetThe token or registry whose state is accessed; no cross-token state substitution.
CallerOrdinary immediate caller; creator during reference initCalls; initiator preserved inside announce.
PrivilegeInternal bootstrap context only, with Section 4.3 limits; never caller-controlled ABI data.
Static/delegated/valueHost call context used to enforce the reference call-form restrictions.
Time / networkBlock timestamp and chain identity used for schedule and signing rules.
Journal / resourcesAtomic state/log rollback plus deterministic metering and exhaustion.

Execution code may be shared, but token state remains isolated. Policy administration belongs to the referenced registry policy, not the consuming token.

E.2. Logical state and invariants

State familyInvariant
Raw ledgerTransfers preserve supply; mint and burn change supply by the same amount as their balance effects; no negative balance/allowance.
Supply0 <= totalSupply <= supplyCap <= 2^128-1.
RolesDistinct DEFAULT_ADMIN_ROLE membership count; no governance resurrection after terminal renunciation.
PauseIndependent transfer/mint/burn/seizure bits; no incidental effect on approvals or reads.
Policy bindingsOnly recognized scopes and existing IDs; source-exemption authorization is inverted.
PermitNonce advances only on success; current domain uses actual token, chain and name.
Asset multiplierRaw ledger unchanged; current/scheduled values within bounds; time controls effective reads.
AnnouncementsID single-use only on successful complete execution; nested announcement prohibited.

E.3. Rollback and bounded privilege

A nested operation that fails must roll back all earlier changes in its enclosing atomic creation, announcement or batch. An implementation may skip a redundant internal check only after an enclosing operation has enforced the same requirement; it may not remove recipient policy, supply, balance or other retained guards.

Appendix F Operational Examples

These informative sequences use the reference EVM interfaces. Resolve service addresses, chain ID and constants from the selected profile. Symbolic accounts are placeholders. Each write is submitted by the authority named in the surrounding text; examples do not establish deployment or legal status.

F.1. Create and bind a reusable blocklist

With policy writes active, create a blocklist administered by complianceAdmin. Retain the complete returned uint64 policy ID, including its type byte. The token default administrator binds the list to ordinary transfer sender and receiver scopes; the policy administrator then updates membership.

text
blockedId = registry.createPolicy(complianceAdmin, BLOCKLIST)

// Token DEFAULT_ADMIN_ROLE holder:
token.updatePolicy(token.TRANSFER_SENDER_POLICY(), blockedId)
token.updatePolicy(token.TRANSFER_RECEIVER_POLICY(), blockedId)

// complianceAdmin:
registry.updateBlocklist(blockedId, true, [restrictedHolder])

The listed account fails those transfer policies, but its balance is unchanged. Every token using the same policy observes later membership changes. Approvals, ordinary caller burning and seizure have their own rules; this binding does not impose a universal account freeze.

F.2. Qualified holders and authorized intermediaries

Create separate allowlists for holders, brokers and custodians. Bind holder authorization to ordinary sender/receiver scopes, broker authorization to the executor scope and custodian authorization to mint recipients. The administrator of each list adds its eligible accounts.

text
holdersId = registry.createPolicy(onboardingAdmin, ALLOWLIST)
brokersId = registry.createPolicy(brokerAdmin, ALLOWLIST)
custodyId = registry.createPolicy(custodyAdmin, ALLOWLIST)

token.updatePolicy(token.TRANSFER_SENDER_POLICY(), holdersId)
token.updatePolicy(token.TRANSFER_RECEIVER_POLICY(), holdersId)
token.updatePolicy(token.TRANSFER_EXECUTOR_POLICY(), brokersId)
token.updatePolicy(token.MINT_RECEIVER_POLICY(), custodyId)

An intermediary still needs allowance from the source holder. A holder calling transferFrom on its own balance still needs self-allowance; only the executor-policy check is skipped. Minting to a custodian does not automatically qualify it to send later if the holder policies reject it.

F.3. Deliberate seizure configuration

Assume blockedId is a blocklist containing the intended source and recoveryId is an allowlist containing the recovery destination. A blocklisted source is not authorized by blockedId, so using that list as the source-exemption policy makes the listed source eligible for seizure while unlisted accounts remain exempt.

text
// Token DEFAULT_ADMIN_ROLE holder:
token.updatePolicy(token.SEIZE_HOLDER_POLICY(), blockedId)
token.updatePolicy(token.SEIZE_RECEIVER_POLICY(), recoveryId)

// SEIZE_ROLE holder; all other guards still apply:
token.seizeWithMemo(source, recovery, rawAmount, memo)

The destination must be nonzero, distinct from source and authorized; the source must be nonzero, non-exempt and sufficiently funded; SEIZE must be unpaused. No allowance is consumed. Successful logs are Transfer, Memo, Seized. A subsequent burn by the recipient requires its own BURN_ROLE and unpaused BURN feature.

F.4. Scheduled valuation and disclosed issuance

For an Asset with six decimals and multiplier 10^18, an OPERATOR_ROLE holder schedules 1.2 x 10^18 at a future timestamp no greater than 2^64-1. When that multiplier is effective, 120,000,000 UI base units convert to 100,000,000 raw base units. The raw amount is what mint/batchMint accepts.

text
token.updateUIMultiplier(1200000000000000000, effectiveTime)

// Evaluate at the execution block, after maturation:
rawToMint = token.fromUIAmount(120000000)
// Expected under these inputs: 100000000 raw base units.

An authorized caller holding both OPERATOR_ROLE and MINT_ROLE may encode batchMint([custodian], [rawToMint]) inside announce(internalCalls, id, description, uri). Recipient policy, MINT pause and supply limits remain effective. Any failure rolls back the disclosure and ID consumption as well as the mint. The UI multiplier is an issuer valuation convention, not a protocol price guarantee.

F.5. Publish a memo format

Publish the exact format-definition bytes and compute their Keccak-256 hash as formatId. Use a new definition and new ID for each revision. A recipient can retrieve those bytes and verify the ID. The memo may commit to a separately shared payload, random salt, domain and formatId under the application convention.

text
formatId = keccak256(definitionBytes)
// SDK convention; concrete payload/domain types are published:
memo = keccak256(abi.encode(domain, formatId, salt, payload))
token.transferWithMemoFormat(receiver, rawAmount, memo, formatId)

The chain requires only a nonzero formatId and the normal transfer checks. It records the declaration after Memo without fetching or checking the definition/payload. An indexer relates the declaration to the transfer by ordered log position, not by assuming every memo hash is unique. [BEP702 3.6]

Appendix G Constants and Deterministic Vectors

This appendix distinguishes portable algorithms and interface constants from profile-assigned values. A profile-bound example is a known-answer fixture, not a required address allocation for every chain. Calculations were independently checked; no target implementation or deployed network was executed. Keccak-256 means Ethereum Keccak-256. [EIP712] [ERC2612] [ERC5267] [ERC7201]

G.1. Profile-parameterized derivation rules

Let P denote the parameters resolved from the published chain profile: tokenPrefix is its address-derivation prefix, featureNames maps logical features to exact UTF-8 names, and storageNamespaces maps state families to exact namespace names. For the 20-byte reserved-prefix algorithm, the prefix is ten bytes. The ABI enum retains Asset=0 and Stablecoin=1. The creator is the immediate factory caller; the salt is bytes32. No implicit chain ID, factory address, creation parameters or initialization calls are added to the hash input.

text
h = keccak256(abi.encode(address creator, bytes32 salt))
token = P.tokenPrefix || uint8(variant) || firstBytes(h, 9)
len(P.tokenPrefix) = 10; len(token) = 20

Feature and storage names are separate profile inputs. Use exact UTF-8 bytes; do not derive them from a network display name or chain ID. No universal replacement string for the BSC names is assigned by this document.

text
featureId(P, k) = keccak256(UTF8(P.featureNames[k]))
N = P.storageNamespaces[k]
root(P, k) = keccak256(abi.encode(
    uint256(keccak256(bytes(N))) - 1))
    & ~bytes32(uint256(0xff))

The storage expression applies to a profile adopting ERC-7201. Each such profile also supplies the complete field layout and encodings. Changing an existing namespace changes its keys and requires a declared migration. The same prefix and address preimage may produce the same token address on different chains; this conveys no common issuer, state or backing.

G.2. Portable arithmetic and interface identifiers

Deployment allocation and gas rules do not alter the selected CAS20 revision's raw-unit arithmetic. Products use checked uint256 arithmetic before division, and each conversion rounds down. Raw balances and raw supply remain authoritative.

text
WAD_PRECISION = 1000000000000000000
1 <= multiplier <= 340282366920938463463374607431768211455
0 <= rawSupply <= cap <= 2^128 - 1
now < scheduledTime <= 18446744073709551615
ui  = floor(checked_uint256(raw * multiplier) / 10^18)
raw = floor(checked_uint256(ui * 10^18) / multiplier)

The following role and policy identifiers belong to the declared interface revision, not to a chain-name namespace. DEFAULT_ADMIN_ROLE is zero; the other values hash their exact displayed names. [DEV] [BEP702]

text
DEFAULT_ADMIN_ROLE()
0x0000000000000000000000000000000000000000000000000000000000000000
MINT_ROLE()
0x154c00819833dac601ee5ddded6fda79d9d8b506b911b3dbd54cdb95fe6c3686
BURN_ROLE()
0xe97b137254058bd94f28d2f3eb79e2d34074ffb488d042e3bc958e0a57d2fa22
SEIZE_ROLE()
0x3469b8b0d89e9604f8510ed143f74a8336d22955d4f83e23bf53d9414e27f432
PAUSE_ROLE()
0x139c2898040ef16910dc9f44dc697df79363da767d8bc92f2e310312b816e46d
UNPAUSE_ROLE()
0x265b220c5a8891efdd9e1b1b7fa72f257bd5169f8d87e319cf3dad6ff52b94ae
METADATA_ROLE()
0x6bd6b5318a46e5fff572d5e4258a20774aab40cc35ac7680654b9081fcc82f80
OPERATOR_ROLE()
0x97667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b929
TRANSFER_SENDER_POLICY() = keccak256("TRANSFER_SENDER_POLICY")
0xb81736c875ab819dd97f59f2a6542cfb731ad52b4ae15a6f24df2fb02b0327f5
TRANSFER_RECEIVER_POLICY() = keccak256("TRANSFER_RECEIVER_POLICY")
0x8a4b3fa2d8b921852bc0089c6ef0958aa6961897be36fd731330fe2cd23f8363
TRANSFER_EXECUTOR_POLICY() = keccak256("TRANSFER_EXECUTOR_POLICY")
0x10be5173aff2a44e748bd9acd8b19fe34689581398a9db7ba2fb671e786ff7d8
MINT_RECEIVER_POLICY() = keccak256("MINT_RECEIVER_POLICY")
0xa0d5ae037e66a09119acf080a1d807abb9b6d03b6b9130eb19f7c1e6bdb8ffc8
SEIZE_HOLDER_POLICY() = keccak256("SEIZE_HOLDER_POLICY")
0x1497ab2b67ebb0a75dd9cdd6aec9f0e64620e6b87e911af7a088ac12e58d9ef2
SEIZE_RECEIVER_POLICY() = keccak256("SEIZE_RECEIVER_POLICY")
0xbf15b19caf5c77422c038bc25f26b8b815c3a14f6d04c6616076b81bcfe07b3d

An older reviewed snapshot used a different seizure-scope identifier. Its hash remains historical evidence and is not an alias for SEIZE_HOLDER_POLICY. Integrations must use the getters and identifiers of their selected protocol revision.

G.3. BSC profile example: feature and storage values

The exact values below instantiate the profile inputs with the BSC assignments retained from the supplied review. They are useful known-answer examples; another chain publishes its own bindings. Their spelling is byte-significant. The five calculated roots also agree with the published BEP-702 namespace table. This comparison does not verify a deployed state layout. [REVIEW] [BEP702]

text
keccak256("bsc.policy_registry")
0xcc84b168b7eedbce699f3234b0a635f610f4aa826d72cc6a19f5b9a264557edf
keccak256("bsc.cas20_stablecoin")
0x397796e401b7a4d873181dea7977d9e27050faf36d281f9dc858416a405d2b75
keccak256("bsc.cas20_asset")
0xaad5cc684994ec8b24b61a18b11c81e15b4e634dc316384aecaa401ee0744e83
bsc.cas20
0x562aafeb82006b6968827b59606253289ba8bc22c7d434d71765d5b3a068af00
bsc.cas20.asset
0xff1f981cfcfd1795c7002397f3fa439537651c7544b1d579931b62466060ae00
bsc.cas20.stablecoin
0xd88f59ff5f54ab199d582c5de9fd2a11ddf31b4380c891c97fe80c42868a1600
bsc.policy_registry
0x2e7731329603a38e578303ba37c039549397ad42853922c474dfc3cb33d7b000
bsc.activation_registry
0xa8970030726ea4c1e5fe64bf3ba11683da0b59f818265a7369e5570e9fc0bd00

G.4. BSC profile example: deterministic address

This example uses P.tokenPrefix=0xca520000000000000000. It preserves the original creator and bytes32 salt so its derived bytes remain unchanged. Standard ABI encoding makes the preimage exactly 64 bytes, including twelve leading zero bytes on the creator word. The chain ID is absent from this address calculation. [REVIEW]

text
creator
0x0000000000000000000000000000000000c4ea70
salt
0x0000000000000000000000000000000000000000000000000000000000000001
hash input word 1: address creator
0x0000000000000000000000000000000000000000000000000000000000c4ea70
hash input word 2: bytes32 salt
0x0000000000000000000000000000000000000000000000000000000000000001
h = keccak256(abi.encode(creator, salt))
0xa542db4a50a50f09ea020e792f9d4f58fed96b4fa29d878d33b9e2d30a412853
firstBytes(h, 9)
0xa542db4a50a50f09ea
token = 0xca52 || zeroBytes(8) || variant || firstBytes(h, 9)
Asset, variant = 0x00
0xca52000000000000000000a542db4a50a50f09ea
Stablecoin, variant = 0x01
0xca52000000000000000001a542db4a50a50f09ea

Both addresses are twenty bytes; their variant is byte index 10 and their fingerprint occupies the final nine bytes. A different profile prefix changes the addresses. These outputs do not attest to deployment or cross-chain asset identity.

G.5. Portable permit types and domain binding

Concatenate adjacent quoted fragments with no intervening bytes. For this revision, the four-field domain binds the current token name, version "1", current execution chain ID and token address. The type hashes are portable; each concrete separator is bound to its inputs. A returned zero salt is excluded from this domain type. [EIP712] [ERC2612] [ERC5267]

text
domainType =
  "EIP712Domain(string name,string version,uint256 chainId,"
  "address verifyingContract)"
permitType =
  "Permit(address owner,address spender,uint256 value,"
  "uint256 nonce,uint256 deadline)"
DOMAIN_TYPEHASH = keccak256(bytes(domainType))
0x8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f
PERMIT_TYPEHASH = keccak256(bytes(permitType))
0x6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9
D = keccak256(abi.encode(
    DOMAIN_TYPEHASH, keccak256(bytes(name)),
    keccak256(bytes("1")), chainId, token))
S = keccak256(abi.encode(
    PERMIT_TYPEHASH, owner, spender, value, nonce, deadline))
digest = keccak256(0x1901 || D || S)
eip712Domain() selector = 0x84b0196e
permit(address,address,uint256,uint256,uint8,bytes32,bytes32)
permit selector = 0xd505accf
EIP712DomainChanged() topic0
0x0a6387c9ea3628b88a633bb4f3b151770f70085117a15f9bf3787cda53f13d31

eip712Domain returns (bytes1 fields, string name, string version, uint256 chainId, address verifyingContract, bytes32 salt, uint256[] extensions). The reported fixed values are fields=0x0f, version="1", zero salt, and an empty extensions array. EIP712DomainChanged has no arguments or indexed fields; its log data is empty. [ERC5267] [REVIEW]

G.6. Preserved illustrative signed permit fixture

This fixture deliberately retains the exact earlier inputs: public test private key 1, chain ID 97, and the Asset example from G.4. The chain ID is a test-domain input, not a network deployment claim. The signature uses secp256k1, deterministic RFC-6979 HMAC-SHA256 nonces and low-s normalization. Test key 1 is public and has no production use.

text
public test private key
0x0000000000000000000000000000000000000000000000000000000000000001
InputValue
nameCAS20 Test Asset
version1
chainId97
verifyingContract0xca52000000000000000000a542db4a50a50f09ea
owner0x7e5f4552091a69125d5dfcb7b8c2659029395bdf
spender0x000000000000000000000000000000000000beef
value1000000
nonce0
deadline2000000000
execution timestamp1900000000
text
keccak256(bytes(name))
0xcb1d7ffe1b8fc4844ad6b9d948e860c54739051f67da5f8b3f92b45021210cb7
keccak256(bytes("1"))
0xc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6
D: domain separator
0x2235b1d3b52ee14bbb7655c2c316689fa23c3618a8982baff4c84c272e3783a0
S: Permit struct hash
0x7ead82e1424610018658794a5f973318d77e60681cf23a3b251a78472d55e450
digest = keccak256(0x1901 || D || S)
0xe1bd0fe6dc40216a36d7da8c55deb4723c14f84776ddec1bae72befc16f51ac6
v = 28
r
0x8e19ee82ff8514acf0045e14b5366658ae857f5c3de62517a32107d88074437e
s
0x2fc0fa077c05b850669691f8ee1d0c81298ca61284397a254c89a1bea606f5d4

The following calldata is exactly 228 bytes: a four-byte selector followed by seven 32-byte ABI words. Concatenate the hexadecimal bytes in order; omit labels, spaces, newlines, and display prefixes. Words 1-7 encode owner, spender, value, deadline, v, r, and s respectively.

text
selector: 0xd505accf
1: 0x0000000000000000000000007e5f4552091a69125d5dfcb7b8c2659029395bdf
2: 0x000000000000000000000000000000000000000000000000000000000000beef
3: 0x00000000000000000000000000000000000000000000000000000000000f4240
4: 0x0000000000000000000000000000000000000000000000000000000077359400
5: 0x000000000000000000000000000000000000000000000000000000000000001c
6: 0x8e19ee82ff8514acf0045e14b5366658ae857f5c3de62517a32107d88074437e
7: 0x2fc0fa077c05b850669691f8ee1d0c81298ca61284397a254c89a1bea606f5d4

Expected semantic success assumes the same initialized token, domain, owner nonce 0, the stated execution time, and sufficient gas. Allowance becomes 1000000, the owner nonce becomes 1, Approval(owner, spender, 1000000) is emitted, and the standard permit call returns empty data. Reuse after nonce consumption or execution after the deadline is expected to revert. These expectations require execution against the target clients.

Changing the prefix changes the token address and therefore this signing domain. Changing the chain ID, name or version also requires a newly calculated domain and signature. A fixture supplied to another profile must be regenerated from that profile's inputs; these bytes cannot be relabeled as its conformance result.

Appendix H Conformance Case Register

The cases below are a minimum release register, not a report of executed tests. Each result is parameterized by a complete chain profile and named implementation revision. All target-implementation execution statuses in this document are Not run. Calculated Appendix G fixtures have been checked independently.

For each case, record profile/spec digests, implementation commit, chain/fork/time, pre-state, caller and input bytes; expected and actual returns or reverts; ordered logs; resource/refund effects; post-state and reproducible execution instructions. Extend the cases for the supported variants and host-specific reservation/upgrade paths. Resolve Appendix A definitions before treating dependent cases as fully specified.

V01. Profile identity and addressing

Execution status: Not run. Binding: declared chain profile.

Inputs: Use a complete profile, fixed creator/salt and both variants. Recompute the Section 3.3 address algorithm.

Expected: Exactly 64 hash-input bytes, 20 output bytes and the declared prefix. Only the variant byte changes between the two variant outputs. Alternative address bindings have their own vectors.

V02. Occupancy and initialized recognition

Execution status: Not run. Binding: declared chain profile.

Inputs: Try an unused address, occupied address, supported uninitialized target and unknown variant; include balance-only accounts where the profile permits them.

Expected: No occupied token is overwritten. Recognition does not imply initialization. Routing, balance preservation and errors match the profile.

V03. Creator identity during initialization

Execution status: Not run. Binding: declared chain profile.

Inputs: Create a token with initCalls containing caller-dependent approve and role assignment; capture all logs and final state.

Expected: Caller-owned effects use creator identity under Draft 02. Initialization logs precede CAS20Created. Automatic role-log and metadata payload match the finalized D01 fixture.

V04. Initialization rollback and privilege limits

Execution status: Not run. Binding: declared chain profile.

Inputs: Run a successful early initCall followed by a failing call or resource exhaustion. Test pause, mint recipient, supply cap and seizure policy failures.

Expected: All creation effects and logs revert. Internal privilege never bypasses retained checks and cannot be requested by later public calls.

V05. Zero administrator and final renunciation

Execution status: Not run. Binding: declared chain profile.

Inputs: Create with initialAdmin=0 and grant an administrator during setup; separately renounce the sole administrator, then attempt role mutation.

Expected: Bootstrap can establish an administrator. Terminal renunciation cannot be reversed. Retained operational roles and independent policies remain effective.

V06. Transfer, self-allowance and no-ops

Execution status: Not run. Binding: declared chain profile.

Inputs: Exercise zero/self transfers; transferFrom where caller=from with and without self-allowance; finite and maximum allowance.

Expected: Applicable address/policy/pause checks remain. Self-allowance is required. Finite consumption emits no extra Approval; maximum allowance is unchanged.

V07. Supply, cap and caller burn

Execution status: Not run. Binding: declared chain profile.

Inputs: Mint at/beyond cap and 2^128-1; set a cap below supply; burn as authorized/unauthorized caller.

Expected: Exact bounds and Section 14 error order hold. Mint/burn supply changes equal balance changes; ordinary burn affects only caller balance.

V08. Permit fixture and boundary failures

Execution status: Not run. Binding: declared chain profile.

Inputs: Run Appendix G fixture and vary nonce, deadline equality, v, s, owner, spender, chain ID and token address.

Expected: Valid permit sets allowance, consumes one nonce and emits Approval. Invalid cases follow the reference error order with no committed nonce/allowance effect.

V09. Memo format

Execution status: Not run. Binding: declared chain profile.

Inputs: Use zero and nonzero format IDs with valid and invalid transfers, including self-transferFrom and repeated memo bytes.

Expected: Zero format ID fails first with InvalidFormatId. Success logs Transfer, Memo, MemoFormatDeclared; declarations are associated by position.

V10. Role administration and last-admin errors

Execution status: Not run. Binding: declared chain profile.

Inputs: Grant an existing role, revoke an absent role, set an unchanged admin relation, and remove the last default administrator by each path.

Expected: No duplicate membership event/count. Same-admin setter emits RoleAdminChanged. Ordinary last removal fails; renounceLastAdmin checks role before sole-member count.

V11. Independent pause features

Execution status: Not run. Binding: declared chain profile.

Inputs: Pause/unpause each feature and duplicates; test empty/invalid enum input and operations unrelated to the selected feature.

Expected: Only selected bits change. Approvals/permit/reads remain available. TRANSFER and SEIZE pause are independent. Error order matches Section 14.

V12. Policy reads and strict bindings

Execution status: Not run. Binding: declared chain profile.

Inputs: Query all uncreated type tags and invalid tags; query both sentinels before first policy creation; bind an absent policy.

Expected: Empty BLOCKLIST/INTERSECT authorize true; ALLOWLIST/UNION and invalid type authorize false. Sentinels exist. Absent/invalid-type IDs cannot be bound.

V13. Policy batches and administrator transfer

Execution status: Not run. Binding: declared chain profile.

Inputs: Update 64 and 65 accounts; test type/admin/existence failures; nominate, cancel, accept and renounce policy administration.

Expected: Batch bound and validation order hold. Staging preserves current control; acceptance is by nominee; renunciation clears current/pending authority as specified.

V14. Composite policy validation

Execution status: Not run. Binding: declared chain profile.

Inputs: Use 1, 2, 4 and 5 children, duplicates, sentinels, composites and missing children in several positions.

Expected: Count is 2-4 with duplicates counted. All existence checks precede eligibility checks. Only ordinary simple children accepted; no partial update.

V15. Source exemption and seizure

Execution status: Not run. Binding: declared chain profile.

Inputs: Exercise all four source-exemption/receiver truth-table combinations, default bindings, both relevant pauses, zero/self addresses and insufficient balance.

Expected: Default source binding blocks seizure. Only non-exempt source plus authorized receiver can pass policies. Supply/allowance unchanged; logs Transfer, Memo, Seized.

V16. Activation scope and unappointed control

Execution status: Not run. Binding: declared chain profile.

Inputs: Start with no admin/features; try zero and nonzero caller mutation, then valid appointment/toggles and deactivation.

Expected: Unappointed registry authorizes nobody. Creation/registry writes gated; every existing-token method remains independent of feature activation.

V17. Multiplier arithmetic and floor loss

Execution status: Not run. Binding: declared chain profile.

Inputs: Use multiplier bounds, arbitrary uint256 inputs and the raw=9, multiplier=10^17 counterexample.

Expected: Zero/over-bound multiplier rejected. Overflow before division fails with Panic(0x11). Counterexample converts 9 to 0 and back to 0; raw ledger unchanged.

V18. Schedule boundaries and cancellation

Execution status: Not run. Binding: declared chain profile.

Inputs: Schedule at now, now+1 and 2^64; attempt a second live schedule; read before/at/after activation and cancel in each state.

Expected: Only strictly future timestamps <=2^64-1 accepted. Maturation emits no event and ignores token pause. effectiveAt retains its past value; only a live schedule is cancellable by OPERATOR_ROLE.

V19. Immediate multiplier override

Execution status: Not run. Binding: declared chain profile.

Inputs: Apply updateMultiplier with no schedule, a live schedule and a matured schedule; capture getters and logs.

Expected: Record cleared and active value replaced. Live cancellation log occurs only for a live schedule, before MultiplierUpdated and UIMultiplierUpdated.

V20. Announcements and batch issuance

Execution status: Not run. Binding: declared chain profile.

Inputs: Run empty and nonempty disclosures, repeated IDs, recursive announce, malformed inner calls and a late failing recipient.

Expected: Caller identity and inner roles preserved. ID marked before execution but rolled back on failure. Success logs bracket inner operations; failed bundles commit no partial issuance.

V21. Variant limits and interface coverage

Execution status: Not run. Binding: declared chain profile.

Inputs: Check both creation structures, version, Asset decimals, Stablecoin currency, all selected variant selectors and supportsInterface IDs.

Expected: Reference widths/order and immutable variant fields match ABI. Stablecoin does not expose Asset methods. Advertised interface IDs match the published artifact.

V22. Call forms and layered decoding

Execution status: Not run. Binding: declared chain profile.

Inputs: Exercise CALL/STATICCALL/delegated/value-bearing calls, unknown selectors, malformed outer data and malformed array elements.

Expected: Reference call-form errors, empty decoding reverts and method-local element checks occur at the declared stages. Unauthorized static writes do not commit state.

V23. Adjacent business failures

Execution status: Not run. Binding: declared chain profile.

Inputs: For every Section 14.2 row, construct inputs failing each pair of adjacent conditions; include bootstrap exceptions.

Expected: Earlier applicable condition wins exactly as specified. Error selector/arguments are byte-for-byte consistent across selected implementations.

V24. Storage, gas and rollback

Execution status: Not run. Binding: declared chain profile.

Inputs: Compare complete layout fixtures, dynamic strings, warm/cold accesses, refunds, internal dispatch and exhaustion at each metered stage.

Expected: State roots/storage, gas/refunds and failure rollback match the chain profile. No assumed flat method fee or implicit native-address warmth.

V25. Governance and network activation

Execution status: Not run. Binding: declared chain profile.

Inputs: Execute the profile appointment adapter with wrong caller, key, payload and valid values; run genesis/upgrade activation fixtures.

Expected: Only declared authority succeeds. Values, ordered logs and feature state match the profile. Deployment identity and actual activation evidence are recorded.

V26. Cross-chain and cross-binding limits

Execution status: Not run. Binding: declared chain profile.

Inputs: Repeat sample inputs under a changed chain ID, token address or address-binding profile.

Expected: Derivation changes only according to its declared inputs. Permit domain changes with chain/token. No cross-chain asset/authority equivalence is inferred.

Back to top
CAS20