HTSAdapterLib Constants
HTS_ADAPTER_STORAGE_SLOT
keccak256(abi.encode(uint256(keccak256("lattice.storage.HTSAdapter")) - 1)) & ~bytes32(uint256(0xff)).
bytes32 constant HTS_ADAPTER_STORAGE_SLOT = 0x91b64afeea686e80e2bda212862c0850ed3389288ac3f914b1109537d6e3f500;ERC165_MAP_IHTSADAPTER_SLOT
0x37ae8968 is type(IHTSAdapter).interfaceId.
keccak256(abi.encode(bytes4(0x37ae8968), 0x9ca7f3e2e2bfb15fdf072b85dde92837cddacee6cf2f6b38cd06c9457c1c4200)).
bytes32 constant ERC165_MAP_IHTSADAPTER_SLOT = 0x0785670462ca582bde40afa31cf7989a7c25557d842b1003652c1ca6b4044d81;HTS_MANAGER_ROLE
Role allowed to associate / dissociate the diamond and create tokens it will treasury.
bytes32 constant HTS_MANAGER_ROLE = keccak256("HTS_MANAGER_ROLE");HTS_OPERATOR_ROLE
Role allowed to move the diamond's HTS balances and mint / burn its tokens.
bytes32 constant HTS_OPERATOR_ROLE = keccak256("HTS_OPERATOR_ROLE");HTS_SYSTEM_CONTRACT
The Hedera Token Service system contract (HIP-206). Has no bytecode; must never be delegatecalled.
address constant HTS_SYSTEM_CONTRACT = 0x0000000000000000000000000000000000000167;HTS_KEY_ADMIN
HTS TokenKey.keyType bits: admin (1) | supply (16).
uint256 constant HTS_KEY_ADMIN = 1;HTS_KEY_SUPPLY
uint256 constant HTS_KEY_SUPPLY = 16;HTS_DEFAULT_AUTO_RENEW_PERIOD
Default auto-renew period (90 days) — the value hiero-contracts' helper injects when none is given.
int64 constant HTS_DEFAULT_AUTO_RENEW_PERIOD = 7_776_000;