-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
feat: Add Treasure Plugin #1247
Open
karelvuong
wants to merge
19
commits into
elizaOS:develop
Choose a base branch
from
karelvuong:treasure-plugin
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
+390
−0
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bump viem to 2.21.55 to include treasure and treasureTopaz
karelvuong
force-pushed
the
treasure-plugin
branch
from
December 20, 2024 03:50
5cdfdda
to
2eaa6cb
Compare
odilitime
added
Needs Testing
Plugin_new
Mark PRs that are a new plugin
needs_documentation
labels
Dec 20, 2024
karelvuong
force-pushed
the
treasure-plugin
branch
from
December 23, 2024 17:37
2eaa6cb
to
4c658d7
Compare
…into treasure-plugin
…into treasure-plugin
h/t abstract
@odilitime would love your eyes on this 🙏 - similar basic implementation to other ZKsync chains like Abstract, Era, etc. |
will be reviewing |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Relates to:
Adds Treasure support for Eliza agents.
Risks
Low
Background
What does this PR do?
Treasure is a gaming-centric L2 rollup built on ZKsync. This PR adds support for Eliza to interact with the Treasure mainnet, with logic/implementation borrowed from #1225 and #1128.
Initially, only the
transfer
function has been supported with additional features to come to hook into the Treasure Development Kit (TDK), Magicswap, and other Treasure platform features.What kind of change is this?
Feature
Documentation changes needed?
My changes do not require a change to the project documentation.
Testing
Where should a reviewer start?
Spin up an agent with the
treasure
plugin + reviewplugin-treasure
.Detailed testing steps
.env
, should set the value forTREASURE_ADDRESS
(public address for the agent account),TREASURE_PRIVATE_KEY
(private key for the same account), andTREASURE_RPC_URL
as https://rpc.treasure.lol.To test the transfer function properly, this address needs tokens. Treasure Bridge can be used to bridge MAGIC directly from
arb1
to an address ontreasure
.Transaction: 0x45759cf3e76d26610154a094c87572fbd7f5ef909f62c4ea13f7defb0d87cf0b"
The tx hash can be checked on the Treasure Block Explorer (https://treasurescan.io/)