@ -1,12 +0,0 @@ | |||
"accounts": [{ | |||
"address": "C13B2A17030E416D0C83B7FF7CDFFB2E2353FA11", | |||
"coins": [ | |||
{ | |||
"denom": "mycoin", | |||
"amount": 9007199254740992 | |||
} | |||
] | |||
}], | |||
"plugin_options": [ | |||
"coin/issuer", {"app": "sigs", "addr": "C13B2A17030E416D0C83B7FF7CDFFB2E2353FA11"} | |||
] |
@ -1,57 +1,221 @@ | |||
# This is a TOML config file. | |||
# For more information, see https://github.com/toml-lang/toml | |||
##### main base config options ##### | |||
# TCP or UNIX socket address of the ABCI application, | |||
# or the name of an ABCI application compiled in with the Tendermint binary | |||
proxy_app = "tcp://127.0.0.1:46658" | |||
# A custom human readable name for this node | |||
moniker = "{{inventory_hostname}}" | |||
# If this node is many blocks behind the tip of the chain, FastSync | |||
# allows them to catchup quickly by downloading blocks in parallel | |||
# and verifying their commits | |||
fast_sync = true | |||
{% if service == 'tendermint' %} | |||
# Database backend: leveldb | memdb | |||
db_backend = "memdb" | |||
# Database directory | |||
db_path = "data" | |||
# Output level for logging, including package level options | |||
log_level = "mempool:error,*:debug" | |||
{% else %} | |||
# Database backend: leveldb | memdb | |||
db_backend = "leveldb" | |||
log_level = "state:info,*:error" | |||
# Database directory | |||
db_path = "data" | |||
# Output level for logging, including package level options | |||
log_level = "main:info,state:info,*:error" | |||
#log_level = "mempool:error,*:debug" | |||
{% endif %} | |||
##### additional base config options ##### | |||
# Path to the JSON file containing the initial validator set and other meta data | |||
genesis_file = "config/genesis.json" | |||
# Path to the JSON file containing the private key to use as a validator in the consensus protocol | |||
priv_validator_file = "config/priv_validator.json" | |||
# Path to the JSON file containing the private key to use for node authentication in the p2p protocol | |||
node_key_file = "config/node_key.json" | |||
# Mechanism to connect to the ABCI application: socket | grpc | |||
abci = "socket" | |||
# TCP or UNIX socket address for the profiling server to listen on | |||
prof_laddr = "" | |||
# If true, query the ABCI app on connecting to a new peer | |||
# so the app can decide if we should keep the connection or not | |||
filter_peers = false | |||
##### advanced configuration options ##### | |||
##### rpc server configuration options ##### | |||
[rpc] | |||
# TCP or UNIX socket address for the RPC server to listen on | |||
laddr = "tcp://0.0.0.0:46657" | |||
# TCP or UNIX socket address for the gRPC server to listen on | |||
# NOTE: This server only supports /broadcast_tx_commit | |||
grpc_laddr = "" | |||
# Activate unsafe RPC commands like /dial_seeds and /unsafe_flush_mempool | |||
unsafe = false | |||
##### peer to peer configuration options ##### | |||
[p2p] | |||
# Address to listen for incoming connections | |||
laddr = "tcp://0.0.0.0:46656" | |||
# Comma separated list of seed nodes to connect to | |||
seeds = "{{ seeds | default() }}" | |||
# Comma separated list of nodes to keep persistent connections to | |||
{% set comma = joiner(",") %}persistent_peers = "{% for host in ((groups[testnet_name]|default([]))+(groups['tag_Environment_'~(testnet_name|regex_replace('-','_'))]|default([])))|difference(inventory_hostname) %}{{ comma() }}{{hostvars[host]["nodeid"]}}@{{hostvars[host]["inventory_hostname"]}}:46656{% endfor %}" | |||
# Path to address book | |||
addr_book_file = "config/addrbook.json" | |||
# Set true for strict address routability rules | |||
addr_book_strict = true | |||
# Time to wait before flushing messages out on the connection, in ms | |||
flush_throttle_timeout = 100 | |||
# Maximum number of peers to connect to | |||
#max_num_peers = 50 | |||
max_num_peers = 300 | |||
# Maximum size of a message packet payload, in bytes | |||
{% if service == 'tendermint' %} | |||
max_msg_packet_payload_size = 65536 | |||
{% else %} | |||
max_msg_packet_payload_size = 1024 | |||
{% endif %} | |||
# Rate at which packets can be sent, in bytes/second | |||
{% if service == 'tendermint' %} | |||
send_rate = 51200000 # 50 MB/s | |||
{% else %} | |||
send_rate = 512000 | |||
{% endif %} | |||
# Rate at which packets can be received, in bytes/second | |||
{% if service == 'tendermint' %} | |||
recv_rate = 51200000 # 50 MB/s | |||
{% else %} | |||
recv_rate = 512000 | |||
{% endif %} | |||
# Set true to enable the peer-exchange reactor | |||
pex = true | |||
# Seed mode, in which node constantly crawls the network and looks for | |||
# peers. If another node asks it for addresses, it responds and disconnects. | |||
# | |||
# Does not work if the peer-exchange reactor is disabled. | |||
seed_mode = false | |||
##### mempool configuration options ##### | |||
[mempool] | |||
{% if service == 'tendermint' %} | |||
recheck = false | |||
{% else %} | |||
recheck = true | |||
{% endif %} | |||
recheck_empty = true | |||
broadcast = true | |||
{% if service == 'tendermint' %} | |||
wal_dir = "" | |||
{% else %} | |||
wal_dir = "data/mempool.wal" | |||
{% endif %} | |||
##### consensus configuration options ##### | |||
[consensus] | |||
max_block_size_txs = 10000 | |||
create_empty_blocks = false | |||
timeout_propose = 10000 | |||
skip_timeout_commit = true | |||
timeout_commit = 1 | |||
wal_light = true | |||
block_part_size = 262144 | |||
create_empty_blocks_interval = 1 | |||
wal_file = "data/cs.wal/wal" | |||
{% if service == 'tendermint' %} | |||
wal_light = true | |||
{% else %} | |||
wal_light = false | |||
{% endif %} | |||
[consensus] | |||
create_empty_blocks_interval = 1 | |||
# All timeouts are in milliseconds | |||
{% if service == 'tendermint' %} | |||
timeout_propose = 10000 | |||
{% else %} | |||
timeout_propose = 3000 | |||
{% endif %} | |||
timeout_propose_delta = 500 | |||
timeout_prevote = 1000 | |||
timeout_prevote_delta = 500 | |||
timeout_precommit = 1000 | |||
timeout_precommit_delta = 500 | |||
{% if service == 'tendermint' %} | |||
timeout_commit = 1 | |||
{% else %} | |||
timeout_commit = 1000 | |||
{% endif %} | |||
[p2p] | |||
# Make progress as soon as we have all the precommits (as if TimeoutCommit = 0) | |||
{% if service == 'tendermint' %} | |||
max_msg_packet_payload_size=65536 | |||
send_rate=51200000 # 50 MB/s | |||
recv_rate=51200000 # 50 MB/s | |||
skip_timeout_commit = true | |||
{% else %} | |||
skip_timeout_commit = false | |||
{% endif %} | |||
laddr = "tcp://0.0.0.0:46656" | |||
{% if validators == true or validators == 'true' %} | |||
{% set comma = joiner(",") %}seeds = "{% for host in ((groups[testnet_name]|default([]))+(groups['tag_Environment_'~(testnet_name|regex_replace('-','_'))]|default([])))|difference(inventory_hostname) %}{{ comma() }}{{hostvars[host]["inventory_hostname"]}}:46656{% endfor %}" | |||
# BlockSize | |||
max_block_size_txs = 10000 | |||
max_block_size_bytes = 1 | |||
# EmptyBlocks mode and possible interval between empty blocks in seconds | |||
{% if service == 'tendermint' %} | |||
create_empty_blocks = false | |||
{% else %} | |||
seeds = "{{ seeds | default() }}" | |||
create_empty_blocks = true | |||
create_empty_blocks_interval = 60 | |||
{% endif %} | |||
# Reactor sleep duration parameters are in milliseconds | |||
peer_gossip_sleep_duration = 100 | |||
peer_query_maj23_sleep_duration = 2000 | |||
##### transactions indexer configuration options ##### | |||
[tx_index] | |||
# What indexer to use for transactions | |||
# | |||
# Options: | |||
# 1) "null" (default) | |||
# 2) "kv" - the simplest possible indexer, backed by key-value storage (defaults to levelDB; see DBBackend). | |||
indexer = "kv" | |||
# Comma-separated list of tags to index (by default the only tag is tx hash) | |||
# | |||
# It's recommended to index only a subset of tags due to possible memory | |||
# bloat. This is, of course, depends on the indexer's DB and the volume of | |||
# transactions. | |||
index_tags = "" | |||
# When set to true, tells indexer to index all tags. Note this may be not | |||
# desirable (see the comment above). IndexTags has a precedence over | |||
# IndexAllTags (i.e. when given both, IndexTags will be indexed). | |||
index_all_tags = false | |||
@ -1,24 +0,0 @@ | |||
{ | |||
"genesis_time":"{{ansible_date_time.iso8601}}", | |||
"chain_id":"{{testnet_name}}", | |||
"validators": | |||
[ | |||
{% if (validators == true) or (validators == 'true') %} | |||
{% set comma = joiner(",") %} | |||
{% for host in (groups[testnet_name]|default([]))+(groups['tag_Environment_'~(testnet_name|regex_replace('-','_'))]|default([])) %} | |||
{{ comma() }} | |||
{ | |||
"pub_key": { | |||
"data": "{{hostvars[host]["pubkey"]["data"]}}", | |||
"type": "{{hostvars[host]["pubkey"]["type"]}}" | |||
}, | |||
"power":10, | |||
"name":"{{hostvars[host]["inventory_hostname"]}}" | |||
} | |||
{% endfor %} | |||
{% endif %} | |||
], | |||
"app_hash":"", | |||
"app_options": {} | |||
} | |||
@ -1,12 +0,0 @@ | |||
{ | |||
"genesis_time":"{{ansible_date_time.iso8601}}", | |||
"chain_id":"{{testnet_name}}", | |||
"validators": [], | |||
"app_hash":"", | |||
"app_options": { | |||
{% if app_options_file is defined %} | |||
{% include app_options_file %} | |||
{% endif %} | |||
} | |||
} | |||
@ -1,6 +1,6 @@ | |||
--- | |||
- name: Get config.toml from node | |||
fetch: "dest={{ destination | default('.') }}/config.toml flat=yes src=/etc/{{service}}/config.toml" | |||
fetch: "dest={{ destination | default('.') }}/config.toml flat=yes src=/etc/{{service}}/config/config.toml" | |||
run_once: yes | |||
@ -1,6 +0,0 @@ | |||
basecoin (@VERSION@) @STABILITY@; urgency=medium | |||
* Automatic build. See https://github.com/tendermint/basecoin for more information. | |||
-- Greg Szabo <greg@philosobear.com> @DATETIMESTAMP@ | |||
@ -1,15 +0,0 @@ | |||
Source: basecoin | |||
Section: net | |||
Priority: optional | |||
Maintainer: Greg Szabo <greg@philosobear.com> | |||
Build-Depends: debhelper (>=9) | |||
Depends: tendermint (>=0.11.0) | |||
Standards-Version: 3.9.6 | |||
Homepage: https://tendermint.com | |||
Package: basecoin | |||
Architecture: amd64 | |||
Version: @VERSION@ | |||
Installed-Size: @INSTALLEDSIZE@ | |||
Description: basecoin is a Proof-of-Stake cryptocurrency and framework | |||
Basecoin is an ABCI application designed to be used with the Tendermint consensus engine to form a Proof-of-Stake cryptocurrency. It also provides a general purpose framework for extending the feature-set of the cryptocurrency by implementing plugins. | |||
@ -1,21 +0,0 @@ | |||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ | |||
Upstream-Name: basecoin | |||
Source: https://github.com/tendermint/basecoin | |||
Files: * | |||
Copyright: 2017 All In Bits, Inc. | |||
License: Apache-2.0 | |||
Licensed under the Apache License, Version 2.0 (the "License"); | |||
you may not use this file except in compliance with the License. | |||
You may obtain a copy of the License at | |||
. | |||
http://www.apache.org/licenses/LICENSE-2.0 | |||
. | |||
Unless required by applicable law or agreed to in writing, software | |||
distributed under the License is distributed on an "AS IS" BASIS, | |||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |||
See the License for the specific language governing permissions and | |||
limitations under the License. | |||
. | |||
On Debian systems, the full text of the Apache License 2.0 can be found | |||
in the file `/usr/share/common-licenses/Apache-2.0'. |
@ -1,3 +0,0 @@ | |||
disable basecoin.service | |||
disable basecoin-server.service | |||
@ -1,24 +0,0 @@ | |||
[Unit] | |||
Description=Basecoin server | |||
Requires=network-online.target | |||
BindTo=basecoin.service | |||
PartOf=basecoin.service | |||
Before=basecoin.service | |||
After=network-online.target | |||
PropagatesReloadTo=basecoin.service | |||
ReloadPropagatedFrom=basecoin.service | |||
[Service] | |||
Environment="TMHOME=/etc/basecoin" | |||
Restart=on-failure | |||
User=basecoin | |||
Group=basecoin | |||
PermissionsStartOnly=true | |||
ExecStart=/usr/bin/tendermint node | |||
ExecReload=/bin/kill -HUP $MAINPID | |||
KillSignal=SIGTERM | |||
[Install] | |||
WantedBy=multi-user.target | |||
Also=basecoin.service | |||
@ -1,28 +0,0 @@ | |||
[Unit] | |||
Description=Basecoin | |||
#propagates activation, deactivation and activation fails. | |||
Requires=network-online.target | |||
#propagates activation, deactivation, activation fails and stops | |||
BindTo=basecoin-server.service | |||
#propagates stop and restart (one-way) | |||
PartOf=basecoin-server.service | |||
#order | |||
After=network-online.target basecoin-server.service | |||
#propagates reload | |||
PropagatesReloadTo=basecoin-server.service | |||
ReloadPropagatedFrom=basecoin-server.service | |||
[Service] | |||
Environment="BCHOME=/etc/basecoin" | |||
Restart=on-failure | |||
User=basecoin | |||
Group=basecoin | |||
PermissionsStartOnly=true | |||
ExecStart=/usr/bin/basecoin start --without-tendermint | |||
ExecReload=/bin/kill -HUP $MAINPID | |||
KillSignal=SIGTERM | |||
[Install] | |||
WantedBy=multi-user.target basecoin-server.service | |||
Also=basecoin-server.service | |||
@ -0,0 +1,14 @@ | |||
Source: basecoind | |||
Section: net | |||
Priority: optional | |||
Maintainer: Greg Szabo <greg@philosobear.com> | |||
Build-Depends: debhelper (>=9) | |||
Standards-Version: 3.9.6 | |||
Homepage: https://tendermint.com | |||
Package: basecoind | |||
Architecture: amd64 | |||
Version: @VERSION@ | |||
Installed-Size: @INSTALLEDSIZE@ | |||
Description: basecoind is a Proof-of-Stake cryptocurrency and framework | |||
Basecoind is an ABCI application designed to be used with the Tendermint consensus engine to form a Proof-of-Stake cryptocurrency. It also provides a general purpose framework for extending the feature-set of the cryptocurrency by implementing plugins. | |||
@ -0,0 +1,2 @@ | |||
disable basecoind.service | |||
@ -0,0 +1,18 @@ | |||
[Unit] | |||
Description=Basecoind | |||
Requires=network-online.target | |||
After=network-online.target | |||
[Service] | |||
Environment="BCHOME=/etc/basecoind" | |||
Restart=on-failure | |||
User=basecoind | |||
Group=basecoind | |||
PermissionsStartOnly=true | |||
ExecStart=/usr/bin/basecoind start | |||
ExecReload=/bin/kill -HUP $MAINPID | |||
KillSignal=SIGTERM | |||
[Install] | |||
WantedBy=multi-user.target | |||
@ -1 +0,0 @@ | |||
9 |
@ -1,15 +0,0 @@ | |||
Source: cosmos-sdk | |||
Section: net | |||
Priority: optional | |||
Maintainer: Greg Szabo <greg@philosobear.com> | |||
Build-Depends: debhelper (>=9) | |||
Depends: tendermint (>=0.11.0) | |||
Standards-Version: 3.9.6 | |||
Homepage: https://tendermint.com | |||
Package: cosmos-sdk | |||
Architecture: amd64 | |||
Version: @VERSION@ | |||
Installed-Size: @INSTALLEDSIZE@ | |||
Description: cosmos-sdk is a Proof-of-Stake framework | |||
Cosmos-SDK is a general purpose framework for the Tendermint consensus engine to form a Proof-of-Stake cryptocurrency. | |||
@ -1,46 +0,0 @@ | |||
#!/bin/sh | |||
# postinst script for cosmos-sdk | |||
# | |||
set -e | |||
# summary of how this script can be called: | |||
# * <postinst> `configure' <most-recently-configured-version> | |||
# * <old-postinst> `abort-upgrade' <new version> | |||
# * <conflictor's-postinst> `abort-remove' `in-favour' <package> | |||
# <new-version> | |||
# * <postinst> `abort-remove' | |||
# * <deconfigured's-postinst> `abort-deconfigure' `in-favour' | |||
# <failed-install-package> <version> `removing' | |||
# <conflicting-package> <version> | |||
# for details, see https://www.debian.org/doc/debian-policy/ or | |||
# the debian-policy package | |||
case "$1" in | |||
configure) | |||
chown cosmos-sdk.cosmos-sdk /etc/cosmos-sdk | |||
sudo -Hu cosmos-sdk basecoin init --home /etc/cosmos-sdk 2B24DEE2364762300168DF19B6C18BCE2D399EA2 | |||
#The above command generates a genesis.json file that contains validators. This is wrong, the validator part should be empty. https://github.com/tendermint/basecoin/issues/124 | |||
sudo -Hu cosmos-sdk tendermint init --home /etc/cosmos-sdk/tendermint | |||
#The above command might need some kind of additional option in the future. https://github.com/tendermint/tendermint/issues/542 | |||
chmod 755 /etc/cosmos-sdk/tendermint | |||
chown cosmos-sdk.cosmos-sdk /etc/cosmos-sdk/tendermint | |||
systemctl daemon-reload | |||
;; | |||
abort-upgrade|abort-remove|abort-deconfigure) | |||
;; | |||
*) | |||
echo "postinst called with unknown argument \`$1'" >&2 | |||
exit 1 | |||
;; | |||
esac | |||
# dh_installdeb will replace this with shell code automatically | |||
# generated by other debhelper scripts. | |||
#DEBHELPER# | |||
exit 0 |
@ -1,41 +0,0 @@ | |||
#!/bin/sh | |||
# postrm script for cosmos-sdk | |||
# | |||
set -e | |||
# summary of how this script can be called: | |||
# * <postrm> `remove' | |||
# * <postrm> `purge' | |||
# * <old-postrm> `upgrade' <new-version> | |||
# * <new-postrm> `failed-upgrade' <old-version> | |||
# * <new-postrm> `abort-install' | |||
# * <new-postrm> `abort-install' <old-version> | |||
# * <new-postrm> `abort-upgrade' <old-version> | |||
# * <disappearer's-postrm> `disappear' <overwriter> | |||
# <overwriter-version> | |||
# for details, see https://www.debian.org/doc/debian-policy/ or | |||
# the debian-policy package | |||
case "$1" in | |||
upgrade|failed-upgrade|abort-upgrade) | |||
systemctl daemon-reload | |||
;; | |||
purge|remove|abort-install|disappear) | |||
systemctl daemon-reload | |||
;; | |||
*) | |||
echo "postrm called with unknown argument \`$1'" >&2 | |||
exit 1 | |||
;; | |||
esac | |||
# dh_installdeb will replace this with shell code automatically | |||
# generated by other debhelper scripts. | |||
#DEBHELPER# | |||
exit 0 |
@ -1,38 +0,0 @@ | |||
#!/bin/sh | |||
# preinst script for cosmos-sdk | |||
# | |||
set -e | |||
# summary of how this script can be called: | |||
# * <new-preinst> `install' | |||
# * <new-preinst> `install' <old-version> | |||
# * <new-preinst> `upgrade' <old-version> | |||
# * <old-preinst> `abort-upgrade' <new-version> | |||
# for details, see https://www.debian.org/doc/debian-policy/ or | |||
# the debian-policy package | |||
case "$1" in | |||
install|upgrade) | |||
if ! grep -q '^cosmos-sdk:' /etc/passwd ; then | |||
useradd -k /dev/null -r -m -b /etc cosmos-sdk | |||
chmod 755 /etc/cosmos-sdk | |||
fi | |||
;; | |||
abort-upgrade) | |||
;; | |||
*) | |||
echo "preinst called with unknown argument \`$1'" >&2 | |||
exit 1 | |||
;; | |||
esac | |||
# dh_installdeb will replace this with shell code automatically | |||
# generated by other debhelper scripts. | |||
#DEBHELPER# | |||
exit 0 |
@ -1,39 +0,0 @@ | |||
#!/bin/sh | |||
# prerm script for cosmos-sdk | |||
# | |||
set -e | |||
# summary of how this script can be called: | |||
# * <prerm> `remove' | |||
# * <old-prerm> `upgrade' <new-version> | |||
# * <new-prerm> `failed-upgrade' <old-version> | |||
# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version> | |||
# * <deconfigured's-prerm> `deconfigure' `in-favour' | |||
# <package-being-installed> <version> `removing' | |||
# <conflicting-package> <version> | |||
# for details, see https://www.debian.org/doc/debian-policy/ or | |||
# the debian-policy package | |||
case "$1" in | |||
remove|upgrade|deconfigure) | |||
systemctl stop cosmos-sdk 2> /dev/null || : | |||
systemctl stop cosmos-sdk-service 2> /dev/null || : | |||
;; | |||
failed-upgrade) | |||
;; | |||
*) | |||
echo "prerm called with unknown argument \`$1'" >&2 | |||
exit 1 | |||
;; | |||
esac | |||
# dh_installdeb will replace this with shell code automatically | |||
# generated by other debhelper scripts. | |||
#DEBHELPER# | |||
exit 0 |
@ -1,3 +0,0 @@ | |||
disable cosmos-sdk.service | |||
disable cosmos-sdk-server.service | |||
@ -1,23 +0,0 @@ | |||
[Unit] | |||
Description=Cosmos SDK Basecoin Tendermint server | |||
Requires=network-online.target | |||
BindTo=cosmos-sdk.service | |||
PartOf=cosmos-sdk.service | |||
After=network-online.target cosmos-sdk.service | |||
PropagatesReloadTo=cosmos-sdk.service | |||
ReloadPropagatedFrom=cosmos-sdk.service | |||
[Service] | |||
Environment="TMHOME=/etc/cosmos-sdk" | |||
Restart=on-failure | |||
User=cosmos-sdk | |||
Group=cosmos-sdk | |||
PermissionsStartOnly=true | |||
ExecStart=/usr/bin/tendermint node | |||
ExecReload=/bin/kill -HUP $MAINPID | |||
KillSignal=SIGTERM | |||
[Install] | |||
WantedBy=multi-user.target | |||
Also=cosmos-sdk.service | |||
@ -1,29 +0,0 @@ | |||
[Unit] | |||
Description=Cosmos-SDK Basecoin | |||
#propagates activation, deactivation and activation fails. | |||
Requires=network-online.target | |||
#propagates activation, deactivation, activation fails and stops | |||
BindTo=cosmos-sdk-server.service | |||
#propagates stop and restart (one-way) | |||
PartOf=cosmos-sdk-server.service | |||
#order | |||
Before=cosmos-sdk-server.service | |||
After=network-online.target | |||
#propagates reload | |||
PropagatesReloadTo=cosmos-sdk-server.service | |||
ReloadPropagatedFrom=cosmos-sdk-server.service | |||
[Service] | |||
Environment="BCHOME=/etc/cosmos-sdk" | |||
Restart=on-failure | |||
User=cosmos-sdk | |||
Group=cosmos-sdk | |||
PermissionsStartOnly=true | |||
ExecStart=/usr/bin/basecoin start --without-tendermint | |||
ExecReload=/bin/kill -HUP $MAINPID | |||
KillSignal=SIGTERM | |||
[Install] | |||
WantedBy=multi-user.target cosmos-sdk-server.service | |||
Also=cosmos-sdk-server.service | |||
@ -1,12 +0,0 @@ | |||
{ | |||
"address": "1B1BE55F969F54064628A63B9559E7C21C925165", | |||
"priv_key": { | |||
"type": "ed25519", | |||
"data": "C70D6934B4F55F1B7BC33B56B9CA8A2061384AFC19E91E44B40C4BBA182953D1619D3678599971ED29C7529DDD4DA537B97129893598A17C82E3AC9A8BA95279" | |||
}, | |||
"pub_key": { | |||
"type": "ed25519", | |||
"data": "619D3678599971ED29C7529DDD4DA537B97129893598A17C82E3AC9A8BA95279" | |||
} | |||
} | |||
@ -1,12 +0,0 @@ | |||
{ | |||
"address": "1DA7C74F9C219229FD54CC9F7386D5A3839F0090", | |||
"priv_key": { | |||
"type": "ed25519", | |||
"data": "34BAE9E65CE8245FAD035A0E3EED9401BDE8785FFB3199ACCF8F5B5DDF7486A8352195DA90CB0B90C24295B90AEBA25A5A71BC61BAB2FE2387241D439698B7B8" | |||
}, | |||
"pub_key": { | |||
"type": "ed25519", | |||
"data": "352195DA90CB0B90C24295B90AEBA25A5A71BC61BAB2FE2387241D439698B7B8" | |||
} | |||
} | |||
@ -1,3 +1,2 @@ | |||
disable ethermint.service | |||
disable ethermint-server.service | |||
@ -1,24 +0,0 @@ | |||
[Unit] | |||
Description=Ethermint server | |||
Requires=network-online.target | |||
BindTo=ethermint.service | |||
PartOf=ethermint.service | |||
Before=ethermint.service | |||
After=network-online.target | |||
PropagatesReloadTo=ethermint.service | |||
ReloadPropagatedFrom=ethermint.service | |||
[Service] | |||
Environment="TMHOME=/etc/ethermint" | |||
Restart=on-failure | |||
User=ethermint | |||
Group=ethermint | |||
PermissionsStartOnly=true | |||
ExecStart=/usr/bin/tendermint node | |||
ExecReload=/bin/kill -HUP $MAINPID | |||
KillSignal=SIGTERM | |||
[Install] | |||
WantedBy=multi-user.target ethermint.service | |||
Also=ethermint.service | |||
@ -1,3 +1,2 @@ | |||
disable gaia.service | |||
disable gaia-server.service | |||
@ -1,24 +0,0 @@ | |||
[Unit] | |||
Description=Gaia server | |||
Requires=network-online.target | |||
BindTo=gaia.service | |||
PartOf=gaia.service | |||
Before=gaia.service | |||
After=network-online.target | |||
PropagatesReloadTo=gaia.service | |||
ReloadPropagatedFrom=gaia.service | |||
[Service] | |||
Environment="TMHOME=/etc/gaia" | |||
Restart=on-failure | |||
User=gaia | |||
Group=gaia | |||
PermissionsStartOnly=true | |||
ExecStart=/usr/bin/tendermint node | |||
ExecReload=/bin/kill -HUP $MAINPID | |||
KillSignal=SIGTERM | |||
[Install] | |||
WantedBy=multi-user.target | |||
Also=gaia.service | |||
@ -1,27 +1,17 @@ | |||
[Unit] | |||
Description=Gaia | |||
#propagates activation, deactivation and activation fails. | |||
Requires=network-online.target | |||
#propagates activation, deactivation, activation fails and stops | |||
BindTo=gaia-server.service | |||
#propagates stop and restart (one-way) | |||
PartOf=gaia-server.service | |||
#order | |||
After=network-online.target gaia-server.service | |||
#propagates reload | |||
PropagatesReloadTo=gaia-server.service | |||
ReloadPropagatedFrom=gaia-server.service | |||
After=network-online.target | |||
[Service] | |||
Restart=on-failure | |||
User=gaia | |||
Group=gaia | |||
PermissionsStartOnly=true | |||
ExecStart=/usr/bin/gaia start --without-tendermint --home=/etc/gaia | |||
ExecStart=/usr/bin/gaia node start --home=/etc/gaia | |||
ExecReload=/bin/kill -HUP $MAINPID | |||
KillSignal=SIGTERM | |||
[Install] | |||
WantedBy=multi-user.target gaia-server.service | |||
Also=gaia-server.service | |||
WantedBy=multi-user.target | |||
@ -1,5 +0,0 @@ | |||
PACKAGE_SUMMARY="basecoin is a Proof-of-Stake cryptocurrency and framework" | |||
PACKAGE_URL="https://cosmos.network/" | |||
PACKAGE_ADDITIONAL_HEADER="Provides: basecli" | |||
PACKAGE_DESCRIPTION="Basecoin is an ABCI application designed to be used with the Tendermint consensus engine to form a Proof-of-Stake cryptocurrency. It also provides a general purpose framework for extending the feature-set of the cryptocurrency by implementing plugins." | |||
@ -0,0 +1,5 @@ | |||
PACKAGE_SUMMARY="basecoind is a Proof-of-Stake cryptocurrency and framework" | |||
PACKAGE_URL="https://cosmos.network/" | |||
PACKAGE_ADDITIONAL_HEADER="Provides: basecoind" | |||
PACKAGE_DESCRIPTION="Basecoind is an ABCI application designed to be used with the Tendermint consensus engine to form a Proof-of-Stake cryptocurrency. It also provides a general purpose framework for extending the feature-set of the cryptocurrency by implementing plugins." | |||
@ -1,5 +0,0 @@ | |||
PACKAGE_SUMMARY="cosmos-sdk is a Proof-of-Stake framework" | |||
PACKAGE_URL="https://cosmos.network/" | |||
PACKAGE_ADDITIONAL_HEADER="Provides: basecoin basecli" | |||
PACKAGE_DESCRIPTION="Cosmos-SDK is a general purpose framework for the Tendermint consensus engine to form a Proof-of-Stake cryptocurrency." | |||
@ -1,5 +1,5 @@ | |||
PACKAGE_SUMMARY="ethermint enables ethereum as an ABCI application on tendermint and the COSMOS hub" | |||
PACKAGE_URL="https://tendermint.com/" | |||
PACKAGE_ADDITIONAL_HEADER="Provides: basecli" | |||
PACKAGE_ADDITIONAL_HEADER="Provides: ethermint" | |||
PACKAGE_DESCRIPTION="Ethermint enables ethereum to run as an ABCI application on tendermint and the COSMOS hub. This application allows you to get all the benefits of ethereum without having to run your own miners." | |||
@ -1,5 +1,5 @@ | |||
PACKAGE_SUMMARY="gaia - Tendermint Cosmos delegation game chain" | |||
PACKAGE_URL="https://cosmos.network/" | |||
PACKAGE_ADDITIONAL_HEADER="Provides: gaiacli" | |||
PACKAGE_ADDITIONAL_HEADER="" | |||
PACKAGE_DESCRIPTION="Gaia description comes later." | |||
@ -1,5 +0,0 @@ | |||
PACKAGE_SUMMARY="Trackomatron - Track invoices on the blockchain" | |||
PACKAGE_URL="https://tendermint.com/" | |||
PACKAGE_ADDITIONAL_HEADER="" | |||
PACKAGE_DESCRIPTION="This software is intended to create a space to easily send invoices between and within institutions. Firstly, the commands of trackmatron are separated into two broad categories: submitting information to the blockchain (transactions), and retrieving information from the blockchain (query)." | |||
@ -1,63 +0,0 @@ | |||
Version: @VERSION@ | |||
Release: @BUILD_NUMBER@ | |||
%define __spec_install_post %{nil} | |||
%define debug_package %{nil} | |||
%define __os_install_post %{nil} | |||
Name: @PACKAGE_NAME@ | |||
Summary: @PACKAGE_SUMMARY@ | |||
License: Apache 2.0 | |||
URL: @PACKAGE_URL@ | |||
Packager: Greg Szabo | |||
Requires: tendermint >= 0.11.0 | |||
@PACKAGE_ADDITIONAL_HEADER@ | |||
%description | |||
@PACKAGE_DESCRIPTION@ | |||
%pre | |||
if ! %{__grep} -q '^%{name}:' /etc/passwd ; then | |||
useradd -r -b %{_sysconfdir} %{name} | |||
mkdir -p %{_sysconfdir}/%{name} | |||
chmod 755 %{_sysconfdir}/%{name} | |||
chown %{name}.%{name} %{_sysconfdir}/%{name} | |||
fi | |||
%prep | |||
# Nothing to do here. - It is done in the Makefile. | |||
%build | |||
# Nothing to do here. | |||
%install | |||
cd %{name}-%{version}-%{release} | |||
%{__cp} -a * %{buildroot} | |||
%post | |||
sudo -Hu %{name} tendermint init --home %{_sysconfdir}/%{name} | |||
sudo -Hu %{name} tracko init --home %{_sysconfdir}/%{name} 2B24DEE2364762300168DF19B6C18BCE2D399EA2 | |||
#Temporary until https://github.com/tendermint/basecoin/issues/123 | |||
rm -f %{_sysconfdir}/%{name}/key.json | |||
rm -f %{_sysconfdir}/%{name}/key2.json | |||
systemctl daemon-reload | |||
%preun | |||
systemctl stop %{name} 2> /dev/null || : | |||
systemctl stop %{name}-service 2> /dev/null || : | |||
%postun | |||
systemctl daemon-reload | |||
%files | |||
%ghost %attr(0755, %{name}, %{name}) %dir %{_sysconfdir}/%{name} | |||
%{_bindir}/* | |||
%{_sysconfdir}/systemd/system/* | |||
%{_sysconfdir}/systemd/system-preset/* | |||
%dir %{_datadir}/%{name} | |||
%{_datadir}/%{name}/* | |||
%dir %{_defaultlicensedir}/%{name} | |||
%doc %{_defaultlicensedir}/%{name}/LICENSE | |||
@ -1,6 +0,0 @@ | |||
trackomatron (@VERSION@) @STABILITY@; urgency=medium | |||
* Automatic build. See https://github.com/tendermint/trackomatron for more information. | |||
-- Greg Szabo <greg@philosobear.com> @DATETIMESTAMP@ | |||
@ -1 +0,0 @@ | |||
9 |
@ -1,15 +0,0 @@ | |||
Source: trackomatron | |||
Section: net | |||
Priority: optional | |||
Maintainer: Greg Szabo <greg@philosobear.com> | |||
Build-Depends: debhelper (>=9) | |||
Depends: tendermint (>=0.11.0) | |||
Standards-Version: 3.9.6 | |||
Homepage: https://tendermint.com | |||
Package: trackomatron | |||
Architecture: amd64 | |||
Version: @VERSION@ | |||
Installed-Size: @INSTALLEDSIZE@ | |||
Description: Trackomatron - Track invoices on the blockchain | |||
This software is intended to create a space to easily send invoices between and within institutions. Firstly, the commands of trackmatron are separated into two broad categories: submitting information to the blockchain (transactions), and retrieving information from the blockchain (query). | |||
@ -1,21 +0,0 @@ | |||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ | |||
Upstream-Name: trackomatron | |||
Source: https://github.com/tendermint/trackomatron | |||
Files: * | |||
Copyright: 2017 All In Bits, Inc. | |||
License: Apache-2.0 | |||
Licensed under the Apache License, Version 2.0 (the "License"); | |||
you may not use this file except in compliance with the License. | |||
You may obtain a copy of the License at | |||
. | |||
http://www.apache.org/licenses/LICENSE-2.0 | |||
. | |||
Unless required by applicable law or agreed to in writing, software | |||
distributed under the License is distributed on an "AS IS" BASIS, | |||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |||
See the License for the specific language governing permissions and | |||
limitations under the License. | |||
. | |||
On Debian systems, the full text of the Apache License 2.0 can be found | |||
in the file `/usr/share/common-licenses/Apache-2.0'. |
@ -1,48 +0,0 @@ | |||
#!/bin/sh | |||
# postinst script for trackomatron | |||
# | |||
set -e | |||
# summary of how this script can be called: | |||
# * <postinst> `configure' <most-recently-configured-version> | |||
# * <old-postinst> `abort-upgrade' <new version> | |||
# * <conflictor's-postinst> `abort-remove' `in-favour' <package> | |||
# <new-version> | |||
# * <postinst> `abort-remove' | |||
# * <deconfigured's-postinst> `abort-deconfigure' `in-favour' | |||
# <failed-install-package> <version> `removing' | |||
# <conflicting-package> <version> | |||
# for details, see https://www.debian.org/doc/debian-policy/ or | |||
# the debian-policy package | |||
case "$1" in | |||
configure) | |||
chown trackomatron.trackomatron /etc/trackomatron | |||
sudo -Hu trackomatron tracko init --home /etc/trackomatron 2B24DEE2364762300168DF19B6C18BCE2D399EA2 | |||
#The above command generates a genesis.json file that contains validators. This is wrong, the validator part should be empty. https://github.com/tendermint/basecoin/issues/124 | |||
sudo -Hu trackomatron tendermint init --home /etc/trackomatron/tendermint | |||
#The above command might need some kind of additional option in the future. https://github.com/tendermint/tendermint/issues/542 | |||
chown trackomatron.trackomatron /etc/trackomatron/tendermint | |||
chmod 755 /etc/trackomatron/tendermint | |||
systemctl daemon-reload | |||
;; | |||
abort-upgrade|abort-remove|abort-deconfigure) | |||
;; | |||
*) | |||
echo "postinst called with unknown argument \`$1'" >&2 | |||
exit 1 | |||
;; | |||
esac | |||
# dh_installdeb will replace this with shell code automatically | |||
# generated by other debhelper scripts. | |||
#DEBHELPER# | |||
exit 0 |
@ -1,41 +0,0 @@ | |||
#!/bin/sh | |||
# postrm script for trackomatron | |||
# | |||
set -e | |||
# summary of how this script can be called: | |||
# * <postrm> `remove' | |||
# * <postrm> `purge' | |||
# * <old-postrm> `upgrade' <new-version> | |||
# * <new-postrm> `failed-upgrade' <old-version> | |||
# * <new-postrm> `abort-install' | |||
# * <new-postrm> `abort-install' <old-version> | |||
# * <new-postrm> `abort-upgrade' <old-version> | |||
# * <disappearer's-postrm> `disappear' <overwriter> | |||
# <overwriter-version> | |||
# for details, see https://www.debian.org/doc/debian-policy/ or | |||
# the debian-policy package | |||
case "$1" in | |||
upgrade|failed-upgrade|abort-upgrade) | |||
systemctl daemon-reload | |||
;; | |||
purge|remove|abort-install|disappear) | |||
systemctl daemon-reload | |||
;; | |||
*) | |||
echo "postrm called with unknown argument \`$1'" >&2 | |||
exit 1 | |||
;; | |||
esac | |||
# dh_installdeb will replace this with shell code automatically | |||
# generated by other debhelper scripts. | |||
#DEBHELPER# | |||
exit 0 |
@ -1,38 +0,0 @@ | |||
#!/bin/sh | |||
# preinst script for trackomatron | |||
# | |||
set -e | |||
# summary of how this script can be called: | |||
# * <new-preinst> `install' | |||
# * <new-preinst> `install' <old-version> | |||
# * <new-preinst> `upgrade' <old-version> | |||
# * <old-preinst> `abort-upgrade' <new-version> | |||
# for details, see https://www.debian.org/doc/debian-policy/ or | |||
# the debian-policy package | |||
case "$1" in | |||
install|upgrade) | |||
if ! grep -q '^trackomatron:' /etc/passwd ; then | |||
useradd -k /dev/null -r -m -b /etc trackomatron | |||
chmod 755 /etc/trackomatron | |||
fi | |||
;; | |||
abort-upgrade) | |||
;; | |||
*) | |||
echo "preinst called with unknown argument \`$1'" >&2 | |||
exit 1 | |||
;; | |||
esac | |||
# dh_installdeb will replace this with shell code automatically | |||
# generated by other debhelper scripts. | |||
#DEBHELPER# | |||
exit 0 |
@ -1,39 +0,0 @@ | |||
#!/bin/sh | |||
# prerm script for trackomatron | |||
# | |||
set -e | |||
# summary of how this script can be called: | |||
# * <prerm> `remove' | |||
# * <old-prerm> `upgrade' <new-version> | |||
# * <new-prerm> `failed-upgrade' <old-version> | |||
# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version> | |||
# * <deconfigured's-prerm> `deconfigure' `in-favour' | |||
# <package-being-installed> <version> `removing' | |||
# <conflicting-package> <version> | |||
# for details, see https://www.debian.org/doc/debian-policy/ or | |||
# the debian-policy package | |||
case "$1" in | |||
remove|upgrade|deconfigure) | |||
systemctl stop trackomatron 2> /dev/null || : | |||
systemctl stop trackomatron-service 2> /dev/null || : | |||
;; | |||
failed-upgrade) | |||
;; | |||
*) | |||
echo "prerm called with unknown argument \`$1'" >&2 | |||
exit 1 | |||
;; | |||
esac | |||
# dh_installdeb will replace this with shell code automatically | |||
# generated by other debhelper scripts. | |||
#DEBHELPER# | |||
exit 0 |
@ -1,3 +0,0 @@ | |||
disable trackomatron.service | |||
disable trackomatron-server.service | |||
@ -1,24 +0,0 @@ | |||
[Unit] | |||
Description=Trackomatron server | |||
Requires=network-online.target | |||
BindTo=trackomatron.service | |||
PartOf=trackomatron.service | |||
Before=trackomatron.service | |||
After=network-online.target | |||
PropagatesReloadTo=trackomatron.service | |||
ReloadPropagatedFrom=trackomatron.service | |||
[Service] | |||
Environment="TMHOME=/etc/trackomatron" | |||
Restart=on-failure | |||
User=trackomatron | |||
Group=trackomatron | |||
PermissionsStartOnly=true | |||
ExecStart=/usr/bin/tendermint node | |||
ExecReload=/bin/kill -HUP $MAINPID | |||
KillSignal=SIGTERM | |||
[Install] | |||
WantedBy=multi-user.target | |||
Also=trackomatron.service | |||
@ -1,27 +0,0 @@ | |||
[Unit] | |||
Description=Trackomatron | |||
#propagates activation, deactivation and activation fails. | |||
Requires=network-online.target | |||
#propagates activation, deactivation, activation fails and stops | |||
BindTo=trackomatron-server.service | |||
#propagates stop and restart (one-way) | |||
PartOf=trackomatron-server.service | |||
#order | |||
After=network-online.target trackomatron-server.service | |||
#propagates reload | |||
PropagatesReloadTo=trackomatron-server.service | |||
ReloadPropagatedFrom=trackomatron-server.service | |||
[Service] | |||
Restart=on-failure | |||
User=trackomatron | |||
Group=trackomatron | |||
PermissionsStartOnly=true | |||
ExecStart=/usr/bin/tracko start --without-tendermint --home /etc/trackomatron | |||
ExecReload=/bin/kill -HUP $MAINPID | |||
KillSignal=SIGTERM | |||
[Install] | |||
WantedBy=multi-user.target trackomatron-server.service | |||
Also=trackomatron-server.service | |||
@ -1,12 +0,0 @@ | |||
{ | |||
"address": "1B1BE55F969F54064628A63B9559E7C21C925165", | |||
"priv_key": { | |||
"type": "ed25519", | |||
"data": "C70D6934B4F55F1B7BC33B56B9CA8A2061384AFC19E91E44B40C4BBA182953D1619D3678599971ED29C7529DDD4DA537B97129893598A17C82E3AC9A8BA95279" | |||
}, | |||
"pub_key": { | |||
"type": "ed25519", | |||
"data": "619D3678599971ED29C7529DDD4DA537B97129893598A17C82E3AC9A8BA95279" | |||
} | |||
} | |||
@ -1,12 +0,0 @@ | |||
{ | |||
"address": "1DA7C74F9C219229FD54CC9F7386D5A3839F0090", | |||
"priv_key": { | |||
"type": "ed25519", | |||
"data": "34BAE9E65CE8245FAD035A0E3EED9401BDE8785FFB3199ACCF8F5B5DDF7486A8352195DA90CB0B90C24295B90AEBA25A5A71BC61BAB2FE2387241D439698B7B8" | |||
}, | |||
"pub_key": { | |||
"type": "ed25519", | |||
"data": "352195DA90CB0B90C24295B90AEBA25A5A71BC61BAB2FE2387241D439698B7B8" | |||
} | |||
} | |||
@ -0,0 +1,21 @@ | |||
FROM ubuntu:16.04 | |||
MAINTAINER Greg Szabo <greg@tendermint.com> | |||
#Default home for tendermint. The node command will look for $TMHOME/config/genesis.json at initialization. | |||
ENV TMHOME /tendermint | |||
RUN apt-get -y update && \ | |||
apt-get -y upgrade && \ | |||
apt-get -y install curl jq && \ | |||
adduser --system --home "$TMHOME" --group tmuser | |||
USER tmuser | |||
VOLUME [ $TMHOME ] | |||
WORKDIR $TMHOME | |||
EXPOSE 46656 46657 | |||
ENTRYPOINT ["/usr/bin/tendermint"] | |||
CMD ["node", "--moniker=`hostname`"] | |||
STOPSIGNAL SIGTERM | |||
ARG BINARY=tendermint | |||
COPY $BINARY /usr/bin/tendermint | |||
@ -0,0 +1 @@ | |||
This is a temporary folder to contain the Dockerfile used for automated builds, until it is merged with the tendermint repository. |