@hazae41/stdbob 0.0.15 → 0.0.17
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/package.json +1 -1
- package/src/mods/bigints/mod.ts +32 -0
- package/src/mods/env/mod.ts +2 -6
- package/src/mods/modules/mod.ts +8 -7
package/package.json
CHANGED
package/src/mods/bigints/mod.ts
CHANGED
|
@@ -56,6 +56,10 @@ export namespace bigints {
|
|
|
56
56
|
@external("bigints", "dec")
|
|
57
57
|
export declare function dec(value: bigintref): bigintref
|
|
58
58
|
|
|
59
|
+
// @ts-ignore: decorator
|
|
60
|
+
@external("bigints", "neg")
|
|
61
|
+
export declare function neg(value: bigintref): bigintref
|
|
62
|
+
|
|
59
63
|
// @ts-ignore: decorator
|
|
60
64
|
@external("bigints", "add")
|
|
61
65
|
export declare function add(left: bigintref, right: bigintref): bigintref
|
|
@@ -76,6 +80,34 @@ export namespace bigints {
|
|
|
76
80
|
@external("bigints", "pow")
|
|
77
81
|
export declare function pow(left: bigintref, right: bigintref): bigintref
|
|
78
82
|
|
|
83
|
+
// @ts-ignore: decorator
|
|
84
|
+
@external("bigints", "mod")
|
|
85
|
+
export declare function mod(left: bigintref, right: bigintref): bigintref
|
|
86
|
+
|
|
87
|
+
// @ts-ignore: decorator
|
|
88
|
+
@external("bigints", "lt")
|
|
89
|
+
export declare function lt(left: bigintref, right: bigintref): bool
|
|
90
|
+
|
|
91
|
+
// @ts-ignore: decorator
|
|
92
|
+
@external("bigints", "lte")
|
|
93
|
+
export declare function lte(left: bigintref, right: bigintref): bool
|
|
94
|
+
|
|
95
|
+
// @ts-ignore: decorator
|
|
96
|
+
@external("bigints", "gt")
|
|
97
|
+
export declare function gt(left: bigintref, right: bigintref): bool
|
|
98
|
+
|
|
99
|
+
// @ts-ignore: decorator
|
|
100
|
+
@external("bigints", "gte")
|
|
101
|
+
export declare function gte(left: bigintref, right: bigintref): bool
|
|
102
|
+
|
|
103
|
+
// @ts-ignore: decorator
|
|
104
|
+
@external("bigints", "eq")
|
|
105
|
+
export declare function eq(left: bigintref, right: bigintref): bool
|
|
106
|
+
|
|
107
|
+
// @ts-ignore: decorator
|
|
108
|
+
@external("bigints", "neq")
|
|
109
|
+
export declare function neq(left: bigintref, right: bigintref): bool
|
|
110
|
+
|
|
79
111
|
// @ts-ignore: decorator
|
|
80
112
|
@external("bigints", "from_base16")
|
|
81
113
|
export declare function fromBase16(text: textref): bigintref
|
package/src/mods/env/mod.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { textref } from "../mod";
|
|
2
2
|
|
|
3
3
|
export namespace env {
|
|
4
4
|
|
|
@@ -8,10 +8,6 @@ export namespace env {
|
|
|
8
8
|
|
|
9
9
|
// @ts-ignore: decorator
|
|
10
10
|
@external("env", "uuid")
|
|
11
|
-
export declare function uuid():
|
|
12
|
-
|
|
13
|
-
// @ts-ignore: decorator
|
|
14
|
-
@external("env", "test")
|
|
15
|
-
export declare function test(x: blobref): void
|
|
11
|
+
export declare function uuid(): textref
|
|
16
12
|
|
|
17
13
|
}
|
package/src/mods/modules/mod.ts
CHANGED
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
import { blobref } from "../blobs/mod";
|
|
2
2
|
import { packref } from "../packs/mod";
|
|
3
|
+
import { textref } from "../texts/mod";
|
|
3
4
|
|
|
4
5
|
export namespace modules {
|
|
5
6
|
|
|
7
|
+
// @ts-ignore: decorator
|
|
8
|
+
@external("modules", "self")
|
|
9
|
+
export declare function self(): textref
|
|
10
|
+
|
|
6
11
|
// @ts-ignore: decorator
|
|
7
12
|
@external("modules", "load")
|
|
8
|
-
export declare function load(module:
|
|
13
|
+
export declare function load(module: textref): blobref
|
|
9
14
|
|
|
10
15
|
// @ts-ignore: decorator
|
|
11
16
|
@external("modules", "call")
|
|
12
|
-
export declare function call<T>(module:
|
|
17
|
+
export declare function call<T>(module: textref, method: textref, params: packref): T
|
|
13
18
|
|
|
14
19
|
// @ts-ignore: decorator
|
|
15
20
|
@external("modules", "create")
|
|
16
|
-
export declare function create(code: blobref, salt: blobref):
|
|
17
|
-
|
|
18
|
-
// @ts-ignore: decorator
|
|
19
|
-
@external("modules", "self")
|
|
20
|
-
export declare function self(): blobref
|
|
21
|
+
export declare function create(code: blobref, salt: blobref): textref
|
|
21
22
|
|
|
22
23
|
}
|