Skip to content

Instantly share code, notes, and snippets.

@marekkirejczyk
Created November 26, 2019 15:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marekkirejczyk/2705d63ab7b19816353ff310a0cadf44 to your computer and use it in GitHub Desktop.
Save marekkirejczyk/2705d63ab7b19816353ff310a0cadf44 to your computer and use it in GitHub Desktop.
Deprecating sdk methods
Deprecated methods:
sdk.addKey(to: string, publicKey: string, privateKey: string, executionOptions: SdkExecutionOptions)
sdk.addKeys(to: string, publicKeys: string[], privateKey: string, executionOptions: SdkExecutionOptions)
sdk.removeKey(to: string, key: string, privateKey: string, executionOptions: SdkExecutionOptions)
sdk.setRequiredSignatures(to: string, requiredSignatures: number, privateKey: string, executionOptions: SdkExecutionOptions)
sdk.keyExist(walletContractAddress: string, key: string)
sdk.getNonce(walletContractAddress: string)
Recommended methods:
wallet.addKey(publicKey: string, executionOptions: ExecutionOptions)
wallet.addKeys(publicKeys: string[], executionOptions: ExecutionOptions)
wallet.removeKey(key: string, executionOptions: ExecutionOptions)
wallet.setRequiredSignatures(requiredSignatures: number, executionOptions: ExecutionOptions)
wallet.execute(message: Partial<Message>)
wallet.keyExist(key: string)
wallet.getNonce()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment