Closed roninjin10 closed 2 weeks ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Latest commit: 0522e0ea596b5f8a752b835b60964a6c9a1776cd
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
The changes in this pull request introduce new JSON-RPC functionalities, specifically the eth_createAccessList
and anvil_deal
requests. Additionally, a new action MemoryClient.deal
is added. The modifications include the creation of new types and procedures to support these functionalities, enhancing the overall capabilities of the system to handle ERC20 token transactions and memory operations. The updates span across various files, ensuring integration within the existing framework without altering existing logic.
File Path | Change Summary |
---|---|
.changeset/little-coats-float.md | Added eth_createAccessList and anvil_deal methods in JSON-RPC interface; introduced MemoryClient.deal . |
packages/actions/src/anvil/AnvilHandler.ts | Added types AnvilDealParams , AnvilDealResult , and AnvilDealHandler . |
packages/actions/src/anvil/AnvilJsonRpcRequest.ts | Introduced AnvilDealJsonRpcRequest type; updated AnvilJsonRpcRequest union type. |
packages/actions/src/anvil/AnvilJsonRpcResponse.ts | Added AnvilDealJsonRpcResponse type; imported AnvilDealResult . |
packages/actions/src/anvil/AnvilParams.ts | Defined AnvilDealParams type for token dealings. |
packages/actions/src/anvil/AnvilProcedure.ts | Added AnvilDealProcedure type; updated AnvilProcedure union type. |
packages/actions/src/anvil/AnvilResult.ts | Introduced AnvilDealResult type for error handling. |
packages/actions/src/anvil/anvilDealHandler.js | Created dealHandler function for ERC20 token transactions. |
packages/actions/src/anvil/anvilDealProcedure.js | Introduced anvilDealJsonRpcProcedure for handling ERC20 token dealings. |
packages/actions/src/anvil/anvilDealProcedure.spec.ts | Added unit tests for anvilDealJsonRpcProcedure . |
packages/actions/src/anvil/index.ts | Added exports for anvilDealHandler.js and anvilDealProcedure.js . |
packages/actions/src/createHandlers.js | Integrated anvilDealJsonRpcProcedure into anvilHandlers ; updated ethHandlers for eth_createAccessList . |
packages/actions/src/eth/EthJsonRpcRequest.ts | Modified JsonRpcTransaction type; added EthCreateAccessListJsonRpcRequest type. |
packages/actions/src/eth/EthJsonRpcResponse.ts | Added EthCreateAccessListJsonRpcResponse type. |
packages/actions/src/eth/EthProcedure.ts | Introduced EthCreateAccessListJsonRpcProcedure . |
packages/actions/src/eth/ethCreateAccessListProcedure.js | Created procedure for creating Ethereum access lists. |
packages/actions/src/eth/ethCreateAccessListProcedure.spec.ts | Added tests for ethCreateAccessListProcedure . |
packages/actions/src/eth/ethSendTransactionProcedure.js | Updated transaction parameter handling for robustness. |
packages/actions/src/eth/index.ts | Added export for ethCreateAccessListProcedure . |
packages/actions/src/tevm-request-handler/AnvilRequestType.ts | Added AnvilDealJsonRpcRequest to request type mapping. |
packages/actions/src/tevm-request-handler/AnvilReturnType.ts | Updated AnvilReturnType to include anvil_deal . |
packages/actions/src/tevm-request-handler/EthReturnType.ts | Added EthCreateAccessListJsonRpcResponse to return type mapping. |
packages/actions/src/tevm-request-handler/TevmJsonRpcRequestHandler.ts | Documented eth_createAccessList method. |
packages/decorators/src/actions/TevmActionsApi.ts | Added deal method to TevmActionsApi . |
packages/decorators/src/actions/tevmActions.js | Introduced dealAction for extending TevmActionsApi . |
packages/memory-client/src/test/requests.spec.ts | Added test case for eth_createAccessList . |
MemoryClient
, relevant to the new MemoryClient.deal
action.anvil_reset
, aligning with new JSON-RPC requests.anvil_loadState
, related to enhancing Anvil interface capabilities.anvil_reset
, directly related to enhanced Anvil JSON-RPC capabilities.🐰 In a world of code and requests so bright,
New tokens and access lists take flight.
Withanvil_deal
andcreateAccessList
in tow,
Our JSON-RPC magic continues to grow!
Hopping through functions, with joy we shall sing,
For every new feature, our hearts dance and spring! 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
This stack of pull requests is managed by Graphite. Learn more about stacking.
Join @roninjin10 and the rest of your teammates on Graphite
Description
Concise description of proposed changes
Testing
Explain the quality checks that have been done on the code changes
Additional Information
Your ENS/address:
Summary by CodeRabbit
Release Notes
New Features
anvil_deal
JSON-RPC request for handling ERC20 token transactions.eth_createAccessList
JSON-RPC request to create access lists for Ethereum transactions.deal
method in theTevmActionsApi
for ERC20 token distribution.Bug Fixes
Tests
anvil_deal
andeth_createAccessList
procedures to validate functionality.