// Code generated by cmd/library to keep in sync with mobile. DO NOT EDIT.
package main

// #include <stdlib.h>
import  "C"
import "unsafe"
import mobile "github.com/status-im/status-go/mobile"

func main() {}
//export Fleets
func Fleets () *C.char {
return C.CString(mobile.Fleets())
}
//export Logout
func Logout () *C.char {
return C.CString(mobile.Logout())
}
//export ColorHash
func ColorHash (pk *C.char) *C.char {
return C.CString(mobile.ColorHash(C.GoString(pk)))
}
//export ValidateMnemonic
func ValidateMnemonic (mnemonic *C.char) *C.char {
return C.CString(mobile.ValidateMnemonic(C.GoString(mnemonic)))
}
//export ConvertToRegularAccountV2
func ConvertToRegularAccountV2 (requestJSON *C.char) *C.char {
return C.CString(mobile.ConvertToRegularAccountV2(C.GoString(requestJSON)))
}
//export GetPasswordStrength
func GetPasswordStrength (paramsJSON *C.char) *C.char {
return C.CString(mobile.GetPasswordStrength(C.GoString(paramsJSON)))
}
//export AddCentralizedMetric
func AddCentralizedMetric (requestJSON *C.char) *C.char {
return C.CString(mobile.AddCentralizedMetric(C.GoString(requestJSON)))
}
//export SetProfileLogLevel
func SetProfileLogLevel (requestJSON *C.char) *C.char {
return C.CString(mobile.SetProfileLogLevel(C.GoString(requestJSON)))
}
//export EmojiHash
func EmojiHash (pk *C.char) *C.char {
return C.CString(mobile.EmojiHash(C.GoString(pk)))
}
//export GetRandomMnemonic
func GetRandomMnemonic () *C.char {
return C.CString(mobile.GetRandomMnemonic())
}
//export HashMessage
func HashMessage (message *C.char) *C.char {
return C.CString(mobile.HashMessage(C.GoString(message)))
}
//export WriteHeapProfile
func WriteHeapProfile (dataDir *C.char) *C.char {
return C.CString(mobile.WriteHeapProfile(C.GoString(dataDir)))
}
//export ChangeDatabasePasswordV2
func ChangeDatabasePasswordV2 (requestJSON *C.char) *C.char {
return C.CString(mobile.ChangeDatabasePasswordV2(C.GoString(requestJSON)))
}
//export GetConnectionStringForBeingBootstrapped
func GetConnectionStringForBeingBootstrapped (configJSON *C.char) *C.char {
return C.CString(mobile.GetConnectionStringForBeingBootstrapped(C.GoString(configJSON)))
}
//export PerformLocalBackup
func PerformLocalBackup () *C.char {
return C.CString(mobile.PerformLocalBackup())
}
//export HashTypedDataV4
func HashTypedDataV4 (data *C.char) *C.char {
return C.CString(mobile.HashTypedDataV4(C.GoString(data)))
}
//export MultiformatDeserializePublicKey
func MultiformatDeserializePublicKey (key *C.char, outBase *C.char) *C.char {
return C.CString(mobile.MultiformatDeserializePublicKey(C.GoString(key), C.GoString(outBase)))
}
//export GetConnectionStringForExportingKeypairsKeystores
func GetConnectionStringForExportingKeypairsKeystores (configJSON *C.char) *C.char {
return C.CString(mobile.GetConnectionStringForExportingKeypairsKeystores(C.GoString(configJSON)))
}
//export HashTransaction
func HashTransaction (txArgsJSON *C.char) *C.char {
return C.CString(mobile.HashTransaction(C.GoString(txArgsJSON)))
}
//export MigrateKeyStoreDir
func MigrateKeyStoreDir (accountData *C.char, password *C.char, oldDir *C.char, newDir *C.char) *C.char {
return C.CString(mobile.MigrateKeyStoreDir(C.GoString(accountData), C.GoString(password), C.GoString(oldDir), C.GoString(newDir)))
}
//export IsAlias
func IsAlias (value *C.char) *C.char {
return C.CString(mobile.IsAlias(C.GoString(value)))
}
//export ConvertToKeycardAccount
func ConvertToKeycardAccount (accountData *C.char, settingsJSON *C.char, keycardUID *C.char, password *C.char, newPassword *C.char) *C.char {
return C.CString(mobile.ConvertToKeycardAccount(C.GoString(accountData), C.GoString(settingsJSON), C.GoString(keycardUID), C.GoString(password), C.GoString(newPassword)))
}
//export ImageServerTLSCert
func ImageServerTLSCert () *C.char {
return C.CString(mobile.ImageServerTLSCert())
}
//export EncodeTransfer
func EncodeTransfer (to *C.char, value *C.char) *C.char {
return C.CString(mobile.EncodeTransfer(C.GoString(to), C.GoString(value)))
}
//export Login
func Login (accountData *C.char, password *C.char) *C.char {
return C.CString(mobile.Login(C.GoString(accountData), C.GoString(password)))
}
//export EncodeFunctionCall
func EncodeFunctionCall (method *C.char, paramsJSON *C.char) *C.char {
return C.CString(mobile.EncodeFunctionCall(C.GoString(method), C.GoString(paramsJSON)))
}
//export IsAddress
func IsAddress (address *C.char) *C.char {
return C.CString(mobile.IsAddress(C.GoString(address)))
}
//export SetProfileLogEnabled
func SetProfileLogEnabled (requestJSON *C.char) *C.char {
return C.CString(mobile.SetProfileLogEnabled(C.GoString(requestJSON)))
}
//export SignGroupMembership
func SignGroupMembership (content *C.char) *C.char {
return C.CString(mobile.SignGroupMembership(C.GoString(content)))
}
//export SerializeLegacyKey
func SerializeLegacyKey (key *C.char) *C.char {
return C.CString(mobile.SerializeLegacyKey(C.GoString(key)))
}
//export ExportUnencryptedDatabaseV2
func ExportUnencryptedDatabaseV2 (requestJSON *C.char) *C.char {
return C.CString(mobile.ExportUnencryptedDatabaseV2(C.GoString(requestJSON)))
}
//export InputConnectionStringForBootstrappingAnotherDevice
func InputConnectionStringForBootstrappingAnotherDevice (cs *C.char, configJSON *C.char) *C.char {
return C.CString(mobile.InputConnectionStringForBootstrappingAnotherDevice(C.GoString(cs), C.GoString(configJSON)))
}
//export AppStateChange
func AppStateChange (state *C.char) {
mobile.AppStateChange(C.GoString(state))}
//export CheckAddressChecksum
func CheckAddressChecksum (address *C.char) *C.char {
return C.CString(mobile.CheckAddressChecksum(C.GoString(address)))
}
//export SetPreLoginLogLevel
func SetPreLoginLogLevel (requestJSON *C.char) *C.char {
return C.CString(mobile.SetPreLoginLogLevel(C.GoString(requestJSON)))
}
//export AcceptTerms
func AcceptTerms () *C.char {
return C.CString(mobile.AcceptTerms())
}
//export MultiformatSerializePublicKey
func MultiformatSerializePublicKey (key *C.char, outBase *C.char) *C.char {
return C.CString(mobile.MultiformatSerializePublicKey(C.GoString(key), C.GoString(outBase)))
}
//export ExportUnencryptedDatabase
func ExportUnencryptedDatabase (accountData *C.char, password *C.char, databasePath *C.char) *C.char {
return C.CString(mobile.ExportUnencryptedDatabase(C.GoString(accountData), C.GoString(password), C.GoString(databasePath)))
}
//export Utf8ToHex
func Utf8ToHex (str *C.char) *C.char {
return C.CString(mobile.Utf8ToHex(C.GoString(str)))
}
//export LoadLocalBackup
func LoadLocalBackup (requestJSON *C.char) *C.char {
return C.CString(mobile.LoadLocalBackup(C.GoString(requestJSON)))
}
//export StopLocalNotifications
func StopLocalNotifications () *C.char {
return C.CString(mobile.StopLocalNotifications())
}
//export GetPasswordStrengthScore
func GetPasswordStrengthScore (paramsJSON *C.char) *C.char {
return C.CString(mobile.GetPasswordStrengthScore(C.GoString(paramsJSON)))
}
//export GenerateImagesV2
func GenerateImagesV2 (requestJSON *C.char) *C.char {
return C.CString(mobile.GenerateImagesV2(C.GoString(requestJSON)))
}
//export Identicon
func Identicon (pk *C.char) *C.char {
return C.CString(mobile.Identicon(C.GoString(pk)))
}
//export SetLogLevel
func SetLogLevel (requestJSON *C.char) *C.char {
return C.CString(mobile.SetLogLevel(C.GoString(requestJSON)))
}
//export ExtractGroupMembershipSignatures
func ExtractGroupMembershipSignatures (signaturePairsStr *C.char) *C.char {
return C.CString(mobile.ExtractGroupMembershipSignatures(C.GoString(signaturePairsStr)))
}
//export SignMessage
func SignMessage (rpcParams *C.char) *C.char {
return C.CString(mobile.SignMessage(C.GoString(rpcParams)))
}
//export StartProfiling
func StartProfiling (address *C.char) *C.char {
return C.CString(mobile.StartProfiling(C.GoString(address)))
}
//export ConvertToKeycardAccountV2
func ConvertToKeycardAccountV2 (requestJSON *C.char) *C.char {
return C.CString(mobile.ConvertToKeycardAccountV2(C.GoString(requestJSON)))
}
//export CallPrivateRPC
func CallPrivateRPC (inputJSON *C.char) *C.char {
return C.CString(mobile.CallPrivateRPC(C.GoString(inputJSON)))
}
//export MigrateKeyStoreDirV2
func MigrateKeyStoreDirV2 (requestJSON *C.char) *C.char {
return C.CString(mobile.MigrateKeyStoreDirV2(C.GoString(requestJSON)))
}
//export HashTypedData
func HashTypedData (data *C.char) *C.char {
return C.CString(mobile.HashTypedData(C.GoString(data)))
}
//export SwitchFleet
func SwitchFleet (fleet *C.char, configJSON *C.char) *C.char {
return C.CString(mobile.SwitchFleet(C.GoString(fleet), C.GoString(configJSON)))
}
//export LoginAccount
func LoginAccount (requestJSON *C.char) *C.char {
return C.CString(mobile.LoginAccount(C.GoString(requestJSON)))
}
//export SendTransactionWithSignature
func SendTransactionWithSignature (txArgsJSON *C.char, sigString *C.char) *C.char {
return C.CString(mobile.SendTransactionWithSignature(C.GoString(txArgsJSON), C.GoString(sigString)))
}
//export EncodeFunctionCallV2
func EncodeFunctionCallV2 (requestJSON *C.char) *C.char {
return C.CString(mobile.EncodeFunctionCallV2(C.GoString(requestJSON)))
}
//export SendTransaction
func SendTransaction (txArgsJSON *C.char, password *C.char) *C.char {
return C.CString(mobile.SendTransaction(C.GoString(txArgsJSON), C.GoString(password)))
}
//export StopCPUProfiling
func StopCPUProfiling () *C.char {
return C.CString(mobile.StopCPUProfiling())
}
//export AppStateChangeV2
func AppStateChangeV2 (requestJSON *C.char) *C.char {
return C.CString(mobile.AppStateChangeV2(C.GoString(requestJSON)))
}
//export ColorID
func ColorID (pk *C.char) *C.char {
return C.CString(mobile.ColorID(C.GoString(pk)))
}
//export HexToNumber
func HexToNumber (hex *C.char) *C.char {
return C.CString(mobile.HexToNumber(C.GoString(hex)))
}
//export GetNodeConfig
func GetNodeConfig () *C.char {
return C.CString(mobile.GetNodeConfig())
}
//export LoginWithConfig
func LoginWithConfig (accountData *C.char, password *C.char, configJSON *C.char) *C.char {
return C.CString(mobile.LoginWithConfig(C.GoString(accountData), C.GoString(password), C.GoString(configJSON)))
}
//export SendTransactionWithChainID
func SendTransactionWithChainID (chainID C.int, txArgsJSON *C.char, password *C.char) *C.char {
return C.CString(mobile.SendTransactionWithChainID(int(chainID), C.GoString(txArgsJSON), C.GoString(password)))
}
//export ValidateMnemonicV2
func ValidateMnemonicV2 (requestJSON *C.char) *C.char {
return C.CString(mobile.ValidateMnemonicV2(C.GoString(requestJSON)))
}
//export MultiformatDeserializePublicKeyV2
func MultiformatDeserializePublicKeyV2 (requestJSON *C.char) *C.char {
return C.CString(mobile.MultiformatDeserializePublicKeyV2(C.GoString(requestJSON)))
}
//export ImportUnencryptedDatabase
func ImportUnencryptedDatabase (accountData *C.char, password *C.char, databasePath *C.char) *C.char {
return C.CString(mobile.ImportUnencryptedDatabase(C.GoString(accountData), C.GoString(password), C.GoString(databasePath)))
}
//export SetSignalEventCallback
func SetSignalEventCallback (cb unsafe.Pointer) {
mobile.SetSignalEventCallback(cb)}
//export ImportUnencryptedDatabaseV2
func ImportUnencryptedDatabaseV2 (requestJSON *C.char) *C.char {
return C.CString(mobile.ImportUnencryptedDatabaseV2(C.GoString(requestJSON)))
}
//export ConvertToRegularAccount
func ConvertToRegularAccount (mnemonic *C.char, currPassword *C.char, newPassword *C.char) *C.char {
return C.CString(mobile.ConvertToRegularAccount(C.GoString(mnemonic), C.GoString(currPassword), C.GoString(newPassword)))
}
//export StartSearchForLocalPairingPeers
func StartSearchForLocalPairingPeers () *C.char {
return C.CString(mobile.StartSearchForLocalPairingPeers())
}
//export HexToUtf8
func HexToUtf8 (hexString *C.char) *C.char {
return C.CString(mobile.HexToUtf8(C.GoString(hexString)))
}
//export IntendedPanic
func IntendedPanic (message *C.char) *C.char {
return C.CString(mobile.IntendedPanic(C.GoString(message)))
}
//export CallRPC
func CallRPC (inputJSON *C.char) *C.char {
return C.CString(mobile.CallRPC(C.GoString(inputJSON)))
}
//export CreateAccountAndLogin
func CreateAccountAndLogin (requestJSON *C.char) *C.char {
return C.CString(mobile.CreateAccountAndLogin(C.GoString(requestJSON)))
}
//export GetConnectionStringForBootstrappingAnotherDevice
func GetConnectionStringForBootstrappingAnotherDevice (configJSON *C.char) *C.char {
return C.CString(mobile.GetConnectionStringForBootstrappingAnotherDevice(C.GoString(configJSON)))
}
//export InputConnectionStringForBootstrappingV2
func InputConnectionStringForBootstrappingV2 (requestJSON *C.char) *C.char {
return C.CString(mobile.InputConnectionStringForBootstrappingV2(C.GoString(requestJSON)))
}
//export GenerateImages
func GenerateImages (filepath *C.char, aX C.int, aY C.int, bX C.int, bY C.int) *C.char {
return C.CString(mobile.GenerateImages(C.GoString(filepath), int(aX), int(aY), int(bX), int(bY)))
}
//export DecodeParameters
func DecodeParameters (decodeParamJSON *C.char) *C.char {
return C.CString(mobile.DecodeParameters(C.GoString(decodeParamJSON)))
}
//export SignTypedData
func SignTypedData (data *C.char, address *C.char, password *C.char) *C.char {
return C.CString(mobile.SignTypedData(C.GoString(data), C.GoString(address), C.GoString(password)))
}
//export ValidateConnectionString
func ValidateConnectionString (cs *C.char) *C.char {
return C.CString(mobile.ValidateConnectionString(C.GoString(cs)))
}
//export SetLogEnabled
func SetLogEnabled (requestJSON *C.char) *C.char {
return C.CString(mobile.SetLogEnabled(C.GoString(requestJSON)))
}
//export InputConnectionStringForBootstrapping
func InputConnectionStringForBootstrapping (cs *C.char, configJSON *C.char) *C.char {
return C.CString(mobile.InputConnectionStringForBootstrapping(C.GoString(cs), C.GoString(configJSON)))
}
//export Sha3
func Sha3 (str *C.char) *C.char {
return C.CString(mobile.Sha3(C.GoString(str)))
}
//export SetPreLoginLogEnabled
func SetPreLoginLogEnabled (requestJSON *C.char) *C.char {
return C.CString(mobile.SetPreLoginLogEnabled(C.GoString(requestJSON)))
}
//export OpenAccounts
func OpenAccounts (datadir *C.char) *C.char {
return C.CString(mobile.OpenAccounts(C.GoString(datadir)))
}
//export SendTransactionV2
func SendTransactionV2 (requestJSON *C.char) *C.char {
return C.CString(mobile.SendTransactionV2(C.GoString(requestJSON)))
}
//export GenerateAlias
func GenerateAlias (pk *C.char) *C.char {
return C.CString(mobile.GenerateAlias(C.GoString(pk)))
}
//export LoginWithKeycard
func LoginWithKeycard (accountData *C.char, password *C.char, keyHex *C.char, configJSON *C.char) *C.char {
return C.CString(mobile.LoginWithKeycard(C.GoString(accountData), C.GoString(password), C.GoString(keyHex), C.GoString(configJSON)))
}
//export CentralizedMetricsInfo
func CentralizedMetricsInfo () *C.char {
return C.CString(mobile.CentralizedMetricsInfo())
}
//export SignTypedDataV4
func SignTypedDataV4 (data *C.char, address *C.char, password *C.char) *C.char {
return C.CString(mobile.SignTypedDataV4(C.GoString(data), C.GoString(address), C.GoString(password)))
}
//export Recover
func Recover (rpcParams *C.char) *C.char {
return C.CString(mobile.Recover(C.GoString(rpcParams)))
}
//export StartLocalNotifications
func StartLocalNotifications () *C.char {
return C.CString(mobile.StartLocalNotifications())
}
//export SwitchFleetV2
func SwitchFleetV2 (requestJSON *C.char) *C.char {
return C.CString(mobile.SwitchFleetV2(C.GoString(requestJSON)))
}
//export DeserializeAndCompressKey
func DeserializeAndCompressKey (DesktopKey *C.char) *C.char {
return C.CString(mobile.DeserializeAndCompressKey(C.GoString(DesktopKey)))
}
//export ConnectionChange
func ConnectionChange (typ *C.char, expensive C.int) {
mobile.ConnectionChange(C.GoString(typ), int(expensive))}
//export InputConnectionStringForImportingKeypairsKeystores
func InputConnectionStringForImportingKeypairsKeystores (cs *C.char, configJSON *C.char) *C.char {
return C.CString(mobile.InputConnectionStringForImportingKeypairsKeystores(C.GoString(cs), C.GoString(configJSON)))
}
//export EncodeTransferV2
func EncodeTransferV2 (requestJSON *C.char) *C.char {
return C.CString(mobile.EncodeTransferV2(C.GoString(requestJSON)))
}
//export InitializeApplication
func InitializeApplication (requestJSON *C.char) *C.char {
return C.CString(mobile.InitializeApplication(C.GoString(requestJSON)))
}
//export StartCPUProfile
func StartCPUProfile (dataDir *C.char) *C.char {
return C.CString(mobile.StartCPUProfile(C.GoString(dataDir)))
}
//export SignHash
func SignHash (hexEncodedHash *C.char) *C.char {
return C.CString(mobile.SignHash(C.GoString(hexEncodedHash)))
}
//export ConnectionChangeV2
func ConnectionChangeV2 (requestJSON *C.char) *C.char {
return C.CString(mobile.ConnectionChangeV2(C.GoString(requestJSON)))
}
//export InputConnectionStringForImportingKeypairsKeystoresV2
func InputConnectionStringForImportingKeypairsKeystoresV2 (requestJSON *C.char) *C.char {
return C.CString(mobile.InputConnectionStringForImportingKeypairsKeystoresV2(C.GoString(requestJSON)))
}
//export NumberToHex
func NumberToHex (numString *C.char) *C.char {
return C.CString(mobile.NumberToHex(C.GoString(numString)))
}
//export ToChecksumAddress
func ToChecksumAddress (address *C.char) *C.char {
return C.CString(mobile.ToChecksumAddress(C.GoString(address)))
}
//export ToggleCentralizedMetrics
func ToggleCentralizedMetrics (requestJSON *C.char) *C.char {
return C.CString(mobile.ToggleCentralizedMetrics(C.GoString(requestJSON)))
}
//export SetLogNamespaces
func SetLogNamespaces (requestJSON *C.char) *C.char {
return C.CString(mobile.SetLogNamespaces(C.GoString(requestJSON)))
}
//export RestoreAccountAndLogin
func RestoreAccountAndLogin (requestJSON *C.char) *C.char {
return C.CString(mobile.RestoreAccountAndLogin(C.GoString(requestJSON)))
}
//export DecompressPublicKey
func DecompressPublicKey (key *C.char) *C.char {
return C.CString(mobile.DecompressPublicKey(C.GoString(key)))
}
//export CompressPublicKey
func CompressPublicKey (key *C.char) *C.char {
return C.CString(mobile.CompressPublicKey(C.GoString(key)))
}
//export InputConnectionStringForBootstrappingAnotherDeviceV2
func InputConnectionStringForBootstrappingAnotherDeviceV2 (requestJSON *C.char) *C.char {
return C.CString(mobile.InputConnectionStringForBootstrappingAnotherDeviceV2(C.GoString(requestJSON)))
}
//export CreateAccountFromPrivateKey
func CreateAccountFromPrivateKey (paramsJSON *C.char) *C.char {
return C.CString(mobile.CreateAccountFromPrivateKey(C.GoString(paramsJSON)))
}
//export CreateAccountFromMnemonicAndDeriveAccountsForPaths
func CreateAccountFromMnemonicAndDeriveAccountsForPaths (paramsJSON *C.char) *C.char {
return C.CString(mobile.CreateAccountFromMnemonicAndDeriveAccountsForPaths(C.GoString(paramsJSON)))
}
//export Free
func Free (param unsafe.Pointer){
C.free(param);
}

