Skip to content

Commit 3beb884

Browse files
committed
refactor: rename SRPF functions
1 parent d354a0a commit 3beb884

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

packages/smart-contracts/scripts-create2/contract-setup/adminTasks.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ export const getSignerAndGasFees = async (
420420
* @param signer Who is performing the updating
421421
* @param signWithEoa Is the transaction to be signed by an EOA
422422
*/
423-
export const updateERC20FeeProxyAddress = async (
423+
export const updateSRPFERC20FeeProxyAddress = async (
424424
contract: Contract,
425425
network: CurrencyTypes.EvmChainName,
426426
txOverrides: Overrides,
@@ -454,7 +454,7 @@ export const updateERC20FeeProxyAddress = async (
454454
* @param signer Who is performing the updating
455455
* @param signWithEoa Is the transaction to be signed by an EOA
456456
*/
457-
export const updateEthereumFeeProxyAddress = async (
457+
export const updateSRPFEthereumFeeProxyAddress = async (
458458
contract: Contract,
459459
network: CurrencyTypes.EvmChainName,
460460
txOverrides: Overrides,

packages/smart-contracts/scripts-create2/contract-setup/setupSingleRequestProxyFactory.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { singleRequestProxyFactoryArtifact } from '../../src/lib';
33
import { HardhatRuntimeEnvironmentExtended } from '../types';
44
import {
55
getSignerAndGasFees,
6-
updateERC20FeeProxyAddress,
7-
updateEthereumFeeProxyAddress,
6+
updateSRPFERC20FeeProxyAddress,
7+
updateSRPFEthereumFeeProxyAddress,
88
} from './adminTasks';
99

1010
/**
@@ -14,7 +14,7 @@ import {
1414
* @param hre Hardhat runtime environment
1515
* @param signWithEoa Are transactions to be signed by an EOA
1616
*/
17-
export const setupSingleRequestProxyFactory = async ({
17+
export const setupSRPF = async ({
1818
contractAddress,
1919
hre,
2020
signWithEoa,
@@ -42,14 +42,14 @@ export const setupSingleRequestProxyFactory = async ({
4242
const { signer, txOverrides } = await getSignerAndGasFees(network, hre);
4343
const factoryConnected = factory.connect(signer);
4444

45-
await updateERC20FeeProxyAddress(
45+
await updateSRPFERC20FeeProxyAddress(
4646
factoryConnected,
4747
network,
4848
txOverrides,
4949
signer,
5050
signWithEoa,
5151
);
52-
await updateEthereumFeeProxyAddress(
52+
await updateSRPFEthereumFeeProxyAddress(
5353
factoryConnected,
5454
network,
5555
txOverrides,

packages/smart-contracts/scripts-create2/contract-setup/setups.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { setupERC20SwapToConversion } from './setupERC20SwapToConversion';
55
import { setupERC20SwapToPay } from './setupERC20SwapToPay';
66
import { setupChainlinkConversionPath } from './setupChainlinkConversionPath';
77
import { setupErc20ConversionProxy } from './setupErc20ConversionProxy';
8-
import { setupSingleRequestProxyFactory } from './setupSingleRequestProxyFactory';
8+
import { setupSRPF } from './setupSingleRequestProxyFactory';
99

1010
/**
1111
* Administrate the specified contract at the specified address
@@ -52,7 +52,7 @@ export const setupContract = async ({
5252
break;
5353
}
5454
case 'SingleRequestProxyFactory': {
55-
await setupSingleRequestProxyFactory({ contractAddress, hre, signWithEoa });
55+
await setupSRPF({ contractAddress, hre, signWithEoa });
5656
break;
5757
}
5858
default: {

0 commit comments

Comments
 (0)