Skip to content

Commit

Permalink
Merge pull request #204 from cygnusv/sepolia-dash
Browse files Browse the repository at this point in the history
New deployment of TACoApp for Sepolia Testnet
  • Loading branch information
theref authored Nov 27, 2023
2 parents 5587e59 + 2f153e1 commit b3c1deb
Show file tree
Hide file tree
Showing 2 changed files with 103 additions and 67 deletions.
143 changes: 87 additions & 56 deletions deployment/artifacts/dashboard.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"5": {
"11155111": {
"TACoApplication": {
"address": "0x52f09eB7D82344b5343dAeF7D7ef56E9b84AEbA4",
"address": "0xE9Eb81F72cDBE9fE82f61EA527e8a3A39f5B023a",
"abi": [
{
"type": "constructor",
Expand Down Expand Up @@ -41,6 +41,11 @@
"name": "_commitmentDurationOptions",
"type": "uint64[]",
"internalType": "uint64[]"
},
{
"name": "_commitmentDeadline",
"type": "uint64",
"internalType": "uint64"
}
]
},
Expand Down Expand Up @@ -483,6 +488,19 @@
}
]
},
{
"type": "function",
"name": "approveAuthorizationDecrease",
"stateMutability": "nonpayable",
"inputs": [
{
"name": "_stakingProvider",
"type": "address",
"internalType": "address"
}
],
"outputs": []
},
{
"type": "function",
"name": "authorizationDecreaseRequested",
Expand Down Expand Up @@ -634,6 +652,19 @@
}
]
},
{
"type": "function",
"name": "commitmentDeadline",
"stateMutability": "view",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint64",
"internalType": "uint64"
}
]
},
{
"type": "function",
"name": "commitmentDurationOption1",
Expand Down Expand Up @@ -712,19 +743,6 @@
}
]
},
{
"type": "function",
"name": "finishAuthorizationDecrease",
"stateMutability": "nonpayable",
"inputs": [
{
"name": "_stakingProvider",
"type": "address",
"internalType": "address"
}
],
"outputs": []
},
{
"type": "function",
"name": "getActiveStakingProviders",
Expand Down Expand Up @@ -773,25 +791,6 @@
}
]
},
{
"type": "function",
"name": "getOperatorFromStakingProvider",
"stateMutability": "view",
"inputs": [
{
"name": "_stakingProvider",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
]
},
{
"type": "function",
"name": "getStakingProvidersLength",
Expand Down Expand Up @@ -943,6 +942,25 @@
}
]
},
{
"type": "function",
"name": "operatorToStakingProvider",
"stateMutability": "view",
"inputs": [
{
"name": "_operator",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
]
},
{
"type": "function",
"name": "owner",
Expand Down Expand Up @@ -1001,6 +1019,19 @@
],
"outputs": []
},
{
"type": "function",
"name": "registerOperator",
"stateMutability": "nonpayable",
"inputs": [
{
"name": "_operator",
"type": "address",
"internalType": "address"
}
],
"outputs": []
},
{
"type": "function",
"name": "remainingAuthorizationDecreaseDelay",
Expand Down Expand Up @@ -1167,25 +1198,6 @@
],
"outputs": []
},
{
"type": "function",
"name": "stakingProviderFromOperator",
"stateMutability": "view",
"inputs": [
{
"name": "_operator",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
]
},
{
"type": "function",
"name": "stakingProviderInfo",
Expand Down Expand Up @@ -1245,6 +1257,25 @@
}
]
},
{
"type": "function",
"name": "stakingProviderToOperator",
"stateMutability": "view",
"inputs": [
{
"name": "_stakingProvider",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
]
},
{
"type": "function",
"name": "stakingProviders",
Expand Down Expand Up @@ -1317,9 +1348,9 @@
"outputs": []
}
],
"tx_hash": "0xfe32445a73839f513259ea38804f1e51c5dc09e2ab67b6510d1b73357dcc4ef3",
"block_number": 10018886,
"deployer": "0x3B42d26E19FF860bC4dEbB920DD8caA53F93c600"
"tx_hash": "0xb9cd5deb857d4e74e45bcd9dd435f3fccf08cdb8c91ac0ca9da36c47210eb149",
"block_number": 4776043,
"deployer": "0x24dbb0BEE134C3773D2C1791d65d99e307Fe86CF"
}
}
}
27 changes: 16 additions & 11 deletions deployment/constructor_params/dashboard/root.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,36 @@
deployment:
name: dashboard-root
chain_id: 5
chain_id: 11155111 # Sepolia Testnet

artifacts:
dir: ./deployment/artifacts/
filename: dashboard.json

constants:
IN_SECONDS_1_HOUR: 3600
IN_SECONDS_7_DAYS: 604800
IN_SECONDS_60_DAYS: 5184000
IN_SECONDS_1_DAY: 86400
IN_SECONDS_182_DAYS: 15724800
IN_SECONDS_364_DAYS: 31449600
IN_SECONDS_AVERAGE_MONTH_DURATION: 2628000 # 365*24*60*60/12
FORTY_THOUSAND_TOKENS_IN_WEI_UNITS: 40000000000000000000000
YEAR_2025: 1735689600
TIMESTAMP_FOR_2023_12_30_2359_UTC: 1703980799
# https://app.safe.global/home?safe=sep:0xED152d8E2ba12C9E51D4170047877966bCcD5190
SEPOLIA_SAFE: "0xED152d8E2ba12C9E51D4170047877966bCcD5190"
# Sepolia Threshold addresses - see https://docs.threshold.network/resources/contract-addresses/sepolia-testnet
SEPOLIA_T_TOKEN: "0x46abDF5aD1726ba700794539C3dB8fE591854729"
SEPOLIA_T_STAKING: "0x3d4cb85c0e3c5bd1667B7E30f3E86B3FAB878Ff8"

contracts:
- TACoApplication:
proxy:
constructor:
initialOwner: $SEPOLIA_SAFE # Upgrades owner
_data: $encode:initialize
constructor:
_token: "0x3f16380656cAE45D3f80D8833682d2b606eD094A"
_tStaking: "0x1da5d88C26EA4f87b5e09C3452eE2384Ee20DC75"
_token: $SEPOLIA_T_TOKEN
_tStaking: $SEPOLIA_T_STAKING
_minimumAuthorization: $FORTY_THOUSAND_TOKENS_IN_WEI_UNITS
_minOperatorSeconds: $IN_SECONDS_1_HOUR
_rewardDuration: $IN_SECONDS_7_DAYS
_deauthorizationDuration: $IN_SECONDS_60_DAYS
_minOperatorSeconds: $IN_SECONDS_1_DAY
_rewardDuration: $IN_SECONDS_AVERAGE_MONTH_DURATION
_deauthorizationDuration: $IN_SECONDS_182_DAYS
_commitmentDurationOptions: [$IN_SECONDS_182_DAYS, $IN_SECONDS_364_DAYS]
_commitmentDeadline: $YEAR_2025
_commitmentDeadline: $TIMESTAMP_FOR_2023_12_30_2359_UTC

0 comments on commit b3c1deb

Please sign in to comment.