Skip to content

Instantly share code, notes, and snippets.

@ilyar
Last active September 12, 2024 15:50
Show Gist options
  • Save ilyar/ceb2a04bae8ffb068409530f8e75b4df to your computer and use it in GitHub Desktop.
Save ilyar/ceb2a04bae8ffb068409530f8e75b4df to your computer and use it in GitHub Desktop.
{
"p0": "5555555555555555555555555555555555555555555555555555555555555555",
"p1": "3333333333333333333333333333333333333333333333333333333333333333",
"p2": "0000000000000000000000000000000000000000000000000000000000000000",
"p7": [
{
"currency": 239,
"value": "666666666666"
},
{
"currency": 4294967279,
"value": "1000000000000"
}
],
"p8": {
"version": 57,
"capabilities": "543450150702"
},
"p9": [
0,
1,
9,
10,
12,
14,
15,
16,
17,
18,
20,
21,
22,
23,
24,
25,
28,
34
],
"p10": [
0,
1,
9,
10,
12,
14,
15,
16,
17,
32,
34,
36,
4294966295,
4294966296,
4294966297
],
"p11": {
"normal_params": {
"min_tot_rounds": 2,
"max_tot_rounds": 3,
"min_wins": 2,
"max_losses": 2,
"min_store_sec": 1000000,
"max_store_sec": 10000000,
"bit_price": 1,
"cell_price": 500
},
"critical_params": {
"min_tot_rounds": 4,
"max_tot_rounds": 7,
"min_wins": 4,
"max_losses": 2,
"min_store_sec": 5000000,
"max_store_sec": 20000000,
"bit_price": 2,
"cell_price": 1000
}
},
"p12": [
{
"workchain_id": 0,
"enabled_since": 1605687562,
"actual_min_split": 0,
"min_split": 4,
"max_split": 8,
"active": true,
"accept_msgs": true,
"flags": 0,
"zerostate_root_hash": "c52f085257330ec9b73b94a45b591f997849405a4de5b778edbde5f9775f9a8b",
"zerostate_file_hash": "bd1e95b4e69afbaf5b5186eeeca15a87e16c13feff53595ae6891c12a5790b05",
"version": 0,
"basic": true,
"vm_version": -1,
"vm_mode": 0
},
{
"workchain_id": 777,
"enabled_since": 1605687544,
"actual_min_split": 0,
"min_split": 5,
"max_split": 8,
"active": true,
"accept_msgs": false,
"flags": 0,
"zerostate_root_hash": "ee2f085257330ec9b73b94a45b591f997849405a4de5b778edbde5f9775f9a8b",
"zerostate_file_hash": "ff1e95b4e69afbaf5b5186eeeca15a87e16c13feff53595ae6891c12a5790b05",
"version": 0,
"basic": true,
"vm_version": -1,
"vm_mode": 0
}
],
"p13": {
"boc": "te6ccgEBAQEADQAAFRpRdIdugAEBIB9I"
},
"p14": {
"masterchain_block_fee": "1700000000",
"basechain_block_fee": "1000000000"
},
"p15": {
"validators_elected_for": 14400,
"elections_start_before": 7200,
"elections_end_before": 1800,
"stake_held_for": 7200
},
"p16": {
"max_validators": 1000,
"max_main_validators": 100,
"min_validators": 5
},
"p17": {
"min_stake": "10000000000000",
"max_stake": "10000000000000000",
"min_total_stake": "100000000000000",
"max_stake_factor": 196608
},
"p18": [
{
"utime_since": 0,
"bit_price_ps": "1",
"cell_price_ps": "500",
"mc_bit_price_ps": "1000",
"mc_cell_price_ps": "500000"
}
],
"p20": {
"flat_gas_limit": "1000",
"flat_gas_price": "10000000",
"gas_price": "655360000",
"gas_limit": "1000000",
"special_gas_limit": "100000000",
"gas_credit": "10000",
"block_gas_limit": "11000000",
"freeze_due_limit": "100000000",
"delete_due_limit": "1000000000"
},
"p21": {
"flat_gas_limit": "1000",
"flat_gas_price": "1000000",
"gas_price": "65536000",
"gas_limit": "1000000",
"special_gas_limit": "1000000",
"gas_credit": "10000",
"block_gas_limit": "10000000",
"freeze_due_limit": "100000000",
"delete_due_limit": "1000000000"
},
"p22": {
"bytes": {
"underload": 131072,
"soft_limit": 524288,
"hard_limit": 1048576
},
"gas": {
"underload": 900000,
"soft_limit": 1200000,
"hard_limit": 2000000
},
"lt_delta": {
"underload": 1000,
"soft_limit": 5000,
"hard_limit": 10000
}
},
"p23": {
"bytes": {
"underload": 131072,
"soft_limit": 524288,
"hard_limit": 1048576
},
"gas": {
"underload": 900000,
"soft_limit": 1200000,
"hard_limit": 2000000
},
"lt_delta": {
"underload": 1000,
"soft_limit": 5000,
"hard_limit": 10000
}
},
"p24": {
"lump_price": "10000000",
"bit_price": "655360000",
"cell_price": "65536000000",
"ihr_price_factor": 98304,
"first_frac": 21845,
"next_frac": 21845
},
"p25": {
"lump_price": "500000",
"bit_price": "32768000",
"cell_price": "3276800000",
"ihr_price_factor": 98304,
"first_frac": 21845,
"next_frac": 21845
},
"p28": {
"shuffle_mc_validators": true,
"mc_catchain_lifetime": 250,
"shard_catchain_lifetime": 250,
"shard_validators_lifetime": 1000,
"shard_validators_num": 7
},
"p29": {
"new_catchain_ids": true,
"round_candidates": 3,
"next_candidate_delay_ms": 2000,
"consensus_timeout_ms": 16000,
"fast_attempts": 3,
"attempt_duration": 8,
"catchain_max_deps": 4,
"max_block_bytes": 2097152,
"max_collated_bytes": 2097152
},
"p31": [
"0000000000000000000000000000000000000000000000000000000000000000",
"04f64c6afbff3dd10d8ba6707790ac9670d540f37a9448b0337baa6a5a92acac",
"3333333333333333333333333333333333333333333333333333333333333333"
],
"p34": {
"utime_since": 1605687562,
"utime_until": 1605698362,
"total": 7,
"main": 7,
"total_weight": "119",
"list": [
{
"public_key": "5457fef5bf496f65ea64d1d8bb4a90694f61fe2787cdb67d16f9ffe548d0b8d9",
"weight": "17"
},
{
"public_key": "d3ccd99924c61509fc6f1c940a3b027cc2c68f351be9eecb2ce259b4721d9aee",
"weight": "17"
},
{
"public_key": "51c45bdff0adbf75b61c186129f93361aad0bacff4b729d6061519dee5bc360c",
"weight": "17"
},
{
"public_key": "f752195a66941a6526c5bd3aef65f07d20aa4b7d9ae57a0dbb01e9d4849ca30d",
"weight": "17"
},
{
"public_key": "3d0537cd35cc24d1a2098e359b49594665f72cd9c8744c1e1b2e456c7060829a",
"weight": "17"
},
{
"public_key": "b8639405595ec2a40d65673020e7638c4588d1a72dd2c6a80ecf47499913f509",
"weight": "17"
},
{
"public_key": "bfa0d77ec39ac4fc386cfd0fb2a940b746502adbbdc361271042cea05f14e7fb",
"weight": "17"
}
]
},
"p42": {
"threshold": "0x3b9aca00",
"payouts": [
{
"license_type": 0,
"payout_percent": 30
},
{
"license_type": 1,
"payout_percent": 20
}
]
}
}
@ilyar
Copy link
Author

ilyar commented Sep 11, 2024

wget https://gist.githubusercontent.com/ilyar/ceb2a04bae8ffb068409530f8e75b4df/raw/8f18fc2fdac6d605322dcc92173a41e7e33231b8/se-blockchain.conf.json
docker rm -f ever
docker run --detach --name ever -p 80:80 -v $(pwd)/se-blockchain.conf.json:/ton-node/blockchain.conf.json tonlabs/local-node
curl -H "content-type: application/json" --data-raw '{"operationName":null,"variables":{},"query":"{blockchain {key_blocks(last: 1) { edges { node { master { config { p8 { version capabilities}}}}}}}}"}' http://localhost/graphql | jq

out

{
  "data": {
    "blockchain": {
      "key_blocks": {
        "edges": [
          {
            "node": {
              "master": {
                "config": {
                  "p8": {
                    "version": 50,
                    "capabilities": "0x7e8827372e"
                  }
                }
              }
            }
          }
        ]
      }
    }
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment