Skip to content

Commit

Permalink
Merge pull request #13 from provenance-io/issue/12
Browse files Browse the repository at this point in the history
update to provenance 1.19.0
  • Loading branch information
kwtalley authored Jun 26, 2024
2 parents 72cec22 + 3116292 commit 79076b9
Show file tree
Hide file tree
Showing 17 changed files with 462 additions and 215 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/smart-contract-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ jobs:
uses: ./
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
provenance_version: "v1.16.0"
provenance_version: "v1.19.0-rc2"
smart_contract_action_version: ${{ needs.docker.outputs.smart_contract_action_version }}
test_script: "./smart-contract-action/test/test.sh"

Expand All @@ -100,7 +100,7 @@ jobs:
uses: ./
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
provenance_version: "v1.16.0"
provenance_version: "v1.19.0-rc2"
smart_contract_action_version: ${{ needs.docker.outputs.smart_contract_action_version }}

test_with_init_data:
Expand All @@ -115,6 +115,6 @@ jobs:
uses: ./
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
provenance_version: "v1.16.0"
provenance_version: "v1.19.0-rc2"
smart_contract_action_version: ${{ needs.docker.outputs.smart_contract_action_version }}
init_data: "./smart-contract-action/test/init_data"
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Changelog for Provenance Testing Action

## Unreleased changes
* update to provenance v1.19.0 ([#12](https://github.com/provenance-io/provenance-testing-action/issues/12))

## [v1.2.0](https://github.com/provenance-io/provenance-testing-action/releases/tag/v1.2.0)
* fix `Error: Can't find...` error by moving to docker image ([#9](https://github.com/provenance-io/provenance-testing-action/issues/9))
Expand Down
37 changes: 20 additions & 17 deletions smart-contract-action/scripts/setup_provenance.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,12 @@ mkdir ./build

PROV_CMD="provenanced"
PIO_HOME="./build"
arg_chain_id="--chain-id=testing"
arg_keyring="--keyring-backend test"
export PIO_HOME
export PROV_CMD
export arg_chain_id
export arg_keyring

if [ "$INIT_DATA" != false ]; then
# place the initial config data in the default location
Expand All @@ -24,23 +28,22 @@ if [ "$INIT_DATA" != false ]; then
fi

if [ ! -d "$PIO_HOME/config" ]; then
"$PROV_CMD" -t init --chain-id=testing testing
"$PROV_CMD" -t keys add validator --keyring-backend test
"$PROV_CMD" -t add-genesis-root-name validator pio --keyring-backend test
"$PROV_CMD" -t add-genesis-root-name validator pb --restrict=false \
--keyring-backend test
"$PROV_CMD" -t add-genesis-root-name validator io --restrict \
--keyring-backend test
"$PROV_CMD" -t add-genesis-root-name validator provenance \
--keyring-backend test
"$PROV_CMD" -t add-genesis-account validator 100000000000000000000nhash \
--keyring-backend test
"$PROV_CMD" -t gentx validator 1000000000000000nhash \
--keyring-backend test --chain-id=testing
"$PROV_CMD" -t add-genesis-marker 100000000000000000000nhash --manager \
validator --access mint,burn,admin,withdraw,deposit \
--activate --keyring-backend test
"$PROV_CMD" -t collect-gentxs
"$PROV_CMD" -t init testing --chain-id=testing $arg_chain_id
"$PROV_CMD" -t keys add validator $arg_keyring
"$PROV_CMD" -t genesis add-root-name validator pio $arg_keyring
"$PROV_CMD" -t genesis add-root-name validator pb --restrict=false $arg_keyring
"$PROV_CMD" -t genesis add-root-name validator io --restrict $arg_keyring
"$PROV_CMD" -t genesis add-root-name validator provenance $arg_keyring
"$PROV_CMD" -t genesis add-account validator 100000000000000000000nhash $arg_keyring
"$PROV_CMD" -t genesis gentx validator 1000000000000000nhash $arg_chain_id $arg_keyring
"$PROV_CMD" -t genesis add-marker 100000000000000000000nhash \
--manager validator \
--access mint,burn,admin,withdraw,deposit \
$arg_keyring \
--activate
"$PROV_CMD" -t genesis add-default-market --denom nhash
"$PROV_CMD" -t genesis collect-gentxs
"$PROV_CMD" -t config set minimum-gas-prices "1905nhash"
fi

nohup "$PROV_CMD" -t start &>/dev/null &
Expand Down
4 changes: 0 additions & 4 deletions smart-contract-action/test/init_data/config/addrbook.json

This file was deleted.

128 changes: 63 additions & 65 deletions smart-contract-action/test/init_data/config/app.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,13 @@

# 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).
# specified in this config (e.g. 0.25token1,0.0001token2).
minimum-gas-prices = "1905nhash"

# The maximum gas a query coming over rest/grpc may consume.
# If this is set to zero, the query can consume an unbounded amount of gas.
query-gas-limit = "0"

# 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.
Expand All @@ -35,15 +39,15 @@ 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
# from CometBFT. 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.
# This configuration value is only responsible for pruning CometBFT 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
# Note: CometBFT block pruning is dependant on this parameter in conjunction
# with the unbonding (safety threshold) period, state pruning and state sync
# snapshot parameters to determine the correct minimum value of
# ResponseCommit.RetainHeight.
Expand All @@ -53,24 +57,22 @@ min-retain-blocks = 0
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.
# which informs CometBFT 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.
# IavlCacheSize set the size of the iavl tree cache (in number of nodes).
iavl-cache-size = 781250

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

# 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.
# The fallback is the db_backend value set in CometBFT's config.toml.
app-db-backend = ""

###############################################################################
Expand Down Expand Up @@ -107,6 +109,17 @@ prometheus-retention-time = 0
global-labels = [
]

# MetricsSink defines the type of metrics sink to use.
metrics-sink = ""

# StatsdAddr defines the address of a statsd server to send metrics to.
# Only utilized if MetricsSink is set to "statsd" or "dogstatsd".
statsd-addr = ""

# DatadogHostname defines the hostname to use when emitting metrics to
# Datadog. Only utilized if MetricsSink is set to "dogstatsd".
datadog-hostname = ""

###############################################################################
### API Configuration ###
###############################################################################
Expand All @@ -120,59 +133,23 @@ enable = false
swagger = false

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

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

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

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

# RPCMaxBodyBytes defines the Tendermint maximum response body (in bytes).
# RPCMaxBodyBytes defines the CometBFT maximum request 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 = 200000

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

###############################################################################
### gRPC Configuration ###
###############################################################################
Expand All @@ -183,7 +160,7 @@ denom-to-suggest = "uatom"
enable = true

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

# MaxRecvMsgSize defines the max message size in bytes the server can receive.
# The default value is 10MB.
Expand All @@ -201,14 +178,9 @@ max-send-msg-size = "2147483647"

# GRPCWebEnable defines if the gRPC-web should be enabled.
# NOTE: gRPC must also be enabled, otherwise, this configuration is a no-op.
# NOTE: gRPC-Web uses the same address as the API server.
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 ###
###############################################################################
Expand All @@ -225,14 +197,40 @@ snapshot-interval = 0
snapshot-keep-recent = 2

###############################################################################
### Store / State Streaming ###
### State Streaming ###
###############################################################################

[store]
streamers = []
# Streaming allows nodes to stream state to external systems.
[streaming]

# streaming.abci specifies the configuration for the ABCI Listener streaming service.
[streaming.abci]

[streamers]
[streamers.file]
keys = ["*", ]
write_dir = ""
prefix = ""
# List of kv store keys to stream out via gRPC.
# The store key names MUST match the module's StoreKey name.
#
# Example:
# ["acc", "bank", "gov", "staking", "mint"[,...]]
# ["*"] to expose all keys.
keys = []

# The plugin name used for streaming via gRPC.
# Streaming is only enabled if this is set.
# Supported plugins: abci
plugin = ""

# stop-node-on-err specifies whether to stop the node on message delivery error.
stop-node-on-err = true

###############################################################################
### Mempool ###
###############################################################################

[mempool]
# Setting max-txs to 0 will allow for a unbounded amount of transactions in the mempool.
# Setting max_txs to negative 1 (-1) will disable transactions from being inserted into the mempool (no-op mempool).
# Setting max_txs to a positive number (> 0) will limit the number of transactions in the mempool, by the specified amount.
#
# Note, this configuration only applies to SDK built-in app-side mempool
# implementations.
max-txs = -1
4 changes: 2 additions & 2 deletions smart-contract-action/test/init_data/config/client.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# For more information, see https://github.com/toml-lang/toml

###############################################################################
### Client Configuration ###
### Client Configuration ###
###############################################################################

# The network chain ID
Expand All @@ -14,4 +14,4 @@ output = "text"
# <host>:<port> to Tendermint RPC interface for this chain
node = "tcp://127.0.0.1:26657"
# Transaction broadcasting mode (sync|async|block)
broadcast-mode = "block"
broadcast-mode = "sync"
Loading

0 comments on commit 79076b9

Please sign in to comment.