diff --git a/config.nims b/config.nims index 7c9db32..066f260 100644 --- a/config.nims +++ b/config.nims @@ -1,3 +1,12 @@ +# json-rpc +# Copyright (c) 2019-2023 Status Research & Development GmbH +# Licensed under either of +# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) +# * MIT license ([LICENSE-MIT](LICENSE-MIT)) +# at your option. +# This file may not be copied, modified, or distributed except according to +# those terms. + # begin Nimble config (version 1) when fileExists("nimble.paths"): include "nimble.paths" diff --git a/json_rpc.nimble b/json_rpc.nimble index b8a9f4f..8709d61 100644 --- a/json_rpc.nimble +++ b/json_rpc.nimble @@ -1,3 +1,12 @@ +# json-rpc +# Copyright (c) 2019-2023 Status Research & Development GmbH +# Licensed under either of +# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) +# * MIT license ([LICENSE-MIT](LICENSE-MIT)) +# at your option. +# This file may not be copied, modified, or distributed except according to +# those terms. + mode = ScriptMode.Verbose packageName = "json_rpc" diff --git a/json_rpc/client.nim b/json_rpc/client.nim index ed6cb30..804a228 100644 --- a/json_rpc/client.nim +++ b/json_rpc/client.nim @@ -1,3 +1,12 @@ +# json-rpc +# Copyright (c) 2019-2023 Status Research & Development GmbH +# Licensed under either of +# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) +# * MIT license ([LICENSE-MIT](LICENSE-MIT)) +# at your option. +# This file may not be copied, modified, or distributed except according to +# those terms. + import std/[tables, macros], chronos, diff --git a/json_rpc/clients/httpclient.nim b/json_rpc/clients/httpclient.nim index c202d66..be9f810 100644 --- a/json_rpc/clients/httpclient.nim +++ b/json_rpc/clients/httpclient.nim @@ -1,3 +1,12 @@ +# json-rpc +# Copyright (c) 2019-2023 Status Research & Development GmbH +# Licensed under either of +# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) +# * MIT license ([LICENSE-MIT](LICENSE-MIT)) +# at your option. +# This file may not be copied, modified, or distributed except according to +# those terms. + import std/[tables, uri], stew/[byteutils, results], diff --git a/json_rpc/clients/socketclient.nim b/json_rpc/clients/socketclient.nim index 77dc643..1ad5c7e 100644 --- a/json_rpc/clients/socketclient.nim +++ b/json_rpc/clients/socketclient.nim @@ -1,3 +1,12 @@ +# json-rpc +# Copyright (c) 2019-2023 Status Research & Development GmbH +# Licensed under either of +# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) +# * MIT license ([LICENSE-MIT](LICENSE-MIT)) +# at your option. +# This file may not be copied, modified, or distributed except according to +# those terms. + import std/tables, chronos, diff --git a/json_rpc/clients/websocketclient.nim b/json_rpc/clients/websocketclient.nim index c5bfe54..2d95960 100644 --- a/json_rpc/clients/websocketclient.nim +++ b/json_rpc/clients/websocketclient.nim @@ -1,3 +1,12 @@ +# json-rpc +# Copyright (c) 2019-2023 Status Research & Development GmbH +# Licensed under either of +# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) +# * MIT license ([LICENSE-MIT](LICENSE-MIT)) +# at your option. +# This file may not be copied, modified, or distributed except according to +# those terms. + import ./websocketclientimpl, ../client diff --git a/json_rpc/clients/websocketclientimpl.nim b/json_rpc/clients/websocketclientimpl.nim index 568b934..3d61d29 100644 --- a/json_rpc/clients/websocketclientimpl.nim +++ b/json_rpc/clients/websocketclientimpl.nim @@ -1,9 +1,18 @@ +# json-rpc +# Copyright (c) 2019-2023 Status Research & Development GmbH +# Licensed under either of +# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) +# * MIT license ([LICENSE-MIT](LICENSE-MIT)) +# at your option. +# This file may not be copied, modified, or distributed except according to +# those terms. + import std/[uri, strutils], pkg/websock/[websock, extensions/compression/deflate], pkg/[chronos, chronos/apps/http/httptable, chronicles], stew/byteutils - + # avoid clash between Json.encode and Base64Pad.encode import ../client except encode diff --git a/json_rpc/errors.nim b/json_rpc/errors.nim index e09940d..63eb0ee 100644 --- a/json_rpc/errors.nim +++ b/json_rpc/errors.nim @@ -1,3 +1,12 @@ +# json-rpc +# Copyright (c) 2019-2023 Status Research & Development GmbH +# Licensed under either of +# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) +# * MIT license ([LICENSE-MIT](LICENSE-MIT)) +# at your option. +# This file may not be copied, modified, or distributed except according to +# those terms. + type JsonRpcError* = object of CatchableError ## Base type of all nim-json-rpc errors diff --git a/json_rpc/jsonmarshal.nim b/json_rpc/jsonmarshal.nim index 3685850..f30ec33 100644 --- a/json_rpc/jsonmarshal.nim +++ b/json_rpc/jsonmarshal.nim @@ -1,3 +1,12 @@ +# json-rpc +# Copyright (c) 2019-2023 Status Research & Development GmbH +# Licensed under either of +# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) +# * MIT license ([LICENSE-MIT](LICENSE-MIT)) +# at your option. +# This file may not be copied, modified, or distributed except according to +# those terms. + import std/[macros, json, typetraits], stew/[byteutils, objects], diff --git a/json_rpc/router.nim b/json_rpc/router.nim index 42fab15..f6ebf59 100644 --- a/json_rpc/router.nim +++ b/json_rpc/router.nim @@ -1,3 +1,12 @@ +# json-rpc +# Copyright (c) 2019-2023 Status Research & Development GmbH +# Licensed under either of +# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) +# * MIT license ([LICENSE-MIT](LICENSE-MIT)) +# at your option. +# This file may not be copied, modified, or distributed except according to +# those terms. + import std/[macros, strutils, tables], chronicles, chronos, json_serialization/writer, diff --git a/json_rpc/rpcclient.nim b/json_rpc/rpcclient.nim index 5b1de04..ac17f15 100644 --- a/json_rpc/rpcclient.nim +++ b/json_rpc/rpcclient.nim @@ -1,3 +1,12 @@ +# json-rpc +# Copyright (c) 2019-2023 Status Research & Development GmbH +# Licensed under either of +# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) +# * MIT license ([LICENSE-MIT](LICENSE-MIT)) +# at your option. +# This file may not be copied, modified, or distributed except according to +# those terms. + import client import clients/[socketclient, httpclient, websocketclient] export client, socketclient, httpclient, websocketclient diff --git a/json_rpc/rpcproxy.nim b/json_rpc/rpcproxy.nim index 12395d7..5ceeb2e 100644 --- a/json_rpc/rpcproxy.nim +++ b/json_rpc/rpcproxy.nim @@ -1,3 +1,12 @@ +# json-rpc +# Copyright (c) 2019-2023 Status Research & Development GmbH +# Licensed under either of +# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) +# * MIT license ([LICENSE-MIT](LICENSE-MIT)) +# at your option. +# This file may not be copied, modified, or distributed except according to +# those terms. + {.push raises: [Defect].} import diff --git a/json_rpc/rpcsecureserver.nim b/json_rpc/rpcsecureserver.nim index dde4a63..0be17b7 100644 --- a/json_rpc/rpcsecureserver.nim +++ b/json_rpc/rpcsecureserver.nim @@ -1,3 +1,12 @@ +# json-rpc +# Copyright (c) 2019-2023 Status Research & Development GmbH +# Licensed under either of +# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) +# * MIT license ([LICENSE-MIT](LICENSE-MIT)) +# at your option. +# This file may not be copied, modified, or distributed except according to +# those terms. + import server import servers/[socketserver, shttpserver] export server, socketserver, shttpserver \ No newline at end of file diff --git a/json_rpc/rpcserver.nim b/json_rpc/rpcserver.nim index 1f9e27d..f3405f7 100644 --- a/json_rpc/rpcserver.nim +++ b/json_rpc/rpcserver.nim @@ -1,3 +1,12 @@ +# json-rpc +# Copyright (c) 2019-2023 Status Research & Development GmbH +# Licensed under either of +# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) +# * MIT license ([LICENSE-MIT](LICENSE-MIT)) +# at your option. +# This file may not be copied, modified, or distributed except according to +# those terms. + import server import servers/[socketserver, httpserver, websocketserver] export server, socketserver, httpserver, websocketserver diff --git a/json_rpc/server.nim b/json_rpc/server.nim index fa25a87..22b739d 100644 --- a/json_rpc/server.nim +++ b/json_rpc/server.nim @@ -1,3 +1,12 @@ +# json-rpc +# Copyright (c) 2019-2023 Status Research & Development GmbH +# Licensed under either of +# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) +# * MIT license ([LICENSE-MIT](LICENSE-MIT)) +# at your option. +# This file may not be copied, modified, or distributed except according to +# those terms. + import std/tables, chronos, diff --git a/json_rpc/servers/httpserver.nim b/json_rpc/servers/httpserver.nim index cdc81cf..f5dd3b0 100644 --- a/json_rpc/servers/httpserver.nim +++ b/json_rpc/servers/httpserver.nim @@ -1,3 +1,12 @@ +# json-rpc +# Copyright (c) 2019-2023 Status Research & Development GmbH +# Licensed under either of +# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) +# * MIT license ([LICENSE-MIT](LICENSE-MIT)) +# at your option. +# This file may not be copied, modified, or distributed except according to +# those terms. + import stew/byteutils, chronicles, httputils, chronos, diff --git a/json_rpc/servers/socketserver.nim b/json_rpc/servers/socketserver.nim index 6a651b7..4b80c89 100644 --- a/json_rpc/servers/socketserver.nim +++ b/json_rpc/servers/socketserver.nim @@ -1,3 +1,12 @@ +# json-rpc +# Copyright (c) 2019-2023 Status Research & Development GmbH +# Licensed under either of +# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) +# * MIT license ([LICENSE-MIT](LICENSE-MIT)) +# at your option. +# This file may not be copied, modified, or distributed except according to +# those terms. + import chronicles, json_serialization/std/net, diff --git a/json_rpc/servers/websocketserver.nim b/json_rpc/servers/websocketserver.nim index 8ba5d7e..91e22a0 100644 --- a/json_rpc/servers/websocketserver.nim +++ b/json_rpc/servers/websocketserver.nim @@ -1,3 +1,12 @@ +# json-rpc +# Copyright (c) 2019-2023 Status Research & Development GmbH +# Licensed under either of +# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) +# * MIT license ([LICENSE-MIT](LICENSE-MIT)) +# at your option. +# This file may not be copied, modified, or distributed except according to +# those terms. + import chronicles, chronos, websock/[websock, types], websock/extensions/compression/deflate, diff --git a/nim.cfg b/nim.cfg index 371f6d7..9a2b184 100644 --- a/nim.cfg +++ b/nim.cfg @@ -1,3 +1,12 @@ +# json-rpc +# Copyright (c) 2019-2023 Status Research & Development GmbH +# Licensed under either of +# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) +# * MIT license ([LICENSE-MIT](LICENSE-MIT)) +# at your option. +# This file may not be copied, modified, or distributed except according to +# those terms. + # Avoid some rare stack corruption while using exceptions with a SEH-enabled # toolchain: https://github.com/status-im/nimbus-eth2/issues/3121 @if windows and not vcc: