Skip to content

Commit

Permalink
Merge pull request #192 from bnb-chain/develop
Browse files Browse the repository at this point in the history
release: draft release v0.1.2
  • Loading branch information
unclezoro authored Apr 21, 2023
2 parents 2a15a10 + 1fbd424 commit 42ff263
Show file tree
Hide file tree
Showing 120 changed files with 13,247 additions and 2,405 deletions.
31 changes: 19 additions & 12 deletions .github/generate_change_log.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
#!/usr/bin/env bash
checksum() {
function checksum() {
echo $(sha256sum $@ | awk '{print $1}')
}
change_log_file="./CHANGELOG.md"
version="## $@"
version_prefix="## v"
start=0
CHANGE_LOG=""

declare change_log_file="./CHANGELOG.md"
declare version="## $@"
declare version_prefix="## v"
declare start=0
declare CHANGE_LOG=""

while read line; do
if [[ $line == *"$version"* ]]; then
start=1
Expand All @@ -18,17 +20,22 @@ while read line; do
if [ $start == 1 ]; then
CHANGE_LOG+="$line\n"
fi
done < ${change_log_file}
done < "${change_log_file}"

LINUX_BIN_SUM="$(checksum ./linux/linux)"
MAC_BIN_SUM="$(checksum ./macos/macos)"
TESTNET_CONFIG_SUM="$(checksum ./testnet_config.zip)"

OUTPUT=$(cat <<-END
## Changelog\n
${CHANGE_LOG}\n
## Assets\n
| Assets | Sha256 Checksum |\n
| :-----------: |------------|\n
| linux | ${LINUX_BIN_SUM} |\n
| mac | ${MAC_BIN_SUM} |\n
| Assets | Sha256 Checksum |
| :-----------: |------------|
| linux | ${LINUX_BIN_SUM} |
| mac | ${MAC_BIN_SUM} |
| testnet_config.zip | ${TESTNET_CONFIG_SUM} |\n
END
)

echo -e ${OUTPUT}
echo -e "${OUTPUT}"
2 changes: 1 addition & 1 deletion .github/workflows/docker-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
--label "org.opencontainers.image.source=${IMAGE_SOURCE}" \
--label "org.opencontainers.image.revision=$(git rev-parse HEAD)" \
--label "org.opencontainers.image.version=$(git describe --tags --abbrev=0)" \
--label "org.opencontainers.image.licenses=LGPL-3.0,GPL-3.0" \
--label "org.opencontainers.image.licenses=LGPL-3.0,AGPL-3.0" \
-f ./Dockerfile -t "${IMAGE_NAME}"
- name: Log into registry
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,12 @@ jobs:
name: macos
path: ./macos

# Rename assets
# Prepare assets
- run: |
mv ./linux/gnfd ./linux/linux
mv ./macos/gnfd ./macos/macos
cp -r ./asset/configs/testnet_config ./testnet_config
zip -r ./testnet_config.zip ./testnet_config
# ==============================
# Create release
Expand Down Expand Up @@ -126,3 +128,4 @@ jobs:
files: |
./linux/linux
./macos/macos
./testnet_config.zip
25 changes: 25 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,30 @@
# Changelog

## v0.1.2
* [\#195](https://github.com/bnb-chain/greenfield/pull/195) feat: make sp receive storage fee with funding addr
* [\#167](https://github.com/bnb-chain/greenfield/pull/167) chore: change default sp price
* [\#164](https://github.com/bnb-chain/greenfield/pull/164) feat: update relayer fee for mirror transactions
* [\#168](https://github.com/bnb-chain/greenfield/pull/168) fix: list group error
* [\#170](https://github.com/bnb-chain/greenfield/pull/170) chore: rename the name of buf buf.yaml
* [\#171](https://github.com/bnb-chain/greenfield/pull/171) ci: add testnet_config to release page and fix issues of release flow
* [\#172](https://github.com/bnb-chain/greenfield/pull/172) fix: unify property field names of events
* [\#152](https://github.com/bnb-chain/greenfield/pull/152) feat: add empty object feature for chain
* [\#137](https://github.com/bnb-chain/greenfield/pull/137) feat: allow sp to stop serving objects
* [\#175](https://github.com/bnb-chain/greenfield/pull/175) fix: add ErrInvalidApproval errorcode for sp’s approval invalid
* [\#150](https://github.com/bnb-chain/greenfield/pull/150) feat: refactor key manager to hide private key.
* [\#176](https://github.com/bnb-chain/greenfield/pull/176) fix: init tmclient
* [\#177](https://github.com/bnb-chain/greenfield/pull/177) feat: add more fields to sp events
* [\#165](https://github.com/bnb-chain/greenfield/pull/165) feat: define the turn for submitting attestation
* [\#179](https://github.com/bnb-chain/greenfield/pull/179) fix: fix e2e issues of challenge
* [\#182](https://github.com/bnb-chain/greenfield/pull/182) docs: fix localup scripts in document
* [\#138](https://github.com/bnb-chain/greenfield/pull/138) feat: add update-object-info for updateobject’s visibility (#c)
* [\#180](https://github.com/bnb-chain/greenfield/pull/180) feat: add export key for localup script
* [\#184](https://github.com/bnb-chain/greenfield/pull/184) feat: implement queries and events for frontend
* [\#183](https://github.com/bnb-chain/greenfield/pull/183) fix: remove randomized params from challenge module
* [\#178](https://github.com/bnb-chain/greenfield/pull/178) feat: remove amino dependencies for GetSignBytes
* [\#185](https://github.com/bnb-chain/greenfield/pull/185) fix: sp & storage & permission module’s cli bug
* [\#187](https://github.com/bnb-chain/greenfield/pull/187) feat: support empty operator for verifypermission

## v0.1.1
* [\#166](https://github.com/bnb-chain/greenfield/pull/166) fix: gashub causes state sync to fail to synchronize

Expand Down
279 changes: 279 additions & 0 deletions asset/configs/testnet_config/app.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,279 @@
# This is a TOML config file.
# For more information, see https://github.com/toml-lang/toml

###############################################################################
### Base Configuration ###
###############################################################################

# The minimum gas prices a validator is willing to accept for processing a
# transaction. A transaction's fees must meet the minimum of any denomination
# specified in this config (e.g. 0.25token1;0.0001token2).
minimum-gas-prices = "5000000000BNB"

# default: the last 362880 states are kept, pruning at 10 block intervals
# nothing: all historic states will be saved, nothing will be deleted (i.e. archiving node)
# everything: 2 latest states will be kept; pruning at 10 block intervals.
# custom: allow pruning options to be manually specified through 'pruning-keep-recent', and 'pruning-interval'
pruning = "default"

# These are applied if and only if the pruning strategy is custom.
pruning-keep-recent = "0"
pruning-interval = "0"

# HaltHeight contains a non-zero block height at which a node will gracefully
# halt and shutdown that can be used to assist upgrades and testing.
#
# Note: Commitment of state will be attempted on the corresponding block.
halt-height = 0

# HaltTime contains a non-zero minimum block time (in Unix seconds) at which
# a node will gracefully halt and shutdown that can be used to assist upgrades
# and testing.
#
# Note: Commitment of state will be attempted on the corresponding block.
halt-time = 0

# MinRetainBlocks defines the minimum block height offset from the current
# block being committed, such that all blocks past this offset are pruned
# from Tendermint. It is used as part of the process of determining the
# ResponseCommit.RetainHeight value during ABCI Commit. A value of 0 indicates
# that no blocks should be pruned.
#
# This configuration value is only responsible for pruning Tendermint blocks.
# It has no bearing on application state pruning which is determined by the
# "pruning-*" configurations.
#
# Note: Tendermint block pruning is dependant on this parameter in conunction
# with the unbonding (safety threshold) period, state pruning and state sync
# snapshot parameters to determine the correct minimum value of
# ResponseCommit.RetainHeight.
min-retain-blocks = 0

# InterBlockCache enables inter-block caching.
inter-block-cache = true

# IndexEvents defines the set of events in the form {eventType}.{attributeKey},
# which informs Tendermint what to index. If empty, all events will be indexed.
#
# Example:
# ["message.sender", "message.recipient"]
index-events = []

# IavlCacheSize set the size of the iavl tree cache.
# Default cache size is 50mb.
iavl-cache-size = 781250

# IavlDisableFastNode enables or disables the fast node feature of IAVL.
# Default is false.
iavl-disable-fastnode = false

# AppDBBackend defines the database backend type to use for the application and snapshots DBs.
# An empty string indicates that a fallback will be used.
# First fallback is the deprecated compile-time types.DBBackend value.
# Second fallback (if the types.DBBackend also isn't set), is the db-backend value set in Tendermint's config.toml.
app-db-backend = ""

###############################################################################
### Upgrade Configuration ###
###############################################################################

# Example:
# [[upgrade]]
# name = "BEP111"
# height = 100
# info = "https://github.com/bnb-chain/BEPs/pull/111"

# [[upgrade]]
# name = "BEP112"
# height = 120
# info = "https://github.com/bnb-chain/BEPs/pull/112"

###############################################################################
### Telemetry Configuration ###
###############################################################################

[telemetry]

# Prefixed with keys to separate services.
service-name = ""

# Enabled enables the application telemetry functionality. When enabled,
# an in-memory sink is also enabled by default. Operators may also enabled
# other sinks such as Prometheus.
enabled = false

# Enable prefixing gauge values with hostname.
enable-hostname = false

# Enable adding hostname to labels.
enable-hostname-label = false

# Enable adding service to labels.
enable-service-label = false

# PrometheusRetentionTime, when positive, enables a Prometheus metrics sink.
prometheus-retention-time = 0

# GlobalLabels defines a global set of name/value label tuples applied to all
# metrics emitted using the wrapper functions defined in telemetry package.
#
# Example:
# [["chain_id", "cosmoshub-1"]]
global-labels = [
]

###############################################################################
### API Configuration ###
###############################################################################

[api]

# Enable defines if the API server should be enabled.
enable = true

# Swagger defines if swagger documentation should automatically be registered.
swagger = true

# Address defines the API server to listen on.
address = "tcp://0.0.0.0:1317"

# MaxOpenConnections defines the number of maximum open connections.
max-open-connections = 1000

# RPCReadTimeout defines the Tendermint RPC read timeout (in seconds).
rpc-read-timeout = 10

# RPCWriteTimeout defines the Tendermint RPC write timeout (in seconds).
rpc-write-timeout = 0

# RPCMaxBodyBytes defines the Tendermint maximum response body (in bytes).
rpc-max-body-bytes = 1000000

# EnableUnsafeCORS defines if CORS should be enabled (unsafe - use it at your own risk).
enabled-unsafe-cors = false

###############################################################################
### Rosetta Configuration ###
###############################################################################

[rosetta]

# Enable defines if the Rosetta API server should be enabled.
enable = false

# Address defines the Rosetta API server to listen on.
address = ":8080"

# Network defines the name of the blockchain that will be returned by Rosetta.
blockchain = "app"

# Network defines the name of the network that will be returned by Rosetta.
network = "network"

# Retries defines the number of retries when connecting to the node before failing.
retries = 3

# Offline defines if Rosetta server should run in offline mode.
offline = false

# EnableDefaultSuggestedFee defines if the server should suggest fee by default.
# If 'construction/medata' is called without gas limit and gas price,
# suggested fee based on gas-to-suggest and denom-to-suggest will be given.
enable-fee-suggestion = false

# GasToSuggest defines gas limit when calculating the fee
gas-to-suggest = 210000

# DenomToSuggest defines the defult denom for fee suggestion.
# Price must be in minimum-gas-prices.
denom-to-suggest = "BNB"

###############################################################################
### gRPC Configuration ###
###############################################################################

[grpc]

# Enable defines if the gRPC server should be enabled.
enable = true

# Address defines the gRPC server address to bind to.
address = "0.0.0.0:9090"

# MaxRecvMsgSize defines the max message size in bytes the server can receive.
# The default value is 10MB.
max-recv-msg-size = "10485760"

# MaxSendMsgSize defines the max message size in bytes the server can send.
# The default value is math.MaxInt32.
max-send-msg-size = "2147483647"

###############################################################################
### gRPC Web Configuration ###
###############################################################################

[grpc-web]

# GRPCWebEnable defines if the gRPC-web should be enabled.
# NOTE: gRPC must also be enabled, otherwise, this configuration is a no-op.
enable = true

# Address defines the gRPC-web server address to bind to.
address = "0.0.0.0:9091"

# EnableUnsafeCORS defines if CORS should be enabled (unsafe - use it at your own risk).
enable-unsafe-cors = false

###############################################################################
### State Sync Configuration ###
###############################################################################

# State sync snapshots allow other nodes to rapidly join the network without replaying historical
# blocks, instead downloading and applying a snapshot of the application state at a given height.
[state-sync]

# snapshot-interval specifies the block interval at which local state sync snapshots are
# taken (0 to disable).
snapshot-interval = 1000

# snapshot-keep-recent specifies the number of recent snapshots to keep and serve (0 to keep all).
snapshot-keep-recent = 100

###############################################################################
### JSONRPC Configuration ###
###############################################################################

[json-rpc]

api = "eth,net"

address = "0.0.0.0:8545"

ws-address = "0.0.0.0:8546"

enable = true

http-timeout = "30s"

http-idle-timeout = "2m0s"

max-open-connections = 0

###############################################################################
### TLS Configuration ###
###############################################################################

[tls]

certificate-path = ""

key-path = ""

###############################################################################
### CrossChain Config ###
###############################################################################
[cross-chain]
# chain-id for current chain
src-chain-id = 5600
# chain-id for destination chain(bsc)
dest-chain-id = 5601
Loading

0 comments on commit 42ff263

Please sign in to comment.