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

ZK-611: contract deployment environments #47

Merged
merged 20 commits into from
Dec 12, 2024
Merged

Conversation

kroist
Copy link
Collaborator

@kroist kroist commented Dec 11, 2024

No description provided.

Copy link

github-actions bot commented Dec 11, 2024

Transaction NameMainCurrentDifference (%)
NewAccountNative20002392000275+0.00180%
DepositNative18278251827837+0.00066%
WithdrawNative18980571898081+0.00126%

@kroist kroist requested a review from mikogs December 11, 2024 16:31
Comment on lines -18 to -23
-z '${{ vars.CI_TESTNET_ALICE_PUBLIC_KEY }} }}' || \
-z '${{ vars.CI_TESTNET_BOB_PUBLIC_KEY }} }}' || \
-z '${{ vars.CI_TESTNET_CHARLIE_PUBLIC_KEY }} }}' || \
-z '${{ vars.CI_TESTNET_TS_SDK_PUBLIC_KEY }} }}' || \
-z '${{ vars.CI_TESTNET_RELAYER_SIGNER_ADDRESSES }} }}' || \
-z '${{ vars.CI_TESTNET_FEE_DESTINATION }} }}'
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this was NOT working

@kroist kroist requested a review from fbielejec December 11, 2024 16:38
default: "testnet-dev"
type: choice
options:
- "testnet-dev"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update this PR with latest changes. I have modified the environments to be dev, stage and prod (without the chain environment in the name).

# for "testnet-dev" we use default owner address, as it's not important
- name: Set environment-specific variables
run: |
if [ "${{ github.event.inputs.environment }}" == "testnet-dev" ]; then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just as in the previous comment - change the env name

@@ -85,6 +110,19 @@ jobs:

cat contract_spec_with_block_numbers.json

- name: Determine address to store
run: |
if [ "${{ github.event.inputs.environment }}" == "testnet-dev" ]; then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change env name here as well

@@ -12,8 +12,9 @@ contract DeployShielderScript is Script {
function run() external {
uint256 privateKey = vm.envUint("PRIVATE_KEY");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe we could rename it to DEPLOYER_PRIVATE_KEY for consistency with the Actions env vars?

@kroist kroist merged commit 60321d0 into main Dec 12, 2024
24 checks passed
@kroist kroist deleted the ZK-611-contract-deployment branch December 12, 2024 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants