From a56aca1ab117969398ffb73c70c9964a5594616e Mon Sep 17 00:00:00 2001 From: "Michael Bradley, Jr" Date: Tue, 5 Jan 2021 14:52:12 -0600 Subject: [PATCH] fix: remove procs that are no longer spec'd by libstatus.h --- nim_status.nim | 10 ---------- nim_status/c/go/shim.nim | 10 ---------- nim_status/c/nim_status.nim | 5 ----- nim_status/go/shim.nim | 15 --------------- 4 files changed, 40 deletions(-) diff --git a/nim_status.nim b/nim_status.nim index 696cb14..bf08d08 100644 --- a/nim_status.nim +++ b/nim_status.nim @@ -25,8 +25,6 @@ from nim_status/go/shim as go_shim import logout, verifyAccountPassword, validateMnemonic, - recoverAccount, - startOnboarding, saveAccountAndLoginWithKeycard, hashTransaction, extractGroupMembershipSignatures, @@ -37,8 +35,6 @@ from nim_status/go/shim as go_shim import loginWithKeycard, recover, writeHeapProfile, - importOnboardingAccount, - removeOnboarding, hashTypedData, resetChainData, signMessage, @@ -48,7 +44,6 @@ from nim_status/go/shim as go_shim import exportNodeLogs, chaosModeUpdate, signHash, - createAccount, sendTransactionWithSignature, startCPUProfile, appStateChange, @@ -83,8 +78,6 @@ export logout, verifyAccountPassword, validateMnemonic, - recoverAccount, - startOnboarding, saveAccountAndLoginWithKeycard, hashTransaction, extractGroupMembershipSignatures, @@ -95,8 +88,6 @@ export loginWithKeycard, recover, writeHeapProfile, - importOnboardingAccount, - removeOnboarding, hashTypedData, resetChainData, signMessage, @@ -106,7 +97,6 @@ export exportNodeLogs, chaosModeUpdate, signHash, - createAccount, sendTransactionWithSignature, startCPUProfile, appStateChange, diff --git a/nim_status/c/go/shim.nim b/nim_status/c/go/shim.nim index 47aea1a..c5ce10e 100644 --- a/nim_status/c/go/shim.nim +++ b/nim_status/c/go/shim.nim @@ -45,10 +45,6 @@ proc verifyAccountPassword*(keyStoreDir: cstring, address: cstring, password: cs proc validateMnemonic*(mnemonic: cstring): cstring {.importc: "ValidateMnemonic".} -proc recoverAccount*(password: cstring, mnemonic: cstring): cstring {.importc: "RecoverAccount".} - -proc startOnboarding*(n: cint, mnemonicPhraseLength: cint): cstring {.importc: "StartOnboarding".} - proc saveAccountAndLoginWithKeycard*(accountData: cstring, password: cstring, settingsJSON: cstring, configJSON: cstring, subaccountData: cstring, keyHex: cstring): cstring {.importc: "SaveAccountAndLoginWithKeycard".} proc hashTransaction*(txArgsJSON: cstring): cstring {.importc: "HashTransaction".} @@ -69,10 +65,6 @@ proc recover*(rpcParams: cstring): cstring {.importc: "Recover".} proc writeHeapProfile*(dataDir: cstring): cstring {.importc: "WriteHeapProfile".} -proc importOnboardingAccount*(id: cstring, password: cstring): cstring {.importc: "ImportOnboardingAccount".} - -proc removeOnboarding*() {.importc: "RemoveOnboarding".} - proc hashTypedData*(data: cstring): cstring {.importc: "HashTypedData".} proc resetChainData*(): cstring {.importc: "ResetChainData".} @@ -91,8 +83,6 @@ proc chaosModeUpdate*(on: cint): cstring {.importc: "ChaosModeUpdate".} proc signHash*(hexEncodedHash: cstring): cstring {.importc: "SignHash".} -proc createAccount*(password: cstring): cstring {.importc: "CreateAccount".} - proc sendTransactionWithSignature*(txtArgsJSON: cstring, sigString: cstring): cstring {.importc: "SendTransactionWithSignature".} proc startCPUProfile*(dataDir: cstring): cstring {.importc: "StartCPUProfile".} diff --git a/nim_status/c/nim_status.nim b/nim_status/c/nim_status.nim index d08e55d..2a9904e 100644 --- a/nim_status/c/nim_status.nim +++ b/nim_status/c/nim_status.nim @@ -23,8 +23,6 @@ let login {.exportc.} = go_shim.login let logout {.exportc.} = go_shim.logout let verifyAccountPassword {.exportc.} = go_shim.verifyAccountPassword let validateMnemonic {.exportc.} = go_shim.validateMnemonic -let recoverAccount {.exportc.} = go_shim.recoverAccount -let startOnboarding {.exportc.} = go_shim.startOnboarding let saveAccountAndLoginWithKeycard {.exportc.} = go_shim.saveAccountAndLoginWithKeycard let hashTransaction {.exportc.} = go_shim.hashTransaction let extractGroupMembershipSignatures {.exportc.} = go_shim.extractGroupMembershipSignatures @@ -35,8 +33,6 @@ let validateNodeConfig {.exportc.} = go_shim.validateNodeConfig let loginWithKeycard {.exportc.} = go_shim.loginWithKeycard let recover {.exportc.} = go_shim.recover let writeHeapProfile {.exportc.} = go_shim.writeHeapProfile -let importOnboardingAccount {.exportc.} = go_shim.importOnboardingAccount -let removeOnboarding {.exportc.} = go_shim.removeOnboarding let hashTypedData {.exportc.} = go_shim.hashTypedData let resetChainData {.exportc.} = go_shim.resetChainData let signMessage {.exportc.} = go_shim.signMessage @@ -46,7 +42,6 @@ let getNodesFromContract {.exportc.} = go_shim.getNodesFromContract let exportNodeLogs {.exportc.} = go_shim.exportNodeLogs let chaosModeUpdate {.exportc.} = go_shim.chaosModeUpdate let signHash {.exportc.} = go_shim.signHash -let createAccount {.exportc.} = go_shim.createAccount let sendTransactionWithSignature {.exportc.} = go_shim.sendTransactionWithSignature let startCPUProfile {.exportc.} = go_shim.startCPUProfile let appStateChange {.exportc.} = go_shim.appStateChange diff --git a/nim_status/go/shim.nim b/nim_status/go/shim.nim index 928d4ea..4fd48ee 100644 --- a/nim_status/go/shim.nim +++ b/nim_status/go/shim.nim @@ -69,12 +69,6 @@ proc verifyAccountPassword*(keyStoreDir: string, address: string, password: stri proc validateMnemonic*(mnemonic: string): string = $go_shim.validateMnemonic(mnemonic.cstring) -proc recoverAccount*(password: string, mnemonic: string): string = - $go_shim.recoverAccount(password.cstring, mnemonic.cstring) - -proc startOnboarding*(n: int, mnemonicPhraseLength: int): string = - $go_shim.startOnboarding(n.cint, mnemonicPhraseLength.cint) - proc saveAccountAndLoginWithKeycard*(accountData: string, password: string, settingsJSON: string, configJSON: string, subaccountData: string, keyHex: string): string = $go_shim.saveAccountAndLoginWithKeycard(accountData.cstring, password.cstring, settingsJSON.cstring, configJSON.cstring, subaccountData.cstring, keyHex.cstring) @@ -105,12 +99,6 @@ proc recover*(rpcParams: string): string = proc writeHeapProfile*(dataDir: string): string = $go_shim.writeHeapProfile(dataDir.cstring) -proc importOnboardingAccount*(id: string, password: string): string = - $go_shim.importOnboardingAccount(id.cstring, password.cstring) - -proc removeOnboarding*() = - go_shim.removeOnboarding() - proc hashTypedData*(data: string): string = $go_shim.hashTypedData(data.cstring) @@ -138,9 +126,6 @@ proc chaosModeUpdate*(on: int): string = proc signHash*(hexEncodedHash: string): string = $go_shim.signHash(hexEncodedHash.cstring) -proc createAccount*(password: string): string = - $go_shim.createAccount(password.cstring) - proc sendTransactionWithSignature*(txtArgsJSON: string, sigString: string): string = $go_shim.sendTransactionWithSignature(txtArgsJSON.cstring, sigString.cstring)