@effectstream/precompile 0.100.16 → 0.100.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/README.md +4 -4
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# @effectstream/precompile
|
|
2
2
|
|
|
3
3
|
Generate deterministic EVM-sized (20-byte) addresses from string names
|
|
4
|
-
by hashing with keccak256. The intended use is "precompile" addresses
|
|
4
|
+
by hashing with keccak256. The intended use is "precompile" addresses -
|
|
5
5
|
synthetic 0x-addresses reserved by an EffectStream node for non-user
|
|
6
6
|
logic (intrinsic primitives, timers, internal accounts).
|
|
7
7
|
|
|
@@ -20,7 +20,7 @@ npm install @effectstream/precompile
|
|
|
20
20
|
|
|
21
21
|
## Standalone usage
|
|
22
22
|
|
|
23
|
-
Pure functions. Given a name, get an address. Same name, same address
|
|
23
|
+
Pure functions. Given a name, get an address. Same name, same address -
|
|
24
24
|
always.
|
|
25
25
|
|
|
26
26
|
```typescript
|
|
@@ -50,8 +50,8 @@ a future build of the same name.
|
|
|
50
50
|
|
|
51
51
|
## Key exports
|
|
52
52
|
|
|
53
|
-
- `generatePrecompile(name: string): HexString0x`
|
|
54
|
-
- `generatePrecompiles(names: Record<string, string>)`
|
|
53
|
+
- `generatePrecompile(name: string): HexString0x` - `0x` + first 40 hex chars of `keccak256(name)`.
|
|
54
|
+
- `generatePrecompiles(names: Record<string, string>)` - bulk variant. Returns `{ [value]: address }`.
|
|
55
55
|
|
|
56
56
|
## Examples
|
|
57
57
|
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effectstream/precompile",
|
|
3
|
-
"version": "0.100.
|
|
3
|
+
"version": "0.100.17",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"homepage": "https://effectstream.github.io/docs/",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
|
-
"url": "https://github.com/
|
|
8
|
+
"url": "https://github.com/effectstream/effectstream",
|
|
9
9
|
"directory": "packages/effectstream-sdk/precompile"
|
|
10
10
|
},
|
|
11
11
|
"bugs": {
|
|
12
|
-
"url": "https://github.com/
|
|
12
|
+
"url": "https://github.com/effectstream/effectstream/issues"
|
|
13
13
|
},
|
|
14
14
|
"exports": "./src/mod.ts",
|
|
15
15
|
"dependencies": {
|