feat: add ntf-starter and nft-generator #2283
Closed
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
#2282 Implementation of Agent NFT feature for agent data management, ownership, and usage.
Risks
Low, DO NOT affect the original agent startup method.
Background
What does this PR do?
Implements Agent NFT functionality following ERC-7857 standard to:
What kind of change is this?
Features (non-breaking change which adds functionality)
Documentation changes needed?
My changes require a change to the project documentation.
Added Agent NFT feature documentation.
Testing
Where should a reviewer start?
Detailed testing steps
Configure environment variables:
ZEROG_RPC_URL
ZEROG_INDEXER_RPC_URL
ZEROG_PRIVATE_KEY
ZEROG_AGENT_NFT_CONTRACT_ADDRESS
Generate new NFT:
execute
pnpm generate-nft --dir="./data"
Start agent from NFT:
execute
pnpm start --token="0"
Screenshots
Before
After
Discord username
References