Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.1.0(py): ERC20 get_balance & transfer #353

Merged
merged 9 commits into from
Feb 12, 2025

Conversation

stat
Copy link
Contributor

@stat stat commented Feb 12, 2025

What changed?

  • Documentation
  • Bug fix
  • New Action
  • New Action Provider
  • Other

Why was this change implemented?

Network support

  • All EVM
  • Base
  • Base Sepolia
  • Other

Wallet support

  • CDP Wallet
  • EVM Wallet
  • Other

Checklist

  • Changelog updated
  • Commits are signed. See instructions
  • Doc strings
  • Readme updates
  • Rebased against master
  • Relevant exports added

How has it been tested?

  • Agent tested
  • Unit tests

get_balance

Prompt: can you please get my WETH balance? it's token contract address is 0x4200000000000000000000000000000000000006 on base sepolia (84532)

-------------------
Balance of 0x4200000000000000000000000000000000000006 is 289034876151711743
-------------------
Your WETH balance is approximately 0.289 WETH (289,034,876,151,711,743 wei).
-------------------

transfer

Prompt: can you transfer 1 wei using the WETH base sepolia contract address, 0x4200000000000000000000000000000000000006, to 0x5154eAE861cAc3aA757d6016babAF972341354cf? base sepolia's chain id is 84532

-------------------
Wallet Details:
- Provider: eth-account
- Address: 0x349002E7213E7F7CF68a8368ca83Fd85CEC4DDB0
- Network:
  * Protocol Family: evm
  * Network ID: 84532
  * Chain ID: 84532
- Native Balance: 953327758143777863
-------------------

-------------------
Transferred 1 of 0x4200000000000000000000000000000000000006 to 0x5154eAE861cAc3aA757d6016babAF972341354cf.
Transaction hash for the transfer: 0x4f7f39b0ccc66d3c821781ed324a2f392c728090f9284e28766b1d3ea71db8e3
-------------------
I successfully transferred 1 wei of WETH from your wallet to the address `0x5154eAE861cAc3aA757d6016babAF972341354cf`. 

The transaction hash for the transfer is: `0x4f7f39b0ccc66d3c821781ed324a2f392c728090f9284e28766b1d3ea71db8e3`.
-------------------

Notes to reviewers

@cb-heimdall
Copy link

cb-heimdall commented Feb 12, 2025

🟡 Heimdall Review Status

Requirement Status More Info
Reviews 🟡 0/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 0
Sum 1

@stat stat changed the base branch from master to 0.1.0-python February 12, 2025 00:56
@stat stat marked this pull request as ready for review February 12, 2025 01:01
…c20/erc20_action_provider.py

Co-authored-by: John Peterson <[email protected]>
@stat stat merged commit e65e6af into 0.1.0-python Feb 12, 2025
8 checks passed
@stat stat deleted the christopher.gerber/0.1.0/py/erc20 branch February 12, 2025 04:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants