Skip to content

Commit

Permalink
[cgo] refs fibercrypto#116 Finalized params.droplet
Browse files Browse the repository at this point in the history
  • 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.
22 changes: 15 additions & 7 deletions lib/cgo/params.droplet.go
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
}

0 comments on commit ada4591

Please sign in to comment.