pub struct BridgeAuthorization {
pub bridge_address: [u8; 20],
pub name: String,
pub authorized_tokens: Vec<TokenId>,
pub max_mint_per_tx: Option<u128>,
pub max_burn_per_tx: Option<u128>,
pub daily_mint_limit: Option<u128>,
pub daily_burn_limit: Option<u128>,
pub enabled: bool,
/* private fields */
}Expand description
Authorization record for a bridge that may call crosschainMint/crosschainBurn.
Fields§
§bridge_address: [u8; 20]20-byte bridge address (EVM-style).
name: StringHuman-readable name of the bridge.
Token IDs this bridge may mint/burn. Empty means all tokens.
max_mint_per_tx: Option<u128>Maximum amount that can be minted in a single transaction.
max_burn_per_tx: Option<u128>Maximum amount that can be burned in a single transaction.
daily_mint_limit: Option<u128>Maximum cumulative mint amount per 24-hour window.
daily_burn_limit: Option<u128>Maximum cumulative burn amount per 24-hour window.
enabled: boolWhether this authorization is currently active.
Auto Trait Implementations§
impl !Freeze for BridgeAuthorization
impl !RefUnwindSafe for BridgeAuthorization
impl Send for BridgeAuthorization
impl Sync for BridgeAuthorization
impl Unpin for BridgeAuthorization
impl UnsafeUnpin for BridgeAuthorization
impl UnwindSafe for BridgeAuthorization
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more