Skip to content

Commit 1a7d35e

Browse files
committed
fix: test validator setup
1 parent 13d6b4f commit 1a7d35e

19 files changed

Lines changed: 3409 additions & 40 deletions

deploy/build-code-on-arm-target-amd64.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22
echo "Building sources for linux:amd64 into ./release/pchaind inside a container"
33
CUR_DIR=$(pwd)
44
cd .. || exit
5-
docker buildx build --platform linux/amd64 -t pnode-main .
5+
mkdir -p build
6+
docker buildx build --platform linux/amd64 -t pnode-main --load .
67
docker create --platform linux/amd64 --name tmp pnode-main
78
mkdir -p build # Create build directory in the project root
89
docker cp tmp:/usr/bin/pchaind build/pchaind
910
# should print x64
1011
file build/pchaind
11-
docker rm tmp
12+
docker rm -f tmp 2>/dev/null || true
1213
cd "$CUR_DIR" || exit

deploy/test-push-chain/config/genesis.json

Lines changed: 86 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"app_name": "pchaind",
3-
"app_version": "782c3e9",
4-
"genesis_time": "2025-03-28T16:36:15.682497737Z",
3+
"app_version": "d32281f",
4+
"genesis_time": "2025-06-20T09:33:12.281734974Z",
55
"chain_id": "push_42101-1",
66
"initial_height": 1,
77
"app_hash": null,
@@ -21,24 +21,45 @@
2121
"accounts": [
2222
{
2323
"@type": "/cosmos.auth.v1beta1.BaseAccount",
24-
"address": "push1gjaw568e35hjc8udhat0xnsxxmkm2snrexxz20",
24+
"address": "push1jtdw9kjc2yptl6yjyad69q73v2gcl29xfmmq5a",
2525
"pub_key": null,
2626
"account_number": "0",
2727
"sequence": "0"
2828
},
2929
{
3030
"@type": "/cosmos.auth.v1beta1.BaseAccount",
31-
"address": "push1j0v5urpud7kwsk9zgz2tc0v9d95ct6t5qxv38h",
31+
"address": "push1fz5mkhr23kypp5ejq8u2ucltvm4gw2ln5vnpcz",
3232
"pub_key": null,
3333
"account_number": "1",
3434
"sequence": "0"
3535
},
3636
{
3737
"@type": "/cosmos.auth.v1beta1.BaseAccount",
38-
"address": "push1fgaewhyd9fkwtqaj9c233letwcuey6dgly9gv9",
38+
"address": "push1cxrtcjgrxzup0s548467cqhtytmfh0cf4lzy2y",
3939
"pub_key": null,
4040
"account_number": "2",
4141
"sequence": "0"
42+
},
43+
{
44+
"@type": "/cosmos.auth.v1beta1.BaseAccount",
45+
"address": "push1jm42e22eqxzcknhkhf3rrhpevpk0zcyv3c68xa",
46+
"pub_key": null,
47+
"account_number": "3",
48+
"sequence": "0"
49+
},
50+
{
51+
"@type": "/cosmos.auth.v1beta1.BaseAccount",
52+
"address": "push1v9vw2m3jrrxeyql07ec63n8amrkhpl94ttsfsv",
53+
"pub_key": null,
54+
"account_number": "4",
55+
"sequence": "0"
56+
},
57+
{
58+
"@type": "/cosmos.auth.v1beta1.BaseAccount",
59+
"address": "push1xlwcrca7kz6hcgsgzjdfznq99gqqgjd8d3llhe",
60+
"pub_key": null,
61+
"account_number": "5",
62+
"sequence": "0"
4263
}
4364
]
4465
},
@@ -52,41 +73,56 @@
5273
},
5374
"balances": [
5475
{
55-
"address": "push1gjaw568e35hjc8udhat0xnsxxmkm2snrexxz20",
76+
"address": "push1xlwcrca7kz6hcgsgzjdfznq99gqqgjd8d3llhe",
5677
"coins": [
5778
{
5879
"denom": "upc",
59-
"amount": "5000000000000000000000000000"
60-
},
61-
{
62-
"denom": "test",
63-
"amount": "100000000"
80+
"amount": "1000000000000000000000000"
6481
}
6582
]
6683
},
6784
{
68-
"address": "push1fgaewhyd9fkwtqaj9c233letwcuey6dgly9gv9",
85+
"address": "push1fz5mkhr23kypp5ejq8u2ucltvm4gw2ln5vnpcz",
6986
"coins": [
7087
{
7188
"denom": "upc",
7289
"amount": "2000000000000000000000000000"
73-
},
90+
}
91+
]
92+
},
93+
{
94+
"address": "push1v9vw2m3jrrxeyql07ec63n8amrkhpl94ttsfsv",
95+
"coins": [
7496
{
75-
"denom": "test",
76-
"amount": "90000000"
97+
"denom": "upc",
98+
"amount": "1999000000000000000000000000"
7799
}
78100
]
79101
},
80102
{
81-
"address": "push1j0v5urpud7kwsk9zgz2tc0v9d95ct6t5qxv38h",
103+
"address": "push1jtdw9kjc2yptl6yjyad69q73v2gcl29xfmmq5a",
82104
"coins": [
83105
{
84106
"denom": "upc",
85-
"amount": "3000000000000000000000000000"
86-
},
107+
"amount": "2000000000000000000000000000"
108+
}
109+
]
110+
},
111+
{
112+
"address": "push1jm42e22eqxzcknhkhf3rrhpevpk0zcyv3c68xa",
113+
"coins": [
87114
{
88-
"denom": "test",
89-
"amount": "90000000"
115+
"denom": "upc",
116+
"amount": "2000000000000000000000000000"
117+
}
118+
]
119+
},
120+
{
121+
"address": "push1cxrtcjgrxzup0s548467cqhtytmfh0cf4lzy2y",
122+
"coins": [
123+
{
124+
"denom": "upc",
125+
"amount": "2000000000000000000000000000"
90126
}
91127
]
92128
}
@@ -95,10 +131,6 @@
95131
{
96132
"denom": "upc",
97133
"amount": "10000000000000000000000000000"
98-
},
99-
{
100-
"denom": "test",
101-
"amount": "280000000"
102134
}
103135
],
104136
"denom_metadata": [],
@@ -202,6 +234,7 @@
202234
}
203235
},
204236
"active_static_precompiles": [
237+
"0x00000000000000000000000000000000000000ca",
205238
"0x0000000000000000000000000000000000000100",
206239
"0x0000000000000000000000000000000000000400",
207240
"0x0000000000000000000000000000000000000800",
@@ -225,12 +258,12 @@
225258
},
226259
"feemarket": {
227260
"params": {
228-
"no_base_fee": true,
261+
"no_base_fee": false,
229262
"base_fee_change_denominator": 8,
230263
"elasticity_multiplier": 2,
231264
"enable_height": "0",
232-
"base_fee": "0.000000000000000000",
233-
"min_gas_price": "0.000000000000000000",
265+
"base_fee": "1000000000.000000000000000000",
266+
"min_gas_price": "1000000000.000000000000000000",
234267
"min_gas_multiplier": "0.500000000000000000"
235268
},
236269
"block_gas": "0"
@@ -243,7 +276,7 @@
243276
{
244277
"@type": "/cosmos.staking.v1beta1.MsgCreateValidator",
245278
"description": {
246-
"moniker": "pn1",
279+
"moniker": "donut-node1",
247280
"identity": "",
248281
"website": "",
249282
"security_contact": "",
@@ -255,19 +288,19 @@
255288
"max_change_rate": "0.010000000000000000"
256289
},
257290
"min_self_delegation": "1",
258-
"delegator_address": "",
259-
"validator_address": "pushvaloper1gjaw568e35hjc8udhat0xnsxxmkm2snrjnakhg",
291+
"delegator_address": "push1xlwcrca7kz6hcgsgzjdfznq99gqqgjd8d3llhe",
292+
"validator_address": "pushvaloper1xlwcrca7kz6hcgsgzjdfznq99gqqgjd8xyyt27",
260293
"pubkey": {
261294
"@type": "/cosmos.crypto.ed25519.PubKey",
262-
"key": "rOvGqLXH/2aD0LLU7XSR65k1DXL+66205numiS/SvWE="
295+
"key": "hdCU14GdIwN4PqEJoLPdJGQTYKjZO46xKT9HfMcveak="
263296
},
264297
"value": {
265298
"denom": "upc",
266299
"amount": "10000000000000000000000"
267300
}
268301
}
269302
],
270-
"memo": "bc7105d5927a44638ac2ad7f6986ec98dacc5ac6@10.128.0.3:26656",
303+
"memo": "dc323e3c930d12369723373516267a213d74ea37@10.128.0.4:26656",
271304
"timeout_height": "0",
272305
"extension_options": [],
273306
"non_critical_extension_options": []
@@ -276,8 +309,8 @@
276309
"signer_infos": [
277310
{
278311
"public_key": {
279-
"@type": "/os.crypto.v1.ethsecp256k1.PubKey",
280-
"key": "AoV6ASYGHQ7fysdpqzKeEqf4AwR0ueue/6sqyOIgA0NZ"
312+
"@type": "/cosmos.evm.crypto.v1.ethsecp256k1.PubKey",
313+
"key": "Ajnxpc+dCk1HCJWORUJJqEdpzG+ZWylvR7921ObM1NR7"
281314
},
282315
"mode_info": {
283316
"single": {
@@ -288,15 +321,20 @@
288321
}
289322
],
290323
"fee": {
291-
"amount": [],
324+
"amount": [
325+
{
326+
"denom": "upc",
327+
"amount": "200000000000000"
328+
}
329+
],
292330
"gas_limit": "200000",
293331
"payer": "",
294332
"granter": ""
295333
},
296334
"tip": null
297335
},
298336
"signatures": [
299-
"9kCHpkqzHwTQo3A3Cpxo12GGOjsrFtVAFRs7SRpEccFQeYkCRqg+nh7194VKununHB0rQUt0odWqaywMtQlhhgE="
337+
"au7jCwl7sqTNe4m6cr3BtPqCkwD4WBuvpmtcjBJE/Uk5i/juxhvtLW0M4arZIzq0ZUTR3zEcj11KCtxRgWt/0QA="
300338
]
301339
}
302340
]
@@ -317,14 +355,14 @@
317355
}
318356
],
319357
"max_deposit_period": "172800s",
320-
"voting_period": "30s",
358+
"voting_period": "172800s",
321359
"quorum": "0.334000000000000000",
322360
"threshold": "0.500000000000000000",
323361
"veto_threshold": "0.334000000000000000",
324362
"min_initial_deposit_ratio": "0.000000000000000000",
325363
"proposal_cancel_ratio": "0.500000000000000000",
326364
"proposal_cancel_dest": "",
327-
"expedited_voting_period": "15s",
365+
"expedited_voting_period": "86400s",
328366
"expedited_threshold": "0.667000000000000000",
329367
"expedited_min_deposit": [
330368
{
@@ -490,7 +528,17 @@
490528
},
491529
"total_escrowed": []
492530
},
531+
"ue": {
532+
"params": {
533+
"admin": "push1jtdw9kjc2yptl6yjyad69q73v2gcl29xfmmq5a"
534+
}
535+
},
493536
"upgrade": {},
537+
"utv": {
538+
"params": {
539+
"some_value": true
540+
}
541+
},
494542
"vesting": {},
495543
"wasm": {
496544
"params": {

push-node-manager/.dockerignore

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Git files
2+
.git
3+
.gitignore
4+
5+
# Documentation
6+
README.md
7+
*.md
8+
9+
# Build artifacts
10+
build/
11+
dist/
12+
target/
13+
14+
# IDE files
15+
.vscode/
16+
.idea/
17+
*.swp
18+
*.swo
19+
*~
20+
21+
# OS files
22+
.DS_Store
23+
Thumbs.db
24+
25+
# Logs
26+
*.log
27+
logs/
28+
29+
# Temporary files
30+
*.tmp
31+
*.temp
32+
33+
# Docker files (not needed in container)
34+
Dockerfile
35+
docker-compose.yml
36+
.dockerignore
37+
build.sh

0 commit comments

Comments
 (0)