Skip to main contentModule role
Source use crate::cmd::send::SendTxArgs; ๐ use crate::tempo::print_payload; ๐ use crate::tempo::tempo_provider; ๐ use crate::tx::SendTxOpts; ๐ use crate::tx::TxParams; ๐ use alloy_ens::NameOrAddress; ๐ use alloy_primitives::Address; ๐ use alloy_primitives::B256; ๐ use alloy_primitives::keccak256; ๐ use alloy_provider::Provider; ๐ use alloy_signer::Signer; ๐ use alloy_sol_types::SolCall; ๐ use eyre::Result; ๐ use eyre::WrapErr; ๐ use foundry_cli::opts::RpcOpts; ๐ use serde_json::json; ๐ use std::fmt; ๐ use std::str::FromStr; ๐ use tempo_alloy::TempoNetwork; ๐ use tempo_contracts::precompiles::IRolesAuth; ๐
- Tip20Role
- A TIP-20 role identifier, parsed from a role name or a raw 32-byte hash.
- RoleUpdate ๐
- Whether a role membership update grants or revokes the role.
- DEFAULT_ADMIN_ROLE ๐
- Name of the root admin role, whose identifier is the zero hash.
- HASHED_ROLES ๐
- Names of the TIP-20 roles whose identifier is the keccak256 hash of the name.
- ensure_role_admin ๐
- Fails early when
sender does not hold the admin role of role, instead of submitting a
transaction the precompile rejects with a bare Unauthorized(). - has_role ๐
- Prints whether
account holds role on token. - update ๐
- Grants or revokes
role for account on token.