Skip to content

Commit 35e9239

Browse files
authored
Merge pull request #2043 from KomodoPlatform/dev
chore(release): v2.1.0-beta
2 parents b0fd99e + cf35936 commit 35e9239

File tree

576 files changed

+59401
-19449
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

576 files changed

+59401
-19449
lines changed

.cargo/config .cargo/config.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ rustflags = [ "-Zshare-generics=y" ]
88
# [target.x86_64-unknown-linux-gnu]
99
# linker = "clang"
1010
# rustflags = [ "-Clink-arg=-fuse-ld=lld" ]
11-
#
11+
#
1212
# # `brew install llvm`
1313
# [target.x86_64-apple-darwin]
1414
# rustflags = [
1515
# "-C",
1616
# "link-arg=-fuse-ld=/usr/local/opt/llvm/bin/ld64.lld",
1717
# ]
18-
#
18+
#
1919
# [target.aarch64-apple-darwin]
2020
# rustflags = [
2121
# "-C",

.docker/Dockerfile

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM docker.io/debian:buster-slim
1+
FROM docker.io/debian:10
22

33
MAINTAINER Onur Özkan <[email protected]>
44

@@ -10,6 +10,7 @@ RUN apt-get install -y \
1010
ca-certificates \
1111
curl \
1212
wget \
13+
unzip \
1314
gnupg
1415

1516
RUN ln -s /usr/bin/python3 /bin/python
@@ -26,11 +27,11 @@ RUN ./llvm.sh 16
2627

2728
RUN rm ./llvm.sh
2829

29-
RUN ln -s /usr/bin/clang-16 /usr/bin/clang
30-
3130
ENV AR=/usr/bin/llvm-ar-16
3231
ENV CC=/usr/bin/clang-16
3332

33+
RUN ln -s /usr/bin/clang-16 /usr/bin/clang
34+
3435
RUN mkdir -m 0755 -p /etc/apt/keyrings
3536

3637
RUN curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
@@ -47,6 +48,9 @@ RUN apt-get install -y \
4748
containerd.io \
4849
docker-buildx-plugin
4950

50-
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
51+
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --profile minimal --default-toolchain nightly-2023-06-01 -y
52+
53+
RUN wget https://github.com/protocolbuffers/protobuf/releases/download/v3.20.1/protoc-3.20.1-linux-x86_64.zip
54+
RUN unzip protoc-3.20.1-linux-x86_64.zip && mv ./include/google /usr/include/google
5155

5256
ENV PATH="/root/.cargo/bin:$PATH"

.docker/Dockerfile.ci-container

+6-1
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,14 @@ RUN apt-get install -y \
1414
gnupg \
1515
git \
1616
zip \
17+
python3 \
18+
python3-pip \
19+
python-dev \
20+
libffi-dev \
1721
sudo
1822

19-
RUN ln -s /usr/bin/python3 /bin/python
23+
RUN pip3 install --upgrade pip
24+
RUN pip3 install paramiko
2025

2126
RUN apt install -y \
2227
software-properties-common \

.docker/Dockerfile.dev-release

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
FROM docker.io/debian:stable-slim
2-
WORKDIR /mm2
2+
WORKDIR /kdf
3+
COPY target/release/kdf /usr/local/bin/kdf
34
COPY target/release/mm2 /usr/local/bin/mm2
45
EXPOSE 7783
5-
CMD ["mm2"]
6+
CMD ["kdf"]

.docker/Dockerfile.release

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
FROM docker.io/debian:stable-slim
2-
WORKDIR /mm2
2+
WORKDIR /kdf
3+
COPY target/release/kdf /usr/local/bin/kdf
34
COPY target/release/mm2 /usr/local/bin/mm2
45
EXPOSE 7783
5-
CMD ["mm2"]
6+
CMD ["kdf"]

.docker/Dockerfile.ubuntu.ci

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ RUN \
1818
chmod -R 777 /root
1919

2020
ENV PATH="/root/.cargo/bin:${PATH}"
21-
WORKDIR /mm2
21+
WORKDIR /kdf
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"key": "9c1e658a8e070bbd7e7cfcaa",
3+
"addrs": []
4+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,263 @@
1+
# This is a TOML config file.
2+
# For more information, see https://github.com/toml-lang/toml
3+
4+
###############################################################################
5+
### Base Configuration ###
6+
###############################################################################
7+
8+
# The minimum gas prices a validator is willing to accept for processing a
9+
# transaction. A transaction's fees must meet the minimum of any denomination
10+
# specified in this config (e.g. 0.25token1,0.0001token2).
11+
minimum-gas-prices = "0.0025uatom"
12+
13+
# default: the last 362880 states are kept, pruning at 10 block intervals
14+
# nothing: all historic states will be saved, nothing will be deleted (i.e. archiving node)
15+
# everything: 2 latest states will be kept; pruning at 10 block intervals.
16+
# custom: allow pruning options to be manually specified through 'pruning-keep-recent', and 'pruning-interval'
17+
pruning = "default"
18+
19+
# These are applied if and only if the pruning strategy is custom.
20+
pruning-keep-recent = "0"
21+
pruning-interval = "0"
22+
23+
# HaltHeight contains a non-zero block height at which a node will gracefully
24+
# halt and shutdown that can be used to assist upgrades and testing.
25+
#
26+
# Note: Commitment of state will be attempted on the corresponding block.
27+
halt-height = 0
28+
29+
# HaltTime contains a non-zero minimum block time (in Unix seconds) at which
30+
# a node will gracefully halt and shutdown that can be used to assist upgrades
31+
# and testing.
32+
#
33+
# Note: Commitment of state will be attempted on the corresponding block.
34+
halt-time = 0
35+
36+
# MinRetainBlocks defines the minimum block height offset from the current
37+
# block being committed, such that all blocks past this offset are pruned
38+
# from Tendermint. It is used as part of the process of determining the
39+
# ResponseCommit.RetainHeight value during ABCI Commit. A value of 0 indicates
40+
# that no blocks should be pruned.
41+
#
42+
# This configuration value is only responsible for pruning Tendermint blocks.
43+
# It has no bearing on application state pruning which is determined by the
44+
# "pruning-*" configurations.
45+
#
46+
# Note: Tendermint block pruning is dependant on this parameter in conunction
47+
# with the unbonding (safety threshold) period, state pruning and state sync
48+
# snapshot parameters to determine the correct minimum value of
49+
# ResponseCommit.RetainHeight.
50+
min-retain-blocks = 0
51+
52+
# InterBlockCache enables inter-block caching.
53+
inter-block-cache = true
54+
55+
# IndexEvents defines the set of events in the form {eventType}.{attributeKey},
56+
# which informs Tendermint what to index. If empty, all events will be indexed.
57+
#
58+
# Example:
59+
# ["message.sender", "message.recipient"]
60+
index-events = []
61+
62+
# IavlCacheSize set the size of the iavl tree cache (in number of nodes).
63+
iavl-cache-size = 781250
64+
65+
# IAVLDisableFastNode enables or disables the fast node feature of IAVL.
66+
# Default is false.
67+
iavl-disable-fastnode = false
68+
69+
# IAVLLazyLoading enable/disable the lazy loading of iavl store.
70+
# Default is false.
71+
iavl-lazy-loading = false
72+
73+
# AppDBBackend defines the database backend type to use for the application and snapshots DBs.
74+
# An empty string indicates that a fallback will be used.
75+
# The fallback is the db_backend value set in Tendermint's config.toml.
76+
app-db-backend = ""
77+
78+
###############################################################################
79+
### Telemetry Configuration ###
80+
###############################################################################
81+
82+
[telemetry]
83+
84+
# Prefixed with keys to separate services.
85+
service-name = ""
86+
87+
# Enabled enables the application telemetry functionality. When enabled,
88+
# an in-memory sink is also enabled by default. Operators may also enabled
89+
# other sinks such as Prometheus.
90+
enabled = false
91+
92+
# Enable prefixing gauge values with hostname.
93+
enable-hostname = false
94+
95+
# Enable adding hostname to labels.
96+
enable-hostname-label = false
97+
98+
# Enable adding service to labels.
99+
enable-service-label = false
100+
101+
# PrometheusRetentionTime, when positive, enables a Prometheus metrics sink.
102+
prometheus-retention-time = 0
103+
104+
# GlobalLabels defines a global set of name/value label tuples applied to all
105+
# metrics emitted using the wrapper functions defined in telemetry package.
106+
#
107+
# Example:
108+
# [["chain_id", "cosmoshub-1"]]
109+
global-labels = [
110+
]
111+
112+
###############################################################################
113+
### API Configuration ###
114+
###############################################################################
115+
116+
[api]
117+
118+
# Enable defines if the API server should be enabled.
119+
enable = true
120+
121+
# Swagger defines if swagger documentation should automatically be registered.
122+
swagger = true
123+
124+
# Address defines the API server to listen on.
125+
address = "tcp://localhost:1318"
126+
127+
# MaxOpenConnections defines the number of maximum open connections.
128+
max-open-connections = 1000
129+
130+
# RPCReadTimeout defines the Tendermint RPC read timeout (in seconds).
131+
rpc-read-timeout = 10
132+
133+
# RPCWriteTimeout defines the Tendermint RPC write timeout (in seconds).
134+
rpc-write-timeout = 0
135+
136+
# RPCMaxBodyBytes defines the Tendermint maximum request body (in bytes).
137+
rpc-max-body-bytes = 1000000
138+
139+
# EnableUnsafeCORS defines if CORS should be enabled (unsafe - use it at your own risk).
140+
enabled-unsafe-cors = false
141+
142+
###############################################################################
143+
### Rosetta Configuration ###
144+
###############################################################################
145+
146+
[rosetta]
147+
148+
# Enable defines if the Rosetta API server should be enabled.
149+
enable = false
150+
151+
# Address defines the Rosetta API server to listen on.
152+
address = ":8080"
153+
154+
# Network defines the name of the blockchain that will be returned by Rosetta.
155+
blockchain = "app"
156+
157+
# Network defines the name of the network that will be returned by Rosetta.
158+
network = "network"
159+
160+
# Retries defines the number of retries when connecting to the node before failing.
161+
retries = 3
162+
163+
# Offline defines if Rosetta server should run in offline mode.
164+
offline = false
165+
166+
# EnableDefaultSuggestedFee defines if the server should suggest fee by default.
167+
# If 'construction/medata' is called without gas limit and gas price,
168+
# suggested fee based on gas-to-suggest and denom-to-suggest will be given.
169+
enable-fee-suggestion = false
170+
171+
# GasToSuggest defines gas limit when calculating the fee
172+
gas-to-suggest = 200000
173+
174+
# DenomToSuggest defines the defult denom for fee suggestion.
175+
# Price must be in minimum-gas-prices.
176+
denom-to-suggest = "uatom"
177+
178+
###############################################################################
179+
### gRPC Configuration ###
180+
###############################################################################
181+
182+
[grpc]
183+
184+
# Enable defines if the gRPC server should be enabled.
185+
enable = true
186+
187+
# Address defines the gRPC server address to bind to.
188+
address = "localhost:9090"
189+
190+
# MaxRecvMsgSize defines the max message size in bytes the server can receive.
191+
# The default value is 10MB.
192+
max-recv-msg-size = "10485760"
193+
194+
# MaxSendMsgSize defines the max message size in bytes the server can send.
195+
# The default value is math.MaxInt32.
196+
max-send-msg-size = "2147483647"
197+
198+
###############################################################################
199+
### gRPC Web Configuration ###
200+
###############################################################################
201+
202+
[grpc-web]
203+
204+
# GRPCWebEnable defines if the gRPC-web should be enabled.
205+
# NOTE: gRPC must also be enabled, otherwise, this configuration is a no-op.
206+
enable = true
207+
208+
# Address defines the gRPC-web server address to bind to.
209+
address = "localhost:9091"
210+
211+
# EnableUnsafeCORS defines if CORS should be enabled (unsafe - use it at your own risk).
212+
enable-unsafe-cors = false
213+
214+
###############################################################################
215+
### State Sync Configuration ###
216+
###############################################################################
217+
218+
# State sync snapshots allow other nodes to rapidly join the network without replaying historical
219+
# blocks, instead downloading and applying a snapshot of the application state at a given height.
220+
[state-sync]
221+
222+
# snapshot-interval specifies the block interval at which local state sync snapshots are
223+
# taken (0 to disable).
224+
snapshot-interval = 1000
225+
226+
# snapshot-keep-recent specifies the number of recent snapshots to keep and serve (0 to keep all).
227+
snapshot-keep-recent = 10
228+
229+
###############################################################################
230+
### Store / State Streaming ###
231+
###############################################################################
232+
233+
[store]
234+
streamers = []
235+
236+
[streamers]
237+
[streamers.file]
238+
keys = ["*", ]
239+
write_dir = ""
240+
prefix = ""
241+
242+
# output-metadata specifies if output the metadata file which includes the abci request/responses
243+
# during processing the block.
244+
output-metadata = "true"
245+
246+
# stop-node-on-error specifies if propagate the file streamer errors to consensus state machine.
247+
stop-node-on-error = "true"
248+
249+
# fsync specifies if call fsync after writing the files.
250+
fsync = "false"
251+
252+
###############################################################################
253+
### Mempool ###
254+
###############################################################################
255+
256+
[mempool]
257+
# Setting max-txs to 0 will allow for a unbounded amount of transactions in the mempool.
258+
# Setting max_txs to negative 1 (-1) will disable transactions from being inserted into the mempool.
259+
# Setting max_txs to a positive number (> 0) will limit the number of transactions in the mempool, by the specified amount.
260+
#
261+
# Note, this configuration only applies to SDK built-in app-side mempool
262+
# implementations.
263+
max-txs = 5000
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# This is a TOML config file.
2+
# For more information, see https://github.com/toml-lang/toml
3+
4+
###############################################################################
5+
### Client Configuration ###
6+
###############################################################################
7+
8+
# The network chain ID
9+
chain-id = "cosmoshub-testnet"
10+
# The keyring's backend, where the keys are stored (os|file|kwallet|pass|test|memory)
11+
keyring-backend = "test"
12+
# CLI output format (text|json)
13+
output = "text"
14+
# <host>:<port> to Tendermint RPC interface for this chain
15+
node = "tcp://0.0.0.0:26658"
16+
# Transaction broadcasting mode (sync|async)
17+
broadcast-mode = "sync"

0 commit comments

Comments
 (0)