From 59e474c32ac4635ebfa93b0d087ef66f061ba048 Mon Sep 17 00:00:00 2001 From: Agustin Velez Date: Wed, 9 Oct 2024 16:12:59 -0300 Subject: [PATCH] rename namings --- src/libraries/Permit2Parsing.sol | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/libraries/Permit2Parsing.sol b/src/libraries/Permit2Parsing.sol index 749606d..4a5d3a6 100644 --- a/src/libraries/Permit2Parsing.sol +++ b/src/libraries/Permit2Parsing.sol @@ -1,15 +1,15 @@ // SPDX-License-Identifier: Apache 2 -pragma solidity ^0.8.24; +pragma solidity ^0.8.4; import {BytesParsing} from "wormhole-sdk/libraries/BytesParsing.sol"; -library Permit2Parsing { +library PermitParsing { using BytesParsing for bytes; uint constant SIGNATURE_SIZE = 65; - function _parsePermit( + function asPermitCdUnchecked( bytes calldata params, uint offset ) internal pure returns (uint256, uint256, bytes32, bytes32, uint8, uint) { @@ -26,7 +26,7 @@ library Permit2Parsing { return (value, deadline, r, s, v, offset); } - function _parsePermit2Permit( + function asPermit2PermitCdUnchecked( bytes calldata params, uint offset ) internal pure returns (uint160, uint48, uint48, uint256, bytes memory, uint) { @@ -43,7 +43,7 @@ library Permit2Parsing { return (amount, expiration, nonce, sigDeadline, signature, offset); } - function _parsePermit2Transfer( + function asPermit2TransferCdUnchecked( bytes calldata params, uint offset ) internal pure returns (uint256, uint256, uint256, bytes memory, uint) {