From 898bf8f16f35406293294bc08773a06c49b79197 Mon Sep 17 00:00:00 2001 From: Mark Spanbroek Date: Mon, 17 Jan 2022 17:04:14 +0100 Subject: [PATCH] Project setup --- .editorconfig | 5 +++++ .gitignore | 3 +++ License.md | 5 +++++ ethers.nimble | 12 ++++++++++++ testmodule/nim.cfg | 2 ++ testmodule/test.nim | 1 + testmodule/test.nimble | 10 ++++++++++ 7 files changed, 38 insertions(+) create mode 100644 .editorconfig create mode 100644 .gitignore create mode 100644 License.md create mode 100644 ethers.nimble create mode 100644 testmodule/nim.cfg create mode 100644 testmodule/test.nim create mode 100644 testmodule/test.nimble diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..1963f8d --- /dev/null +++ b/.editorconfig @@ -0,0 +1,5 @@ +[*] +indent_style = space +insert_final_newline = true +indent_size = 2 +trim_trailing_whitespace = true \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..becd7f9 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +* +!*/ +!*.* diff --git a/License.md b/License.md new file mode 100644 index 0000000..966d4c4 --- /dev/null +++ b/License.md @@ -0,0 +1,5 @@ +Licensed and distributed under either of +[MIT license](http://opensource.org/licenses/MIT) or +[Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0) +at your option. These files may not be copied, modified, or distributed except +according to those terms. diff --git a/ethers.nimble b/ethers.nimble new file mode 100644 index 0000000..cb1f5a3 --- /dev/null +++ b/ethers.nimble @@ -0,0 +1,12 @@ +version = "0.1.0" +author = "Nim Ethers Authors" +description = "library for interacting with Ethereum" +license = "MIT" + +requires "chronos >= 3.0.0 & < 4.0.0" +requires "contractabi >= 0.4.0 & < 0.5.0" + +task test, "Run the test suite": + exec "nimble install -d -y" + withDir "testmodule": + exec "nimble test" diff --git a/testmodule/nim.cfg b/testmodule/nim.cfg new file mode 100644 index 0000000..a7e9d4a --- /dev/null +++ b/testmodule/nim.cfg @@ -0,0 +1,2 @@ +--path:".." +--hint[XCannotRaiseY]:"off" diff --git a/testmodule/test.nim b/testmodule/test.nim new file mode 100644 index 0000000..f405430 --- /dev/null +++ b/testmodule/test.nim @@ -0,0 +1 @@ +{.warning[UnusedImport]:off.} diff --git a/testmodule/test.nimble b/testmodule/test.nimble new file mode 100644 index 0000000..c7c6c46 --- /dev/null +++ b/testmodule/test.nimble @@ -0,0 +1,10 @@ +version = "0.1.0" +author = "Nim Ethers Authors" +description = "Tests for Nim Ethers library" +license = "MIT" + +requires "asynctest >= 0.3.0 & < 0.4.0" + +task test, "Run the test suite": + exec "nimble install -d -y" + exec "nim c -r test"