Skip to content

Commit 9ebe591

Browse files
fix(ra-tls-client): ruff fix
1 parent 72f883e commit 9ebe591

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/flare_ai_kit/agent/ecosystem_tools_wrapper.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ async def check_balance(address: str) -> float:
2323
return await flare.check_balance(address)
2424

2525

26-
@adk.tool
26+
@adk.tool
2727
async def check_connection() -> bool:
2828
"""
2929
Check the connection status to the configured RPC endpoint.
@@ -40,7 +40,7 @@ async def check_connection() -> bool:
4040
return await flare.check_connection()
4141

4242

43-
@adk.tool
43+
@adk.tool
4444
async def build_transaction(
4545
function_call: AsyncContractFunction, from_addr: ChecksumAddress
4646
) -> TxParams | None:
@@ -53,7 +53,7 @@ async def build_transaction(
5353
return await flare.build_transaction(function_call, from_addr)
5454

5555

56-
@adk.tool
56+
@adk.tool
5757
async def sign_and_send_transaction(tx: TxParams) -> str | None:
5858
"""
5959
Sign and send a transaction to the network.
@@ -76,7 +76,7 @@ async def sign_and_send_transaction(tx: TxParams) -> str | None:
7676
return await flare.sign_and_send_transaction(tx)
7777

7878

79-
@adk.tool
79+
@adk.tool
8080
async def create_send_flr_tx(
8181
from_address: str, to_address: str, amount: float
8282
) -> TxParams:
@@ -106,7 +106,7 @@ async def create_send_flr_tx(
106106
# --- FTSO Protocol ---
107107

108108

109-
@adk.tool
109+
@adk.tool
110110
async def get_ftso_latest_price(feed_name: str) -> float:
111111
"""
112112
Retrieves the latest price for a single feed.
@@ -136,7 +136,7 @@ async def get_ftso_latest_price(feed_name: str) -> float:
136136
return await ftso.get_latest_price(feed_name)
137137

138138

139-
@adk.tool
139+
@adk.tool
140140
async def get_ftso_latest_prices(feed_names: list[str]) -> list[float]:
141141
"""
142142
Retrieves the latest prices for multiple feeds within the same category.
@@ -168,7 +168,7 @@ async def get_ftso_latest_prices(feed_names: list[str]) -> list[float]:
168168
# --- Explorer ---
169169

170170

171-
@adk.tool
171+
@adk.tool
172172
async def get_contract_abi(contract_address: str) -> list[dict[str, str]]:
173173
"""
174174
Asynchronously get the ABI for a contract from the Chain Explorer API.
@@ -202,7 +202,7 @@ async def get_contract_abi(contract_address: str) -> list[dict[str, str]]:
202202
# --- Social: X (Twitter) ---
203203

204204

205-
@adk.tool
205+
@adk.tool
206206
async def post_to_x(content: str) -> bool:
207207
"""Posts a message to X (Twitter)."""
208208
from flare_ai_kit.social.settings import SocialSettings
@@ -221,7 +221,7 @@ async def post_to_x(content: str) -> bool:
221221
# --- Social: Telegram ---
222222

223223

224-
@adk.tool
224+
@adk.tool
225225
async def send_telegram_message(chat_id: str, message: str) -> bool:
226226
"""
227227
Sends a message to a Telegram chat.

0 commit comments

Comments
 (0)