Skip to content

AgentPay contracts rename#9

Merged
hhl42 merged 3 commits into
mainfrom
agentpay-rename
May 10, 2026
Merged

AgentPay contracts rename#9
hhl42 merged 3 commits into
mainfrom
agentpay-rename

Conversation

@hhl42

@hhl42 hhl42 commented May 10, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR completes a repository-wide rename from the legacy Celer* contract naming to AgentPay* (Ledger/Wallet), updating Solidity sources, interfaces, tests, scripts, and documentation to match the new public API surface.

Changes:

  • Renamed core contract/interface references from CelerLedger/CelerWallet to AgentPayLedger/AgentPayWallet across src + tests.
  • Updated deploy scripts/config schema and docs to reflect the new names and output artifacts (including gas report filenames).
  • Refreshed NatSpec/docs strings to remove “Celer” terminology in favor of “AgentPay”.

Reviewed changes

Copilot reviewed 37 out of 37 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
test/utils/LedgerTestBase.t.sol Updates test scaffolding to use ledger/wallet naming and channelId derivation docs.
test/utils/Base.t.sol Switches deployed test graph from Celer* to AgentPay* contracts and labels.
test/invariants/handlers/ChannelHandler.sol Renames invariant handler imports/types to AgentPay*.
test/invariants/ChannelInvariants.t.sol Updates invariant suite to call ledger/wallet APIs.
test/GasReport.t.sol Renames gas report tests/paths and deployment measurement helpers to AgentPay*.
test/gas_logs/CelerLedger-ERC20.txt Removes legacy gas log artifact for old naming.
test/gas_logs/AgentPayLedger-Migrate.txt Updates migration gas log header to AgentPayLedger.
test/gas_logs/AgentPayLedger-ETH.txt Updates ETH gas log labels to AgentPayLedger/AgentPayWallet.
test/gas_logs/AgentPayLedger-ERC20.txt Adds ERC20 gas log artifact under new naming.
test/AgentPayWallet.t.sol Renames wallet unit test contract/types to AgentPayWallet.
test/AgentPayLedger.Migrate.t.sol Renames migration tests and switches to ledger/wallet fields.
test/AgentPayLedger.ETH.t.sol Renames ETH-channel tests and updates calls/getters to new API names.
test/AgentPayLedger.ERC20.t.sol Renames ERC20-channel tests and updates calls to ledger.
src/RouterRegistry.sol Updates NatSpec text to “AgentPay Network”.
src/lib/ledgerlib/LedgerStruct.sol Switches wallet interface type to IAgentPayWallet and updates docs/comments.
src/lib/ledgerlib/LedgerOperation.sol Replaces ICelerWallet usage with IAgentPayWallet throughout lifecycle ops.
src/lib/ledgerlib/LedgerMigrate.sol Replaces ICelerLedger/wallet calls with IAgentPayLedger/wallet.
src/lib/ledgerlib/LedgerChannel.sol Updates migration import helpers to query via IAgentPayLedger.
src/lib/data/proto/entity.proto Updates proto comment to reference AgentPayLedger.
src/lib/AgentPayErrors.sol Renames comment section headers to AgentPayLedger/AgentPayWallet.
src/interfaces/INativeWrap.sol Updates NatSpec text to reference AgentPayWallet.
src/interfaces/IAgentPayWallet.sol Renames wallet interface and updates NatSpec references.
src/interfaces/IAgentPayLedger.sol Renames ledger interface and updates getter name to getAgentPayWallet.
src/helper/WalletTestHelper.sol Updates helper to target IAgentPayWallet.
src/helper/NativeWrapMock.sol Updates NatSpec to reference AgentPayLedger.
src/helper/ERC20ExampleToken.sol Updates NatSpec to reference AgentPayLedger tests.
src/AgentPayWallet.sol Renames wallet implementation contract and interface inheritance to IAgentPayWallet.
src/AgentPayLedgerMock.sol Renames mock contract and updates stored wallet interface type.
src/AgentPayLedger.sol Renames ledger implementation and swaps internal storage to wallet (needs interface import fix).
script/README.md Updates deployment documentation and verification examples to AgentPay*.
script/example_config.json Renames config key from celerWallet to wallet.
script/DeployLedger.s.sol Updates deploy script to deploy AgentPayLedger and read .core.wallet.
script/DeployCore.s.sol Updates core deploy script to deploy AgentPayWallet.
script/.env.example Updates env example comments to AgentPay*.
README.md Updates top-level repo docs to reference AgentPayLedger/AgentPayWallet.
docs/contracts.md Updates contract documentation sections, links, and terminology to AgentPay*.
docs/architecture-summary.md Updates architecture terminology to match AgentPay* naming.
Comments suppressed due to low confidence (2)

src/AgentPayLedger.sol:27

  • AgentPayLedger declares is IAgentPayLedger but this file does not import IAgentPayLedger, which will fail compilation with an unknown identifier. Add an import "./interfaces/IAgentPayLedger.sol"; (or otherwise bring the interface into scope) alongside the other interface imports.
    src/interfaces/IAgentPayWallet.sol:10
  • Grammar: use “An AgentPayWallet” (not “A AgentPayWallet”) and “an AgentPayLedger” (not “a AgentPayLedger”) in this NatSpec to keep documentation professional and consistent.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/lib/ledgerlib/LedgerStruct.sol Outdated
library LedgerStruct {
/**
* @notice Lifecycle status of a channel inside a CelerLedger instance.
* @notice Lifecycle status of a channel inside a AgentPayLedger instance.
Comment thread script/DeployLedger.s.sol Outdated
/**
* @title DeployLedger
* @notice Deploys a `CelerLedger` instance wired against the existing core
* @notice Deploys a `AgentPayLedger` instance wired against the existing core
@hhl42

hhl42 commented May 10, 2026

Copy link
Copy Markdown
Contributor Author

@copilot apply changes based on the comments in this thread

Copilot AI commented May 10, 2026

Copy link
Copy Markdown

@copilot apply changes based on the comments in this thread

Done — fixed both grammar issues in commit a427c8f:

  • src/lib/ledgerlib/LedgerStruct.sol: "inside a AgentPayLedger" → "inside an AgentPayLedger"
  • script/DeployLedger.s.sol: "Deploys a AgentPayLedger" → "Deploys an AgentPayLedger"

Copilot finished work on behalf of hhl42 May 10, 2026 03:05
@hhl42 hhl42 merged commit 649a021 into main May 10, 2026
2 checks passed
@hhl42 hhl42 deleted the agentpay-rename branch May 10, 2026 05:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants