Skip to content

Commit

Permalink
Release v1.0.0 (#2515)
Browse files Browse the repository at this point in the history
* [genesis] Generate main genesis block and config example.

* [release] Prepare release v1.0.0
  • Loading branch information
jolestar authored May 18, 2021
1 parent 358812e commit 512e090
Show file tree
Hide file tree
Showing 95 changed files with 259 additions and 177 deletions.
174 changes: 87 additions & 87 deletions Cargo.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion account/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "starcoin-account"
version = "1.0.0-rc"
version = "1.0.0"
authors = ["Starcoin Core Dev <dev@starcoin.org>"]
license = "Apache-2.0"
publish = false
Expand Down
2 changes: 1 addition & 1 deletion account/api/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "starcoin-account-api"
version = "1.0.0-rc"
version = "1.0.0"
authors = ["Starcoin Core Dev <dev@starcoin.org>"]
license = "Apache-2.0"
publish = false
Expand Down
2 changes: 1 addition & 1 deletion account/service/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "starcoin-account-service"
version = "1.0.0-rc"
version = "1.0.0"
authors = ["Starcoin Core Dev <dev@starcoin.org>"]
license = "Apache-2.0"
publish = false
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "benchmarks"
version = "1.0.0-rc"
version = "1.0.0"
authors = ["Starcoin Core Dev <dev@starcoin.org>"]
license = "Apache-2.0"
publish = false
Expand Down
2 changes: 1 addition & 1 deletion block-relayer/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "starcoin-block-relayer"
version = "1.0.0-rc"
version = "1.0.0"
authors = ["Starcoin Core Dev <dev@starcoin.org>"]
license = "Apache-2.0"
publish = false
Expand Down
2 changes: 1 addition & 1 deletion chain/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "starcoin-chain"
version = "1.0.0-rc"
version = "1.0.0"
authors = ["Starcoin Core Dev <dev@starcoin.org>"]
license = "Apache-2.0"
publish = false
Expand Down
2 changes: 1 addition & 1 deletion chain/api/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "starcoin-chain-api"
version = "1.0.0-rc"
version = "1.0.0"
authors = ["Starcoin Core Dev <dev@starcoin.org>"]
license = "Apache-2.0"
publish = false
Expand Down
2 changes: 1 addition & 1 deletion chain/chain-notify/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "starcoin-chain-notify"
version = "1.0.0-rc"
version = "1.0.0"
authors = ["Starcoin Core Dev <dev@starcoin.org>"]
license = "Apache-2.0"
publish = false
Expand Down
2 changes: 1 addition & 1 deletion chain/mock/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "starcoin-chain-mock"
version = "1.0.0-rc"
version = "1.0.0"
authors = ["Starcoin Core Dev <dev@starcoin.org>"]
license = "Apache-2.0"
publish = false
Expand Down
2 changes: 1 addition & 1 deletion chain/open-block/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "starcoin-open-block"
version = "1.0.0-rc"
version = "1.0.0"
authors = ["Starcoin Core Dev <dev@starcoin.org>"]
license = "Apache-2.0"
publish = false
Expand Down
2 changes: 1 addition & 1 deletion chain/service/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "starcoin-chain-service"
version = "1.0.0-rc"
version = "1.0.0"
authors = ["Starcoin Core Dev <dev@starcoin.org>"]
license = "Apache-2.0"
publish = false
Expand Down
2 changes: 1 addition & 1 deletion cmd/faucet/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "starcoin-faucet"
version = "1.0.0-rc"
version = "1.0.0"
authors = ["Starcoin Core Dev <dev@starcoin.org>"]
license = "Apache-2.0"
publish = false
Expand Down
2 changes: 1 addition & 1 deletion cmd/generator/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "starcoin-generator"
version = "1.0.0-rc"
version = "1.0.0"
authors = ["Starcoin Core Dev <dev@starcoin.org>"]
license = "Apache-2.0"
publish = false
Expand Down
2 changes: 1 addition & 1 deletion cmd/miner_client/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "starcoin-miner-client"
version = "1.0.0-rc"
version = "1.0.0"
authors = ["Starcoin Core Dev <dev@starcoin.org>"]
edition = "2018"

Expand Down
2 changes: 1 addition & 1 deletion cmd/peer-watcher/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "starcoin-peer-watcher"
version = "1.0.0-rc"
version = "1.0.0"
authors = ["Starcoin Core Dev <dev@starcoin.org>"]
license = "Apache-2.0"
publish = false
Expand Down
2 changes: 1 addition & 1 deletion cmd/replay/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "starcoin-replay"
version = "1.0.0-rc"
version = "1.0.0"
authors = ["Starcoin Core Dev <dev@starcoin.org>"]
license = "Apache-2.0"
publish = false
Expand Down
2 changes: 1 addition & 1 deletion cmd/resource-exporter/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "resource-exporter"
version = "1.0.0-rc"
version = "1.0.0"
authors = ["Starcoin Core Dev <dev@starcoin.org>"]
license = "Apache-2.0"
publish = false
Expand Down
2 changes: 1 addition & 1 deletion cmd/starcoin/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "starcoin-cmd"
version = "1.0.0-rc"
version = "1.0.0"
authors = ["Starcoin Core Dev <dev@starcoin.org>"]
license = "Apache-2.0"
publish = false
Expand Down
2 changes: 1 addition & 1 deletion cmd/tx-factory/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "starcoin-tx-factory"
version = "1.0.0-rc"
version = "1.0.0"
authors = ["Starcoin Core Dev <dev@starcoin.org>"]
license = "Apache-2.0"
publish = false
Expand Down
2 changes: 1 addition & 1 deletion commons/accumulator/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "starcoin-accumulator"
version = "1.0.0-rc"
version = "1.0.0"
authors = ["Starcoin Core Dev <dev@starcoin.org>"]
license = "Apache-2.0"
publish = false
Expand Down
2 changes: 1 addition & 1 deletion commons/bcs_ext/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bcs-ext"
version = "1.0.0-rc"
version = "1.0.0"
authors = ["Starcoin Core Dev <dev@starcoin.org>"]
license = "Apache-2.0"
publish = false
Expand Down
2 changes: 1 addition & 1 deletion commons/crypto/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "starcoin-crypto"
version = "1.0.0-rc"
version = "1.0.0"
authors = ["Starcoin Core Dev <dev@starcoin.org>"]
license = "Apache-2.0"
publish = false
Expand Down
2 changes: 1 addition & 1 deletion commons/crypto/crypto-macro/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "starcoin-crypto-macro"
version = "1.0.0-rc"
version = "1.0.0"
authors = ["Starcoin Core Dev <dev@starcoin.org>"]
license = "Apache-2.0"
publish = false
Expand Down
2 changes: 1 addition & 1 deletion commons/decrypt/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "starcoin-decrypt"
version = "1.0.0-rc"
version = "1.0.0"
authors = ["Starcoin Core Dev <dev@starcoin.org>"]
license = "Apache-2.0"
edition = "2018"
Expand Down
2 changes: 1 addition & 1 deletion commons/forkable-jellyfish-merkle/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "forkable-jellyfish-merkle"
version = "1.0.0-rc"
version = "1.0.0"
authors = ["Diem Association <opensource@diem.org>", "Starcoin Core Dev <dev@starcoin.org>"]
description = "Diem jellyfish merkle"
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion commons/logger/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "starcoin-logger"
version = "1.0.0-rc"
version = "1.0.0"
authors = ["Starcoin Core Dev <dev@starcoin.org>"]
license = "Apache-2.0"
publish = false
Expand Down
2 changes: 1 addition & 1 deletion commons/metrics/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "starcoin-metrics"
version = "1.0.0-rc"
version = "1.0.0"
authors = ["Starcoin Core Dev <dev@starcoin.org>"]
license = "Apache-2.0"
publish = false
Expand Down
2 changes: 1 addition & 1 deletion commons/scmd/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "scmd"
version = "1.0.0-rc"
version = "1.0.0"
authors = ["Starcoin Core Dev <dev@starcoin.org>"]
license = "Apache-2.0"
publish = false
Expand Down
2 changes: 1 addition & 1 deletion commons/service-registry/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "starcoin-service-registry"
version = "1.0.0-rc"
version = "1.0.0"
authors = ["Starcoin Core Dev <dev@starcoin.org>"]
license = "Apache-2.0"
publish = false
Expand Down
2 changes: 1 addition & 1 deletion commons/stest/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "stest"
version = "1.0.0-rc"
version = "1.0.0"
authors = ["Starcoin Core Dev <dev@starcoin.org>"]
license = "Apache-2.0"
publish = false
Expand Down
2 changes: 1 addition & 1 deletion commons/stest/stest-macro/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "stest-macro"
version = "1.0.0-rc"
version = "1.0.0"
authors = ["Starcoin Core Dev <dev@starcoin.org>"]
license = "Apache-2.0"
publish = false
Expand Down
2 changes: 1 addition & 1 deletion commons/stream-task/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "stream-task"
version = "1.0.0-rc"
version = "1.0.0"
authors = ["Starcoin Core Dev <dev@starcoin.org>"]
edition = "2018"

Expand Down
2 changes: 1 addition & 1 deletion commons/system/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "starcoin-system"
version = "1.0.0-rc"
version = "1.0.0"
authors = ["Starcoin Core Dev <dev@starcoin.org>"]
license = "Apache-2.0"
publish = false
Expand Down
2 changes: 1 addition & 1 deletion commons/timeout-join-handler/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "timeout-join-handler"
version = "1.0.0-rc"
version = "1.0.0"
authors = ["Starcoin Core Dev <dev@starcoin.org>"]
license = "Apache-2.0"
publish = false
Expand Down
2 changes: 1 addition & 1 deletion commons/utils/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "sp-utils"
#for unify version with project.
version = "1.0.0-rc"
version = "1.0.0"
authors = ["Parity Technologies <admin@parity.io>", "Starcoin Core Dev <dev@starcoin.org>"]
edition = "2018"
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion config/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "starcoin-config"
version = "1.0.0-rc"
version = "1.0.0"
authors = ["Starcoin Core Dev <dev@starcoin.org>"]
license = "Apache-2.0"
publish = false
Expand Down
52 changes: 52 additions & 0 deletions config/example/main/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
[logger]
max_backup = 100
slog_chan_size = 256
slog_is_sync = true
slog_separate_store = true

[metrics]
address = "127.0.0.1"

[metrics.push_config]
interval = 0

[miner]
miner_thread = 3

[network]
max_incoming_peers = 25
max_outgoing_peers = 75
node_name = "alice-node1"
seeds = ["/ip4/1.2.3.3/tcp/9840/p2p/QmRZ6ZwVzhJ6xpVV1CEve2RKiUzK4y2pSx3eg2cvQMsT4f", "/ip4/1.2.3.4/tcp/9840/p2p/12D3KooWCfUex27aoqaKScponiLB4N4FWbgmbHYjVoRebGrQaRYk"]

[network.network_rpc_quotas]
default_global_api_quota = "2000/s"
[rpc.api_quotas]
custom_user_api_quota = [["chain.info", "100/s"], ["chain.get_block_by_hash", "100/s"]]
default_global_api_quota = "2000/s"

[rpc.http]
apis = "chain,miner,node,state,txpool,contract"

[rpc.ipc]
apis = "account,chain,debug,miner,network_manager,node_manager,node,pubsub,state,sync_manager,txpool,contract"

[rpc.tcp]
apis = "chain,miner,node,state,txpool,contract"

[rpc.ws]
apis = "chain,miner,node,pubsub,state,txpool,contract"

[storage]
max_open_files = 40960

[stratum]
port = 8090

[sync]

[tx_pool]
max_count = 8192

[vault]
dir = "/data/my_starcoin_vault"
1 change: 1 addition & 0 deletions config/example/main/genesis_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"genesis_block_parameter":{"Static":{"parent_hash":"0xb82a2c11f2df62bf87c2933d0281e5fe47ea94d5f0049eec1485b682df29529a","timestamp":1621311100863,"difficulty":"0xb1ec37"}},"version":{"major":1},"reward_delay":7,"pre_mine_amount":159256800000000000,"time_mint_amount":477770400000000000,"time_mint_period":94608000,"vm_config":{"gas_schedule":{"instruction_table":[{"instruction_gas":1,"memory_gas":1},{"instruction_gas":638,"memory_gas":1},{"instruction_gas":1,"memory_gas":1},{"instruction_gas":1,"memory_gas":1},{"instruction_gas":1,"memory_gas":1},{"instruction_gas":1,"memory_gas":1},{"instruction_gas":1,"memory_gas":1},{"instruction_gas":1,"memory_gas":1},{"instruction_gas":1,"memory_gas":1},{"instruction_gas":1,"memory_gas":1},{"instruction_gas":1,"memory_gas":1},{"instruction_gas":1,"memory_gas":1},{"instruction_gas":2,"memory_gas":1},{"instruction_gas":1,"memory_gas":1},{"instruction_gas":1,"memory_gas":1},{"instruction_gas":1,"memory_gas":1},{"instruction_gas":1132,"memory_gas":1},{"instruction_gas":2,"memory_gas":1},{"instruction_gas":2,"memory_gas":1},{"instruction_gas":1,"memory_gas":1},{"instruction_gas":1,"memory_gas":1},{"instruction_gas":1,"memory_gas":1},{"instruction_gas":1,"memory_gas":1},{"instruction_gas":1,"memory_gas":1},{"instruction_gas":1,"memory_gas":1},{"instruction_gas":3,"memory_gas":1},{"instruction_gas":2,"memory_gas":1},{"instruction_gas":2,"memory_gas":1},{"instruction_gas":1,"memory_gas":1},{"instruction_gas":2,"memory_gas":1},{"instruction_gas":1,"memory_gas":1},{"instruction_gas":1,"memory_gas":1},{"instruction_gas":1,"memory_gas":1},{"instruction_gas":1,"memory_gas":1},{"instruction_gas":1,"memory_gas":1},{"instruction_gas":1,"memory_gas":1},{"instruction_gas":2,"memory_gas":1},{"instruction_gas":1,"memory_gas":1},{"instruction_gas":1,"memory_gas":1},{"instruction_gas":1,"memory_gas":1},{"instruction_gas":41,"memory_gas":1},{"instruction_gas":21,"memory_gas":1},{"instruction_gas":23,"memory_gas":1},{"instruction_gas":459,"memory_gas":1},{"instruction_gas":13,"memory_gas":1},{"instruction_gas":1,"memory_gas":1},{"instruction_gas":2,"memory_gas":1},{"instruction_gas":1,"memory_gas":1},{"instruction_gas":1,"memory_gas":1},{"instruction_gas":1,"memory_gas":1},{"instruction_gas":2,"memory_gas":1},{"instruction_gas":1,"memory_gas":1},{"instruction_gas":1,"memory_gas":1},{"instruction_gas":1,"memory_gas":1},{"instruction_gas":1,"memory_gas":1},{"instruction_gas":582,"memory_gas":1},{"instruction_gas":2,"memory_gas":1},{"instruction_gas":2,"memory_gas":1},{"instruction_gas":34,"memory_gas":1},{"instruction_gas":15,"memory_gas":1},{"instruction_gas":14,"memory_gas":1},{"instruction_gas":13,"memory_gas":1},{"instruction_gas":27,"memory_gas":1}],"native_table":[{"instruction_gas":21,"memory_gas":1},{"instruction_gas":64,"memory_gas":1},{"instruction_gas":61,"memory_gas":1},{"instruction_gas":3351,"memory_gas":1},{"instruction_gas":181,"memory_gas":1},{"instruction_gas":98,"memory_gas":1},{"instruction_gas":84,"memory_gas":1},{"instruction_gas":1334,"memory_gas":1},{"instruction_gas":1902,"memory_gas":1},{"instruction_gas":53,"memory_gas":1},{"instruction_gas":227,"memory_gas":1},{"instruction_gas":572,"memory_gas":1},{"instruction_gas":1436,"memory_gas":1},{"instruction_gas":26,"memory_gas":1},{"instruction_gas":353,"memory_gas":1},{"instruction_gas":24,"memory_gas":1},{"instruction_gas":212,"memory_gas":1},{"instruction_gas":52,"memory_gas":1},{"instruction_gas":26,"memory_gas":1},{"instruction_gas":2002,"memory_gas":1},{"instruction_gas":64,"memory_gas":1}],"gas_constants":{"global_memory_per_byte_cost":4,"global_memory_per_byte_write_cost":9,"min_transaction_gas_units":600,"large_transaction_cutoff":600,"intrinsic_gas_per_byte":8,"maximum_number_of_gas_units":40000000,"min_price_per_gas_unit":1,"max_price_per_gas_unit":10000,"max_transaction_size_in_bytes":60000,"gas_unit_scaling_factor":1,"default_account_size":800}}},"publishing_option":{"script_allowed":false,"module_publishing_allowed":false},"consensus_config":{"uncle_rate_target":240,"base_block_time_target":10000,"base_reward_per_block":10000000000,"base_reward_per_uncle_percent":10,"epoch_block_count":240,"base_block_difficulty_window":24,"min_block_time_target":5000,"max_block_time_target":60000,"base_max_uncles_per_block":2,"base_block_gas_limit":50000000,"strategy":3},"association_key_pair":[null,"0x810a82a896a4f8fd065bcab8b06588fe1afdbb3d3830693c65a73d31ee1e482d85a40286b624b8481b05d9ed748e7c051b63ed36ce952cbc48bb0de4bfc6ec5888feded087075af9585a83c777ba52da1ab3aef139764a0de5fbc2d8aa8d380b02"],"genesis_key_pair":null,"stdlib_version":{"Version":4},"dao_config":{"voting_delay":3600000,"voting_period":604800000,"voting_quorum_rate":4,"min_action_delay":86400000},"time_service_type":"RealTimeService","transaction_timeout":86400}
1 change: 1 addition & 0 deletions config/example/main/network_key
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
48e96e1a8a4a771879af7461e5b4be0cd33c3a606ca42f9d51c889a8ed32bc80
7 changes: 4 additions & 3 deletions config/src/genesis_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1055,9 +1055,10 @@ pub static MAIN_CONFIG: Lazy<GenesisConfig> = Lazy::new(|| {
let stdlib_version = StdlibVersion::Version(4);
let publishing_option = TransactionPublishOption::locked();
GenesisConfig {
genesis_block_parameter: GenesisBlockParameterConfig::FutureBlock(FutureBlockParameter {
network: BuiltinNetworkID::Barnard,
block_number: 310000,
genesis_block_parameter: GenesisBlockParameterConfig::Static(GenesisBlockParameter{
parent_hash: HashValue::from_hex_literal("0xb82a2c11f2df62bf87c2933d0281e5fe47ea94d5f0049eec1485b682df29529a").unwrap(),
timestamp: 1621311100863,
difficulty: 0xb1ec37.into(),
}),
version: Version { major: 1 },
reward_delay: 7,
Expand Down
2 changes: 1 addition & 1 deletion consensus/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "starcoin-consensus"
version = "1.0.0-rc"
version = "1.0.0"
authors = ["Starcoin Core Dev <dev@starcoin.org>"]
license = "Apache-2.0"
publish = false
Expand Down
2 changes: 1 addition & 1 deletion contrib-contracts/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "contrib-contracts"
version = "1.0.0-rc"
version = "1.0.0"
authors = ["Starcoin Core Dev <dev@starcoin.org>"]
edition = "2018"

Expand Down
2 changes: 1 addition & 1 deletion dataformat-generator/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "starcoin-dataformat-generator"
version = "1.0.0-rc"
version = "1.0.0"
authors = ["Starcoin Core Dev <dev@starcoin.org>"]
edition = "2018"

Expand Down
Loading

0 comments on commit 512e090

Please sign in to comment.