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

