From ada45913eb6b6b9b4370b437ccd3dd0f5d1cb603 Mon Sep 17 00:00:00 2001 From: Maykel Arias Torres Date: Fri, 17 Jan 2020 23:29:12 -0500 Subject: [PATCH] [cgo] refs #116 Finalized `params.droplet` --- lib/cgo/params.droplet.go | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/lib/cgo/params.droplet.go b/lib/cgo/params.droplet.go index 7336789ee..d0711abb5 100644 --- a/lib/cgo/params.droplet.go +++ b/lib/cgo/params.droplet.go @@ -1,8 +1,6 @@ package main -import ( - params "github.com/SkycoinProject/skycoin/src/params" -) +import params "github.com/SkycoinProject/skycoin/src/params" /* @@ -10,15 +8,25 @@ import ( #include #include "skytypes.h" + #include "skyfee.h" */ import "C" //export SKY_params_DropletPrecisionToDivisor -func SKY_params_DropletPrecisionToDivisor(precision uint8) uint64 { - return params.DropletPrecisionToDivisor(precision) +func SKY_params_DropletPrecisionToDivisor(_precision uint8, _arg1 *uint64) (____error_code uint32) { + precision := _precision + __arg1 := params.DropletPrecisionToDivisor(precision) + *_arg1 = __arg1 + return } //export SKY_params_DropletPrecisionCheck -func SKY_params_DropletPrecisionCheck(precision uint8, amount uint64) uint32 { - return libErrorCode(params.DropletPrecisionCheck(precision, amount)) +func SKY_params_DropletPrecisionCheck(_precision uint8, _amount uint64) (____error_code uint32) { + precision := _precision + amount := _amount + ____return_err := params.DropletPrecisionCheck(precision, amount) + ____error_code = libErrorCode(____return_err) + if ____return_err == nil { + } + return }