iuna

iuna

iuna - experimental mainnet-candidate protocol
git clone https://getiuna.org/git/iuna.git
Log | Files | Refs | README | LICENSE

iuna_wallet_crypto.d.ts (2070B)


      1 /* tslint:disable */
      2 /* eslint-disable */
      3 
      4 export function build_migration(request_json: string): string;
      5 
      6 export function build_transfer(request_json: string): string;
      7 
      8 export function derive_external_addresses(seed: string, count: number, network_id: string): string;
      9 
     10 export function derive_reward_addresses(seed: string, count: number, network_id: string): string;
     11 
     12 export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
     13 
     14 export interface InitOutput {
     15     readonly memory: WebAssembly.Memory;
     16     readonly derive_external_addresses: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
     17     readonly derive_reward_addresses: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
     18     readonly build_transfer: (a: number, b: number, c: number) => void;
     19     readonly build_migration: (a: number, b: number, c: number) => void;
     20     readonly __wbindgen_export: (a: number, b: number) => number;
     21     readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
     22     readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
     23     readonly __wbindgen_export3: (a: number, b: number, c: number) => void;
     24 }
     25 
     26 export type SyncInitInput = BufferSource | WebAssembly.Module;
     27 
     28 /**
     29  * Instantiates the given `module`, which can either be bytes or
     30  * a precompiled `WebAssembly.Module`.
     31  *
     32  * @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
     33  *
     34  * @returns {InitOutput}
     35  */
     36 export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
     37 
     38 /**
     39  * If `module_or_path` is {RequestInfo} or {URL}, makes a request and
     40  * for everything else, calls `WebAssembly.instantiate` directly.
     41  *
     42  * @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
     43  *
     44  * @returns {Promise<InitOutput>}
     45  */
     46 export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;