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

