Skip to content

Commit 675e693

Browse files
committed
chore: add ci-preview env addresses
1 parent 422f1c7 commit 675e693

File tree

2 files changed

+65
-0
lines changed

2 files changed

+65
-0
lines changed

dev/envs/ci-preview/.envrc

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
export GENESIS_UTXO="de7b8efb08243b770be30cfa22a9ed64317c50052bb4394392960ddcc9810048#1"
2+
3+
# unique identifier of the beneficiary that will be credited
4+
# producer rewards for blocks produced by this node
5+
export SIDECHAIN_BLOCK_BENEFICIARY="0x0000000000000000000000000000000000000000000000000000000000000201"
6+
7+
# below exports parse config/addresses.json file, which needs to regenerated for each new sidechain by running
8+
# sidechain-main-cli addresses ... > config/addresses.json
9+
export COMMITTEE_CANDIDATE_ADDRESS=$(jq -r '.addresses.CommitteeCandidateValidator' dev/envs/ci-preview/addresses.json)
10+
export D_PARAMETER_POLICY_ID=$(jq -r '.mintingPolicies.DParameterPolicy' dev/envs/ci-preview/addresses.json)
11+
export PERMISSIONED_CANDIDATES_POLICY_ID=$(jq -r '.mintingPolicies.PermissionedCandidatesPolicy' dev/envs/ci-preview/addresses.json)
12+
13+
# native token observability
14+
export NATIVE_TOKEN_POLICY_ID='ada83ddd029614381f00e28de0922ab0dec6983ea9dd29ae20eef9b4'
15+
export NATIVE_TOKEN_ASSET_NAME='5043546f6b656e44656d6f'
16+
export ILLIQUID_SUPPLY_VALIDATOR_ADDRESS='addr_test1wrhvtvx3f0g9wv9rx8kfqc60jva3e07nqujk2cspekv4mqs9rjdvz'
17+
18+
# Preview parameters
19+
export CARDANO_SECURITY_PARAMETER=432
20+
export CARDANO_ACTIVE_SLOTS_COEFF=0.05
21+
export DB_SYNC_POSTGRES_CONNECTION_STRING="postgres://postgres:password123@localhost/cexplorer"
22+
23+
# A minimum block distance from the most recent MC stable block.
24+
# Used by block producers to select the stable block to include in the block header.
25+
export BLOCK_STABILITY_MARGIN=0
26+
27+
# Timestamp for the MC_FIRST_EPOCH_NUMBER
28+
# Genesis should not have a timestamp before this one, this should be divisible by both sidechain slot and epoch durations
29+
export MC__FIRST_EPOCH_TIMESTAMP_MILLIS=1666656000000
30+
# First Shelley epoch number on Cardano
31+
export MC__FIRST_EPOCH_NUMBER=0
32+
# Should be divisible by Sidechain epoch duration (which is SlotDuration * SlotsPerEpoch and those params can be found in runtime/src/lib.rs)
33+
export MC__EPOCH_DURATION_MILLIS=86400000
34+
# First Shelley slot number on Cardano
35+
export MC__FIRST_SLOT_NUMBER=0
36+
37+
# When true, node will use the mock implementation of main chain follower. Overrides USE_INTERNAL_MAIN_CHAIN_FOLLOWER if true.
38+
export USE_MAIN_CHAIN_FOLLOWER_MOCK=false
39+
# This one is redundant when USE_MAIN_CHAIN_FOLLOWER_MOCK is absent of 'false'.
40+
#export MAIN_CHAIN_FOLLOWER_MOCK_REGISTRATIONS_FILE=res/bb-mock/default-registrations.json

dev/envs/ci-preview/addresses.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"endpoint": "GetAddrs",
3+
"addresses": {
4+
"CommitteeCandidateValidator": "addr_test1wp4sjcwh2n7qmtmjyzq70ax5sgk32krytkqu9vrg8vxp82g0lkps6",
5+
"VersionOracleValidator": "addr_test1wzm7xhlxtuquuk6594sh4xuu874850vzrwh5x272yvdf3ngx5phw2",
6+
"PermissionedCandidatesValidator": "addr_test1wpfs2kw8a8ry0svtmdexmqyjz67qxmssgufg688ykw7ruucjj3856",
7+
"DParameterValidator": "addr_test1wpvtw0r3acskmgrphlz0m4c57djpxdvw9gdcwx0rwter9acadwzzc",
8+
"ReserveValidator": "addr_test1wz6tjn546lnvjftl08mw8xhv8n3amr7rze6emn49wjnwn6qwqefww",
9+
"IlliquidCirculationSupplyValidator": "addr_test1wzzjx5flq6xj5ydp62vn57v46e8hrspj7q693qtz2m7ya8qekdzlk"
10+
},
11+
"validatorHashes": {
12+
"CommitteeCandidateValidator": "6b0961d754fc0daf722081e7f4d4822d1558645d81c2b0683b0c13a9",
13+
"VersionOracleValidator": "b7e35fe65f01ce5b542d617a9b9c3faa7a3d821baf432bca231a98cd",
14+
"PermissionedCandidatesValidator": "530559c7e9c647c18bdb726d809216bc036e1047128d1ce4b3bc3e73",
15+
"DParameterValidator": "58b73c71ee216da061bfc4fdd714f36413358e2a1b8719e372f232f7",
16+
"ReserveValidator": "b4b94e95d7e6c9257f79f6e39aec3ce3dd8fc316759dcea574a6e9e8",
17+
"IlliquidCirculationSupplyValidator": "8523513f068d2a11a1d2993a7995d64f71c032f03458816256fc4e9c"
18+
},
19+
"mintingPolicies": {
20+
"VersionOraclePolicy": "488996bae9a3a1c48183f47debef321c957028c9664a397dae7d8222",
21+
"PermissionedCandidatesPolicy": "1c99b6b45338e56ef7765c4d38163acd40954f21d451e59d746a31f6",
22+
"DParameterPolicy": "7c4678633cab3ab39fc5880e15c3bc4fb41a6ac6eb7d7deb71bc8b07",
23+
"ReserveAuthPolicy": "41478956696ac58c8672723a245aab289fb40abb9bf71e17ada64f2b"
24+
}
25+
}

0 commit comments

Comments
 (0)