Skip to content

Commit 175ae97

Browse files
committed
chore: upgrade deployment scripts to ethers v6
1 parent f38759f commit 175ae97

12 files changed

+3
-49
lines changed

deploy/001_deploy_universal_profile.ts

-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { HardhatRuntimeEnvironment } from 'hardhat/types';
22
import { DeployFunction } from 'hardhat-deploy/types';
3-
import { ethers } from 'hardhat';
43

54
const deployUniversalProfile: DeployFunction = async ({
65
deployments,
@@ -9,12 +8,9 @@ const deployUniversalProfile: DeployFunction = async ({
98
const { deploy } = deployments;
109
const { owner } = await getNamedAccounts();
1110

12-
const gasPrice = await ethers.provider.getGasPrice();
13-
1411
await deploy('UniversalProfile', {
1512
from: owner,
1613
args: [owner],
17-
gasPrice,
1814
log: true,
1915
});
2016
};

deploy/002_deploy_key_manager.ts

-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { HardhatRuntimeEnvironment } from 'hardhat/types';
22
import { DeployFunction } from 'hardhat-deploy/types';
3-
import { ethers } from 'hardhat';
43

54
const deployKeyManager: DeployFunction = async ({
65
deployments,
@@ -11,12 +10,9 @@ const deployKeyManager: DeployFunction = async ({
1110

1211
const UniversalProfile = await deployments.get('UniversalProfile');
1312

14-
const gasPrice = await ethers.provider.getGasPrice();
15-
1613
await deploy('LSP6KeyManager', {
1714
from: owner,
1815
args: [UniversalProfile.address],
19-
gasPrice,
2016
log: true,
2117
});
2218
};

deploy/003_deploy_universal_receiver_delegate.ts

-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { HardhatRuntimeEnvironment } from 'hardhat/types';
22
import { DeployFunction } from 'hardhat-deploy/types';
3-
import { ethers } from 'hardhat';
43
import { SALT } from './salt';
54

65
const deployUniversalReceiverDelegateUPDeterministic: DeployFunction = async ({
@@ -10,11 +9,8 @@ const deployUniversalReceiverDelegateUPDeterministic: DeployFunction = async ({
109
const { deploy } = deployments;
1110
const { owner: deployer } = await getNamedAccounts();
1211

13-
const gasPrice = await ethers.provider.getGasPrice();
14-
1512
await deploy('LSP1UniversalReceiverDelegateUP', {
1613
from: deployer,
17-
gasPrice,
1814
log: true,
1915
deterministicDeployment: SALT,
2016
});

deploy/005_deploy_universal_receiver_delegate_vault.ts

-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { HardhatRuntimeEnvironment } from 'hardhat/types';
22
import { DeployFunction } from 'hardhat-deploy/types';
3-
import { ethers } from 'hardhat';
43
import { SALT } from './salt';
54

65
const deployUniversalReceiverDelegateVaultDeterministic: DeployFunction = async ({
@@ -10,11 +9,8 @@ const deployUniversalReceiverDelegateVaultDeterministic: DeployFunction = async
109
const { deploy } = deployments;
1110
const { owner: deployer } = await getNamedAccounts();
1211

13-
const gasPrice = await ethers.provider.getGasPrice();
14-
1512
await deploy('LSP1UniversalReceiverDelegateVault', {
1613
from: deployer,
17-
gasPrice,
1814
log: true,
1915
deterministicDeployment: SALT,
2016
});

deploy/006_deploy_base_universal_profile.ts

-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { HardhatRuntimeEnvironment } from 'hardhat/types';
22
import { DeployFunction } from 'hardhat-deploy/types';
3-
import { ethers } from 'hardhat';
43
import { SALT } from './salt';
54

65
const deployBaseUniversalProfileDeterministic: DeployFunction = async ({
@@ -10,12 +9,9 @@ const deployBaseUniversalProfileDeterministic: DeployFunction = async ({
109
const { deploy } = deployments;
1110
const { owner: deployer } = await getNamedAccounts();
1211

13-
const gasPrice = await ethers.provider.getGasPrice();
14-
1512
await deploy('UniversalProfileInit', {
1613
from: deployer,
1714
log: true,
18-
gasPrice,
1915
deterministicDeployment: SALT,
2016
});
2117
};

deploy/007_deploy_base_key_manager.ts

-3
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,10 @@ const deployBaseKeyManagerDeterministic: DeployFunction = async ({
1010
const { deploy } = deployments;
1111
const { owner: deployer } = await getNamedAccounts();
1212

13-
const gasPrice = await ethers.provider.getGasPrice();
14-
1513
await deploy('LSP6KeyManagerInit', {
1614
from: deployer,
1715
log: true,
1816
gasLimit: 5_000_000,
19-
gasPrice,
2017
deterministicDeployment: SALT,
2118
});
2219
};

deploy/008_deploy_lsp7_mintable.ts

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { HardhatRuntimeEnvironment } from 'hardhat/types';
22
import { DeployFunction } from 'hardhat-deploy/types';
3-
import { ethers } from 'hardhat';
4-
import { LSP4_TOKEN_TYPES } from '../constants';
3+
import { LSP4_TOKEN_TYPES } from '@lukso/lsp4-contracts/constants';
54

65
const deployLSP7Mintable: DeployFunction = async ({
76
deployments,
@@ -10,12 +9,9 @@ const deployLSP7Mintable: DeployFunction = async ({
109
const { deploy } = deployments;
1110
const { owner } = await getNamedAccounts();
1211

13-
const gasPrice = await ethers.provider.getGasPrice();
14-
1512
await deploy('LSP7Mintable', {
1613
from: owner,
1714
args: ['LSP7 Mintable', 'LSP7M', owner, LSP4_TOKEN_TYPES.TOKEN, false],
18-
gasPrice,
1915
log: true,
2016
});
2117
};

deploy/009_deploy_lsp8_mintable.ts

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { HardhatRuntimeEnvironment } from 'hardhat/types';
22
import { DeployFunction } from 'hardhat-deploy/types';
3-
import { ethers } from 'hardhat';
4-
import { LSP4_TOKEN_TYPES, LSP8_TOKEN_ID_FORMAT } from '../constants';
3+
import { LSP4_TOKEN_TYPES } from '@lukso/lsp4-contracts/constants';
4+
import { LSP8_TOKEN_ID_FORMAT } from '@lukso/lsp8-contracts/constants';
55

66
const deployLSP8MintableDeterministic: DeployFunction = async ({
77
deployments,
@@ -10,12 +10,9 @@ const deployLSP8MintableDeterministic: DeployFunction = async ({
1010
const { deploy } = deployments;
1111
const { owner: deployer } = await getNamedAccounts();
1212

13-
const gasPrice = await ethers.provider.getGasPrice();
14-
1513
await deploy('LSP8Mintable', {
1614
from: deployer,
1715
args: ['LSP8 Mintable', 'LSP8M', deployer, LSP4_TOKEN_TYPES.NFT, LSP8_TOKEN_ID_FORMAT.NUMBER],
18-
gasPrice,
1916
log: true,
2017
});
2118
};

deploy/010_deploy_base_lsp7_mintable.ts

-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { HardhatRuntimeEnvironment } from 'hardhat/types';
22
import { DeployFunction } from 'hardhat-deploy/types';
3-
import { ethers } from 'hardhat';
43
import { SALT } from './salt';
54

65
const deployBaseLSP7MintableDeterministic: DeployFunction = async ({
@@ -10,11 +9,8 @@ const deployBaseLSP7MintableDeterministic: DeployFunction = async ({
109
const { deploy } = deployments;
1110
const { owner: deployer } = await getNamedAccounts();
1211

13-
const gasPrice = await ethers.provider.getGasPrice();
14-
1512
await deploy('LSP7MintableInit', {
1613
from: deployer,
17-
gasPrice,
1814
log: true,
1915
deterministicDeployment: SALT,
2016
});

deploy/011_deploy_base_lsp8_mintable.ts

-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { HardhatRuntimeEnvironment } from 'hardhat/types';
22
import { DeployFunction } from 'hardhat-deploy/types';
3-
import { ethers } from 'hardhat';
43
import { SALT } from './salt';
54

65
const deployBaseLSP8Mintable: DeployFunction = async ({
@@ -10,11 +9,8 @@ const deployBaseLSP8Mintable: DeployFunction = async ({
109
const { deploy } = deployments;
1110
const { owner } = await getNamedAccounts();
1211

13-
const gasPrice = await ethers.provider.getGasPrice();
14-
1512
await deploy('LSP8MintableInit', {
1613
from: owner,
17-
gasPrice,
1814
log: true,
1915
deterministicDeployment: SALT,
2016
});

deploy/012_deploy_vault.ts

-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { HardhatRuntimeEnvironment } from 'hardhat/types';
22
import { DeployFunction } from 'hardhat-deploy/types';
3-
import { ethers } from 'hardhat';
43

54
const deployVault: DeployFunction = async ({
65
deployments,
@@ -9,12 +8,9 @@ const deployVault: DeployFunction = async ({
98
const { deploy } = deployments;
109
const { owner } = await getNamedAccounts();
1110

12-
const gasPrice = await ethers.provider.getGasPrice();
13-
1411
await deploy('LSP9Vault', {
1512
from: owner,
1613
args: [owner],
17-
gasPrice,
1814
log: true,
1915
});
2016
};

deploy/013_deploy_base_vault.ts

-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { HardhatRuntimeEnvironment } from 'hardhat/types';
22
import { DeployFunction } from 'hardhat-deploy/types';
3-
import { ethers } from 'hardhat';
43
import { SALT } from './salt';
54

65
const deployBaseVaultDeterministic: DeployFunction = async ({
@@ -10,12 +9,9 @@ const deployBaseVaultDeterministic: DeployFunction = async ({
109
const { deploy } = deployments;
1110
const { owner: deployer } = await getNamedAccounts();
1211

13-
const gasPrice = await ethers.provider.getGasPrice();
14-
1512
await deploy('LSP9VaultInit', {
1613
from: deployer,
1714
log: true,
18-
gasPrice,
1915
deterministicDeployment: SALT,
2016
});
2117
};

0 commit comments

Comments
 (0)