@helios-lang/effect 0.4.41 → 0.4.42

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.
@@ -5,6 +5,6 @@ import { Context, Effect } from "effect";
5
5
  * TODO: add config for filtering, pagination etc. (these can potentially be a lot of transactions!)
6
6
  * TODO: add filtering by AssetClass
7
7
  */
8
- export class Txs extends Context.Tag("Cardano.Network.AddressTxs")() {
8
+ export class Txs extends Context.Tag("Cardano.Network.Txs")() {
9
9
  }
10
10
  //# sourceMappingURL=Txs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Txs.js","sourceRoot":"","sources":["../../../src/Cardano/Network/Txs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAIxC;;;;;GAKG;AACH,MAAM,OAAO,GAAI,SAAQ,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC,EAK/D;CAAG"}
1
+ {"version":3,"file":"Txs.js","sourceRoot":"","sources":["../../../src/Cardano/Network/Txs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAKxC;;;;;GAKG;AACH,MAAM,OAAO,GAAI,SAAQ,OAAO,CAAC,GAAG,CAAC,qBAAqB,CAAC,EAWxD;CAAG"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@helios-lang/effect",
3
- "version": "0.4.41",
3
+ "version": "0.4.42",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -113,7 +113,7 @@ export type MetadataAttr = string | number | readonly MetadataAttr[] | Readonly<
113
113
  export declare const empty: Tx;
114
114
  export declare const decode: (options?: {
115
115
  trusted?: boolean;
116
- }) => (bytes: Bytes.BytesLike) => Effect.Effect<Tx, Bytes.EndOfStreamError | Cbor.DecodeError | import("../Network/errors.js").ConnectionError | import("../Network/errors.js").UnexpectedFormat | import("../Network/errors.js").UTxONotFound | import("../Network/errors.js").UTxOAlreadySpent, import("../Network/UTxO.js").UTxO>;
116
+ }) => (bytes: Bytes.BytesLike) => Effect.Effect<Tx, import("../Network/errors.js").ConnectionError | import("../Network/errors.js").UnexpectedFormat | Bytes.EndOfStreamError | Cbor.DecodeError | import("../Network/errors.js").UTxONotFound | import("../Network/errors.js").UTxOAlreadySpent, import("../Network/UTxO.js").UTxO>;
117
117
  export declare const encode: (options?: {
118
118
  forFeeCalculation?: boolean;
119
119
  full?: boolean;
@@ -1,9 +1,15 @@
1
1
  import { Context, Effect } from "effect";
2
2
  import type { Address } from "../Ledger/Address.js";
3
+ import type { TxHash } from "../Ledger/TxHash.js";
3
4
  import type { ConnectionError, UnexpectedFormat } from "./errors.js";
4
- declare const Txs_base: Context.TagClass<Txs, "Cardano.Network.AddressTxs", (args: {
5
+ declare const Txs_base: Context.TagClass<Txs, "Cardano.Network.Txs", (args: {
5
6
  address: Address;
6
- }) => Effect.Effect<Txs, ConnectionError | UnexpectedFormat>>;
7
+ }) => Effect.Effect<{
8
+ hash: TxHash;
9
+ indexInBlock?: number;
10
+ blockHeight?: number;
11
+ blockTime?: number;
12
+ }[], ConnectionError | UnexpectedFormat>>;
7
13
  /**
8
14
  * A service that returns all transactions that spend from the given address, or pay to the given address
9
15
  *
@@ -1 +1 @@
1
- {"version":3,"file":"Txs.d.ts","sourceRoot":"","sources":["../../../src/Cardano/Network/Txs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AACxC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,KAAK,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;mFAU3D;IACL,OAAO,EAAE,OAAO,CAAA;CACjB,KAAK,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,eAAe,GAAG,gBAAgB,CAAC;AAV9D;;;;;GAKG;AACH,qBAAa,GAAI,SAAQ,QAKtB;CAAG"}
1
+ {"version":3,"file":"Txs.d.ts","sourceRoot":"","sources":["../../../src/Cardano/Network/Txs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AACxC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AACjD,OAAO,KAAK,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;4EAU3D;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,KAAK,MAAM,CAAC,MAAM,CAC3C;IACE,IAAI,EAAE,MAAM,CAAA;IACZ,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,EAAE,EACH,eAAe,GAAG,gBAAgB,CACnC;AAhBH;;;;;GAKG;AACH,qBAAa,GAAI,SAAQ,QAWtB;CAAG"}