Module utils

Source

Structs§

PermissionInfo

Functions§

check_fee_hits_min_rent
extract_bid_from_submit_bid_ix
Extracts the bid paid from a SubmitBid instruction.
get_matching_submit_bid_instructions
Performs instruction introspection to retrieve a vector of SubmitBid instructions in the current transaction. If permission_info is specified, only instructions with matching permission and router accounts are returned.
handle_bid_payment
inspect_permissions_in_tx
Performs instruction introspection on the current transaction to query SubmitBid instructions that match the specified permission and router. Returns the number of matching instructions and the total fees paid to the router. The config_router and express_relay_metadata accounts passed in permission_info are assumed to have already been validated. Note these are not validated in this function.
perform_fee_splits
Performs fee splits on a bid amount. Returns amount to pay to router and amount to pay to relayer.
transfer_lamports
transfer_lamports_cpi
validate_fee_split