From adf1d541857803ad79a1622041c62299eee79ec3 Mon Sep 17 00:00:00 2001 From: stubbsta Date: Wed, 21 Jan 2026 15:25:00 +0200 Subject: [PATCH] Add comments to refer to helper function descriptions --- tools/token_management/interactions.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/token_management/interactions.py b/tools/token_management/interactions.py index 49ad5b7..b4d7c3b 100644 --- a/tools/token_management/interactions.py +++ b/tools/token_management/interactions.py @@ -22,6 +22,10 @@ w3 = Web3(Web3.HTTPProvider(RPC_URL)) contract = w3.eth.contract(address=Web3.to_checksum_address(TOKEN_CONTRACT_PROXY_ADDRESS), abi=TOKEN_ABI) +# Contract interaction helpers. +# For usage/examples and descriptions, see the argparse CLI section under the +# "main guard" at the bottom of this file: `if __name__ == "__main__":`. + def get_balance(address): balance = contract.functions.balanceOf(Web3.to_checksum_address(address)).call() decimals = contract.functions.decimals().call()