Skip to main content

get_sender_policy_ids

Function get_sender_policy_ids 

Source
fn get_sender_policy_ids(
    provider: &mut impl StateProvider,
    fee_token: Address,
    spec: TempoHardfork,
    cache: &mut AddressMap<Vec<u64>>,
) -> Option<Vec<u64>>
Expand description

Returns the set of policy IDs that can affect fee_payer authorization for a token.

For simple policies the set contains just the policy ID. For compound policies (TIP-1015) it contains both the compound root and the sender sub-policy, since fee transfer authorization checks fee_payer via AuthRole::Sender. recipient_policy_id and mint_recipient_policy_id are excluded — they govern other roles and cannot invalidate a fee_payer’s transactions.