Skip to content

Commit

Permalink
Add sepolia to hardhat, fix policy naming
Browse files Browse the repository at this point in the history
  • Loading branch information
kanshi committed Apr 11, 2024
1 parent be6d82e commit c7c282d
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 12 deletions.
4 changes: 4 additions & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ const config = {
accounts: [],
timeout: 1800000
},
sepolia: {
url: "https://ethereum-sepolia.publicnode.com",
accounts: [],
},
localhost: {
timeout: 18000000
}
Expand Down
4 changes: 2 additions & 2 deletions operations/registrator-deploy-dev-sepolia.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ job "registrator-deploy-dev-sepolia" {

config {
network_mode = "host"
image = "ghcr.io/ator-development/registrator:0.2.1"
image = "ghcr.io/ator-development/registrator:0.2.2"
entrypoint = ["npx"]
command = "hardhat"
args = ["run", "--network", "sepolia", "scripts/deploy.ts"]
}

vault {
policies = ["registrator-dev-sepolia"]
policies = ["registrator-sepolia-dev"]
}

template {
Expand Down
4 changes: 2 additions & 2 deletions operations/registrator-deploy-live-sepolia.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ job "registrator-deploy-live-sepolia" {

config {
network_mode = "host"
image = "ghcr.io/ator-development/registrator:0.2.1"
image = "ghcr.io/ator-development/registrator:0.2.2"
entrypoint = ["npx"]
command = "hardhat"
args = ["run", "--network", "sepolia", "scripts/deploy.ts"]
}

vault {
policies = ["registrator-live-sepolia"]
policies = ["registrator-sepolia-live"]
}

template {
Expand Down
4 changes: 2 additions & 2 deletions operations/registrator-deploy-stage-sepolia.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ job "registrator-deploy-stage-sepolia" {

config {
network_mode = "host"
image = "ghcr.io/ator-development/registrator:0.2.1"
image = "ghcr.io/ator-development/registrator:0.2.2"
entrypoint = ["npx"]
command = "hardhat"
args = ["run", "--network", "sepolia", "scripts/deploy.ts"]
}

vault {
policies = ["registrator-stage-sepolia"]
policies = ["registrator-sepolia-stage"]
}

template {
Expand Down
5 changes: 2 additions & 3 deletions operations/registrator-operator-scripts-dev-sepolia.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ job "registrator-operator-scripts-dev-sepolia" {

config {
network_mode = "host"
image = "ghcr.io/ator-development/registrator:0.2.1"
image = "ghcr.io/ator-development/registrator:0.2.2"
entrypoint = ["npx"]
command = "hardhat"
args = ["run", "--network", "sepolia", "scripts/operator-scripts.ts"]
}

vault {
policies = ["registrator-dev-sepolia"]
policies = ["registrator-sepolia-dev"]
}

template {
Expand All @@ -27,7 +27,6 @@ job "registrator-operator-scripts-dev-sepolia" {
CONSUL_TOKEN="{{.Data.data.CONSUL_TOKEN}}"
JSON_RPC="{{.Data.data.JSON_RPC}}"
REGISTRATOR_OPERATOR_ADDRESS="{{.Data.data.REGISTRATOR_OPERATOR_ADDRESS}}"
REGISTRATOR_RECEIVER_ADDRESS="{{.Data.data.REGISTRATOR_RECEIVER_ADDRESS}}"
{{end}}
EOH
destination = "secrets/file.env"
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": "facility",
"version": "0.2.1",
"version": "0.2.2",
"description": "Routines necessary to claim reward tokens",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 0 additions & 2 deletions scripts/operator-scripts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ async function main() {
const operator = new ethers.Wallet(operatorAddress, provider)
console.log(`Operator ${operator.address}`)

// const receiverAddress = process.env.REGISTRATOR_RECEIVER_ADDRESS || '0x15d34AAf54267DB7D7c367839AAf71A00a2C6A65' // Hardhat #4

const registratorContract = new ethers.Contract(registratorAddress, abi, operator.provider)
const registrator = registratorContract.connect(operator)

Expand Down

0 comments on commit c7c282d

Please sign in to comment.