@quantovainc/qcore 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,36 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ export const memory: WebAssembly.Memory;
4
+ export const account_body: (a: number, b: number) => [number, number];
5
+ export const address: (a: number, b: number, c: bigint) => [number, number, number, number];
6
+ export const block_by_height_body: (a: bigint) => [number, number];
7
+ export const buildSignedOrderCall: (a: number, b: number, c: number, d: number, e: bigint, f: bigint, g: number, h: number, i: number, j: number, k: bigint, l: number, m: number, n: bigint, o: bigint) => [number, number, number, number];
8
+ export const chainIdFromName: (a: number, b: number) => bigint;
9
+ export const contractAddress: (a: number, b: number, c: bigint) => [number, number];
10
+ export const eventsBody: (a: bigint) => [number, number];
11
+ export const localChainId: () => bigint;
12
+ export const mainnetChainId: () => bigint;
13
+ export const mapSlotKey: (a: bigint, b: number, c: number) => [number, number, number, number];
14
+ export const mnemonicFromSeed: (a: number, b: number) => [number, number, number, number];
15
+ export const nonceSlotKey: (a: number, b: number) => [number, number, number, number];
16
+ export const orderSigner: (a: number, b: number, c: bigint) => [number, number, number, number];
17
+ export const parseEvents: (a: number, b: number) => [number, number, number, number];
18
+ export const scalarSlotKey: (a: bigint) => [number, number];
19
+ export const seedFromMnemonic: (a: number, b: number) => [number, number, number, number];
20
+ export const signPayableCall: (a: number, b: number, c: bigint, d: number, e: number, f: number, g: number, h: bigint, i: bigint, j: number, k: number, l: number, m: number, n: bigint) => [number, number, number, number];
21
+ export const signRegister: (a: number, b: number, c: bigint, d: bigint, e: number, f: number, g: bigint) => [number, number, number, number];
22
+ export const sign_call: (a: number, b: number, c: bigint, d: number, e: number, f: number, g: number, h: bigint, i: bigint, j: number, k: number, l: bigint) => [number, number, number, number];
23
+ export const sign_transfer: (a: number, b: number, c: bigint, d: number, e: number, f: number, g: number, h: bigint, i: number, j: number, k: bigint) => [number, number, number, number];
24
+ export const storageBody: (a: number, b: number) => [number, number];
25
+ export const storageValue: (a: number, b: number, c: number, d: number) => [number, number, number, number];
26
+ export const submit_body: (a: number, b: number) => [number, number, number, number];
27
+ export const testnetChainId: () => bigint;
28
+ export const transaction_body: (a: number, b: number) => [number, number];
29
+ export const valid_address: (a: number, b: number) => number;
30
+ export const vmDeployAddress: () => [number, number];
31
+ export const __wbindgen_externrefs: WebAssembly.Table;
32
+ export const __wbindgen_malloc: (a: number, b: number) => number;
33
+ export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
34
+ export const __wbindgen_free: (a: number, b: number, c: number) => void;
35
+ export const __externref_table_dealloc: (a: number) => void;
36
+ export const __wbindgen_start: () => void;
@@ -0,0 +1,19 @@
1
+ {
2
+ "name": "qcore-js",
3
+ "description": "The JavaScript binding for the Quantova client core, generated over QCore with wasm-bindgen. The core does the key derivation, the post quantum signing, and the wire, the page does the fetch.",
4
+ "version": "0.1.0",
5
+ "license": "Apache-2.0 OR MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/Quantova/QCore-JS"
9
+ },
10
+ "files": [
11
+ "qcore_js_bg.wasm",
12
+ "qcore_js.js",
13
+ "qcore_js.d.ts",
14
+ "LICENSE-APACHE",
15
+ "LICENSE-MIT"
16
+ ],
17
+ "main": "qcore_js.js",
18
+ "types": "qcore_js.d.ts"
19
+ }
@@ -0,0 +1,56 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+
4
+ export function account_body(address: string): string;
5
+
6
+ export function address(seed_hex: string, index: bigint): string;
7
+
8
+ export function block_by_height_body(height: bigint): string;
9
+
10
+ export function buildSignedOrderCall(contract: string, selector_hex: string, scheme_off: bigint, ptr_off: bigint, field_offs_csv: string, fields_csv: string, region_off: bigint, owner_seed_hex: string, owner_index: bigint, nonce: bigint): string;
11
+
12
+ export function chainIdFromName(name: string): bigint;
13
+
14
+ export function contractAddress(deployer: string, nonce: bigint): string | undefined;
15
+
16
+ export function eventsBody(height: bigint): string;
17
+
18
+ export function localChainId(): bigint;
19
+
20
+ export function mainnetChainId(): bigint;
21
+
22
+ export function mapSlotKey(map_domain_tag: bigint, key_address_hex: string): string;
23
+
24
+ export function mnemonicFromSeed(seed_hex: string): string;
25
+
26
+ export function nonceSlotKey(signer_hex: string): string;
27
+
28
+ export function orderSigner(seed_hex: string, index: bigint): string;
29
+
30
+ export function parseEvents(response: string): string;
31
+
32
+ export function scalarSlotKey(slot: bigint): string;
33
+
34
+ export function seedFromMnemonic(phrase: string): string;
35
+
36
+ export function signPayableCall(seed_hex: string, index: bigint, target: string, args_hex: string, nonce: bigint, meter_limit: bigint, fee: string, value: string, chain_id: bigint): string;
37
+
38
+ export function signRegister(seed_hex: string, index: bigint, nonce: bigint, fee: string, chain_id: bigint): string;
39
+
40
+ export function sign_call(seed_hex: string, index: bigint, target: string, args_hex: string, nonce: bigint, meter_limit: bigint, fee: string, chain_id: bigint): string;
41
+
42
+ export function sign_transfer(seed_hex: string, index: bigint, to: string, amount: string, nonce: bigint, fee: string, chain_id: bigint): string;
43
+
44
+ export function storageBody(contract: string): string;
45
+
46
+ export function storageValue(response: string, slot_key_hex: string): string;
47
+
48
+ export function submit_body(tx_hex: string): string;
49
+
50
+ export function testnetChainId(): bigint;
51
+
52
+ export function transaction_body(tx_id: string): string;
53
+
54
+ export function valid_address(address: string): boolean;
55
+
56
+ export function vmDeployAddress(): string;