Skip to content
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

Ethereum Relayer V2 #1341

Draft
wants to merge 1 commit into
base: vincent/v2
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions contracts/src/Gateway.sol
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,14 @@ contract Gateway is IGatewayBase, IGatewayV1, IGatewayV2, IInitializable, IUpgra
return Functions.ensureAgent(agentID);
}

function outboundNonce()
external
view
returns (uint64)
{
return CallsV2.outboundNonce();
}

function pricingParameters() external view returns (UD60x18, uint128) {
return CallsV1.pricingParameters();
}
Expand Down
4 changes: 4 additions & 0 deletions contracts/src/v2/Calls.sol
Original file line number Diff line number Diff line change
Expand Up @@ -227,4 +227,8 @@ library CallsV2 {
);
}
}

function outboundNonce() external view returns (uint64) {
return CoreStorage.layout().outboundNonce;
}
}
2 changes: 2 additions & 0 deletions contracts/src/v2/IGateway.sol
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ interface IGatewayV2 {

function agentOf(bytes32 agentID) external view returns (address);

function outboundNonce() external view returns (uint64);

/**
* Events
*/
Expand Down
Loading
Loading