feat: hashTypedDataV4 endpoint added

This commit is contained in:
Sale Djenic 2024-08-09 15:59:03 +02:00
parent 5546ffaea2
commit 73ff3ae342
2 changed files with 7 additions and 0 deletions

View File

@ -217,6 +217,11 @@ proc hashTypedData*(data: string): string =
defer: go_shim.free(funcOut)
return $funcOut
proc hashTypedDataV4*(data: string): string =
var funcOut = go_shim.hashTypedDataV4(data.cstring)
defer: go_shim.free(funcOut)
return $funcOut
proc resetChainData*(): string =
var funcOut = go_shim.resetChainData()
defer: go_shim.free(funcOut)

View File

@ -92,6 +92,8 @@ proc writeHeapProfile*(dataDir: cstring): cstring {.importc: "WriteHeapProfile".
proc hashTypedData*(data: cstring): cstring {.importc: "HashTypedData".}
proc hashTypedDataV4*(data: cstring): cstring {.importc: "HashTypedDataV4".}
proc resetChainData*(): cstring {.importc: "ResetChainData".}
proc signMessage*(rpcParams: cstring): cstring {.importc: "SignMessage".}