Skip to content

Commit 709f5f9

Browse files
authored
Merge pull request #84 from pattern-tech/refactor/ai-v2
feat: add "solana" provider to ToolRegistry and clean up test constants
2 parents 66ed43a + ebcbc2b commit 709f5f9

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

src/agentflow/tool/hub.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ class ToolRegistery:
1515
"chain_scan",
1616
"evm_moralis",
1717
"solana_moralis",
18+
"solana"
1819
]
1920

2021
_tool_selector = None

test/providers/test_solana_tools.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,14 @@
99

1010
# Test constants
1111
solana_wallet_address = "79hptMY3E6JWvU4dDGQCUT5hDncG4XbyPGyJQXVgUMSd"
12-
solana_token_address = "DKTfwG6EJmEhVyJopLz895BmS9PY8BRNFCNex1Fvp8Je"
12+
solana_token_address = "DKTfwG6EJmEhVyJopLz895BmS9PY8BRNFCNex1Fvp8Je"
1313
solana_nft_address = "7887a9bb00df7cf53080564fa55c2dc720bba44a6ee1b1b9776e6baecdba32c2"
1414
# Example transaction hash
1515
solana_transaction_hash = "4WitbbbytbqsQch7VZfg4SHcgTo6qRw984Q5uEQ5DvdRjg5KCw3VqkBRnggAGZVw6M7kXZsCvdKHq6RPk4YDpAJw"
1616
solana_collection_id = "degods" # Example collection ID
1717
solana_block_number = 180000000 # Example block number
18-
solana_market_address = "8BnEgHoWFysVcuFFX7QztDmzuH8r5ZFvyP3sYwn1XTh6" # Example market address
18+
# Example market address
19+
solana_market_address = "8BnEgHoWFysVcuFFX7QztDmzuH8r5ZFvyP3sYwn1XTh6"
1920

2021

2122
@log_method
@@ -540,4 +541,4 @@ def test_program_list():
540541
test_market_volume()
541542

542543
# Program endpoint tests
543-
test_program_list()
544+
test_program_list()

0 commit comments

Comments
 (0)