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

