Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Generate Privy wallet security policy rules from natural language and submit them for on-chain user approval.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
__init__.py
1"""2Wallet Skill — Multi-chain wallet (EVM + Solana)3Balances, transfers, signing, policy management.4Delegates to /app/tools/wallet for core functions.5"""6import logging7from typing import List89logger = logging.getLogger(__name__)101112def register(api) -> List[str]:13"""Register all wallet tools with the Agent framework."""14registered = []1516try:17from .wallet import (18WalletInfoTool,19WalletBalanceTool,20WalletSolBalanceTool,21WalletGetAllBalancesTool,22WalletTransferTool,23WalletSignTransactionTool,24WalletSignTool,25WalletSignTypedDataTool,26WalletTransactionsTool,27WalletSolTransferTool,28WalletSolSignTransactionTool,29WalletSolSignTool,30WalletSolTransactionsTool,31WalletGetPolicyTool,32WalletProposePolicyTool,33)3435tools = [36WalletInfoTool(),37WalletBalanceTool(),38WalletSolBalanceTool(),39WalletGetAllBalancesTool(),40WalletTransferTool(),41WalletSignTransactionTool(),42WalletSignTool(),43WalletSignTypedDataTool(),44WalletTransactionsTool(),45WalletSolTransferTool(),46WalletSolSignTransactionTool(),47WalletSolSignTool(),48WalletSolTransactionsTool(),49WalletGetPolicyTool(),50WalletProposePolicyTool(),51]5253for tool in tools:54api.register_tool(tool)55registered.append(tool.name)5657except Exception as e:58logger.error(f"Failed to register wallet tools: {e}", exc_info=True)5960return registered61