@effectstream/utils 0.100.16 → 0.100.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/README.md +9 -9
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @effectstream/utils
|
|
2
2
|
|
|
3
|
-
Shared utilities for the EffectStream framework
|
|
3
|
+
Shared utilities for the EffectStream framework - chain-aware address
|
|
4
4
|
types and validators, TypeBox schemas, Effection-based concurrency
|
|
5
5
|
primitives, viem helpers, and small type-level utilities. No runtime
|
|
6
6
|
dependency on the rest of EffectStream; safe to use standalone in any
|
|
@@ -59,13 +59,13 @@ state machine, and the batcher pulls something from here.
|
|
|
59
59
|
|
|
60
60
|
Address types and validators:
|
|
61
61
|
|
|
62
|
-
- `AddressType`
|
|
63
|
-
- `AddressValidator`
|
|
64
|
-
- `AddressAndType`
|
|
62
|
+
- `AddressType` - enum of chain identifiers (EVM, CARDANO, SUBSTRATE, ALGORAND, MINA, MIDNIGHT, AVAIL, POLKADOT, NEAR).
|
|
63
|
+
- `AddressValidator` - `Record<AddressType, TSchema>` of TypeBox validators, one per chain.
|
|
64
|
+
- `AddressAndType` - tagged-union shape for `{ type, address }` pairs.
|
|
65
65
|
|
|
66
66
|
TypeBox schemas:
|
|
67
67
|
|
|
68
|
-
- `TypeboxHelpers.{Evm,Cardano,Substrate,Algorand,Mina,Midnight,Avail,Polkadot,Near}`
|
|
68
|
+
- `TypeboxHelpers.{Evm,Cardano,Substrate,Algorand,Mina,Midnight,Avail,Polkadot,Near}` - `.Address`, `.BlockHash`, `.TxHash`, `.Signature`, `.PrivateKey`, plus chain-specific extras (`PolicyId`, `AssetName`, `Selector`, …).
|
|
69
69
|
- Plain primitives: `TypeboxHelpers.Uint256`, `BlockNumber`, `AbsoluteSlotNumber`, `EpochNumber`.
|
|
70
70
|
|
|
71
71
|
Type aliases (heavily imported as nominal types):
|
|
@@ -83,7 +83,7 @@ Result + binary helpers:
|
|
|
83
83
|
|
|
84
84
|
Decorators:
|
|
85
85
|
|
|
86
|
-
- `bound`
|
|
86
|
+
- `bound` - method-binding decorator (heavily used in classes that pass methods around).
|
|
87
87
|
|
|
88
88
|
Viem helpers:
|
|
89
89
|
|
|
@@ -95,9 +95,9 @@ Concurrency (Effection-based):
|
|
|
95
95
|
|
|
96
96
|
Subpath entries:
|
|
97
97
|
|
|
98
|
-
- `@effectstream/utils/node-env`
|
|
99
|
-
- `@effectstream/utils/runtime`
|
|
100
|
-
- `@effectstream/utils/runtime-spawn`
|
|
98
|
+
- `@effectstream/utils/node-env` - `dotenv`-aware env loader, for Node-only callers.
|
|
99
|
+
- `@effectstream/utils/runtime` - Effection runtime helpers.
|
|
100
|
+
- `@effectstream/utils/runtime-spawn` - child-process spawn helpers built on Effection.
|
|
101
101
|
|
|
102
102
|
## Examples
|
|
103
103
|
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effectstream/utils",
|
|
3
|
-
"version": "0.100.
|
|
3
|
+
"version": "0.100.18",
|
|
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/utils"
|
|
10
10
|
},
|
|
11
11
|
"bugs": {
|
|
12
|
-
"url": "https://github.com/
|
|
12
|
+
"url": "https://github.com/effectstream/effectstream/issues"
|
|
13
13
|
},
|
|
14
14
|
"exports": {
|
|
15
15
|
".": "./src/mod.ts",
|