Skip to content

Instantly share code, notes, and snippets.

View kayabaNerve's full-sized avatar

Luke Parker kayabaNerve

View GitHub Profile
@kayabaNerve
kayabaNerve / parseSend.nim
Created February 6, 2021 20:50
parseSend supporting missing work.
import ../../../lib/[Errors, Hash]
import ../../../Wallet/Wallet
import ../../../Database/Transactions/objects/SendObj
import ../SerializeCommon
proc parseSend*(
sendStr: string,
diff: uint32,
#Constructor 1.
proc newSketcher*[T](): Sketcher[T] {.inline, forceCheck: [].} =
@[]
#Constructor 2.
proc newSketcher*[T](
elements: seq[T] = @[]
): Sketcher[T] {.forceCheck: [].} =
result = @[]
for element in elements:
import tables
#Valid object times.
type NaturalObjectKind* = enum
nokBoolean, nokInt, nokString, nokArray, nokObject
#Natural Object.
type NaturalObject* = ref object of RootObj
case kind*: NaturalObjectKind
of nokBoolean:

Keybase proof

I hereby claim:

  • I am kayabanerve on github.
  • I am techaspirer (https://keybase.io/techaspirer) on keybase.
  • I have a public key ASCSYCHgV_SH_oBFWZp_chFXw-R-AawQgVbKfx_9Oi1lego

To claim this, I am signing this object: