Skip to content

Commit

Permalink
chore: update storages and generate.py
Browse files Browse the repository at this point in the history
  • Loading branch information
pythonberg1997 committed Dec 11, 2023
1 parent 1c23cbe commit c1378cf
Show file tree
Hide file tree
Showing 34 changed files with 719 additions and 100 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ All system contracts will be flattened and output into `${workspace}/contracts/f
3. Edit system contracts setting as needed.
4. Run `node scripts/generate-genesis.js` will generate genesis.json

## How to generate mainnet/testnet/QA/local genesis file
## How to generate mainnet/testnet/QA/dev genesis file

```shell
poetry run python -m scripts.generate ${network}
Expand Down
39 changes: 39 additions & 0 deletions abi/bscvalidatorset.abi
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,19 @@
],
"stateMutability": "view"
},
{
"type": "function",
"name": "GOV_TOKEN_ADDR",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "INCENTIVIZE_ADDR",
Expand Down Expand Up @@ -419,6 +432,19 @@
],
"stateMutability": "view"
},
{
"type": "function",
"name": "STAKE_CREDIT_ADDR",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "STAKE_HUB_ADDR",
Expand Down Expand Up @@ -484,6 +510,19 @@
],
"stateMutability": "view"
},
{
"type": "function",
"name": "TIMELOCK_ADDR",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "TOKEN_HUB_ADDR",
Expand Down
39 changes: 39 additions & 0 deletions abi/crosschain.abi
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,19 @@
],
"stateMutability": "view"
},
{
"type": "function",
"name": "GOV_TOKEN_ADDR",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "INCENTIVIZE_ADDR",
Expand Down Expand Up @@ -311,6 +324,19 @@
],
"stateMutability": "view"
},
{
"type": "function",
"name": "STAKE_CREDIT_ADDR",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "STAKE_HUB_ADDR",
Expand Down Expand Up @@ -402,6 +428,19 @@
],
"stateMutability": "view"
},
{
"type": "function",
"name": "TIMELOCK_ADDR",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "TOKEN_HUB_ADDR",
Expand Down
39 changes: 39 additions & 0 deletions abi/govhub.abi
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,19 @@
],
"stateMutability": "view"
},
{
"type": "function",
"name": "GOV_TOKEN_ADDR",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "INCENTIVIZE_ADDR",
Expand Down Expand Up @@ -207,6 +220,19 @@
],
"stateMutability": "view"
},
{
"type": "function",
"name": "STAKE_CREDIT_ADDR",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "STAKE_HUB_ADDR",
Expand Down Expand Up @@ -259,6 +285,19 @@
],
"stateMutability": "view"
},
{
"type": "function",
"name": "TIMELOCK_ADDR",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "TOKEN_HUB_ADDR",
Expand Down
39 changes: 39 additions & 0 deletions abi/relayerhub.abi
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,19 @@
],
"stateMutability": "view"
},
{
"type": "function",
"name": "GOV_TOKEN_ADDR",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "INCENTIVIZE_ADDR",
Expand Down Expand Up @@ -194,6 +207,19 @@
],
"stateMutability": "view"
},
{
"type": "function",
"name": "STAKE_CREDIT_ADDR",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "STAKE_HUB_ADDR",
Expand Down Expand Up @@ -246,6 +272,19 @@
],
"stateMutability": "view"
},
{
"type": "function",
"name": "TIMELOCK_ADDR",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "TOKEN_HUB_ADDR",
Expand Down
39 changes: 39 additions & 0 deletions abi/relayerincentivize.abi
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,19 @@
],
"stateMutability": "view"
},
{
"type": "function",
"name": "GOV_TOKEN_ADDR",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "HEADER_RELAYER_REWARD_RATE_DENOMINATOR",
Expand Down Expand Up @@ -250,6 +263,19 @@
],
"stateMutability": "view"
},
{
"type": "function",
"name": "STAKE_CREDIT_ADDR",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "STAKE_HUB_ADDR",
Expand Down Expand Up @@ -302,6 +328,19 @@
],
"stateMutability": "view"
},
{
"type": "function",
"name": "TIMELOCK_ADDR",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "TOKEN_HUB_ADDR",
Expand Down
45 changes: 42 additions & 3 deletions abi/slashindicator.abi
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,19 @@
],
"stateMutability": "view"
},
{
"type": "function",
"name": "GOV_TOKEN_ADDR",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "INCENTIVIZE_ADDR",
Expand All @@ -144,7 +157,7 @@
},
{
"type": "function",
"name": "INIT_FINALITY_SLASH_REWARD_RATIO",
"name": "INIT_FELONY_SLASH_REWARD_RATIO",
"inputs": [],
"outputs": [
{
Expand Down Expand Up @@ -233,6 +246,19 @@
],
"stateMutability": "view"
},
{
"type": "function",
"name": "STAKE_CREDIT_ADDR",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "STAKE_HUB_ADDR",
Expand Down Expand Up @@ -285,6 +311,19 @@
],
"stateMutability": "view"
},
{
"type": "function",
"name": "TIMELOCK_ADDR",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "TOKEN_HUB_ADDR",
Expand Down Expand Up @@ -429,7 +468,7 @@
},
{
"type": "function",
"name": "felonyThreshold",
"name": "felonySlashRewardRatio",
"inputs": [],
"outputs": [
{
Expand All @@ -442,7 +481,7 @@
},
{
"type": "function",
"name": "finalitySlashRewardRatio",
"name": "felonyThreshold",
"inputs": [],
"outputs": [
{
Expand Down
Loading

0 comments on commit c1378cf

Please sign in to comment.