Move everything into nitro/protocol

This commit is contained in:
Mark Spanbroek 2021-03-04 11:30:32 +01:00
parent 946a870ef4
commit 2e9896c13a
14 changed files with 33 additions and 28 deletions

View File

@ -1,3 +1,3 @@
import ./nitro/state
import ./nitro/protocol
export state
export protocol

5
nitro/protocol.nim Normal file
View File

@ -0,0 +1,5 @@
import ./protocol/state
import ./protocol/signature
export state
export signature

View File

@ -1,8 +1,10 @@
import pkg/stew/endians2
import pkg/stint
import ./types
import ../types
include ./noerrors
include ../noerrors
export types
type
AbiEncoder* = object

View File

@ -1,8 +1,8 @@
import pkg/nimcrypto
import ../types
import ./abi
import ./types
include ./noerrors
include ../noerrors
export types

View File

@ -1,11 +1,10 @@
import pkg/nimcrypto
import ../types
import ./abi
import ./types
include ./noerrors
include ../noerrors
export types
export abi
type
Outcome* = distinct seq[AssetOutcome]

View File

@ -2,10 +2,10 @@ import std/options
import pkg/nimcrypto
import pkg/secp256k1
import pkg/stew/byteutils
import ../helpers
import ./state
import ./helpers
include ./noerrors
include ../noerrors
export options
export toPublicKey

View File

@ -1,10 +1,10 @@
import pkg/nimcrypto
import ./types
import ../types
import ./channel
import ./outcome
import ./abi
include ./noerrors
include ../noerrors
export types
export channel

View File

@ -1,6 +1,5 @@
import std/unittest
import pkg/nitro/abi
import pkg/nitro/types
import pkg/nitro/protocol/abi
import pkg/stint
import ./examples

View File

@ -1,6 +1,6 @@
import std/unittest
import pkg/nitro/channel
import pkg/nitro/abi
import pkg/nitro/protocol/channel
import pkg/nitro/protocol/abi
import pkg/nimcrypto
import pkg/stew/byteutils
import ./examples

View File

@ -1,7 +1,8 @@
import std/unittest
import pkg/nimcrypto
import pkg/stew/byteutils
import pkg/nitro/outcome
import pkg/nitro/protocol/abi
import pkg/nitro/protocol/outcome
import ./examples
suite "outcome":

View File

@ -2,8 +2,8 @@ import std/unittest
import pkg/nimcrypto
import pkg/secp256k1
import pkg/stew/byteutils
import pkg/nitro/state
import pkg/nitro/signature
import pkg/nitro/protocol/state
import pkg/nitro/protocol/signature
import ./examples
suite "signature":

View File

@ -1,9 +1,8 @@
import std/unittest
import pkg/nimcrypto
import pkg/stew/byteutils
import pkg/nitro
import pkg/nitro/state
import pkg/nitro/abi
import pkg/nitro/protocol/state
import pkg/nitro/protocol/abi
import ./examples
suite "state":

View File

@ -1,7 +1,7 @@
import ./nitro/testAbi
import ./nitro/testChannel
import ./nitro/testOutcome
import ./nitro/testState
import ./nitro/testSignature
import ./nitro/protocol/testAbi
import ./nitro/protocol/testChannel
import ./nitro/protocol/testOutcome
import ./nitro/protocol/testState
import ./nitro/protocol/testSignature
{.warning[UnusedImport]: off.}