@hazae41/stdbob 0.0.16 → 0.0.18
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/bin.ts +1 -0
- package/src/mod.ts +1 -0
- package/src/mods/bigints/mod.ts +33 -1
- package/src/mods/env/mod.ts +1 -1
- package/src/mods/mod.ts +12 -12
- package/src/mods/modules/mod.ts +4 -4
- package/src/mods/storage/mod.ts +3 -3
- package/src/mods/texts/mod.ts +1 -1
package/package.json
CHANGED
package/src/bin.ts
CHANGED
package/src/mod.ts
CHANGED
package/src/mods/bigints/mod.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { textref } from "../texts/mod"
|
|
1
|
+
import { textref } from "../texts/mod"
|
|
2
2
|
|
|
3
3
|
export type bigintref = externref
|
|
4
4
|
|
|
@@ -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
package/src/mods/mod.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export * from "./bigints/mod"
|
|
2
|
-
export * from "./blobs/mod"
|
|
3
|
-
export * from "./console/mod"
|
|
4
|
-
export * from "./ed25519/mod"
|
|
5
|
-
export * from "./env/mod"
|
|
6
|
-
export * from "./modules/mod"
|
|
7
|
-
export * from "./packs/mod"
|
|
8
|
-
export * from "./refs/mod"
|
|
9
|
-
export * from "./sha256/mod"
|
|
10
|
-
export * from "./storage/mod"
|
|
11
|
-
export * from "./symbols/mod"
|
|
12
|
-
export * from "./texts/mod"
|
|
1
|
+
export * from "./bigints/mod"
|
|
2
|
+
export * from "./blobs/mod"
|
|
3
|
+
export * from "./console/mod"
|
|
4
|
+
export * from "./ed25519/mod"
|
|
5
|
+
export * from "./env/mod"
|
|
6
|
+
export * from "./modules/mod"
|
|
7
|
+
export * from "./packs/mod"
|
|
8
|
+
export * from "./refs/mod"
|
|
9
|
+
export * from "./sha256/mod"
|
|
10
|
+
export * from "./storage/mod"
|
|
11
|
+
export * from "./symbols/mod"
|
|
12
|
+
export * from "./texts/mod"
|
|
13
13
|
|
package/src/mods/modules/mod.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { blobref } from "../blobs/mod"
|
|
2
|
-
import { packref } from "../packs/mod"
|
|
3
|
-
import { textref } from "../texts/mod"
|
|
1
|
+
import { blobref } from "../blobs/mod"
|
|
2
|
+
import { packref } from "../packs/mod"
|
|
3
|
+
import { textref } from "../texts/mod"
|
|
4
4
|
|
|
5
5
|
export namespace modules {
|
|
6
6
|
|
|
@@ -14,7 +14,7 @@ export namespace modules {
|
|
|
14
14
|
|
|
15
15
|
// @ts-ignore: decorator
|
|
16
16
|
@external("modules", "call")
|
|
17
|
-
export declare function call
|
|
17
|
+
export declare function call(module: textref, method: textref, params: packref): packref
|
|
18
18
|
|
|
19
19
|
// @ts-ignore: decorator
|
|
20
20
|
@external("modules", "create")
|
package/src/mods/storage/mod.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { textref } from "../mod";
|
|
1
|
+
import { packref, textref } from "../mod";
|
|
2
2
|
|
|
3
3
|
export namespace storage {
|
|
4
4
|
|
|
5
5
|
// @ts-ignore: decorator
|
|
6
6
|
@external("storage", "get")
|
|
7
|
-
export declare function get
|
|
7
|
+
export declare function get(key: textref): packref
|
|
8
8
|
|
|
9
9
|
// @ts-ignore: decorator
|
|
10
10
|
@external("storage", "set")
|
|
11
|
-
export declare function set<T>(key: textref, value: T): void
|
|
11
|
+
export declare function set<T>(key: textref, value: T): void
|
|
12
12
|
|
|
13
13
|
}
|
package/src/mods/texts/mod.ts
CHANGED