@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.
- package/LICENSE-APACHE +202 -0
- package/LICENSE-MIT +21 -0
- package/README.md +131 -0
- package/browser.mjs +9 -0
- package/index.d.ts +174 -0
- package/index.js +9 -0
- package/package.json +76 -0
- package/pkg/package.json +25 -0
- package/pkg/qcore_js.d.ts +56 -0
- package/pkg/qcore_js.js +9 -0
- package/pkg/qcore_js_bg.js +708 -0
- package/pkg/qcore_js_bg.wasm +0 -0
- package/pkg/qcore_js_bg.wasm.d.ts +36 -0
- package/pkg-node/package.json +19 -0
- package/pkg-node/qcore_js.d.ts +56 -0
- package/pkg-node/qcore_js.js +740 -0
- package/pkg-node/qcore_js_bg.wasm +0 -0
- package/shared.js +323 -0
|
@@ -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;
|
package/pkg/qcore_js.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/* @ts-self-types="./qcore_js.d.ts" */
|
|
2
|
+
import * as wasm from "./qcore_js_bg.wasm";
|
|
3
|
+
import { __wbg_set_wasm } from "./qcore_js_bg.js";
|
|
4
|
+
|
|
5
|
+
__wbg_set_wasm(wasm);
|
|
6
|
+
wasm.__wbindgen_start();
|
|
7
|
+
export {
|
|
8
|
+
account_body, address, block_by_height_body, buildSignedOrderCall, chainIdFromName, contractAddress, eventsBody, localChainId, mainnetChainId, mapSlotKey, mnemonicFromSeed, nonceSlotKey, orderSigner, parseEvents, scalarSlotKey, seedFromMnemonic, signPayableCall, signRegister, sign_call, sign_transfer, storageBody, storageValue, submit_body, testnetChainId, transaction_body, valid_address, vmDeployAddress
|
|
9
|
+
} from "./qcore_js_bg.js";
|