Adds web3 (#316)

* adds web3

* adds comment

* Revert "adds comment"

This reverts commit dbe59e7e49.

* adds comments
This commit is contained in:
Sanaz Taheri Boshrooyeh 2020-12-03 20:41:28 -08:00 committed by GitHub
parent 57f69201d6
commit a1ba0e5176
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 13 additions and 2 deletions

3
.gitmodules vendored
View File

@ -103,3 +103,6 @@
url = https://github.com/arnetheduck/nim-sqlite3-abi.git
ignore = dirty
branch = master
[submodule "vendor/nim-web3"]
path = vendor/nim-web3
url = https://github.com/status-im/nim-web3.git

View File

@ -10,4 +10,5 @@ import
./v2/test_rpc_waku,
./v2/test_waku_swap,
./v2/test_message_store,
./v2/test_jsonrpc_waku
./v2/test_jsonrpc_waku,
./v2/test_web3 # will remove it when rln-relay tests get added

5
tests/v2/test_web3.nim Normal file
View File

@ -0,0 +1,5 @@
import web3
proc web3Test() =
var web3: Web3 # an identifier from web3 package
web3Test()

1
vendor/nim-web3 vendored Submodule

@ -0,0 +1 @@
Subproject commit dde382f70e811d964a000bdd4d86151615f9d4c0

View File

@ -20,7 +20,8 @@ requires "nim >= 1.2.0",
"stew",
"stint",
"metrics",
"libp2p" # Only for Waku v2
"libp2p", # Only for Waku v2
"web3"
### Helper functions
proc buildBinary(name: string, srcDir = "./", params = "", lang = "c") =