Functions§
- cancel_
withdrawal - Cancels a withdrawal request, returning the withheld amount to the available balance.
- confirm_
withdrawal - Confirms a successful withdrawal by updating the necessary balances.
- get_
available_ balance - Retrieves the total available balance for a user.
- get_
canister_ balance - Retrieves the total balance available to a specific canister.
- get_
remitted_ balance - Retrieves the remitted balance for a given account and amount.
- hash_
remittance_ parameters - Hashes the parameters needed for a remittance transaction.
- only_
whitelisted_ dc_ canister - Ensures the caller is a whitelisted DC canister, otherwise panics. This function checks if the caller’s principal ID is in the list of allowed DC canisters.
- update_
balance - Updates the balance for a specific account in a DC canister within the remittance mapping.
- update_
canister_ balance - Updates the canister’s balance for a specific token.
- validate_
dc_ remittance_ data - Validates remittance data for processing by a DC canister.
- validate_
pdc_ remittance_ data - Validates remittance data for processing by a PDC.
- validate_
remittance_ data - Validates remittance data based on whether the caller is a PDC or not.