Skip to content

Commit

Permalink
dev: deploy staging env on sepolia (#1497)
Browse files Browse the repository at this point in the history
<!--- Please provide a general summary of your changes in the title
above -->

<!-- Give an estimate of the time you spent on this PR in terms of work
days.
Did you spend 0.5 days on this PR or rather 2 days?  -->

Time spent on this PR: 0.1 day

## Pull request type

<!-- Please try to limit your pull request to one type,
submit multiple pull requests if needed. -->

Please check the type of change your PR introduces:

- [ ] Bugfix
- [ ] Feature
- [ ] Code style update (formatting, renaming)
- [ ] Refactoring (no functional changes, no api changes)
- [ ] Build related changes
- [x] Documentation content changes
- [ ] Other (please describe):

## What is the new behavior?
Deploys a new Kakarot contract that will be used for staging purposes.

<!-- Reviewable:start -->
- - -
This change is [<img src="https://reviewable.io/review_button.svg"
height="34" align="absmiddle"
alt="Reviewable"/>](https://reviewable.io/reviews/kkrt-labs/kakarot/1497)
<!-- Reviewable:end -->
  • Loading branch information
greged93 authored Oct 11, 2024
1 parent b04587d commit 90a643d
Show file tree
Hide file tree
Showing 6 changed files with 60 additions and 10 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ venv
deployments/*
!deployments/kakarot-sepolia/
!deployments/starknet-sepolia/
!deployments/starknet-sepolia-staging/
!deployments/starknet-mainnet/
!deployments/kakarot-staging/
artifacts
Expand Down
18 changes: 9 additions & 9 deletions .trunk/trunk.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
version: 0.1
cli:
version: 1.22.4
version: 1.22.6
plugins:
sources:
- id: trunk
ref: v1.6.2
ref: v1.6.3
uri: https://github.com/trunk-io/plugins
runtimes:
enabled:
Expand Down Expand Up @@ -39,21 +39,21 @@ lint:
read_output_from: stdout
run_linter_from: workspace
enabled:
- osv-scanner@1.8.4
- trivy@0.54.1
- osv-scanner@1.9.0
- trivy@0.56.1
- cairo@SYSTEM
- solidity@SYSTEM
- actionlint@1.7.1
- black@24.8.0
- checkov@3.2.242
- actionlint@1.7.3
- black@24.10.0
- checkov@3.2.257
- codespell@2.3.0
- git-diff-check
- hadolint@2.12.0
- isort@5.13.2
- markdownlint@0.41.0
- markdownlint@0.42.0
- oxipng@9.1.2
- prettier@3.3.3
- ruff@0.6.3
- ruff@0.6.9
- shellcheck@0.10.0
- shfmt@3.6.0
- taplo@0.9.3
Expand Down
18 changes: 18 additions & 0 deletions deployments/starknet-sepolia-staging/declarations.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"account_contract": "0x25d4b4889979f3df8171991f6a0163b42b756daebf313bcd0dec74cacf903f9",
"BalanceSender": "0x74bbbe278acf68f240004d5e38c9d12a7dea6c8d6c7e956d691509d5844be6c",
"BenchmarkCairoCalls": "0x58dc8a979af32668e05579313d1d6c672d3b668f72778780e8b2e97964159c3",
"Cairo1Helpers": "0x6c84a7ed6ee3fa25d198f058b8c8a06d9d4e4dc040efd6fa4d741f00fdc1b63",
"Cairo1HelpersFixture": "0x3810527e57a1df22d701b2c48f3d739e8fe3550876cb16435706d1448f89cbe",
"Counter": "0x27ccfaf84757dabd7885d410018bf0e264c881e4799a47f555b96bf21e5af5b",
"ERC20": "0xb36ee7670ae475d6c195e066201a526f7d850bb01961850405dcbd7aedd9bc",
"EVM": "0x586235fb226e2703fae36312476786cb6a70a5632ebcc4a5e4f9c642566f964",
"kakarot": "0x6583c98e878bb450518cccb0c667d6279cb780dc0eac1bcae883ce1e34e8771",
"MockPragmaOracle": "0x675f00328ff84f127d71b179b3f3a3a06ce8432054770cddd5729c8d62866da",
"OpenzeppelinAccount": "0x3a58e037be64a3608dfe423eeb8a77b400b0f56f1f5e0ed4937d3c873f988e2",
"replace_class": "0x451a4decb11b581b288d8a0512ab6f6ea7f1fd89caefbb415e510ec7f17efe1",
"StarknetToken": "0x314a6a9f01e5a28beb6a7e2e8907243469d98a7e364054657e7593bea5dcee7",
"uninitialized_account_fixture": "0x60d4817e4e3881965ff4e27a55a4a7da7bf2865c7209bdb367af2f86c740b35",
"uninitialized_account": "0x7b2de5e73ff7eb338d76c967dd5aa3f3004574d326b8c1402bb819d4983b8b6",
"UniversalLibraryCaller": "0x244fd35db35b48882ca2e6c2966821bd54f302b131fb22ea98e5534da390482"
}
8 changes: 8 additions & 0 deletions deployments/starknet-sepolia-staging/deployments.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"EVM": "0x168990f4995fefdd9b4feb5bbfe62dc665950eafaaed4fd83cce173a534a161",
"Counter": "0x5785f46ccba39af91693e162baa3d9db0d4aeea316e82c85c204b48b74da060",
"MockPragmaOracle": "0x40defdc02602d71d53daf87f53ba4dca0de26384f1e9834411b38700439648f",
"UniversalLibraryCaller": "0xcf3afbce535bd3a85d776d4646d34e8b510ce7eb7580a64616e731a4012515",
"BenchmarkCairoCalls": "0x3564648a7110e73f4672733c59b5ac81eff8dbc1ab46491216452e130abc6b4",
"kakarot": "0x48fc2888aad166304e63af35a48e00e32da9831e49fe30a22148fdecdb7e66f"
}
10 changes: 10 additions & 0 deletions deployments/starknet-sepolia-staging/kakarot_deployments.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"Bridge": {
"address": "0x663f3ad617193148711d28f5334ee4ed07016602",
"starknet_address": "0x3c4fbbf15be984c1c17658f0b6ca0155c75ffc61551020d4a566165b2ce7a61"
},
"WETH": {
"address": "0x2e983a1ba5e8b38aaaec4b440b9ddcfbf72e15d1",
"starknet_address": "0x130a102efefe1bee562f6d014ba32499d578895781a17271458e228fbe0b346"
}
}
15 changes: 14 additions & 1 deletion kakarot_scripts/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,20 @@ class NetworkType(Enum):
"type": NetworkType.STAGING,
"chain_id": StarknetChainId.SEPOLIA,
"check_interval": 1,
"max_wait": 20,
"max_wait": 30,
"class_hash": 0x061DAC032F228ABEF9C6626F995015233097AE253A7F72D68552DB02F2971B8F,
"voyager_api_url": "https://sepolia-api.voyager.online/beta",
"argent_multisig_api": "https://cloud.argent-api.com/v1/multisig/starknet/sepolia",
},
"sepolia-staging": {
"name": "starknet-sepolia-staging",
"explorer_url": "https://sepolia.starkscan.co/",
"rpc_url": f"https://rpc.nethermind.io/sepolia-juno/?apikey={os.getenv('NETHERMIND_API_KEY')}",
"l1_rpc_url": f"https://sepolia.infura.io/v3/{os.getenv('INFURA_KEY')}",
"type": NetworkType.STAGING,
"chain_id": StarknetChainId.SEPOLIA,
"check_interval": 1,
"max_wait": 30,
"class_hash": 0x061DAC032F228ABEF9C6626F995015233097AE253A7F72D68552DB02F2971B8F,
"voyager_api_url": "https://sepolia-api.voyager.online/beta",
"argent_multisig_api": "https://cloud.argent-api.com/v1/multisig/starknet/sepolia",
Expand Down

0 comments on commit 90a643d

Please sign in to comment.