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

