@broxus/ever-wallet-wasm
Advanced tools
Comparing version 0.2.7 to 0.2.8
@@ -6,3 +6,3 @@ /* tslint:disable */ | ||
export function generateMnemonic(mnemonic_type: MnemonicType): GeneratedMnemonic; | ||
export function makeLabsMnemonic(id: number): MnemonicType; | ||
export function makeBip39Mnemonic(data: Bip39MnemonicData): MnemonicType; | ||
export function makeLegacyMnemonic(): MnemonicType; | ||
@@ -38,3 +38,3 @@ export function keystoreStorageKey(): string; | ||
export function validateMnemonic(phrase: string, mnemonic_type: MnemonicType): void; | ||
export function encodeComment(comment: string): string; | ||
export function encodeComment(comment: string, plain: boolean): string; | ||
export function extractPublicKey(boc: string): string; | ||
@@ -581,4 +581,12 @@ export function codeToTvc(code: string): { hash: string, boc: string, }; | ||
export type Bip39MnemonicData = { | ||
accountId: number, | ||
network: 'ever' | 'ton', | ||
entropy: 'bits128' | 'bits256', | ||
}; | ||
export type MnemonicType = | ||
| { type: 'labs', accountId: number } | ||
| { type: 'bip39', data: Bip39MnemonicData } | ||
| { type: 'legacy' }; | ||
@@ -1185,3 +1193,3 @@ | ||
readonly generateMnemonic: (a: number, b: number) => void; | ||
readonly makeLabsMnemonic: (a: number) => number; | ||
readonly makeBip39Mnemonic: (a: number, b: number) => void; | ||
readonly makeLegacyMnemonic: () => number; | ||
@@ -1232,3 +1240,3 @@ readonly keystoreStorageKey: (a: number) => void; | ||
readonly validateMnemonic: (a: number, b: number, c: number, d: number) => void; | ||
readonly encodeComment: (a: number, b: number, c: number) => void; | ||
readonly encodeComment: (a: number, b: number, c: number, d: number) => void; | ||
readonly extractPublicKey: (a: number, b: number, c: number) => void; | ||
@@ -1285,4 +1293,4 @@ readonly codeToTvc: (a: number, b: number, c: number) => void; | ||
readonly protoconnection_new: (a: number) => number; | ||
readonly __wbg_jrpcconnection_free: (a: number, b: number) => void; | ||
readonly __wbg_protoconnection_free: (a: number, b: number) => void; | ||
readonly __wbg_jrpcconnection_free: (a: number, b: number) => void; | ||
readonly __wbg_stringquery_free: (a: number, b: number) => void; | ||
@@ -1299,4 +1307,4 @@ readonly __wbg_storage_free: (a: number, b: number) => void; | ||
readonly __wbindgen_add_to_stack_pointer: (a: number) => number; | ||
readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hc90866eccd9ec995: (a: number, b: number, c: number) => void; | ||
readonly wasm_bindgen__convert__closures__invoke2_mut__h507bf1c517a917ef: (a: number, b: number, c: number, d: number) => void; | ||
readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hb29a733e778f87cf: (a: number, b: number, c: number) => void; | ||
readonly wasm_bindgen__convert__closures__invoke2_mut__h11a461d0997c96b2: (a: number, b: number, c: number, d: number) => void; | ||
readonly __wbindgen_start: () => void; | ||
@@ -1303,0 +1311,0 @@ } |
@@ -8,3 +8,3 @@ { | ||
"description": "Nekoton bindings for WASM", | ||
"version": "0.2.7", | ||
"version": "0.2.8", | ||
"license": "SEE LICENSE IN LICENSE", | ||
@@ -11,0 +11,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
4566169
5712