Skip to content

Commit

Permalink
Add copyright to source file
Browse files Browse the repository at this point in the history
  • Loading branch information
jangko committed Dec 14, 2023
1 parent 819b6fe commit c3769f9
Show file tree
Hide file tree
Showing 19 changed files with 172 additions and 1 deletion.
9 changes: 9 additions & 0 deletions config.nims
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
9 changes: 9 additions & 0 deletions json_rpc.nimble
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
9 changes: 9 additions & 0 deletions json_rpc/client.nim
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
9 changes: 9 additions & 0 deletions json_rpc/clients/httpclient.nim
Original file line number Diff line number Diff line change
@@ -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],
Expand Down
9 changes: 9 additions & 0 deletions json_rpc/clients/socketclient.nim
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
9 changes: 9 additions & 0 deletions json_rpc/clients/websocketclient.nim
Original file line number Diff line number Diff line change
@@ -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
Expand Down
11 changes: 10 additions & 1 deletion json_rpc/clients/websocketclientimpl.nim
Original file line number Diff line number Diff line change
@@ -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

Expand Down
9 changes: 9 additions & 0 deletions json_rpc/errors.nim
Original file line number Diff line number Diff line change
@@ -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
Expand Down
9 changes: 9 additions & 0 deletions json_rpc/jsonmarshal.nim
Original file line number Diff line number Diff line change
@@ -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],
Expand Down
9 changes: 9 additions & 0 deletions json_rpc/router.nim
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
9 changes: 9 additions & 0 deletions json_rpc/rpcclient.nim
Original file line number Diff line number Diff line change
@@ -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
9 changes: 9 additions & 0 deletions json_rpc/rpcproxy.nim
Original file line number Diff line number Diff line change
@@ -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
Expand Down
9 changes: 9 additions & 0 deletions json_rpc/rpcsecureserver.nim
Original file line number Diff line number Diff line change
@@ -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
9 changes: 9 additions & 0 deletions json_rpc/rpcserver.nim
Original file line number Diff line number Diff line change
@@ -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
9 changes: 9 additions & 0 deletions json_rpc/server.nim
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
9 changes: 9 additions & 0 deletions json_rpc/servers/httpserver.nim
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
9 changes: 9 additions & 0 deletions json_rpc/servers/socketserver.nim
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
9 changes: 9 additions & 0 deletions json_rpc/servers/websocketserver.nim
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
9 changes: 9 additions & 0 deletions nim.cfg
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit c3769f9

Please sign in to comment.