import { BigNumber, Overrides, Wallet, Contract } from 'ethers'; import { HardhatRuntimeEnvironmentExtended } from '../types'; import { CurrencyTypes } from '@requestnetwork/types'; /** * Updates the chainlink address used by the contract. * @param contract A contract using chainlink: * Erc20ConversionProxy | EthConversionProxy | ERC20SwapToConversion. * @param network The network used. * @param txOverrides information related to gas fees. Increase their values if needed. * @param signer Who is performing the updating * @param signWithEoa Is the transaction to be signed by an EAO * @param version The version of the chainlink proxy to use, the last one by default. */ export declare const updateChainlinkConversionPath: (contract: Contract, network: CurrencyTypes.EvmChainName, txOverrides: Overrides, signer: Wallet, signWithEoa: boolean, version?: string) => Promise; /** * Updates the batchFee applied by the batch conversion proxy. * @param contract BatchConversionPayments contract. * @param network The network used * @param txOverrides information related to gas fees. Increase their values if needed. * @param signer Who is performing the updating * @param signWithEoa Is the transaction to be signed by an EAO */ export declare const updateSwapRouter: (contract: Contract, network: string, txOverrides: Overrides, signer: Wallet, signWithEoa: boolean) => Promise; /** * Updates the batchFee applied by the batch conversion proxy. * @param contract BatchConversionPayments contract. * @param network The network used * @param txOverrides information related to gas fees. Increase their values if needed. * @param signer Who is performing the updating * @param signWithEoa Is the transaction to be signed by an EAO */ export declare const updateRequestSwapFees: (contract: Contract, network: string, txOverrides: Overrides, signer: Wallet, signWithEoa: boolean) => Promise; /** * Updates the batchFee applied by the batch conversion proxy. * @param contract BatchConversionPayments contract. * @param network The network used * @param txOverrides information related to gas fees. Increase their values if needed. * @param signer Who is performing the updating * @param signWithEoa Is the transaction to be signed by an EAO */ export declare const updateBatchPaymentFees: (contract: Contract, network: string, txOverrides: Overrides, signer: Wallet, signWithEoa: boolean) => Promise; /** * Updates the feeAMountUSDLimit of the batch conversion proxy. * @param contract BatchConversionPayments contract. * @param network The network used * @param txOverrides information related to gas fees. Increase their values if needed. * @param signer Who is performing the updating * @param signWithEoa Is the transaction to be signed by an EAO */ export declare const updateBatchPaymentFeeAmountUSDLimit: (contract: Contract, network: string, txOverrides: Overrides, signer: Wallet, signWithEoa: boolean) => Promise; /** * Updates the address of a Native or ERC20 fee proxy stored within a Native or ERC20 fee conversion contract. * @param contract A contract using chainlink: EthConversionProxy | Erc20ConversionProxy. * @param network The network used. * @param txOverrides information related to gas fees. Increase their values if needed. * @param proxyType The type of the proxy fee. * @param signer Who is performing the updating * @param signWithEoa Is the transaction to be signed by an EAO * @param version The version of the fee proxy to use, the last one by default. */ export declare const updatePaymentFeeProxyAddress: (contract: Contract, network: CurrencyTypes.EvmChainName, txOverrides: Overrides, proxyType: 'native' | 'erc20', signer: Wallet, signWithEoa: boolean, version?: string) => Promise; /** * Update the address of a proxy used by batch conversion contract. * @param contract BatchConversionPayments contract. * @param network The network used. * @param txOverrides information related to gas fees. Increase their values if needed. * @param proxyName The name of the fee proxy to update. * @param signer Who is performing the updating * @param signWithEoa Is the transaction to be signed by an EAO */ export declare const updateBatchConversionProxy: (contract: Contract, network: CurrencyTypes.EvmChainName, txOverrides: Overrides, proxyName: string, signer: Wallet, signWithEoa: boolean) => Promise; /** * Update the native and the USD addresses used by batch conversion contract. * @param contract BatchConversionPayments contract. * @param NativeAddress The address of native token, eg: ETH. * @param USDAddress The address of USD token. * @param txOverrides information related to gas fees. Increase their values if needed. * @param signer Who is performing the updating * @param signWithEoa Is the transaction to be signed by an EAO */ export declare const updateNativeAndUSDAddress: (contract: Contract, network: string, NativeAddress: string, USDAddress: string, txOverrides: Overrides, signer: Wallet, signWithEoa: boolean) => Promise; /** * Update the native token hash used by a contract. * @param contractType name of the contract to be updated * @param contract contract to be updated. * @param network where the contract is deployed * @param nativeTokenHash The address of native token, eg: ETH. * @param txOverrides information related to gas fees. Increase their values if needed. * @param signer Who is performing the updating * @param signWithEoa Is the transaction to be signed by an EAO */ export declare const updateNativeTokenHash: (contractType: string, contract: Contract, network: string, nativeTokenHash: string, txOverrides: Overrides, signer: Wallet, signWithEoa: boolean) => Promise; /** * Gets the signer and gas fees information. * @param network The network used. * @param hre Hardhat runtime environment. * @returns An object: * - The signer * - txOverrides, with gas fee information */ export declare const getSignerAndGasFees: (network: string, hre: HardhatRuntimeEnvironmentExtended) => Promise<{ signer: Wallet; txOverrides: { maxFeePerGas?: BigNumber; maxPriorityFeePerGas?: BigNumber; }; }>; /** * Updates the ERC20 fee proxy address in the SingleRequestProxyFactory contract * @param contract SingleRequestProxyFactory contract * @param network The network used * @param txOverrides information related to gas fees * @param signer Who is performing the updating * @param signWithEoa Is the transaction to be signed by an EOA */ export declare const updateSRPFERC20FeeProxyAddress: (contract: Contract, network: CurrencyTypes.EvmChainName, txOverrides: Overrides, signer: Wallet, signWithEoa: boolean) => Promise; /** * Updates the Ethereum fee proxy address in the SingleRequestProxyFactory contract * @param contract SingleRequestProxyFactory contract * @param network The network used * @param txOverrides information related to gas fees * @param signer Who is performing the updating * @param signWithEoa Is the transaction to be signed by an EOA */ export declare const updateSRPFEthereumFeeProxyAddress: (contract: Contract, network: CurrencyTypes.EvmChainName, txOverrides: Overrides, signer: Wallet, signWithEoa: boolean) => Promise; //# sourceMappingURL=adminTasks.d.ts.map