@quantovainc/qcore 0.4.2 → 0.5.0

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.
@@ -1,3 +1,106 @@
1
+ export class SigningSession {
2
+ __destroy_into_raw() {
3
+ const ptr = this.__wbg_ptr;
4
+ this.__wbg_ptr = 0;
5
+ SigningSessionFinalization.unregister(this);
6
+ return ptr;
7
+ }
8
+ free() {
9
+ const ptr = this.__destroy_into_raw();
10
+ wasm.__wbg_signingsession_free(ptr, 0);
11
+ }
12
+ /**
13
+ * @param {string} address
14
+ */
15
+ checkTarget(address) {
16
+ const ptr0 = passStringToWasm0(address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
17
+ const len0 = WASM_VECTOR_LEN;
18
+ const ret = wasm.signingsession_checkTarget(this.__wbg_ptr, ptr0, len0);
19
+ if (ret[1]) {
20
+ throw takeFromExternrefTable0(ret[0]);
21
+ }
22
+ }
23
+ /**
24
+ * @param {string} key
25
+ * @param {bigint} slot
26
+ * @returns {boolean}
27
+ */
28
+ isHeld(key, slot) {
29
+ const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
30
+ const len0 = WASM_VECTOR_LEN;
31
+ const ret = wasm.signingsession_isHeld(this.__wbg_ptr, ptr0, len0, slot);
32
+ return ret !== 0;
33
+ }
34
+ /**
35
+ * @param {string[]} book
36
+ */
37
+ constructor(book) {
38
+ const ptr0 = passArrayJsValueToWasm0(book, wasm.__wbindgen_malloc);
39
+ const len0 = WASM_VECTOR_LEN;
40
+ const ret = wasm.signingsession_new(ptr0, len0);
41
+ if (ret[2]) {
42
+ throw takeFromExternrefTable0(ret[1]);
43
+ }
44
+ this.__wbg_ptr = ret[0];
45
+ SigningSessionFinalization.register(this, this.__wbg_ptr, this);
46
+ return this;
47
+ }
48
+ /**
49
+ * @param {string} key
50
+ * @returns {bigint | undefined}
51
+ */
52
+ nextNonce(key) {
53
+ const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
54
+ const len0 = WASM_VECTOR_LEN;
55
+ const ret = wasm.signingsession_nextNonce(this.__wbg_ptr, ptr0, len0);
56
+ return ret[0] === 0 ? undefined : BigInt.asUintN(64, ret[1]);
57
+ }
58
+ /**
59
+ * @param {string} key
60
+ * @param {bigint} slot
61
+ * @param {boolean} accepted
62
+ */
63
+ outcome(key, slot, accepted) {
64
+ const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
65
+ const len0 = WASM_VECTOR_LEN;
66
+ wasm.signingsession_outcome(this.__wbg_ptr, ptr0, len0, slot, accepted);
67
+ }
68
+ /**
69
+ * @param {string} address
70
+ */
71
+ rememberAddress(address) {
72
+ const ptr0 = passStringToWasm0(address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
73
+ const len0 = WASM_VECTOR_LEN;
74
+ wasm.signingsession_rememberAddress(this.__wbg_ptr, ptr0, len0);
75
+ }
76
+ /**
77
+ * @param {string} key
78
+ * @param {bigint} slot
79
+ */
80
+ signed(key, slot) {
81
+ const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
82
+ const len0 = WASM_VECTOR_LEN;
83
+ wasm.signingsession_signed(this.__wbg_ptr, ptr0, len0, slot);
84
+ }
85
+ /**
86
+ * @param {string} key
87
+ * @param {bigint} reported
88
+ * @param {bigint | null | undefined} expected
89
+ * @param {boolean} order
90
+ * @returns {bigint}
91
+ */
92
+ slot(key, reported, expected, order) {
93
+ const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
94
+ const len0 = WASM_VECTOR_LEN;
95
+ const ret = wasm.signingsession_slot(this.__wbg_ptr, ptr0, len0, reported, !isLikeNone(expected), isLikeNone(expected) ? BigInt(0) : expected, order);
96
+ if (ret[2]) {
97
+ throw takeFromExternrefTable0(ret[1]);
98
+ }
99
+ return BigInt.asUintN(64, ret[0]);
100
+ }
101
+ }
102
+ if (Symbol.dispose) SigningSession.prototype[Symbol.dispose] = SigningSession.prototype.free;
103
+
1
104
  /**
2
105
  * @param {string} address
3
106
  * @returns {string}
@@ -101,21 +204,41 @@ export function block_by_height_body(height) {
101
204
  }
102
205
  }
103
206
 
207
+ /**
208
+ * @param {string} chain_name
209
+ * @param {bigint} head
210
+ * @param {bigint} wall_secs
211
+ * @param {bigint | null | undefined} floor
212
+ * @param {bigint} floor_age_secs
213
+ * @returns {bigint}
214
+ */
215
+ export function boundedValidUntil(chain_name, head, wall_secs, floor, floor_age_secs) {
216
+ const ptr0 = passStringToWasm0(chain_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
217
+ const len0 = WASM_VECTOR_LEN;
218
+ const ret = wasm.boundedValidUntil(ptr0, len0, head, wall_secs, !isLikeNone(floor), isLikeNone(floor) ? BigInt(0) : floor, floor_age_secs);
219
+ if (ret[2]) {
220
+ throw takeFromExternrefTable0(ret[1]);
221
+ }
222
+ return BigInt.asUintN(64, ret[0]);
223
+ }
224
+
104
225
  /**
105
226
  * @param {bigint} chain_id
106
227
  * @param {string} contract
107
228
  * @param {string} selector_hex
108
229
  * @param {bigint} scheme_off
109
230
  * @param {bigint} ptr_off
231
+ * @param {bigint} expiry_off
110
232
  * @param {string} field_offs_csv
111
233
  * @param {string} fields_csv
112
234
  * @param {bigint} region_off
113
235
  * @param {Uint8Array} owner_seed_bytes
114
236
  * @param {bigint} owner_index
115
237
  * @param {bigint} nonce
238
+ * @param {bigint} expiry
116
239
  * @returns {string}
117
240
  */
118
- export function buildSignedOrderCall(chain_id, contract, selector_hex, scheme_off, ptr_off, field_offs_csv, fields_csv, region_off, owner_seed_bytes, owner_index, nonce) {
241
+ export function buildSignedOrderCall(chain_id, contract, selector_hex, scheme_off, ptr_off, expiry_off, field_offs_csv, fields_csv, region_off, owner_seed_bytes, owner_index, nonce, expiry) {
119
242
  let deferred7_0;
120
243
  let deferred7_1;
121
244
  try {
@@ -129,7 +252,7 @@ export function buildSignedOrderCall(chain_id, contract, selector_hex, scheme_of
129
252
  const len3 = WASM_VECTOR_LEN;
130
253
  const ptr4 = passArray8ToWasm0(owner_seed_bytes, wasm.__wbindgen_malloc);
131
254
  const len4 = WASM_VECTOR_LEN;
132
- const ret = wasm.buildSignedOrderCall(chain_id, ptr0, len0, ptr1, len1, scheme_off, ptr_off, ptr2, len2, ptr3, len3, region_off, ptr4, len4, owner_index, nonce);
255
+ const ret = wasm.buildSignedOrderCall(chain_id, ptr0, len0, ptr1, len1, scheme_off, ptr_off, expiry_off, ptr2, len2, ptr3, len3, region_off, ptr4, len4, owner_index, nonce, expiry);
133
256
  var ptr6 = ret[0];
134
257
  var len6 = ret[1];
135
258
  if (ret[3]) {
@@ -150,14 +273,16 @@ export function buildSignedOrderCall(chain_id, contract, selector_hex, scheme_of
150
273
  * @param {string} selector_hex
151
274
  * @param {bigint} scheme_off
152
275
  * @param {bigint} ptr_off
276
+ * @param {bigint} expiry_off
153
277
  * @param {bigint} region_off
154
278
  * @param {string} fields_json
155
279
  * @param {Uint8Array} owner_seed_bytes
156
280
  * @param {bigint} owner_index
157
281
  * @param {bigint} nonce
282
+ * @param {bigint} expiry
158
283
  * @returns {string}
159
284
  */
160
- export function buildTypedOrderCall(chain_id, contract, selector_hex, scheme_off, ptr_off, region_off, fields_json, owner_seed_bytes, owner_index, nonce) {
285
+ export function buildTypedOrderCall(chain_id, contract, selector_hex, scheme_off, ptr_off, expiry_off, region_off, fields_json, owner_seed_bytes, owner_index, nonce, expiry) {
161
286
  let deferred6_0;
162
287
  let deferred6_1;
163
288
  try {
@@ -169,7 +294,7 @@ export function buildTypedOrderCall(chain_id, contract, selector_hex, scheme_off
169
294
  const len2 = WASM_VECTOR_LEN;
170
295
  const ptr3 = passArray8ToWasm0(owner_seed_bytes, wasm.__wbindgen_malloc);
171
296
  const len3 = WASM_VECTOR_LEN;
172
- const ret = wasm.buildTypedOrderCall(chain_id, ptr0, len0, ptr1, len1, scheme_off, ptr_off, region_off, ptr2, len2, ptr3, len3, owner_index, nonce);
297
+ const ret = wasm.buildTypedOrderCall(chain_id, ptr0, len0, ptr1, len1, scheme_off, ptr_off, expiry_off, region_off, ptr2, len2, ptr3, len3, owner_index, nonce, expiry);
173
298
  var ptr5 = ret[0];
174
299
  var len5 = ret[1];
175
300
  if (ret[3]) {
@@ -195,6 +320,18 @@ export function chainIdFromName(name) {
195
320
  return BigInt.asUintN(64, ret);
196
321
  }
197
322
 
323
+ /**
324
+ * @param {string} response
325
+ */
326
+ export function checkGatewayJson(response) {
327
+ const ptr0 = passStringToWasm0(response, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
328
+ const len0 = WASM_VECTOR_LEN;
329
+ const ret = wasm.checkGatewayJson(ptr0, len0);
330
+ if (ret[1]) {
331
+ throw takeFromExternrefTable0(ret[0]);
332
+ }
333
+ }
334
+
198
335
  /**
199
336
  * @param {bigint} valid_until
200
337
  * @param {bigint} head
@@ -240,6 +377,29 @@ export function eventsBody(height) {
240
377
  }
241
378
  }
242
379
 
380
+ /**
381
+ * @param {string} chain_name
382
+ * @returns {bigint}
383
+ */
384
+ export function genesisSecs(chain_name) {
385
+ const ptr0 = passStringToWasm0(chain_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
386
+ const len0 = WASM_VECTOR_LEN;
387
+ const ret = wasm.genesisSecs(ptr0, len0);
388
+ return BigInt.asUintN(64, ret);
389
+ }
390
+
391
+ /**
392
+ * @param {string} chain_name
393
+ * @param {bigint} wall_secs
394
+ * @returns {bigint}
395
+ */
396
+ export function headCeiling(chain_name, wall_secs) {
397
+ const ptr0 = passStringToWasm0(chain_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
398
+ const len0 = WASM_VECTOR_LEN;
399
+ const ret = wasm.headCeiling(ptr0, len0, wall_secs);
400
+ return BigInt.asUintN(64, ret);
401
+ }
402
+
243
403
  /**
244
404
  * @returns {bigint}
245
405
  */
@@ -330,12 +490,28 @@ export function mapSlotKey(map_domain_tag, key_address_hex) {
330
490
 
331
491
  /**
332
492
  * @param {Uint8Array} seed_bytes
333
- * @returns {any}
493
+ * @returns {Uint8Array}
334
494
  */
335
495
  export function mnemonicFromSeed(seed_bytes) {
336
496
  const ptr0 = passArray8ToWasm0(seed_bytes, wasm.__wbindgen_malloc);
337
497
  const len0 = WASM_VECTOR_LEN;
338
498
  const ret = wasm.mnemonicFromSeed(ptr0, len0);
499
+ if (ret[3]) {
500
+ throw takeFromExternrefTable0(ret[2]);
501
+ }
502
+ var v2 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
503
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
504
+ return v2;
505
+ }
506
+
507
+ /**
508
+ * @param {Uint8Array} seed_bytes
509
+ * @returns {any}
510
+ */
511
+ export function mnemonicFromSeedText(seed_bytes) {
512
+ const ptr0 = passArray8ToWasm0(seed_bytes, wasm.__wbindgen_malloc);
513
+ const len0 = WASM_VECTOR_LEN;
514
+ const ret = wasm.mnemonicFromSeedText(ptr0, len0);
339
515
  if (ret[2]) {
340
516
  throw takeFromExternrefTable0(ret[1]);
341
517
  }
@@ -495,6 +671,22 @@ export function seedFromMnemonic(phrase) {
495
671
  return v2;
496
672
  }
497
673
 
674
+ /**
675
+ * @param {Uint8Array} phrase
676
+ * @returns {Uint8Array}
677
+ */
678
+ export function seedFromMnemonicBytes(phrase) {
679
+ const ptr0 = passArray8ToWasm0(phrase, wasm.__wbindgen_malloc);
680
+ const len0 = WASM_VECTOR_LEN;
681
+ const ret = wasm.seedFromMnemonicBytes(ptr0, len0);
682
+ if (ret[3]) {
683
+ throw takeFromExternrefTable0(ret[2]);
684
+ }
685
+ var v2 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
686
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
687
+ return v2;
688
+ }
689
+
498
690
  /**
499
691
  * @param {Uint8Array} seed_bytes
500
692
  * @param {bigint} index
@@ -780,6 +972,38 @@ export function testnetChainId() {
780
972
  return BigInt.asUintN(64, ret);
781
973
  }
782
974
 
975
+ /**
976
+ * @returns {string}
977
+ */
978
+ export function testnetChainName() {
979
+ let deferred1_0;
980
+ let deferred1_1;
981
+ try {
982
+ const ret = wasm.testnetChainName();
983
+ deferred1_0 = ret[0];
984
+ deferred1_1 = ret[1];
985
+ return getStringFromWasm0(ret[0], ret[1]);
986
+ } finally {
987
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
988
+ }
989
+ }
990
+
991
+ /**
992
+ * @returns {string}
993
+ */
994
+ export function testnetRpcUrl() {
995
+ let deferred1_0;
996
+ let deferred1_1;
997
+ try {
998
+ const ret = wasm.testnetRpcUrl();
999
+ deferred1_0 = ret[0];
1000
+ deferred1_1 = ret[1];
1001
+ return getStringFromWasm0(ret[0], ret[1]);
1002
+ } finally {
1003
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
1004
+ }
1005
+ }
1006
+
783
1007
  /**
784
1008
  * @returns {bigint}
785
1009
  */
@@ -843,6 +1067,14 @@ export function valid_address(address) {
843
1067
  return ret !== 0;
844
1068
  }
845
1069
 
1070
+ /**
1071
+ * @returns {bigint}
1072
+ */
1073
+ export function validityBlocks() {
1074
+ const ret = wasm.validityBlocks();
1075
+ return BigInt.asUintN(64, ret);
1076
+ }
1077
+
846
1078
  /**
847
1079
  * @param {string} transfer_fee
848
1080
  * @param {bigint} meter_limit
@@ -913,6 +1145,10 @@ export function __wbindgen_init_externref_table() {
913
1145
  table.set(offset + 2, true);
914
1146
  table.set(offset + 3, false);
915
1147
  }
1148
+ const SigningSessionFinalization = (typeof FinalizationRegistry === 'undefined')
1149
+ ? { register: () => {}, unregister: () => {} }
1150
+ : new FinalizationRegistry(ptr => wasm.__wbg_signingsession_free(ptr, 1));
1151
+
916
1152
  function addToExternrefTable0(obj) {
917
1153
  const idx = wasm.__externref_table_alloc();
918
1154
  wasm.__wbindgen_externrefs.set(idx, obj);
Binary file
@@ -1,23 +1,29 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
+ export const __wbg_signingsession_free: (a: number, b: number) => void;
4
5
  export const account_body: (a: number, b: number) => [number, number];
5
6
  export const address: (a: number, b: number, c: bigint) => [number, number, number, number];
6
7
  export const assetBalanceBody: (a: number, b: number, c: number, d: number) => [number, number];
7
8
  export const assetSupplyBody: (a: number, b: number) => [number, number];
8
9
  export const block_by_height_body: (a: bigint) => [number, number];
9
- export const buildSignedOrderCall: (a: bigint, b: number, c: number, d: number, e: number, f: bigint, g: bigint, h: number, i: number, j: number, k: number, l: bigint, m: number, n: number, o: bigint, p: bigint) => [number, number, number, number];
10
- export const buildTypedOrderCall: (a: bigint, b: number, c: number, d: number, e: number, f: bigint, g: bigint, h: bigint, i: number, j: number, k: number, l: number, m: bigint, n: bigint) => [number, number, number, number];
10
+ export const boundedValidUntil: (a: number, b: number, c: bigint, d: bigint, e: number, f: bigint, g: bigint) => [bigint, number, number];
11
+ export const buildSignedOrderCall: (a: bigint, b: number, c: number, d: number, e: number, f: bigint, g: bigint, h: bigint, i: number, j: number, k: number, l: number, m: bigint, n: number, o: number, p: bigint, q: bigint, r: bigint) => [number, number, number, number];
12
+ export const buildTypedOrderCall: (a: bigint, b: number, c: number, d: number, e: number, f: bigint, g: bigint, h: bigint, i: bigint, j: number, k: number, l: number, m: number, n: bigint, o: bigint, p: bigint) => [number, number, number, number];
11
13
  export const chainIdFromName: (a: number, b: number) => bigint;
14
+ export const checkGatewayJson: (a: number, b: number) => [number, number];
12
15
  export const checkValidUntil: (a: bigint, b: bigint) => [number, number];
13
16
  export const contractAddress: (a: number, b: number, c: bigint) => [number, number];
14
17
  export const eventsBody: (a: bigint) => [number, number];
18
+ export const genesisSecs: (a: number, b: number) => bigint;
19
+ export const headCeiling: (a: number, b: number, c: bigint) => bigint;
15
20
  export const localChainId: () => bigint;
16
21
  export const lookalikeOf: (a: number, b: number, c: number, d: number) => [number, number];
17
22
  export const mainnetChainId: () => bigint;
18
23
  export const mapAddrWordKey: (a: bigint, b: number, c: number, d: bigint) => [number, number, number, number];
19
24
  export const mapSlotKey: (a: bigint, b: number, c: number) => [number, number, number, number];
20
- export const mnemonicFromSeed: (a: number, b: number) => [number, number, number];
25
+ export const mnemonicFromSeed: (a: number, b: number) => [number, number, number, number];
26
+ export const mnemonicFromSeedText: (a: number, b: number) => [number, number, number];
21
27
  export const nameKey: (a: number, b: number) => [number, number];
22
28
  export const nonceSlotKey: (a: number, b: number) => [number, number, number, number];
23
29
  export const orderSigner: (a: number, b: number, c: bigint) => [number, number, number, number];
@@ -26,20 +32,32 @@ export const parseEvents: (a: number, b: number) => [number, number, number, num
26
32
  export const sameAddress: (a: number, b: number, c: number, d: number) => number;
27
33
  export const scalarSlotKey: (a: bigint) => [number, number];
28
34
  export const seedFromMnemonic: (a: number, b: number) => [number, number, number, number];
35
+ export const seedFromMnemonicBytes: (a: number, b: number) => [number, number, number, number];
29
36
  export const signAssetCall: (a: number, b: number, c: bigint, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: bigint, m: bigint, n: number, o: number, p: bigint, q: bigint, r: number, s: number) => [number, number, number, number];
30
37
  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, o: bigint, p: number, q: number) => [number, number, number, number];
31
38
  export const signRegister: (a: number, b: number, c: bigint, d: bigint, e: number, f: number, g: bigint, h: bigint) => [number, number, number, number];
32
39
  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, m: bigint, n: number, o: number) => [number, number, number, number];
33
40
  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, l: bigint) => [number, number, number, number];
41
+ export const signingsession_checkTarget: (a: number, b: number, c: number) => [number, number];
42
+ export const signingsession_isHeld: (a: number, b: number, c: number, d: bigint) => number;
43
+ export const signingsession_new: (a: number, b: number) => [number, number, number];
44
+ export const signingsession_nextNonce: (a: number, b: number, c: number) => [number, bigint];
45
+ export const signingsession_outcome: (a: number, b: number, c: number, d: bigint, e: number) => void;
46
+ export const signingsession_rememberAddress: (a: number, b: number, c: number) => void;
47
+ export const signingsession_signed: (a: number, b: number, c: number, d: bigint) => void;
48
+ export const signingsession_slot: (a: number, b: number, c: number, d: bigint, e: number, f: bigint, g: number) => [bigint, number, number];
34
49
  export const storageBody: (a: number, b: number) => [number, number];
35
50
  export const storageValue: (a: number, b: number, c: number, d: number) => [number, number, number, number];
36
51
  export const submit_body: (a: number, b: number) => [number, number, number, number];
37
52
  export const testnetChainId: () => bigint;
53
+ export const testnetChainName: () => [number, number];
54
+ export const testnetRpcUrl: () => [number, number];
38
55
  export const tokenDecimalsSlot: () => bigint;
39
56
  export const tokenSymbolSlot: () => bigint;
40
57
  export const transaction_body: (a: number, b: number) => [number, number];
41
58
  export const unpackSymbol: (a: bigint) => [number, number];
42
59
  export const valid_address: (a: number, b: number) => number;
60
+ export const validityBlocks: () => bigint;
43
61
  export const vmCallFee: (a: number, b: number, c: bigint) => [number, number, number, number];
44
62
  export const vmDeployAddress: () => [number, number];
45
63
  export const __wbindgen_malloc: (a: number, b: number) => number;
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright 2026 Quantova Inc
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Quantova Inc
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.