mirror of
https://github.com/fluencelabs/tendermint-demo
synced 2025-05-09 17:46:59 +00:00
License headers
This commit is contained in:
commit
61a868be4b
17
bin/judge.py
17
bin/judge.py
@ -1,3 +1,19 @@
|
|||||||
|
#
|
||||||
|
# Copyright 2018 Fluence Labs Limited
|
||||||
|
#
|
||||||
|
# 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.
|
||||||
|
#
|
||||||
|
|
||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer
|
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer
|
||||||
import json
|
import json
|
||||||
@ -40,4 +56,3 @@ try:
|
|||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
print "^C received, shutting down the Judge"
|
print "^C received, shutting down the Judge"
|
||||||
server.socket.close()
|
server.socket.close()
|
||||||
|
|
@ -1,3 +1,19 @@
|
|||||||
|
#
|
||||||
|
# Copyright 2018 Fluence Labs Limited
|
||||||
|
#
|
||||||
|
# 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.
|
||||||
|
#
|
||||||
|
|
||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
import sys, urllib, json, datetime, time
|
import sys, urllib, json, datetime, time
|
||||||
import matplotlib.pyplot as plt
|
import matplotlib.pyplot as plt
|
||||||
|
@ -1,3 +1,19 @@
|
|||||||
|
#
|
||||||
|
# Copyright 2018 Fluence Labs Limited
|
||||||
|
#
|
||||||
|
# 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.
|
||||||
|
#
|
||||||
|
|
||||||
import sys, urllib, json, datetime, time
|
import sys, urllib, json, datetime, time
|
||||||
|
|
||||||
def uvarint(buf):
|
def uvarint(buf):
|
||||||
@ -43,4 +59,3 @@ def get_sync_info(tmaddress):
|
|||||||
|
|
||||||
def get_max_height(tmaddress):
|
def get_max_height(tmaddress):
|
||||||
return get_sync_info(tmaddress)["latest_block_height"]
|
return get_sync_info(tmaddress)["latest_block_height"]
|
||||||
|
|
||||||
|
@ -1,3 +1,19 @@
|
|||||||
|
#
|
||||||
|
# Copyright 2018 Fluence Labs Limited
|
||||||
|
#
|
||||||
|
# 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.
|
||||||
|
#
|
||||||
|
|
||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
import sys, urllib, json, datetime, time
|
import sys, urllib, json, datetime, time
|
||||||
from common_parse_utils import parse_utc, read_json, get_max_height
|
from common_parse_utils import parse_utc, read_json, get_max_height
|
||||||
|
16
cli/query.py
16
cli/query.py
@ -1,3 +1,19 @@
|
|||||||
|
#
|
||||||
|
# Copyright 2018 Fluence Labs Limited
|
||||||
|
#
|
||||||
|
# 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.
|
||||||
|
#
|
||||||
|
|
||||||
#!/usr/bin/python2.7
|
#!/usr/bin/python2.7
|
||||||
import sys, urllib, json, datetime, time, hashlib, sha3
|
import sys, urllib, json, datetime, time, hashlib, sha3
|
||||||
from common_parse_utils import read_json, get_sync_info, get_max_height
|
from common_parse_utils import read_json, get_sync_info, get_max_height
|
||||||
|
@ -1 +0,0 @@
|
|||||||
<mxfile userAgent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Safari/537.36" version="8.8.6" editor="www.draw.io" type="device"><diagram id="2601f40a-c04a-d45e-4f1e-d157f2eb324b" name="Page-1">7Z1dc6JIFIZ/DTVXMwW0oF5GY7IXO1VbNVu1s5cgrbJB20VMzP76baBbPmwtMxFa8Z2bkUPTNOcQnvfg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qa3nncNeqHbZLeBelBepAepBdT+J2kvO/FwPxRzI/Hkwkw33ZFq00UL+/lmItz/h46u2plkNX6SdnyWK6ftHtH4tpGBeU99HZ9PCKuxogMERFFRBx9EZHrQXaC7KSNBSA7uXKtin67W81OhEFfwXS7uYZhk8D1Xcc1qglH/gs57OnUOD/rOEgxzoLxkayD2KqSIbuZkqG9xuhyI91pRUUUiso8O4iXV1S2/oho1riqiPQ1RgQF9NC40LjQuKUp0EkHFQwVfEEVXO+QU6vghlrkbBTOg/AgPAgvp0CL3A0jHC1yjX/N/inU16vp1KhvqEfORuE8UA/UA/Vl1AfdRL0elt2Ca9Ajpwf1PdJi5byNynmgHqgH6suoR4/cjaL+Dl/M94e+adbonb2Yp257L+YPsvV+mwjvA+FAOBAOhIsp/E7iG81vaH7TnarXy1AdS/FWvqnmNznv/RY9EvlXDEtFj0RnY8/dt1opI6KxDFVqbESkEhGN7YhyPchOkJ20sQBkJ1euVdH8dqvZyb4C6Cn9fUudzzUMmwxsn7iKst/AoYOgZ2jKOlxTVQtkN1MLJOe93+Y30lMoqvODeHlFRfRHRLPGVUVkoDEiKI2HxoXGhcYtTYHmt46rYOfJhgpuUQXXm9/UKrih5jeCingQHoQH4eUUaH67YYSj+e26v2avl9OpUd9Q8xtBRTxQD9QD9WXUB91EvR6W3YJr0PymB/V9q8XKeYLKeaAeqAfqy6jvZvOb03nSS24P3NH4Drh9Ne/lD5L1Nv/Eq3zfD4KD4CA4CI7et5vlN3rfrjtTr1eh9oct9r7JOUqc/5KLdfLofOE7HmkU8sv7c3eGW+vOybbFAcf+Ht6HFJFTVUSO6nf3WaqvLy7hqcN+m6qnxmy5DJMrdNNA9S3PhdzEN7MqrGLfc+ytF99ZQNMR/wM=</diagram></mxfile>
|
|
Binary file not shown.
Before Width: | Height: | Size: 136 KiB |
Binary file not shown.
Before Width: | Height: | Size: 128 KiB |
@ -4,6 +4,12 @@ version := "0.1"
|
|||||||
|
|
||||||
scalaVersion := "2.12.6"
|
scalaVersion := "2.12.6"
|
||||||
|
|
||||||
|
organizationName := "Fluence Labs Limited"
|
||||||
|
|
||||||
|
startYear := Some(2018)
|
||||||
|
|
||||||
|
licenses += ("Apache-2.0", new URL("https://www.apache.org/licenses/LICENSE-2.0.txt"))
|
||||||
|
|
||||||
libraryDependencies += "com.github.jtendermint" % "jabci" % "0.17.1"
|
libraryDependencies += "com.github.jtendermint" % "jabci" % "0.17.1"
|
||||||
|
|
||||||
libraryDependencies += "org.bouncycastle" % "bcpkix-jdk15on" % "1.56"
|
libraryDependencies += "org.bouncycastle" % "bcpkix-jdk15on" % "1.56"
|
||||||
|
1
tmdemoapp/project/plugins.sbt
Normal file
1
tmdemoapp/project/plugins.sbt
Normal file
@ -0,0 +1 @@
|
|||||||
|
addSbtPlugin("de.heikoseeberger" % "sbt-header" % "5.0.0")
|
@ -1,3 +1,19 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2018 Fluence Labs Limited
|
||||||
|
*
|
||||||
|
* 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.
|
||||||
|
*/
|
||||||
|
|
||||||
package kvstore
|
package kvstore
|
||||||
|
|
||||||
import java.nio.ByteBuffer
|
import java.nio.ByteBuffer
|
||||||
|
@ -1,3 +1,19 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2018 Fluence Labs Limited
|
||||||
|
*
|
||||||
|
* 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.
|
||||||
|
*/
|
||||||
|
|
||||||
package kvstore
|
package kvstore
|
||||||
|
|
||||||
case class BlockchainState(
|
case class BlockchainState(
|
||||||
|
@ -1,3 +1,19 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2018 Fluence Labs Limited
|
||||||
|
*
|
||||||
|
* 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.
|
||||||
|
*/
|
||||||
|
|
||||||
package kvstore
|
package kvstore
|
||||||
|
|
||||||
object ClusterUtil {
|
object ClusterUtil {
|
||||||
|
@ -1,3 +1,19 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2018 Fluence Labs Limited
|
||||||
|
*
|
||||||
|
* 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.
|
||||||
|
*/
|
||||||
|
|
||||||
package kvstore
|
package kvstore
|
||||||
|
|
||||||
import org.bouncycastle.jcajce.provider.digest.SHA3
|
import org.bouncycastle.jcajce.provider.digest.SHA3
|
||||||
|
@ -1,3 +1,19 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2018 Fluence Labs Limited
|
||||||
|
*
|
||||||
|
* 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.
|
||||||
|
*/
|
||||||
|
|
||||||
package kvstore
|
package kvstore
|
||||||
|
|
||||||
import kvstore.MerkleUtil._
|
import kvstore.MerkleUtil._
|
||||||
|
@ -1,3 +1,19 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2018 Fluence Labs Limited
|
||||||
|
*
|
||||||
|
* 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.
|
||||||
|
*/
|
||||||
|
|
||||||
package kvstore
|
package kvstore
|
||||||
|
|
||||||
trait Operation {
|
trait Operation {
|
||||||
|
@ -1,3 +1,19 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2018 Fluence Labs Limited
|
||||||
|
*
|
||||||
|
* 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.
|
||||||
|
*/
|
||||||
|
|
||||||
package kvstore
|
package kvstore
|
||||||
|
|
||||||
import java.io.{DataOutputStream, InputStreamReader}
|
import java.io.{DataOutputStream, InputStreamReader}
|
||||||
|
@ -1,3 +1,19 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2018 Fluence Labs Limited
|
||||||
|
*
|
||||||
|
* 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.
|
||||||
|
*/
|
||||||
|
|
||||||
package kvstore
|
package kvstore
|
||||||
|
|
||||||
import com.github.jtendermint.jabci.socket.TSocket
|
import com.github.jtendermint.jabci.socket.TSocket
|
||||||
|
@ -1,4 +1,18 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2018 Fluence Labs Limited
|
||||||
|
*
|
||||||
|
* 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.
|
||||||
|
*/
|
||||||
|
|
||||||
package object kvstore {
|
package object kvstore {
|
||||||
type NodeStorage = Map[String, Node]
|
type NodeStorage = Map[String, Node]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user