fix: `items(JsonNode)` symbol not found (#87)
* chore: export subscriptions This has a knock-on effect of nim-serde not being imported into subscriptions when JsonRpcProvider.new is called from a consumer that does not export nim-serde. * import/export serde * Replace all instances of std/json with pkg/serde
This commit is contained in:
parent
765379a662
commit
6523e70eaf
|
@ -1,4 +1,4 @@
|
|||
import std/json
|
||||
import pkg/serde
|
||||
import std/macros
|
||||
import std/sequtils
|
||||
import pkg/chronicles
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
## `std/json.JsonNode.hash`, eg when using `JsonNode` as a `Table` key. Adds
|
||||
## {.raises: [].} for proper exception tracking. Copied from the std/json module
|
||||
|
||||
import std/json
|
||||
import pkg/serde
|
||||
import std/hashes
|
||||
|
||||
{.push raises:[].}
|
||||
|
|
|
@ -17,6 +17,7 @@ export basics
|
|||
export provider
|
||||
export chronicles
|
||||
export errors.JsonRpcProviderError
|
||||
export subscriptions
|
||||
|
||||
{.push raises: [].}
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@ import std/sequtils
|
|||
import std/strutils
|
||||
import pkg/chronos
|
||||
import pkg/json_rpc/rpcclient
|
||||
import pkg/serde
|
||||
import ../../basics
|
||||
import ../../provider
|
||||
include ../../nimshims/hashes
|
||||
|
@ -10,6 +11,8 @@ import ./rpccalls
|
|||
import ./conversions
|
||||
import ./looping
|
||||
|
||||
export serde
|
||||
|
||||
type
|
||||
JsonRpcSubscriptions* = ref object of RootObj
|
||||
client: RpcClient
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import std/json
|
||||
import pkg/serde
|
||||
import pkg/ethers/basics
|
||||
|
||||
type Deployment* = object
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import std/unittest
|
||||
import std/json
|
||||
import pkg/serde
|
||||
import pkg/questionable
|
||||
import pkg/ethers/providers/jsonrpc/errors
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import std/json
|
||||
import pkg/serde
|
||||
import std/os
|
||||
import std/sequtils
|
||||
import std/importutils
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import std/json
|
||||
import pkg/serde
|
||||
import std/os
|
||||
import std/options
|
||||
import pkg/asynctest
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import std/os
|
||||
import std/json
|
||||
import pkg/serde
|
||||
import pkg/asynctest
|
||||
import pkg/ethers
|
||||
import ./hardhat
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import std/os
|
||||
import std/json
|
||||
import pkg/serde
|
||||
import pkg/asynctest
|
||||
import pkg/questionable
|
||||
import pkg/stint
|
||||
|
|
Loading…
Reference in New Issue