@effectstream/precompile 0.100.15 → 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.
Files changed (2) hide show
  1. package/README.md +10 -5
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -1,10 +1,15 @@
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
 
8
+ - Deterministic 20-byte addresses from string names via keccak256.
9
+ - Pure functions; same name in, same address out.
10
+ - Used by intrinsic primitives, timers, and internal accounts.
11
+ - Result is an EVM-shaped `0x[40 hex chars]` string, usable wherever viem/ethers expects an `Address`.
12
+
8
13
  ## Install
9
14
 
10
15
  ```bash
@@ -15,7 +20,7 @@ npm install @effectstream/precompile
15
20
 
16
21
  ## Standalone usage
17
22
 
18
- 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 -
19
24
  always.
20
25
 
21
26
  ```typescript
@@ -45,8 +50,8 @@ a future build of the same name.
45
50
 
46
51
  ## Key exports
47
52
 
48
- - `generatePrecompile(name: string): HexString0x` — `0x` + first 40 hex chars of `keccak256(name)`.
49
- - `generatePrecompiles(names: Record<string, string>)` — bulk variant. Returns `{ [value]: address }`.
53
+ - `generatePrecompile(name: string): HexString0x` - `0x` + first 40 hex chars of `keccak256(name)`.
54
+ - `generatePrecompiles(names: Record<string, string>)` - bulk variant. Returns `{ [value]: address }`.
50
55
 
51
56
  ## Examples
52
57
 
@@ -55,4 +60,4 @@ Runnable: [`test/examples.test.ts`](./test/examples.test.ts).
55
60
  ## Links
56
61
 
57
62
  - Docs: https://effectstream.github.io/docs/packages/sdk/precompile
58
- - Source: https://github.com/PaimaStudios/paima-engine/tree/main/packages/effectstream-sdk/precompile
63
+ - Source: https://github.com/effectstream/effectstream/tree/main/packages/effectstream-sdk/precompile
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@effectstream/precompile",
3
- "version": "0.100.15",
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/PaimaStudios/paima-engine",
8
+ "url": "https://github.com/effectstream/effectstream",
9
9
  "directory": "packages/effectstream-sdk/precompile"
10
10
  },
11
11
  "bugs": {
12
- "url": "https://github.com/PaimaStudios/paima-engine/issues"
12
+ "url": "https://github.com/effectstream/effectstream/issues"
13
13
  },
14
14
  "exports": "./src/mod.ts",
15
15
  "dependencies": {