setup_cctp_whitelisting
Documentation for eth_defi.cctp.whitelist.setup_cctp_whitelisting function.
- setup_cctp_whitelisting(web3, guard, cctp_deployment, owner)
Whitelist CCTP contracts in a guard for cross-chain transfers.
Calls the guard’s
whitelistCCTP()andwhitelistCCTPDestination()functions to enable cross-chain USDC transfers.- Parameters
web3 (web3.main.Web3) – Web3 connection
guard (web3.contract.contract.Contract) – Guard contract (TradingStrategyModuleV0 or similar)
cctp_deployment (eth_defi.cctp.whitelist.CCTPDeployment) – CCTP deployment configuration
owner (Union[eth_typing.evm.HexAddress, str]) – Address of the guard owner (typically the Safe)
- Returns
List of transaction hashes
- Return type
list[hexbytes.main.HexBytes]