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

Add Sepolia #759

Merged
merged 1 commit into from
Jun 19, 2023
Merged
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
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = v1.1.11
current_version = v1.1.13
commit = True
tag = True

Expand Down
18 changes: 18 additions & 0 deletions addresses/address.json
Original file line number Diff line number Diff line change
Expand Up @@ -251,5 +251,23 @@
},
"Dispenser": "0xDEfD0018969cd2d4E648209F876ADe184815f038",
"ERC721Factory": "0x9C9eE07b8Ce907D2f9244F8317C1Ed29A3193bAe"
},
"sepolia": {
"chainId": 11155111,
"Ocean": "0x1B083D8584dd3e6Ff37d04a6e7e82b5F622f3985",
"OPFCommunityFeeCollector": "0x69B6E54Ad2b3c2801d11d8Ad56ea1d892555b776",
"startBlock": 3722802,
"Router": "0x2112Eb973af1DBf83a4f11eda82f7a7527D7Fde5",
"FixedPrice": "0x80E63f73cAc60c1662f27D2DFd2EA834acddBaa8",
"Staking": "0x3C5605202eD47C162450AE975415473e73F93072",
"ERC20Template": {
"1": "0x30E4CC2C7A9c6aA2b2Ce93586E3Df24a3A00bcDD",
"2": "0xDEfD0018969cd2d4E648209F876ADe184815f038"
},
"ERC721Template": {
"1": "0x9C9eE07b8Ce907D2f9244F8317C1Ed29A3193bAe"
},
"Dispenser": "0x2720d405ef7cDC8a2E2e5AeBC8883C99611d893C",
"ERC721Factory": "0xEF62FB495266C72a5212A11Dce8baa79Ec0ABeB1"
}
}
6 changes: 6 additions & 0 deletions hardhat.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@ module.exports = {
accounts:
process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
},
sepolia: {
url:
process.env.NETWORK_RPC_URL !== undefined ? process.env.NETWORK_RPC_URL : "",
accounts:
process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
},
mumbai: {
url:
process.env.NETWORK_RPC_URL !== undefined ? process.env.NETWORK_RPC_URL : "",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@oceanprotocol/contracts",
"version": "v1.1.12",
"version": "v1.1.13",
"description": "Ocean Protocol Smartcontracts",
"bugs": {
"url": "https://github.com/oceanprotocol/contracts/issues"
Expand Down
14 changes: 14 additions & 0 deletions scripts/deploy-contracts.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ async function main() {
let sleepAmount = 10;
let additionalApprovedTokens = []
console.log("Using chain " + networkDetails.chainId);
const nonce=await provider.getTransactionCount(owner.address)
console.log("Nonce of "+owner.address+": "+nonce)
switch (networkDetails.chainId) {
case 1:
networkName = "mainnet";
Expand Down Expand Up @@ -111,6 +113,18 @@ async function main() {
shouldDeployDF = true;
shouldDeployVE = true;
break;
case 0xaa36a7:
networkName = "sepolia";
OPFOwner = '0xC7EC1970B09224B317c52d92f37F5e1E4fF6B687'
routerOwner = OPFOwner;
sleepAmount = 10
shouldDeployOceanToken = true;
shouldDeployV4 = true;
shouldDeployDF = false;
shouldDeployVE = false;
gasPrice = ethers.utils.parseUnits('1', 'gwei')
gasLimit = 20000000
break;
case 0x89:
networkName = "polygon";
productionNetwork = true;
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = ocean-contracts
version = v1.1.12
version = v1.1.13
author = leucothia
author_email = devops@oceanprotocol.com
description = 🐳 Ocean Protocol L1 - v4
Expand Down
Loading