Skip to content

Commit

Permalink
goat-sdk-wallet-web3 v0.1.1 (#210)
Browse files Browse the repository at this point in the history
* Downgrade web3 to 6.20.3

* Fix root project paths

* Wallet web3 v0.0.1

* Update lock files
  • Loading branch information
karimodm authored Jan 10, 2025
1 parent 66a63c3 commit 684e74e
Show file tree
Hide file tree
Showing 7 changed files with 1,193 additions and 629 deletions.
6 changes: 4 additions & 2 deletions python/examples/langchain/web3/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from langchain.agents import AgentExecutor, create_structured_chat_agent
from langchain.hub import pull
from web3 import Web3
from web3.middleware import SignAndSendRawMiddlewareBuilder
from web3.middleware.signing import construct_sign_and_send_raw_middleware
from eth_account.signers.local import LocalAccount
from eth_account import Account

Expand All @@ -26,7 +26,9 @@

account: LocalAccount = Account.from_key(private_key)
w3.eth.default_account = account.address # Set the default account
w3.middleware_onion.inject(SignAndSendRawMiddlewareBuilder.build(account), layer=0) # type: ignore
w3.middleware_onion.add(
construct_sign_and_send_raw_middleware(account)
) # Add middleware

# Initialize LLM
llm = ChatOpenAI(model="gpt-4o-mini")
Expand Down
742 changes: 490 additions & 252 deletions python/examples/langchain/web3/poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion python/examples/langchain/web3/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ python = "^3.12"
langchain = "^0.3.2"
langchain-openai = "^0.2.14"
python-dotenv = "^1.0.1"
web3 = "^7.6.1"
web3 = "^6.20.3"
goat-sdk = "^0.1.0"
goat-sdk-wallet-evm = "^0.1.0"
goat-sdk-wallet-web3 = "^0.1.0"
Expand Down
177 changes: 108 additions & 69 deletions python/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry.group.dev.dependencies]
ruff = "^0.8.6"
goat-core = { path = "src/goat/core/", develop = true }
goat-plugin-coingecko = { path = "src/goat/plugins/coingecko/", develop = true }
goat-plugin-erc20 = { path = "src/goat/plugins/erc20/", develop = true }
goat-sdk = { path = "src/goat-sdk/", develop = true }
goat-sdk-plugin-coingecko = { path = "src/plugins/coingecko/", develop = true }
goat-sdk-plugin-erc20 = { path = "src/plugins/erc20/", develop = true }

[tool.ruff]
line-length = 120
Expand Down
Loading

0 comments on commit 684e74e

Please sign in to comment.