forked from fibercrypto/libskyfiber
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[cgo] refs fibercrypto#116 Finalized
params.droplet
- Loading branch information
Maykel Arias Torres
committed
Jan 18, 2020
1 parent
6588240
commit ada4591
Showing
1 changed file
with
15 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,32 @@ | ||
package main | ||
|
||
import ( | ||
params "github.com/SkycoinProject/skycoin/src/params" | ||
) | ||
import params "github.com/SkycoinProject/skycoin/src/params" | ||
|
||
/* | ||
#include <string.h> | ||
#include <stdlib.h> | ||
#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 | ||
} |