Skip to content

Conversation

@0xiamflux
Copy link
Contributor

@0xiamflux 0xiamflux commented Nov 14, 2025

Add Network Upgrade Transaction Lib

Adds Network Upgrade Transaction helper library as part of the L2 Contracts Manager project.

Changes

NetworkUpgradeTxns.sol providing:

  • NetworkUpgradeTxn struct mirroring DepositTx fields.
  • newTx to construct tx metadata with intent-derived sourceHash.
  • sourceHash domain-separated hashing (domain=2).
  • Writing of transactions artifact as JSON

Comment on lines +23 to +31
struct NetworkUpgradeTxn {
bytes data;
address from;
uint64 gas;
bool isSystemTransaction;
uint256 mint;
bytes32 sourceHash;
address to;
uint256 value;
Copy link
Contributor

Choose a reason for hiding this comment

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

This field ordering feels off, let's have it follow the order in the DepositTx struct in deposit_tx.go

@opgitgovernance opgitgovernance added the S-stale Status: Will be closed unless there is activity label Nov 29, 2025
@opgitgovernance
Copy link
Contributor

This pr has been automatically marked as stale and will be closed in 5 days if no updates

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-stale Status: Will be closed unless there is activity

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants